#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 */
typedef int /*<<< orphan*/ c;

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int, int);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int c[100];
  int i;
  memset(c, 0, sizeof(c));
#pragma omp for
  for (i = 0; i < 100; i++) {
    c[i] = i;
  }
  for (i = 0; i < 100; i++) {
    if (c[i] != i) {
      fprintf(stderr, "c[%d] == %d != %d\n", i, c[i], i);
      abort();
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    119b <main+0x6b>
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    1166 <main+0x36>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    121c <main+0xec>
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
cmp    -0x1a4(%rbp),%eax
je     1203 <main+0xd3>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
mov    -0x1a4(%rbp),%edx
movslq -0x1a4(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%ecx
mov    -0x1a4(%rbp),%r8d
lea    0xe09(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    1208 <main+0xd8>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    11a5 <main+0x75>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x198,%rsp
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xeb8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xebc(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec0(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec4(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xecc(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xed4(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xed8(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xedc(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xee0(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xee1(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
mov    $0x4,%eax
nopl   0x0(%rax)
lea    -0x4(%rax),%rdx
mov    -0x10(%rsp,%rax,4),%ecx
cmp    %rcx,%rdx
jne    1303 <main+0x1d3>
lea    -0x3(%rax),%rdx
mov    -0xc(%rsp,%rax,4),%ecx
cmp    %rcx,%rdx
jne    1303 <main+0x1d3>
lea    -0x2(%rax),%rdx
mov    -0x8(%rsp,%rax,4),%ecx
cmp    %rcx,%rdx
jne    1303 <main+0x1d3>
lea    -0x1(%rax),%rdx
mov    -0x4(%rsp,%rax,4),%ecx
cmp    %rcx,%rdx
jne    1303 <main+0x1d3>
mov    (%rsp,%rax,4),%ecx
cmp    %rcx,%rax
jne    1300 <main+0x1d0>
add    $0x5,%rax
cmp    $0x68,%rax
jne    12b0 <main+0x180>
xor    %eax,%eax
add    $0x198,%rsp
ret
mov    %rax,%rdx
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
lea    0xe7d(%rip),%rsi
mov    %edx,%r8d
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [19 x i8] c"c[%d] == %d != %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i32]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 0
%9 = call i32 @memset(i32* %8, i32 0, i32 400)
store i32 0, i32* %7
br label %10
10: ; preds = %18, %2
%11 = load i32, i32* %7
%12 = icmp slt i32 %11, 100
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32, i32* %7
%15 = load i32, i32* %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %16
store i32 %14, i32* %17
br label %18
18: ; preds = %13
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 1
store i32 %20, i32* %7
br label %10
21: ; preds = %10
store i32 0, i32* %7
br label %22
22: ; preds = %43, %21
%23 = load i32, i32* %7
%24 = icmp slt i32 %23, 100
br i1 %24, label %25, label %46
25: ; preds = %22
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %27
%29 = load i32, i32* %28
%30 = load i32, i32* %7
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %42
32: ; preds = %25
%33 = load i32, i32* @stderr
%34 = load i32, i32* %7
%35 = load i32, i32* %7
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = load i32, i32* %7
%40 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %34, i32 %38, i32 %39)
%41 = call i32 (...) @abort()
unreachable
42: ; preds = %25
br label %43
43: ; preds = %42
%44 = load i32, i32* %7
%45 = add nsw i32 %44, 1
store i32 %45, i32* %7
br label %22
46: ; preds = %22
ret i32 0
}

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