mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
add examples with proof replay
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
88d10f7fe4
commit
f6595c161f
9 changed files with 166 additions and 5 deletions
|
@ -200,8 +200,9 @@ namespace sat {
|
|||
m_smt_proof = p.smt_proof();
|
||||
m_smt_proof_check = p.smt_proof_check();
|
||||
m_smt_proof_check_rup = p.smt_proof_check_rup();
|
||||
m_drat_disable = p.drat_disable();
|
||||
m_drat =
|
||||
!p.drat_disable() && p.threads() == 1 &&
|
||||
!m_drat_disable && p.threads() == 1 &&
|
||||
(sp.lemmas2console() ||
|
||||
m_drat_check_unsat ||
|
||||
m_drat_file.is_non_empty_string() ||
|
||||
|
|
|
@ -175,6 +175,7 @@ namespace sat {
|
|||
|
||||
// drat proofs
|
||||
bool m_drat;
|
||||
bool m_drat_disable;
|
||||
bool m_drat_binary;
|
||||
symbol m_drat_file;
|
||||
symbol m_smt_proof;
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace euf {
|
|||
if (m_proof_initialized)
|
||||
return;
|
||||
|
||||
if (m_on_clause)
|
||||
if (m_on_clause && !s().get_config().m_drat_disable)
|
||||
s().set_drat(true);
|
||||
|
||||
if (!s().get_config().m_drat)
|
||||
|
@ -39,7 +39,6 @@ namespace euf {
|
|||
|
||||
get_drat().add_theory(get_id(), symbol("euf"));
|
||||
get_drat().add_theory(m.get_basic_family_id(), symbol("bool"));
|
||||
|
||||
if (s().get_config().m_smt_proof.is_non_empty_string())
|
||||
m_proof_out = alloc(std::ofstream, s().get_config().m_smt_proof.str(), std::ios_base::out);
|
||||
get_drat().set_clause_eh(*this);
|
||||
|
|
|
@ -372,6 +372,7 @@ namespace euf {
|
|||
void smt_theory_checker_plugin::register_plugins(theory_checker& pc) {
|
||||
pc.register_plugin(symbol("datatype"), this);
|
||||
pc.register_plugin(symbol("array"), this);
|
||||
pc.register_plugin(symbol("quant"), this);
|
||||
pc.register_plugin(symbol("fpa"), this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue