1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -analyze < %s | FileCheck %s
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
7 define i32 @main(i8* %A) nounwind uwtable {
11 for.cond: ; preds = %for.inc5, %entry
12 %indvar_out = phi i64 [ %indvar_out.next, %for.inc5 ], [ 0, %entry ]
14 %tmp = add i64 %indvar_out, 2
15 %exitcond5 = icmp ne i64 %indvar_out, 1023
16 br i1 %exitcond5, label %for.body, label %for.end7
18 for.body: ; preds = %for.cond
21 for.cond1: ; preds = %for.inc, %for.body
22 %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %for.body ]
23 %exitcond = icmp ne i64 %indvar, 1023
24 br i1 %exitcond, label %for.body3, label %for.end
26 for.body3: ; preds = %for.cond1
27 %tmp1 = add i64 %tmp, %indvar
28 %cmp4 = icmp sgt i64 %tmp1, 1000
29 br i1 %cmp4, label %if.then, label %if.end
31 if.then: ; preds = %for.body3
32 %arrayidx = getelementptr i8, i8* %A, i64 %indvar
33 store i8 5, i8* %arrayidx
36 if.end: ; preds = %if.end.single_exit
39 for.inc: ; preds = %if.end
40 %indvar.next = add i64 %indvar, 1
43 for.end: ; preds = %for.cond1
46 for.inc5: ; preds = %for.end
47 %indvar_out.next = add i64 %indvar_out, 1
50 for.end7: ; preds = %for.cond
55 ; CHECK: p0: {0,+,1}<%for.cond>
58 ; CHECK: [p_0] -> { Stmt_if_then[i0] : i0 >= 0 and i0 <= 1022 and i0 >= 999 - p_0 };