#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ check_offloading();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  check_offloading();
  int a[100], aa[100];
  int i, error = 0;
  for (i = 0; i < 100; i++)
    aa[i] = a[i] = -1;
#pragma omp target map(tofrom : a [0:100])
  {
    int k, l;
#pragma omp simd collapse(2)
    for (k = 0; k < 100 / 4; k++)
      for (l = 0; l < 4; l++)
        a[k * 4 + l] = k * 4 + l;
  }
  for (i = 0; i < 100; i++)
    aa[i] = i;
  for (i = 0; i < 100; i++) {
    if (a[i] != aa[i])
      printf("%d: a %d != %d (error %d)\n", i, a[i], aa[i], ++error);
    if (error > 10) {
      printf("abort\n");
      return 0;
    }
  }
  printf("done with %d errors\n", error);
  return error;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <check_offloading@plt>
movl   $0x0,-0x338(%rbp)
movl   $0x0,-0x334(%rbp)
cmpl   $0x64,-0x334(%rbp)
jge    1192 <main+0x72>
movslq -0x334(%rbp),%rax
movl   $0xffffffff,-0x1a0(%rbp,%rax,4)
ff ff ff ff
movslq -0x334(%rbp),%rax
movl   $0xffffffff,-0x330(%rbp,%rax,4)
ff ff ff ff
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    114d <main+0x2d>
movl   $0x0,-0x33c(%rbp)
cmpl   $0x19,-0x33c(%rbp)
jge    1214 <main+0xf4>
movl   $0x0,-0x340(%rbp)
cmpl   $0x4,-0x340(%rbp)
jge    11fb <main+0xdb>
mov    -0x33c(%rbp),%ecx
shl    $0x2,%ecx
add    -0x340(%rbp),%ecx
mov    -0x33c(%rbp),%eax
shl    $0x2,%eax
add    -0x340(%rbp),%eax
cltq
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x340(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x340(%rbp)
jmp    11b3 <main+0x93>
jmp    1200 <main+0xe0>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    119c <main+0x7c>
movl   $0x0,-0x334(%rbp)
cmpl   $0x64,-0x334(%rbp)
jge    1253 <main+0x133>
mov    -0x334(%rbp),%ecx
movslq -0x334(%rbp),%rax
mov    %ecx,-0x330(%rbp,%rax,4)
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    121e <main+0xfe>
movl   $0x0,-0x334(%rbp)
cmpl   $0x64,-0x334(%rbp)
jge    130e <main+0x1ee>
movslq -0x334(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
movslq -0x334(%rbp),%rcx
cmp    -0x330(%rbp,%rcx,4),%eax
je     12ce <main+0x1ae>
mov    -0x334(%rbp),%esi
movslq -0x334(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%edx
movslq -0x334(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%ecx
mov    -0x338(%rbp),%r8d
add    $0x1,%r8d
mov    %r8d,-0x338(%rbp)
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0xa,-0x338(%rbp)
jle    12f5 <main+0x1d5>
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    132b <main+0x20b>
jmp    12fa <main+0x1da>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    125d <main+0x13d>
mov    -0x338(%rbp),%esi
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x338(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x328,%rsp
xor    %eax,%eax
call   1060 <check_offloading@plt>
lea    0x190(%rsp),%rdi
mov    $0x190,%edx
mov    $0xff,%esi
call   1050 <memset@plt>
mov    %rsp,%rdi
mov    $0x190,%edx
mov    $0xff,%esi
call   1050 <memset@plt>
mov    $0xffffffffffffffa0,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x60(%rax),%ecx
mov    %ecx,0x310(%rsp,%rax,4)
lea    0x61(%rax),%ecx
mov    %ecx,0x314(%rsp,%rax,4)
lea    0x62(%rax),%ecx
mov    %ecx,0x318(%rsp,%rax,4)
lea    0x63(%rax),%ecx
mov    %ecx,0x31c(%rsp,%rax,4)
test   %rax,%rax
je     11eb <main+0xab>
lea    0x64(%rax),%ecx
mov    %ecx,0x320(%rsp,%rax,4)
lea    0x65(%rax),%ecx
mov    %ecx,0x324(%rsp,%rax,4)
lea    0x66(%rax),%ecx
mov    %ecx,0x328(%rsp,%rax,4)
lea    0x67(%rax),%ecx
mov    %ecx,0x32c(%rsp,%rax,4)
add    $0x8,%rax
jmp    1190 <main+0x50>
movaps 0xe0e(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe13(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe17(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe1b(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe1f(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe23(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe27(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe2b(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe2f(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe30(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe31(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe32(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe33(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe34(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe35(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe36(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe37(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe38(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe39(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xe3a(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe3b(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xe3c(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe3d(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xe3e(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xe3f(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
lea    0xe40(%rip),%r14
xor    %ebx,%ebx
xor    %r15d,%r15d
jmp    136a <main+0x22a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x64,%rbx
je     13a5 <main+0x265>
mov    0x190(%rsp,%rbx,4),%edx
mov    (%rsp,%rbx,4),%ecx
cmp    %ecx,%edx
je     1360 <main+0x220>
lea    0x1(%r15),%ebp
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0xa,%r15d
mov    %ebp,%r15d
jl     1360 <main+0x220>
lea    0xe25(%rip),%rdi
call   1030 <puts@plt>
xor    %r15d,%r15d
jmp    13b6 <main+0x276>
lea    0xdff(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%eax
add    $0x328,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"%d: a %d != %d (error %d)\0A\00"
@.str.1 = [7 x i8] c"abort\0A\00"
@.str.2 = [21 x i8] c"done with %d errors\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca [100 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (...) @check_offloading()
store i32 0, i32* %5
store i32 0, i32* %4
br label %9
9: ; preds = %19, %0
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 100
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %14
store i32 -1, i32* %15
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %17
store i32 -1, i32* %18
br label %19
19: ; preds = %12
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
store i32 %21, i32* %4
br label %9
22: ; preds = %9
store i32 0, i32* %6
br label %23
23: ; preds = %45, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 25
br i1 %25, label %26, label %48
26: ; preds = %23
store i32 0, i32* %7
br label %27
27: ; preds = %41, %26
%28 = load i32, i32* %7
%29 = icmp slt i32 %28, 4
br i1 %29, label %30, label %44
30: ; preds = %27
%31 = load i32, i32* %6
%32 = mul nsw i32 %31, 4
%33 = load i32, i32* %7
%34 = add nsw i32 %32, %33
%35 = load i32, i32* %6
%36 = mul nsw i32 %35, 4
%37 = load i32, i32* %7
%38 = add nsw i32 %36, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %39
store i32 %34, i32* %40
br label %41
41: ; preds = %30
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
store i32 %43, i32* %7
br label %27
44: ; preds = %27
br label %45
45: ; preds = %44
%46 = load i32, i32* %6
%47 = add nsw i32 %46, 1
store i32 %47, i32* %6
br label %23
48: ; preds = %23
store i32 0, i32* %4
br label %49
49: ; preds = %57, %48
%50 = load i32, i32* %4
%51 = icmp slt i32 %50, 100
br i1 %51, label %52, label %60
52: ; preds = %49
%53 = load i32, i32* %4
%54 = load i32, i32* %4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %55
store i32 %53, i32* %56
br label %57
57: ; preds = %52
%58 = load i32, i32* %4
%59 = add nsw i32 %58, 1
store i32 %59, i32* %4
br label %49
60: ; preds = %49
store i32 0, i32* %4
br label %61
61: ; preds = %93, %60
%62 = load i32, i32* %4
%63 = icmp slt i32 %62, 100
br i1 %63, label %64, label %96
64: ; preds = %61
%65 = load i32, i32* %4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = load i32, i32* %4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = icmp ne i32 %68, %72
br i1 %73, label %74, label %87
74: ; preds = %64
%75 = load i32, i32* %4
%76 = load i32, i32* %4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = load i32, i32* %4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = load i32, i32* %5
%85 = add nsw i32 %84, 1
store i32 %85, i32* %5
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %75, i32 %79, i32 %83, i32 %85)
br label %87
87: ; preds = %74, %64
%88 = load i32, i32* %5
%89 = icmp sgt i32 %88, 10
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %100
92: ; preds = %87
br label %93
93: ; preds = %92
%94 = load i32, i32* %4
%95 = add nsw i32 %94, 1
store i32 %95, i32* %4
br label %61
96: ; preds = %61
%97 = load i32, i32* %5
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %97)
%99 = load i32, i32* %5
store i32 %99, i32* %1
br label %100
100: ; preds = %96, %90
%101 = load i32, i32* %1
ret i32 %101
}

LLVM IR (-O2):
@.str = [27 x i8] c"%d: a %d != %d (error %d)\0A\00"
@.str.2 = [21 x i8] c"done with %d errors\0A\00"
@str = [6 x i8] c"abort\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = bitcast [100 x i32]* %1 to i8*
%3 = alloca [100 x i32]
%4 = bitcast [100 x i32]* %3 to i8*
%5 = tail call i32 (...) @check_offloading()
br label %6
6: ; preds = %22, %0
%7 = phi i64 [ 0, %0 ], [ %35, %22 ]
%8 = shl nsw i64 %7, 2
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %8
%10 = trunc i64 %8 to i32
store i32 %10, i32* %9
%11 = or i64 %8, 1
%12 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %11
%13 = trunc i64 %11 to i32
store i32 %13, i32* %12
%14 = or i64 %8, 2
%15 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %14
%16 = trunc i64 %14 to i32
store i32 %16, i32* %15
%17 = or i64 %8, 3
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %17
%19 = trunc i64 %17 to i32
store i32 %19, i32* %18
%20 = or i64 %7, 1
%21 = icmp eq i64 %20, 25
br i1 %21, label %36, label %22
22: ; preds = %6
%23 = shl nsw i64 %20, 2
%24 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %23
%25 = trunc i64 %23 to i32
store i32 %25, i32* %24
%26 = or i64 %23, 1
%27 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %26
%28 = trunc i64 %26 to i32
store i32 %28, i32* %27
%29 = or i64 %23, 2
%30 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %29
%31 = trunc i64 %29 to i32
store i32 %31, i32* %30
%32 = or i64 %23, 3
%33 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %32
%34 = trunc i64 %32 to i32
store i32 %34, i32* %33
%35 = add nuw nsw i64 %7, 2
br label %6
36: ; preds = %6
%37 = bitcast [100 x i32]* %3 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %37
%38 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 4
%39 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, <4 x i32>* %39
%40 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 8
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, <4 x i32>* %41
%42 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 12
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, <4 x i32>* %43
%44 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 16
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, <4 x i32>* %45
%46 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 20
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, <4 x i32>* %47
%48 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 24
%49 = bitcast i32* %48 to <4 x i32>*
store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, <4 x i32>* %49
%50 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 28
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, <4 x i32>* %51
%52 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 32
%53 = bitcast i32* %52 to <4 x i32>*
store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, <4 x i32>* %53
%54 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 36
%55 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, <4 x i32>* %55
%56 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 40
%57 = bitcast i32* %56 to <4 x i32>*
store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, <4 x i32>* %57
%58 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 44
%59 = bitcast i32* %58 to <4 x i32>*
store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, <4 x i32>* %59
%60 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 48
%61 = bitcast i32* %60 to <4 x i32>*
store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, <4 x i32>* %61
%62 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 52
%63 = bitcast i32* %62 to <4 x i32>*
store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, <4 x i32>* %63
%64 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 56
%65 = bitcast i32* %64 to <4 x i32>*
store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, <4 x i32>* %65
%66 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 60
%67 = bitcast i32* %66 to <4 x i32>*
store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, <4 x i32>* %67
%68 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 64
%69 = bitcast i32* %68 to <4 x i32>*
store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, <4 x i32>* %69
%70 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 68
%71 = bitcast i32* %70 to <4 x i32>*
store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, <4 x i32>* %71
%72 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 72
%73 = bitcast i32* %72 to <4 x i32>*
store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, <4 x i32>* %73
%74 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 76
%75 = bitcast i32* %74 to <4 x i32>*
store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, <4 x i32>* %75
%76 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 80
%77 = bitcast i32* %76 to <4 x i32>*
store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, <4 x i32>* %77
%78 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 84
%79 = bitcast i32* %78 to <4 x i32>*
store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, <4 x i32>* %79
%80 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 88
%81 = bitcast i32* %80 to <4 x i32>*
store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, <4 x i32>* %81
%82 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 92
%83 = bitcast i32* %82 to <4 x i32>*
store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, <4 x i32>* %83
%84 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 96
%85 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> <i32 96, i32 97, i32 98, i32 99>, <4 x i32>* %85
br label %86
86: ; preds = %36, %101
%87 = phi i64 [ %103, %101 ], [ 0, %36 ]
%88 = phi i32 [ %102, %101 ], [ 0, %36 ]
%89 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %87
%90 = load i32, i32* %89
%91 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %87
%92 = load i32, i32* %91
%93 = icmp eq i32 %90, %92
br i1 %93, label %101, label %94
94: ; preds = %86
%95 = add nsw i32 %88, 1
%96 = trunc i64 %87 to i32
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %96, i32 %90, i32 %92, i32 %95)
%98 = icmp sgt i32 %88, 9
br i1 %98, label %99, label %101
99: ; preds = %94
%100 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
br label %107
101: ; preds = %86, %94
%102 = phi i32 [ %95, %94 ], [ %88, %86 ]
%103 = add nuw nsw i64 %87, 1
%104 = icmp eq i64 %103, 100
br i1 %104, label %105, label %86
105: ; preds = %101
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %102)
br label %107
107: ; preds = %105, %99
%108 = phi i32 [ 0, %99 ], [ %102, %105 ]
ret i32 %108
}