#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 i = 2;
  for (;;) {
    if ((i % 2 == 0) && (i % 3 == 0) && (i % 4 == 0) && (i % 5 == 0) &&
        (i % 6 == 0) && (i % 7 == 0) && (i % 8 == 0) && (i % 9 == 0) &&
        (i % 10 == 0) && (i % 11 == 0) && (i % 12 == 0) && (i % 13 == 0) &&
        (i % 14 == 0) && (i % 15 == 0) && (i % 16 == 0) && (i % 17 == 0) &&
        (i % 18 == 0) && (i % 19 == 0) && (i % 20 == 0)) {
      printf("%d \n", i);
      break;
    } else
      ++i;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xb,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xd,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xe,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x12,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x13,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12b6 <main+0x1a6>
mov    -0x8(%rbp),%esi
lea    0xd54(%rip),%rdi
call   1030 <printf@plt>
jmp    12c4 <main+0x1b4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x2,0x4(%rsp)
mov    $0x1,%esi
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%eax
mov    %eax,%r8d
mov    %esi,%r12d
mov    %eax,%r9d
mov    %r9,%r13
mov    $0xcccccccd,%eax
imul   %rax,%r13
lea    0x1(%r12),%esi
mov    %r9,%r14
mov    $0xaaaaaaab,%eax
imul   %rax,%r14
imul   $0x24924925,%r9,%rax
shr    $0x20,%rax
mov    %r8d,%ecx
sub    %eax,%ecx
shr    %ecx
add    %eax,%ecx
mov    %r14,%rax
shr    $0x22,%rax
mov    %r13,%r10
shr    $0x22,%r10
mov    %r14,%rdi
shr    $0x21,%rdi
lea    (%rdi,%rdi,2),%edi
mov    %esi,%ebp
and    $0x1,%ebp
neg    %edi
lea    (%r12,%rdi,1),%edx
add    $0x1,%edx
mov    %esi,%edi
and    $0x3,%edi
lea    0x1(%r8),%ebx
mov    %ebx,0x4(%rsp)
or     %ebp,%edx
jne    1130 <main+0x20>
shr    $0x2,%ecx
add    %eax,%eax
lea    (%r10,%r10,4),%ebp
neg    %ebp
test   %edi,%edi
jne    1130 <main+0x20>
lea    0x0(,%rcx,8),%edi
lea    (%rax,%rax,2),%eax
neg    %eax
lea    (%r12,%rbp,1),%edx
add    $0x2,%edx
cmp    $0x1,%edx
jne    1130 <main+0x20>
imul   $0x38e38e39,%r9,%r11
sub    %edi,%ecx
add    %r12d,%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
mov    %r13,%rax
shr    $0x23,%rax
mov    %r11,%rbp
shr    $0x21,%rbp
mov    %esi,%edi
and    $0x7,%edi
add    %r12d,%ecx
add    $0x2,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
mov    %r8d,%ecx
shr    %ecx
mov    %r9,%rbx
mov    $0xba2e8ba3,%edx
imul   %rdx,%rbx
add    %eax,%eax
lea    0x0(%rbp,%rbp,8),%ebp
neg    %ebp
test   %edi,%edi
jne    1130 <main+0x20>
mov    $0x92492493,%edx
imul   %rdx,%rcx
shr    $0x23,%r14
shr    $0x23,%rbx
lea    (%rax,%rax,4),%eax
neg    %eax
lea    (%r12,%rbp,1),%edx
add    $0x2,%edx
cmp    $0x1,%edx
jne    1130 <main+0x20>
shr    $0x22,%rcx
imul   $0x4ec4ec4f,%r9,%r10
shl    $0x2,%r14d
lea    (%rbx,%rbx,4),%edx
lea    (%rbx,%rdx,2),%edi
neg    %edi
add    %r12d,%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
mov    %ecx,%r15d
shl    $0x4,%r15d
shr    $0x22,%r10
lea    (%r14,%r14,2),%eax
neg    %eax
lea    (%r12,%rdi,1),%edx
add    $0x2,%edx
cmp    $0x1,%edx
jne    1130 <main+0x20>
mov    %r9,%rbx
mov    $0xaf286bcb,%edx
imul   %rdx,%rbx
mov    %r9,%rbp
mov    $0xf0f0f0f1,%edx
imul   %rdx,%rbp
mov    $0x88888889,%edx
imul   %rdx,%r9
mov    %ecx,%r14d
sub    %r15d,%r14d
lea    (%r10,%r10,2),%edx
lea    (%r10,%rdx,4),%edi
neg    %edi
add    %r12d,%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
shr    $0x20,%rbx
shr    $0x24,%rbp
shr    $0x23,%r9
add    %r14d,%ecx
lea    (%r12,%rdi,1),%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
sub    %ebx,%r8d
mov    %ebp,%eax
shl    $0x4,%eax
lea    (%r9,%r9,4),%edx
lea    (%rdx,%rdx,2),%edx
neg    %edx
add    %r12d,%ecx
add    $0x2,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
shr    %r8d
shr    $0x22,%r11
add    %eax,%ebp
mov    %esi,%eax
and    $0xf,%eax
lea    (%r12,%rdx,1),%ecx
add    $0x2,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
add    %ebx,%r8d
add    %r11d,%r11d
neg    %ebp
test   %eax,%eax
jne    1130 <main+0x20>
shr    $0x24,%r13
shr    $0x4,%r8d
lea    (%r11,%r11,8),%eax
neg    %eax
lea    (%r12,%rbp,1),%ecx
add    $0x2,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
shl    $0x2,%r13d
lea    (%r8,%r8,8),%ecx
lea    (%r8,%rcx,2),%ecx
neg    %ecx
add    %r12d,%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
lea    0x0(%r13,%r13,4),%eax
neg    %eax
add    %r12d,%ecx
add    $0x2,%ecx
cmp    $0x1,%ecx
jne    1130 <main+0x20>
add    %r12d,%eax
add    $0x2,%eax
cmp    $0x1,%eax
jne    1130 <main+0x20>
lea    0xc50(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d \0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 2, %0 ], [ %58, %1 ]
%3 = and i32 %2, 1
%4 = urem i32 %2, 3
%5 = or i32 %3, %4
%6 = icmp eq i32 %5, 0
%7 = and i32 %2, 3
%8 = icmp eq i32 %7, 0
%9 = select i1 %6, i1 %8, i1 false
%10 = urem i32 %2, 5
%11 = icmp eq i32 %10, 0
%12 = select i1 %9, i1 %11, i1 false
%13 = urem i32 %2, 6
%14 = icmp eq i32 %13, 0
%15 = select i1 %12, i1 %14, i1 false
%16 = urem i32 %2, 7
%17 = icmp eq i32 %16, 0
%18 = select i1 %15, i1 %17, i1 false
%19 = and i32 %2, 7
%20 = icmp eq i32 %19, 0
%21 = select i1 %18, i1 %20, i1 false
%22 = urem i32 %2, 9
%23 = icmp eq i32 %22, 0
%24 = select i1 %21, i1 %23, i1 false
%25 = urem i32 %2, 10
%26 = icmp eq i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
%28 = urem i32 %2, 11
%29 = icmp eq i32 %28, 0
%30 = select i1 %27, i1 %29, i1 false
%31 = urem i32 %2, 12
%32 = icmp eq i32 %31, 0
%33 = select i1 %30, i1 %32, i1 false
%34 = urem i32 %2, 13
%35 = icmp eq i32 %34, 0
%36 = select i1 %33, i1 %35, i1 false
%37 = urem i32 %2, 14
%38 = icmp eq i32 %37, 0
%39 = select i1 %36, i1 %38, i1 false
%40 = urem i32 %2, 15
%41 = icmp eq i32 %40, 0
%42 = select i1 %39, i1 %41, i1 false
%43 = and i32 %2, 15
%44 = icmp eq i32 %43, 0
%45 = select i1 %42, i1 %44, i1 false
%46 = urem i32 %2, 17
%47 = icmp eq i32 %46, 0
%48 = select i1 %45, i1 %47, i1 false
%49 = urem i32 %2, 18
%50 = icmp eq i32 %49, 0
%51 = select i1 %48, i1 %50, i1 false
%52 = urem i32 %2, 19
%53 = icmp eq i32 %52, 0
%54 = select i1 %51, i1 %53, i1 false
%55 = urem i32 %2, 20
%56 = icmp eq i32 %55, 0
%57 = select i1 %54, i1 %56, i1 false
%58 = add nuw nsw i32 %2, 1
br i1 %57, label %59, label %1
59: ; preds = %1
%60 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}