1;RUN: opt %loadPolly -polly-import-jscop -polly-import-jscop-postfix=transformed -stats < %s 2>&1 | FileCheck %s 2; REQUIRES: asserts 3 4;int A[100]; 5;int B[100]; 6; 7;int simple() 8;{ 9; int i, j; 10; for (i = 0; i < 12; i++) { 11; A[i] = i; 12; } 13; 14; for (i = 0; i < 12; i++) { 15; B[i] = i; 16; } 17; 18; return 0; 19;} 20; 21 22target 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" 23 24@A = common global [100 x i32] zeroinitializer, align 4 25@B = common global [100 x i32] zeroinitializer, align 4 26 27define i32 @simple() nounwind { 28entry: 29 br label %for.cond 30 31for.cond: ; preds = %for.inc, %entry 32 %0 = phi i32 [ 0, %entry ], [ %inc, %for.inc ] 33 %arrayidx = getelementptr [100 x i32], [100 x i32]* @A, i32 0, i32 %0 34 %exitcond1 = icmp ne i32 %0, 12 35 br i1 %exitcond1, label %for.body, label %for.end 36 37for.body: ; preds = %for.cond 38 store i32 %0, i32* %arrayidx 39 br label %for.inc 40 41for.inc: ; preds = %for.body 42 %inc = add nsw i32 %0, 1 43 br label %for.cond 44 45for.end: ; preds = %for.cond 46 br label %for.cond4 47 48for.cond4: ; preds = %for.inc11, %for.end 49 %1 = phi i32 [ 0, %for.end ], [ %inc13, %for.inc11 ] 50 %arrayidx10 = getelementptr [100 x i32], [100 x i32]* @B, i32 0, i32 %1 51 %exitcond = icmp ne i32 %1, 12 52 br i1 %exitcond, label %for.body7, label %for.end14 53 54for.body7: ; preds = %for.cond4 55 store i32 %1, i32* %arrayidx10 56 br label %for.inc11 57 58for.inc11: ; preds = %for.body7 59 %inc13 = add nsw i32 %1, 1 60 br label %for.cond4 61 62for.end14: ; preds = %for.cond4 63 ret i32 0 64} 65; CHECK: 2 polly-import-jscop 66