mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
fix #4839
This commit is contained in:
parent
12198d13ac
commit
6d427d9dae
|
@ -3222,6 +3222,14 @@ public:
|
|||
init_variable_values();
|
||||
m_factory = alloc(arith_factory, m);
|
||||
mg.register_factory(m_factory);
|
||||
if (m_model_is_initialized) {
|
||||
expr_ref val(m);
|
||||
unsigned nv = th.get_num_vars();
|
||||
for (unsigned v = 0; v < nv; ++v)
|
||||
if (get_value(get_enode(v), val))
|
||||
m_factory->register_value(val);
|
||||
|
||||
}
|
||||
TRACE("arith", display(tout););
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue