class CVC4_PUBLIC EmptyCommand : public Command {
public:
EmptyCommand(std::string name = "");
- void invoke(CVC4::SmtEngine* smt_engine);
+ void invoke(CVC4::SmtEngine* smtEngine);
void toStream(std::ostream& out) const;
private:
std::string d_name;
class CVC4_PUBLIC AssertCommand : public Command {
public:
AssertCommand(const BoolExpr& e);
- void invoke(CVC4::SmtEngine* smt_engine);
+ void invoke(CVC4::SmtEngine* smtEngine);
void toStream(std::ostream& out) const;
protected:
BoolExpr d_expr;
};/* class AssertCommand */
+class CVC4_PUBLIC PushCommand : public Command {
+public:
+ void invoke(CVC4::SmtEngine* smtEngine);
+ void toStream(std::ostream& out) const;
+};/* class PushCommand */
+
+class CVC4_PUBLIC PopCommand : public Command {
+public:
+ void invoke(CVC4::SmtEngine* smtEngine);
+ void toStream(std::ostream& out) const;
+};/* class PopCommand */
+
+
class CVC4_PUBLIC DeclarationCommand : public EmptyCommand {
public:
DeclarationCommand(const std::vector<std::string>& ids, const Type* t);
class CVC4_PUBLIC CheckSatCommand : public Command {
public:
- CheckSatCommand(const BoolExpr& e);
+ CheckSatCommand(const BoolExpr& expr);
void invoke(SmtEngine* smt);
Result getResult();
void toStream(std::ostream& out) const;
};/* class SetBenchmarkStatusCommand */
inline std::ostream& operator<<(std::ostream& out,
- SetBenchmarkStatusCommand::BenchmarkStatus bs)
+ SetBenchmarkStatusCommand::BenchmarkStatus status)
CVC4_PUBLIC;
class CVC4_PUBLIC SetBenchmarkLogicCommand : public Command {
d_name(name) {
}
-inline void EmptyCommand::invoke(SmtEngine* smt_engine) {
+inline void EmptyCommand::invoke(SmtEngine* smtEngine) {
}
inline void EmptyCommand::toStream(std::ostream& out) const {
d_expr(e) {
}
-inline void AssertCommand::invoke(SmtEngine* smt_engine) {
- smt_engine->assertFormula(d_expr);
+inline void AssertCommand::invoke(SmtEngine* smtEngine) {
+ smtEngine->assertFormula(d_expr);
}
inline void AssertCommand::toStream(std::ostream& out) const {
/* class CheckSatCommand */
-inline CheckSatCommand::CheckSatCommand(const BoolExpr& e) :
- d_expr(e) {
+inline CheckSatCommand::CheckSatCommand(const BoolExpr& expr) :
+ d_expr(expr) {
}
-inline void CheckSatCommand::invoke(SmtEngine* smt_engine) {
- d_result = smt_engine->checkSat(d_expr);
+inline void CheckSatCommand::invoke(SmtEngine* smtEngine) {
+ d_result = smtEngine->checkSat(d_expr);
}
inline Result CheckSatCommand::getResult() {
d_expr(e) {
}
-inline void QueryCommand::invoke(CVC4::SmtEngine* smt_engine) {
- d_result = smt_engine->query(d_expr);
+inline void QueryCommand::invoke(CVC4::SmtEngine* smtEngine) {
+ d_result = smtEngine->query(d_expr);
}
inline Result QueryCommand::getResult() {
/* class DeclarationCommand */
-inline
-DeclarationCommand::DeclarationCommand(const std::vector<std::string>& ids,
- const Type* t) :
+inline DeclarationCommand::DeclarationCommand(const std::vector<std::string>& ids, const Type* t) :
d_declaredSymbols(ids) {
}
/* class SetBenchmarkStatusCommand */
-inline SetBenchmarkStatusCommand::SetBenchmarkStatusCommand(BenchmarkStatus s) :
- d_status(s) {
+inline SetBenchmarkStatusCommand::SetBenchmarkStatusCommand(BenchmarkStatus status) :
+ d_status(status) {
}
inline void SetBenchmarkStatusCommand::invoke(SmtEngine* smt) {
/* class SetBenchmarkLogicCommand */
-inline SetBenchmarkLogicCommand::SetBenchmarkLogicCommand(std::string l) :
- d_logic(l) {
+inline SetBenchmarkLogicCommand::SetBenchmarkLogicCommand(std::string logic) :
+ d_logic(logic) {
}
inline void SetBenchmarkLogicCommand::invoke(SmtEngine* smt) {
/* output stream insertion operator for benchmark statuses */
inline std::ostream& operator<<(std::ostream& out,
- SetBenchmarkStatusCommand::BenchmarkStatus bs) {
- switch(bs) {
+ SetBenchmarkStatusCommand::BenchmarkStatus status) {
+ switch(status) {
case SetBenchmarkStatusCommand::SMT_SATISFIABLE:
return out << "sat";