mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
n/a
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
95ee4c94f1
commit
2751cbc270
10 changed files with 70 additions and 52 deletions
|
@ -1549,13 +1549,19 @@ void cmd_context::display_dimacs() {
|
|||
if (m_solver) {
|
||||
try {
|
||||
gparams::set("sat.dimacs.display", "true");
|
||||
params_ref p;
|
||||
m_solver->updt_params(p);
|
||||
m_solver->check_sat(0, nullptr);
|
||||
}
|
||||
catch (...) {
|
||||
gparams::set("sat.dimacs.display", "false");
|
||||
params_ref p;
|
||||
m_solver->updt_params(p);
|
||||
throw;
|
||||
}
|
||||
gparams::set("sat.dimacs.display", "false");
|
||||
params_ref p;
|
||||
m_solver->updt_params(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue