/* -------------------------------------------------------------------------- */
CheckSatCommand::CheckSatCommand() : d_expr() {}
-CheckSatCommand::CheckSatCommand(const Expr& expr, bool inUnsatCore)
- : d_expr(expr), d_inUnsatCore(inUnsatCore)
-{
-}
+
+CheckSatCommand::CheckSatCommand(const Expr& expr) : d_expr(expr) {}
Expr CheckSatCommand::getExpr() const { return d_expr; }
void CheckSatCommand::invoke(SmtEngine* smtEngine)
Command* CheckSatCommand::exportTo(ExprManager* exprManager,
ExprManagerMapCollection& variableMap)
{
- CheckSatCommand* c = new CheckSatCommand(
- d_expr.exportTo(exprManager, variableMap), d_inUnsatCore);
+ CheckSatCommand* c =
+ new CheckSatCommand(d_expr.exportTo(exprManager, variableMap));
c->d_result = d_result;
return c;
}
Command* CheckSatCommand::clone() const
{
- CheckSatCommand* c = new CheckSatCommand(d_expr, d_inUnsatCore);
+ CheckSatCommand* c = new CheckSatCommand(d_expr);
c->d_result = d_result;
return c;
}
/* class CheckSatAssumingCommand */
/* -------------------------------------------------------------------------- */
-CheckSatAssumingCommand::CheckSatAssumingCommand(Expr term) : d_terms()
-{
- d_terms.push_back(term);
-}
+CheckSatAssumingCommand::CheckSatAssumingCommand(Expr term) : d_terms({term}) {}
-CheckSatAssumingCommand::CheckSatAssumingCommand(const std::vector<Expr>& terms,
- bool inUnsatCore)
- : d_terms(terms), d_inUnsatCore(inUnsatCore)
+CheckSatAssumingCommand::CheckSatAssumingCommand(const std::vector<Expr>& terms)
+ : d_terms(terms)
{
}
{
exportedTerms.push_back(e.exportTo(exprManager, variableMap));
}
- CheckSatAssumingCommand* c =
- new CheckSatAssumingCommand(exportedTerms, d_inUnsatCore);
+ CheckSatAssumingCommand* c = new CheckSatAssumingCommand(exportedTerms);
c->d_result = d_result;
return c;
}
Command* CheckSatAssumingCommand::clone() const
{
- CheckSatAssumingCommand* c =
- new CheckSatAssumingCommand(d_terms, d_inUnsatCore);
+ CheckSatAssumingCommand* c = new CheckSatAssumingCommand(d_terms);
c->d_result = d_result;
return c;
}
/* class GetQuantifierEliminationCommand */
/* -------------------------------------------------------------------------- */
-GetQuantifierEliminationCommand::GetQuantifierEliminationCommand() : d_expr() {}
+GetQuantifierEliminationCommand::GetQuantifierEliminationCommand()
+ : d_expr(), d_doFull(true)
+{
+}
GetQuantifierEliminationCommand::GetQuantifierEliminationCommand(
const Expr& expr, bool doFull)
: d_expr(expr), d_doFull(doFull)
{
public:
CheckSatCommand();
- CheckSatCommand(const Expr& expr, bool inUnsatCore = true);
+ CheckSatCommand(const Expr& expr);
Expr getExpr() const;
Result getResult() const;
private:
Expr d_expr;
Result d_result;
- bool d_inUnsatCore;
}; /* class CheckSatCommand */
/**
{
public:
CheckSatAssumingCommand(Expr term);
- CheckSatAssumingCommand(const std::vector<Expr>& terms,
- bool inUnsatCore = true);
+ CheckSatAssumingCommand(const std::vector<Expr>& terms);
const std::vector<Expr>& getTerms() const;
Result getResult() const;
private:
std::vector<Expr> d_terms;
Result d_result;
- bool d_inUnsatCore;
}; /* class CheckSatAssumingCommand */
class CVC4_PUBLIC QueryCommand : public Command