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

130 results about "Abstract syntax" patented technology

In computer science, the abstract syntax of data is its structure described as a data type (possibly, but not necessarily, an abstract data type), independent of any particular representation or encoding. This is particularly used in the representation of text in computer languages, which are generally stored in a tree structure as an abstract syntax tree. Abstract syntax, which only consists of the structure of data, is contrasted with concrete syntax, which also includes information about the representation. For example, concrete syntax includes features like parentheses (for grouping) or commas (for lists) which are not included in the abstract syntax, as they are implicit in the structure.

System and method for vulnerability localization based on deep learning

The present disclosure relates to a system and method for vulnerability localization based on deep learning, which comprises, at a minimum, a processor configured to: analyze a code file under detection to obtain a first abstract syntax tree devoid of semantic information; build upon the first abstract syntax tree by incorporating data-flow edges and / or control-flow edges, thereby forming a second abstract syntax tree with semantic-flow enhancement; split the second abstract syntax tree to obtain a plurality of second abstract syntax sub-trees; and input these second abstract syntax sub-trees into a pre-established vulnerability detection and localization model. Compared with existing code vulnerability detection methods, the present disclosure employs a semantically-enhanced abstract syntax tree and finely-grained segmentation thereof, enabling both the efficient detection and accurate localization of code vulnerabilities, characterized by swift detection rates, low false positive rates, and commendable interpretability of the detection results.
Owner:HUAZHONG UNIV OF SCI & TECH

Self-adaptive SQL (Structured Query Language) differential privacy noise adding method

The invention discloses a self-adaptive SQL differential privacy noise adding method, and relates to the technical field of data protection. In order to accurately calculate and add noise of a proper magnitude in a complex SQL statement, the adopted scheme comprises the following steps: regularly collecting and updating metadata of a database, analyzing attribute features of a data table, and forming a data attribute feature library and a corresponding data sensitivity library; the SQL query request is rewritten into an abstract syntax tree and traversed, and an aggregation function, multi-table connection and a sub-query structure are recorded; key semantic information contained in the request is bound with the data sensitivity library, the sensitivity of the request is calculated, and a privacy budget is distributed in a self-adaptive mode; the privacy budget allowance is checked, when the allowance is sufficient, a data disturbance mechanism meeting-differential privacy is used for disturbing the query result, a disturbed result is obtained, and otherwise, the request is rejected. The method is used for accurately calculating the dynamic allocation privacy budget according to the characteristics of the complex SQL query.
Owner:INSPUR SOFTWARE TECH CO LTD

Software defect prediction method and system

The invention belongs to the technical field of software defect prediction, and provides a software defect prediction method and system.The method comprises the steps that a source code file contained in a software system is analyzed into an abstract syntax tree, feature nodes and label nodes are extracted from the abstract syntax tree, a control flow and data flow dependency relationship between code lines is extracted, and a line attribute graph is constructed; generating a grammar representation vector of the feature node, calculating a multi-label comparison learning loss value, and gradually generating a file representation vector; and carrying out a code line level software defect prediction task by utilizing the attention weight generated in the generation process of the obtained file representation vector, and carrying out file level defect prediction by utilizing the obtained file representation vector. According to the method, the grammar and semantic information of the source code can be comprehensively mined, information contained in the source code is more completely represented, and a module with hidden defects is more accurately predicted.
Owner:SHANDONG UNIV

Industrial control protocol configuration method and device, computer equipment and storage medium

The invention discloses an industrial control protocol configuration method and device, computer equipment and a storage medium, belongs to the technical field of power grid energy storage, and is applied to an EMS energy storage system. The method comprises the following steps: obtaining a to-be-configured industrial control protocol document, performing format conversion on the to-be-configured industrial control protocol document to obtain a standard protocol description file, obtaining a preset protocol analysis algorithm, and analyzing the standard protocol description file based on the protocol analysis algorithm to obtain a protocol analysis result; and importing the protocol analysis result into a pre-constructed abstract syntax tree, generating an analysis tree corresponding to the to-be-configured industrial control protocol document, and storing the analysis tree corresponding to the to-be-configured industrial control protocol document into an industrial control system. Automatic analysis and automatic configuration of the new industrial control protocol are achieved by combining the protocol analysis algorithm and the abstract syntax tree, and compared with a traditional manual configuration mode, the method can reduce time and energy spent by a developer in new protocol configuration, shorten the development period and improve the system stability at the same time.
Owner:XIAMEN BEICHENXING ENERGY STORAGE DEV CO LTD

Fixed function shared accelerator

Systems and methods for generating fixed function shared accelerators (FFSAs) implement and / or comprise operations of receiving source code, the source code indicating a plurality of workloads to be performed by an electronic circuit; generating a plurality of abstract syntax trees (ASTs) based on the source code, wherein respective ones of the plurality of ASTs include a plurality of nodes corresponding to function instructions; generating a plurality of fingerprinting vectors corresponding to the plurality of ASTs, wherein respective ones of the plurality of fingerprinting vectors encode at least one of a number of nodes, a number of edges, a density, a computation intensity, an operands percentage, a control, or a data dependency; and providing the plurality of fingerprinting vectors to a machine learning (ML) model, wherein the ML model is configured to predict similarities between different ones of the plurality of workloads and to output at least one candidate FFSA.
Owner:TRUSTEES OF TUFTS COLLEGE

Intelligent contract vulnerability detection method based on heterogeneous graph attention network

The invention discloses an intelligent contract vulnerability detection method based on a heterogeneous graph attention network. According to the method, firstly, the source code of the intelligent contract is preprocessed, the SCIR of the code of the intelligent contract is constructed, the complexity of the code of the contract is reduced, and vulnerability features are enriched; and constructing an intelligent contract code attribute graph SCPG based on SCIR, integrating various code graph structures such as an abstract syntax tree and a control flow graph, and comprehensively describing syntax and semantic features of the contract. And then constructing an intelligent contract code heterogeneous graph SCHG on the basis of the SCPG, optimizing code graph structure representation, and realizing high-quality modeling of node features. And finally, detecting the vulnerability of the smart contract by using a customized multi-layer heterogeneous graph attention network model MHGAN. The intelligent contract vulnerability detection method based on deep learning makes up for the defects of an existing intelligent contract vulnerability detection method based on deep learning, effectively improves the accuracy of intelligent contract vulnerability detection, and is excellent in the interpretability of the detection result.
Owner:HANGZHOU DIANZI UNIV

Method for converting C + + code into CUDA-C code

The invention relates to the technical field of computers, and discloses a method for converting a C + + code into a CUDA-C code, and the method comprises the steps: receiving a C + + source code, carrying out lexical analysis and grammatical analysis, generating an abstract syntax tree, and carrying out semantic analysis to ensure that the source code is correct semantically; analyzing the abstract syntax tree, identifying a data dependency relationship among the calculation tasks, and determining loop statements and conditional statements in the source code; and converting a loop statement and a conditional statement in the source code into a kernel function, a thread block and a thread management code corresponding to the CUDA, and further generating a corresponding compilable source file. According to the method, the abstract syntax tree of the C + + code is analyzed, the parallelism in the abstract syntax tree is analyzed, the code is optimized, the CUDA-C efficient code is generated, then efficient automatic conversion of the code is achieved, and the method has great significance in accelerating program performance and shortening the development period.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Private intelligent code collaborative optimization method and system based on graph retrieval

The invention provides a private intelligent code collaborative optimization method and system based on graph retrieval, and relates to the technical field of software engineering intelligent auxiliary tools, and the method comprises the steps: obtaining a source code file and operation log data of a private project; the method comprises the following steps: performing syntax tree analysis on a source code file through a Tree-siter analyzer to generate a corresponding abstract syntax tree; constructing a code knowledge graph by analyzing a function call relationship, an inheritance relationship and a module dependency relationship; monitoring the change of a project file in the code knowledge graph through a code change event processor, and updating the code knowledge graph in real time when the file is changed; establishing an association relationship between the running log data and a corresponding function node in the code knowledge graph; the method comprises the following steps: analyzing a natural language problem of a developer into a Cypher query statement through an intelligent Agent; obtaining a query result from the graph database; and formatting the query result to generate a final result.
Owner:QINGTA TECH

Validating code generated by artificial intelligence using abstract syntax trees

Validating code generated by artificial intelligence using abstract syntax trees includes generating, by an artificial intelligence (AI) language model, output source code based on input source code; determining an equivalency mapping between a first abstract syntax tree (AST) constructed for the input source code and a second AST constructed for the output source code; and indicating, based on the equivalency mapping, a validation result for the output source code.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Fuzzy test-based software vulnerability detection method

The invention discloses a software vulnerability detection method based on fuzzy testing, and relates to the technical field of software vulnerability detection, and the method comprises the following steps: S1, obtaining a software source code, and preprocessing the obtained software source code to enable the preprocessed source code to have generalization, therefore, the accuracy of a detection result during subsequent vulnerability detection on the source code is improved. The invention provides a software vulnerability detection method based on fuzzy testing, and the method comprises the steps: carrying out the standardization processing of a source code file, so as to eliminate the deviation in the software source code file during the subsequent vulnerability detection of a software source code due to the programming habit of a code writer; the feature representation processing is performed on the source code file through the abstract syntax tree and the program dependency graph, so that the semantic features of the source code are represented more comprehensively, and the constructed software vulnerability detection model can set different noise thresholds based on the noise content in the input different source code files.
Owner:GUANGDONG GUANJI TESTING & CERTIFICATION CO LTD

Augmenting source code representation models with abstract syntax trees using tree traversal algorithms

In an embodiment, a computer generates a multi-sequence vector that contains a plurality of distinct sequences of distinct nodes of a parse tree of source logic. Based on the multi-sequence vector, the computer trains a logic encoder. After training and in a production environment, the logic encoder infers a fixed-size encoded logic from new source logic. Based on the fixed-size encoded logic, the new source logic is detected as anomalous by an anomaly detector. Both of the logic encoder and the anomaly detector are machine learning models and, herein, they may be separately trained. In an embodiment, the logic encoder is based on a natural language processing (NLP) language model architecture such as bidirectional encoder representations from transformers (BERT), or novel training herein may be self-supervised according to skip-gram for use with an unlabeled training corpus.
Owner:ORACLE INT CORP

Code calling visualization control method and system based on AST

The invention provides a code calling visualization control method and system based on AST. The AST-based code calling visualization control method comprises the following steps: constructing an abstract syntax tree by analyzing source code files corresponding to different code units, and representing a code structure and grammar through the abstract syntax tree; performing code analysis on different code units to obtain a dependency relationship among the different code units; traversing the abstract syntax trees corresponding to the different code units respectively, and obtaining a dependency relationship between codes contained in the code units according to information data contained in the abstract syntax trees; and visually displaying the dependency relationship among the different code units and the dependency relationship among the codes contained in the code units. The system comprises modules corresponding to the steps of the method.
Owner:BEIJING LINGWEI JUNRONG TECH CO LTD

Code warehouse commit query language automatic generation method based on auxiliary task enhancement

The invention provides an automatic commit query language generation method based on a transformation system for a code warehouse, which comprises the following steps of: specifying a corresponding abstract syntax description language ASDL according to the syntax of the commit query language, and constructing a corresponding transformation system under the guidance of the ASDL; a series of tree construction operations in a conversion system are utilized to complete conversion of natural language input into an abstract syntax tree AST, by adding two auxiliary tasks, a model better learns and integrates external domain knowledge, the model training and prediction precision is improved, a corresponding conversion function is specified according to the syntax of a commit query language, and the conversion efficiency is improved. And completing the conversion from the abstract syntax tree AST to the commit query language through the other part of the conversion system, and realizing the automatic generation of the commit query language.
Owner:张一润

Similarity comparison-based large model supply chain automatic repair method and device

The invention discloses a similarity comparison-based large model supply chain automatic restoration method and device, and the method comprises the steps: firstly carrying out the semantic coding of an original vulnerability code through a pre-training model, and constructing a semantic and structure parallel dual-channel representation in combination with an abstract syntax tree and other program structures; cWE type intelligent classification is performed on vulnerabilities by using a locally deployed large language model subjected to LoRA fine tuning, and meanwhile, a zero sample semantic matching mechanism is introduced, so that the recognition capability of unknown vulnerability types is improved. And searching the closest historical case from the knowledge base through similarity vector comparison, and extracting a repair abstract to construct a model to generate a prompt. Patch codes and repair instructions are generated through a large model, automatic filing and knowledge base updating are supported, and the continuously-enhanced automatic repair capacity is achieved. The method can be widely applied to automatic vulnerability repair scenes of supply chain components such as large model plug-ins, code interfaces and dependent packages, and the safety, functionality and interpretability of code repair patches are greatly improved.
Owner:TSINGHUA UNIVERSITY

Code compiling detection method and automatic compiling platform

The invention relates to the technical field of electric digital data processing, in particular to a code compilation detection method and an automatic compilation platform, and the code compilation detection method comprises the following steps: obtaining a to-be-compiled code, constructing an abstract syntax tree according to the to-be-compiled code, and matching the abstract syntax tree with a plurality of historical normal abstract syntax trees; determining an optimizable detection sub-tree and non-optimizable detection sub-trees, determining unmatched nodes in the optimizable detection sub-tree, and determining correlation among the non-optimizable detection sub-trees when the number of the non-optimizable detection sub-trees is multiple, and dividing the code to be compiled into two types, namely the optimizable detection sub-tree and the non-optimizable detection sub-trees; compilation detection is performed in a targeted manner, compiling detection is performed on unmatched nodes through a preset rule method, and compiling detection is performed on sub-trees which cannot be optimally detected according to correlation and the preset rule method, so that parts which actually need compilation detection are reduced, the detection time is shortened, and the detection efficiency is improved.
Owner:ARCHITA (SHANGHAI) SOFTWARE TECHNOLOGY CO LTD

Buildless dependency fetching

Some embodiments construct a set of build dependencies for a program without a full set of build instructions. The build dependency set is constructed without piggy-backing on a build process that would produce an executable version of the program. Representations of the program's structure, such as expression types, call targets, symbol tables, abstract syntax trees, and other internal compiler data structures, are emitted to persistent non-volatile storage instead of being used only as intermediate steps for executable code generation. Security analysis can then utilize the program representations. Licensing analysis can also utilize the dependency set to identify program components and their storage locations.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Domain confrontation cross-project software defect prediction based on context semantics

InactiveCN118567651AImprove defect prediction capabilitiesReduce data distribution varianceNeural learning methodsCode compilationTheoretical computer scienceBag-of-words model
The invention discloses domain confrontation cross-project software defect prediction based on context semantics. The domain confrontation cross-project software defect prediction comprises the following steps: S1, program code analysis; s2, word vector generation: traversing a node sequence from AST, converting the node sequence into a numerical vector, regarding a node of the abstract syntax tree as a word in a natural language, generating a corresponding word vector to convert the node sequence, and capturing a semantic relationship between context vocabularies by using a CBOW model based on hierarchical softmax; and S3, establishing a migration model and predicting defects. According to the method, mark vectors can be extracted from abstract syntax trees of source codes and target codes, a word vector table is constructed through a continuous word bag model, feature extraction is performed by using a bidirectional gating loop unit and a full connection layer, and finally defect feature transfer between a source project and a target project is realized by using a domain adversarial learning means. Therefore, the cross-project defect prediction capability is improved.
Owner:HUZHOU UNIVERSITY

Method and code generator controller to generate set of source code files

A code generator controller is configured to receive a plurality of test models and generate a set of source code files based on code templates. Moreover, the test models cover all possible code templates. Moreover, the code generator controller is further configured to generate an annotation file comprising annotations for each generated set of source code files. The annotations indicate which templates were used to produce the computer code instructions generate an annotation abstract syntax tree for each annotation file generate a code abstract syntax tree for each generated set of source code files and generate one superior abstract syntax tree structure representing all possible outputs for the code generator based on the code abstract syntax trees and the annotation abstract syntax tree.
Owner:YINWANG INTELLIGENT TECHNOLOGIES CO LTD +1

Code verification and attribution using semantic analysis

Systems and methods are provided for attributing source code, including ingesting source code from a plurality of repositories, normalizing the ingested source code using abstract syntax trees (ASTs), and converting the normalized source code into vector embeddings that represent syntactic and semantic features of the source code. Unique fingerprints are generated from the vector embeddings, the fingerprints are compared against a vector database to identify potential matches and verify code attribution, and feedback and alternative code suggestions are provided based on the comparing the fingerprints.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Cross-language software vulnerability detection method and device

The invention relates to a cross-language software vulnerability detection method and device, and the method comprises the steps: carrying out the analysis of a Joern static analysis pair, carrying out the integration and semantic enhancement of an abstract syntax tree, a control flow graph and a data dependence graph, and obtaining a cross-warehouse heterogeneous code graph; obtaining cross-language intermediate representation based on a compiler framework; after the cross-language intermediate representation and the cross-warehouse heterogeneous code graph are modeled, weighted fusion is carried out through a gated cross attention mechanism, and a multi-modal data set is obtained; carrying out migration training on the multi-modal cross-language vulnerability detection model, and carrying out vulnerability detection on cross-language software to obtain a detection result; through multi-modal data fusion and modeling, in combination with cross-language intermediate representation and a cross-warehouse heterogeneous code graph, the defects of a traditional method in the aspects of cross-language generalization ability and context reasoning ability are effectively overcome; the method has the advantages that the generalization ability of cross-language vulnerability detection is improved, the false alarm rate and the missing report rate are reduced, and the comprehensive utilization effect of global structure information is enhanced.
Owner:WSGRI SMART CITY(WUHAN) ENGINEERING TECHNOLOGY CO LTD

Computing device and method for text-to-SQL semantic parsing

A computing device (800) configured to: receive (701) a database query (302) in a natural language and database information (303) comprising a schema; receive (702) a preliminary query (307) in structured query language; select (703) schema elements; select (704) examples each comprising a respective pair of natural language and structured query language queries, in dependence on respective structural similarities between the preliminary query and the structured query language query of a respective pair represented as normalized abstract syntax trees; form (705) a prompt (312) based on the selected schema elements and examples; and input (706) the prompt to a large language model (313) to form an output query (314) in structured query language. This may allow output queries to be formed using examples in the prompt that have semantic similarity with respect to the input query and the expected SQL, with the ability to support new domains with limited data.
Owner:HUAWEI TECH CO LTD +1

Homework correcting method based on image recognition

The invention discloses a homework correction method based on image recognition, relates to the technical field of homework correction, and comprises the following steps: breaking through the limitation of the existing homework correction technology on surface processing of consecutive characters, and bringing consecutive deformation into an expression intention analysis framework through linkage of stroke topological characteristics and semantic compensation; metaphor words intensified by students deliberately, such as a s with lengthened strokes, can be recognized, and the rhetorical structure is prevented from being misjudged as word use errors; the method comprises the following steps of: forcibly merging and eliminating the segmentation of physical paging on a long rhetorical sentence through a cross-row syntax tree, and ensuring that a not only... but also type emphasis sentence is completely analyzed; a dynamic visualization mechanism is adopted to convert an abstract grammar rule into a perceptible scene: a time axis animation of a tense error visually presents dislocation of an action and a time node, and a depth rhetorical analysis triggered by a hand-drawn wavy line accurately marks a metaphor ontology-metaphor body mapping relationship, so that students can understand the essence of the error at a glance.
Owner:BEIJING CETEN EDUCATION TECH GRP CO LTD

Program dependent component amalgamation

Some embodiments construct a set of build dependencies for a program without access to a full set of build instructions. When multiple clashing name resolutions are identified for a particular dependency, a union of the alternative versions is formed. Intermediate representations of the union of program versions, such as symbol tables, abstract syntax trees, and other internal compiler data structures, are emitted to persistent non-volatile storage, instead of using a single resolution to create temporary intermediate data to build an executable program. Security analysis and licensing analysis utilize the persisted program representations to analyze the union of multiple overlapping but different versions of the program.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Structured query statement similarity detection method and apparatus, and device

A structured query statement similarity detection method, a device and a medium are provided. The method includes: acquiring first and second structured query statements, and constructing corresponding first and second abstract syntax trees, a correlation degree between the root node in the abstract syntax tree and the query result of the statement being higher than a correlation degree between other nodes and the query result of the statement; traversing a node in the first abstract syntax tree, matching the traversed node with a node at a same level in the second abstract syntax tree, and obtaining a matching result of the node; and determining a statement similarity between the first structured query statement and the second structured query statement based on a matching result of a root node in the first abstract syntax tree, a matching result of a child node of the root node, and their corresponding weights.
Owner:BEIJING VOLCANO ENGINE TECH CO LTD

Memory management method and device, electronic equipment and computer storage medium

The invention discloses a memory management method and device, electronic equipment and a computer storage medium, and belongs to the field of data communication and software engineering. The method comprises the following steps: acquiring an abstract syntax mark ASN file, and detecting a static structure array element in the ASN file; replacing the static structure array element with a dynamic pointer element, and adding a dynamic memory mark for the dynamic pointer element; when the ASN file is converted into a C / C + + library file, converting the dynamic pointer element to generate a pointer data structure; during encoding and decoding, the dynamic memory is allocated for the pointer data structure according to the dynamic memory mark, the C / C + + library file generated by the ASN file is fully automatically optimized, the structural body array is converted into the pointer data structure, the memory space of only one pointer can be allocated for the pointer data structure, and compared with the allocation of the fixed memory space, the occupation of the static memory is greatly reduced; the problems that the data structure in the C / C + + code generated by the ASN is redundant and a large amount of memory is occupied are solved.
Owner:深圳市微合科技有限公司

Intelligent contract vulnerability detection method based on graph neural network

The invention provides an intelligent contract vulnerability detection method based on a graph neural network, and the method comprises the steps: extracting a program control flow diagram and an abstract syntax diagram from an intelligent contract code, inputting the program control flow diagram and the abstract syntax diagram into the graph neural network, converting the program control flow diagram and the abstract syntax diagram into high-dimensional feature vectors, and carrying out the classification. The intelligent contract vulnerability detection taking the contract source code and the byte code as input is realized; for a contract without a source code deployed on a block chain, intelligent contract vulnerability detection only for an intelligent contract EVM byte code is realized; compared with a traditional static analysis method, one of the biggest advantages is that the operation speed is high, and the method has high detection efficiency under the condition that the detection performance is guaranteed; meanwhile, other existing methods often only research the condition of detecting a single vulnerability, and on the basis of the method, multiple vulnerabilities can be detected at the same time, and good vulnerability detection performance is achieved only through byte codes.
Owner:BEIJING INST OF TECH

Smart contract security detection methods, systems, equipment, terminals and applications

The present invention belongs to the field of blockchain security technology, and discloses a smart contract security detection method, system, device, terminal and application. The smart contract security detection method includes: using open source code to train a word2vec model; encapsulating the open source code into a smart contract function according to the smart contract syntax; converting the encapsulated function into an abstract syntax tree, and extracting data flow and control flow information; converting the data flow and control flow information of the smart contract into a graph model; using the trained word2vec model to convert the graph nodes into vectors; using a graph neural network to train the graph model; reading out all node information, converting the smart contract function graph model into a vector; and using a classification model to determine whether the function vector contains smart contract vulnerability information. The present invention improves the efficiency of smart contract security detection and achieves good results.
Owner:XIDIAN UNIV

A method to support the deep integration of MBSE modeling tools and modeling methodology

The present invention provides a method for supporting the deep integration of MBSE modeling tools and modeling methodology, including: step 1: designing a methodology metamodel based on GOPPRR‑E meta-metamodel; step 2: defining a methodology mapping specification: a mapping diagram of GOPPRR‑E meta-metamodel and XML based on a meta-object mechanism; step 3: constructing a methodology model: loading the methodology metamodel stored in XML format into the MBSE modeling tool, and converting the methodology metamodel in XML into an internal model structure recognizable by the modeling tool by parsing the mapping specification; step 4: designing a physical exchange specification: designing a navigation modeling language based on XML, and designing and defining an abstract syntax. The present invention can solve the problems of poor scalability of existing methodologies, insufficient deep integration of methodologies and tools, and realize the design of a process model-driven system based on methodology construction.
Owner:YANGTZE DEITA GRADUATE SCHOOI OF BEIJING INST OF TECH (JIAXING) +1

Binary code-based defect pattern recognition method and system

The invention provides a defect pattern recognition method and system based on binary codes, and the method comprises the steps: obtaining a binary data stream generated by a current test case when a to-be-tested program runs for the first time; and matching the binary data stream with a preset defect mode, and if the binary data stream is matched with a certain preset defect mode, identifying a certain defect until all the data streams are matched. According to the scheme, code defect recognition is performed directly through the binary defect mode characteristics without a series of analysis processes such as source code grammatical analysis and lexical analysis, abstract syntax tree construction and control flow graph and symbol construction, and the binary codes are directly scanned and compared with the defect mode characteristics; if the code meets the defect characteristic mode, the defect of the code can be determined, a defect report is finally generated through statistics, the analysis process is simple, and the defect detection efficiency is high.
Owner:BEIJING JIUZAI AVIATION TECH CO LTD

A CPG+ graph-based implicit dependency pattern analysis method

ActiveCN114879974BSolve the problem that implicit dependencies are still unknownreduce complexityCode compilationAlgorithmTheoretical computer science
The present invention discloses an implicit dependency pattern analysis method based on a CPG+ graph. The present invention conditionally obtains a program dependency graph, thereby reducing the complexity of the intermediate representation of the graph structure of the generated code, and because implicit dependency information is added, implicit dependency patterns can be mined from the graph. By parsing and analyzing the source code, an abstract syntax tree, a control flow graph and a program dependency graph are generated, and a CPG+ graph is jointly constructed, thereby reducing the complexity of the intermediate representation of the graph structure of the generated code. The project file can be analyzed quickly and effectively, and specific implicit dependency patterns can be mined therefrom, solving the problem that the implicit dependency pattern is still unknown at present, and specific implicit dependency patterns and quantities can be quickly obtained from the project.
Owner:XI AN JIAOTONG UNIV