#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 argc, char *argv[]) {
  int i, j;
  int nnn = 1;
  int mul = 0;
  for (j = 1; nnn; ++j) {
    nnn = 0;
    for (i = 1; i <= 20; ++i) {
      if (j % i) {
        nnn = 1;
        break;
      }
    }
    if (!nnn)
      mul = j;
  }
  printf("%d\n", mul);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x18(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     11af <main+0x9f>
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jg     118c <main+0x7c>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
je     1179 <main+0x69>
movl   $0x1,-0x1c(%rbp)
jmp    118c <main+0x7c>
jmp    117e <main+0x6e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1153 <main+0x43>
cmpl   $0x0,-0x1c(%rbp)
jne    119c <main+0x8c>
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    11a1 <main+0x91>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113b <main+0x2b>
mov    -0x20(%rbp),%esi
lea    0xe47(%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    $0x1,%r13d
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13d,%r8d
mov    %esi,%r12d
mov    %r13d,%eax
mov    %rax,%r11
mov    $0xcccccccd,%ecx
imul   %rcx,%r11
lea    0x1(%r12),%esi
mov    %rax,%r15
mov    $0xaaaaaaab,%ecx
imul   %rcx,%r15
imul   $0x24924925,%rax,%rcx
shr    $0x20,%rcx
mov    %r13d,%edx
sub    %ecx,%edx
mov    %r15,%rbp
shr    $0x21,%rbp
lea    0x0(%rbp,%rbp,2),%ebp
mov    %esi,%ebx
and    $0x1,%ebx
neg    %ebp
lea    (%r12,%rbp,1),%edi
add    $0x1,%edi
mov    %esi,%ebp
and    $0x3,%ebp
lea    0x1(%r8),%r13d
or     %ebx,%edi
jne    1130 <main+0x20>
shr    %edx
mov    %r11,%rbx
shr    $0x22,%rbx
test   %ebp,%ebp
jne    1130 <main+0x20>
add    %ecx,%edx
mov    %r15,%rcx
shr    $0x22,%rcx
lea    (%rbx,%rbx,4),%edi
add    $0xffffffff,%edi
cmp    %r12d,%edi
jne    1130 <main+0x20>
shr    $0x2,%edx
lea    (%rcx,%rcx,2),%ecx
add    %ecx,%ecx
add    $0xffffffff,%ecx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
imul   $0x38e38e39,%rax,%r14
mov    %edx,%ecx
not    %ecx
lea    (%rcx,%rdx,8),%edx
mov    %esi,%ecx
and    $0x7,%ecx
cmp    %r12d,%edx
jne    1130 <main+0x20>
mov    %r8d,%edx
shr    %edx
mov    %r14,%rbp
shr    $0x21,%rbp
test   %ecx,%ecx
jne    1130 <main+0x20>
mov    $0x92492493,%ecx
imul   %rcx,%rdx
mov    %rax,%rbx
mov    $0xba2e8ba3,%ecx
imul   %rcx,%rbx
mov    %r11,%rcx
shr    $0x23,%rcx
lea    -0x1(%rbp,%rbp,8),%edi
cmp    %r12d,%edi
jne    1130 <main+0x20>
shr    $0x22,%rdx
shr    $0x23,%rbx
lea    (%rcx,%rcx,4),%ecx
add    %ecx,%ecx
add    $0xffffffff,%ecx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
mov    %edx,%r10d
shl    $0x4,%r10d
imul   $0x4ec4ec4f,%rax,%r9
shr    $0x23,%r15
lea    (%rbx,%rbx,4),%ecx
lea    (%rbx,%rcx,2),%ecx
add    $0xffffffff,%ecx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
sub    %edx,%r10d
shr    $0x22,%r9
lea    (%r15,%r15,2),%ecx
lea    -0x1(,%rcx,4),%ecx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
mov    %rax,%rbp
mov    $0xaf286bcb,%ecx
imul   %rcx,%rbp
mov    %rax,%rbx
mov    $0x88888889,%ecx
imul   %rcx,%rbx
not    %edx
add    %r10d,%edx
lea    (%r9,%r9,2),%ecx
lea    (%r9,%rcx,4),%ecx
add    $0xffffffff,%ecx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
shr    $0x20,%rbp
mov    $0xf0f0f0f1,%ecx
imul   %rcx,%rax
shr    $0x23,%rbx
cmp    %r12d,%edx
jne    1130 <main+0x20>
sub    %ebp,%r8d
shr    $0x24,%rax
lea    (%rbx,%rbx,4),%ecx
lea    (%rcx,%rcx,2),%ecx
add    $0xffffffff,%ecx
mov    %esi,%edx
and    $0xf,%edx
cmp    %r12d,%ecx
jne    1130 <main+0x20>
shr    %r8d
mov    %eax,%ecx
shl    $0x4,%ecx
test   %edx,%edx
jne    1130 <main+0x20>
add    %ebp,%r8d
shr    $0x22,%r14
add    %ecx,%eax
add    $0xffffffff,%eax
cmp    %r12d,%eax
jne    1130 <main+0x20>
shr    $0x4,%r8d
lea    (%r14,%r14,8),%eax
add    %eax,%eax
add    $0xffffffff,%eax
cmp    %r12d,%eax
jne    1130 <main+0x20>
shr    $0x24,%r11
lea    (%r8,%r8,8),%eax
lea    (%r8,%rax,2),%eax
add    $0xffffffff,%eax
cmp    %r12d,%eax
jne    1130 <main+0x20>
lea    (%r11,%r11,4),%eax
lea    -0x1(,%rax,4),%eax
cmp    %r12d,%eax
jne    1130 <main+0x20>
lea    0xcb7(%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(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %8
store i32 0, i32* %9
store i32 1, i32* %7
br label %10
10: ; preds = %33, %2
%11 = load i32, i32* %8
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %36
13: ; preds = %10
store i32 0, i32* %8
store i32 1, i32* %6
br label %14
14: ; preds = %24, %13
%15 = load i32, i32* %6
%16 = icmp sle i32 %15, 20
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, i32* %7
%19 = load i32, i32* %6
%20 = srem i32 %18, %19
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %17
store i32 1, i32* %8
br label %27
23: ; preds = %17
br label %24
24: ; preds = %23
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
br label %14
27: ; preds = %22, %14
%28 = load i32, i32* %8
%29 = icmp ne i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %27
%31 = load i32, i32* %7
store i32 %31, i32* %9
br label %32
32: ; preds = %30, %27
br label %33
33: ; preds = %32
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %10
36: ; preds = %10
%37 = load i32, i32* %9
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %37)
ret i32 0
}

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