mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 06:00:53 +00:00
Ensure that Z3 uses the correct SMT-LIB2 syntax for push
and pop
(#4495)
* When pretty-printing SMTLIB2, ensure that Z3 uses the correct syntax for 'push' Signed-off-by: Andrew V. Jones <andrew.jones@vector.com> * When pretty-printing SMTLIB2, ensure that Z3 uses the correct syntax for 'pop' Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
This commit is contained in:
parent
0bc33e9c9d
commit
a23ca1792b
6 changed files with 11 additions and 11 deletions
|
@ -1231,14 +1231,14 @@ namespace datalog {
|
|||
}
|
||||
else {
|
||||
for (unsigned i = 0; i < queries.size(); ++i) {
|
||||
if (queries.size() > 1) out << "(push)\n";
|
||||
if (queries.size() > 1) out << "(push 1)\n";
|
||||
out << "(assert ";
|
||||
expr_ref q(m);
|
||||
q = m.mk_not(queries[i].get());
|
||||
PP(q);
|
||||
out << ")\n";
|
||||
out << "(check-sat)\n";
|
||||
if (queries.size() > 1) out << "(pop)\n";
|
||||
if (queries.size() > 1) out << "(pop 1)\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue