Skip to content

Commit 918722d

Browse files
committed
add a check in entry_invariant()
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
1 parent 5c4a312 commit 918722d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/math/lp/dioph_eq.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,6 +2239,10 @@ namespace lp {
22392239
if (var_is_fresh(p.var()))
22402240
continue;
22412241
unsigned j = local_to_lar_solver(p.var());
2242+
if (j == UINT_MAX) {
2243+
TRACE(dio, tout << "(local: " << "x" << p.var() << ") is not registered \nbad entry:"; print_entry(ei, tout) << "\n";);
2244+
return false;
2245+
}
22422246
if (is_fixed(j)) {
22432247
TRACE(dio, tout << "x" << j << "(local: " << "x" << p.var() << ") should not be fixed\nbad entry:"; print_entry(ei, tout) << "\n";);
22442248
return false;

0 commit comments

Comments
 (0)