Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs
Paper · 2016 · Jifeng Xuan, Matías Martínez, Favio DeMarco et al.
Summary
A program can fail because it takes the wrong branch, or because it executes a statement that should have been guarded. Nopol addresses both problems. Given Java code and tests that expose a failure, it searches for a replacement condition or a new precondition: a Boolean check placed before an existing statement. Its central idea is to separate discovering the behavior needed for a repair from finding an expression that produces that behavior. First determine whether forcing a decision can rescue a failing test; then try to synthesize a condition that makes the appropriate decisions across the test suite.
Nopol combines execution experiments with constraint-based program synthesis. It temporarily forces conditions to true or false, or skips candidate statements, to identify promising repair locations. The authors call the successful forced outcomes angelic values. At those locations, instrumentation records available values during test execution, including primitive variables, whether objects are null, and results from selected methods that inspect object state. Nopol then asks an SMT solver to assemble an expression whose outputs agree with the collected examples. SMT, or Satisfiability Modulo Theory, checks logical constraints involving supported kinds of values and operations. A satisfying assignment describes how to connect expression components into a candidate patch.
The evaluation covers 22 historical bugs from Apache Commons Math and Apache Commons Lang: 16 involve faulty existing conditions, while 6 involve missing guards. Nopol produces patches accepted by the test suites for 17 bugs. The authors’ manual examination judges 13 of those patches equivalent in behavior to the developers’ fixes. These results depend in part on test changes, including added examples and the separation of assertions into smaller tests. The evidence therefore supports the usefulness of the repair mechanism, while also showing how strongly its output depends on the specification supplied by tests.
The paper’s most instructive finding is the gap between satisfying tests and implementing the intended behavior. A synthesized condition can fit observed executions while depending on an accidental input property. Conversely, a patch can look different from the developer’s edit and still repair the program correctly, sometimes by guarding a statement instead of changing its enclosing condition. Nopol demonstrates both possibilities. Its case studies and failed attempts make the boundaries concrete: the approach struggles when a test needs changing decisions across repeated executions, when required method results are unavailable, or when its assumed expected outcomes exclude an otherwise valid repair.
Interesting ideas
Separate desired behavior from implementation. Nopol first asks whether a local decision could make a failing execution succeed. Only afterwards does it search for source code that realizes the decision. This makes a difficult repair problem easier to inspect: failure to find useful behavior differs from failure to express behavior using the available components. The same separation can help in rule discovery, configuration repair, and small decision procedures. Before searching a large expression space, establish that changing the proposed decision point could actually affect the outcome.
Exploit a small output domain. A condition has a particularly convenient result space: true or false. Nopol uses this fact to investigate possible repairs through ordinary execution rather than requiring symbolic reasoning to discover every desired outcome. The broader engineering lesson is to look for a narrow interface inside a complex system. Even when the surrounding computation is large, a local decision may have few possible outputs. Exhaustively testing those outputs can provide useful evidence at relatively low search cost, provided the restriction on repeated executions is made explicit.
Collect semantic observations at the boundary. Nopol does not attempt to encode complete object implementations into its synthesis problem. Instead, it records properties useful to conditions, such as nullness and the result of a known state-query method. This creates a practical boundary between execution and synthesis: the running program supplies observations, while the solver combines them. A similar design could support rule repair around structured data or internal processing states. Its reliability depends on choosing observations that are meaningful, available, and safe to obtain.
Share structure across examples. The synthesized expression must have the same wiring for every collected execution, even though its inputs and intermediate values change. This prevents the solver from inventing an unrelated expression for each example. The distinction between shared structure and example-specific values is useful beyond repair. It provides a clear way to formulate the search for a reusable rule from observed behavior while preserving an explicit representation of the resulting computation.
Increase expressive power gradually. Nopol starts with relatively simple expression components and introduces more expensive combinations when necessary. This reflects a useful search principle: a richer candidate language increases both repair opportunities and computational burden. In other synthesis tasks, a progression from comparisons to logical combinations and then arithmetic can make search more manageable. The paper also exposes a qualification: reaching a more expressive search level does not establish that the resulting expression is clearer or more correct.
Use failures to diagnose the specification. An unsuccessful synthesis attempt can reveal contradictory expected outputs, missing observations, or tests that package incompatible decisions together. Nopol’s analysis of missing preconditions is especially useful here. A passing test does not necessarily require a candidate statement to execute; skipping that statement may also preserve the result. Treating observed behavior as mandatory behavior can exclude a valid repair. This lesson applies whenever examples are converted into stronger constraints than their assertions actually justify.
Evaluate behavior beyond textual similarity. Nopol can generate a correct expression with different syntax, or place a guard somewhere other than the developer’s edit. It can also generate a compact expression that passes tests for the wrong reason. A useful evaluation therefore distinguishes textual agreement, agreement on observed tests, and broader behavioral equivalence. That distinction matters in any system that proposes executable rules: understandable output and successful examples are valuable evidence, but neither alone establishes that the rule captures the intended general behavior.
Deep dive: Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs
How Nopol repairs faulty Java conditions using tests, runtime traces and constraint solving, and what its real-bug evaluation establishes. · about 34 minutes to read
How Mova uses it
For Mova, a small transparent language system written in Rust, Nopol offers a possible approach to repairing explicit decisions in the implementation. The relevant unit would be a visible condition with a documented purpose and tests that exercise it. A repair experiment could ask whether a failure disappears when that condition’s result is forced, then search for a replacement using values already available at the decision point. This would apply the paper’s separation between discovering useful behavior and expressing that behavior as code.
Such a use remains a proposal. Nopol’s implementation repairs Java, and the paper does not establish an integration with Mova or a Rust implementation of its repair pipeline. Its Java instrumentation, object inspection, and patch generation would not transfer automatically. The reusable contribution is the organization of the process: identify a candidate decision, collect observations, formulate constraints, generate a small expression, and validate its behavior.
Transparency gives this design a concrete attraction. A proposed repair could expose the source location, the observations used as inputs, the expected decisions extracted from tests, and the final expression. A reviewer could then inspect why the expression satisfies the examples. That record would make it easier to distinguish a meaningful rule from a coincidence, such as a condition that relies on an input property that happens to remain constant throughout the tests.
Mova could also borrow Nopol’s distinction between an existing condition and a missing guard. A failure might call for changing a decision already present in the system. Alternatively, an operation might need an explicit check before it runs. Those possibilities should remain separate repair actions because they preserve different aspects of the surrounding computation. The paper shows that both can sometimes solve the same bug, with the selected action depending on the order in which candidate locations are explored.
The observations supplied to synthesis would need a deliberate design. Nopol uses primitive values, nullness, and selected side-effect-free queries. For a Rust implementation, the corresponding proposal would be an explicit set of safe, observable properties available at a candidate location. Nothing in the paper establishes which properties would be sufficient for Mova. The important borrowing is to make that vocabulary visible and bounded, so that a generated condition has a comprehensible relationship to the system’s existing state.
The strongest lesson concerns validation. Mova could treat a test-passing synthesized expression as a candidate for review, accompanied by an explanation of the examples it satisfies. Nopol’s incorrect patches show why acceptance should also depend on the intended meaning of the decision and on tests that distinguish plausible alternatives. Additional examples would be particularly valuable when several expressions fit the current evidence. This is a concrete research direction for Mova, rather than a claim that automatic repair is already part of its implementation.
The problem and its context
Why conditional mistakes are a useful target
Conditional statements determine which operations execute and which results become reachable. A small error in a comparison can therefore cause a large behavioral change. A boundary check may reject an allowed input, an omitted null check may expose an invalid method call, or an arithmetic expression used in a condition may behave unexpectedly before the comparison even happens.
The paper gives a greatest-common-divisor example from Commons Math. The program needs to determine whether either input is zero. Its faulty condition instead multiplies the inputs and compares the product with zero. That calculation can overflow, so the product is an unsafe substitute for checking the inputs separately. The repair concerns a Boolean decision, but understanding why it matters requires understanding the computation used to reach that decision.
The authors motivate their focus with earlier investigations of Java changes. Their own study found that 12.5% of commits containing a single change only altered an if condition. They also cite an investigation across seven Java projects in which changes to faulty conditions accounted for up to 18.6% of fixes. These observations motivate a targeted repair mechanism. They do not establish how often Nopol would succeed on an unrestricted stream of reported bugs.
The second target is an absent precondition. Here, the problem is not necessarily the expression of an existing branch. A statement runs in a state where it should be skipped. Examples include accessing an object without checking whether it is null or using an index without first establishing its validity. Nopol treats adding a Boolean guard as a repair action in its own right.
The shared structure is important. Both defect classes can be addressed by synthesizing a Boolean expression. In one case, the expression replaces an existing condition. In the other, it controls whether an existing statement executes. That common output form allows Nopol to reuse much of its data collection and synthesis machinery.
Tests as the available specification
Nopol belongs to test-suite-based repair. The input includes passing tests that describe expected behavior and failing tests that expose a defect. The immediate objective is to produce a patch under which the entire suite succeeds. This places evaluation and benchmarks at the center of the method: tests guide the search and also provide its immediate acceptance criterion.
A test usually specifies less than a complete account of intended behavior. It exercises particular inputs and checks selected outcomes. A repair can satisfy those checks while behaving incorrectly elsewhere. The paper makes this limitation central instead of treating successful test execution as conclusive evidence of correctness.
The authors point to Apache development practices as a useful source of repair specifications. In the commits they examine, a fix is accompanied by a test that fails before the change and succeeds afterward. By combining the earlier program with the relevant tests, the researchers can reconstruct a repair task with a known historical solution.
Even this favorable setting leaves work to do. Tests may contain several assertions whose executions require different branch outcomes. Older tests may no longer run with the chosen environment. Existing assertions may leave important boundary behavior unspecified. Nopol’s evaluation encounters all of these issues, making the construction of a usable repair task part of the empirical story.
Earlier ways of generating patches
The paper describes several approaches to automatic repair. GenProg searches over source-code changes through genetic programming, constructing candidates from existing program material. PAR uses recurring repair patterns. SemFix derives constraints and synthesizes expressions using semantic information. These approaches provide different ways to limit and navigate a large patch space.
Nopol is especially close to SemFix in its synthesis stage. Both use component-based synthesis, where an expression is assembled from operations whose behavior can be represented in constraints. Nopol’s distinction lies partly in how it discovers expected outputs. For Boolean decisions, it can try forced values through execution rather than using symbolic execution to infer them.
The paper presents this as a tradeoff in scope. Symbolic reasoning can address values from domains that are impractical to enumerate directly. Nopol takes advantage of the very small Boolean domain. The authors suggest that this could make its localization procedure faster for conditions, but they explicitly do not establish that speed comparison experimentally.
Nopol also extends its synthesis inputs to support selected object-oriented expressions. Null checks and methods that inspect object state matter in Java conditions. The resulting contribution is therefore more specific than a general claim about automatic repair: it combines a restricted behavioral search with a richer vocabulary for constructing Boolean expressions in Java.
The method, step by step
The overall search
Nopol starts with a buggy program and its test suite. The suite must expose a failure. It then ranks suspicious statements, investigates candidate repair locations, gathers execution data where a repair appears possible, and attempts expression synthesis.
From failing tests to a conditional patch
The steps in order.
The ranking controls the order of exploration. If the candidate is an if statement, Nopol tries replacing its condition. For other eligible statements, it tries introducing a guard. Branch and loop statements are excluded from the ordinary missing-precondition candidates described by the approach.
A successful forced decision identifies a promising location, rather than a complete repair. There may be no available expression that reproduces the needed decisions across all examples. Conversely, failure to find a forced decision under Nopol’s restrictions does not prove that the location cannot be repaired.
Rank suspicious statements
Nopol uses Ochiai, a coverage-based fault-localization measure. Coverage records whether a test executes a statement. The score favors statements associated with failing executions, while accounting for their execution by passing tests.
susp(s) = failed(s) / √(total_failed × (failed(s) + passed(s)))
Here, s is a statement and susp(s) is its suspiciousness score. failed(s) counts failing tests that execute s; passed(s) counts passing tests that execute it. total_failed counts all failing tests. The square-root expression normalizes the relationship between failures and statement coverage.
The paper gives the score range as follows:
0 ≤ susp(s) ≤ 1
The symbol susp(s) again denotes the Ochiai score for statement s. A score of 1 is the highest value under this measure, while 0 supplies no positive association for the search. These are ranking scores, rather than experimentally calibrated probabilities that a particular statement contains the defect.
Nopol explores statements in descending score order and considers those whose score exceeds zero. Ranking matters because it affects both the time spent before reaching a useful location and the form of the first patch found. A statement inside a faulty branch may be considered before the branch condition itself.
Find outcomes that rescue failing tests
For an existing condition, Nopol reruns failing tests while forcing its result. It tries true and false. If a forced result makes a failing test succeed, that result becomes a desired outcome for the candidate location.
The paper represents the evidence with an angelic tuple:
(loc, val, test)
Here, loc identifies a statement’s position in the source code, val is the forced Boolean result, and test identifies the formerly failing test that succeeds under that intervention. The tuple records an execution experiment. It does not yet identify an expression that computes val from program state.
Different failing tests may require different values at the same location. Within an individual test, however, Nopol fixes the forced value across repeated executions of that statement. This is a major simplification.
The unrestricted sequence space is:
2ᵗᶜ
The symbol t_c, written as the superscript’s subscripted quantity, is the number of times the condition executes during a failing test. Each execution could independently require either Boolean result. The expression counts the possible decision sequences that a fully general search might investigate.
Nopol instead tries a constant result throughout the test. Across the conditions reached by that test, its search has the following size:
2 × n_c
Here, n_c counts executed if statements. The factor 2 represents trying each Boolean outcome. This reduction makes the localization phase tractable, but rules out repairs whose useful behavior requires a changing sequence within a test.
For missing preconditions, the intervention is different. Nopol skips an eligible statement. If skipping it makes a failing test succeed, a guard returning false is a useful target for that test. Its candidate-location search is:
n_p
The symbol n_p counts statements reached by the relevant tests. Only skipping is tested for this purpose, so there is no additional Boolean-choice factor.
The implementation adds guards to individual statements. The authors observe that the same principle could apply to blocks, but that broader action is outside the implemented search evaluated here.
Turn executions into expected outputs
After finding useful forced outcomes, Nopol needs examples from the complete suite. A candidate expression must repair failing executions while retaining the required behavior of passing ones.
For replacement conditions, the expected output is defined by:
O_loc,m,n = { eval(loc) for a passing test; angelic value for a failing test }
O_loc,m,n is the desired Boolean result at source location loc, during execution occurrence m of test n. The function eval(loc) means the result of evaluating the original condition at that occurrence. An angelic value supplies the corresponding desired result for a failing test.
This formulation preserves the original branch decisions observed in passing executions. It gives synthesis a concrete target without requiring a complete specification of the method.
For a newly inserted guard, Nopol uses:
O_loc,m,n = { true for a passing test; false for a failing test }
The indices have the same meanings: source location, occurrence, and test. A true guard executes the original statement; a false guard skips it. The failing-test outcome comes from the successful skipping experiment. The passing-test outcome is a conservative assumption intended to preserve the existing execution.
That assumption is stronger than merely requiring the passing test to remain successful. A passing test might tolerate skipping the statement. The PL3 analysis later shows that requiring execution can exclude a valid patch.
Record the inputs available to an expression
Nopol records the program state accessible at the candidate location. Each snapshot becomes an input example:
C_loc,m,n
The symbol C_loc,m,n denotes the collected values at location loc, on occurrence m within test n. These values are the material from which synthesis may construct a condition.
Primitive observations include Boolean and numeric values from accessible program variables. Nopol also supplies constants used commonly in conditions. The paper names 0, -1, and 1 as standard constants, alongside relevant static values obtained from the program. Arithmetic components can construct additional values when the needed operations are available.
The description contains a scope qualification worth preserving. Its main account discusses local variables, parameters, and fields; a footnote says that collecting additional non-static fields produced less readable patches and that these extra fields were omitted. The practical input vocabulary is therefore a selected implementation choice instead of an unrestricted inventory of all reachable state.
For objects, Nopol records whether visible references are null. It also evaluates selected state-query methods: argumentless methods with primitive results that inspect an object without changing it. Examples include collection size and emptiness checks.
The method list is supplied manually using knowledge of the relevant classes. Nopol does not infer that arbitrary methods are safe to call. The collection process supports Java polymorphism, so an observed method result may come from different implementations across executions.
For the number of query-method observations, the paper uses:
Σ_o∈O |sqm(class(o))|
Here, O is the set of objects available in the relevant scope. The function class(o) identifies an object’s class, and sqm returns the selected state-query methods for that class. Vertical bars give the size of that method set. The summation counts the results collected across objects. This use of O differs from its earlier use for expected outcomes; the meaning follows the local definition.
If the scope contains u primitive values and w objects, the collected material includes those primitive values, w nullness observations, the query-method results counted above, and constants. The important consequence is expressive: a repair can depend on an object property without encoding the object’s complete implementation.
State the synthesis objective
The desired expression must agree with every collected input-output example:
∀loc,m,n exp(C_loc,m,n) = O_loc,m,n
exp is the Boolean expression being synthesized. C_loc,m,n supplies its observed inputs, and O_loc,m,n supplies the required result. The universal quantifier means that the equality must hold for all collected occurrences under consideration.
This is an example-based constraint. It establishes agreement on recorded executions. Whether that agreement extends to unobserved inputs depends on the examples and the expression selected.
Nopol represents each operation as a building block:
b_i = (φ_i(I_i, r_i), I_i, r_i)
b_i is a component, I_i is its set of inputs, and r_i is its output. The formula φ_i describes the relationship imposed by the operation. For a conjunction component, that relationship says that its Boolean output equals the conjunction of its Boolean inputs.
The available component types include comparisons, arithmetic operations, and Boolean operations. The arithmetic vocabulary includes addition, subtraction, and multiplication. Division is excluded from the implemented set discussed here because handling possible division by zero would require additional care.
The synthesis problem is to connect component inputs to observed inputs or to other component outputs. A component’s output may in turn feed the final Boolean result.
Distinguish expression structure from execution values
The encoding uses two kinds of unknowns. A location variable determines where an item sits in the synthesized expression’s structure. A value variable describes the item’s value for a particular example.
The collection of expression items is:
IO = I ∪ O ∪ I₀ ∪ {r}
Here, I contains component inputs, O contains component outputs, I₀ contains the original inputs available to synthesis, and r is the final result. The union symbol combines these sets. In this part of the encoding, O denotes component outputs.
For an item x, l_x is its structural location and v_x its value. Structural locations are integer indices. Values have the supported Boolean, integer, or real type. The same location assignment must work across the examples, ensuring that synthesis produces a shared expression.
The encoding defines the final position using:
p = |I₀| + |B|
B is the set of component instances supplied to a synthesis attempt. Vertical bars indicate set size. p is the final position after accounting for the original inputs and the supplied component outputs.
The fixed-position constraint is:
φ_FIXED(I₀, r) = (⋀i=1…|I₀| l_I₀,i = i) ∧ l_r = p
φ_FIXED fixes each original input’s structural index and places the final result at p. The symbol ⋀ means that every indexed equality must hold, while ∧ joins that requirement with the constraint on l_r.
Component outputs occupy the remaining positions:
φ_OUTPUT(O) = ⋀i=1…|O| (|I₀| + 1 ≤ l_rᵢ ≤ p)
O contains component outputs, and l_rᵢ is the structural index of output r_i. The bounds place each output after the original inputs and no later than the final position.
Typing restricts possible connections:
φ_INPUT(I) = ⋀x∈I ⋁y∈type(x),x≠y (l_x = l_y)
I contains component input ports. The function type(x) returns eligible items of the same supported type as x. The disjunction ⋁ allows a choice among those items. Each input must connect to a type-compatible source by sharing its location.
This restriction prevents structurally possible but meaningless wiring, such as using an integer as the argument of a Boolean negation.
Require a well-formed expression
Different component outputs must receive different structural positions:
φ_CONS(L, O) = ⋀x,y∈O,x≠y l_x ≠ l_y
L is the set of location variables, and O contains component outputs. The constraint keeps distinct outputs from occupying the same position. It does not prohibit an available result from supplying more than one later input.
The next constraint prevents cycles:
φ_ACYC(B, L, I, O) = ⋀(φ_i,I_i,r_i)∈B ⋀x∈I_i l_x < l_rᵢ
B contains the component instances. For each component, every input location must precede its output location. This produces an evaluation order in which arguments are available before their operation is computed.
The complete structural requirement combines the preceding predicates:
φ_WFF = φ_FIXED ∧ φ_OUTPUT ∧ φ_INPUT ∧ φ_CONS ∧ φ_ACYC
φ_WFF denotes well-formedness. Its constituent predicates fix the basic positions, bound output positions, enforce typing, separate component outputs, and prevent cycles. An assignment satisfying them describes an admissible expression structure.
Structure alone says nothing about whether that expression produces the desired values. Nopol therefore adds semantic constraints.
Give the expression its meaning
Each component must obey the operation it represents:
φ_LIB(B, V_IO) = ⋀(φ_i,I_i,r_i)∈B pb_i(value(I_i), v_rᵢ)
V_IO contains value variables for component inputs and outputs. The function value(I_i) retrieves the current values of component i’s inputs. The predicate pb_i enforces that component’s operation, relating those inputs to output value v_rᵢ. φ_LIB requires these relationships for all supplied components.
The wiring must also carry values consistently:
φ_CONN(L, V_IO) = ⋀S∈{BOOL,INT,REAL} ⋀x,y∈S (l_x = l_y ⇒ v_x = v_y)
BOOL, INT, and REAL name the supported solver types. Within each type, items sharing a structural location must share a value. The implication symbol ⇒ expresses that requirement. L supplies structure, while V_IO supplies execution-specific values.
For an individual observation, the functional constraint is:
φ_FUNC(B,L,C_loc,m,n,O_loc,m,n) = ∃V_IO (φ_LIB ∧ φ_CONN[value(I₀) ← C_loc,m,n, v_r ← O_loc,m,n])
The existential quantifier ∃ asks whether intermediate values can satisfy the constraints. The substitutions fix original inputs to the collected snapshot and fix the final result to the expected outcome. φ_LIB supplies operation semantics, and φ_CONN transfers values along the selected wiring.
Finally, the patch constraint requires shared structure across observations:
φ_PATCH(B,I,O,CO,I₀,r) = ∃L ((⋀(C_loc,m,n,O_loc,m,n)∈CO φ_FUNC(B,L,C_loc,m,n,O_loc,m,n)) ∧ φ_WFF)
CO is the collection of observed input-output pairs. The solver chooses the location variables L once, then must satisfy φ_FUNC for every pair while also satisfying well-formedness. B, I, O, I₀, and r retain their meanings as components, component inputs, component outputs, original inputs, and final result.
This is the core of the method. An SMT solution describes a single expression whose evaluation matches all required examples.
Grow the search and reconstruct the patch
Providing many instances of every operation at once is expensive. Multiplication is singled out as a difficult operation for the solver. Nopol therefore uses successive synthesis levels, beginning with a small set of comparison components, then adding logical and arithmetic operations and increasing available component instances.
The first comparison set contains <, ≤, ≠, and =. The opposite comparison directions can be expressed by swapping arguments. This avoids requiring separate components for every written form.
Once a satisfying assignment is found, patch reconstruction begins at the final output location and follows its inputs backward. An observed variable becomes its source-code expression; an operation becomes the corresponding source-code operation over recursively reconstructed arguments.
Components disconnected from the final result do not appear in the patch. The paper’s running example illustrates that a supplied component may remain unused. The translation is deterministic for a given solver assignment, although different satisfying assignments may describe different expressions.
The final step reruns the complete test suite against the generated source patch. The authors retain this check because errors could exist in instrumentation, constraint generation, solving, or translation. Successful synthesis is therefore followed by validation of the concrete patched program.
Experiments and results
Reconstructing historical repair tasks
The evaluation dataset contains 22 bugs from Commons Math and Commons Lang. The projects contribute 12 and 10 bugs respectively. By defect class, the dataset contains 16 faulty existing conditions and 6 missing preconditions.
The selection process begins with small commits that modify or introduce conditions. The authors define these as changing at most 5 files, with no more than 10 syntax-tree changes in each file. GumTree supplies the analysis of syntax changes.
This initial search finds 161 Math commits that change conditions and 104 that add guards. For Lang, the corresponding counts are 165 and 91. These are candidate commits, rather than the final evaluation tasks. Manual inspection and reproduction substantially narrow the collection.
For selected commits, the authors inspect the changed code, isolate the conditional repair from unrelated edits, retrieve the relevant tests, and configure an environment in which the original failure can be reproduced. They emphasize that reproduction is difficult and labor-intensive.
The resulting programs have an average size of 25.48K executable lines. The average cyclomatic complexity of the affected methods is 8.6. Cyclomatic complexity measures independent control-flow paths through a method; it helps characterize the local code surrounding a repair. The dataset includes a method with complexity 38 containing 30 if statements, showing that the targets are not uniformly simple snippets.
Implementation and execution conditions
Nopol is implemented using Java 1.7 and Spoon 3.1.0. Spoon supports the source transformations needed for forced execution, instrumentation, and patch construction. GZoltar 0.0.10 supplies fault-localization infrastructure.
The synthesis stage uses Z3 4.3.2, with SMT-LIB files generated through jSMTLIB. JUnit 4.11 drives the tests. The authors make Nopol’s source code and the evaluation material available as research artifacts.
Experiments run on an Intel Core i7 processor at 3.60 GHz under Debian 7.5. The Java heap limit is 2.50 GB. These details matter when interpreting execution times, since synthesis, instrumentation, and repeated testing all contribute to the measured repair process.
The experiment allows repair attempts to continue for up to five hours. The authors also discuss a shorter operational timeout based on successful attempts, but that suggested use should be distinguished from the longer limit applied during the evaluation.
What counts as a successful repair
The paper uses separate criteria for producing a patch and judging it correct. A generated patch satisfies the immediate repair objective when the complete suite passes. For the stronger judgment, the authors manually examine whether it implements behavior equivalent to the historical developer fix.
Nopol on the 22-bug dataset, patches under different acceptance criteria
Passing the test suite admits patches that do not meet the authors’ stronger correctness judgment.
The numbers
| System or setting | bugs with accepted patches |
|---|---|
| Complete test suite passes | 17 |
| Developer-equivalent behavior (this paper) | 13 |
The chart compares acceptance criteria applied to Nopol’s output; it is not a comparison with another repair system. The stricter criterion assesses a different property, so the values should not be read as competing optimization settings.
By defect class, Nopol generates test-passing patches for 13 out of 16 faulty-condition bugs and 4 out of 6 missing-precondition bugs. Among the synthesized patches, the manual correctness analysis accepts 13 out of 17.
That manual analysis involves understanding the affected functionality, the role of the change in the computation, and the meaning of the tests and their assertions. It provides evidence beyond test execution, while remaining a human assessment instead of a general equivalence proof.
The authors deliberately avoid presenting a repaired-bug percentage as an estimate of effectiveness in practice. They argue that such an estimate would require a defensible distribution of defect difficulty within the target class. Their curated dataset does not establish that distribution.
Test changes affect the interpretation
Some repairs require changes to the tests used during synthesis. The paper distinguishes adding tests, splitting existing tests, and deleting tests incompatible with the experimental environment.
Additional tests address weak specifications. The detailed results identify six bugs for which tests were added. Among the patches judged correct, five are described as depending on additional tests. These additions constrain expressions that would otherwise exploit gaps in the original examples.
Splitting tests serves a different purpose. The authors break larger tests into smaller units with an assertion in each. This helps the angelic procedure because its fixed outcome within a test can be too restrictive when the original test exercises different situations in succession.
Deleted tests concern compatibility with the selected Java and library environment. The authors describe this as an incidental configuration issue instead of a requirement of the repair idea. Nonetheless, it changes the validation suite and therefore matters when assessing what the experiment establishes.
The paper’s aggregate descriptions do not always agree on the number of repairs supported by added tests. The introduction mentions four, while the detailed correctness discussion names five correct patches using additions. Its general discussion also uses a different aggregate account. The stable conclusion is that additional tests materially affect correctness; the detailed result breakdown should guide interpretation instead of an artificially reconciled total.
Existing-condition repairs and newly added guards
Nopol can repair a faulty condition by guarding a statement inside or near it. The paper reports six faulty-condition bugs repaired through added preconditions in its main discussion of patch forms. It also reports that these bugs can be repaired when Nopol is restricted to changing conditions.
This shows that defect classification and repair action need not coincide. A developer may fix an outer condition while Nopol limits execution of a particular statement. Both can implement the intended behavior.
Location comparisons reinforce that point. For 11 out of 17 patched bugs, Nopol changes the same location as the developer. Elsewhere, it may introduce a guard at another location. The paper’s lists of alternative-location and alternative-action cases are not completely aligned, so they should be treated as related analyses rather than interchangeable counts.
The search order helps explain this behavior. If a statement receives a higher suspiciousness rank than its enclosing if statement, Nopol may find a successful guard before considering the original condition. The first successful expression reflects both the available repair language and the order of exploration.
What the case studies establish
PL4 illustrates direct agreement with the developer’s edit. A translation routine needs to distinguish a terminal marker with no further content from an input that still contains material to convert. The synthesized guard compares start with seqEnd.
The relevant passing execution has both values equal to 8. In the failing execution, they are 8 and 19. The resulting equality permits the statement in the former situation and skips it in the latter. The authors report that the patch matches the historical guard.
CL4 illustrates behavioral equivalence with different syntax. The affected string-search method needs to handle a null substring. Nopol can synthesize a null check joined with an index condition. A negated inequality can express the same nullness test as a direct equality, although less clearly.
The surrounding method also explains why a condition can differ more substantially and remain correct. If an index exceeds the builder size, a later loop does not execute and the method returns the appropriate non-found result. The repair therefore has to be interpreted within the whole method, rather than judged solely by comparison with the developer’s condition.
CM2 illustrates a different edit location. A binomial-coefficient method incorrectly rejects zero through a nonpositive-input condition. The developer changes that condition to reject only negative inputs. Nopol instead guards the exception statement with a negative-input check, using a program constant equal to zero.
Under the enclosing condition, that additional guard prevents the incorrect exception for zero. It preserves the exception for negative input. The behavior can therefore agree with the developer’s repair despite the nested structure.
CM1 illustrates the effect of incomplete examples. A percentile calculation needs the boundary case where an estimated position reaches the array length. The original examples permit an incorrect synthesized condition. An added example using values {1,2,3} and percentile 100, with expected result 3.0, constrains the boundary more effectively.
The repaired expression uses a floored position and an equivalent length variable. Understanding its correctness requires relating those variables to the calculation, instead of requiring the expression to copy the developer’s syntax.
Execution time and localization evidence
For the 17 bugs with synthesized patches, the reported average repair time is 24.8 seconds. Among the five unsuccessful cases, four reach the timeout and the remaining attempt takes 37 seconds.
The paper also states a range of 6 to 84 seconds for execution times across the evaluated bugs. That statement sits awkwardly beside the reported five-hour timeouts. It is safest to understand the short range as describing the reported terminating attempts, instead of treating it as a bound on every attempted repair.
Based on successful executions, the authors suggest 90 seconds as a possible practical timeout. This is a proposed operating choice, not an experimentally established threshold that preserves every repair opportunity.
For patched statements, the average fault-localization rank is 32.8. Some successful locations rank beyond 50. Thus, Nopol can search past highly ranked but unproductive candidates, although the ranking still affects cost.
The authors do not run a quantitative repair comparison against competing systems on this dataset. They explain that some relevant implementations target C and others were unavailable. Their results establish what Nopol does on the reconstructed Java tasks, without establishing superiority over another repair technique.
What the ablations show
The paper has no broad component-removal ablation; it offers targeted comparisons, changes to specifications, and detailed analyses of successful and unsuccessful repairs.
Restricting the repair action
The condition-only rerun is the clearest controlled restriction. Several bugs originally repaired by adding guards can also be repaired when Nopol is allowed only to replace existing conditions.
This establishes overlap between the repair spaces on those cases. It also explains why a generated patch’s category is partly a consequence of search order. A guard found early does not imply that the original condition was impossible to repair.
The experiment does not establish a universal preference between the actions. It does not show that always changing conditions is faster, or that adding guards generally produces better patches. The authors explicitly avoid assigning an analytical priority to either strategy.
Comparing fault-localization measures
The authors compare Ochiai with Tarantula, Jaccard, Naish2, Ochiai2, and Kulczynski2. The measure is absolute wasted effort, defined through the ranking position of the known faulty statement.
effort = |{x ∈ S : susp(x) > susp(x*)}| + 1
S is the set of statements under consideration. x* is the actual faulty statement, while x ranges over candidate statements. The expression counts statements with a strictly higher suspiciousness score and then adds 1. A smaller result places the fault closer to the front of the ranking.
For faulty existing conditions, Jaccard has the best mean wasted effort. Jaccard and Naish2 share the best median. For missing preconditions, Tarantula has the best mean, while Ochiai, Jaccard, and Naish2 share the median result described by the authors.
This shows that the preferred ranking measure depends on the defect group and summary statistic. It supports the authors’ view that Ochiai is a reasonable choice for their evaluation. Because the analysis measures localization ranks rather than rerunning the complete repair process under every measure, it provides limited evidence about end-to-end repair sensitivity.
Strengthening and restructuring tests
The added-test cases show that more informative examples can eliminate misleading expressions. CM1 makes the mechanism visible: boundary behavior absent from the original suite leaves room for an incorrect condition; an additional example changes the synthesis constraints.
This is not a uniform experiment in which every bug receives an identical testing intervention. The additions are manually designed in response to particular failures. The evidence supports the value of stronger specifications, without quantifying the expected benefit of an automatic test-generation procedure.
Test splitting exposes another interaction. A test that contains several assertions may require different outcomes from repeated executions of a condition. Splitting those situations into separate tests makes them compatible with Nopol’s fixed angelic value per test.
The underlying computation can remain the same while the packaging of its checks changes repairability. That is a methodological warning for evaluating dynamic repair systems: test organization can influence the search, even when the assertions collectively describe similar behavior.
Relaxing an incorrect guard specification
PL3 provides a particularly revealing diagnostic experiment. The normal missing-precondition encoding requires a true guard for every passing execution. In this case, the developer’s valid guard evaluates to false for a passing test.
The authors temporarily remove that preservation assumption and synthesize from failing-test requirements. They obtain a guard that has the intended behavior. The result isolates the problem: the original expected-output assignment excluded the relevant repair.
This does not establish that passing-test constraints should generally be removed. Those constraints protect existing behavior. The experiment instead shows that a Boolean decision may have several acceptable outputs for a passing test, and that choosing one prematurely can make synthesis unnecessarily restrictive.
Limitations
Author-stated limits of the repair space
Nopol repairs at a single source location. It does not target several independent faults or a defect requiring coordinated edits across multiple locations. Its expression vocabulary is also bounded by the collected observations and available components.
The fixed angelic result within each test is an explicit incompleteness. PM1 needs behavior that cannot be represented by forcing the same decision throughout the test. Failure to find an angelic value therefore does not demonstrate that no conditional repair exists.
The search can also alter execution in harmful ways. For CM9, forcing a condition causes an infinite loop. A temporary execution intervention can prevent the experiment from terminating, so localization needs its own resource controls. The authors discuss execution limits as a possible response, while noting that suitable test timeouts vary across program versions and suites.
Author-stated limits of collected observations
Nopol cannot directly synthesize conditions requiring arbitrary methods with arguments. CM8 needs an absolute-value computation expressed through abs(x). That result is absent from the supported observation vocabulary, preventing the desired expression from being constructed.
The authors consider introducing temporary values for side-effect-free calls, but trying calls with possible arguments would expand the search substantially. The limitation is therefore about obtaining suitable semantic inputs, rather than merely printing a method call in the resulting source.
Undefined method results create a different problem. CL6 needs a condition that accepts a null object or checks its length. When the object is null, evaluating the length query is invalid. Nopol consequently lacks a value needed by its encoding.
A correct source expression could avoid the invalid call through short-circuit evaluation. The encoding does not adequately represent that conditional availability. The authors identify support for undefined observations and constraints on their use as future work.
Author-stated limits of the specification
The expected guard outcome for passing tests can be wrong as a requirement, even when it preserves the observed execution. PL3 shows that both running and skipping a statement may satisfy a passing test. Nopol’s chosen target excludes one of those possibilities.
Weak suites also admit incorrect expressions. CM6 illustrates an expression depending on an input that happens to equal -1 in relevant executions. That association helps satisfy the examples without capturing the intended control rule.
These are distinct failures. An overly strong specification can rule out correct patches, while an overly weak specification can admit incorrect ones. Improving repair requires attention to both problems.
Author-stated threats to evaluation validity
The dataset is small and restricted to conditional defects from the chosen projects. The authors do not claim it represents the full distribution of such bugs. Collecting more reproducible historical tasks would require substantial additional work.
Manual preparation creates possible bias. The researchers isolate conditional edits from larger commits, including separating a precondition from a more complex change for PM2. The resulting task is useful for studying the target repair action, but it may be simpler than repairing the original commit-level defect without assistance.
Test additions, splitting, and deletions also limit direct interpretation. Some results describe repair after human intervention in the specification. They should not be presented as unattended recovery from the original program and unchanged tests.
Further limits visible in the setup
The manual correctness criterion compares generated behavior with the developer’s fix. This is stronger than requiring tests to pass, but it is not a proof covering every input. Its reliability depends on the depth of the analysis and the correctness of the historical repair.
The absence of a same-dataset repair baseline prevents comparative performance claims. Earlier systems differ in implementation language, availability, search space, and evaluation material. Their published results cannot substitute for a controlled comparison.
The synthesis process also selects from potentially many expressions satisfying the observations. Gradually increasing complexity encourages a manageable search, but does not itself optimize readability or semantic generality. The paper’s redundant expressions and incorrect patches demonstrate why those properties need separate attention.
Finally, object-oriented support is selective. Nullness and chosen state-query results are useful observations, but they do not amount to general reasoning about arbitrary object behavior. The successful Java patches establish the value of this bounded extension, while the failed method-call cases show its boundary.
What came after
Extensions already discussed by the authors
The paper describes SPR as a successor to the earlier Nopol publication. SPR also repairs conditional behavior, but explores pre-defined transformation schemes instead of constructing conditions through Nopol’s component-based synthesis pipeline.
Its direct connection to Nopol concerns angelic execution. SPR extends the collection procedure to consider sequences of outcomes. That addresses the restriction that can prevent Nopol from handling a condition executed repeatedly within a test. The relationship is concrete: SPR expands an execution-level idea while using a different mechanism for constructing candidate patches.
The authors also discuss Prophet, which extends SPR with probability-based candidate prioritization learned from historical patches. They suggest that a related preference mechanism could help Nopol choose among multiple satisfying expressions. This is a proposed connection, rather than an evaluated addition to Nopol.
DirectFix offers another relevant direction through optimization for simpler repairs. Nopol can return a logically correct but redundant expression, so simplicity is a separate objective from satisfiability. The authors point to this work when discussing patch readability.
The paper further reports an application to Defects4J, a collection containing 357 historical bugs from five Java projects. It states that Nopol can repair 35 bugs in that benchmark. That result broadens the reported application context, although the detailed experiment in this article remains the conditional-bug evaluation analyzed throughout the paper.
Later citing work
LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software is a later citing work from 2026. Its stated subject is the evaluation of repair techniques for logical vulnerabilities. The connection to Nopol is meaningful at the level of the research question: changing program logic requires evidence that a generated edit repairs the intended behavior.
The available description does not establish that LogicEval adopts angelic localization, Nopol’s expression encoding, or its observation vocabulary. Nopol supplies a useful point of comparison because it clearly separates test acceptance from a stronger correctness judgment, but a more specific technical lineage cannot be asserted.
CascadeFix: Multi-Location Program Repair via Cascading Planning and Generation is another citing work from 2026. Its title identifies repair across multiple locations as its scope. That concern reaches beyond Nopol’s explicit restriction to a repair at a single point.
The citation does not establish that CascadeFix extends Nopol’s solver formulation or its forced-execution procedure. The defensible relationship is that the later work addresses a repair setting excluded from Nopol’s implementation. Together, these later citations keep attention on the questions the paper makes concrete: how to evaluate changes to program logic, and how to move from a useful local repair mechanism towards defects that require broader changes.
Cite
Cite as Jifeng Xuan, Matías Martínez, Favio DeMarco, Maxime Clement, Sebastian R. Lamelas Marcote, Thomas Durieux, Daniel Le Berre and Martin Monperrus. 2016. Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs. IEEE Transactions on Software Engineering.
@article{xuan2016nopol,
title = {{Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs}},
author = {Jifeng Xuan, Matías Martínez, Favio DeMarco, Maxime Clement, Sebastian R. Lamelas Marcote, Thomas Durieux, Daniel {Le Berre} and Martin Monperrus},
journal = {IEEE Transactions on Software Engineering},
year = {2016},
doi = {10.1109/tse.2016.2560811},
eprint = {1811.04211},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/tse.2016.2560811}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xuan-2016-nopol-automatic-repair-conditional-statement/
References
- Nopol dataset website. http://sachaproject.gforge.inria.fr/nopol/. Accessed: 2015-06-01. OpenAlex ↗ · Scholar ↗
- Nopol source code (gpl license). http://github.com/SpoonLabs/nopol/. Accessed: 2015-06-01. OpenAlex ↗ · Scholar ↗
- On contributing patches of apache commons. http://commons.apache.org/patches.html#Test_Cases. Accessed: 2015-06-01. OpenAlex ↗ · Scholar ↗
- R. Abreu, P. Zoeteweij, and A. J. Van Gemund. On the accuracy of spectrum-based fault localization. In Testing: Academic and Industrial Conference Practice and Research Techniques-MUTATION, 2007, pages 89–98. IEEE, 2007. OpenAlex ↗ · Scholar ↗
- E. T. Barr, Y. Brun, P. T. Devanbu, M. Harman, and F. Sarro. The plastic surgery hypothesis. In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, pages 306–317, 2014. OpenAlex ↗ · Scholar ↗
- J. Campos, A. Riboira, A. Perez, and R. Abreu. Gzoltar: an Eclipse plug-in for testing and debugging. In Proceedings of Automated Software Engineering, 2012. OpenAlex ↗ · Scholar ↗
- A. Carzaniga, A. Gorla, A. Mattavelli, N. Perino, and M. Pezze. Automatic recovery from runtime failures. In Proceedings of the 2013 International Conference on Software Engineering, pages 782–791. IEEE Press, 2013. OpenAlex ↗ · Scholar ↗
- A. Carzaniga, A. Gorla, N. Perino, and M. Pezzè. Automatic workarounds for web applications. In Proceedings of the ACM SIGSOFT International Symposium on Foundations of Software Engineering, pages 237–246. ACM, 2010. OpenAlex ↗ · Scholar ↗
- S. Chandra, E. Torlak, S. Barman, and R. Bodik. Angelic debugging. In Proceeding of the International Conference on Software Engineering, pages 121–130. IEEE, 2011. OpenAlex ↗ · Scholar ↗
- D. R. Cok. jSMTLIB: Tutorial, validation and adapter tools for SMT-LIBv2. In NASA Formal Methods, pages 480–486. Springer, 2011. OpenAlex ↗ · Scholar ↗
- V. Dallmeier, A. Zeller, and B. Meyer. Generating fixes from object behavior anomalies. In Proceedings of the 2009 IEEE/ACM International Conference on Automated Software Engineering, pages 550–554. IEEE Computer Society, 2009. OpenAlex ↗ · Scholar ↗
- L. de Moura and N. Bjørner. Z3: An efficient SMT solver. In Tools and Algorithms for the Construction and Analysis of Systems, 14th International Conference, TACAS 2008, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2008, Budapest, Hungary, March 29-April 6, 2008. Proceedings, volume 4963 of Lecture Notes in Computer Science, pages 337–340. Springer, 2008. OpenAlex ↗ · Scholar ↗
- V. Debroy and W. E. Wong. Using mutation to automatically suggest fixes for faulty programs. In Proceedings of the 2010 Third International Conference on Software Testing, Verification and Validation, ICST '10, pages 65–74, 2010. OpenAlex ↗ · Scholar ↗
- F. DeMarco, J. Xuan, D. Le Berre, and M. Monperrus. Automaticr epair of buggy if conditions and missing preconditions with smt. In Proceedings of the 6th International Workshop on Constraints in Software Testing, Verification, and Analysis, pages 30–39. ACM, 2014. OpenAlex ↗ · Scholar ↗
- J.-R. Falleri, F. Morandat, X. Blanc, M. Martinez, and M. Monperrus. Fine-grained and accurate source code differencing. In Proceedings of the 29th ACM/IEEE International Conference on Automated Software Engineering, ASE '14, pages 313–324, 2014. OpenAlex ↗ · Scholar ↗
- Z. P. Fry, B. Landau, and W. Weimer. A human study of patch maintainability. In Proceedings of the International Symposium on Software Testing and Analysis, pages 177–187, 2012. OpenAlex ↗ · Scholar ↗
- S. Gulwani, S. Jha, A. Tiwari, and R. Venkatesan. Synthesis of loop-free programs. In Proceedings of the 32nd ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2011, San Jose, CA, USA, June 4-8, 2011, pages 62–73, 2011. OpenAlex ↗ · Scholar ↗
- D. Jeffrey, N. Gupta, and R. Gupta. Fault localization using value replacement. In Proceedings of the International Symposium on Software Testing and Analysis, pages 167–178. ACM, 2008. OpenAlex ↗ · Scholar ↗
- S. Jha, S. Gulwani, S. A. Seshia, and A. Tiwari. Oracle-guided component-based program synthesis. In Proceedings of the International Conference on Software Engineering, volume 1, pages 215–224. IEEE, 2010. OpenAlex ↗ · Scholar ↗
- B. Jobstmann, A. Griesmayer, and R. Bloem. Program repair as a game. In Computer Aided Verification, pages 226–238, 2005. OpenAlex ↗ · Scholar ↗
- J. A. Jones, M. J. Harrold, and J. Stasko. Visualization of test information to assist fault localization. In Proceedings of the 24th international conference on Software engineering, pages 467–477. ACM, 2002. OpenAlex ↗ · Scholar ↗
- R. Just, D. Jalali, and M. D. Ernst. Defects4J: A database of existing faults to enable controlled testing studies for Java programs. In Proceedings of the International Symposium on Software Testing and Analysis (ISSTA), pages 437–440, July 23–25 2014. OpenAlex ↗ · Scholar ↗
- Y. Ke, K. T. Stolee, C. Le Goues, and Y. Brun. Repairing programs with semantic code search. In Proceedings of the 30th IEEE/ACM International Conference on Automated Software Engineering (ASE), Lincoln, NE, USA, November 2015. OpenAlex ↗ · Scholar ↗
- D. Kim, J. Nam, J. Song, and S. Kim. Automatic patch generation learned from human-written patches. In Proceedings of the 2013 International Conference on Software Engineering, pages 802–811, 2013. OpenAlex ↗ · Scholar ↗
- C. Le Goues, M. Dewey-Vogt, S. Forrest, and W. Weimer. A systematic study of automated program repair: Fixing 55 out of 105 bugs for $8 each. In Software Engineering (ICSE), 2012 34th International Conference on, pages 3–13. IEEE, 2012. OpenAlex ↗ · Scholar ↗
- C. Le Goues, N. Holtschulte, E. K. Smith, Y. Brun, P. Devanbu, S. Forrest, and W. Weimer. The manybugs and introclass benchmarks for automated repair of c programs. IEEE Transactions on Software Engineering (TSE), in press, 2015. OpenAlex ↗ · Scholar ↗
- C. Le Goues, T. Nguyen, S. Forrest, and W. Weimer. Genprog: A generic method for automatic software repair. Software Engineering, IEEE Transactions on, 38(1):54–72, 2012. OpenAlex ↗ · Scholar ↗
- Y. Li, S. Cheung, X. Zhang, and Y. Liu. Scaling up symbolic analysis by removing z-equivalent states. ACM Trans. Softw. Eng. Methodol., 23(4):34:1–34:32, 2014. OpenAlex ↗ · Scholar ↗
- F. Long and M. Rinard. Staged program repair with condition synthesis. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering, ESEC/FSE 2015, Bergamo, Italy, August 30 - September 4, 2015, pages 166–178, 2015. OpenAlex ↗ · Scholar ↗
- S. L. Marcote and M. Monperrus. Automatic repair of infinite loops. Technical Report 1504.05078, Arxiv, 2015. OpenAlex ↗ · Scholar ↗
- M. Martinez, T. Durieux, J. Xuan, and M. Monperrus. Automatic repair of real bugs in java: A large-scale experiment on the defects4j dataset. Technical Report 1505.07002, Arxiv, 2015. OpenAlex ↗ · Scholar ↗
- M. Martinez and M. Monperrus. Mining software repair models for reasoning on the search space of automated program fixing. Empirical Software Engineering, 20(1):176–205, 2015. OpenAlex ↗ · Scholar ↗
- M. Martinez, W. Weimer, and M. Monperrus. Do the fix ingredients already exist? an empirical inquiry into the redundancy assumptions of program repair approaches. In Proceedings of the 36th International Conference on Software Engineering, pages 492–495, 2014. OpenAlex ↗ · Scholar ↗
- T. J. McCabe. A complexity measure. Software Engineering, IEEE Transactions on, (4):308–320, 1976. OpenAlex ↗ · Scholar ↗
- S. Mechtaev, J. Yi, and A. Roychoudhury. Directfix: Looking for simple program repairs. In Proceedings of the 37th International Conference on Software Engineering. IEEE, 2015. OpenAlex ↗ · Scholar ↗
- M. Monperrus. A critical review of automatic patch generation learned from human-written patches: essay on the problem statement and the evaluation of automatic software repair. In Proceedings of the 36th International Conference on Software Engineering, pages 234–242. ACM, 2014. OpenAlex ↗ · Scholar ↗
- L. Naish, H. J. Lee, and K. Ramamohanarao. A model for spectra-based software diagnosis. ACM Transactions on Software Engineering and Methodology (TOSEM), 20(3):11, 2011. OpenAlex ↗ · Scholar ↗
- H. D. T. Nguyen, D. Qi, A. Roychoudhury, and S. Chandra. Semfix: Program repair via semantic analysis. In Proceedings of the 2013 International Conference on Software Engineering, pages 772–781. IEEE Press, 2013. OpenAlex ↗ · Scholar ↗
- K. Pan, S. Kim, and E. J. Whitehead Jr. Toward an understanding of bug fix patterns. Empirical Software Engineering, 14(3):286–315, 2009. OpenAlex ↗ · Scholar ↗
- R. Pawlak, M. Monperrus, N. Petitprez, C. Noguera, and L. Seinturier. Spoon: A Library for Implementing Analyses and Transformations of Java Source Code. Software: Practice and Experience, page na, 2015. OpenAlex ↗ · Scholar ↗
- Y. Pei, C. A. Furia, M. Nordio, Y. Wei, B. Meyer, and A. Zeller. Automated fixing of programs with contracts. IEEE Transactions on Software Engineering, 40(5):427–449, 2014. OpenAlex ↗ · Scholar ↗
- J. H. Perkins, G. Sullivan, W.-F. Wong, Y. Zibin, M. D. Ernst, M. Rinard, S. Kim, S. Larsen, S. Amarasinghe, J. Bachrach, M. Carbin, C. Pacheco, F. Sherwood, and S. Sidiroglou. Automatically Patching Errors in Deployed Software. In Proceedings of the 22nd Symposium on Operating Systems Principles (SOSP), 2009. OpenAlex ↗ · Scholar ↗
- Y. Qi, X. Mao, and Y. Lei. Efficient automated program repair through fault-recorded testing prioritization. In 2013 IEEE International Conference on Software Maintenance, pages 180–189, 2013. OpenAlex ↗ · Scholar ↗
- Y. Qi, X. Mao, Y. Lei, Z. Dai, and C. Wang. The strength of random search on automated program repair. In Proceedings of the 36th International Conference on Software Engineering, pages 254–265. ACM, 2014. OpenAlex ↗ · Scholar ↗
- Z. Qi, F. Long, S. Achour, and M. Rinard. An analysis of patch plausibility and correctness for generate-and-validate patch generation systems. In Proceedings of ISSTA. ACM, 2015. OpenAlex ↗ · Scholar ↗
- E. K. Smith, E. Barr, C. Le Goues, and Y. Brun. Is the cure worse than the disease? overfitting in automated program repair. In Proceedings of the 10th Joint Meeting of the European Software Engineering Conference and ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE), Bergamo, Italy, September 2015. OpenAlex ↗ · Scholar ↗
- F. Steimann, M. Frenkel, and R. Abreu. Threats to the validity and value of empirical assessments of the accuracy of coverage-based fault locators. In Proceedings of the 2013 International Symposium on Software Testing and Analysis, pages 314–324. ACM, 2013. OpenAlex ↗ · Scholar ↗
- Y. Tao, J. Kim, S. Kim, and C. Xu. Automatically generated patches as debugging aids: a human study. In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, pages 64–74, 2014. OpenAlex ↗ · Scholar ↗
- W. Weimer, Z. P. Fry, and S. Forrest. Leveraging program equivalence for adaptive program repair: Models and first results. In 2013 28th IEEE/ACM International Conference on Automated Software Engineering, ASE 2013, Silicon Valley, CA, USA, November 11-15, 2013, pages 356–366, 2013. OpenAlex ↗ · Scholar ↗
- J. Xu, Z. Zhang, W. Chan, T. Tse, and S. Li. A general noise-reduction framework for fault localization of java programs. Information and Software Technology, 55(5):880–896, 2013. OpenAlex ↗ · Scholar ↗
- J. Xuan, B. Cornu, M. Martinez, B. Baudry, L. Seinturier, and M. Monperrus. Dynamic Analysis can be Improved with Automatic Test Suite Refactoring. Technical Report 1506.01883, Arxiv, 2015. OpenAlex ↗ · Scholar ↗
- J. Xuan and M. Monperrus. Learning to combine multiple ranking metrics for fault localization. In 30th IEEE International Conference on Software Maintenance and Evolution, Victoria, BC, Canada, 2014, pages 191–200, 2014. OpenAlex ↗ · Scholar ↗
- J. Xuan and M. Monperrus. Test case purification for improving fault localization. In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE), pages 52–63. ACM, 2014. OpenAlex ↗ · Scholar ↗
- S. Yoo, M. Harman, and D. Clark. Fault localization prioritization: Comparing information-theoretic and coverage-based approaches. ACM Transactions on Software Engineering and Methodology (TOSEM), 22(3):19, 2013. OpenAlex ↗ · Scholar ↗
- X. Zhang, N. Gupta, and R. Gupta. Locating faults through automated predicate switching. In Proceedings of the 28th international conference on Software engineering, pages 272–281. ACM, 2006. OpenAlex ↗ · Scholar ↗
- H. Zhong and Z. Su. An empirical study on fixing real bugs. In Proceedings of the 37th International Conference on Software Engineering (ICSE), pages 913–923. IEEE, 2015. OpenAlex ↗ · Scholar ↗