Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

1015 results about "Object code" patented technology

In computing, object code or object module is the product of a compiler. In a general sense object code is a sequence of statements or instructions in a computer language, usually a machine code language (i.e., binary) or an intermediate language such as register transfer language (RTL). The term indicates that the code is the goal or result of the compiling process, with some early sources referring to source code as a "subject program."

Cross-chip platform compiling tool chain method

The embodiment of the invention provides a cross-chip platform compiling tool chain method which comprises the following steps: scanning a target platform architecture specification file to extract instruction set features, constructing a platform difference matrix based on the instruction set features to record instruction formats and system call differences of different chip platforms, and normalizing a multi-language syntax tree into a unified intermediate representation; constructing a cross-platform compiler to convert the intermediate representation into a target code; designing a unified intermediate language based on a platform difference matrix to support multi-language compilation; creating an instruction mapper to convert the intermediate representation into a target platform instruction; identifying a target architecture type through a platform identification code; designing a test case to verify a compiling result, and deploying the optimized target program to a target platform; according to the method and the device, the expandability and the code quality of the compiling tool chain can be improved by constructing the unified intermediate presentation layer and the optimization framework, and more efficient cross-platform support is realized.
Owner:UNIVERSAL UBIQUITOUS TECH CO LTD

Cross-framework code migration method and system, electronic equipment and storage medium

PendingCN120447959AVersion controlProgram code adaptionCode migrationTight frame
The invention provides a cross-frame code migration method and system, electronic equipment and a storage medium, and the code migration method comprises the steps: carrying out the frame-level conversion of a first frame code, and generating a target engineering skeleton adaptive to a second frame protocol; analyzing the construction configuration and the entry file, determining an entry point and a compiling rule of code migration, analyzing the first frame code through an abstract syntax tree, and generating a target code range list needing to be migrated; and according to the target code range list and the dependency item list, applying a preset conversion rule to the first framework code, and generating a second framework code adaptive to a second framework protocol. Through automatic framework-level conversion and dynamic rule adaptation, rapid migration from the first framework code to the second framework code is realized, a multi-terminal code library is unified, the manpower development cost is reduced, synchronous operation of business iteration and migration is supported, and the development efficiency is improved.
Owner:SHANGHAI TRAVEL INFORMATION TECH CO LTD

Domain-specific language compiler optimization method and system based on multi-layer intermediate representation

The invention discloses a domain-specific language compiler optimization method and system based on multi-layer intermediate representation, and the method comprises the steps: S1, defining a DSL to simplify the representation and operation in an MMIR, classifying operators in the MMIR, and enabling all kinds of operators in the MMIR to correspond to keywords in the DSL; s2, analyzing the target MLIR code, extracting input, output and control flow semantics of each operation, mapping an operator in the MLIR code into a corresponding expression in a DSL (Digital Subscriber Line), and converting each optimization strategy into the DSL expression; and S3, generating a DSL code according to the DSL representation, and continuously simulating and evaluating the performance of different optimization strategies by adopting a Monte Carlo tree search algorithm to find an optimal optimization strategy so as to realize compiler optimization. The method has the advantages of being simple in implementation method, low in programming complexity, high in program performance, high in flexibility and the like.
Owner:NAT UNIV OF DEFENSE TECH

Neural network-based context-aware code translation and optimization

Systems and methods for efficiently translating program code from a source language to a target language. Input source code is parsed, using a processor device, into an Intermediate Representation (IR). A structural and semantic model of the source code are established by applying static analysis to the IR, and a program skeleton of the target code is constructed from the IR, including generating context-aware placeholders. The IR is transformed into a Single Static Assignment (SSA) form, and a System Dependency Graph (SDG) is built from the SSA form. The SDG is traversed to order translation tasks, and ordered tasks are translated into the target language using a Large Language Model (LLM). A translated program is generated by integrating translated code segments into a coherent program structure in the target language.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Systems and methods for iterative feedback-driven code synthesis using syntax trees and large language models

PendingUS20250306882A1Code compilationSource to sourceCode synthesisObject code
A system for translating source code in a first programming language to a target language is provided. The system is configured to receive source code for converting to target code; determine an abstract syntax tree from the source code; determine program specifications from the source code; determine a dependency graph from the source code; determine a plurality of chunks based at least in part on the abstract syntax tree, the program specifications, and the dependency graph; determine a plurality of converted chunks based at least in part on the plurality of chunks and a deep learning model, the deep learning model converting the plurality of chunks from the language of the source code to the language of the target code; post-process the plurality of converted chunks to obtain intermediate code; and provide the intermediate code as the target code.
Owner:UST GLOBAL INC

Intelligent code review method and system based on large language model

The invention relates to the technical field of data processing, and discloses an intelligent code review method and system based on a large language model, and the method comprises the steps: obtaining a to-be-reviewed code, carrying out the lexical analysis, grammatical analysis and semantic analysis of the to-be-reviewed code, extracting the key information of the code, and obtaining a preprocessed code; multiple features of the code are extracted from the preprocessed code, and target code features are obtained; inputting the target code features into a large language model, and generating a code review result through the large language model; according to the method, complex code semantics and logic problems can be processed, the code review accuracy is improved, and omission and errors of manual review are reduced.
Owner:SHENZHEN HAIYUNAN NETWORK SECURITY TECH CO LTD

Code translation method and system, electronic equipment and computer readable storage medium

The invention discloses a code translation method and system, electronic equipment and a computer readable storage medium, which are applied to a code translation model, and the code translation method comprises the following steps: generating an abstract syntax tree corresponding to a source code; segmenting the source code according to the code structure of the abstract syntax tree to obtain a plurality of code blocks; matching a corresponding code mapping relationship in a code mapping library; translating the plurality of code blocks into a plurality of target code blocks of a target code language according to a code mapping relationship; and compiling the plurality of target code blocks into target code in a target code language. According to the code translation model, the abstract syntax tree corresponding to the source code is firstly generated, then the whole source code is segmented into the multiple code blocks based on the abstract syntax tree, therefore, the whole task is segmented, then code translation is conducted through the code mapping relation in the code mapping library, the transfer speed and efficiency are improved, and the code translation efficiency is improved. And finally, compiling the plurality of translated target code blocks into a whole section of target code to ensure the integrity and accuracy of compiling.
Owner:DIGITAL CHINA FINANCIAL SOFTWARE LTD

Code reconstruction method, system and equipment based on function identification and medium

The invention discloses a code reconstruction method, system and device based on function recognition and a medium, and the method specifically comprises the steps: scanning a project file topological structure, and constructing a knowledge graph based on a code import relation and a technology stack feature; performing context enhancement by analyzing the code function description and combining with the knowledge graph to generate a code modification instruction set; based on the code modification instruction set, in combination with data stream sensitivity marking and performance portrait analysis, evaluating the target code to obtain an evaluation result; based on an evaluation result, matching a historical optimal practice mode through a graph neural network, and generating an optimization scheme which retains an original design style; by comparing abstract syntax tree differences between original codes and verified optimization schemes, only functional logic nodes are replaced, and legal code style features are reserved. According to the method, the efficiency and quality of code reconstruction and optimization are improved, and a more convenient, efficient and intelligent code processing tool is provided for software developers.
Owner:广州三七极耀网络科技有限公司

Code generation method and device

The invention provides a code generation method and device. Comprising the following steps: in response to a code generation request, performing code demand identification on input prompt information to obtain a structured code demand identification result; the code demand identification result comprises a function demand and first context information; the first context information comprises context description content of the function demand in the code demand identification result; determining second context information based on the function demand and the first context information; the second context information comprises complete environment description content of the function requirement; generating a candidate code based on the function demand and the second context information; and performing code optimization on the candidate code to obtain a target code. According to the method, the target code is generated based on the second context information, and the second context information comprises the complete environment description content of the function requirement, so that the code generation system can generate the code according to the complete context information, and the code generation accuracy is improved.
Owner:BEIJING QIMIAO KINGDOM TECHNOLOGY CO LTD

Code generation method and device, equipment and medium

The embodiment of the invention relates to a code generation method and device, equipment and a medium, and the method comprises the steps: responding to a code generation instruction, and analyzing the code generation instruction to obtain a code text identifier, a target node identifier and a target parameter; obtaining an initial abstract syntax tree corresponding to the code text identifier; traversing the initial abstract syntax tree, determining a target node corresponding to the target node identifier, and adjusting the target node according to the target parameter to obtain a target abstract syntax tree; and converting the target abstract syntax tree into a target code text based on a preset compiling tool. According to the embodiment of the invention, code modification and other updating operations are performed on the code text based on the abstract syntax tree, code dynamic updating is realized, and the automatic generation efficiency of codes is improved.
Owner:BEIJING QIYI CENTURY SCI & TECH CO LTD

Reasoning optimization method and device for code generation large model, equipment and medium

The invention discloses a reasoning optimization method and device for a code generation large model, equipment and a medium, and relates to the technical field of model reasoning, and the method comprises the steps: in the reasoning process of a code generation task of a target code generation large model, executing a multi-granularity uncertainty quantification step in parallel every time a new Token is generated, obtaining a multi-granularity uncertainty score; constructing a state space vector, and utilizing a preset reinforcement learning strategy network to evaluate the selection probability of a plurality of preset reasoning optimization strategies based on a preset smooth decision mechanism so as to determine a target reasoning optimization strategy; if the strategy is a preset reasoning acceleration strategy, optimization processing is carried out through speculation decoding; if the strategy is a preset exploration optimization strategy, performing optimization processing by using a preset multi-path sampling technology and a preset knowledge enhancement technology; if the strategy is the preset fuzzy processing strategy, taking the plurality of candidate outputs as target reasoning outputs for optimization processing; and evaluating the decision effect according to the reasoning result to optimize the preset reinforcement learning strategy network.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Code generation method and device, computer program product and electronic equipment

The invention relates to the technical field of computers, and provides an agent generation method and device, a computer program product and electronic equipment. The method comprises the steps of generating an initial code corresponding to code task description information based on a pre-trained code generation model; code inspection is conducted on the initial code, when the inspection result indicates that the initial code has a code fault, the initial code is repaired based on the code fault, and a repaired code is generated; performing code logic error checking on the repair code, generating a repair strategy of the repair code based on the code improvement knowledge graph under the condition that a logic error checking result indicates that the repair code has a logic error, and inputting the repair strategy to the code generation model; enabling the code generation model to improve the repair code based on the repair strategy and the code task description, updating the repair code according to an improvement result, and iteratively executing the process until a preset condition is met, so as to obtain a target code. The code generation accuracy can be improved.
Owner:CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1

Code generation method and device based on AI agent, equipment and medium

The invention relates to the technical field of artificial intelligence, and provides a code generation method, device and equipment based on an AI agent and a computer readable storage medium. First, initial description information is analyzed through the AI agent, and an initial task element component corresponding to a target code is determined; the target big language model further generates a related question list of the target code according to the initial description information and the initial task element component, and executes interactive inquiry on the target user based on the related question list to obtain supplementary description information of the target code, and then analyzes the supplementary description information through the AI agent to obtain the supplementary description information of the target code. And determining a supplementary task element component corresponding to the target code. And finally, generating a target code based on the initial task element component, the supplementary task element component and the component combinatorial logic combination. Therefore, the code is automatically generated through the AI agent and the target large language model, the code generation efficiency is improved, and the user experience is improved.
Owner:KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD

Code reconstruction method and system, computing device, storage medium and program product

Embodiments of the present invention provide a code reconstruction method and system, a computing device, a storage medium and a program product wherein the code reconstruction method comprises: performing code analysis on a to-be-reconstructed initial code to generate a target reconstruction scheme wherein the target reconstruction scheme comprises a code reconstruction plan and a code test plan; the code reconstruction plan comprises a function dependency relationship of the target code; analyzing a function dependency relationship in the code reconstruction plan, and generating at least two code reconstruction tasks corresponding to the initial code; executing the at least two code reconstruction tasks in sequence to obtain each initial code snippet, and iteratively optimizing each initial code snippet through static analysis and dynamic verification until candidate code snippets conforming to a function dependency relationship are generated; and compiling a test case of each candidate code snippet based on the code test plan, and testing each candidate code snippet based on each test case to obtain a plurality of target code snippets conforming to the function dependency relationship. And the coherence and the consistency of the reconstructed codes are ensured.
Owner:BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD

Code completion method and device, storage medium and equipment

The invention discloses a code completion method and device, a storage medium and equipment, and the method comprises the steps: firstly extracting a target code context from a to-be-completed target code file, and extracting a target code snippet from the target code context; then extracting a target embedding vector of the target code snippet, and obtaining a candidate code snippet similar to the target code snippet from a pre-constructed code snippet candidate library based on the target embedding vector; and then, constructing prompt by utilizing the context of the target code and the candidate code snippets, and inputting the prompt into a code generation large language model to obtain a code-complemented target code file output by the model. According to the method, the candidate code snippets similar to the target code snippets are retrieved based on the code snippet candidate library constructed by all the code files contained in the IDE project where the target code file is located, so that the retrieval range is expanded, the retrieval efficiency and accuracy are improved, and the final code completion effect is improved.
Owner:IFLYTEK CO LTD

Graph representation learning and retrieval method and system based on code warehouse graph structure

The invention discloses a graph representation learning and retrieval method and system based on a code warehouse graph structure, and the method comprises the steps: constructing a heterogeneous code graph related to an original code, a newly-added code or a modified code, carrying out the graph representation learning of the heterogeneous code graph, generating a node embedding vector, carrying out the self-supervised learning through an intelligent model, and carrying out the retrieval of the node embedding vector. And outputting the updated node embedding vector. The method comprises the steps of detecting whether newly-added codes or modified codes exist or not in real time, only performing heterogeneous graph modification on the newly-added or modified codes, receiving a query request from a user, generating corresponding code snippets according to the request, checking whether the target code snippets meet grammar specifications or not, and outputting a query result. According to the method, the structural relationship between codes is fully modeled, a structure perception retrieval mode is realized, the method is superior to a traditional text matching scheme, and the code semantic understanding capability is improved; and large-scale code graph online query is supported, and the applicability is wider.
Owner:PEKING UNIV +1

LLVM-based ST language compiling method and system

The invention relates to an LLVM-based ST language compiling method and system, and the method comprises the following specific steps: taking an ST source code as input, and decomposing the ST source code into a tag stream token through an application lexical analyzer; constructing an abstract syntax tree AST by using the mark flow token through a syntactic analyzer; filling a global symbol table, and transmitting the global symbol table and the abstract syntax tree to the next stage; performing semantic analysis, including type check, generating an abstract syntax tree with additional semantic information, and transmitting the abstract syntax tree to the next stage; analyzing the abstract syntax tree with the additional semantic information, generating LLVM IR language codes and transmitting the LLVM IR language codes to the next stage; and the LLVM compiler compiles the LLVM IR code after receiving the LLVM IR code, and outputs an X86 target code and a PowerPC target code. According to the method, the transportability and the code generation efficiency of the ST language compiler can be remarkably improved, various target architectures are supported, meanwhile, good expansibility and flexibility are achieved, and complex industrial automation requirements can be met.
Owner:HUAZHONG UNIV OF SCI & TECH

Code generation method and system for multi-source information fusion based on large language model

The invention provides a multi-source information fusion code generation method and a multi-source information fusion code generation system based on a large language model. Acquiring application programming interface information and code relation information corresponding to the to-be-complemented code from code files in a first code file path and a plurality of second code file paths; according to the application programming interface information and the code relation information, matching from a target code library to obtain an undetermined context code snippet; inputting the to-be-determined context code snippets into a code evaluation model to obtain target complemented code snippets output by the code evaluation model; and according to code input cursor position information corresponding to the to-be-completed code, obtaining a preorder code and a suffix code of the to-be-completed code, and according to the preorder code, the suffix code and the target completion code snippet, generating a code completion cue word. According to the method, a more accurate code completion result is obtained.
Owner:PEKING UNIV

Code generation method and device of front-end component and computer program product

The invention discloses a code generation method and device of a front-end component and a computer program product. Relates to the field of front-end development, and comprises the following steps: responding to a dragging instruction of a user, dragging a front-end component to a visual interface, responding to a configuration instruction of the user, configuring attributes, styles and events for the front-end component, and obtaining a configured front-end component, the front-end component comprising at least one of a button, a textbox, a card and a table; determining a first target data model of the configured front-end component, and generating a front-end code of the first target data model based on the component knowledge base and the code generator; responding to a natural language instruction for describing the business logic of the front-end component by the user, and inputting the natural language instruction into the large language model to obtain a front-end logic code of the front-end component; and determining the front-end code and the front-end logic code as target codes of the front-end component. Through the method and the device, the problem of low code development efficiency of the front-end component in related technologies is solved.
Owner:CHINA TELECOM INTELLIGENT NETWORK TECHNOLOGY CO LTD

Code repository question and answer method based on hierarchical code knowledge graph

The invention discloses a code repository question and answer method based on a hierarchical code knowledge graph, which comprises the following steps: collecting all files of a target code repository, and preprocessing to obtain code files and text files; generating an abstract syntax tree from the code file, and extracting related entities; carrying out block segmentation on the text file, and extracting to obtain text blocks; constructing a code knowledge graph representing a code structure based on the extracted entities and text blocks; generating a hierarchical code knowledge graph by adopting a community detection algorithm and a hierarchical clustering method, and generating a functional abstract for each community in combination with a large language model; a Monte Carlo tree search-based code warehouse question and answer agent is used for performing question and answer path optimization, an optimal query track is dynamically planned through the steps of node selection, expansion, simulation, reward evaluation and the like, and a path with the highest accumulated reward is selected to generate a final question and answer result. The code knowledge modeling quality and the reasoning accuracy and efficiency of the question answering system can be effectively improved.
Owner:ZHEJIANG UNIV

Code generation method and related equipment

The invention provides a code generation method and related equipment, and relates to the technical field of artificial intelligence. The method comprises the following steps: acquiring a demand description and an example code input by a user; based on the demand description and the example code, obtaining a plurality of tasks and a dependency relationship among the plurality of tasks, the plurality of tasks being used for generating a target code corresponding to the demand description; determining a prompt word matched with each task in preset prompt words; and inputting the plurality of tasks, the dependency relationship and the cue word corresponding to each task into a large language model to obtain a target code corresponding to the demand description. According to the embodiment of the invention, the user does not need to carry out additional model training, the use threshold of the user is greatly reduced, the large model can be guided to generate the code meeting the specific task requirement, and the user satisfaction is improved.
Owner:CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1

Code retrieval method and device for AI programming and related equipment

The invention provides a code retrieval method and device for AI programming and related equipment, and the method comprises the steps: constructing a double-layer embedded vector model which comprises a basic semantic coding layer for parameter freezing and a plurality of independent lightweight adaptation layers which coexist; monitoring implicit feedback data generated by interaction of a user in the target code library to extract positive and negative sample pairs, and mining difficult negative samples based on a current model to form a training sample set; when the cumulative number of the samples reaches a preset trigger threshold value, optimizing and updating at least one lightweight adaptation layer parameter by utilizing a preset comparison loss function, and applying elastic weight constraint to key parameters of the lightweight adaptation layer parameter to obtain an updated double-layer embedded vector model; and performing multi-dimensional performance evaluation on the updated model, and when an evaluation result meets a preset publishing condition, deploying the model to a code retrieval service. The problems that in the prior art, cross-domain is difficult, the adaptation cost is high, and catastrophic forgetting is likely to happen are effectively solved, and zero-labeling self-evolution of the model is achieved.
Owner:KEDA ZHILING (BEIJING) TECHNOLOGY CO LTD

Code generation method and system, electronic equipment and storage medium

The invention provides a code generation method and system, electronic equipment and a storage medium, and relates to the technical field of code generation, and the method comprises the following steps: obtaining target text data of a target test case; inputting the target text data into a pre-trained code generation model; performing word embedding processing on the target text data to obtain a structure word embedding vector, a grammar word embedding vector and a data stream word embedding vector corresponding to the target text data; and performing semantic coding and decoding on the structure word embedding vector, the grammar word embedding vector and the data stream word embedding vector to obtain a target code of the target test case. According to the method, the text data is converted into the structure word embedding vector, the grammar word embedding vector and the data flow word embedding vector, and the target code is obtained by performing semantic coding and decoding on the word embedding vectors in three formats, so that the code writing efficiency is improved; and the generated code has high consistency in the aspects of structure, grammar and data flow, so that the code accuracy is improved.
Owner:CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Code conversion method and device, storage medium and program product

The embodiment of the invention provides a code conversion method and device, a storage medium and a program product. In the code conversion method, a code acquisition operation can be responded, an initial code of a target function object written in a first programming language is acquired, and knowledge information required for converting the initial code into a target code written in a second programming language is acquired in a target knowledge base. And calling a code conversion model, and converting the initial code according to the knowledge information to obtain a target code. Wherein the knowledge information at least comprises functional attribute information and / or programming knowledge information of the target functional object, so that the code conversion model can learn or supplement specific domain knowledge required for converting an initial code written in a first programming language into a target code written in a second programming language, and the target code written in the second programming language can be converted by utilizing the specific domain knowledge. The initial code is converted into the target code meeting the requirement, so that the dependence of the code conversion operation on manpower is greatly reduced, and the cost of the code conversion operation is reduced.
Owner:TAOBAO CHINA SOFTWARE

Software component analysis method oriented to C / C + + source code

The invention provides a software component analysis method oriented to C / C + + source codes, relates to the technical field of software component analysis, and provides a flexible and efficient data collection mechanism, comprehensively constructs a TPL feature library to improve the quality of the feature library, preliminarily filters non-specific TPL functions in combination with a directory structure, reduces noise interference and improves the software component analysis efficiency. The method comprises the following steps: firstly, classifying similar TPLs into the same family by using a clustering algorithm, sharing a certain number of common functions in each family, and meanwhile, including a unique marker function of each TPL, further analyzing a multiplexing relationship between the TPLs sharing the common functions, and removing the common functions which do not belong to a specific TPL range, thereby overcoming the defects related to the birth time of the functions; according to the method, the multiplexing proportion of the target code at the function level and the file level is further comprehensively analyzed, the TPL multiplexing situation of the code is accurately judged, the target code is divided into TPL modules, the dependency relationship between the modules is analyzed through include and extran statements, and therefore more accurate component recognition and dependency analysis are achieved.
Owner:NORTHEASTERN UNIV CHINA

Code generation method and device based on large model, equipment, medium and product

The invention discloses a code generation method and device based on a large model, equipment, a medium and a product, and the method comprises the steps: carrying out the code generation through a first code large model according to target code demand data, and obtaining an initial code; according to the first code snippet, generating a test code through a second code large model to obtain a unit test code; according to the unit test code and the initial code, code repair based on editing distance regularization is conducted through a third code large model, and a to-be-analyzed code is obtained; performing iterative optimization on the to-be-analyzed code and the unit test code to obtain a target code corresponding to the target code demand data; according to the method, code generation, unit test generation and code repair are carried out in a multi-model cooperation mode, the reliability and accuracy of code generation can be effectively improved, software security vulnerabilities are reduced, and therefore the stability and security of a software system are improved.
Owner:CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Intelligent code review method and system

The invention provides an intelligent code review method and system, and relates to the technical field of program testing, and the method comprises the steps: binding a triggering mechanism based on an item needing code review in a code management tool by a developer; submitted local codes are obtained, a background interface is automatically called according to a triggering mechanism, and the local codes comprise incremental codes or full-quantity codes submitted by a developer; if it is determined that the type of the local code is an incremental code, the local code is filtered, and submission information corresponding to a target code meeting a filtering condition is written into a cache to wait for a timed task to execute a review task; when the timed task is executed, the submission information is taken out from the cache, and the target code is split into single submission codes according to the submission information; scoring each submitted code to obtain code scores, and giving review suggestions for the submitted codes; and counting an average score of the plurality of code scores to obtain a comprehensive score corresponding to the target code. The code review efficiency can be improved.
Owner:CHANGJIANG SECURITIES

Software code optimization method, system and equipment based on big data and medium

The invention provides a software code optimization method and system based on big data, equipment and a medium, and relates to the technical field of computers. The method comprises the steps that a target code library and corresponding running log data are acquired, and a first data set is obtained; cleaning, converting and aggregating the first data set from the programming language dimension, the framework dimension and the project specification dimension to obtain a second data set; training a machine learning model by using the second data set, so that the machine learning model can identify code quality, performance bottlenecks and potential defects; analyzing a code module written by a user by using the trained machine learning model to obtain a code analysis result; and according to a code analysis result, generating a corresponding code segment from the target code library, and displaying the code segment by using a visual interface. According to the technical scheme, accurate and comprehensive code optimization suggestions can be given.
Owner:CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD HEBEI BRANCH

Code conversion system and method based on multiple agents

The invention provides a multi-agent-based code conversion system and method. The method comprises the following steps: preprocessing an input source code; performing block processing on the source code to obtain source code blocks, obtaining variable information and array size information of the blocks corresponding to the source code, and integrating the variable information and the array size information into complete variable information; fusing the code description file, the code blocks of the source codes and the variable information of the blocks corresponding to the source codes to generate target code blocks; debugging and checking the target code blocks in combination with the source code blocks; the code description file is used for guiding the intelligent agent to establish a jumping type relation in the code conversion process, and it is ensured that the generated target code better meets the actual function requirement of hardware; a block identifier is inserted into a long code to divide the long code into a plurality of blocks, so that the limitation on long code conversion is relieved; codes of different styles can be output by simply adjusting the cue word of the intelligent agent; through multiple times of debugging verification, the conversion quality of the target code is ensured.
Owner:HEFEI SUXIN MICROELECTRONICS TECHNOLOGY CO LTD