Skip to content

Commit

Permalink
fix #4648
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Aug 19, 2020
1 parent ed258ca commit 5aaa7e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tactic/goal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@ void goal::get_formulas(expr_ref_vector & result) const {
void goal::update(unsigned i, expr * f, proof * pr, expr_dependency * d) {
if (m_inconsistent)
return;
if (pr) {
if (proofs_enabled()) {
SASSERT(pr);
if (!pr)
return;
SASSERT(f == m().get_fact(pr));
expr_ref out_f(m());
proof_ref out_pr(m());
Expand All @@ -305,7 +308,6 @@ void goal::update(unsigned i, expr * f, proof * pr, expr_dependency * d) {
}
}
else {
SASSERT(!proofs_enabled());
expr_ref fr(f, m());
quick_process(true, fr, d);
if (!m_inconsistent) {
Expand Down

0 comments on commit 5aaa7e0

Please sign in to comment.