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:
parent
5c4a3128c4
commit
918722d2f6
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue