3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-16 23:25:36 +00:00

use shrink instead of pop in a loop

This commit is contained in:
Nikolaj Bjorner 2026-05-16 10:30:00 -07:00
parent 5ca32d65bd
commit d99f0ce230

View file

@ -125,11 +125,9 @@ namespace smt {
void pop(unsigned n) override {
SASSERT(n <= m_frame_bounds.size());
unsigned target = m_frame_bounds[m_frame_bounds.size() - n];
m_deps.pop_back();
}
for (unsigned i = 0; i < n; i++) {
m_frame_bounds.pop_back();
}
m_deps.shrink(target);
for (unsigned i = 0; i < n; i++)
m_frame_bounds.pop_back();
m_kernel.pop(n);
}