diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-03-11 22:45:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 20:45:03 -0700 |
commit | f48b987d63fef3f698e02c9a48fdba33ffb1c564 (patch) | |
tree | 90b29c6276f692582cb7040d32172fb802075f10 /test/unit/api/term_black.h | |
parent | 6e69899967624b04c98c3d291693bae6d32401f6 (diff) |
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>
Diffstat (limited to 'test/unit/api/term_black.h')
-rw-r--r-- | test/unit/api/term_black.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/api/term_black.h b/test/unit/api/term_black.h index 8f63c55ec..78d6ee5cc 100644 --- a/test/unit/api/term_black.h +++ b/test/unit/api/term_black.h @@ -199,10 +199,8 @@ void TermBlack::testGetOp() DatatypeDecl listDecl = d_solver.mkDatatypeDecl("paramlist", sort); DatatypeConstructorDecl cons("cons"); DatatypeConstructorDecl nil("nil"); - DatatypeSelectorDecl head("head", sort); - DatatypeSelectorDecl tail("tail", DatatypeDeclSelfSort()); - cons.addSelector(head); - cons.addSelector(tail); + cons.addSelector("head", sort); + cons.addSelectorSelf("tail"); listDecl.addConstructor(cons); listDecl.addConstructor(nil); Sort listSort = d_solver.mkDatatypeSort(listDecl); |