This solution is less confusing than using a `false` assumption.
Result SmtEngine::query(const Expr& assumption, bool inUnsatCore)
{
return checkSatisfiability(
- assumption.isNull() ? d_exprManager->mkConst<bool>(false) : assumption,
+ assumption.isNull() ? std::vector<Expr>() : std::vector<Expr>{assumption},
inUnsatCore,
true);
}
bool isQuery)
{
return checkSatisfiability(
- expr.isNull() ? vector<Expr>() : vector<Expr>{expr},
+ expr.isNull() ? std::vector<Expr>() : std::vector<Expr>{expr},
inUnsatCore,
isQuery);
}