mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 04:48:45 +00:00
This commit is contained in:
parent
82e481f6d9
commit
71ff987f6b
|
@ -248,10 +248,13 @@ namespace euf {
|
|||
}
|
||||
|
||||
void solver::validate_model(model& mdl) {
|
||||
bool first = true;
|
||||
for (enode* n : m_egraph.nodes()) {
|
||||
expr* e = n->get_expr();
|
||||
if (!m.is_bool(e))
|
||||
continue;
|
||||
if (has_quantifiers(e))
|
||||
continue;
|
||||
if (!is_relevant(n))
|
||||
continue;
|
||||
bool tt = l_true == s().value(n->bool_var());
|
||||
|
@ -263,6 +266,11 @@ namespace euf {
|
|||
verbose_stream() << "Failed to validate " << n->bool_var() << " " << bpp(n) << " " << mdl(e) << "\n";
|
||||
for (auto* arg : euf::enode_args(n))
|
||||
verbose_stream() << bpp(arg) << "\n" << mdl(arg->get_expr()) << "\n";);
|
||||
CTRACE("euf", first,
|
||||
tout << "Failed to validate " << n->bool_var() << " " << bpp(n) << " " << mdl(e) << "\n";
|
||||
s().display(tout);
|
||||
tout << mdl << "\n";);
|
||||
first = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue