+ @classmethod
+ def _from_isl(cls, bset):
+ '''takes basic set in isl form and puts back into python version of polyhedron
+ isl example code gives isl form as:
+ "{[i] : exists (a : i = 2a and i >= 10 and i <= 42)}")
+ our printer is giving form as:
+ b'{ [i0] : 1 = 0 }' '''
+ raise NotImplementedError
+ equalities = ...
+ inequalities = ...
+ return cls(equalities, inequalities)
+ #bset = self
+ # if self._equalities:
+ # constraints = libisl.isl_basic_set_equalities_matrix(bset, 3)
+ # elif self._inequalities:
+ # constraints = libisl.isl_basic_set_inequalities_matrix(bset, 3)
+ # print(constraints)
+ # return constraints
+
+empty = None #eq(0,1)
+universe = None #Polyhedron()
+
+
+if __name__ == '__main__':
+ ex1 = Expression(coefficients={'a': 1, 'x': 2}, constant=2)
+ ex2 = Expression(coefficients={'a': 3 , 'b': 2}, constant=3)
+ p = Polyhedron(inequalities=[ex1, ex2])
+ bs = p._to_isl()
+ print(bs)
+ print('empty ?', p.isempty())
+ print('empty ?', eq(0, 1).isempty())