3 isl = cdll.LoadLibrary("libbarvinok.so")
4 pet = cdll.LoadLibrary("libpet.so")
5 libc = cdll.LoadLibrary("libc.so.6")
7 class Error(Exception):
11 defaultInstance = None
14 ptr = pet.isl_ctx_alloc_with_pet_options()
18 isl.isl_ctx_free(self)
21 return c_void_p(self.ptr)
24 def getDefaultInstance():
25 if Context.defaultInstance == None:
26 Context.defaultInstance = Context()
27 return Context.defaultInstance
29 pet.isl_ctx_alloc_with_pet_options.restype = c_void_p
30 isl.isl_ctx_free.argtypes = [Context]