Machine learning-based program analysis using synthetically generated labeled data
US-11593675-B1 · Feb 28, 2023 · US
US2023333974A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2023333974-A1 |
| Application number | US-202318337106-A |
| Country | US |
| Kind code | A1 |
| Filing date | Jun 19, 2023 |
| Priority date | Apr 7, 2021 |
| Publication date | Oct 19, 2023 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
In mutation testing, source code is mutated at various positions, and test suites are run against the original object code and each version of the mutated object code, to determine the quality of test suites against arbitrary changes in the object code. The present disclosure provides a mutation test manager configured to initialize multiple computing threads configuring a computing host to perform parallel computation; mutate class files within context of each computing thread; recompile mutated class files independently in each respective computing thread to generate heterogeneous mutants; and execute pending unit tests against heterogeneous mutants independently in each respective computing thread. Consequently, the mutation testing process is decoupled from computational bottlenecks which would result from linear, sequential generation, compilation, and testing of each mutation, especially in the context of JVM® programming languages configured to generate class-rich object code.
Opening claim text (preview).
What is claimed is: 1 . A method, comprising: mutating, by a processor running a computing thread among a plurality of computing threads each executing target object code in a target runtime environment, part of a class file to generate a mutation in the class file, wherein the class file is one of a plurality of class files of target source code; writing, by the processor, the class file containing the mutation to a computer-readable storage medium before configuring a compiler to compile the class file containing the mutation; causing, by the processor, the compiler executing in the computing thread to compile the class file containing the mutation without compiling other class files of the plurality of class files, wherein compiling the class file results in generation of a mutant class object code by the processor; and replacing, by the processor, a non-mutant object class code portion of a plurality of non-mutant object class code portions of the executing target object code with the mutant class object code. 2 . The method of claim 1 , wherein mutating the part of the class file comprises mutating a line of code of the class file. 3 . The method of claim 1 , wherein mutating the part of the class file is performed in accordance with one of a plurality of mutation patterns of a mutation configuration. 4 . The method of claim 1 , wherein the part of the class file or a different class file of the target source code is being mutated concurrently, by the processor or by a different processor, in at least one other computing thread of the plurality of computing threads. 5 . The method of claim 1 , wherein the compiler is configured by the processor executing a compiler script including a parameterized call to the compiler. 6 . The method of claim 1 , further comprising executing, by the processor in the computing thread, pending unit tests among a test suite against the executing target object code after replacing the non-mutant object class code portion. 7 . The method of claim 1 , further comprising configuring, by the processor, the compiler to run a test class tear down method before a unit test is executed. 8 . A computing host comprising: one or more processors; and memory communicatively coupled to the one or more processors, the memory storing computer-executable modules executable by the one or more processors that, when executed by the one or more processors, perform associated operations, the computer-executable modules comprising: a compiler module; and a mutation test managing module further comprising: a class file mutating submodule configured to mutate, in a computing thread among a plurality of computing threads each executing target object code in a target runtime environment, part of a class file to generate a mutation in the class file, wherein the class file is one of a plurality of class files of target source code; a class file read/write submodule configured to write the class file containing the mutation to a computer-readable storage medium before a compiler configuring submodule configures the compiler module to compile the class file containing the mutation; the compiler configuring submodule configured to configure the compiler module executing in the computing thread to compile the class file containing the mutation without compiling other class files of the plurality of class files, wherein compiling the class file results in generation of a mutant class object code by the compiler module; and a class loading submodule configured to replace a non-mutant object class code portion of a plurality of non-mutant object class code portions of the executing target object code with the mutant class object code. 9 . The computing host of claim 8 , wherein the class file mutating submodule is configured to mutate the part of the class file by mutating a line of code of the class file. 10 . The computing host of claim 8 , wherein the class file mutating submodule is configured to mutate the part of the class file in accordance with one of a plurality of mutation patterns of a mutation configuration. 11 . The computing host of claim 8 , wherein the class file mutating submodule is configured to mutate the part of the class file or a different class file of the target source code concurrently among the plurality of computing threads. 12 . The computing host of claim 8 , wherein the compiler configuring submodule is configured to configure the compiler module by executing a compiler script including a parameterized call to the compiler module. 13 . The computing host of claim 8 , wherein the computer-executable modules further comprise a test executing submodule configured to execute, in the computing thread, pending unit tests among a test suite against the executing target object code after the class loading submodule replaces the non-mutant object class code portion. 14 . The computing host of claim 8 , wherein the compiler configuring submodule is further configured to configure the compiler to run a test class tear down method before a unit test is executed. 15 . A computer-readable storage medium storing computer-readable instructions executable by one or more processors, that when executed by the one or more processors, cause the one or more processors to perform operations comprising: mutating, in a computing thread among a plurality of computing threads each executing target object code in a target runtime environment, part of a class file to generate a mutation in the class file, wherein the class file is one of a plurality of class files of target source code; writing, by the processor, the class file containing the mutation to the computer-readable storage medium before configuring a compiler to compile the class file containing the mutation; configuring the compiler executing in the computing thread to compile the class file containing the mutation without compiling other class files of the plurality of class files, wherein compiling the class file results in generation of a mutant class object code by the one or more processors; and replacing a non-mutant object class code portion of a plurality of non-mutant object class code portions of the executing target object code with the mutant class object code. 16 . The computer-readable storage medium of claim 15 , wherein mutating the part of the class file comprises mutating a line of code of the class file. 17 . The computer-readable storage medium of claim 15 , wherein mutating the part of the class file is performed in accordance with one of a plurality of mutation patterns of a mutation configuration. 18 . The computer-readable storage medium of claim 15 , wherein the operations further comprise mutating the part of the class file or a different class file of the target source code concurrently in at least one other computing thread of the plurality of computing threads. 19 . The computer-readable storage medium of claim 15 , wherein the operations further comprise executing, in the computing thread, one or more pending unit tests among a test suite against the executing target object code after replacing the non-mutant object class code portion. 20 . The computer-readable storage medium of claim 15 , wherein the operations further comprise configuring the compiler to run a test class tear down method before a unit test is executed.
for test execution, e.g. scheduling of test suites · CPC title
Object-oriented languages · CPC title
Target code generation · CPC title
Compilation · CPC title
for test results analysis · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.