1; RUN: not --crash opt %loadPolly -polly-import-jscop -polly-ast -polly-ast-detect-parallel < %s 2>&1 >/dev/null | FileCheck %s 2; 3; CHECK: The context was not parsed successfully by ISL. 4; 5; Verify if the JSONImporter check if the context is parsed successfully. 6; 7; void ic2(int *A, long n) { 8; for (long i = 0; i < 2 * n; i++) 9; S0: A[0] += i; 10; for (long i = 0; i < 2 * n; i++) 11; S1: A[i + 1] = 1; 12; } 13; 14target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64" 15 16define void @ic2(i32* %A, i32 %n) { 17entry: 18 br label %for.cond 19 20for.cond: ; preds = %for.inc, %entry 21 %i.0 = phi i32 [ 0, %entry ], [ %inc, %for.inc ] 22 %mul = shl nsw i32 %n, 1 23 %cmp = icmp slt i32 %i.0, %mul 24 br i1 %cmp, label %for.body, label %for.end 25 26for.body: ; preds = %for.cond 27 br label %S0 28 29S0: ; preds = %for.body 30 %tmp = load i32, i32* %A, align 4 31 %add = add nsw i32 %tmp, %i.0 32 store i32 %add, i32* %A, align 4 33 br label %for.inc 34 35for.inc: ; preds = %S0 36 %inc = add nsw i32 %i.0, 1 37 br label %for.cond 38 39for.end: ; preds = %for.cond 40 br label %for.cond2 41 42for.cond2: ; preds = %for.inc8, %for.end 43 %i1.0 = phi i32 [ 0, %for.end ], [ %inc9, %for.inc8 ] 44 %mul3 = shl nsw i32 %n, 1 45 %cmp4 = icmp slt i32 %i1.0, %mul3 46 br i1 %cmp4, label %for.body5, label %for.end10 47 48for.body5: ; preds = %for.cond2 49 br label %S1 50 51S1: ; preds = %for.body5 52 %add6 = add nsw i32 %i1.0, 1 53 %arrayidx7 = getelementptr inbounds i32, i32* %A, i32 %add6 54 store i32 1, i32* %arrayidx7, align 4 55 br label %for.inc8 56 57for.inc8: ; preds = %S1 58 %inc9 = add nsw i32 %i1.0, 1 59 br label %for.cond2 60 61for.end10: ; preds = %for.cond2 62 ret void 63} 64 65