Simplifications to the Datatypes API (#4040)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 12 Mar 2020 03:45:03 +0000 (22:45 -0500)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 03:45:03 +0000 (20:45 -0700)
commitf48b987d63fef3f698e02c9a48fdba33ffb1c564
tree90b29c6276f692582cb7040d32172fb802075f10
parent6e69899967624b04c98c3d291693bae6d32401f6
Simplifications to the Datatypes API (#4040)

Removes DatatypeSelectorDecl and DatatypeDeclSelfSort. Add selectors is now inlined. A special case is added for the "self selector", instead of using a class as a dummy argument.

I updated the Python files, although would be helpful to double check this is correct.

Co-authored-by: makaimann <makaim@stanford.edu>
examples/api/datatypes-new.cpp
examples/api/python/datatypes.py
src/api/cvc4cpp.cpp
src/api/cvc4cpp.h
src/api/python/cvc4.pxd
src/api/python/cvc4.pxi
test/unit/api/datatype_api_black.h
test/unit/api/solver_black.h
test/unit/api/sort_black.h
test/unit/api/term_black.h