#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(void) {
  int testnum = 2520;
  while (1) {
    if (testnum % 17 == 0 && testnum % 19 == 0 && testnum % 13 == 0 &&
        testnum % 11 == 0 && testnum % 12 == 0 && testnum % 14 == 0 &&
        testnum % 15 == 0 && testnum % 16 == 0 && testnum % 18 == 0 &&
        testnum % 20 == 0) {
      printf("%d\n", testnum);
      return 0;
    }
    testnum = testnum + 2520;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x9d8,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0x13,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0xd,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0xb,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0xe,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0x12,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%esi
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%eax
add    $0x9d8,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x9d8,%r11d
xor    %esi,%esi
mov    $0xba2e8ba3,%r8d
mov    $0xaf286bcb,%r9d
mov    $0xf0f0f0f1,%r10d
xchg   %ax,%ax
mov    %esi,%r14d
lea    0x9d8(%r14),%esi
mov    %r11d,%edx
mov    %rdx,%rax
imul   %r8,%rax
imul   $0x4ec4ec4f,%rdx,%rdi
shr    $0x22,%rdi
mov    %rdx,%rbx
imul   %r9,%rbx
shr    $0x20,%rbx
mov    %r11d,%ecx
sub    %ebx,%ecx
shr    %ecx
add    %ebx,%ecx
shr    $0x4,%ecx
lea    (%rcx,%rcx,8),%ebx
lea    (%rcx,%rbx,2),%ecx
imul   %r10,%rdx
shr    $0x24,%rdx
mov    %edx,%ebx
shl    $0x4,%ebx
add    %edx,%ebx
neg    %ebx
lea    (%r14,%rbx,1),%edx
add    $0x9d8,%edx
neg    %ecx
add    %r14d,%ecx
add    $0x9d8,%ecx
add    $0x9d8,%r11d
or     %edx,%ecx
jne    1130 <main+0x20>
shr    $0x23,%rax
lea    (%rdi,%rdi,2),%ecx
lea    (%rdi,%rcx,4),%ecx
add    $0xfffff628,%ecx
cmp    %r14d,%ecx
jne    1130 <main+0x20>
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,2),%ecx
add    $0xfffff628,%ecx
mov    %esi,%eax
and    $0x8,%eax
cmp    %r14d,%ecx
jne    1130 <main+0x20>
test   %eax,%eax
jne    1130 <main+0x20>
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

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