mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 17:30:23 +00:00
fixing bugs uncovered by repro in #1914
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cf4bf7b591
commit
f699ac0353
2 changed files with 13 additions and 5 deletions
|
@ -491,13 +491,21 @@ namespace smt {
|
|||
if (!it->is_dead()) {
|
||||
unsigned rid = it->m_row_id;
|
||||
row & r = m_rows[rid];
|
||||
if (is_base(r.get_base_var()))
|
||||
theory_var v = r.get_base_var();
|
||||
if (v == null_theory_var) {
|
||||
// skip
|
||||
}
|
||||
else if (is_base(v)) {
|
||||
return it;
|
||||
}
|
||||
else if (quasi_base_rid == -1)
|
||||
quasi_base_rid = rid;
|
||||
}
|
||||
}
|
||||
SASSERT(quasi_base_rid != -1); // since c.size() != 0
|
||||
if (quasi_base_rid == -1) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
quasi_base_row2base_row(quasi_base_rid);
|
||||
// There is no guarantee that v is still a variable of row quasi_base_rid.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue