try {
stringstream ss;
const vector<Expr> v = smtEngine->getAssertions();
+ ss << "(\n";
copy( v.begin(), v.end(), ostream_iterator<Expr>(ss, "\n") );
+ ss << ")\n";
d_result = ss.str();
d_commandStatus = CommandSuccess::instance();
} catch(exception& e) {
void GetInfoCommand::invoke(SmtEngine* smtEngine) throw() {
try {
+ vector<SExpr> v;
+ v.push_back(SExpr(d_flag));
+ v.push_back(smtEngine->getInfo(d_flag));
stringstream ss;
- ss << smtEngine->getInfo(d_flag);
+ ss << SExpr(v);
d_result = ss.str();
d_commandStatus = CommandSuccess::instance();
} catch(BadOptionException&) {
void SmtEngine::setInfo(const std::string& key, const SExpr& value)
throw(BadOptionException, ModalException) {
+
+ NodeManagerScope nms(d_nodeManager);
+
Trace("smt") << "SMT setInfo(" << key << ", " << value << ")" << endl;
if(Dump.isOn("benchmark")) {
if(key == ":status") {
SExpr SmtEngine::getInfo(const std::string& key) const
throw(BadOptionException) {
+
+ NodeManagerScope nms(d_nodeManager);
+
Trace("smt") << "SMT getInfo(" << key << ")" << endl;
if(key == ":all-statistics") {
vector<SExpr> stats;