summaryrefslogtreecommitdiff
path: root/examples/simple_vc_quant_cxx.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 /examples/simple_vc_quant_cxx.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 'examples/simple_vc_quant_cxx.cpp')
-rw-r--r--examples/simple_vc_quant_cxx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple_vc_quant_cxx.cpp b/examples/simple_vc_quant_cxx.cpp
index 7596b4771..538cb359f 100644
--- a/examples/simple_vc_quant_cxx.cpp
+++ b/examples/simple_vc_quant_cxx.cpp
@@ -40,7 +40,7 @@ int main() {
std::cout << "Made expression : " << quantpospx << std::endl;
//make ~P( 5 )
- Term five = slv.mkReal(5);
+ Term five = slv.mkInteger(5);
Term pfive = slv.mkTerm(Kind::APPLY_UF, p, five);
Term negpfive = slv.mkTerm(Kind::NOT, pfive);
std::cout << "Made expression : " << negpfive << std::endl;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback