diff --git a/src/ast/proofs/proof_utils.cpp b/src/ast/proofs/proof_utils.cpp index bd6e6e0b1ec..ba00914ca0f 100644 --- a/src/ast/proofs/proof_utils.cpp +++ b/src/ast/proofs/proof_utils.cpp @@ -463,6 +463,8 @@ class reduce_hypotheses0 { reduce_hypotheses0(ast_manager& m): m(m), m_refs(m) {} void operator()(proof_ref& pr) { + if (!pr) + throw default_exception("proof reduction requires well defined proofs"); proof_ref tmp(m); tmp = pr; elim(pr);