#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*/ printf(char *);
int test_func(int *, int);
int /*<<< orphan*/ test_func2(int *);
int main() {
  int a[100];
  int i;
#pragma acc kernels loop copy(a)
  for (i = 0; i < 100; i++) {
    a[i] = i;
  }
  for (i = 0; i < 100; i++) {
    if (a[i] != i)
      return 1;
  }
#pragma acc kernels loop copyin(a)
  for (i = 0; i < 100; i++) {
    a[i] = i + 1;
  }
  for (i = 0; i < 100; i++) {
    if (a[i] != i)
      return 2;
  }
#pragma acc kernels loop copyout(a)
  for (i = 0; i < 100; i++) {
    a[i] = i + 2;
  }
  for (i = 0; i < 100; i++) {
    if (a[i] != i + 2)
      return 3;
  }
#pragma acc kernels loop create(a)
  for (i = 0; i < 100; i++) {
    a[i] = i + 3;
  }
  for (i = 0; i < 100; i++) {
    if (a[i] != i + 2)
      return 4;
  }
  int ret;
  for (i = 0; i < 100; i++)
    a[i] = 0;
  ret = test_func(a, 0);
  if (ret != 0) {
    return 5;
  }
  for (i = 0; i < 100; i++)
    a[i] = 0;
#pragma acc data copy(a)
  ret = test_func(a, 1);
  if (ret != 0) {
    return 6;
  }
  for (i = 0; i < 100; i++)
    a[i] = 0;
#pragma acc data copy(a)
#pragma acc host_data use_device(a)
  test_func2(a);
  for (i = 0; i < 100; i++) {
    if (a[i] != i * 3)
      return 7;
  }
  printf("PASS\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    1181 <main+0x51>
mov    -0x1a4(%rbp),%ecx
movslq -0x1a4(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    114c <main+0x1c>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    11d7 <main+0xa7>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
cmp    -0x1a4(%rbp),%eax
je     11be <main+0x8e>
movl   $0x1,-0x4(%rbp)
jmp    1535 <main+0x405>
jmp    11c3 <main+0x93>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    118b <main+0x5b>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    1219 <main+0xe9>
mov    -0x1a4(%rbp),%ecx
add    $0x1,%ecx
movslq -0x1a4(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    11e1 <main+0xb1>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    126f <main+0x13f>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
cmp    -0x1a4(%rbp),%eax
je     1256 <main+0x126>
movl   $0x2,-0x4(%rbp)
jmp    1535 <main+0x405>
jmp    125b <main+0x12b>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1223 <main+0xf3>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    12b1 <main+0x181>
mov    -0x1a4(%rbp),%ecx
add    $0x2,%ecx
movslq -0x1a4(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1279 <main+0x149>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    130c <main+0x1dc>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
mov    -0x1a4(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
je     12f3 <main+0x1c3>
movl   $0x3,-0x4(%rbp)
jmp    1535 <main+0x405>
jmp    12f8 <main+0x1c8>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    12bb <main+0x18b>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    134e <main+0x21e>
mov    -0x1a4(%rbp),%ecx
add    $0x3,%ecx
movslq -0x1a4(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1316 <main+0x1e6>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    13a9 <main+0x279>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
mov    -0x1a4(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
je     1390 <main+0x260>
movl   $0x4,-0x4(%rbp)
jmp    1535 <main+0x405>
jmp    1395 <main+0x265>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1358 <main+0x228>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    13e6 <main+0x2b6>
movslq -0x1a4(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    13b3 <main+0x283>
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
call   1040 <test_func@plt>
mov    %eax,-0x1a8(%rbp)
cmpl   $0x0,-0x1a8(%rbp)
je     1413 <main+0x2e3>
movl   $0x5,-0x4(%rbp)
jmp    1535 <main+0x405>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    1450 <main+0x320>
movslq -0x1a4(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    141d <main+0x2ed>
lea    -0x1a0(%rbp),%rdi
mov    $0x1,%esi
call   1040 <test_func@plt>
mov    %eax,-0x1a8(%rbp)
cmpl   $0x0,-0x1a8(%rbp)
je     1480 <main+0x350>
movl   $0x6,-0x4(%rbp)
jmp    1535 <main+0x405>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    14bd <main+0x38d>
movslq -0x1a4(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    148a <main+0x35a>
lea    -0x1a0(%rbp),%rdi
call   1050 <test_func2@plt>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    1522 <main+0x3f2>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
imul   $0x3,-0x1a4(%rbp),%ecx
cmp    %ecx,%eax
je     1509 <main+0x3d9>
movl   $0x7,-0x4(%rbp)
jmp    1535 <main+0x405>
jmp    150e <main+0x3de>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    14d3 <main+0x3a3>
lea    0xad7(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x190,%rsp
movaps 0xeb1(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xebe(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xed3(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xed4(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xed8(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xedc(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xee0(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xee1(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
xor    %ecx,%ecx
mov    $0x1,%eax
nopl   (%rax)
mov    (%rsp,%rcx,4),%edx
cmp    %rdx,%rcx
jne    18a4 <main+0x764>
mov    0x4(%rsp,%rcx,4),%esi
lea    0x1(%rcx),%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0x8(%rsp,%rcx,4),%esi
add    $0x1,%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0xc(%rsp,%rcx,4),%esi
add    $0x1,%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0x10(%rsp,%rcx,4),%ecx
add    $0x1,%rdx
cmp    %rcx,%rdx
jne    18a4 <main+0x764>
add    $0x1,%rdx
mov    %rdx,%rcx
cmp    $0x64,%rdx
jne    12b0 <main+0x170>
movaps 0xe7c(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe81(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe85(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe89(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe8d(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe91(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe95(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe99(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe9f(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xea3(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xea5(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xead(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
xor    %ecx,%ecx
mov    $0x2,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rsp,%rcx,4),%edx
cmp    %rdx,%rcx
jne    18a4 <main+0x764>
mov    0x4(%rsp,%rcx,4),%esi
lea    0x1(%rcx),%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0x8(%rsp,%rcx,4),%esi
add    $0x1,%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0xc(%rsp,%rcx,4),%esi
add    $0x1,%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
mov    0x10(%rsp,%rcx,4),%ecx
add    $0x1,%rdx
cmp    %rcx,%rdx
jne    18a4 <main+0x764>
add    $0x1,%rdx
mov    %rdx,%rcx
cmp    $0x64,%rdx
jne    1480 <main+0x340>
movaps 0xe3c(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe41(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe45(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe49(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe4d(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe51(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe55(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe59(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe5d(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe5e(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe5f(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe60(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe61(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe62(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe63(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe64(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe65(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe66(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe67(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xe68(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe69(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xe6a(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe6b(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xe6c(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xe6d(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
mov    $0x6,%ecx
mov    $0x3,%eax
mov    -0x18(%rsp,%rcx,4),%edx
lea    -0x4(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x14(%rsp,%rcx,4),%edx
lea    -0x3(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x10(%rsp,%rcx,4),%edx
lea    -0x2(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0xc(%rsp,%rcx,4),%edx
lea    -0x1(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x8(%rsp,%rcx,4),%edx
cmp    %rdx,%rcx
jne    18a4 <main+0x764>
add    $0x5,%rcx
cmp    $0x6a,%rcx
jne    1645 <main+0x505>
movaps 0xe09(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe0e(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe12(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe16(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe1a(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe1e(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe22(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe26(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe2a(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe2b(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe2c(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe2d(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xe2e(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe2f(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe30(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe31(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe32(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe33(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xe34(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xe35(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe36(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xe37(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe38(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xe39(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xe3a(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
mov    $0x6,%ecx
mov    $0x4,%eax
mov    -0x18(%rsp,%rcx,4),%edx
lea    -0x4(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x14(%rsp,%rcx,4),%edx
lea    -0x3(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x10(%rsp,%rcx,4),%edx
lea    -0x2(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0xc(%rsp,%rcx,4),%edx
lea    -0x1(%rcx),%rsi
cmp    %rdx,%rsi
jne    18a4 <main+0x764>
mov    -0x8(%rsp,%rcx,4),%edx
cmp    %rdx,%rcx
jne    18a4 <main+0x764>
add    $0x5,%rcx
cmp    $0x6a,%rcx
jne    1808 <main+0x6c8>
mov    %rsp,%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <test_func@plt>
mov    %eax,%ecx
mov    $0x5,%eax
test   %ecx,%ecx
jne    18a4 <main+0x764>
mov    %rsp,%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1050 <test_func@plt>
mov    %eax,%ecx
mov    $0x6,%eax
test   %ecx,%ecx
je     18ad <main+0x76d>
add    $0x190,%rsp
pop    %rbx
ret
mov    %rsp,%rbx
mov    $0x190,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %rbx,%rdi
call   1060 <test_func2@plt>
lea    0x10(%rsp),%rcx
mov    $0xfffffffffffffffd,%rdx
mov    $0x7,%eax
mov    -0x10(%rcx),%esi
lea    0x3(%rdx),%rdi
cmp    %rsi,%rdi
jne    18a4 <main+0x764>
mov    -0xc(%rcx),%esi
lea    0x6(%rdx),%rdi
cmp    %rsi,%rdi
jne    18a4 <main+0x764>
mov    -0x8(%rcx),%esi
lea    0x9(%rdx),%rdi
cmp    %rsi,%rdi
jne    18a4 <main+0x764>
mov    -0x4(%rcx),%esi
lea    0xc(%rdx),%rdi
cmp    %rsi,%rdi
jne    18a4 <main+0x764>
mov    (%rcx),%esi
add    $0xf,%rdx
cmp    %rsi,%rdx
jne    18a4 <main+0x764>
add    $0x14,%rcx
cmp    $0x129,%rdx
jne    18d8 <main+0x798>
lea    0xd19(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
jmp    18a4 <main+0x764>

LLVM IR (-O0):
@.str = [6 x i8] c"PASS\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %5
5: ; preds = %13, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load i32, i32* %3
%10 = load i32, i32* %3
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %11
store i32 %9, i32* %12
br label %13
13: ; preds = %8
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 1
store i32 %15, i32* %3
br label %5
16: ; preds = %5
store i32 0, i32* %3
br label %17
17: ; preds = %29, %16
%18 = load i32, i32* %3
%19 = icmp slt i32 %18, 100
br i1 %19, label %20, label %32
20: ; preds = %17
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = load i32, i32* %3
%26 = icmp ne i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %20
store i32 1, i32* %1
br label %187
28: ; preds = %20
br label %29
29: ; preds = %28
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %17
32: ; preds = %17
store i32 0, i32* %3
br label %33
33: ; preds = %42, %32
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 100
br i1 %35, label %36, label %45
36: ; preds = %33
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
%39 = load i32, i32* %3
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %40
store i32 %38, i32* %41
br label %42
42: ; preds = %36
%43 = load i32, i32* %3
%44 = add nsw i32 %43, 1
store i32 %44, i32* %3
br label %33
45: ; preds = %33
store i32 0, i32* %3
br label %46
46: ; preds = %58, %45
%47 = load i32, i32* %3
%48 = icmp slt i32 %47, 100
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load i32, i32* %3
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = load i32, i32* %3
%55 = icmp ne i32 %53, %54
br i1 %55, label %56, label %57
56: ; preds = %49
store i32 2, i32* %1
br label %187
57: ; preds = %49
br label %58
58: ; preds = %57
%59 = load i32, i32* %3
%60 = add nsw i32 %59, 1
store i32 %60, i32* %3
br label %46
61: ; preds = %46
store i32 0, i32* %3
br label %62
62: ; preds = %71, %61
%63 = load i32, i32* %3
%64 = icmp slt i32 %63, 100
br i1 %64, label %65, label %74
65: ; preds = %62
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 2
%68 = load i32, i32* %3
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %69
store i32 %67, i32* %70
br label %71
71: ; preds = %65
%72 = load i32, i32* %3
%73 = add nsw i32 %72, 1
store i32 %73, i32* %3
br label %62
74: ; preds = %62
store i32 0, i32* %3
br label %75
75: ; preds = %88, %74
%76 = load i32, i32* %3
%77 = icmp slt i32 %76, 100
br i1 %77, label %78, label %91
78: ; preds = %75
%79 = load i32, i32* %3
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = load i32, i32* %3
%84 = add nsw i32 %83, 2
%85 = icmp ne i32 %82, %84
br i1 %85, label %86, label %87
86: ; preds = %78
store i32 3, i32* %1
br label %187
87: ; preds = %78
br label %88
88: ; preds = %87
%89 = load i32, i32* %3
%90 = add nsw i32 %89, 1
store i32 %90, i32* %3
br label %75
91: ; preds = %75
store i32 0, i32* %3
br label %92
92: ; preds = %101, %91
%93 = load i32, i32* %3
%94 = icmp slt i32 %93, 100
br i1 %94, label %95, label %104
95: ; preds = %92
%96 = load i32, i32* %3
%97 = add nsw i32 %96, 3
%98 = load i32, i32* %3
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %99
store i32 %97, i32* %100
br label %101
101: ; preds = %95
%102 = load i32, i32* %3
%103 = add nsw i32 %102, 1
store i32 %103, i32* %3
br label %92
104: ; preds = %92
store i32 0, i32* %3
br label %105
105: ; preds = %118, %104
%106 = load i32, i32* %3
%107 = icmp slt i32 %106, 100
br i1 %107, label %108, label %121
108: ; preds = %105
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = load i32, i32* %3
%114 = add nsw i32 %113, 2
%115 = icmp ne i32 %112, %114
br i1 %115, label %116, label %117
116: ; preds = %108
store i32 4, i32* %1
br label %187
117: ; preds = %108
br label %118
118: ; preds = %117
%119 = load i32, i32* %3
%120 = add nsw i32 %119, 1
store i32 %120, i32* %3
br label %105
121: ; preds = %105
store i32 0, i32* %3
br label %122
122: ; preds = %129, %121
%123 = load i32, i32* %3
%124 = icmp slt i32 %123, 100
br i1 %124, label %125, label %132
125: ; preds = %122
%126 = load i32, i32* %3
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %127
store i32 0, i32* %128
br label %129
129: ; preds = %125
%130 = load i32, i32* %3
%131 = add nsw i32 %130, 1
store i32 %131, i32* %3
br label %122
132: ; preds = %122
%133 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%134 = call i32 @test_func(i32* %133, i32 0)
store i32 %134, i32* %4
%135 = load i32, i32* %4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %138
137: ; preds = %132
store i32 5, i32* %1
br label %187
138: ; preds = %132
store i32 0, i32* %3
br label %139
139: ; preds = %146, %138
%140 = load i32, i32* %3
%141 = icmp slt i32 %140, 100
br i1 %141, label %142, label %149
142: ; preds = %139
%143 = load i32, i32* %3
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %144
store i32 0, i32* %145
br label %146
146: ; preds = %142
%147 = load i32, i32* %3
%148 = add nsw i32 %147, 1
store i32 %148, i32* %3
br label %139
149: ; preds = %139
%150 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%151 = call i32 @test_func(i32* %150, i32 1)
store i32 %151, i32* %4
%152 = load i32, i32* %4
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %155
154: ; preds = %149
store i32 6, i32* %1
br label %187
155: ; preds = %149
store i32 0, i32* %3
br label %156
156: ; preds = %163, %155
%157 = load i32, i32* %3
%158 = icmp slt i32 %157, 100
br i1 %158, label %159, label %166
159: ; preds = %156
%160 = load i32, i32* %3
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %161
store i32 0, i32* %162
br label %163
163: ; preds = %159
%164 = load i32, i32* %3
%165 = add nsw i32 %164, 1
store i32 %165, i32* %3
br label %156
166: ; preds = %156
%167 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%168 = call i32 @test_func2(i32* %167)
store i32 0, i32* %3
br label %169
169: ; preds = %182, %166
%170 = load i32, i32* %3
%171 = icmp slt i32 %170, 100
br i1 %171, label %172, label %185
172: ; preds = %169
%173 = load i32, i32* %3
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %174
%176 = load i32, i32* %175
%177 = load i32, i32* %3
%178 = mul nsw i32 %177, 3
%179 = icmp ne i32 %176, %178
br i1 %179, label %180, label %181
180: ; preds = %172
store i32 7, i32* %1
br label %187
181: ; preds = %172
br label %182
182: ; preds = %181
%183 = load i32, i32* %3
%184 = add nsw i32 %183, 1
store i32 %184, i32* %3
br label %169
185: ; preds = %169
%186 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %187
187: ; preds = %185, %180, %154, %137, %116, %86, %56, %27
%188 = load i32, i32* %1
ret i32 %188
}

LLVM IR (-O2):
@str = [5 x i8] c"PASS\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = bitcast [100 x i32]* %1 to i8*
%3 = bitcast [100 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %3
%4 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 4
%5 = bitcast i32* %4 to <4 x i32>*
store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, <4 x i32>* %5
%6 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 8
%7 = bitcast i32* %6 to <4 x i32>*
store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, <4 x i32>* %7
%8 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 12
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, <4 x i32>* %9
%10 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 16
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, <4 x i32>* %11
%12 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 20
%13 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, <4 x i32>* %13
%14 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 24
%15 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, <4 x i32>* %15
%16 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 28
%17 = bitcast i32* %16 to <4 x i32>*
store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, <4 x i32>* %17
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 32
%19 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, <4 x i32>* %19
%20 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 36
%21 = bitcast i32* %20 to <4 x i32>*
store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, <4 x i32>* %21
%22 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 40
%23 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, <4 x i32>* %23
%24 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 44
%25 = bitcast i32* %24 to <4 x i32>*
store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, <4 x i32>* %25
%26 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 48
%27 = bitcast i32* %26 to <4 x i32>*
store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, <4 x i32>* %27
%28 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 52
%29 = bitcast i32* %28 to <4 x i32>*
store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, <4 x i32>* %29
%30 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 56
%31 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, <4 x i32>* %31
%32 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 60
%33 = bitcast i32* %32 to <4 x i32>*
store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, <4 x i32>* %33
%34 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 64
%35 = bitcast i32* %34 to <4 x i32>*
store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, <4 x i32>* %35
%36 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 68
%37 = bitcast i32* %36 to <4 x i32>*
store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, <4 x i32>* %37
%38 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 72
%39 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, <4 x i32>* %39
%40 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 76
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, <4 x i32>* %41
%42 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 80
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, <4 x i32>* %43
%44 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 84
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, <4 x i32>* %45
%46 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 88
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, <4 x i32>* %47
%48 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 92
%49 = bitcast i32* %48 to <4 x i32>*
store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, <4 x i32>* %49
%50 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 96
%51 = bitcast i32* %50 to <4 x i32>*
store <4 x i32> <i32 96, i32 97, i32 98, i32 99>, <4 x i32>* %51
br label %129
52: ; preds = %129
%53 = add nuw nsw i64 %130, 1
%54 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = zext i32 %55 to i64
%57 = icmp eq i64 %53, %56
br i1 %57, label %58, label %393
58: ; preds = %52
%59 = add nuw nsw i64 %130, 2
%60 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = zext i32 %61 to i64
%63 = icmp eq i64 %59, %62
br i1 %63, label %64, label %393
64: ; preds = %58
%65 = add nuw nsw i64 %130, 3
%66 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = zext i32 %67 to i64
%69 = icmp eq i64 %65, %68
br i1 %69, label %70, label %393
70: ; preds = %64
%71 = add nuw nsw i64 %130, 4
%72 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %71
%73 = load i32, i32* %72
%74 = zext i32 %73 to i64
%75 = icmp eq i64 %71, %74
br i1 %75, label %76, label %393
76: ; preds = %70
%77 = add nuw nsw i64 %130, 5
%78 = icmp eq i64 %77, 100
br i1 %78, label %79, label %129
79: ; preds = %76
%80 = bitcast [100 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32>* %80
%81 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 4
%82 = bitcast i32* %81 to <4 x i32>*
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, <4 x i32>* %82
%83 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 8
%84 = bitcast i32* %83 to <4 x i32>*
store <4 x i32> <i32 9, i32 10, i32 11, i32 12>, <4 x i32>* %84
%85 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 12
%86 = bitcast i32* %85 to <4 x i32>*
store <4 x i32> <i32 13, i32 14, i32 15, i32 16>, <4 x i32>* %86
%87 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 16
%88 = bitcast i32* %87 to <4 x i32>*
store <4 x i32> <i32 17, i32 18, i32 19, i32 20>, <4 x i32>* %88
%89 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 20
%90 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> <i32 21, i32 22, i32 23, i32 24>, <4 x i32>* %90
%91 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 24
%92 = bitcast i32* %91 to <4 x i32>*
store <4 x i32> <i32 25, i32 26, i32 27, i32 28>, <4 x i32>* %92
%93 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 28
%94 = bitcast i32* %93 to <4 x i32>*
store <4 x i32> <i32 29, i32 30, i32 31, i32 32>, <4 x i32>* %94
%95 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 32
%96 = bitcast i32* %95 to <4 x i32>*
store <4 x i32> <i32 33, i32 34, i32 35, i32 36>, <4 x i32>* %96
%97 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 36
%98 = bitcast i32* %97 to <4 x i32>*
store <4 x i32> <i32 37, i32 38, i32 39, i32 40>, <4 x i32>* %98
%99 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 40
%100 = bitcast i32* %99 to <4 x i32>*
store <4 x i32> <i32 41, i32 42, i32 43, i32 44>, <4 x i32>* %100
%101 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 44
%102 = bitcast i32* %101 to <4 x i32>*
store <4 x i32> <i32 45, i32 46, i32 47, i32 48>, <4 x i32>* %102
%103 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 48
%104 = bitcast i32* %103 to <4 x i32>*
store <4 x i32> <i32 49, i32 50, i32 51, i32 52>, <4 x i32>* %104
%105 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 52
%106 = bitcast i32* %105 to <4 x i32>*
store <4 x i32> <i32 53, i32 54, i32 55, i32 56>, <4 x i32>* %106
%107 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 56
%108 = bitcast i32* %107 to <4 x i32>*
store <4 x i32> <i32 57, i32 58, i32 59, i32 60>, <4 x i32>* %108
%109 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 60
%110 = bitcast i32* %109 to <4 x i32>*
store <4 x i32> <i32 61, i32 62, i32 63, i32 64>, <4 x i32>* %110
%111 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 64
%112 = bitcast i32* %111 to <4 x i32>*
store <4 x i32> <i32 65, i32 66, i32 67, i32 68>, <4 x i32>* %112
%113 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 68
%114 = bitcast i32* %113 to <4 x i32>*
store <4 x i32> <i32 69, i32 70, i32 71, i32 72>, <4 x i32>* %114
%115 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 72
%116 = bitcast i32* %115 to <4 x i32>*
store <4 x i32> <i32 73, i32 74, i32 75, i32 76>, <4 x i32>* %116
%117 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 76
%118 = bitcast i32* %117 to <4 x i32>*
store <4 x i32> <i32 77, i32 78, i32 79, i32 80>, <4 x i32>* %118
%119 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 80
%120 = bitcast i32* %119 to <4 x i32>*
store <4 x i32> <i32 81, i32 82, i32 83, i32 84>, <4 x i32>* %120
%121 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 84
%122 = bitcast i32* %121 to <4 x i32>*
store <4 x i32> <i32 85, i32 86, i32 87, i32 88>, <4 x i32>* %122
%123 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 88
%124 = bitcast i32* %123 to <4 x i32>*
store <4 x i32> <i32 89, i32 90, i32 91, i32 92>, <4 x i32>* %124
%125 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 92
%126 = bitcast i32* %125 to <4 x i32>*
store <4 x i32> <i32 93, i32 94, i32 95, i32 96>, <4 x i32>* %126
%127 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 96
%128 = bitcast i32* %127 to <4 x i32>*
store <4 x i32> <i32 97, i32 98, i32 99, i32 100>, <4 x i32>* %128
br label %212
129: ; preds = %76, %0
%130 = phi i64 [ 0, %0 ], [ %77, %76 ]
%131 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %130
%132 = load i32, i32* %131
%133 = zext i32 %132 to i64
%134 = icmp eq i64 %130, %133
br i1 %134, label %52, label %393
135: ; preds = %212
%136 = add nuw nsw i64 %213, 1
%137 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %136
%138 = load i32, i32* %137
%139 = zext i32 %138 to i64
%140 = icmp eq i64 %136, %139
br i1 %140, label %141, label %393
141: ; preds = %135
%142 = add nuw nsw i64 %213, 2
%143 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = zext i32 %144 to i64
%146 = icmp eq i64 %142, %145
br i1 %146, label %147, label %393
147: ; preds = %141
%148 = add nuw nsw i64 %213, 3
%149 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %148
%150 = load i32, i32* %149
%151 = zext i32 %150 to i64
%152 = icmp eq i64 %148, %151
br i1 %152, label %153, label %393
153: ; preds = %147
%154 = add nuw nsw i64 %213, 4
%155 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %154
%156 = load i32, i32* %155
%157 = zext i32 %156 to i64
%158 = icmp eq i64 %154, %157
br i1 %158, label %159, label %393
159: ; preds = %153
%160 = add nuw nsw i64 %213, 5
%161 = icmp eq i64 %160, 100
br i1 %161, label %162, label %212
162: ; preds = %159
%163 = bitcast [100 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 2, i32 3, i32 4, i32 5>, <4 x i32>* %163
%164 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 4
%165 = bitcast i32* %164 to <4 x i32>*
store <4 x i32> <i32 6, i32 7, i32 8, i32 9>, <4 x i32>* %165
%166 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 8
%167 = bitcast i32* %166 to <4 x i32>*
store <4 x i32> <i32 10, i32 11, i32 12, i32 13>, <4 x i32>* %167
%168 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 12
%169 = bitcast i32* %168 to <4 x i32>*
store <4 x i32> <i32 14, i32 15, i32 16, i32 17>, <4 x i32>* %169
%170 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 16
%171 = bitcast i32* %170 to <4 x i32>*
store <4 x i32> <i32 18, i32 19, i32 20, i32 21>, <4 x i32>* %171
%172 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 20
%173 = bitcast i32* %172 to <4 x i32>*
store <4 x i32> <i32 22, i32 23, i32 24, i32 25>, <4 x i32>* %173
%174 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 24
%175 = bitcast i32* %174 to <4 x i32>*
store <4 x i32> <i32 26, i32 27, i32 28, i32 29>, <4 x i32>* %175
%176 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 28
%177 = bitcast i32* %176 to <4 x i32>*
store <4 x i32> <i32 30, i32 31, i32 32, i32 33>, <4 x i32>* %177
%178 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 32
%179 = bitcast i32* %178 to <4 x i32>*
store <4 x i32> <i32 34, i32 35, i32 36, i32 37>, <4 x i32>* %179
%180 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 36
%181 = bitcast i32* %180 to <4 x i32>*
store <4 x i32> <i32 38, i32 39, i32 40, i32 41>, <4 x i32>* %181
%182 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 40
%183 = bitcast i32* %182 to <4 x i32>*
store <4 x i32> <i32 42, i32 43, i32 44, i32 45>, <4 x i32>* %183
%184 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 44
%185 = bitcast i32* %184 to <4 x i32>*
store <4 x i32> <i32 46, i32 47, i32 48, i32 49>, <4 x i32>* %185
%186 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 48
%187 = bitcast i32* %186 to <4 x i32>*
store <4 x i32> <i32 50, i32 51, i32 52, i32 53>, <4 x i32>* %187
%188 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 52
%189 = bitcast i32* %188 to <4 x i32>*
store <4 x i32> <i32 54, i32 55, i32 56, i32 57>, <4 x i32>* %189
%190 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 56
%191 = bitcast i32* %190 to <4 x i32>*
store <4 x i32> <i32 58, i32 59, i32 60, i32 61>, <4 x i32>* %191
%192 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 60
%193 = bitcast i32* %192 to <4 x i32>*
store <4 x i32> <i32 62, i32 63, i32 64, i32 65>, <4 x i32>* %193
%194 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 64
%195 = bitcast i32* %194 to <4 x i32>*
store <4 x i32> <i32 66, i32 67, i32 68, i32 69>, <4 x i32>* %195
%196 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 68
%197 = bitcast i32* %196 to <4 x i32>*
store <4 x i32> <i32 70, i32 71, i32 72, i32 73>, <4 x i32>* %197
%198 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 72
%199 = bitcast i32* %198 to <4 x i32>*
store <4 x i32> <i32 74, i32 75, i32 76, i32 77>, <4 x i32>* %199
%200 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 76
%201 = bitcast i32* %200 to <4 x i32>*
store <4 x i32> <i32 78, i32 79, i32 80, i32 81>, <4 x i32>* %201
%202 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 80
%203 = bitcast i32* %202 to <4 x i32>*
store <4 x i32> <i32 82, i32 83, i32 84, i32 85>, <4 x i32>* %203
%204 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 84
%205 = bitcast i32* %204 to <4 x i32>*
store <4 x i32> <i32 86, i32 87, i32 88, i32 89>, <4 x i32>* %205
%206 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 88
%207 = bitcast i32* %206 to <4 x i32>*
store <4 x i32> <i32 90, i32 91, i32 92, i32 93>, <4 x i32>* %207
%208 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 92
%209 = bitcast i32* %208 to <4 x i32>*
store <4 x i32> <i32 94, i32 95, i32 96, i32 97>, <4 x i32>* %209
%210 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 96
%211 = bitcast i32* %210 to <4 x i32>*
store <4 x i32> <i32 98, i32 99, i32 100, i32 101>, <4 x i32>* %211
br label %299
212: ; preds = %159, %79
%213 = phi i64 [ 0, %79 ], [ %160, %159 ]
%214 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %213
%215 = load i32, i32* %214
%216 = zext i32 %215 to i64
%217 = icmp eq i64 %213, %216
br i1 %217, label %135, label %393
218: ; preds = %299
%219 = add nuw nsw i64 %300, 1
%220 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %219
%221 = load i32, i32* %220
%222 = add nuw nsw i64 %300, 3
%223 = zext i32 %221 to i64
%224 = icmp eq i64 %222, %223
br i1 %224, label %225, label %393
225: ; preds = %218
%226 = add nuw nsw i64 %300, 2
%227 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %226
%228 = load i32, i32* %227
%229 = add nuw nsw i64 %300, 4
%230 = zext i32 %228 to i64
%231 = icmp eq i64 %229, %230
br i1 %231, label %232, label %393
232: ; preds = %225
%233 = add nuw nsw i64 %300, 3
%234 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %233
%235 = load i32, i32* %234
%236 = add nuw nsw i64 %300, 5
%237 = zext i32 %235 to i64
%238 = icmp eq i64 %236, %237
br i1 %238, label %239, label %393
239: ; preds = %232
%240 = add nuw nsw i64 %300, 4
%241 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %240
%242 = load i32, i32* %241
%243 = add nuw nsw i64 %300, 6
%244 = zext i32 %242 to i64
%245 = icmp eq i64 %243, %244
br i1 %245, label %246, label %393
246: ; preds = %239
%247 = add nuw nsw i64 %300, 5
%248 = icmp eq i64 %247, 100
br i1 %248, label %249, label %299
249: ; preds = %246
%250 = bitcast [100 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 3, i32 4, i32 5, i32 6>, <4 x i32>* %250
%251 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 4
%252 = bitcast i32* %251 to <4 x i32>*
store <4 x i32> <i32 7, i32 8, i32 9, i32 10>, <4 x i32>* %252
%253 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 8
%254 = bitcast i32* %253 to <4 x i32>*
store <4 x i32> <i32 11, i32 12, i32 13, i32 14>, <4 x i32>* %254
%255 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 12
%256 = bitcast i32* %255 to <4 x i32>*
store <4 x i32> <i32 15, i32 16, i32 17, i32 18>, <4 x i32>* %256
%257 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 16
%258 = bitcast i32* %257 to <4 x i32>*
store <4 x i32> <i32 19, i32 20, i32 21, i32 22>, <4 x i32>* %258
%259 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 20
%260 = bitcast i32* %259 to <4 x i32>*
store <4 x i32> <i32 23, i32 24, i32 25, i32 26>, <4 x i32>* %260
%261 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 24
%262 = bitcast i32* %261 to <4 x i32>*
store <4 x i32> <i32 27, i32 28, i32 29, i32 30>, <4 x i32>* %262
%263 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 28
%264 = bitcast i32* %263 to <4 x i32>*
store <4 x i32> <i32 31, i32 32, i32 33, i32 34>, <4 x i32>* %264
%265 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 32
%266 = bitcast i32* %265 to <4 x i32>*
store <4 x i32> <i32 35, i32 36, i32 37, i32 38>, <4 x i32>* %266
%267 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 36
%268 = bitcast i32* %267 to <4 x i32>*
store <4 x i32> <i32 39, i32 40, i32 41, i32 42>, <4 x i32>* %268
%269 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 40
%270 = bitcast i32* %269 to <4 x i32>*
store <4 x i32> <i32 43, i32 44, i32 45, i32 46>, <4 x i32>* %270
%271 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 44
%272 = bitcast i32* %271 to <4 x i32>*
store <4 x i32> <i32 47, i32 48, i32 49, i32 50>, <4 x i32>* %272
%273 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 48
%274 = bitcast i32* %273 to <4 x i32>*
store <4 x i32> <i32 51, i32 52, i32 53, i32 54>, <4 x i32>* %274
%275 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 52
%276 = bitcast i32* %275 to <4 x i32>*
store <4 x i32> <i32 55, i32 56, i32 57, i32 58>, <4 x i32>* %276
%277 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 56
%278 = bitcast i32* %277 to <4 x i32>*
store <4 x i32> <i32 59, i32 60, i32 61, i32 62>, <4 x i32>* %278
%279 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 60
%280 = bitcast i32* %279 to <4 x i32>*
store <4 x i32> <i32 63, i32 64, i32 65, i32 66>, <4 x i32>* %280
%281 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 64
%282 = bitcast i32* %281 to <4 x i32>*
store <4 x i32> <i32 67, i32 68, i32 69, i32 70>, <4 x i32>* %282
%283 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 68
%284 = bitcast i32* %283 to <4 x i32>*
store <4 x i32> <i32 71, i32 72, i32 73, i32 74>, <4 x i32>* %284
%285 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 72
%286 = bitcast i32* %285 to <4 x i32>*
store <4 x i32> <i32 75, i32 76, i32 77, i32 78>, <4 x i32>* %286
%287 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 76
%288 = bitcast i32* %287 to <4 x i32>*
store <4 x i32> <i32 79, i32 80, i32 81, i32 82>, <4 x i32>* %288
%289 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 80
%290 = bitcast i32* %289 to <4 x i32>*
store <4 x i32> <i32 83, i32 84, i32 85, i32 86>, <4 x i32>* %290
%291 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 84
%292 = bitcast i32* %291 to <4 x i32>*
store <4 x i32> <i32 87, i32 88, i32 89, i32 90>, <4 x i32>* %292
%293 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 88
%294 = bitcast i32* %293 to <4 x i32>*
store <4 x i32> <i32 91, i32 92, i32 93, i32 94>, <4 x i32>* %294
%295 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 92
%296 = bitcast i32* %295 to <4 x i32>*
store <4 x i32> <i32 95, i32 96, i32 97, i32 98>, <4 x i32>* %296
%297 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 96
%298 = bitcast i32* %297 to <4 x i32>*
store <4 x i32> <i32 99, i32 100, i32 101, i32 102>, <4 x i32>* %298
br label %341
299: ; preds = %246, %162
%300 = phi i64 [ 0, %162 ], [ %247, %246 ]
%301 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %300
%302 = load i32, i32* %301
%303 = add nuw nsw i64 %300, 2
%304 = zext i32 %302 to i64
%305 = icmp eq i64 %303, %304
br i1 %305, label %218, label %393
306: ; preds = %341
%307 = add nuw nsw i64 %342, 1
%308 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %307
%309 = load i32, i32* %308
%310 = add nuw nsw i64 %342, 3
%311 = zext i32 %309 to i64
%312 = icmp eq i64 %310, %311
br i1 %312, label %313, label %393
313: ; preds = %306
%314 = add nuw nsw i64 %342, 2
%315 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %314
%316 = load i32, i32* %315
%317 = add nuw nsw i64 %342, 4
%318 = zext i32 %316 to i64
%319 = icmp eq i64 %317, %318
br i1 %319, label %320, label %393
320: ; preds = %313
%321 = add nuw nsw i64 %342, 3
%322 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %321
%323 = load i32, i32* %322
%324 = add nuw nsw i64 %342, 5
%325 = zext i32 %323 to i64
%326 = icmp eq i64 %324, %325
br i1 %326, label %327, label %393
327: ; preds = %320
%328 = add nuw nsw i64 %342, 4
%329 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %328
%330 = load i32, i32* %329
%331 = add nuw nsw i64 %342, 6
%332 = zext i32 %330 to i64
%333 = icmp eq i64 %331, %332
br i1 %333, label %334, label %393
334: ; preds = %327
%335 = add nuw nsw i64 %342, 5
%336 = icmp eq i64 %335, 100
br i1 %336, label %337, label %341
337: ; preds = %334
%338 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%339 = call i32 @test_func(i32* %338, i32 0)
%340 = icmp eq i32 %339, 0
br i1 %340, label %348, label %393
341: ; preds = %334, %249
%342 = phi i64 [ 0, %249 ], [ %335, %334 ]
%343 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %342
%344 = load i32, i32* %343
%345 = add nuw nsw i64 %342, 2
%346 = zext i32 %344 to i64
%347 = icmp eq i64 %345, %346
br i1 %347, label %306, label %393
348: ; preds = %337
%349 = call i32 @test_func(i32* %338, i32 1)
%350 = icmp eq i32 %349, 0
br i1 %350, label %351, label %393
351: ; preds = %348
%352 = call i32 @test_func2(i32* %338)
br label %384
353: ; preds = %384
%354 = add nuw nsw i64 %385, 1
%355 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %354
%356 = load i32, i32* %355
%357 = mul nuw nsw i64 %354, 3
%358 = zext i32 %356 to i64
%359 = icmp eq i64 %357, %358
br i1 %359, label %360, label %393
360: ; preds = %353
%361 = add nuw nsw i64 %385, 2
%362 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %361
%363 = load i32, i32* %362
%364 = mul nuw nsw i64 %361, 3
%365 = zext i32 %363 to i64
%366 = icmp eq i64 %364, %365
br i1 %366, label %367, label %393
367: ; preds = %360
%368 = add nuw nsw i64 %385, 3
%369 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %368
%370 = load i32, i32* %369
%371 = mul nuw nsw i64 %368, 3
%372 = zext i32 %370 to i64
%373 = icmp eq i64 %371, %372
br i1 %373, label %374, label %393
374: ; preds = %367
%375 = add nuw nsw i64 %385, 4
%376 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %375
%377 = load i32, i32* %376
%378 = mul nuw nsw i64 %375, 3
%379 = zext i32 %377 to i64
%380 = icmp eq i64 %378, %379
br i1 %380, label %381, label %393
381: ; preds = %374
%382 = add nuw nsw i64 %385, 5
%383 = icmp eq i64 %382, 100
br i1 %383, label %391, label %384
384: ; preds = %381, %351
%385 = phi i64 [ 0, %351 ], [ %382, %381 ]
%386 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %385
%387 = load i32, i32* %386
%388 = mul nuw nsw i64 %385, 3
%389 = zext i32 %387 to i64
%390 = icmp eq i64 %388, %389
br i1 %390, label %353, label %393
391: ; preds = %381
%392 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %393
393: ; preds = %129, %52, %58, %64, %70, %212, %135, %141, %147, %153, %299, %218, %225, %232, %239, %341, %306, %313, %320, %327, %384, %353, %360, %367, %374, %391, %337, %348
%394 = phi i32 [ 0, %391 ], [ 5, %337 ], [ 6, %348 ], [ 7, %374 ], [ 7, %367 ], [ 7, %360 ], [ 7, %353 ], [ 7, %384 ], [ 4, %327 ], [ 4, %320 ], [ 4, %313 ], [ 4, %306 ], [ 4, %341 ], [ 3, %239 ], [ 3, %232 ], [ 3, %225 ], [ 3, %218 ], [ 3, %299 ], [ 2, %153 ], [ 2, %147 ], [ 2, %141 ], [ 2, %135 ], [ 2, %212 ], [ 1, %70 ], [ 1, %64 ], [ 1, %58 ], [ 1, %52 ], [ 1, %129 ]
ret i32 %394
}