Skip to main content

Module int_set

Module int_set 

Source
Expand description

Integer sets. An IntSet, such as the interval IntervalSet, bounds the values an expression takes; deduce_bound solves a condition for a variable, and the estimate_region_* functions bound the region a set of accesses covers.

Structs§

IntSet
The base of every set of integers, one dimension each, that bounds the values an expression takes; Analyzer::int_set computes one.
IntSetObj
The object behind IntSet.
IntervalSet
The interval [min_value, max_value] of integers, whose bounds are symbolic expressions and may be neg_inf or pos_inf.
IntervalSetObj
The object behind IntervalSet.

Functions§

deduce_bound
Return the values of var for which cond holds, with the variables of hint_map over their sets and those of relax_map relaxed to theirs, or the empty set when no bound can be deduced (sym.DeduceBound).
estimate_region_lower_bound
Return the region a set of affine accesses covers at least, given the domains of their variables and a predicate, or None when the accesses are not affine (sym.EstimateRegionLowerBound).
estimate_region_strict_bound
Return the exact region a set of affine accesses covers, given the domains of their variables and a predicate, or None when the accesses are not affine (sym.EstimateRegionStrictBound).
estimate_region_upper_bound
Return a region that holds what a set of accesses covers, given the domains of their variables and a predicate, also when the accesses are not affine (sym.EstimateRegionUpperBound).
neg_inf
Return the symbolic negative infinity (sym.NegInf).
pos_inf
Return the symbolic positive infinity (sym.PosInf).
union_lower_bound
Return a subset of the union of sets, which may drop some of their segments (sym.UnionLowerBound).