7 #include "dreal/smt2/command.h" 34 virtual std::ostream&
Display(std::ostream& os)
const = 0;
41 const Formula& get_assertion()
const {
return f_; }
42 std::ostream&
Display(std::ostream& os)
const override;
52 std::ostream&
Display(std::ostream& os)
const override;
58 explicit EchoCommand(std::string message) : message_{std::move(message)} {}
59 std::string get_message()
const {
return message_; }
60 std::ostream&
Display(std::ostream& os)
const override;
63 const std::string message_;
70 std::ostream&
Display(std::ostream& os)
const override;
77 std::ostream&
Display(std::ostream& os)
const override;
84 std::ostream&
Display(std::ostream& os)
const override;
91 std::string get_key()
const {
return key_; }
92 std::ostream&
Display(std::ostream& os)
const override;
95 const std::string key_;
102 std::ostream&
Display(std::ostream& os)
const override;
109 std::string get_key()
const {
return key_; }
110 std::ostream&
Display(std::ostream& os)
const override;
113 const std::string key_;
120 std::ostream&
Display(std::ostream& os)
const override;
127 std::ostream&
Display(std::ostream& os)
const override;
134 std::ostream&
Display(std::ostream& os)
const override;
140 explicit PopCommand(
int level) : level_(level) {}
141 int get_level()
const {
return level_; }
142 std::ostream&
Display(std::ostream& os)
const override;
152 int get_level()
const {
return level_; }
153 std::ostream&
Display(std::ostream& os)
const override;
163 std::ostream&
Display(std::ostream& os)
const override;
170 std::ostream&
Display(std::ostream& os)
const override;
177 : key_{std::move(key)}, value_{std::move(value)} {}
178 const std::string& get_key()
const {
return key_; }
179 const std::string& get_value()
const {
return value_; }
180 std::ostream&
Display(std::ostream& os)
const override;
183 const std::string key_;
184 const std::string value_;
190 Logic get_logic()
const {
return logic_; }
191 std::ostream&
Display(std::ostream& os)
const override;
200 : key_{std::move(key)}, value_{std::move(value)} {}
201 std::ostream&
Display(std::ostream& os)
const override;
204 const std::string key_;
205 const std::string value_;
"exit" command.
Definition: command_cell.h:67
"check-sat" command.
Definition: command_cell.h:49
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9
"set-info" command.
Definition: command_cell.h:174
"get-unsat-assumptions" command.
Definition: command_cell.h:124
CommandCell & operator=(const CommandCell &)=delete
Deleted copy-assignment operator.
"get-proof" command.
Definition: command_cell.h:117
"echo" command.
Definition: command_cell.h:56
"get-assertions" command.
Definition: command_cell.h:74
"get-unsat-core" command.
Definition: command_cell.h:131
"get-option" command.
Definition: command_cell.h:106
"reset-assertions" command.
Definition: command_cell.h:167
virtual ~CommandCell()=default
Default destructor.
"get-assignments" command.
Definition: command_cell.h:81
Definition: command_cell.h:187
"reset" command.
Definition: command_cell.h:160
This is the header file that we consolidate Drake's symbolic classes and expose them inside of dreal ...
"get-model" command.
Definition: command_cell.h:99
"assert" command.
Definition: command_cell.h:38
"pop" command.
Definition: command_cell.h:138
"push" command.
Definition: command_cell.h:149
CommandCell()=default
Default constructor.
virtual std::ostream & Display(std::ostream &os) const =0
Output its string representation to os.
Definition: command_cell.h:197
CommandCell class.
Definition: command_cell.h:14
"get-info" command.
Definition: command_cell.h:88