equalities = []
inequalities = []
for islconstraint in islconstraints:
- islpr = libisl.isl_printer_to_str(mainctx)
constant = libisl.isl_constraint_get_constant_val(islconstraint)
constant = islhelper.isl_val_to_int(constant)
coefficients = {}
self.square2 = Polyhedron(inequalities=[x - 1, 3 - x , y - 1, 3 - y]) #correct representation
self.square3 = Polyhedron(inequalities=[x, 3 - x, y, 3 - y])
self.square4 = Polyhedron(inequalities=[x - 1, 2 - x, y - 1, 2 - y])
- self.square5 = Polyhedron(inequalities=[x, 3 - x, y, 3 - y])
+ self.square5 = Polyhedron(inequalities=[x, 3 - x, y])
self.square6 = Polyhedron(inequalities=[x - 3, 6 - x, y - 3, 6 -y])
self.universe = Polyhedron([])
self.disjoint = And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0))
def test_isbounded(self):
self.assertTrue(self.square1.isbounded())
+ self.assertFalse(self.square5.isbounded())
def test_eq(self):
- self.assertTrue(self.square3.__eq__(self.square5))
self.assertTrue(self.square1.__eq__(self.square1))
self.assertFalse(self.square1.__eq__(self.square2))