mirror of
https://github.com/Z3Prover/z3
synced 2025-08-07 03:31:23 +00:00
Merge branch 'master' of https://github.com/Z3Prover/z3 into new-ml-api
This commit is contained in:
commit
e79960b253
2 changed files with 55 additions and 54 deletions
|
@ -167,6 +167,7 @@ struct blaster_rewriter_cfg : public default_rewriter_cfg {
|
||||||
|
|
||||||
void pop(unsigned num_scopes) {
|
void pop(unsigned num_scopes) {
|
||||||
if (num_scopes > 0) {
|
if (num_scopes > 0) {
|
||||||
|
SASSERT(num_scopes <= m_keyval_lim.size());
|
||||||
unsigned new_sz = m_keyval_lim.size() - num_scopes;
|
unsigned new_sz = m_keyval_lim.size() - num_scopes;
|
||||||
unsigned lim = m_keyval_lim[new_sz];
|
unsigned lim = m_keyval_lim[new_sz];
|
||||||
for (unsigned i = m_keys.size(); i > lim; ) {
|
for (unsigned i = m_keys.size(); i > lim; ) {
|
||||||
|
|
|
@ -182,7 +182,7 @@ public:
|
||||||
m_map.push();
|
m_map.push();
|
||||||
}
|
}
|
||||||
virtual void pop(unsigned n) {
|
virtual void pop(unsigned n) {
|
||||||
if (n < m_num_scopes) { // allow inc_sat_solver to
|
if (n > m_num_scopes) { // allow inc_sat_solver to
|
||||||
n = m_num_scopes; // take over for another solver.
|
n = m_num_scopes; // take over for another solver.
|
||||||
}
|
}
|
||||||
m_bb_rewriter.pop(n);
|
m_bb_rewriter.pop(n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue