#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 *, size_t);
int main(int argc, char const *argv[]) {
  char a = 0;
  for (size_t x = 2520; x < 99999999999999; x += 20) {
    for (size_t y = 2; y < 21; y++) {
      if (x % y != 0) {
        break;
      }
      if (y == 20) {
        a = 1;
      }
    }
    if (a == 1) {
      printf("%d\n", x);
      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)
movb   $0x0,-0x11(%rbp)
movq   $0x9d8,-0x20(%rbp)
movabs $0x5af3107a3fff,%rax
cmp    %rax,-0x20(%rbp)
jae    11d1 <main+0xc1>
movq   $0x2,-0x28(%rbp)
cmpq   $0x15,-0x28(%rbp)
jae    1199 <main+0x89>
mov    -0x20(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x28(%rbp)
cmp    $0x0,%rdx
je     1174 <main+0x64>
jmp    1199 <main+0x89>
cmpq   $0x14,-0x28(%rbp)
jne    1183 <main+0x73>
movb   $0x1,-0x11(%rbp)
jmp    1188 <main+0x78>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    114e <main+0x3e>
movsbl -0x11(%rbp),%eax
cmp    $0x1,%eax
jne    11bb <main+0xab>
mov    -0x20(%rbp),%rsi
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    11d1 <main+0xc1>
jmp    11c0 <main+0xb0>
mov    -0x20(%rbp),%rax
add    $0x14,%rax
mov    %rax,-0x20(%rbp)
jmp    1132 <main+0x22>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0x9d8,%r11d
xor    %ecx,%ecx
mov    $0x1,%r9d
movabs $0x5af3107a3feb,%r8
nopl   0x0(%rax,%rax,1)
mov    $0x2,%r10d
mov    $0x3,%edi
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rdi),%rsi
mov    %r11,%rax
or     %rsi,%rax
shr    $0x20,%rax
je     1160 <main+0x50>
mov    %r11,%rax
xor    %edx,%edx
div    %rsi
test   %rdx,%rdx
je     116c <main+0x5c>
jmp    11c0 <main+0xb0>
nop
mov    %r11d,%eax
xor    %edx,%edx
div    %esi
test   %rdx,%rdx
jne    11c0 <main+0xb0>
cmp    $0x15,%rdi
movzbl %cl,%ecx
cmove  %r9d,%ecx
mov    %r10,%rax
or     $0x1,%rax
cmp    $0x15,%rax
je     11c0 <main+0xb0>
mov    %r11,%rax
or     %rdi,%rax
shr    $0x20,%rax
je     11a0 <main+0x90>
mov    %r11,%rax
xor    %edx,%edx
div    %rdi
test   %rdx,%rdx
je     11ac <main+0x9c>
jmp    11c0 <main+0xb0>
nop
mov    %r11d,%eax
xor    %edx,%edx
div    %edi
test   %rdx,%rdx
jne    11c0 <main+0xb0>
add    $0x2,%r10
add    $0x2,%rdi
jmp    1140 <main+0x30>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x1,%cl
je     11d8 <main+0xc8>
lea    0x14(%r11),%rax
cmp    %r8,%r11
mov    %rax,%r11
jb     1130 <main+0x20>
xor    %eax,%eax
ret
push   %rax
lea    0xe20(%rip),%rdi
mov    %r11,%rsi
call   1030 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
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 i8
%7 = alloca i64
%8 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* %6
store i64 2520, i64* %7
br label %9
9: ; preds = %38, %2
%10 = load i64, i64* %7
%11 = icmp ult i64 %10, 99999999999999
br i1 %11, label %12, label %41
12: ; preds = %9
store i64 2, i64* %8
br label %13
13: ; preds = %27, %12
%14 = load i64, i64* %8
%15 = icmp ult i64 %14, 21
br i1 %15, label %16, label %30
16: ; preds = %13
%17 = load i64, i64* %7
%18 = load i64, i64* %8
%19 = urem i64 %17, %18
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
br label %30
22: ; preds = %16
%23 = load i64, i64* %8
%24 = icmp eq i64 %23, 20
br i1 %24, label %25, label %26
25: ; preds = %22
store i8 1, i8* %6
br label %26
26: ; preds = %25, %22
br label %27
27: ; preds = %26
%28 = load i64, i64* %8
%29 = add i64 %28, 1
store i64 %29, i64* %8
br label %13
30: ; preds = %21, %13
%31 = load i8, i8* %6
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i64, i64* %7
%36 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %35)
br label %41
37: ; preds = %30
br label %38
38: ; preds = %37
%39 = load i64, i64* %7
%40 = add i64 %39, 20
store i64 %40, i64* %7
br label %9
41: ; preds = %34, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %26
%4 = phi i64 [ 2520, %2 ], [ %27, %26 ]
%5 = phi i8 [ 0, %2 ], [ %22, %26 ]
br label %6
6: ; preds = %19, %3
%7 = phi i64 [ 2, %3 ], [ %20, %19 ]
%8 = phi i8 [ %5, %3 ], [ %13, %19 ]
%9 = urem i64 %4, %7
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %6
%12 = icmp eq i64 %7, 20
%13 = select i1 %12, i8 1, i8 %8
%14 = or i64 %7, 1
%15 = icmp eq i64 %14, 21
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = urem i64 %4, %14
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = add nuw nsw i64 %7, 2
br label %6
21: ; preds = %16, %6, %11
%22 = phi i8 [ %8, %6 ], [ %13, %11 ], [ %13, %16 ]
%23 = icmp eq i8 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %4)
br label %29
26: ; preds = %21
%27 = add nuw nsw i64 %4, 20
%28 = icmp ult i64 %4, 99999999999979
br i1 %28, label %3, label %29
29: ; preds = %26, %24
ret i32 0
}