diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2013-12-02 19:32:59 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2013-12-02 20:47:48 -0500 |
commit | 99152fedc21ec1772ddd4c915b4af616270c10c7 (patch) | |
tree | bec55a8f49b9e7d27cecbcb6322d14dc59322fb1 /src | |
parent | 178698a808d9bfdad3629edb5d19e475a293e8d4 (diff) |
Minor cleanup.
Diffstat (limited to 'src')
-rw-r--r-- | src/expr/expr_manager_template.cpp | 2 | ||||
-rw-r--r-- | src/expr/type_node.cpp | 6 | ||||
-rw-r--r-- | src/parser/smt2/Smt2.g | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/expr/expr_manager_template.cpp b/src/expr/expr_manager_template.cpp index d87c498e6..5fe7b34c1 100644 --- a/src/expr/expr_manager_template.cpp +++ b/src/expr/expr_manager_template.cpp @@ -542,7 +542,7 @@ ArrayType ExprManager::mkArrayType(Type indexType, Type constituentType) const { 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); diff --git a/src/expr/type_node.cpp b/src/expr/type_node.cpp index 335dd2b6d..af4752d13 100644 --- a/src/expr/type_node.cpp +++ b/src/expr/type_node.cpp @@ -337,7 +337,7 @@ TypeNode TypeNode::leastCommonTypeNode(TypeNode t0, TypeNode t1){ 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()) { @@ -363,7 +363,7 @@ TypeNode TypeNode::leastCommonTypeNode(TypeNode t0, TypeNode t1){ } } } 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 && @@ -384,7 +384,7 @@ TypeNode TypeNode::leastCommonTypeNode(TypeNode t0, TypeNode t1){ 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. diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index f3855e713..657384e99 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -708,11 +708,11 @@ simpleSymbolicExprNoKeyword[CVC4::SExpr& sexpr] { 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] |