cmd->reset(PARSER_STATE->setLogic(name));
}
| /* set-info */
- SET_INFO_TOK metaInfoInternal[cmd]
+ SET_INFO_TOK setInfoInternal[cmd]
| /* get-info */
GET_INFO_TOK KEYWORD
{ cmd->reset(new GetInfoCommand(
}
;
-// Separate this into its own rule (can be invoked by set-info or meta-info)
-metaInfoInternal[std::unique_ptr<CVC4::Command>* cmd]
+setInfoInternal[std::unique_ptr<CVC4::Command>* cmd]
@declarations {
std::string name;
SExpr sexpr;
std::vector<Type> sorts;
std::vector<Expr> flattenVars;
}
- /* meta-info */
- : META_INFO_TOK metaInfoInternal[cmd]
-
/* declare-const */
- | DECLARE_CONST_TOK { PARSER_STATE->checkThatLogicIsSet(); }
+ : DECLARE_CONST_TOK { PARSER_STATE->checkThatLogicIsSet(); }
symbol[name,CHECK_NONE,SYM_VARIABLE]
{ PARSER_STATE->checkUserSymbol(name); }
sortSymbol[t,CHECK_DECLARED]
INDEX_TOK : '_';
SET_LOGIC_TOK : 'set-logic';
SET_INFO_TOK : 'set-info';
-META_INFO_TOK : 'meta-info';
GET_INFO_TOK : 'get-info';
SET_OPTION_TOK : 'set-option';
GET_OPTION_TOK : 'get-option';
const SetBenchmarkStatusCommand* c,
Variant v)
{
- if(v == z3str_variant || v == smt2_0_variant) {
- out << "(set-info :status " << c->getStatus() << ")";
- } else {
- out << "(meta-info :status " << c->getStatus() << ")";
- }
+ out << "(set-info :status " << c->getStatus() << ")";
}
static void toStream(std::ostream& out,
static void toStream(std::ostream& out, const SetInfoCommand* c, Variant v)
{
- if(v == z3str_variant || v == smt2_0_variant) {
- out << "(set-info :" << c->getFlag() << " ";
- } else {
- out << "(meta-info :" << c->getFlag() << " ";
- }
-
+ out << "(set-info :" << c->getFlag() << " ";
SExpr::toStream(out, c->getSExpr(), variantToLanguage(v));
out << ")";
}