summaryrefslogtreecommitdiff
path: root/examples/api/python/sets.py
diff options
context:
space:
mode:
authormudathirmahgoub <mudathirmahgoub@gmail.com>2020-10-04 15:10:24 -0500
committerGitHub <noreply@github.com>2020-10-04 15:10:24 -0500
commit13cf41801f8f2bac538cb45d53ae7427916041a7 (patch)
tree78e82b56e92004991890943ba5da863e6af3538f /examples/api/python/sets.py
parentd662d3321a46aac61973f7a90341ea870c0b1171 (diff)
Remove subtyping for sets theory (#5179)
This PR removes subtyping for sets theory due to issues like #4502, #4507 and #4631. Changes: Add SingletonOp for singletons to specify the type of the single element in the set. Add mkSingleton to the solver to enable the user to pass the sort of the single element. Update smt and cvc parsers to use mkSingleton when the kind is SINGLETON
Diffstat (limited to 'examples/api/python/sets.py')
-rw-r--r--examples/api/python/sets.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/api/python/sets.py b/examples/api/python/sets.py
index 99a8d4c40..67d9808e7 100644
--- a/examples/api/python/sets.py
+++ b/examples/api/python/sets.py
@@ -66,9 +66,9 @@ if __name__ == "__main__":
two = slv.mkReal(2)
three = slv.mkReal(3)
- singleton_one = slv.mkTerm(kinds.Singleton, one)
- singleton_two = slv.mkTerm(kinds.Singleton, two)
- singleton_three = slv.mkTerm(kinds.Singleton, three)
+ singleton_one = slv.mkSingleton(integer, one)
+ singleton_two = slv.mkSingleton(integer, two)
+ singleton_three = slv.mkSingleton(integer, three)
one_two = slv.mkTerm(kinds.Union, singleton_one, singleton_two)
two_three = slv.mkTerm(kinds.Union, singleton_two, singleton_three)
intersection = slv.mkTerm(kinds.Intersection, one_two, two_three)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback