summaryrefslogtreecommitdiff
path: root/src/parser/cvc/Cvc.g
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-10-29 21:51:18 -0500
committerGitHub <noreply@github.com>2020-10-29 21:51:18 -0500
commit21fd193bdaad1a952845326aa1c84654cfce1503 (patch)
tree5d7732c5442dc73120352eb25ed92af9806c0751 /src/parser/cvc/Cvc.g
parent3596632eef07dbe28ea4a4f166c18ad9fe26d4e0 (diff)
Update api::Sort to use TypeNode instead of Type (#5363)
This is work towards removing the old API. This makes TypeNode the backend for Sort instead of Type. It also updates a unit test for methods isUninterpretedSortParameterized and getUninterpretedSortParamSorts whose implementation was previously buggy due to the implementation of Type-level SortType.
Diffstat (limited to 'src/parser/cvc/Cvc.g')
-rw-r--r--src/parser/cvc/Cvc.g2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/cvc/Cvc.g b/src/parser/cvc/Cvc.g
index 0bb41b483..81319e25a 100644
--- a/src/parser/cvc/Cvc.g
+++ b/src/parser/cvc/Cvc.g
@@ -1150,7 +1150,7 @@ declareVariables[std::unique_ptr<CVC4::Command>* cmd, CVC4::api::Sort& t,
PARSER_STATE->checkDeclaration(*i, CHECK_UNDECLARED, SYM_VARIABLE);
api::Term func = PARSER_STATE->mkVar(
*i,
- api::Sort(SOLVER, t.getType()),
+ t,
ExprManager::VAR_FLAG_GLOBAL | ExprManager::VAR_FLAG_DEFINED);
PARSER_STATE->defineVar(*i, f);
Command* decl = new DefineFunctionCommand(*i, func, f, true);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback