3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-17 07:29:28 +00:00

Fixed order of undoing

This commit is contained in:
CEisenhofer 2026-04-23 17:17:58 +02:00
parent ace4105a90
commit e045e650da

View file

@ -3965,8 +3965,8 @@ namespace seq {
void nielsen_graph::dec_edge_mod_counts(nielsen_edge* e) {
auto& sub = e->subst();
for (unsigned i = 0; i < sub.size(); i++) {
unsigned id = sub[i].m_var->id();
for (unsigned i = sub.size(); i > 0; i++) {
unsigned id = sub[i - 1].m_var->id();
unsigned prev = m_length_backtrack.back();
m_length_backtrack.pop_back();
m_length_term.pop_back();
@ -3975,7 +3975,7 @@ namespace seq {
else
m_length_info.insert(id, prev);
id = sub[i].m_var->id();
id = sub[i - 1].m_var->id();
prev = 0;
VERIFY(m_mod_cnt.find(id, prev));
SASSERT(prev >= 1);