3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-19 12:20:49 +00:00

remove some non-deterministic behavior in theory_lra.cpp

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-10-29 21:37:05 -07:00
parent a1918c4630
commit 37c9f1c7c2
53 changed files with 217 additions and 11 deletions

View file

@ -80,6 +80,7 @@ nex * common::nexvar(const rational & coeff, lpvar j, nex_creator& cn, u_depende
if (!c().is_monic_var(j)) {
c().insert_to_active_var_set(j);
// TODO: non-deterministic parameter evaluation
return cn.mk_mul(cn.mk_scalar(coeff), cn.mk_var(j));
}
const monic& m = c().emons()[j];

View file

@ -2995,6 +2995,7 @@ namespace polynomial {
polynomial * add(polynomial const * p1, polynomial const * p2) {
numeral one(1);
// TODO: non-deterministic parameter evaluation
return addmul(one, mk_unit(), p1, one, mk_unit(), p2);
}
@ -3002,6 +3003,7 @@ namespace polynomial {
numeral one(1);
numeral minus_one; // It is incorrect to initialize with -1 when numeral_manager is GF_2
m_manager.set(minus_one, -1);
// TODO: non-deterministic parameter evaluation
return addmul(one, mk_unit(), p1, minus_one, mk_unit(), p2);
}