mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
pass algebraic manager to arith-plugin mk-numeral because rational check may overwrite the argument using the current manager deals with crash as part of #4532
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ac39ddb43f
commit
c7704ef9af
11 changed files with 43 additions and 45 deletions
|
@ -796,13 +796,13 @@ namespace qe {
|
|||
continue;
|
||||
expr * v;
|
||||
try {
|
||||
v = util.mk_numeral(s.m_rmodel0.value(x), util.is_int(t));
|
||||
v = util.mk_numeral(s.m_solver.am(), s.m_rmodel0.value(x), util.is_int(t));
|
||||
}
|
||||
catch (z3_error & ex) {
|
||||
throw ex;
|
||||
}
|
||||
catch (z3_exception &) {
|
||||
v = util.mk_to_int(util.mk_numeral(s.m_rmodel0.value(x), false));
|
||||
v = util.mk_to_int(util.mk_numeral(s.m_solver.am(), s.m_rmodel0.value(x), false));
|
||||
ok = false;
|
||||
}
|
||||
md->register_decl(to_app(t)->get_decl(), v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue