mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fix #3538, turn on proof checking assertions in goal.cpp for earlier coverage
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
907d310600
commit
1a995da0ae
4 changed files with 15 additions and 8 deletions
|
@ -936,6 +936,9 @@ struct pb2bv_rewriter::imp {
|
|||
bool flat_assoc(func_decl * f) const { return false; }
|
||||
br_status reduce_app(func_decl * f, unsigned num, expr * const * args, expr_ref & result, proof_ref & result_pr) {
|
||||
result_pr = nullptr;
|
||||
if (m_r.m.proofs_enabled()) {
|
||||
return BR_FAILED;
|
||||
}
|
||||
return m_r.mk_app_core(f, num, args, result);
|
||||
}
|
||||
card2bv_rewriter_cfg(imp& i, ast_manager & m):m_r(i, m) {}
|
||||
|
@ -958,9 +961,13 @@ struct pb2bv_rewriter::imp {
|
|||
void set_min_arity(unsigned ma) { m_cfg.set_min_arity(ma); }
|
||||
void rewrite(bool full, expr* e, expr_ref& r, proof_ref& p) {
|
||||
expr_ref ee(e, m());
|
||||
if (m().proofs_enabled()) {
|
||||
r = e;
|
||||
return;
|
||||
}
|
||||
proof_ref rp(m());
|
||||
if (m_cfg.m_r.mk_app(full, e, r)) {
|
||||
ee = r;
|
||||
// mp proof?
|
||||
}
|
||||
(*this)(ee, r, p);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue