diff options
author | mudathirmahgoub <mudathirmahgoub@gmail.com> | 2020-10-29 13:26:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 13:26:51 -0500 |
commit | d23ba1433846b9baaf6149137aa999c1af60c516 (patch) | |
tree | b75389566b726edcaf32cb0f8ab2059bba9e1528 /src/expr | |
parent | 6898ab93a3858e78b20af38e537fe48ee9140c58 (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 'src/expr')
-rw-r--r-- | src/expr/array_store_all.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr/array_store_all.cpp b/src/expr/array_store_all.cpp index 92383dcd1..ed21f8f9c 100644 --- a/src/expr/array_store_all.cpp +++ b/src/expr/array_store_all.cpp @@ -45,7 +45,8 @@ ArrayStoreAll::ArrayStoreAll(const TypeNode& type, const Node& value) "expr type `%s' does not match constituent type of array type `%s'", value.getType().toString().c_str(), type.toString().c_str()); - + Trace("arrays") << "constructing constant array of type: '" << type + << "' and value: '" << value << "'" << std::endl; PrettyCheckArgument( value.isConst(), value, "ArrayStoreAll requires a constant expression"); |