mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7787bd399e
commit
45103637ad
2 changed files with 4 additions and 4 deletions
|
@ -19,19 +19,19 @@ Author:
|
|||
#include "util/vector.h"
|
||||
|
||||
template<typename T>
|
||||
class lim_svector : public svector<T> {
|
||||
class lim_svector : public svector<T, unsigned> {
|
||||
unsigned_vector m_lim;
|
||||
public:
|
||||
lim_svector() {}
|
||||
|
||||
void push_scope() {
|
||||
m_lim.push_back(size());
|
||||
m_lim.push_back(this->size());
|
||||
}
|
||||
|
||||
void pop_scope(unsigned num_scopes) {
|
||||
SASSERT(num_scopes > 0);
|
||||
unsigned old_sz = m_lim.size() - num_scopes;
|
||||
shrink(m_lim[old_sz]);
|
||||
this->shrink(m_lim[old_sz]);
|
||||
m_lim.shrink(old_sz);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue