#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 MoveRobot(int, int, int, int, int, int);
int getNormalizedInput(int);
int MoveRobotRelative(int a1, int a2, int a3, int a4, int a5, int mode) {
  int b1, b2, b3, b4, b5;
  b1 = getNormalizedInput(0 + 11);
  b3 = getNormalizedInput(1 + 11);
  b2 = getNormalizedInput(2 + 11);
  b4 = getNormalizedInput(3 + 11);
  b5 = getNormalizedInput(4 + 11);
  return MoveRobot(a1 + b1, a2 + b2, a3 + b3, a4 + b4, a5 + b5, mode);
}


x86 assembly (clang, -O0):
<MoveRobotRelative>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    $0xb,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,-0x1c(%rbp)
mov    $0xc,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,-0x24(%rbp)
mov    $0xd,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,-0x20(%rbp)
mov    $0xe,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,-0x28(%rbp)
mov    $0xf,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x20(%rbp),%esi
mov    -0xc(%rbp),%edx
add    -0x24(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    -0x28(%rbp),%ecx
mov    -0x14(%rbp),%r8d
add    -0x2c(%rbp),%r8d
mov    -0x18(%rbp),%r9d
call   1040 <MoveRobot@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MoveRobotRelative>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0x14(%rsp)
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebx
mov    %edi,0x10(%rsp)
mov    $0xb,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,%ebp
mov    $0xc,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,0xc(%rsp)
mov    $0xd,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,0x8(%rsp)
mov    $0xe,%edi
call   1030 <getNormalizedInput@plt>
mov    %eax,%r14d
mov    $0xf,%edi
call   1030 <getNormalizedInput@plt>
add    0x10(%rsp),%ebp
add    0x8(%rsp),%ebx
add    0xc(%rsp),%r13d
add    %r14d,%r12d
add    %eax,%r15d
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    0x14(%rsp),%r9d
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <MoveRobot@plt>

LLVM IR (-O0):
define i32 @MoveRobotRelative(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%18 = call i32 @getNormalizedInput(i32 11)
store i32 %18, i32* %13
%19 = call i32 @getNormalizedInput(i32 12)
store i32 %19, i32* %15
%20 = call i32 @getNormalizedInput(i32 13)
store i32 %20, i32* %14
%21 = call i32 @getNormalizedInput(i32 14)
store i32 %21, i32* %16
%22 = call i32 @getNormalizedInput(i32 15)
store i32 %22, i32* %17
%23 = load i32, i32* %7
%24 = load i32, i32* %13
%25 = add nsw i32 %23, %24
%26 = load i32, i32* %8
%27 = load i32, i32* %14
%28 = add nsw i32 %26, %27
%29 = load i32, i32* %9
%30 = load i32, i32* %15
%31 = add nsw i32 %29, %30
%32 = load i32, i32* %10
%33 = load i32, i32* %16
%34 = add nsw i32 %32, %33
%35 = load i32, i32* %11
%36 = load i32, i32* %17
%37 = add nsw i32 %35, %36
%38 = load i32, i32* %12
%39 = call i32 @MoveRobot(i32 %25, i32 %28, i32 %31, i32 %34, i32 %37, i32 %38)
ret i32 %39
}

LLVM IR (-O2):
define i32 @MoveRobotRelative(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 @getNormalizedInput(i32 11)
%8 = tail call i32 @getNormalizedInput(i32 12)
%9 = tail call i32 @getNormalizedInput(i32 13)
%10 = tail call i32 @getNormalizedInput(i32 14)
%11 = tail call i32 @getNormalizedInput(i32 15)
%12 = add nsw i32 %7, %0
%13 = add nsw i32 %9, %1
%14 = add nsw i32 %8, %2
%15 = add nsw i32 %10, %3
%16 = add nsw i32 %11, %4
%17 = tail call i32 @MoveRobot(i32 %12, i32 %13, i32 %14, i32 %15, i32 %16, i32 %5)
ret i32 %17
}