Update api::Sort to use TypeNode instead of Type (#5363)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 30 Oct 2020 02:51:18 +0000 (21:51 -0500)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 02:51:18 +0000 (21:51 -0500)
commit21fd193bdaad1a952845326aa1c84654cfce1503
tree5d7732c5442dc73120352eb25ed92af9806c0751
parent3596632eef07dbe28ea4a4f166c18ad9fe26d4e0
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.
20 files changed:
src/api/cvc4cpp.cpp
src/api/cvc4cpp.h
src/expr/CMakeLists.txt
src/expr/ascription_type.cpp [new file with mode: 0644]
src/expr/ascription_type.h
src/expr/dtype_cons.cpp
src/expr/type.h
src/expr/type_node.cpp
src/expr/type_node.h
src/parser/cvc/Cvc.g
src/parser/parser.cpp
src/printer/cvc/cvc_printer.cpp
src/printer/smt2/smt2_printer.cpp
src/smt/abstract_values.cpp
src/smt/command.cpp
src/theory/datatypes/datatypes_rewriter.cpp
src/theory/datatypes/theory_datatypes_type_rules.h
src/theory/datatypes/theory_datatypes_utils.cpp
src/theory/datatypes/type_enumerator.cpp
test/unit/api/sort_black.h