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:
parent
5ca32d65bd
commit
d99f0ce230
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue