#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 *, unsigned long long);
int main(int argc, char const *argv[]) {
  unsigned long long int i, j;
  int flag = 0;
  for (i = 2520; i < 999999999; i++) {
    flag = 0;
    for (j = 2; j <= 20; j++) {
      if (i % j != 0) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      printf("%llu\n", i);
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
movq   $0x9d8,-0x18(%rbp)
cmpq   $0x3b9ac9ff,-0x18(%rbp)
3b
jae    11ca <main+0xba>
movl   $0x0,-0x24(%rbp)
movq   $0x2,-0x20(%rbp)
cmpq   $0x14,-0x20(%rbp)
ja     1195 <main+0x85>
mov    -0x18(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x20(%rbp)
cmp    $0x0,%rdx
je     117f <main+0x6f>
movl   $0x1,-0x24(%rbp)
jmp    1195 <main+0x85>
jmp    1184 <main+0x74>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1152 <main+0x42>
cmpl   $0x0,-0x24(%rbp)
jne    11b4 <main+0xa4>
mov    -0x18(%rbp),%rsi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    11ca <main+0xba>
jmp    11b9 <main+0xa9>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1135 <main+0x25>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x9d8,%r13d
movabs $0x2e8ba2e8ba2e8ba3,%rbp
a2 8b 2e
movabs $0x2492492492492493,%r12
49 92 24
jmp    1151 <main+0x41>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    $0x3b9ac9ff,%r13
je     1447 <main+0x337>
mov    %r13,%rax
movabs $0xcccccccccccccccd,%rcx
cc cc cc
mul    %rcx
mov    %rdx,%r11
mov    %r13,%rax
movabs $0xd79435e50d79435f,%rcx
35 94 d7
mul    %rcx
mov    %rdx,%r8
mov    %r13,%rax
movabs $0xe38e38e38e38e38f,%rcx
38 8e e3
mul    %rcx
mov    %rdx,%r14
mov    %r13,%rax
movabs $0xf0f0f0f0f0f0f0f1,%rcx
f0 f0 f0
mul    %rcx
mov    %rdx,%r9
mov    %r13,%rax
movabs $0x8888888888888889,%rcx
88 88 88
mul    %rcx
mov    %rdx,%r10
mov    %r13,%rax
shr    %rax
movabs $0x4924924924924925,%rcx
92 24 49
mul    %rcx
mov    %rdx,%rcx
mov    %r13,%rax
movabs $0x4ec4ec4ec4ec4ec5,%rdx
ec c4 4e
mul    %rdx
mov    %rdx,%r15
mov    %r13,%rax
movabs $0xaaaaaaaaaaaaaaab,%rdx
aa aa aa
mul    %rdx
mov    %rdx,%rdi
shr    %rdi
mov    %r13,%rax
mul    %rbp
mov    %rdx,%rbx
mov    %r13,%rax
mul    %r12
lea    (%rdi,%rdi,2),%rax
mov    %r13,%rsi
sub    %rax,%rsi
mov    %r13d,%eax
and    $0x1,%eax
or     %rax,%rsi
jne    1140 <main+0x30>
mov    %r13d,%eax
and    $0x3,%eax
test   %rax,%rax
jne    1140 <main+0x30>
shr    $0x2,%r11
lea    (%r11,%r11,4),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
mov    %rdi,%rax
and    $0xfffffffffffffffe,%rax
lea    (%rax,%rax,2),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
mov    %r13,%rax
sub    %rdx,%rax
shr    %rax
add    %rdx,%rax
shr    $0x2,%rax
lea    0x0(,%rax,8),%rdx
sub    %rdx,%rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
mov    %r13d,%eax
and    $0x7,%eax
test   %rax,%rax
jne    1140 <main+0x30>
shr    $0x3,%r14
lea    (%r14,%r14,8),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
mov    %r11,%rax
and    $0xfffffffffffffffe,%rax
lea    (%rax,%rax,4),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
shr    %rbx
lea    (%rbx,%rbx,4),%rax
lea    (%rbx,%rax,2),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
and    $0xfffffffffffffffc,%rdi
lea    (%rdi,%rdi,2),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
shr    $0x2,%r15
lea    (%r15,%r15,2),%rax
lea    (%r15,%rax,4),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
shr    %rcx
mov    %rcx,%rax
shl    $0x4,%rax
mov    %rcx,%rdx
sub    %rax,%rdx
add    %rcx,%rdx
lea    (%rdx,%r13,1),%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
shr    $0x3,%r10
lea    (%r10,%r10,4),%rax
lea    (%rax,%rax,2),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
mov    %r13d,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1140 <main+0x30>
shr    $0x4,%r9
mov    %r9,%rax
shl    $0x4,%rax
add    %r9,%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
and    $0xfffffffffffffffe,%r14
lea    (%r14,%r14,8),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
shr    $0x4,%r8
lea    (%r8,%r8,8),%rax
lea    (%r8,%rax,2),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
and    $0xfffffffffffffffc,%r11
lea    (%r11,%r11,4),%rax
neg    %rax
add    %r13,%rax
add    $0x9d8,%rax
cmp    $0x9d8,%rax
jne    1140 <main+0x30>
lea    0xbc1(%rip),%rdi
mov    %r13,%rsi
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 = [6 x i8] c"%llu\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i64 2520, i64* %6
br label %9
9: ; preds = %33, %2
%10 = load i64, i64* %6
%11 = icmp ult i64 %10, 999999999
br i1 %11, label %12, label %36
12: ; preds = %9
store i32 0, i32* %8
store i64 2, i64* %7
br label %13
13: ; preds = %23, %12
%14 = load i64, i64* %7
%15 = icmp ule i64 %14, 20
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load i64, i64* %6
%18 = load i64, i64* %7
%19 = urem i64 %17, %18
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 1, i32* %8
br label %26
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load i64, i64* %7
%25 = add i64 %24, 1
store i64 %25, i64* %7
br label %13
26: ; preds = %21, %13
%27 = load i32, i32* %8
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i64, i64* %6
%31 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %30)
br label %36
32: ; preds = %26
br label %33
33: ; preds = %32
%34 = load i64, i64* %6
%35 = add i64 %34, 1
store i64 %35, i64* %6
br label %9
36: ; preds = %29, %9
ret i32 0
}

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