mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
add generic theory lemma in default case.
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a25247aa7b
commit
98fe2e637a
3 changed files with 21 additions and 1 deletions
|
@ -166,7 +166,24 @@ namespace euf {
|
|||
return m.mk_app(f, args);
|
||||
}
|
||||
|
||||
smt_proof_hint* solver::mk_smt_clause(symbol const& n, unsigned nl, literal const* lits) {
|
||||
if (!use_drat())
|
||||
return nullptr;
|
||||
push(value_trail(m_lit_tail));
|
||||
push(restore_size_trail(m_proof_literals));
|
||||
|
||||
for (unsigned i = 0; i < nl; ++i)
|
||||
m_proof_literals.push_back(~lits[i]);
|
||||
|
||||
m_lit_head = m_lit_tail;
|
||||
m_eq_head = m_eq_tail;
|
||||
m_deq_head = m_deq_tail;
|
||||
m_lit_tail = m_proof_literals.size();
|
||||
m_eq_tail = m_proof_eqs.size();
|
||||
m_deq_tail = m_proof_deqs.size();
|
||||
|
||||
return new (get_region()) smt_proof_hint(n, m_lit_head, m_lit_tail, m_eq_head, m_eq_tail, m_deq_head, m_deq_tail);
|
||||
}
|
||||
|
||||
smt_proof_hint* solver::mk_smt_hint(symbol const& n, unsigned nl, literal const* lits, unsigned ne, expr_pair const* eqs, unsigned nd, expr_pair const* deqs) {
|
||||
if (!use_drat())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue