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

more checks for #4013

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-19 12:43:06 -07:00
parent fcc34a07b2
commit 44957894ea

View file

@ -81,7 +81,7 @@ public:
}
sz = defs.size();
for (unsigned i = 0; i < sz; i++) {
for (unsigned i = 0; !g->inconsistent() && i < sz; i++) {
if (produce_proofs)
g->assert_expr(defs.get(i), def_prs.get(i), nullptr);
else
@ -90,7 +90,7 @@ public:
g->inc_depth();
result.push_back(g.get());
unsigned num_extra_names = dnames.get_num_names();
if (num_extra_names > 0) {
if (num_extra_names > 0 && !g->inconsistent()) {
generic_model_converter * fmc = alloc(generic_model_converter, m, "nnf");
g->add(fmc);
for (unsigned i = 0; i < num_extra_names; i++)