isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / isl_seq.c
index fa8a629..42e6b63 100644 (file)
--- a/isl_seq.c
+++ b/isl_seq.c
@@ -1,7 +1,7 @@
 /*
  * Copyright 2008-2009 Katholieke Universiteit Leuven
  *
- * Use of this software is governed by the GNU LGPLv2.1 license
+ * Use of this software is governed by the MIT license
  *
  * Written by Sven Verdoolaege, K.U.Leuven, Departement
  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
@@ -307,3 +307,15 @@ uint32_t isl_seq_get_hash_bits(isl_int *p, unsigned len, unsigned bits)
        hash = isl_seq_get_hash(p, len);
        return isl_hash_bits(hash, bits);
 }
+
+void isl_seq_dump(isl_int *p, unsigned len)
+{
+       int i;
+
+       for (i = 0; i < len; ++i) {
+               if (i)
+                       fprintf(stderr, " ");
+               isl_int_print(stderr, p[i], 0);
+       }
+       fprintf(stderr, "\n");
+}