From 13cf41801f8f2bac538cb45d53ae7427916041a7 Mon Sep 17 00:00:00 2001 From: mudathirmahgoub Date: Sun, 4 Oct 2020 15:10:24 -0500 Subject: 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 --- examples/api/python/sets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/api/python/sets.py') 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) -- cgit v1.2.3