diff options
author | Kshitij Bansal <kshitij@cs.nyu.edu> | 2014-06-30 13:28:09 -0400 |
---|---|---|
committer | Kshitij Bansal <kshitij@cs.nyu.edu> | 2014-06-30 13:28:09 -0400 |
commit | b06d25a020240fa455798308418ad802f9f40ea3 (patch) | |
tree | 8203c68da0861a823674b942595ae8cfbfeac256 /src/util | |
parent | 7c009ac38ef5ccda070d8d7fb3955273574e94eb (diff) | |
parent | fa53ae111cd314f455456a884f1247bb9b8e2c7b (diff) |
Merge pull request #47 from kbansal/sets
Sets theory operators in SMTLIB2 and kinds to use from API have changed. They now are:
SMTLIB: emptyset, singleton*, insert*, union, intersection, setminus, member*, subset*
API: EMPTYSET, SINGLETON*, INSERT*, UNION, INTERSECTION, SETMINUS, MEMBER, SUBSET
(those marked with [*] have changed or been added, others are as earlier)
In the set-logic string use FS to enable sets.
A not-so-well-tested perl command for translating old benchmarks:
perl -pi -e 's/\(set-logic (.+)_SETS\)/\(set-logic \1FS\)/; s/\(in\b/\(member/g; s/\(setenum\b/\(singleton/g; s/\(subseteq\b/\(subset/g; '
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/emptyset.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util/emptyset.h b/src/util/emptyset.h index 2f6c54173..43a868e42 100644 --- a/src/util/emptyset.h +++ b/src/util/emptyset.h @@ -35,10 +35,14 @@ class CVC4_PUBLIC EmptySet { const SetType d_type; + EmptySet() { } public: - EmptySet() { } /* Null typed */ - EmptySet(SetType t):d_type(t) { } + /** + * Constructs an emptyset of the specified type. Note that the argument + * is the type of the set itself, NOT the type of the elements. + */ + EmptySet(SetType setType):d_type(setType) { } ~EmptySet() throw() { |