Add support for datatype update (#6449)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Sat, 8 May 2021 00:25:27 +0000 (19:25 -0500)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 00:25:27 +0000 (19:25 -0500)
commit8e5aba973b06fb581221a82aacdf7d3ca7938a22
treeea5db058d5991ec44ca1f0c47054c3f0d733f367
parent080f0de4379c4e1fe5a016e40c7852a3abb52760
Add support for datatype update (#6449)

This removes the special case of TUPLE_UPDATE and RECORD_UPDATE in favor of the more general datatype update.

Datatype update is handled analogously to APPLY_SELECTOR / APPLY_TESTER.
36 files changed:
src/api/cpp/cvc5.cpp
src/api/cpp/cvc5.h
src/api/cpp/cvc5_kind.h
src/api/python/cvc5.pxd
src/api/python/cvc5.pxi
src/expr/CMakeLists.txt
src/expr/dtype.cpp
src/expr/node_manager.cpp
src/expr/node_manager.h
src/expr/record.cpp [deleted file]
src/expr/record.h [deleted file]
src/expr/type_node.cpp
src/expr/type_node.h
src/parser/cvc/Cvc.g
src/parser/parse_op.cpp
src/parser/parser.cpp
src/parser/smt2/Smt2.g
src/parser/smt2/smt2.cpp
src/printer/cvc/cvc_printer.cpp
src/printer/smt2/smt2_printer.cpp
src/theory/datatypes/datatypes_rewriter.cpp
src/theory/datatypes/datatypes_rewriter.h
src/theory/datatypes/kinds
src/theory/datatypes/theory_datatypes_type_rules.cpp
src/theory/datatypes/theory_datatypes_type_rules.h
src/theory/datatypes/theory_datatypes_utils.cpp
src/util/CMakeLists.txt
src/util/tuple.h [deleted file]
test/regress/CMakeLists.txt
test/regress/regress0/datatypes/list-update-sat.smt2 [new file with mode: 0644]
test/regress/regress0/datatypes/list-update.smt2 [new file with mode: 0644]
test/unit/api/datatype_api_black.cpp
test/unit/api/op_black.cpp
test/unit/api/solver_black.cpp
test/unit/api/sort_black.cpp
test/unit/util/datatype_black.cpp