3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-07 02:11:08 +00:00

fix bug incorrect clearing of goals during node creation. Issue #777

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-11-19 10:06:16 -08:00
parent a5bae72bdf
commit 2ff5af7d42
3 changed files with 15 additions and 10 deletions

View file

@ -1001,14 +1001,20 @@ namespace datalog {
if (is_quantifier(body)) {
quantifier* q = to_quantifier(body);
expr* e = q->get_expr();
VERIFY(m.is_implies(e, body, e2));
fml = m.mk_quantifier(false, q->get_num_decls(),
q->get_decl_sorts(), q->get_decl_names(),
body);
if (m.is_implies(e, body, e2)) {
fml = m.mk_quantifier(false, q->get_num_decls(),
q->get_decl_sorts(), q->get_decl_names(),
body);
}
else {
fml = body;
}
}
else {
VERIFY(m.is_implies(body, body, e2));
fml = body;
if (m.is_implies(body, body, e2)) {
fml = body;
}
}
queries.push_back(fml);
}