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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xb,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0xd,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0xe,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0x12,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0x13,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    121b <main+0x10b>
mov    -0x8(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
xor    $0xff,%al
test   $0x1,%al
jne    122d <main+0x11d>
jmp    123b <main+0x12b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x8(%rbp),%esi
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%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
mov    $0x1,%r13d
xor    %esi,%esi
mov    $0x92492493,%r14d
mov    $0xaaaaaaab,%r15d
mov    $0xba2e8ba3,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13d,%ecx
mov    %esi,%r11d
mov    %r13d,%r10d
lea    0x1(%r11),%esi
mov    %r13d,%eax
shr    %eax
imul   %r14,%rax
shr    $0x22,%rax
mov    %eax,%r8d
shl    $0x4,%r8d
sub    %eax,%r8d
imul   $0x4ec4ec4f,%r10,%rbp
shr    $0x22,%rbp
mov    %r10,%rdx
imul   %r15,%rdx
shr    $0x23,%rdx
shl    $0x2,%edx
lea    (%rdx,%rdx,2),%edx
mov    %r10,%rdi
imul   %r12,%rdi
shr    $0x23,%rdi
lea    (%rdi,%rdi,4),%ebx
lea    (%rdi,%rbx,2),%edi
neg    %edi
add    %r11d,%edi
add    $0x1,%edi
neg    %edx
add    %r11d,%edx
add    $0x1,%edx
lea    0x1(%rcx),%r13d
or     %edi,%edx
jne    1140 <main+0x30>
mov    %r10,%rbx
mov    $0xaf286bcb,%edx
imul   %rdx,%rbx
mov    %r10,%r9
mov    $0x88888889,%edx
imul   %rdx,%r9
not    %eax
add    %r8d,%eax
lea    0x0(%rbp,%rbp,2),%edx
lea    -0x1(%rbp,%rdx,4),%edx
cmp    %r11d,%edx
jne    1140 <main+0x30>
shr    $0x20,%rbx
mov    %r10,%rdi
mov    $0xf0f0f0f1,%edx
imul   %rdx,%rdi
shr    $0x23,%r9
cmp    %r11d,%eax
jne    1140 <main+0x30>
sub    %ebx,%ecx
shr    $0x24,%rdi
lea    (%r9,%r9,4),%eax
lea    (%rax,%rax,2),%eax
add    $0xffffffff,%eax
mov    %esi,%ebp
and    $0xf,%ebp
cmp    %r11d,%eax
jne    1140 <main+0x30>
shr    %ecx
imul   $0x38e38e39,%r10,%rax
mov    %edi,%edx
shl    $0x4,%edx
test   %ebp,%ebp
jne    1140 <main+0x30>
add    %ebx,%ecx
shr    $0x22,%rax
add    %edi,%edx
add    $0xffffffff,%edx
cmp    %r11d,%edx
jne    1140 <main+0x30>
mov    $0xcccccccd,%edx
imul   %rdx,%r10
shr    $0x4,%ecx
lea    (%rax,%rax,8),%eax
add    %eax,%eax
add    $0xffffffff,%eax
cmp    %r11d,%eax
jne    1140 <main+0x30>
shr    $0x24,%r10
lea    (%rcx,%rcx,8),%eax
lea    (%rcx,%rax,2),%eax
add    $0xffffffff,%eax
cmp    %r11d,%eax
jne    1140 <main+0x30>
lea    (%r10,%r10,4),%eax
lea    -0x1(,%rax,4),%eax
cmp    %r11d,%eax
jne    1140 <main+0x30>
lea    0xd76(%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 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %46, %0
%4 = load i32, i32* %2
%5 = srem i32 %4, 11
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %43
7: ; preds = %3
%8 = load i32, i32* %2
%9 = srem i32 %8, 12
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %43
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 %43
15: ; preds = %11
%16 = load i32, i32* %2
%17 = srem i32 %16, 14
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %43
19: ; preds = %15
%20 = load i32, i32* %2
%21 = srem i32 %20, 15
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %43
23: ; preds = %19
%24 = load i32, i32* %2
%25 = srem i32 %24, 16
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %23
%28 = load i32, i32* %2
%29 = srem i32 %28, 17
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %43
31: ; preds = %27
%32 = load i32, i32* %2
%33 = srem i32 %32, 18
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load i32, i32* %2
%37 = srem i32 %36, 19
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load i32, i32* %2
%41 = srem i32 %40, 20
%42 = icmp eq i32 %41, 0
br label %43
43: ; preds = %39, %35, %31, %27, %23, %19, %15, %11, %7, %3
%44 = phi i1 [ false, %35 ], [ false, %31 ], [ false, %27 ], [ false, %23 ], [ false, %19 ], [ false, %15 ], [ false, %11 ], [ false, %7 ], [ false, %3 ], [ %42, %39 ]
%45 = xor i1 %44, true
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 1
store i32 %48, i32* %2
br label %3
49: ; preds = %43
%50 = load i32, i32* %2
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %1
ret i32 %52
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 1, %0 ], [ %31, %1 ]
%3 = urem i32 %2, 11
%4 = urem i32 %2, 12
%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, 14
%11 = icmp eq i32 %10, 0
%12 = select i1 %9, i1 %11, i1 false
%13 = urem i32 %2, 15
%14 = icmp eq i32 %13, 0
%15 = select i1 %12, i1 %14, i1 false
%16 = and i32 %2, 15
%17 = icmp eq i32 %16, 0
%18 = select i1 %15, i1 %17, i1 false
%19 = urem i32 %2, 17
%20 = icmp eq i32 %19, 0
%21 = select i1 %18, i1 %20, i1 false
%22 = urem i32 %2, 18
%23 = icmp eq i32 %22, 0
%24 = select i1 %21, i1 %23, i1 false
%25 = urem i32 %2, 19
%26 = icmp eq i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
%28 = urem i32 %2, 20
%29 = icmp eq i32 %28, 0
%30 = select i1 %27, i1 %29, i1 false
%31 = add nuw nsw i32 %2, 1
br i1 %30, label %32, label %1
32: ; preds = %1
%33 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}