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

add validation option

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-11-18 09:44:20 -08:00
parent c42f0d60e6
commit 86e22c1186
4 changed files with 14 additions and 4 deletions

View file

@ -59,6 +59,16 @@ namespace opt {
verbose_stream() << "Satisfying soft constraints\n";
display_answer(verbose_stream());
});
DEBUG_CODE(if (is_sat == l_true) {
IF_VERBOSE(0, verbose_stream() << "validating assignment\n";);
m_s->push();
commit_assignment();
VERIFY(is_sat == m_s->check_sat(0,0));
m_s->pop(1);
// TBD: check that all extensions are unsat too
});
return is_sat;
}