3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

add feature to display benchmark in format seen by SAT solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-09-21 18:32:46 -05:00
parent f5db69529a
commit cab4e4b461
9 changed files with 38 additions and 8 deletions

View file

@ -1545,6 +1545,20 @@ void cmd_context::reset_assertions() {
}
void cmd_context::display_dimacs() {
if (m_solver) {
try {
gparams::set("sat.dimacs.display", "true");
m_solver->check_sat(0, nullptr);
}
catch (...) {
gparams::set("sat.dimacs.display", "false");
throw;
}
gparams::set("sat.dimacs.display", "false");
}
}
void cmd_context::display_model(model_ref& mdl) {
if (mdl) {
model_params p;