New C++ API: Add templated getIndices method for OpTerm (#3073)
authormakaimann <makaim@stanford.edu>
Sun, 11 Aug 2019 16:07:31 +0000 (09:07 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2019 16:07:31 +0000 (09:07 -0700)
commit942f66a8b9dd92cb7c1ba72e6a521e86a1a7e341
treeadb50522a04454c1112169331c3edce6d8e66cb6
parent03a99a427eaa8c679ede508e11561467a2291334
New C++ API: Add templated getIndices method for OpTerm (#3073)

* Implement templated getIndices method for OpTerm

* Add getIndices unit tests

* Update src/api/cvc4cpp.cpp

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Update src/api/cvc4cpp.cpp

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Add comment about DIVISIBLE_OP

* Update test/unit/api/opterm_black.h

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Update test/unit/api/opterm_black.h

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Update test/unit/api/opterm_black.h

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Update test/unit/api/opterm_black.h

Co-Authored-By: Aina Niemetz <aina.niemetz@gmail.com>
* Add exception checks to other unit tests (instead of having its own function)

* Fix unit test names in opterm_black.h

* Add description to docstring for getIndices

* Formatting

* Clang format older commits

* Use '-' in docstring list to match other docstrings

* Support creating DIVISIBLE_OP with a string (for arbitrary precision integers)

* Move mkOpTerm(DIVISIBLE_OP, <str>) test to solver_black.h

* Fix pointer access

* Replace switch statement with if statement

* Guard string input for CVC4::Integer in mkOpTerm for consistency on GMP/CLN back-end
src/api/cvc4cpp.cpp
src/api/cvc4cpp.h
test/unit/api/opterm_black.h
test/unit/api/solver_black.h