summaryrefslogtreecommitdiff
path: root/src/theory/arrays/kinds
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-05-26 07:30:17 -0700
committerGitHub <noreply@github.com>2021-05-26 14:30:17 +0000
commita24d6c8cf774f971a3eff62f73b2558b01b04440 (patch)
tree5c8f1054bd8da3b56eb501409a205081294eee06 /src/theory/arrays/kinds
parent7440f0568b99842d87cb1f86eec21aed9f46b92a (diff)
More precise includes of `Node` constants (#6617)
We store constants, e.g., BitVector and Rational, in our node infrastructure. As a result, we were indirectly including some headers in almost all files, e.g., the GMP headers. This commit changes that by forward-declaring the classes for the constants. As a result, we have to include headers like util/rational.h explicitly when we use Rational but it saves about 3 minutes in compile time (CPU time). The commit changes RoundingMode from an enum to an enum class such that it can be forward declared.
Diffstat (limited to 'src/theory/arrays/kinds')
-rw-r--r--src/theory/arrays/kinds3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/arrays/kinds b/src/theory/arrays/kinds
index e39f30c6e..67abc149d 100644
--- a/src/theory/arrays/kinds
+++ b/src/theory/arrays/kinds
@@ -36,7 +36,8 @@ operator EQ_RANGE 4 "equality of two arrays over an index range lower/upper"
# storeall t e is \all i in indexType(t) <= e
constant STORE_ALL \
- ::cvc5::ArrayStoreAll \
+ class \
+ ArrayStoreAll \
::cvc5::ArrayStoreAllHashFunction \
"expr/array_store_all.h" \
"array store-all; payload is an instance of the cvc5::ArrayStoreAll class (this is not supported by arrays decision procedure yet, but it is used for returned array models)"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback