return wrapper
+_main_ctx = Context()
+
+
class Expression:
"""
This class implements linear expressions.
if symbols is None:
symbols = self.symbols()
num_coefficients = len(symbols)
- ctx = Context()
- space = libisl.isl_space_set_alloc(ctx, 0, num_coefficients)
+ space = libisl.isl_space_set_alloc(_main_ctx, 0, num_coefficients)
bset = libisl.isl_basic_set_universe(libisl.isl_space_copy(space))
ls = libisl.isl_local_space_from_space(space)
ceq = libisl.isl_equality_alloc(libisl.isl_local_space_copy(ls))