#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*/ assert(int);
int main() {
  int i, a[100];
  for (i = 0; i < 100; i++)
    a[i] = i + 1;
#pragma acc parallel loop copy(a)
  for (i = 0; i < 100; i++) {
    if (i % 2)
      continue;
    a[i] = 0;
  }
  for (i = 0; i < 100; i++) {
    if (i % 2)
      assert(a[i] == i + 1);
    else
      assert(a[i] == 0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1152 <main+0x42>
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <main+0x19>
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1199 <main+0x89>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     117c <main+0x6c>
jmp    118b <main+0x7b>
movslq -0x8(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1159 <main+0x49>
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    120f <main+0xff>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11e3 <main+0xd3>
movslq -0x8(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
jmp    11fc <main+0xec>
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0x1a0(%rbp,%rax,4)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
jmp    1201 <main+0xf1>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a0 <main+0x90>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x190,%rsp
movaps 0xee1(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf02(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xf07(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xf09(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xf0a(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xf0b(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xf0c(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xf0d(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xf0e(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xf0f(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xf10(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xf11(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xf12(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movl   $0x0,(%rsp,%rax,4)
add    $0x2,%rax
cmp    $0x64,%rax
jne    1280 <main+0x170>
xor    %ebx,%ebx
jmp    12b8 <main+0x1a8>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1030 <assert@plt>
add    $0x1,%rbx
cmp    $0x64,%rbx
je     12d8 <main+0x1c8>
mov    (%rsp,%rbx,4),%eax
test   $0x1,%bl
je     12a0 <main+0x190>
add    $0x1,%rbx
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1030 <assert@plt>
cmp    $0x64,%rbx
jne    12b8 <main+0x1a8>
xor    %eax,%eax
add    $0x190,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [100 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %13, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 100
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %11
store i32 %9, i32* %12
br label %13
13: ; preds = %7
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
br label %4
16: ; preds = %4
store i32 0, i32* %2
br label %17
17: ; preds = %29, %16
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 100
br i1 %19, label %20, label %32
20: ; preds = %17
%21 = load i32, i32* %2
%22 = srem i32 %21, 2
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
br label %29
25: ; preds = %20
%26 = load i32, i32* %2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %27
store i32 0, i32* %28
br label %29
29: ; preds = %25, %24
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %17
32: ; preds = %17
store i32 0, i32* %2
br label %33
33: ; preds = %59, %32
%34 = load i32, i32* %2
%35 = icmp slt i32 %34, 100
br i1 %35, label %36, label %62
36: ; preds = %33
%37 = load i32, i32* %2
%38 = srem i32 %37, 2
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %50
40: ; preds = %36
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
%47 = icmp eq i32 %44, %46
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
br label %58
50: ; preds = %36
%51 = load i32, i32* %2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = icmp eq i32 %54, 0
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
br label %58
58: ; preds = %50, %40
br label %59
59: ; preds = %58
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %33
62: ; preds = %33
ret i32 0
}

LLVM IR (-O2):
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 1, i32 2, i32 3, i32 4>, <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 5, i32 6, i32 7, i32 8>, <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 9, i32 10, i32 11, i32 12>, <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 13, i32 14, i32 15, i32 16>, <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 17, i32 18, i32 19, i32 20>, <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 21, i32 22, i32 23, i32 24>, <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 25, i32 26, i32 27, i32 28>, <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 29, i32 30, i32 31, i32 32>, <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 33, i32 34, i32 35, i32 36>, <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 37, i32 38, i32 39, i32 40>, <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 41, i32 42, i32 43, i32 44>, <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 45, i32 46, i32 47, i32 48>, <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 49, i32 50, i32 51, i32 52>, <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 53, i32 54, i32 55, i32 56>, <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 57, i32 58, i32 59, i32 60>, <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 61, i32 62, i32 63, i32 64>, <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 65, i32 66, i32 67, i32 68>, <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 69, i32 70, i32 71, i32 72>, <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 73, i32 74, i32 75, i32 76>, <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 77, i32 78, i32 79, i32 80>, <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 81, i32 82, i32 83, i32 84>, <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 85, i32 86, i32 87, i32 88>, <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 89, i32 90, i32 91, i32 92>, <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 93, i32 94, i32 95, i32 96>, <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 97, i32 98, i32 99, i32 100>, <4 x i32>* %51
br label %52
52: ; preds = %52, %0
%53 = phi i64 [ 0, %0 ], [ %55, %52 ]
%54 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %53
store i32 0, i32* %54
%55 = add nuw nsw i64 %53, 2
%56 = icmp eq i64 %55, 100
br i1 %56, label %57, label %52
57: ; preds = %52, %74
%58 = phi i64 [ %75, %74 ], [ 0, %52 ]
%59 = and i64 %58, 1
%60 = icmp eq i64 %59, 0
%61 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %58
%62 = load i32, i32* %61
br i1 %60, label %69, label %63
63: ; preds = %57
%64 = add nuw nsw i64 %58, 1
%65 = zext i32 %62 to i64
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
%68 = tail call i32 @assert(i32 %67)
br label %74
69: ; preds = %57
%70 = icmp eq i32 %62, 0
%71 = zext i1 %70 to i32
%72 = tail call i32 @assert(i32 %71)
%73 = add nuw nsw i64 %58, 1
br label %74
74: ; preds = %63, %69
%75 = phi i64 [ %64, %63 ], [ %73, %69 ]
%76 = icmp eq i64 %75, 100
br i1 %76, label %77, label %57
77: ; preds = %74
ret i32 0
}