X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/blobdiff_plain/b77f3f44c4b15fbe2965b206bf74021377a8876a..23922aa39e585f1e6b11f3479da002c92bebf2a1:/linpy/polyhedra.py diff --git a/linpy/polyhedra.py b/linpy/polyhedra.py index ead9b83..820b014 100644 --- a/linpy/polyhedra.py +++ b/linpy/polyhedra.py @@ -222,6 +222,10 @@ class Polyhedron(Domain): @classmethod def _fromislbasicset(cls, islbset, symbols): + if bool(libisl.isl_basic_set_is_empty(islbset)): + return Empty + if bool(libisl.isl_basic_set_is_universe(islbset)): + return Universe islconstraints = islhelper.isl_basic_set_constraints(islbset) equalities = [] inequalities = []