3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

relaxing asserts in column_to_reported_index

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-06-05 17:00:58 -07:00
parent 6a678fd5be
commit 9c078c6d59

View file

@ -163,8 +163,8 @@ void lar_solver::substitute_basis_var_in_terms_for_row(unsigned i) {
// It is the same index that was returned by add_var(), or
// by add_term()
unsigned lar_solver::column_to_reported_index(unsigned j) const {
SASSERT(j < m_var_register.size());
SASSERT(!tv::is_term(j));
if (tv::is_term(j))
return j;
unsigned ext_var_or_term = m_var_register.local_to_external(j);
if (tv::is_term(ext_var_or_term)) {
j = ext_var_or_term;