Skip to content

Commit

Permalink
Use correct smtlib2 syntax for push/pop (#728)
Browse files Browse the repository at this point in the history
Co-authored-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon and hernan-poncedeleon authored Sep 6, 2024
1 parent 3e6f247 commit 669e83a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Void addConstraint(BooleanFormula f) throws InterruptedException {
public boolean isUnsatWithAssumptions(Collection<BooleanFormula> fs) throws SolverException, InterruptedException {

if(dump()) {
write("(push)\n");
write("(push 1)\n");
for(BooleanFormula f : fs) {
write(fmgr.dumpFormula(f).toString());
}
Expand All @@ -102,7 +102,7 @@ public boolean isUnsatWithAssumptions(Collection<BooleanFormula> fs) throws Solv
write("(set-info :status " + (result ? "unsat" : "sat") + ")\n");
write("(check-sat)\n");
writeComment("Original solving time: " + (end - start) + " ms");
write("(pop)\n");
write("(pop 1)\n");
}

return result;
Expand Down Expand Up @@ -134,15 +134,15 @@ public Model getModel() throws SolverException {
@Override
public void push() throws InterruptedException {
if(dump()) {
write("(push)\n");
write("(push 1)\n");
}
prover.push();
}

@Override
public void pop() {
if(dump()) {
write("(pop)\n");
write("(pop 1)\n");
}
prover.pop();
}
Expand Down

0 comments on commit 669e83a

Please sign in to comment.