1 ;RUN: opt %loadPolly -polly-import-jscop -polly-import-jscop-postfix=transformed -stats < %s 2>&1 | FileCheck %s
10 ; for (i = 0; i < 12; i++) {
14 ; for (i = 0; i < 12; i++) {
22 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
24 @A = common global [100 x i32] zeroinitializer, align 4
25 @B = common global [100 x i32] zeroinitializer, align 4
27 define i32 @simple() nounwind {
31 for.cond: ; preds = %for.inc, %entry
32 %0 = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
33 %arrayidx = getelementptr [100 x i32], ptr @A, i32 0, i32 %0
34 %exitcond1 = icmp ne i32 %0, 12
35 br i1 %exitcond1, label %for.body, label %for.end
37 for.body: ; preds = %for.cond
38 store i32 %0, ptr %arrayidx
41 for.inc: ; preds = %for.body
42 %inc = add nsw i32 %0, 1
45 for.end: ; preds = %for.cond
48 for.cond4: ; preds = %for.inc11, %for.end
49 %1 = phi i32 [ 0, %for.end ], [ %inc13, %for.inc11 ]
50 %arrayidx10 = getelementptr [100 x i32], ptr @B, i32 0, i32 %1
51 %exitcond = icmp ne i32 %1, 12
52 br i1 %exitcond, label %for.body7, label %for.end14
54 for.body7: ; preds = %for.cond4
55 store i32 %1, ptr %arrayidx10
58 for.inc11: ; preds = %for.body7
59 %inc13 = add nsw i32 %1, 1
62 for.end14: ; preds = %for.cond4
65 ; CHECK: 2 polly-import-jscop