#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;
  int answer;
  int found = 0;
  int cur = 20;
  while (!found) {
    cur++;
    found = 1;
    for (i = 1; i <= 20; i++) {
      if ((cur % i) != 0) {
        found = 0;
        break;
      }
    }
  }
  printf("%d\n", cur);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x14,-0x14(%rbp)
cmpl   $0x0,-0x10(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1143 <main+0x33>
jmp    1198 <main+0x88>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x14,-0x8(%rbp)
jg     1193 <main+0x83>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cmp    $0x0,%edx
je     1180 <main+0x70>
movl   $0x0,-0x10(%rbp)
jmp    1193 <main+0x83>
jmp    1185 <main+0x75>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    115a <main+0x4a>
jmp    112d <main+0x1d>
mov    -0x14(%rbp),%esi
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x14,%esi
movl   $0x15,0x4(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %esi,%r12d
mov    0x4(%rsp),%eax
mov    %eax,%r8d
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    $0x15,%edx
cmp    $0x14,%edx
jne    1130 <main+0x20>
imul   $0x38e38e39,%r9,%r11
sub    %edi,%ecx
add    %r12d,%eax
add    $0x15,%eax
cmp    $0x14,%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    $0x15,%ecx
cmp    $0x14,%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    $0x15,%edx
cmp    $0x14,%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    $0x15,%eax
cmp    $0x14,%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    $0x15,%edx
cmp    $0x14,%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    $0x15,%eax
cmp    $0x14,%eax
jne    1130 <main+0x20>
shr    $0x20,%rbx
shr    $0x24,%rbp
shr    $0x23,%r9
add    %r14d,%ecx
lea    (%r12,%rdi,1),%eax
add    $0x15,%eax
cmp    $0x14,%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    $0x15,%ecx
cmp    $0x14,%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    $0x15,%ecx
cmp    $0x14,%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    $0x15,%ecx
cmp    $0x14,%ecx
jne    1130 <main+0x20>
shl    $0x2,%r13d
lea    (%r8,%r8,8),%ecx
lea    (%r8,%rcx,2),%ecx
neg    %ecx
add    %r12d,%eax
add    $0x15,%eax
cmp    $0x14,%eax
jne    1130 <main+0x20>
lea    0x0(%r13,%r13,4),%eax
neg    %eax
add    %r12d,%ecx
add    $0x15,%ecx
cmp    $0x14,%ecx
jne    1130 <main+0x20>
add    %r12d,%eax
add    $0x15,%eax
cmp    $0x14,%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 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 20, i32* %5
br label %6
6: ; preds = %26, %0
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
br i1 %9, label %10, label %27
10: ; preds = %6
%11 = load i32, i32* %5
%12 = add nsw i32 %11, 1
store i32 %12, i32* %5
store i32 1, i32* %4
store i32 1, i32* %2
br label %13
13: ; preds = %23, %10
%14 = load i32, i32* %2
%15 = icmp sle i32 %14, 20
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load i32, i32* %5
%18 = load i32, i32* %2
%19 = srem i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 0, i32* %4
br label %26
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %13
26: ; preds = %21, %13
br label %6
27: ; preds = %6
%28 = load i32, i32* %5
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %28)
ret i32 0
}

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