mirror of
https://github.com/Z3Prover/z3
synced 2026-05-31 06:07:46 +00:00
use shrink instead of pop in a loop
This commit is contained in:
parent
b8052d67cb
commit
5ca32d65bd
1 changed files with 0 additions and 1 deletions
|
|
@ -125,7 +125,6 @@ namespace smt {
|
||||||
void pop(unsigned n) override {
|
void pop(unsigned n) override {
|
||||||
SASSERT(n <= m_frame_bounds.size());
|
SASSERT(n <= m_frame_bounds.size());
|
||||||
unsigned target = m_frame_bounds[m_frame_bounds.size() - n];
|
unsigned target = m_frame_bounds[m_frame_bounds.size() - n];
|
||||||
while (m_deps.size() > target) {
|
|
||||||
m_deps.pop_back();
|
m_deps.pop_back();
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < n; i++) {
|
for (unsigned i = 0; i < n; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue