3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-30 13:08:58 -07:00
parent bf9779cb87
commit 5152c9500d
3 changed files with 3 additions and 5 deletions

View file

@ -242,7 +242,7 @@ void asserted_formulas::reduce() {
return;
if (m_qhead == m_formulas.size())
return;
if (!m_smt_params.m_preprocess)
if (!m_has_quantifiers && !m_smt_params.m_preprocess)
return;
if (m_macro_manager.has_macros())
invoke(m_find_macros);

View file

@ -3075,12 +3075,11 @@ namespace smt {
return true;
}
bool context::reduce_assertions() {
void context::reduce_assertions() {
if (!m_asserted_formulas.inconsistent()) {
// SASSERT(at_base_level());
m_asserted_formulas.reduce();
}
return m_asserted_formulas.inconsistent();
}
static bool is_valid_assumption(ast_manager & m, expr * assumption) {

View file

@ -1561,8 +1561,7 @@ namespace smt {
lbool setup_and_check(bool reset_cancel = true);
// return 'true' if assertions are inconsistent.
bool reduce_assertions();
void reduce_assertions();
bool resource_limits_exceeded();