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

71 results about "Differential testing" patented technology

Differential testing complements traditional software testing, because it is well-suited to find semantic or logic bugs that do not exhibit explicit erroneous behaviors like crashes or assertion failures. Differential testing is sometimes called back-to-back testing.

Fuzzy testing method, device and equipment based on large language model

The invention relates to a fuzzy testing method, device and equipment based on a large language model, and the method comprises the steps: analyzing and analyzing RFC standard documents of various network protocols through the large language model, and extracting protocol rules and constraint conditions; according to the protocol rule and the constraint condition, a large language model driving method is adopted to generate a test case conforming to protocol characteristics; and performing a differential test through the test case, and verifying the consistency between the actual software of the network protocol and the RFC standard document. According to the invention, the accuracy and security of implementation of the complex network protocol can be improved, and the test efficiency and coverage rate are optimized.
Owner:TIANJIN UNIV

Compiler error recovery fault detection method and system based on variation configuration selection

PendingCN118626295Ashorten test timeImprove error recovery fault detection efficiencyNon-redundant fault processingMutation operatorAlgorithm
The invention discloses a compiler error recovery fault detection method and system based on variation configuration selection, and the method comprises the following steps: (1) exploring a seed program variation space, determining all potential variation points, and constructing an error sensitive structure in a program by using a series of variation operators to form variation configuration; (2) designing a variation configuration selection algorithm, performing vectorization and normalization on variation configuration, and selecting representative variation configuration by using a selection strategy with preferential farthest variation configuration; and (3) carrying out variation on the seed program by using representative variation configuration so as to construct an error sensitive structure, carrying out analysis and alignment on error recovery diagnosis of different compilers by adopting a differential test, and analyzing inconsistent error recovery information so as to detect an error recovery fault of the compiler. Diversified error sensitive programs can be constructed by adopting variation configuration and selection strategies designed by the method, so that more compiler error recovery faults can be detected, and the error recovery fault detection efficiency is improved.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Differential test method for network protocol implementation

The invention relates to a network protocol-oriented differential test method. Compared with the prior art, the network protocol-oriented differential test method overcomes the defects that the differential test method is poor in differential capability and insufficient in test. The method comprises the following steps: carrying out test preparation; generating a test case; and performing differential testing on the network protocol implementation. According to the method, a difference test process is guided by using behavior differences, a seed selection process is guided by using a confidence upper limit algorithm (UCB algorithm) in reinforcement learning, and a seed variation process is optimized by using a firefly algorithm; according to the method, the problems of seed selection, seed variation and the like of a traditional network protocol differential test implementation method can be solved, and the test efficiency and the difference discovery capability are improved.
Owner:HEFEI CITY COULD DATA CENT

Fuzzy test method and system for aero-engine compiler based on large language model

The invention discloses an aero-engine compiler fuzzy test method and system based on a large language model. In a variation prompt generation stage, a seed program library is constructed by using embedded programs of various structures and compiler test suite programs, variation operators are selected through diversified guide strategies, and variation prompts are constructed based on a prompt template. In the test generation stage, a large language model is used for generating a variant program with complex data flow and control flow so as to enhance the test coverage rate of a compiler; global and local variables are monitored by inserting test output for the program, so that the program can effectively find out silent miscompilation errors with the maximum harm; in addition, a front-end error feedback strategy is designed, so that the effectiveness of a large language model generation test program is improved. In the differential testing stage, random difference testing and testing under different optimization levels are combined, so that the defects of the middle and rear ends of the compiler are detected. According to the method, the coverage rate of compiler testing can be increased, and silent miscompilation errors can be detected.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Large model code translation method and device fusing code functions and styles

The invention provides a large model code translation method and device fusing code functions and styles, and relates to the technical field of natural language processing. The method comprises the steps that code pairs composed of source codes and target codes are obtained from an online programming platform, the code pairs are processed according to similarity retrieval, fine granularity scoring and difference testing, and a function consistency data set is constructed; performing functional learning training on the large model according to the functional consistency data set and an instruction fine tuning method to obtain a large model subjected to functional learning training; obtaining a source code, generating positive sample translation and negative sample translation of the source code, and constructing a style-oriented data set; and according to the style-oriented data set, style learning training is carried out on the large model subjected to function learning training, and a trained code translation large model is obtained. According to the method, a low-cost and high-efficiency code translation model is developed around a large-scale language model, and the correctness and readability of translated codes are enhanced.
Owner:HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)

Java virtual machine fuzz testing method based on historical test information feedback

The invention discloses a Java virtual machine fuzz test method based on historical test information feedback, which comprises the following steps of: firstly, collecting patch test codes for repairing historical defects from OpenJDK to form a corpus, then analyzing repairing code snippets of the corpus, extracting code snippets related to the defects, and finally, carrying out fuzz test on the defect-related code snippets. And then the defect related code snippets are assembled to obtain a test case, and the defect triggering snippets can be utilized as much as possible to cover deep defect source code branches. And then differential testing is carried out on the assembled test case, feedback scheduling is carried out on defect-related code snippets through historical test information in the differential testing process, and the functional defects and software vulnerabilities of the JVM are found more efficiently.
Owner:NORTHWEST UNIV

ROSS software containerization automatic difference testing method based on large language model

The invention belongs to the field of automatic testing of modern software engineering, and particularly provides an ROSS software containerization automatic difference testing method based on a large language model. The method can realize automatic test case generation and differential test and optimization of ROSS software, and comprises the following steps: constructing a container, realizing container network communication and mounting a shared folder; performing static instrumentation on a tested method file, constructing an accurate cue word template, and generating a test case; performing branch path coverage verification and optimization on the test case; comparing results returned by the control group containers; mutation operation is conducted on the successful test cases, finally, a result json file is output, differential testing is completed, and the testing efficiency is improved.
Owner:DALIAN UNIV OF TECH

A large model code translation method and device fusing code functions and styles

The application provides a large model code translation method and device fusing code functions and styles, and relates to the technical field of natural language processing. The method comprises the following steps: obtaining a code pair composed of a source code and a target code from an online programming platform, processing the code pair according to similarity retrieval, fine-grained scoring and differential testing, and constructing a function consistency dataset; performing function learning training on a large model according to the function consistency dataset and an instruction fine-tuning method to obtain the large model trained through the function learning training; obtaining the source code, generating positive sample translation and negative sample translation of the source code, and constructing a style guide dataset; and performing style learning training on the large model trained through the function learning training according to the style guide dataset to obtain a trained code translation large model. The application develops a low-cost and high-efficiency code translation model around a large-scale language model, and enhances the correctness and readability of translated codes.
Owner:HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)

FPGA (Field Programmable Gate Array) online differential test method, device and equipment and storage medium

The embodiment of the invention relates to the technical field of simulation testing, and provides an FPGA online differential testing method and device, equipment and a storage medium, and the method comprises the steps: controlling a to-be-tested FPGA platform to execute a target program; after each instruction is executed, if the current instruction is of a first target instruction type, acquiring register state information when the FPGA platform to be tested executes the current instruction as first to-be-compared state information; according to the offline tracking data, acquiring register state information when the reference platform executes the current instruction as first reference state information; comparing the first state information to be compared with the first reference state information; and outputting a differential test result of the FPGA platform to be tested according to a comparison result. According to the embodiment of the invention, on-line differential testing can be carried out on the FPGA, so that errors can be quickly positioned.
Owner:CHENGDU QUNXIN MICROELECTRONICS TECHNOLOGY CO LTD

A method for SQL injection interception and illegal user identification based on differential testing

The application discloses a SQL injection interception and illegal user identification method based on differential testing, which comprises the following steps: firstly, constructing a message information set containing SQL injection, and building an illegal user information record database; secondly, obtaining the IP address of each message information in the message information set, and inputting the IP address as a keyword into the illegal user information record database for interception discrimination; then, obtaining the keyword information of a target field in the message information which has not been intercepted, and performing differential testing on the keyword information; finally, screening the keyword information and user information such as the IP address in the differential testing case which does not pass, and storing the keyword information and user information into the illegal user information record database, so that the user is an illegal user. The application can actively intercept and record illegal operations of illegal users, effectively reduce the false negative rate, improve the interception rate, and improve the work efficiency of network security maintenance personnel.
Owner:HANGZHOU DIANZI UNIV

A compiler automation testing method based on specification inference and loop consistency verification

This invention provides an automated compiler testing method based on specification inference and loop consistency verification to address the problems of traditional compiler testing, which relies on differential testing, requires reference implementations, and cannot effectively test domain-specific compilers. The method first extracts a syntactic skeleton set and a detailed reference set from heterogeneous specification documents; it then uses a large language model to infer type-safe formal grammar rules through multi-agent collaboration; based on the inferred grammar, it generates semantically valid test cases using a seed-preserving abstract syntax tree-level mutation strategy; it executes a compile-decompile-recompile loop on the test cases and detects compiler defects through binary-centralized comparison and noise normalization. This invention achieves systematic automated testing of compilers in the absence of reference implementations and execution oracles, improving compiler reliability and system security.
Owner:NANJING UNIV

Stateful protocol differential testing method and system based on behavioral difference guidance

The present invention discloses a stateful protocol differential fuzz testing method and system based on behavioral difference guidance. In the test preparation stage, the method compiles a data model and a state model as the input of the fuzzifier according to the protocol specification of the protocol to be tested. In the target state selection stage, an optimal state to be tested is selected according to the behavioral difference information. In the message sequence selection stage, the message sequence that can best trigger the behavioral difference between programs under the current target state is selected and mutated. In the behavioral difference guidance stage, the behavioral difference information generated by all the programs to be tested executing the test case is collected and synchronized to the target state selection and message sequence selection. The present invention effectively solves the problems that the existing network protocol differential testing work cannot effectively realize automated testing of the complete state space of the protocol, as well as the existing blind selection of state and message sequences, thereby improving testing efficiency.
Owner:HANGZHOU DIANZI UNIV

Differential Testing Method and System for X.509 Certificate Verification Based on Differential Information Transfer Graph

The present invention discloses an X.509 certificate verification differential testing method and system based on a differential information transfer graph. Construction stage of the differential information transfer graph: Collect real DER format certificate chains captured from the network as initial seeds and store them in a corpus, and construct a differential information transfer graph based on this. Certificate generation stage: Traverse the differential information transfer graph, select differential information vertices and seed certificate chains according to the potential value, and generate test cases through fuzzification. Certificate verification stage: Send the test cases to all SSL / TLS protocol implementation programs to be tested, record the discovered verification differences, and update the corpus and the differential information transfer graph. The present invention makes full use of the differential information generated when different implementations verify the same certificate, and effectively solves the problems of insufficient diversity of test cases and insufficient effectiveness of certificate generation strategies existing in the existing work.
Owner:HANGZHOU DIANZI UNIV

TypeScript compiler defect detection method based on variation and difference test

The invention belongs to the field of software testing, and relates to a TypeScript compiler defect detection method based on variation and difference testing. According to the method, firstly, a grammar program data set containing general grammar features and specific grammar features is constructed by means of a Githhub open source community and a large language model, and a group of algorithm sets containing general mutation algorithms and type-specific mutation algorithms are designed to perform random mutation on programs in the grammar program data set; and inputting the obtained abrupt program data set into different versions of TypeScript compilers for differential testing, analyzing in combination with an execution result of Node.js, and judging whether the compiler has defects or not according to six defined conditions. A code complexity representation method is provided, six different indexes are used for measuring the code complexity of the mutation program, and the mutation program with the improved code complexity is added into a grammar program data set to continuously enrich the diversity of the mutation program.
Owner:DALIAN UNIV OF TECH

Method and apparatus for discovering protocol inconsistency vulnerabilities based on human-machine collaboration

This invention provides a method and apparatus for discovering protocol inconsistency vulnerabilities based on human-machine collaboration. The method involves acquiring multiple target middleware to be processed; testing each target middleware using pre-generated test samples to obtain test results; wherein the test samples are extracted and generated based on a pre-stored document analyzer; and analyzing each test result based on a pre-stored difference analysis algorithm to obtain analysis results. If the analysis results include preset differences, then a protocol inconsistency vulnerability is determined to exist among the target middleware. This invention takes a novel human-machine collaborative vulnerability discovery approach, targeting HTTP middleware, and utilizes a document analyzer to extract and generate test samples, along with differential testing methods, to semi-automatically discover protocol inconsistency vulnerabilities caused by semantic differences in various HTTP middleware. This achieves a systematic, scalable, more efficient, and more accurate discovery of protocol inconsistency vulnerabilities.
Owner:TSINGHUA UNIVERSITY

A neural machine translation differential testing method based on local covariant consistency analysis

PendingCN123180180AEngineeringData mining
The application provides a neural machine translation differential test method based on local covariant consistency analysis. The method applies the same local input change to multiple models to be tested, synchronously acquires the translated texts and word alignment behavior representations before and after the change; then calculates the local response according to the input change cost and performs conditional robust standardization; meanwhile, performs multi-model response covariant analysis to measure the deviation from the direction, amplitude and component structure, judges whether the output change mode of each model is consistent and locates the candidate deviating model; and then searches for a high deviation input according to the quality and diversity to output test abnormal evidence when the preset condition is met. The application compares the local response relationship of the models to the common input change, rather than whether the single point translated text is the same, so that a unique reference translated text is not required and the preset error type is not relied on.
Owner:HUAIYIN TEACHERS COLLEGE

Compiler optimization fault detection method and system based on association model

The application discloses a compiler optimization fault detection method and system based on an association model, and first generates a test program and constructs a diversified optimization sequence by randomly selecting an optimization level and processing a difference set; then constructs a training sample, associates the test program and the optimization sequence, and inputs them into a compiler for differential testing, marks the output test result, and constructs a training sample with a label; then converts the test program and the optimization sequence in the training sample into a vector representation form, constructs an association model based on a support vector machine algorithm; finally, uses the trained SVM model to predict the probability of triggering an optimization fault of a new test program under a certain optimization sequence, sorts the optimization sequences in descending order according to the predicted probability, uses the new test program and the optimization sequences in the Top-K to perform differential testing on the compiler. The application can improve the detection efficiency and accuracy of the compiler optimization fault, and provides a guarantee for the reliability of the compiler optimization.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Deep learning framework test method and device, computer equipment and storage medium

The embodiment of the invention discloses a deep learning framework test method and device, computer equipment and a storage medium. The method comprises the following steps: creating a seed tensor, and performing mutation to obtain a test input tensor; creating a seed model, and performing mutation to obtain a test input model; under different browsers, performing differential testing on a to-be-tested deep learning framework according to the test input tensor and the test input model to obtain a test result; and adjusting a mutation rule corresponding to the seed tensor and the seed model according to the test result. By implementing the method provided by the embodiment of the invention, a JavaScript deep learning framework focused on an edge environment can be realized, and framework defects related to a reasoning optimization mechanism can be more comprehensively detected, so that the technical bottleneck existing in the JavaScript environment in an existing deep learning framework test method is solved.
Owner:SHENZHEN GENVICT TECH +1

A ROS 2 defect detection method based on large language model and differential testing

The present invention belongs to the field of software testing and relates to a ROS 2 defect detection method based on a large language model and differential testing, which can be used to automatically detect defects in ROS 2. This method constructs accurate prompt words by combining the semantic information of the program to be tested, thereby significantly improving the efficiency and quality of seed generation by the large language model. At the same time, a variety of mutation strategies are introduced to enhance the diversity of seeds, thereby improving the comprehensiveness of defect detection. The present invention supports differential testing of the same functional modules implemented in different programming languages. This differentiated testing method can effectively reveal behavioral inconsistencies caused by differences in implementation languages, ensure functional consistency between different language implementations, and thus improve the stability and reliability of the system. Through combination with a large language model, the present invention significantly reduces manual intervention, reduces the cost of defect detection, and greatly improves the degree of automation and accuracy of testing.
Owner:DALIAN UNIV OF TECH

A Simulink compiler testing method with diverse configurations based on reinforcement learning.

This invention discloses a Simulink compiler testing method based on reinforcement learning to achieve configuration diversification, comprising: initial information acquisition; configuration update; feature vectorization component to implement feature representation of CPS model, i.e., representing CPS model for diversity measurement; using reinforcement learning to compare the feature vectors between the new CPS model and the previously generated CPS model, and through comparison, using reinforcement learning to learn the reward brought by updating the configuration, i.e., learning the configuration to generate different CPS models; recommending configurations using the knowledge learned by reinforcement learning; generating new CPS models according to the new configuration, thereby generating diverse CPS models to fully test the Simulink compiler; using differential testing to compare the execution trajectory of CPS model in different simulation modes, if the execution trajectory is the same, the error information is recorded to complete the testing process of the CPS model, if there is a difference, the difference information is recorded and identified as a bug discovery.
Owner:DALIAN MARITIME UNIVERSITY

Compiler back-end defect detection method and system based on diversified guidance

The present invention discloses a method and system for detecting back-end defects in a compiler based on diversified guidance, which is used to improve the reliability of the compiler. The present invention pre-processes the seed program so that it can detect changes in local variables, extracts corresponding code structures from the code in the real world, and builds a code block corpus; the present invention designs a variety of mutation operators that meet the program syntax constraints, such as insertion mutation, deletion mutation, and replacement mutation, and selects mutation operators through diversified guidance strategies, so that the seed program mutates in a direction with more diversified structures and control flows, and at the same time, the validity of the program variants is guaranteed as much as possible during the mutation process, and the UCB‑1 algorithm is combined to generate effective and diversified program variants, thereby increasing the efficiency and quality of the back-end test in the compiler; finally, the generated program variants are used to perform differential testing on the compiler to detect back-end defects in the compiler. The present invention can improve the coverage and test efficiency of compiler testing.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

A differential testing method and system for a deep learning framework in an industrial internet application scenario

The application relates to a differential test method and system of a deep learning framework in an industrial internet application scene, which comprises three parts of test case variation, output result extraction and inconsistent problem judgment. The application screens common deep learning model variation operators in the industrial internet application scene, finds a set of efficient variation operator set for the differential test of the deep learning framework, performs the differential test on the deep learning framework, and accurately judges the differential result by using the classification result. Compared with the existing inconsistent result detection method of the deep learning framework, the application can more comprehensively and accurately detect the inconsistent result problems caused by defects in the deep learning framework.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Differential test system and differential test method

The invention relates to a differential test system and a differential test method. The system comprises a differential mechanism, an input module, an output module and an acquisition module, the input module comprises an input sleeve which is connected with the differential mechanism and used for driving the differential mechanism to rotate. The output module comprises an output sleeve which is connected with a first half shaft and a second half shaft of the differential mechanism. The acquisition module is connected with the output sleeve and used for acquiring the torque of the output sleeve. The differential mechanism is driven to rotate through the input sleeve, the first half shaft and the second half shaft of the differential mechanism are connected with the output sleeve, torque generated by the first half shaft and the second half shaft is concentrated to the output sleeve, and output torque of the first half shaft and the second half shaft is converted into the same torque to be output, namely output sleeve torque. On the premise that the manual state of the vehicle drive axle differential is simulated, the torsional rigidity of the whole test system and the response capability of the input module are improved, and the test efficiency and the test precision of the test system are improved.
Owner:FAW JIEFANG AUTOMOTIVE CO

Differential test device and method, electronic equipment, storage medium and vehicle

The invention discloses a differential testing device and method, electronic equipment, a storage medium and a vehicle. The device comprises a loading motor which is used for outputting a loading torque; one end of the motor loading shaft is fixedly connected with the output end of the loading motor, and the motor loading shaft is used for transmitting loading torque; the loading side tool disc is connected with the other end of the motor loading shaft, and the interior of the loading side tool disc is of a polygonal structure; the fixed end tool disc is connected to the fixed end support, and a differential bearing supporting seat is arranged between the fixed end tool disc and the loading side tool disc; the differential mechanism is arranged on the differential mechanism bearing supporting seat, a gear ring part of a driven gear of the differential mechanism is of a polygonal structure, and the polygonal structure is used for enabling the gear ring part to be matched with the loading side tool disc. The technical problem that the loading torque cannot be effectively transmitted is solved.
Owner:CHINA FAW CO LTD

Test case management method and device, equipment and storage medium

The invention relates to the field of software testing, and discloses a test case management method, device and equipment and a storage medium, which can be used for system testing in financial and medical fields, and comprises the following steps: obtaining a current demand document and a current test case corresponding to a current test, the current demand document comprising demand function points required by the current test; identifying missing difference test function points of the current test case according to the current demand document; obtaining a historical test case comprising the difference test function point; and optimizing the current test case according to the historical test case to obtain an optimized test case. The problems of low reuse efficiency of test cases and insufficient coverage of demand function points in the prior art are solved.
Owner:PING AN HEALTH INSURANCE CO LTD

User interface identification intelligent testing method, device, terminal and storage medium

The present invention discloses an intelligent test method, device, terminal and storage medium for user interface recognition, the test method includes obtaining a user interface screenshot of application software; obtaining a difference threshold; extracting interface features and measuring interface similarity of the user interface screenshot by combining differential test technology with image recognition technology, judging whether there are display differences between the same application software on different devices by comparing the interface similarity with the difference threshold, and generating a differential test report with the test results. The above method solves the problem that the test method for user interface in the field of software testing in the prior art is still insufficient. It is based on the multi-dimensional features of the user interface, draws on the existing mature image processing technology, realizes feature recognition and extraction of the user interface, improves accuracy, gets rid of the dependence on manual identification, and customizes the differential detection method to meet the detection of complex user interfaces, and finally provides a differential test report based on the similarity.
Owner:GUANGZHOU PANYU POLYTECHNIC

Chemical mechanical polishing process model test pattern structure and modeling method

The invention provides a chemical mechanical polishing process model test pattern structure and a modeling method, the chemical mechanical polishing process model test pattern structure comprises a single test pattern unit, the single test pattern unit comprises a test pattern, and the test pattern has a predetermined line width and a predetermined spacing; the gradient difference test pattern unit comprises at least two gradient difference test pattern groups, each gradient difference test pattern group is provided with a plurality of test patterns, and the line widths and / or densities of the test patterns in different gradient difference test pattern groups are different; the area difference test pattern unit comprises at least two area difference test pattern groups, the areas of the area difference test pattern groups are different, a plurality of test patterns are arranged in each area difference test pattern group, and the line widths and the intervals of the test patterns in each area difference test pattern group are the same. Therefore, the prediction accuracy of the chemical mechanical polishing process model is improved.
Owner:SHANGHAI HUALI INTEGRATED CIRCUIT CORP

Compiler optimization fault detection method and system based on correlation model

The invention discloses a correlation model-based compiler optimization fault detection method and system. The method comprises the following steps of: firstly, generating a test program, and constructing a diversified optimization sequence by randomly selecting an optimization level and processing a difference set; then constructing a training sample, associating a test program with the optimization sequence, inputting the test program and the optimization sequence into a compiler for differential testing, marking an output test result, and constructing a training sample with a label; converting a test program and an optimization sequence in the training sample into a vector representation form, and constructing a correlation model based on a support vector machine algorithm; and finally, predicting the probability that a new test program triggers an optimization fault under a certain optimization sequence by using the trained SVM model, carrying out descending sorting on the optimization sequence according to the predicted probability, and carrying out differential test on the compiler by using the new test program and the optimization sequence sorted in Top-K. According to the method, the detection efficiency and accuracy of the compiler optimization fault can be improved, and a guarantee is provided for the reliability of compiler optimization.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Aero-engine compiler fuzz testing method and system based on large language model

This invention discloses a fuzzy testing method and system for aero-engine compilers based on a large language model. In the mutation hint generation stage, a seed program library is constructed using embedded programs with various structures and compiler test suite programs. Mutation operators are selected through diversified guidance strategies, and mutation hints are constructed based on hint templates. In the test generation stage, variant programs with complex data and control flows are generated using the large language model to enhance compiler test coverage. Test outputs are inserted into the program to monitor global and local variables, enabling the program to effectively detect the most harmful silent compilation errors. Furthermore, a front-end error feedback strategy is designed to improve the effectiveness of test programs generated by the large language model. In the differential testing stage, random differential testing and testing under different optimization levels are combined to detect back-end defects in the compiler. This invention can improve compiler test coverage and detect silent compilation errors.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Intelligent contract compiler defect detection method and medium

The invention relates to the technical field of computers, and discloses an intelligent contract compiler defect detection method and a medium, and the method comprises the steps: obtaining an intelligent contract source code; performing reverse optimization equivalent transformation on the source code to generate a variant contract; inputting the variant contract into the same compiler, and compiling in a non-optimization mode and an optimization mode respectively to obtain a first byte code and a second byte code; comparing static characteristics and runtime behaviors of the first byte code and the second byte code; and when inconsistency exists, outputting a compiler defect report. According to the method, three core technical principles of reverse optimization transformation, single compiler multi-level difference and static and dynamic two-dimensional verification are adopted. The hidden defect of how to effectively detect the optimization stage of an intelligent contract compiler under the scene that the intelligent contract compiler only has a single mainstream implementation is solved, and meanwhile, the limitation that a traditional random difference test depends on multiple compilers is broken through.
Owner:SHANDONG UNIV