mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
remove files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cddb32a21d
commit
15f6124fbd
2 changed files with 0 additions and 333 deletions
|
@ -1,36 +0,0 @@
|
|||
|
||||
#include "util/vector.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
class compressed_limit_trail {
|
||||
unsigned_vector m_lim;
|
||||
unsigned m_scopes{ 0 };
|
||||
unsigned m_last{ 0 };
|
||||
public:
|
||||
|
||||
void push(unsigned n) {
|
||||
if (m_last == n)
|
||||
m_scopes++;
|
||||
else {
|
||||
for (; m_scopes > 0; --m_scopes)
|
||||
m_lim.push_back(m_last);
|
||||
m_last = n;
|
||||
}
|
||||
}
|
||||
unsigned pop(unsigned n) {
|
||||
SASSERT(n > 0);
|
||||
SASSERT(m_scopes + m_lim.size() >= n);
|
||||
if (n <= m_scopes) {
|
||||
m_scopes -= n;
|
||||
return m_last;
|
||||
}
|
||||
else {
|
||||
n -= m_scopes;
|
||||
m_scopes = 0;
|
||||
m_last = m_lim[m_lim.size() - n];
|
||||
m_lim.shrink(m_lim.size() - n);
|
||||
return m_last;
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue