#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 = 20;
  while (i % 2 != 0 || i % 3 != 0 || i % 4 != 0 || i % 5 != 0 || i % 6 != 0 ||
         i % 7 != 0 || i % 8 != 0 || i % 9 != 0 || i % 10 != 0 || i % 11 != 0 ||
         i % 12 != 0 || i % 13 != 0 || i % 14 != 0 || i % 15 != 0 ||
         i % 16 != 0 || i % 17 != 0 || i % 18 != 0 || i % 19 != 0 ||
         i % 20 != 0) {
    i += 20;
  }
  printf("%d\n", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x9,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xb,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xd,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xe,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x11,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x12,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x13,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x9(%rbp)
jne    12fc <main+0x1ec>
mov    -0x8(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    130c <main+0x1fc>
jmp    131a <main+0x20a>
mov    -0x8(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x8(%rbp),%esi
lea    0xcdc(%rip),%rdi
call   1030 <printf@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,%r12d
xor    %esi,%esi
mov    $0xba2e8ba3,%r15d
nopl   0x0(%rax)
mov    %r12d,%r11d
mov    %esi,%r10d
mov    %r12d,%r9d
lea    0x14(%r10),%esi
mov    %r12d,%edx
shr    %edx
mov    %r9,%r14
mov    $0xaaaaaaab,%eax
imul   %rax,%r14
imul   $0x24924925,%r9,%rcx
shr    $0x20,%rcx
mov    %r12d,%edi
sub    %ecx,%edi
shr    %edi
add    %ecx,%edi
shr    $0x2,%edi
lea    0x0(,%rdi,8),%ecx
sub    %edi,%ecx
add    $0xffffffec,%ecx
mov    %r14,%rdi
shr    $0x22,%rdi
add    %edi,%edi
lea    (%rdi,%rdi,2),%edi
mov    %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
neg    %eax
add    %r10d,%eax
add    $0x14,%eax
neg    %edi
add    %r10d,%edi
add    $0x14,%edi
lea    0x14(%r11),%r12d
or     %eax,%edi
jne    1130 <main+0x20>
mov    $0x92492493,%eax
imul   %rax,%rdx
imul   $0x38e38e39,%r9,%r13
mov    %esi,%ebp
and    $0x4,%ebp
cmp    %r10d,%ecx
jne    1130 <main+0x20>
shr    $0x22,%rdx
mov    %r9,%rbx
imul   %r15,%rbx
mov    %r13,%rdi
shr    $0x21,%rdi
test   %ebp,%ebp
jne    1130 <main+0x20>
mov    %edx,%ecx
shl    $0x4,%ecx
shr    $0x23,%rbx
lea    (%rdi,%rdi,8),%eax
add    $0xffffffec,%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
sub    %edx,%ecx
imul   $0x4ec4ec4f,%r9,%r8
shr    $0x23,%r14
lea    (%rbx,%rbx,4),%eax
lea    (%rbx,%rax,2),%eax
add    $0xffffffec,%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
sub    %edx,%ecx
shr    $0x22,%r8
lea    (%r14,%r14,2),%eax
lea    -0x14(,%rax,4),%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
mov    %r9,%rax
mov    $0xaf286bcb,%edx
imul   %rdx,%rax
mov    %r9,%rdx
mov    $0x88888889,%edi
imul   %rdi,%rdx
add    $0xffffffec,%ecx
lea    (%r8,%r8,2),%edi
lea    (%r8,%rdi,4),%edi
add    $0xffffffec,%edi
cmp    %r10d,%edi
jne    1130 <main+0x20>
shr    $0x20,%rax
mov    $0xf0f0f0f1,%edi
imul   %rdi,%r9
shr    $0x23,%rdx
cmp    %r10d,%ecx
jne    1130 <main+0x20>
sub    %eax,%r11d
shr    $0x24,%r9
lea    (%rdx,%rdx,4),%ecx
lea    (%rcx,%rcx,2),%ecx
add    $0xffffffec,%ecx
mov    %esi,%edx
and    $0xc,%edx
cmp    %r10d,%ecx
jne    1130 <main+0x20>
shr    %r11d
mov    %r9d,%ecx
shl    $0x4,%ecx
test   %edx,%edx
jne    1130 <main+0x20>
add    %eax,%r11d
shr    $0x22,%r13
lea    (%r9,%rcx,1),%eax
add    $0xffffffec,%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
shr    $0x4,%r11d
lea    0x0(%r13,%r13,8),%eax
add    %eax,%eax
add    $0xffffffec,%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
lea    (%r11,%r11,8),%eax
lea    (%r11,%rax,2),%eax
add    $0xffffffec,%eax
cmp    %r10d,%eax
jne    1130 <main+0x20>
lea    0xd17(%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 20, i32* %2
br label %3
3: ; preds = %81, %0
%4 = load i32, i32* %2
%5 = srem i32 %4, 2
%6 = icmp ne i32 %5, 0
br i1 %6, label %79, label %7
7: ; preds = %3
%8 = load i32, i32* %2
%9 = srem i32 %8, 3
%10 = icmp ne i32 %9, 0
br i1 %10, label %79, label %11
11: ; preds = %7
%12 = load i32, i32* %2
%13 = srem i32 %12, 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %79, label %15
15: ; preds = %11
%16 = load i32, i32* %2
%17 = srem i32 %16, 5
%18 = icmp ne i32 %17, 0
br i1 %18, label %79, label %19
19: ; preds = %15
%20 = load i32, i32* %2
%21 = srem i32 %20, 6
%22 = icmp ne i32 %21, 0
br i1 %22, label %79, label %23
23: ; preds = %19
%24 = load i32, i32* %2
%25 = srem i32 %24, 7
%26 = icmp ne i32 %25, 0
br i1 %26, label %79, label %27
27: ; preds = %23
%28 = load i32, i32* %2
%29 = srem i32 %28, 8
%30 = icmp ne i32 %29, 0
br i1 %30, label %79, label %31
31: ; preds = %27
%32 = load i32, i32* %2
%33 = srem i32 %32, 9
%34 = icmp ne i32 %33, 0
br i1 %34, label %79, label %35
35: ; preds = %31
%36 = load i32, i32* %2
%37 = srem i32 %36, 10
%38 = icmp ne i32 %37, 0
br i1 %38, label %79, label %39
39: ; preds = %35
%40 = load i32, i32* %2
%41 = srem i32 %40, 11
%42 = icmp ne i32 %41, 0
br i1 %42, label %79, label %43
43: ; preds = %39
%44 = load i32, i32* %2
%45 = srem i32 %44, 12
%46 = icmp ne i32 %45, 0
br i1 %46, label %79, label %47
47: ; preds = %43
%48 = load i32, i32* %2
%49 = srem i32 %48, 13
%50 = icmp ne i32 %49, 0
br i1 %50, label %79, label %51
51: ; preds = %47
%52 = load i32, i32* %2
%53 = srem i32 %52, 14
%54 = icmp ne i32 %53, 0
br i1 %54, label %79, label %55
55: ; preds = %51
%56 = load i32, i32* %2
%57 = srem i32 %56, 15
%58 = icmp ne i32 %57, 0
br i1 %58, label %79, label %59
59: ; preds = %55
%60 = load i32, i32* %2
%61 = srem i32 %60, 16
%62 = icmp ne i32 %61, 0
br i1 %62, label %79, label %63
63: ; preds = %59
%64 = load i32, i32* %2
%65 = srem i32 %64, 17
%66 = icmp ne i32 %65, 0
br i1 %66, label %79, label %67
67: ; preds = %63
%68 = load i32, i32* %2
%69 = srem i32 %68, 18
%70 = icmp ne i32 %69, 0
br i1 %70, label %79, label %71
71: ; preds = %67
%72 = load i32, i32* %2
%73 = srem i32 %72, 19
%74 = icmp ne i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %71
%76 = load i32, i32* %2
%77 = srem i32 %76, 20
%78 = icmp ne i32 %77, 0
br label %79
79: ; preds = %75, %71, %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %11, %7, %3
%80 = phi i1 [ true, %71 ], [ true, %67 ], [ true, %63 ], [ true, %59 ], [ true, %55 ], [ true, %51 ], [ true, %47 ], [ true, %43 ], [ true, %39 ], [ true, %35 ], [ true, %31 ], [ true, %27 ], [ true, %23 ], [ true, %19 ], [ true, %15 ], [ true, %11 ], [ true, %7 ], [ true, %3 ], [ %78, %75 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load i32, i32* %2
%83 = add nsw i32 %82, 20
store i32 %83, i32* %2
br label %3
84: ; preds = %79
%85 = load i32, i32* %2
%86 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %85)
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 ], [ %43, %1 ]
%3 = urem i32 %2, 3
%4 = urem i32 %2, 6
%5 = or i32 %3, %4
%6 = icmp eq i32 %5, 0
%7 = urem i32 %2, 7
%8 = icmp eq i32 %7, 0
%9 = select i1 %6, i1 %8, i1 false
%10 = and i32 %2, 4
%11 = icmp eq i32 %10, 0
%12 = select i1 %9, i1 %11, i1 false
%13 = urem i32 %2, 9
%14 = icmp eq i32 %13, 0
%15 = select i1 %12, i1 %14, i1 false
%16 = urem i32 %2, 11
%17 = icmp eq i32 %16, 0
%18 = select i1 %15, i1 %17, i1 false
%19 = urem i32 %2, 12
%20 = icmp eq i32 %19, 0
%21 = select i1 %18, i1 %20, i1 false
%22 = urem i32 %2, 13
%23 = icmp eq i32 %22, 0
%24 = select i1 %21, i1 %23, i1 false
%25 = urem i32 %2, 14
%26 = icmp eq i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
%28 = urem i32 %2, 15
%29 = icmp eq i32 %28, 0
%30 = select i1 %27, i1 %29, i1 false
%31 = and i32 %2, 12
%32 = icmp eq i32 %31, 0
%33 = select i1 %30, i1 %32, i1 false
%34 = urem i32 %2, 17
%35 = icmp eq i32 %34, 0
%36 = select i1 %33, i1 %35, i1 false
%37 = urem i32 %2, 18
%38 = icmp eq i32 %37, 0
%39 = select i1 %36, i1 %38, i1 false
%40 = urem i32 %2, 19
%41 = icmp eq i32 %40, 0
%42 = select i1 %39, i1 %41, i1 false
%43 = add nuw nsw i32 %2, 20
br i1 %42, label %44, label %1
44: ; preds = %1
%45 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}