Skip to content

Commit

Permalink
synth: correctly restore sim state after sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Dec 14, 2023
1 parent 47cfdcb commit d61bd87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synth/src/incremental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ where
// start new SMT context to make it easy to later revert everything
self.smt_ctx.push_many(1)?;

// restore correct starting state for SMT encoding
self.update_sim_state_to_step(step_range.start);

// generate one minimal repair
let r = generate_minimal_repair(
&mut self.rctx,
Expand Down

0 comments on commit d61bd87

Please sign in to comment.