3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-18 16:28:56 +00:00

add a check in entry_invariant()

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2026-01-02 10:54:36 -10:00
parent 5c4a3128c4
commit 918722d2f6

View file

@ -2239,6 +2239,10 @@ namespace lp {
if (var_is_fresh(p.var()))
continue;
unsigned j = local_to_lar_solver(p.var());
if (j == UINT_MAX) {
TRACE(dio, tout << "(local: " << "x" << p.var() << ") is not registered \nbad entry:"; print_entry(ei, tout) << "\n";);
return false;
}
if (is_fixed(j)) {
TRACE(dio, tout << "x" << j << "(local: " << "x" << p.var() << ") should not be fixed\nbad entry:"; print_entry(ei, tout) << "\n";);
return false;