3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-16 23:25:36 +00:00

Bug in model extraction

Added debug check
This commit is contained in:
CEisenhofer 2026-04-08 16:37:21 +02:00
parent 26d36ba6ee
commit 74cf21b852
2 changed files with 24 additions and 1 deletions

View file

@ -171,6 +171,12 @@ namespace smt {
if (n->is_char() || n->is_unit()) {
expr* e = n->get_expr();
expr_ref val(m);
if (e && m_int_model) {
m_int_model->eval_expr(e, val, true);
if (val)
return val;
}
return e ? expr_ref(e, m) : expr_ref(m);
}