#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 /*<<< orphan*/ system(char *);
int main(void) {
  int numCheck = 20;
  int satisfies = 0;
  while (satisfies == 0) {
    for (int i = 11; i < 20 + 1; i++) {
      if (numCheck % i != 0) {
        numCheck += 20;
        printf("%d\n", numCheck);
        break;
      }
      if (i == 20 && numCheck % 20 == 0) {
        satisfies = 1;
      }
    }
  }
  printf("The number is %d.\n", numCheck);
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    11c2 <main+0xa2>
movl   $0xb,-0x10(%rbp)
cmpl   $0x15,-0x10(%rbp)
jge    11bd <main+0x9d>
mov    -0x8(%rbp),%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
je     1185 <main+0x65>
mov    -0x8(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe85(%rip),%rdi
call   1040 <printf@plt>
jmp    11bd <main+0x9d>
cmpl   $0x14,-0x10(%rbp)
jne    11aa <main+0x8a>
mov    -0x8(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11aa <main+0x8a>
movl   $0x1,-0xc(%rbp)
jmp    11af <main+0x8f>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    114e <main+0x2e>
jmp    113d <main+0x1d>
mov    -0x8(%rbp),%esi
lea    0xe38(%rip),%rdi
call   1040 <printf@plt>
lea    0xe3f(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%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    $0x14,%ebx
mov    $0xaaaaaaab,%r15d
mov    $0xba2e8ba3,%r12d
mov    $0xcccccccd,%r13d
lea    0xeb7(%rip),%r14
nopl   0x0(%rax)
mov    %ebx,%esi
mov    %rsi,%rcx
mov    $0xaf286bcb,%eax
imul   %rax,%rcx
shr    $0x20,%rcx
mov    %ebx,%eax
sub    %ecx,%eax
shr    %eax
add    %ecx,%eax
imul   $0x38e38e39,%rsi,%r8
mov    %rsi,%rdi
mov    $0xf0f0f0f1,%ecx
imul   %rcx,%rdi
shr    $0x24,%rdi
mov    %edi,%r10d
shl    $0x4,%r10d
add    %edi,%r10d
mov    %rsi,%rdi
mov    $0x88888889,%ecx
imul   %rcx,%rdi
shr    $0x23,%rdi
mov    %edi,%ebp
shl    $0x4,%ebp
sub    %ebp,%edi
imul   $0x4ec4ec4f,%rsi,%r11
mov    %rsi,%rdx
imul   %r15,%rdx
shr    $0x23,%rdx
shl    $0x2,%edx
lea    (%rdx,%rdx,2),%r9d
mov    %rsi,%rcx
imul   %r13,%rsi
shr    $0x24,%rsi
shl    $0x2,%esi
lea    (%rsi,%rsi,4),%esi
mov    %ebx,%edx
sub    %esi,%edx
mov    %ebx,%esi
sub    %r9d,%esi
imul   %r12,%rcx
shr    $0x23,%rcx
imul   $0xfffffff5,%ecx,%ecx
add    %ebx,%ecx
or     %ecx,%esi
mov    %ebx,%ecx
shr    %ecx
mov    $0x92492493,%ebp
imul   %rbp,%rcx
shr    $0x22,%rcx
imul   $0xfffffff2,%ecx,%ecx
shr    $0x22,%r11
imul   $0xfffffff3,%r11d,%ebp
add    %ebx,%ebp
add    %ebx,%ecx
or     %ebp,%ecx
or     %esi,%ecx
add    %ebx,%edi
mov    %ebx,%esi
and    $0xc,%esi
or     %edi,%esi
mov    %ebx,%edi
sub    %r10d,%edi
shr    $0x22,%r8
add    %r8d,%r8d
lea    (%r8,%r8,8),%ebp
or     %esi,%edi
mov    %ebx,%esi
sub    %ebp,%esi
or     %edi,%esi
or     %ecx,%esi
shr    $0x4,%eax
imul   $0xffffffed,%eax,%eax
add    %ebx,%eax
or     %esi,%eax
or     %edx,%eax
je     124b <main+0x12b>
add    $0x14,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
jmp    1150 <main+0x30>
lea    0xdb2(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
lea    0xdb7(%rip),%rdi
call   1030 <system@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"
@.str.1 = [19 x i8] c"The number is %d.\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 20, i32* %2
store i32 0, i32* %3
br label %5
5: ; preds = %34, %0
%6 = load i32, i32* %3
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %35
8: ; preds = %5
store i32 11, i32* %4
br label %9
9: ; preds = %31, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 21
br i1 %11, label %12, label %34
12: ; preds = %9
%13 = load i32, i32* %2
%14 = load i32, i32* %4
%15 = srem i32 %13, %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 20
store i32 %19, i32* %2
%20 = load i32, i32* %2
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %20)
br label %34
22: ; preds = %12
%23 = load i32, i32* %4
%24 = icmp eq i32 %23, 20
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load i32, i32* %2
%27 = srem i32 %26, 20
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, i32* %3
br label %30
30: ; preds = %29, %25, %22
br label %31
31: ; preds = %30
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %9
34: ; preds = %17, %9
br label %5
35: ; preds = %5
%36 = load i32, i32* %2
%37 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

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