Improvements and tests for the API around separation logic (#2229)
authorayveejay <41393247+ayveejay@users.noreply.github.com>
Wed, 1 Aug 2018 02:25:51 +0000 (03:25 +0100)
committerAina Niemetz <aina.niemetz@gmail.com>
Wed, 1 Aug 2018 02:25:51 +0000 (19:25 -0700)
commitad61299aa24a83f935daedab32440d25006e18bb
tree82540951afd070cc43f3e7ea87fc9b8c8e9311b8
parent049bc7acdb7ecc50719175652028a51a8f996502
Improvements and tests for the API around separation logic (#2229)

- Introduces a system that validating that, when not using THEORY_SEP, that it is not possible to
  obtain the separation logic heap/nil (validate_exception())
- Introduces a system test demonstrating how to use the separation logic theory, and then how
  to use the "getters" to obtain and interrogate the heap/nil expressions (validate_getters())
- Refactors the original getters to avoid duplicate code
- Add a check as part of the getters to ensure that THEORY_SEP is in use
src/smt/smt_engine.cpp
src/smt/smt_engine.h
test/system/Makefile.am
test/system/sep_log_api.cpp [new file with mode: 0644]