DatatypeType ExprManager::mkDatatypeType(const Datatype& datatype) {
// Not worth a special implementation; this doesn't need to be fast
- // code anyway..
+ // code anyway.
vector<Datatype> datatypes;
datatypes.push_back(datatype);
vector<DatatypeType> result = mkMutualDatatypeTypes(datatypes);
if(__builtin_expect( (t0 == t1), true )) {
return t0;
} else { // t0 != t1
- if(t0.getKind()== kind::TYPE_CONSTANT) {
+ if(t0.getKind() == kind::TYPE_CONSTANT) {
switch(t0.getConst<TypeConstant>()) {
case INTEGER_TYPE:
if(t1.isInteger()) {
}
}
} else if(t1.getKind() == kind::TYPE_CONSTANT) {
- return leastCommonTypeNode(t1, t0); //decrease the number of special cases
+ return leastCommonTypeNode(t1, t0); // decrease the number of special cases
} else {
// t0 != t1 &&
// t0.getKind() == kind::TYPE_CONSTANT &&
return TypeNode(); // Not sure if this is right
case kind::SEXPR_TYPE:
Unimplemented("haven't implemented leastCommonType for symbolic expressions yet");
- return TypeNode(); // Not sure if this is right
+ return TypeNode();
case kind::SUBTYPE_TYPE:
if(t1.isPredicateSubtype()){
// This is the case where both t0 and t1 are predicate subtypes.
{ sexpr = SExpr(AntlrInput::tokenToRational($DECIMAL_LITERAL)); }
| str[s]
{ sexpr = SExpr(s); }
-// | LPAREN_TOK STRCST_TOK
-// ( INTEGER_LITERAL {
+// | LPAREN_TOK STRCST_TOK
+// ( INTEGER_LITERAL {
// s_vec.push_back( atoi( AntlrInput::tokenText($INTEGER_LITERAL) ) + 65 );
// } )* RPAREN_TOK
-// {
+// {
// sexpr = SExpr( MK_CONST( ::CVC4::String(s_vec) ) );
// }
| symbol[s,CHECK_NONE,SYM_SORT]