Skip to content

Commit

Permalink
Fix int_set when unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-project-ci committed Jul 10, 2020
1 parent 523f334 commit 0b16f80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/arith/int_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ bool IntSet::MatchRange(const Range& b) const {
const IntSet& a = *this;
const IntervalSetNode* a_int = a.as<IntervalSetNode>();
if (!a_int) return false;
if (!a_int->HasUpperBound() || !a_int->HasLowerBound()) return false;
Analyzer ana;
return ProveEqual(&ana, a_int->min_value, b->min) &&
ProveEqual(&ana, a_int->max_value, b->extent + b->min - 1);
Expand Down

0 comments on commit 0b16f80

Please sign in to comment.