The function isl_basic_set_gist currently does not support
existentially quantified variables in the input set,
but it does in some cases support existentially quantified variables
in the context. Add some test cases to ensure that this continues
to be supported.
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
@@ -548,6 +548,15 @@ T gist(const T &obj, const T ©, const T &context)
*/
static void test_gist(isl::ctx ctx)
{
+ C(&gist<isl::basic_set> , {
+ { TWO("{ [i=100:] }"),
+ "{ [i] : exists a, b: 2b > 2i - 5a > 8b -3 i and 3b > 2a }",
+ "{ [i=100:] }" },
+ { TWO("{ [i=0:] }"),
+ "{ [i] : exists a, b: 2b > 2i - 5a > 8b -3 i and 3b > 2a }",
+ "{ [i] }" },
+ });
+
C(&gist<isl::set> , {
{ TWO("{ [1, -1, 3] }"),
"{ [1, b, 2 - b] : -1 <= b <= 2 }",