summaryrefslogtreecommitdiff
path: root/src/theory/sets/skolem_cache.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-10-22 19:42:55 -0500
committerAndres Noetzli <andres.noetzli@gmail.com>2019-10-22 17:42:55 -0700
commit0d4d9bf3f31687d9cf48b0c45ab420b06ff099f7 (patch)
tree20aa9529e41f92725edae2868cbebef9b3fb36bd /src/theory/sets/skolem_cache.cpp
parent2caeef9745366ad4c45f61dabedf1cd7f676a4a1 (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.cpp7
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)
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback