#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);
int main(int argc, char *argv[]) {
  int nums[100];
  for (int i = 2; i < 100; ++i) {
    nums[i] = i;
  }
  for (int i = 2; i < 100; ++i) {
    for (int j = i; j < 100; ++j) {
      if (i != j && nums[j] != 0 && (nums[j] % i == 0)) {
        nums[j] = 0;
      }
    }
  }
  for (int k = 2; k < 100; ++k) {
    if (nums[k] != 0) {
      printf("%d\n", nums[k]);
    }
  }
}


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)
movl   $0x2,-0x1a4(%rbp)
cmpl   $0x64,-0x1a4(%rbp)
jge    1168 <main+0x58>
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    1133 <main+0x23>
movl   $0x2,-0x1a8(%rbp)
cmpl   $0x64,-0x1a8(%rbp)
jge    1221 <main+0x111>
mov    -0x1a8(%rbp),%eax
mov    %eax,-0x1ac(%rbp)
cmpl   $0x64,-0x1ac(%rbp)
jge    1208 <main+0xf8>
mov    -0x1a8(%rbp),%eax
cmp    -0x1ac(%rbp),%eax
je     11ef <main+0xdf>
movslq -0x1ac(%rbp),%rax
cmpl   $0x0,-0x1a0(%rbp,%rax,4)
je     11ef <main+0xdf>
movslq -0x1ac(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%eax
cltd
idivl  -0x1a8(%rbp)
cmp    $0x0,%edx
jne    11ef <main+0xdf>
movslq -0x1ac(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
jmp    11f4 <main+0xe4>
mov    -0x1ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ac(%rbp)
jmp    118b <main+0x7b>
jmp    120d <main+0xfd>
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    1172 <main+0x62>
movl   $0x2,-0x1b0(%rbp)
cmpl   $0x64,-0x1b0(%rbp)
jge    1280 <main+0x170>
movslq -0x1b0(%rbp),%rax
cmpl   $0x0,-0x1a0(%rbp,%rax,4)
je     1267 <main+0x157>
movslq -0x1b0(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%esi
lea    0xd9e(%rip),%rdi
call   1030 <printf@plt>
jmp    126c <main+0x15c>
mov    -0x1b0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b0(%rbp)
jmp    122b <main+0x11b>
mov    -0x4(%rbp),%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x198,%rsp
lea    0x8(%rsp),%rcx
movaps 0xeda(%rip),%xmm0
movups %xmm0,0x8(%rsp)
movaps 0xede(%rip),%xmm0
movups %xmm0,0x18(%rsp)
movaps 0xee2(%rip),%xmm0
movups %xmm0,0x28(%rsp)
movaps 0xee6(%rip),%xmm0
movups %xmm0,0x38(%rsp)
movaps 0xeea(%rip),%xmm0
movups %xmm0,0x48(%rsp)
movaps 0xeee(%rip),%xmm0
movups %xmm0,0x58(%rsp)
movaps 0xef2(%rip),%xmm0
movups %xmm0,0x68(%rsp)
movaps 0xef6(%rip),%xmm0
movups %xmm0,0x78(%rsp)
movaps 0xefa(%rip),%xmm0
movups %xmm0,0x88(%rsp)
movaps 0xefb(%rip),%xmm0
movups %xmm0,0x98(%rsp)
movaps 0xefc(%rip),%xmm0
movups %xmm0,0xa8(%rsp)
movaps 0xefd(%rip),%xmm0
movups %xmm0,0xb8(%rsp)
movaps 0xefe(%rip),%xmm0
movups %xmm0,0xc8(%rsp)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0xd8(%rsp)
movaps 0xf00(%rip),%xmm0
movups %xmm0,0xe8(%rsp)
movaps 0xf01(%rip),%xmm0
movups %xmm0,0xf8(%rsp)
movaps 0xf02(%rip),%xmm0
movups %xmm0,0x108(%rsp)
movaps 0xf03(%rip),%xmm0
movups %xmm0,0x118(%rsp)
movaps 0xf04(%rip),%xmm0
movups %xmm0,0x128(%rsp)
movaps 0xf05(%rip),%xmm0
movups %xmm0,0x138(%rsp)
movaps 0xf06(%rip),%xmm0
movups %xmm0,0x148(%rsp)
movaps 0xf07(%rip),%xmm0
movups %xmm0,0x158(%rsp)
movaps 0xf08(%rip),%xmm0
movups %xmm0,0x168(%rsp)
movaps 0xf09(%rip),%xmm0
movups %xmm0,0x178(%rsp)
movabs $0x6300000062,%rax
mov    %rax,0x188(%rsp)
mov    $0x2,%esi
mov    $0x188,%edi
jmp    12a2 <main+0x192>
nopl   (%rax)
add    $0x1,%rsi
add    $0x4,%rcx
add    $0xfffffffffffffffc,%rdi
cmp    $0x64,%rsi
je     12d5 <main+0x1c5>
xor    %ebx,%ebx
jmp    12b9 <main+0x1a9>
cs nopw 0x0(%rax,%rax,1)
add    $0x4,%rbx
cmp    %rbx,%rdi
je     1290 <main+0x180>
test   %rbx,%rbx
je     12b0 <main+0x1a0>
mov    (%rcx,%rbx,1),%eax
test   %eax,%eax
je     12b0 <main+0x1a0>
cltd
idiv   %esi
test   %edx,%edx
jne    12b0 <main+0x1a0>
movl   $0x0,(%rcx,%rbx,1)
jmp    12b0 <main+0x1a0>
mov    $0x2,%ebx
lea    0xe9f(%rip),%r14
jmp    12fa <main+0x1ea>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbx
cmp    $0x64,%rbx
je     130b <main+0x1fb>
mov    (%rsp,%rbx,4),%esi
test   %esi,%esi
je     12f0 <main+0x1e0>
mov    %r14,%rdi
call   1030 <printf@plt>
jmp    12f0 <main+0x1e0>
xor    %eax,%eax
add    $0x198,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%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
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 2, i32* %7
br label %11
11: ; preds = %19, %2
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 100
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, i32* %7
%16 = load i32, i32* %7
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %17
store i32 %15, i32* %18
br label %19
19: ; preds = %14
%20 = load i32, i32* %7
%21 = add nsw i32 %20, 1
store i32 %21, i32* %7
br label %11
22: ; preds = %11
store i32 2, i32* %8
br label %23
23: ; preds = %58, %22
%24 = load i32, i32* %8
%25 = icmp slt i32 %24, 100
br i1 %25, label %26, label %61
26: ; preds = %23
%27 = load i32, i32* %8
store i32 %27, i32* %9
br label %28
28: ; preds = %54, %26
%29 = load i32, i32* %9
%30 = icmp slt i32 %29, 100
br i1 %30, label %31, label %57
31: ; preds = %28
%32 = load i32, i32* %8
%33 = load i32, i32* %9
%34 = icmp ne i32 %32, %33
br i1 %34, label %35, label %53
35: ; preds = %31
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %53
41: ; preds = %35
%42 = load i32, i32* %9
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = load i32, i32* %8
%47 = srem i32 %45, %46
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %41
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %51
store i32 0, i32* %52
br label %53
53: ; preds = %49, %41, %35, %31
br label %54
54: ; preds = %53
%55 = load i32, i32* %9
%56 = add nsw i32 %55, 1
store i32 %56, i32* %9
br label %28
57: ; preds = %28
br label %58
58: ; preds = %57
%59 = load i32, i32* %8
%60 = add nsw i32 %59, 1
store i32 %60, i32* %8
br label %23
61: ; preds = %23
store i32 2, i32* %10
br label %62
62: ; preds = %78, %61
%63 = load i32, i32* %10
%64 = icmp slt i32 %63, 100
br i1 %64, label %65, label %81
65: ; preds = %62
%66 = load i32, i32* %10
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %77
71: ; preds = %65
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %71, %65
br label %78
78: ; preds = %77
%79 = load i32, i32* %10
%80 = add nsw i32 %79, 1
store i32 %80, i32* %10
br label %62
81: ; preds = %62
%82 = load i32, i32* %3
ret i32 %82
}

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