#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 lcm(int, int);
int /*<<< orphan*/ printf(char *, long long);
void main() {
  long long value = lcm(
      20,
      lcm(19,
          lcm(18,
              lcm(17,
                  lcm(16,
                      lcm(15,
                          lcm(14,
                              lcm(13,
                                  lcm(12,
                                      lcm(11,
                                          lcm(10,
                                              lcm(9,
                                                  lcm(8,
                                                      lcm(7,
                                                          lcm(6,
                                                              lcm(5,
                                                                  lcm(4,
                                                                      lcm(3,
                                                                          lcm(2,
                                                                              1)))))))))))))))))));
  printf("%lld", value);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x2,%edi
mov    $0x1,%esi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x3,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x4,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x5,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x6,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x7,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x8,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x9,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xa,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xb,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xc,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xd,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xe,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0xf,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x10,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x11,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x12,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x13,%edi
call   1040 <lcm@plt>
mov    %eax,%esi
mov    $0x14,%edi
call   1040 <lcm@plt>
cltq
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xde0(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2,%edi
mov    $0x1,%esi
call   1040 <lcm@plt>
mov    $0x3,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x4,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x5,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x6,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x7,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x8,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x9,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xb,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xc,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xd,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xe,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0xf,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x10,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x11,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x12,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x13,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
mov    $0x14,%edi
mov    %eax,%esi
call   1040 <lcm@plt>
movslq %eax,%rsi
lea    0xdee(%rip),%rdi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"%lld\00"
define void @main() {
%1 = alloca i64
%2 = call i32 @lcm(i32 2, i32 1)
%3 = call i32 @lcm(i32 3, i32 %2)
%4 = call i32 @lcm(i32 4, i32 %3)
%5 = call i32 @lcm(i32 5, i32 %4)
%6 = call i32 @lcm(i32 6, i32 %5)
%7 = call i32 @lcm(i32 7, i32 %6)
%8 = call i32 @lcm(i32 8, i32 %7)
%9 = call i32 @lcm(i32 9, i32 %8)
%10 = call i32 @lcm(i32 10, i32 %9)
%11 = call i32 @lcm(i32 11, i32 %10)
%12 = call i32 @lcm(i32 12, i32 %11)
%13 = call i32 @lcm(i32 13, i32 %12)
%14 = call i32 @lcm(i32 14, i32 %13)
%15 = call i32 @lcm(i32 15, i32 %14)
%16 = call i32 @lcm(i32 16, i32 %15)
%17 = call i32 @lcm(i32 17, i32 %16)
%18 = call i32 @lcm(i32 18, i32 %17)
%19 = call i32 @lcm(i32 19, i32 %18)
%20 = call i32 @lcm(i32 20, i32 %19)
%21 = sext i32 %20 to i64
store i64 %21, i64* %1
%22 = load i64, i64* %1
%23 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %22)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
define void @main() {
%1 = tail call i32 @lcm(i32 2, i32 1)
%2 = tail call i32 @lcm(i32 3, i32 %1)
%3 = tail call i32 @lcm(i32 4, i32 %2)
%4 = tail call i32 @lcm(i32 5, i32 %3)
%5 = tail call i32 @lcm(i32 6, i32 %4)
%6 = tail call i32 @lcm(i32 7, i32 %5)
%7 = tail call i32 @lcm(i32 8, i32 %6)
%8 = tail call i32 @lcm(i32 9, i32 %7)
%9 = tail call i32 @lcm(i32 10, i32 %8)
%10 = tail call i32 @lcm(i32 11, i32 %9)
%11 = tail call i32 @lcm(i32 12, i32 %10)
%12 = tail call i32 @lcm(i32 13, i32 %11)
%13 = tail call i32 @lcm(i32 14, i32 %12)
%14 = tail call i32 @lcm(i32 15, i32 %13)
%15 = tail call i32 @lcm(i32 16, i32 %14)
%16 = tail call i32 @lcm(i32 17, i32 %15)
%17 = tail call i32 @lcm(i32 18, i32 %16)
%18 = tail call i32 @lcm(i32 19, i32 %17)
%19 = tail call i32 @lcm(i32 20, i32 %18)
%20 = sext i32 %19 to i64
%21 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %20)
ret void
}