Skip to content

Commit

Permalink
feat(small-range): add missing api for kind ExactlyOne (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinerSu authored Apr 18, 2023
1 parent ec3caec commit f224502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/crab/domains/small_range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class small_range: public lattice_domain_api<small_range> {
static small_range bottom();
static small_range top();
static small_range zero();
static small_range one();
static small_range oneOrMore();

small_range(const small_range &other) = default;
Expand Down
1 change: 1 addition & 0 deletions lib/small_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ small_range small_range::meet_one_or_more_with(const small_range &other) const {
small_range small_range::bottom() { return small_range(Bottom); }
small_range small_range::top() { return small_range(ZeroOrMore); }
small_range small_range::zero() { return small_range(ExactlyZero); }
small_range small_range::one() { return small_range(ExactlyOne); }
small_range small_range::oneOrMore() { return small_range(OneOrMore); }
small_range small_range::zeroOrMore() { return small_range(ZeroOrMore); }
small_range small_range::make_bottom() const {
Expand Down

0 comments on commit f224502

Please sign in to comment.