3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

add generic theory lemma in default case.

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-10-17 10:17:08 -07:00
parent a25247aa7b
commit 98fe2e637a
3 changed files with 21 additions and 1 deletions

View file

@ -160,7 +160,9 @@ namespace euf {
}
bool th_euf_solver::add_clause(unsigned n, sat::literal* lits, th_proof_hint const* ps) {
SASSERT(!ctx.use_drat() || ps); // - very far from true, and isn't a requirement
if (ctx.use_drat() && !ps)
ps = ctx.mk_smt_clause(name(), n, lits);
bool was_true = false;
for (unsigned i = 0; i < n; ++i)
was_true |= is_true(lits[i]);