diff options
Diffstat (limited to 'src/parser/tptp/Tptp.g')
-rw-r--r-- | src/parser/tptp/Tptp.g | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/parser/tptp/Tptp.g b/src/parser/tptp/Tptp.g index 599b3bbe1..54fba4d1b 100644 --- a/src/parser/tptp/Tptp.g +++ b/src/parser/tptp/Tptp.g @@ -841,7 +841,7 @@ thfAtomTyping[CVC4::Command*& cmd] CVC4::Expr freshExpr; if (type.isFunction()) { - freshExpr = PARSER_STATE->mkFunction(name, type); + freshExpr = PARSER_STATE->mkVar(name, type); } else { @@ -1077,12 +1077,7 @@ tffTypedAtom[CVC4::Command*& cmd] } } else { // as yet, it's undeclared - CVC4::Expr expr; - if(type.isFunction()) { - expr = PARSER_STATE->mkFunction(name, type); - } else { - expr = PARSER_STATE->mkVar(name, type); - } + CVC4::Expr expr = PARSER_STATE->mkVar(name, type); cmd = new DeclareFunctionCommand(name, expr, type); } } |