diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-10-22 19:42:55 -0500 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2019-10-22 17:42:55 -0700 |
commit | 0d4d9bf3f31687d9cf48b0c45ab420b06ff099f7 (patch) | |
tree | 20aa9529e41f92725edae2868cbebef9b3fb36bd /src/theory/sets/skolem_cache.cpp | |
parent | 2caeef9745366ad4c45f61dabedf1cd7f676a4a1 (diff) |
Refactoring skolems for sets (#3381)
This refactors skolems introduced in the theory of sets. This is analogous to how skolems are treated for the theory of strings.
A key change that this commit enables is to identify "variable" sets based on those that weren't introduced by the SkolemCache (instead of via a check that their kind is `VARIABLE`, which is done currently and is error prone).
Diffstat (limited to 'src/theory/sets/skolem_cache.cpp')
-rw-r--r-- | src/theory/sets/skolem_cache.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/theory/sets/skolem_cache.cpp b/src/theory/sets/skolem_cache.cpp index 99e6588ca..a70e6dc51 100644 --- a/src/theory/sets/skolem_cache.cpp +++ b/src/theory/sets/skolem_cache.cpp @@ -39,6 +39,13 @@ Node SkolemCache::mkTypedSkolemCached( } return it->second; } +Node SkolemCache::mkTypedSkolemCached(TypeNode tn, + Node a, + SkolemId id, + const char* c) +{ + return mkTypedSkolemCached(tn, a, Node::null(), id, c); +} Node SkolemCache::mkTypedSkolem(TypeNode tn, const char* c) { |