1; RUN: opt %loadPolly %defaultOpts -polly-cloog -analyze -S %s | FileCheck %s 2 3; ModuleID = 'single_loop_ll_max_iterations.s' 4; 5target 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" 6target triple = "x86_64-unknown-linux-gnu" 7 8define i32 @main() nounwind { 9entry: 10 %A = alloca [20 x i64], align 8 ; <[20 x i64]*> [#uses=3] 11 %arraydecay = getelementptr inbounds [20 x i64]* %A, i32 0, i32 0 ; <i64*> [#uses=1] 12 %arrayidx = getelementptr inbounds i64* %arraydecay, i64 0 ; <i64*> [#uses=1] 13 store i64 0, i64* %arrayidx 14 fence seq_cst 15 br label %for.cond 16 17for.cond: ; preds = %for.inc, %entry 18 %0 = phi i64 [ 0, %entry ], [ %inc, %for.inc ] ; <i64> [#uses=3] 19 %exitcond = icmp ne i64 %0, 9223372036854775807 ; <i1> [#uses=1] 20 br i1 %exitcond, label %for.body, label %for.end 21 22for.body: ; preds = %for.cond 23 %arraydecay2 = getelementptr inbounds [20 x i64]* %A, i32 0, i32 0 ; <i64*> [#uses=1] 24 %arrayidx3 = getelementptr inbounds i64* %arraydecay2, i64 0 ; <i64*> [#uses=1] 25 store i64 %0, i64* %arrayidx3 26 br label %for.inc 27 28for.inc: ; preds = %for.body 29 %inc = add nsw i64 %0, 1 ; <i64> [#uses=1] 30 br label %for.cond 31 32for.end: ; preds = %for.cond 33 fence seq_cst 34 %arraydecay5 = getelementptr inbounds [20 x i64]* %A, i32 0, i32 0 ; <i64*> [#uses=1] 35 %arrayidx6 = getelementptr inbounds i64* %arraydecay5, i64 0 ; <i64*> [#uses=1] 36 %tmp7 = load i64* %arrayidx6 ; <i64> [#uses=1] 37 %cmp8 = icmp eq i64 %tmp7, 9223372036854775806 ; <i1> [#uses=1] 38 br i1 %cmp8, label %if.then, label %if.else 39 40if.then: ; preds = %for.end 41 br label %return 42 43if.else: ; preds = %for.end 44 br label %return 45 46return: ; preds = %if.else, %if.then 47 %retval.0 = phi i32 [ 0, %if.then ], [ 1, %if.else ] ; <i32> [#uses=1] 48 ret i32 %retval.0 49} 50 51; CHECK:for (c2=0;c2<=9223372036854775806;c2++) { 52