1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 ; CHECK: Assumed Context:
4 ; CHECK-NEXT: [N] -> { : }
5 ; CHECK: Invalid Context:
6 ; CHECK-NEXT: [N] -> { : N >= 102 }
9 ; void f(int *A, int N) {
10 ; for (int i = 0; i < N; i++) {
17 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
19 define void @f(ptr %A, i32 %N) {
21 %tmp = sext i32 %N to i64
24 for.cond: ; preds = %for.inc, %entry
25 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
26 %cmp = icmp slt i64 %indvars.iv, %tmp
27 br i1 %cmp, label %for.body, label %for.end
29 for.body: ; preds = %for.cond
30 %cmp1 = icmp sgt i64 %indvars.iv, 100
31 br i1 %cmp1, label %if.then, label %if.end
33 if.then: ; preds = %for.body
37 if.end: ; preds = %if.then, %for.body
38 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
39 %tmp1 = load i32, ptr %arrayidx, align 4
40 %inc = add nsw i32 %tmp1, 1
41 store i32 %inc, ptr %arrayidx, align 4
44 for.inc: ; preds = %if.end
45 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
48 for.end: ; preds = %for.cond