3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00

bail out on failure to properly project

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-12-11 04:23:07 +01:00
parent 32c63ce4cd
commit 20790c46ee
5 changed files with 19 additions and 25 deletions

View file

@ -294,6 +294,7 @@ public:
void extract_literals(model& model, expr_ref_vector& fmls) {
expr_ref val(m);
TRACE("qe", tout << fmls << "\n";);
for (unsigned i = 0; i < fmls.size(); ++i) {
expr* fml = fmls[i].get(), *nfml, *f1, *f2, *f3;
SASSERT(m.is_bool(fml));
@ -404,6 +405,7 @@ public:
// TBD other Boolean operations.
}
}
TRACE("qe", tout << fmls << "\n";);
m_visited.reset();
}

View file

@ -909,6 +909,7 @@ namespace qe {
num_scopes = 2;
}
else {
if (level.max() + 2 > m_level) return false;
SASSERT(level.max() + 2 <= m_level);
num_scopes = m_level - level.max();
SASSERT(num_scopes >= 2);