std::string name;
api::Term sexpr;
}
- : KEYWORD symbolicExpr[sexpr]
- { name = AntlrInput::tokenText($KEYWORD);
- cmd->reset(new SetInfoCommand(name.c_str() + 1, sexprToString(sexpr)));
- }
+ : keyword[name] symbolicExpr[sexpr]
+ { cmd->reset(new SetInfoCommand(name.c_str() + 1, sexprToString(sexpr))); }
;
setOptionInternal[std::unique_ptr<cvc5::Command>* cmd]
{ s = AntlrInput::tokenText($HEX_LITERAL); }
| BINARY_LITERAL
{ s = AntlrInput::tokenText($BINARY_LITERAL); }
- | str[s,false]
- | symbol[s,CHECK_NONE,SYM_SORT]
+ | SIMPLE_SYMBOL
+ { s = AntlrInput::tokenText($SIMPLE_SYMBOL); }
+ | QUOTED_SYMBOL
+ { s = AntlrInput::tokenText($QUOTED_SYMBOL); }
+ | STRING_LITERAL
+ { s = AntlrInput::tokenText($STRING_LITERAL); }
| tok=(ASSERT_TOK | CHECK_SAT_TOK | CHECK_SAT_ASSUMING_TOK | DECLARE_FUN_TOK
| DECLARE_SORT_TOK
| DEFINE_FUN_TOK | DEFINE_FUN_REC_TOK | DEFINE_FUNS_REC_TOK
api::Term n = SOLVER->mkInteger(sIntLit.str());
retExpr = MK_TERM(api::INST_ATTRIBUTE, keyword, n);
}
- | tok=( ATTRIBUTE_QUANTIFIER_ID_TOK ) symbolicExpr[sexpr]
+ | tok=( ATTRIBUTE_QUANTIFIER_ID_TOK ) symbol[s,CHECK_UNDECLARED,SYM_VARIABLE]
{
api::Term keyword = SOLVER->mkString("qid");
- api::Term name = SOLVER->mkString(sexprToString(sexpr));
+ api::Term name = SOLVER->mkString(s);
retExpr = MK_TERM(api::INST_ATTRIBUTE, keyword, name);
}
- | ATTRIBUTE_NAMED_TOK symbolicExpr[sexpr]
+ | ATTRIBUTE_NAMED_TOK symbol[s,CHECK_UNDECLARED,SYM_VARIABLE]
{
// notify that expression was given a name
- PARSER_STATE->notifyNamedExpression(expr, sexprToString(sexpr));
+ PARSER_STATE->notifyNamedExpression(expr, s);
}
;
-; COMMAND-LINE: --full-saturate-quant --ee-mode=distributed
-; COMMAND-LINE: --full-saturate-quant --ee-mode=central
+; COMMAND-LINE: -q --full-saturate-quant --ee-mode=distributed
+; COMMAND-LINE: -q --full-saturate-quant --ee-mode=central
; EXPECT: unsat
(set-logic ALL)
(set-info :status unsat)
(declare-fun $Event_EventHandleGenerator_type_value () T@$TypeValue)
(assert (= 0 (|l#R| $EmptyValueArray)))
(assert (forall ((v1 T@$Value) (v2 T@$Value)) (= ($IsEqual_stratified v1 v2) (or (= v1 v2) (forall ((i Int)) (or (> 0 i) (>= i (|l#R| (|v#V| v1))) ($IsEqual_stratified (sel (|v#R| (|v#V| v1)) i) (sel (|v#R| (|v#V| v2)) i))))))))
-(assert (forall ((m@@0 T@M) (a@@0 T@$Value)) (! (or (not (is-D a@@0)) (and (is-I (sel (|v#R| (|v#V| (s (|contents#M| m@@0) (G $Event_EventHandleGenerator_type_value (|a#D| a@@0))))) $Event_EventHandleGenerator_counter)) (forall ((x@@10 Int)) (or (> x@@10 0) (= E (sel (|v#R| (|v#V| (s (|contents#M| m@@0) (G $LibraAccount_T_type_value (|a#D| a@@0))))) x@@10)))))) :qid :skolemid)))
+(assert (forall ((m@@0 T@M) (a@@0 T@$Value)) (! (or (not (is-D a@@0)) (and (is-I (sel (|v#R| (|v#V| (s (|contents#M| m@@0) (G $Event_EventHandleGenerator_type_value (|a#D| a@@0))))) $Event_EventHandleGenerator_counter)) (forall ((x@@10 Int)) (or (> x@@10 0) (= E (sel (|v#R| (|v#V| (s (|contents#M| m@@0) (G $LibraAccount_T_type_value (|a#D| a@@0))))) x@@10)))))) :qid || :skolemid ||)))
(declare-fun |Select_[$Location]$bool| (b T@$Location) Bool)
(declare-fun $m@@0 () T@M)
(declare-fun $abort_flag@2 () Bool)