Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct smtlib2 syntax for push/pop #728

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading