From a20702bcbb04422ddfcda5a241fd0cc0ec32edc8 Mon Sep 17 00:00:00 2001 From: makaimann Date: Thu, 21 Mar 2019 18:10:01 -0700 Subject: [PATCH] Use empty vector instead of false in query with null Expr assumption (#2876) This solution is less confusing than using a `false` assumption. --- src/smt/smt_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 8305d1d4d..6bca668e0 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -3594,7 +3594,7 @@ Result SmtEngine::checkSat(const vector& assumptions, bool inUnsatCore) Result SmtEngine::query(const Expr& assumption, bool inUnsatCore) { return checkSatisfiability( - assumption.isNull() ? d_exprManager->mkConst(false) : assumption, + assumption.isNull() ? std::vector() : std::vector{assumption}, inUnsatCore, true); } @@ -3609,7 +3609,7 @@ Result SmtEngine::checkSatisfiability(const Expr& expr, bool isQuery) { return checkSatisfiability( - expr.isNull() ? vector() : vector{expr}, + expr.isNull() ? std::vector() : std::vector{expr}, inUnsatCore, isQuery); } -- 2.30.2