-
- def involves_vars(self, vars):
- """
- Returns true if a set depends on given dimensions.
- """
- islset = self._toislset(self.polyhedra, self.symbols)
- dims = sorted(vars)
- symbols = sorted(list(self.symbols))
- n = 0
- if len(dims)>0:
- for dim in dims:
- if dim in symbols:
- first = symbols.index(dims[0])
- n +=1
- else:
- first = 0
- else:
- return False
- value = bool(libisl.isl_set_involves_dims(islset, libisl.isl_dim_set, first, n))
- libisl.isl_set_free(islset)
- return value
-