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:
parent
26d36ba6ee
commit
74cf21b852
2 changed files with 24 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue