- #pass bset from expr to points to get verticies
- exp = Polyhedron._fromislbasicset(expr, self.symbols)
- points.append(exp.points())
+ constraints = islhelper.isl_basic_set_constraints(expr)
+ for constraint in constraints:
+ constant = libisl.isl_constraint_get_constant_val(constraint)
+ constant = islhelper.isl_val_to_int(constant)
+ for index, symbol in enumerate(self.symbols):
+ coefficient = libisl.isl_constraint_get_coefficient_val(constraint,
+ libisl.isl_dim_set, index)
+ coefficient = islhelper.isl_val_to_int(coefficient)
+ if coefficient != 0:
+ coordinate = -Fraction(constant, coefficient)
+ coordinates.append((symbol, coordinate))