add isl_set_fix_si
[platform/upstream/isl.git] / isl_ilp.c
index 15110c1..5548ffe 100644 (file)
--- a/isl_ilp.c
+++ b/isl_ilp.c
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2008-2009 Katholieke Universiteit Leuven
+ *
+ * Use of this software is governed by the GNU LGPLv2.1 license
+ *
+ * Written by Sven Verdoolaege, K.U.Leuven, Departement
+ * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
+ */
+
 #include "isl_ilp.h"
 #include "isl_map_private.h"
 #include "isl_sample.h"
@@ -298,6 +307,9 @@ enum isl_lp_result isl_basic_set_solve_ilp(struct isl_basic_set *bset, int max,
 
        isl_assert(bset->ctx, isl_basic_set_n_param(bset) == 0, goto error);
 
+       if (isl_basic_set_fast_is_empty(bset))
+               return isl_lp_empty;
+
        if (bset->n_eq)
                return solve_ilp_with_eq(bset, max, f, opt, sol_p);