#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 */
scalar_t__ _ackermann(long, long);
int /*<<< orphan*/ _domath(long);
int /*<<< orphan*/ _objinstantiation(long);
int /*<<< orphan*/ _tailrecursive(long);
int /*<<< orphan*/ printf(char *, long);
int /*<<< orphan*/ scanf(char *, long *);
long _main() {
  long EV_a;
  long EV_b;
  long EV_c;
  long EV_d;
  long EV_e;
  scanf("%ld", &EV_a);
  scanf("%ld", &EV_b);
  scanf("%ld", &EV_c);
  scanf("%ld", &EV_d);
  scanf("%ld", &EV_e);
  _tailrecursive(EV_a);
  printf("%ld\n", (long)EV_a);
  _domath(EV_b);
  printf("%ld\n", (long)EV_b);
  _objinstantiation(EV_c);
  printf("%ld\n", (long)EV_c);
  printf("%ld\n", (long)_ackermann(EV_d, EV_e));
  return 0;
}


x86 assembly (clang, -O0):
<_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xe91(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe81(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe71(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe61(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xe51(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <_tailrecursive@plt>
mov    -0x8(%rbp),%rsi
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1080 <_domath@plt>
mov    -0x10(%rbp),%rsi
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1070 <_objinstantiation@plt>
mov    -0x18(%rbp),%rsi
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <_ackermann@plt>
mov    %rax,%rsi
lea    0xdea(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_main>:
push   %rbx
sub    $0x30,%rsp
lea    0xe94(%rip),%rbx
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    0x18(%rsp),%rdi
call   1050 <_tailrecursive@plt>
mov    0x18(%rsp),%rsi
lea    0xe41(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x10(%rsp),%rdi
call   1080 <_domath@plt>
mov    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x8(%rsp),%rdi
call   1070 <_objinstantiation@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rsi
call   1040 <_ackermann@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
define i64 @_main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %1)
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %2)
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %3)
%9 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %4)
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %5)
%11 = load i64, i64* %1
%12 = call i32 @_tailrecursive(i64 %11)
%13 = load i64, i64* %1
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %13)
%15 = load i64, i64* %2
%16 = call i32 @_domath(i64 %15)
%17 = load i64, i64* %2
%18 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %17)
%19 = load i64, i64* %3
%20 = call i32 @_objinstantiation(i64 %19)
%21 = load i64, i64* %3
%22 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %21)
%23 = load i64, i64* %4
%24 = load i64, i64* %5
%25 = call i64 @_ackermann(i64 %23, i64 %24)
%26 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %25)
ret i64 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
define i64 @_main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = bitcast i64* %1 to i8*
%7 = bitcast i64* %2 to i8*
%8 = bitcast i64* %3 to i8*
%9 = bitcast i64* %4 to i8*
%10 = bitcast i64* %5 to i8*
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %1)
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %2)
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %3)
%14 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %4)
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %5)
%16 = load i64, i64* %1
%17 = call i32 @_tailrecursive(i64 %16)
%18 = load i64, i64* %1
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %18)
%20 = load i64, i64* %2
%21 = call i32 @_domath(i64 %20)
%22 = load i64, i64* %2
%23 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %22)
%24 = load i64, i64* %3
%25 = call i32 @_objinstantiation(i64 %24)
%26 = load i64, i64* %3
%27 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %26)
%28 = load i64, i64* %4
%29 = load i64, i64* %5
%30 = call i64 @_ackermann(i64 %28, i64 %29)
%31 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %30)
ret i64 0
}