summaryrefslogtreecommitdiff
path: root/test/api/sep_log_api.cpp
diff options
context:
space:
mode:
authormudathirmahgoub <mudathirmahgoub@gmail.com>2020-10-29 13:26:51 -0500
committerGitHub <noreply@github.com>2020-10-29 13:26:51 -0500
commitd23ba1433846b9baaf6149137aa999c1af60c516 (patch)
treeb75389566b726edcaf32cb0f8ab2059bba9e1528 /test/api/sep_log_api.cpp
parent6898ab93a3858e78b20af38e537fe48ee9140c58 (diff)
Add mkInteger to the API (#5274)
This PR adds mkInteger to the API and update mkReal to ensure that the returned term has real sort. The parsers are modified to parse numbers like "0" "5" as integers and "0.0" and "15.0" as reals. This means subtyping is effectively eliminated from all theories except arithmetic. Other changes: Term::isValue is removed which was introduced to support parsing for constant arrays. It is no longer needed after this PR. Benchmarks are updated to match the changes in the parsers Co-authored-by: Andrew Reynolds andrew-reynolds@uiowa.edu
Diffstat (limited to 'test/api/sep_log_api.cpp')
-rw-r--r--test/api/sep_log_api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/api/sep_log_api.cpp b/test/api/sep_log_api.cpp
index f0a55cf79..1b1efb07e 100644
--- a/test/api/sep_log_api.cpp
+++ b/test/api/sep_log_api.cpp
@@ -135,10 +135,10 @@ int validate_getters(void)
Sort integer = slv.getIntegerSort();
/* A "random" constant */
- Term random_constant = slv.mkReal(0xDEADBEEF);
+ Term random_constant = slv.mkInteger(0xDEADBEEF);
/* Another random constant */
- Term expr_nil_val = slv.mkReal(0xFBADBEEF);
+ Term expr_nil_val = slv.mkInteger(0xFBADBEEF);
/* Our nil term */
Term nil = slv.mkSepNil(integer);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback