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

96 results about "Code annotation" patented technology

Annotation is a term used in computer programming to refer to documentation and comments that may be found on code logic. Annotation is typically ignored once the code is executed or compiled.

Adaptive code annotation updating method and system, terminal and storage medium

The invention relates to the technical field of software development, and particularly provides a self-adaptive code annotation updating method and system, a terminal and a storage medium, and the method comprises the following steps: confirming that codes are updated, extracting an updated code set, and combining and constructing an abstract syntax tree for the codes; performing semantic analysis on the abstract syntax tree by using a deep learning model to generate a semantic vector, and constructing a program dependency graph based on the semantic vector; analyzing a dependency relationship among code elements in the program dependency graph by utilizing a graph neural network; and generating a code annotation based on the semantic vector and the dependency relationship between the code elements by using a natural language generation model. According to the method, the real-time performance and the accuracy of the code document are ensured, the readability and the maintainability of the code are greatly improved, and the maintenance cost is reduced.
Owner:浪潮智慧科技有限公司 +1

Automated code activity graph generation system and method

The invention relates to an automatic code activity graph generation system and method, and the system comprises a plurality of modules. The source code analysis module extracts source codes from the code file and generates an abstract syntax tree corresponding to the source codes. The model conversion engine is based on query view conversion specification operation, analyzes a method calling relation and an execution sequence in the abstract syntax tree by utilizing a group of analysis rules, and converts the source code into a programming language abstract model. And the model warehouse is used for storing the abstract model, identifying the language type through the extension name of the source code file, and matching the corresponding programming language model. The activity graph generator then generates an activity graph according to the abstract model, including an activity graph reflecting code logic and an activity graph generated based on code annotations. The layout module determines the position, the size and the shape of each node in the activity graph through an analysis method calling relation and an execution path, and generates a connecting line between the nodes. The system can visually display the code process and improve the efficiency of developers.
Owner:HUNAN SANXIANG BANK CO LTD

Method and system for establishing relation between software code and demand tracking

The invention discloses a method and system for establishing a software code and demand tracking relation, and relates to the computer and software engineering technology, and the method comprises the steps: translating a Chinese demand and a code annotation into English, and separating a code logic from an annotation text based on a specified rule; word embedding is carried out on the preprocessed Chinese requirements, the code logic and the annotation text to obtain embedded semantic vector representation; performing hierarchical mixed matching based on the obtained semantic vector representation so as to associate the demand with the code; and fusing the association results through configurable decision logic to determine a final matching result. According to the method provided by the embodiment of the invention, based on a multi-modal semantic alignment technology of the pre-training model, high-precision and robust tracking relation identification is realized by combining deep semantic association of the modeling demand text and the code snippets.
Owner:BEIHANG UNIV

Intelligent contract vulnerability detection method based on code slices and neural network

The invention provides an intelligent contract vulnerability detection method based on code slices and a neural network, and relates to the technical field of contract vulnerability detection, and the method specifically comprises the following steps: carrying out the static analysis of an intelligent contract code; checking a program execution path through depth-first traversal of the control flow diagram, detecting timestamp dependent vulnerabilities and unchecked external call vulnerabilities, and positioning vulnerability paths in the control flow diagram according to nodes corresponding to vulnerability statements; normalizing the smart contract code, removing smart contract code annotations, unifying variables and function naming, not renaming related state information related variables, converting a smart contract code statement into vector representation, and training and updating a vector; constructing a multilayer graph convolutional neural network as a neural network model for training and detecting vulnerabilities; and outputting a detection result by the multilayer graph convolutional neural network. According to the technical scheme, the problem that the intelligent contract vulnerability cannot be accurately and effectively detected in the prior art is solved.
Owner:CHINA UNIV OF PETROLEUM (EAST CHINA)

Code and development document automatic synchronization method based on large model

The invention relates to a method for automatically synchronizing a code and a development document based on a large model, which ensures that the document and the code are always kept consistent by correlating the document and the code and adopting an AI automatic synchronization mechanism, and avoids various development problems caused by manual updating errors or neglecting updating. According to the technical scheme, the method comprises the steps that a development document link is added into a code annotation, a code address is added into a development document, and bidirectional association is formed; and after the development document is changed, an AI synchronization button is clicked, and the AI automatically analyzes the document change and generates a changed code in combination with the business logic of the code. And after the code is changed, an AI synchronization button is clicked, and the AI automatically analyzes the code change and generates a changed development document in combination with the content of the development document.
Owner:SHANGHAI CAIJIANG INTELLIGENT TECH CO LTD

Code annotation generation method and device, electronic equipment, storage medium and product

The invention discloses a code annotation generation method and device, electronic equipment, a storage medium and a product, which are applied to the technical field of computers and are used for solving the problem of low efficiency caused by manual annotation writing in the prior art and effectively ensuring the accuracy and practicability of annotation so as to improve the readability of codes. Determining an annotation prompting rule; the annotation prompting rule comprises a corresponding relation between a code statement type and a code annotation type; analyzing the target program code by utilizing a large language model, and determining a to-be-annotated code snippet in the target program code and semantic information and a statement type of the to-be-annotated code snippet; determining an annotation type corresponding to the to-be-annotated code snippet according to an annotation prompt rule and the statement type of the to-be-annotated code snippet; and generating a target annotation text corresponding to the to-be-annotated code snippet according to the annotation type and semantic information corresponding to the to-be-annotated code snippet, and inserting the target annotation text into an annotation position corresponding to the to-be-annotated code snippet.
Owner:JINAN INSPUR DATA TECH CO LTD

Code annotation quality assurance

Code annotation quality assurance includes calculating complexity of a code portion, extracting one or more annotations associated with the code portion from the code portion, converting the one or more annotations into a set of textual features, quantifying the set of textual features, and outputting the quantified set of textual features. An alignment between the one or more annotations and the associated code portion is determined for the one or more annotations using quantification of the set of textual features and a complexity of the code portion, and a notification is triggered in response to determining that the one or more annotations are not aligned with the associated code portion.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Automobile fault code labeling method and device, computer equipment and storage medium

The invention relates to the technical field of data processing, and discloses an automobile fault code labeling method and device, computer equipment and a storage medium, and the automobile fault code labeling method comprises the steps: carrying out the recognition processing of fault maintenance data, generating structured data, carrying out the standardization processing of the structured data, and generating text verification data; fault code fields and state information are extracted based on the text verification data, preliminary annotation data are constructed, recognition enhancement processing is carried out according to the preliminary annotation data, and fusion annotation data are generated; carrying out maintenance part matching processing on the fusion annotation data to generate image-text annotation structure data; and performing format processing on the image-text annotation structure data to generate target automobile fault code annotation data. According to the method, the labeling capability of the complex maintenance data can be effectively improved, the manual operation burden is reduced, and the efficiency, accuracy and consistency of data labeling are greatly improved.
Owner:THINKCAR TECH CO LTD

Code annotation information processing method and device, computer equipment and storage medium

The invention relates to a code annotation information processing method and device, computer equipment and a storage medium, and belongs to the technical field of code detection. Evaluating the complexity of the code, and determining a complex code according to an evaluation result; obtaining first code annotation information corresponding to the complex code, and preprocessing the first code annotation information to obtain target code annotation information; performing syntactic analysis on the target code annotation information to obtain a syntactic analysis result; and determining and complementing missing information in the target code annotation information according to a syntactic analysis result. According to the method, the completeness and accuracy of the annotation information of the complex code can be remarkably improved, the annotation content is more coherent and clearer, the readability of the complex code is improved, the time of manually compiling and revising the annotation information of the complex code by developers is shortened, and the efficiency of the overall development process is improved.
Owner:JINAN INSPUR DATA TECH CO LTD

Source code obfuscation method and system

The invention discloses a source code obfuscation method and system, and belongs to the technical field of software development. According to the source code obfuscation method, in the preprocessing obfuscation stage, all first compiling units in a source code to be obfuscated are subjected to lexical analysis one by one to obtain corresponding lexical units, and a preprocessing instruction tree is generated according to all the lexical units; confusion is carried out in a corresponding mode based on the category of each preprocessing node in the preprocessing instruction tree, so that the purposes of deleting the to-be-confused source code annotation and expanding an internal header file of the to-be-confused source code annotation are achieved; in the symbol name obfuscation stage, all second compiling units in a first source code are analyzed one by one to obtain an abstract syntax tree, a symbol table is constructed according to the abstract syntax tree, the first source code is compiled based on the symbol table to obtain an obfuscated code, and the purpose of renaming information such as variables, functions and types in the source code is achieved; according to the method, the difficulty of quickly analyzing the source code is improved, and the protection strength of the source code is improved.
Owner:ISOFT INFRASTRUCTURE SOFTWARE

Code abstract generation method and system based on hierarchical context awareness

ActiveCN121957613AOvercoming the lack of context problemEnhance semantic relevanceSemantic analysisBiological modelsPathPingLinguistic model
The invention discloses a code abstract generation method and system based on hierarchical context awareness, and belongs to the field of natural language processing and software engineering. The method comprises the following steps: generating hierarchical annotations for a code warehouse based on a function call graph, firstly extracting a call relationship in the graph and eliminating a ring structure, and then classifying leaf nodes and generating annotations; a topological sequence from bottom to top is adopted in the core step, the importance score of a child node is calculated for each father node, child node annotations, class function descriptions and code bodies of the child nodes are fused, and a large language model is input to generate annotations till the whole graph is covered. The method is suitable for an automatic document generation scene of a complex software project, and through a technical path combining function call graph analysis, child node importance measurement and class function description, the accuracy and semantic consistency of code annotation are improved; the method can be widely applied to the fields of software maintenance, code understanding, intelligent development tools, automatic document generation of enterprise-level code warehouses and the like.
Owner:HANGZHOU DIANZI UNIV

Code annotation generation method and system based on token-level semantic matching

The invention belongs to the technical field of software engineering, and discloses a token-level semantic matching-based code annotation generation method and system, and the method comprises the following steps: obtaining a target code and a data set, carrying out the preprocessing and dividing, and obtaining a training set as a corpus; performing word segmentation on the codes in the corpus by using a word segmentation device of a pre-trained large language model, and extracting and storing a context semantic embedding vector of each token in the codes to form a code semantic warehouse; calculating the lexical similarity between the target code and the code in the corpus, and taking the top k high examples as candidate examples; according to the method, a target code and a candidate sample are subjected to token-level semantic matching, the most similar token in another code segment is matched, the accuracy rate and the recall rate are combined to obtain an F1 score, and the sample with the highest score is reused, the context semantic feature of fine granularity is considered in the aspect of retrieval, the code annotation generation precision is improved, extra training is not needed, and the retrieval efficiency is improved. And the method has good applicability to different scenes.
Owner:HANGZHOU DIANZI UNIV

Method and system for automatic generation of source code comments based on word-level retrieval

ActiveCN116627487BFeature vectorAlgorithm
The application discloses a source code annotation automatic generation method and system based on word-level retrieval and belongs to the field of natural language processing text generation. A training set composed of code function text, code abstract syntax tree and code annotation text is used to train an encoding-decoding network; an overall feature vector of each annotation word in the code annotation text is obtained to construct a near-neighbor word database; for the code function text to be annotated and the abstract syntax tree thereof, a model-based target word probability distribution and an overall feature vector of a target word at a current time step are generated in a self-recurrent manner; K near-neighbor words with the highest similarity to the overall feature vector of the target word are searched in the near-neighbor word database to generate a target word probability distribution based on the near-neighbor words; and the two target word probability distributions are fused to take the target word with the maximum probability as an annotation word generated at the current time step. The application can greatly improve the annotation generation quality of an original model and also improve the generation probability of low-frequency words in code annotation.
Owner:ZHEJIANG UNIV

Code annotation generation method based on large language model and multi-modal comparative learning

The invention discloses a code annotation generation method based on a large language model and multi-modal comparative learning, which comprises the following steps: firstly, designing a universal prompt template to help the large language model to generate similar code segments, and introducing the thought of gradually generating a thinking chain into the prompt template to effectively improve the accuracy of a generation result; meanwhile, the realization modes and styles of the generated similar code segments and source codes are variable, and the quality is higher; secondly, aligning source codes, similar codes and annotations thereof through multi-modal comparative learning, and enhancing the understanding and matching capability of the model on semantic relationships between the codes, the similar codes and the annotations by designing intra-modal comparative learning and inter-modal comparative learning, so as to better capture deep association of the similar codes, the annotations and the source codes; and finally, designing an evaluation method based on a large language model, and more comprehensively evaluating the quality of the generated annotations from four aspects of correlation, integrity, clarity and understandability by means of the understanding ability of the large language model.
Owner:SICHUAN UNIV

System and method for non-intrusive automated trusted operator migration

The present disclosure provides systems and methods for non-intrusive automated trusted operator migration. According to an aspect, a method for executing code in a secure environment is provided. The method includes receiving code including an annotated portion and an unannotated portion. The annotation portion indicates a portion of the code for secure execution. The method may also include constructing a trusted application (TA) corresponding to the annotated portion in a trusted execution environment (TEE). The method may also include constructing a client application (CA) corresponding to the unannotated portion in a rich execution environment (REE).
Owner:HUAWEI TECH CO LTD

Calling link acquisition method, electronic equipment and program product

The invention provides a call link acquisition method, electronic equipment and a program product. The call link acquisition method comprises the following steps: acquiring a sub-branch code and a main branch code related to the sub-branch code; comparing the main branch code with the sub-branch code to obtain a code modification point of the sub-branch code; obtaining code annotations of the sub-branch codes; and obtaining a calling link of the code modification point from the sub-branch code according to the code annotation of the sub-branch code.
Owner:KE COM (BEIJING) TECHNOLOGY CO LTD

Automatic code generation method and system for some / ip data type

PendingCN122308840ACode generationData class
This application discloses an automatic code generation method and system for SOME / IP data types, relating to the field of vehicle system development. The method includes: S1, data dictionary reading: obtaining the data dictionary for SOME / IP protocol communication; S2, data type classification, identification, and processing: opening the Excel file from step S1, classifying each row of data in the worksheet, and performing specific parsing processing for different types; S3, multi-round iterative dependency resolution: using a multi-round scanning strategy to resolve nested dependencies between various data types; S4, naming standardization processing: standardizing the names of each parsed data type according to preset naming rules; S5, standard code generation and output: converting all data types that have undergone naming standardization processing into type definition code conforming to C language specifications; simultaneously converting the value range, precision, unit, and Chinese description metadata in the data dictionary of the Excel file into code comments, generating a C language header file that can be included in the compilation project.
Owner:CHINA FAW CO LTD

A low-code management system and method based on AIot Internet of Things

The present invention discloses a low-code management system and method based on the AIot Internet of Things, relating to the technical field of code management. The present invention includes a template learning and optimization module, a component dynamic adaptation module, a requirement conversion module, a code annotation generation module, and a code compatibility conversion module; the template learning and optimization module is used to automatically refine optimization points and update template settings by analyzing historical cases and user data, so as to improve the applicability of the template in actual applications. In the present invention, through the template learning and optimization module, in-depth analysis of historical cases and user data is realized, optimization points are automatically refined and template settings are updated, significantly improving the applicability and development efficiency of the template in actual applications. Through the automated template update process, manual intervention is reduced, development costs are lowered, and at the same time, the stability and compatibility of the system are maintained.
Owner:TIANJIN SENYUEXING INTELLIGENT TECH CO LTD

A marking method for arbitrary code fragments and its retrieval system

The present application discloses a method for annotating arbitrary code snippets and a retrieval system thereof, which relates to the field of machine learning. The method comprises: establishing a code snippet database, activating a multidimensional feature annotation model, performing code snippet annotation, and establishing a first annotation result; calling an adaptive annotation network, utilizing the adaptive annotation network to perform contextual backtracking analysis on the code snippets in the database, and establishing a second annotation result; performing static and dynamic fusion analysis on the database, establishing joint functional similarity, and establishing a third annotation result; performing code version change annotation, and establishing a fourth annotation result; and performing code annotation retrieval management based on the four annotation results. The method solves the technical problem of low management efficiency and retrieval accuracy of code snippets due to the high complexity of code snippets in multidimensional feature annotation, and achieves the technical effect of improving the annotation accuracy and retrieval efficiency of code snippets by combining multidimensional annotation with adaptive backtracking analysis.
Owner:XIAN QIKE HOUDE INFORMATION TECHNOLOGY CO LTD

A software testing method, apparatus, device, and medium

This application discloses a software testing method, apparatus, device, and medium, relating to the field of software testing technology. The method includes: determining the software test cases to be evaluated and identifying several corresponding source code files; parsing each source code file to obtain code comments, and parsing the software test cases to obtain relevant case information, and saving this information to a preset case information list; performing a quality assessment on the code comments; if the quality assessment passes, obtaining code-related information from several source code files based on the code comments and saving this information to a preset code information list; comparing and matching the information in the preset code information list and the preset case information list using preset natural language processing technology, determining whether the coverage of the software test cases meets preset coverage conditions based on the matching results, and performing software testing operations on several source code files based on the software test cases after determining that the preset coverage conditions are met.
Owner:湖南长银五八消费金融股份有限公司

A code comment generation method and device based on a sequence generation adversarial network

The present invention proposes a method and device for generating code comments based on a sequence generative adversarial network. By introducing reinforcement learning, the effect of code comment generation is further improved. Complete code comments can help developers quickly understand the corresponding code content and greatly improve development efficiency. In order to reduce the workload of developers outside development while ensuring the completeness and quality of code comments, the task of code comment generation is proposed. Since the generation effect of current common code comment generation algorithms is limited, in order to further improve the effect, after constructing a generation network based on a graph neural network and a discriminant network based on a convolutional neural network, the present invention introduces a sequence generative adversarial network, and completes the transfer of the loss function gradient between the generation network and the discriminant network through the policy gradient method to establish an adversarial relationship. The present invention goes through three training stages in total and finally obtains a generation network with a better generation effect.
Owner:ZHEJIANG UNIV

Code annotation generation method, device, electronic device, storage medium and product

The present invention discloses a code comment generation method, device, electronic device, storage medium and product, which are applied to the field of computer technology to solve the low efficiency problem caused by existing manual annotation writing, can effectively ensure the accuracy and practicality of the annotation, and thus improve the readability of the code. The method includes: obtaining target program code and determining annotation prompt rules; the annotation prompt rules include the correspondence between code statement types and code annotation types; using a large language model to analyze the target program code, determine the code fragment to be annotated in the target program code and the semantic information and statement type of the code fragment to be annotated; determine the annotation type corresponding to the code fragment to be annotated according to the annotation prompt rules and the statement type of the code fragment to be annotated; generate the target annotation text corresponding to the code fragment to be annotated according to the annotation type and semantic information corresponding to the code fragment to be annotated, and insert it into the annotation position corresponding to the code fragment to be annotated.
Owner:JINAN INSPUR DATA TECH CO LTD

Interface management method, system and equipment and storage medium

The invention relates to the technical field of code compiling, and particularly discloses an interface management method, an interface management system, computer equipment and a computer readable storage medium. The interface management method comprises the steps that an annotation processor is injected into a project management tool, and when project source code compiling is executed, the annotation processor extracts interface metadata in a compiling file compiled by the project management tool and associates the interface metadata with code annotations of the interface metadata in the project source code; the technical problem that the accuracy and the generation timeliness of the interface management document are poor is solved, the annotation processor is introduced to generate the interface management document in the project source code compiling period, and the generation efficiency of the interface management document is improved.
Owner:BEIJING BAIJU YIXING TECH CO LTD

Code annotation generation method and device, equipment, storage medium and program product

The invention relates to the technical field of computers, and provides a code annotation generation method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining a to-be-analyzed SQL code; based on a large language model, generating an SQL code blood relationship of the to-be-analyzed SQL code; generating business knowledge based on the SQL code blood relationship; and based on the SQL code consanguinity and the business knowledge, generating a code annotation of the to-be-analyzed SQL code through the large language model. By means of the mode, it can be avoided that the generated code annotation is too technically or abstractly generated, the service logic and the service target of the code can be effectively reflected, the code annotation has better readability and understandability, and the influence on subsequent development and maintenance of software is reduced.
Owner:CHINA MOBILE GROUP ZHEJIANG +1

A source code annotation generation method and device, a storage medium and a computer device

A source code annotation generation method and device, a storage medium and a computer device are provided. When automatically annotating source code, the source code to be annotated and the bytecode of the source code to be annotated are first obtained. The bytecode can identify source codes with the same function but different implementation manners. Then, based on a preset word embedding matrix, a text word vector of the source code to be annotated and a bytecode word vector of the bytecode are determined. The text word vector can capture the semantic and syntactic information between the strings of the source code to be annotated. After the text word vector and the bytecode word vector are determined, the text word vector and the bytecode word vector are spliced to form a spliced word vector. The spliced word vector is used to generate an annotation result of the source code to be annotated. In this way, the annotation of the codes with the same function but different implementation manners is constrained, confusion and ambiguity are avoided, and the accuracy of the annotation result is improved.
Owner:SUN YAT SEN UNIV

Large model code generation method based on multi-feature improved Ptuning-V2

The invention discloses a large model code generation method based on multi-feature improved Ptuning-V2, which comprises the following steps that: aiming at a source code, multi-source features are extracted and fused from three dimensions of text, consumption and image, and the text features comprise code vectors, grammar structures and execution process features; the consumption features comprise code annotation, time and space complexity features; and the image features are used for processing a structure chart and a flow chart of the code by utilizing a visual converter. And injecting final semantic features generated after weighted fusion into a P-tuning V2 fine tuning algorithm in each layer of the base large model, so that the final semantic features, learnable prompt vectors and an input sequence jointly participate in self-attention calculation. According to the method, rich priori knowledge is provided for the prompt vector by deeply fusing the multi-dimensional characteristics of the code, the understanding ability of the model for the code structure, logic and performance is remarkably enhanced, and the accuracy, logic completeness and practicability of the generated code are effectively improved while the advantage of efficient fine tuning of parameters is kept.
Owner:NANJING HAOLIN TECH CO LTD

Cross-service call graph construction method for Java micro-service framework

The invention discloses a Java micro-service framework-oriented cross-service call graph construction method, which comprises the following steps of: S1, processing a to-be-detected target program and a related configuration file to obtain a result IR for static analysis; s2, performing pointing analysis on the IR generated in the step S1, and generating a pointing flow graph and a preliminary calling graph in the single micro-service; s3, in combination with a configuration file and a code annotation related to service communication in the target program, through remote procedure call (RPC) and message-based communication (MBC) API semantics provided by a modeling micro-service framework, communicating directional flow diagrams and call diagrams of a plurality of micro-services; and S4, on the basis of analysis results of the steps S2 and S3, constructing a complete cross-service call graph. Compared with a traditional Java application-oriented call graph construction method, the method has the advantages that a service communication mechanism of the micro-service framework is modeled, so that a cross-service communication path is analyzed, a complete cross-service call graph is effectively constructed, and basic support is provided for tasks such as dependency analysis and security detection of the micro-service framework.
Owner:NANJING UNIV

Source code comment generation system and source code comment generation method

A source code comment generation system: has term information in which terms used in a design document inputted to the source code comment generation system and meanings of the terms are associated with each other; divides source code into source codes in prescribed scope units; and, on the basis of a term having a meaning in a prescribed relationship with the meaning of the source code in scope units, the source code in scope units, and a prescribed language model, generates commented-upon source code that includes a comment in prescribed scope units for the source code in scope units.
Owner:HITACHI LTD

Code annotation inconsistency detection method based on large model and related device thereof

The invention discloses a code annotation inconsistency detection method based on a large model and a related device thereof, code annotations of a target type in a smart contract are screened in combination with a binary classification method of mixed prompt, recognition can be well carried out according to a semantic form instead of a grammatical form, and then corresponding functions of the code annotations of the target type are extracted, so that code annotation inconsistency detection is realized. Obtaining source code fragments related to corresponding functions so as to carry out consistency identification on annotation-code pairs, and after fine adjustment is carried out on the annotation-code pairs which are input into a pre-training code generation model based on a consistency identification result, learning association of annotations and codes through the pre-training code generation model; the code annotation inconsistency detection result is obtained, the ambiguity problem is avoided, and the technical problems that according to an existing code annotation detection method, annotation texts cannot be accurately matched, and due to the fact that some annotated entities have semantic ambiguity, misjudgment is likely to happen when similarity analysis is conducted on the annotated entities and code facts are solved.
Owner:SUN YAT SEN UNIV

Programming cognitive enhancement system and method based on augmented reality and generative AI

The invention discloses a programming cognitive enhancement system and method based on augmented reality and generative AI, and relates to the field of programming education, the system comprises an augmented reality device layer, a data processing layer and an artificial intelligence generation layer; according to the method, code semantic information is extracted by using an abstract syntax tree, the code semantic information is mapped into a three-dimensional logic topological graph, user watching duration information is obtained through eye movement tracking, code annotations of corresponding levels are generated, and logic derivation animations of codes are generated and displayed in real time by adopting a generative artificial intelligence technology. The tactile feedback device is used for providing corresponding physical feedback signals for the user according to the code exception type, the problem that complex code logic is difficult to visually display in the prior art is effectively solved, and the method can be applied to multiple scenes such as programming education and program debugging.
Owner:YANGTZE UNIVERSITY