1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 ; void f(int *A, int *B) {
10 ; CHECK: Invalid Context:
11 ; CHECK-NEXT: [A, B] -> { : (4*floor((A - B)/4) < A - B) or ((-A + B) mod 4 = 0 and B >= 9223372036854775808 + A) or ((-A + B) mod 4 = 0 and B <= -4 + A) }
14 ; CHECK-NEXT: [A, B] -> { Stmt_while_body[i0] : (-A + B) mod 4 = 0 and i0 >= 0 and 4i0 <= -4 - A + B }
16 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
18 define void @f(ptr %A, ptr %B) {
23 br i1 true, label %while.cond, label %while.end
25 while.cond: ; preds = %while.body, %entry
26 %A.addr.0 = phi ptr [ %A, %entry.split ], [ %incdec.ptr, %while.body ]
27 %cmp = icmp eq ptr %A.addr.0, %B
28 br i1 %cmp, label %while.end, label %while.body
30 while.body: ; preds = %while.cond
31 %tmp = load i32, ptr %A.addr.0, align 4
32 %add = add i32 %tmp, 1
33 store i32 %add, ptr %A.addr.0, align 4
34 %incdec.ptr = getelementptr i32, ptr %A.addr.0, i64 1
37 while.end: ; preds = %while.cond