#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*/ assertEq(int, int);
int /*<<< orphan*/ endTest();
int function(int);
int getter();
int /*<<< orphan*/ method();
int mul(int /*<<< orphan*/, int);
int /*<<< orphan*/ square(int);
int sum(int, int, int, int, int, int);
int ten(int);
int main() {
  int a = 10;
  method();
  int b = getter();
  int c = function(a);
  int d = mul(square(ten(ten(7))), 2);
  int e = sum(10, 20, 30, 40, 50, 60);
  assertEq(a, 10);
  assertEq(b, 200);
  assertEq(c, 200);
  assertEq(d, 980000);
  assertEq(e, 210);
  endTest();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xa,-0x4(%rbp)
mov    $0x0,%al
call   1040 <method@plt>
mov    $0x0,%al
call   10a0 <getter@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1080 <function@plt>
mov    %eax,-0xc(%rbp)
mov    $0x7,%edi
call   1050 <ten@plt>
mov    %eax,%edi
call   1050 <ten@plt>
mov    %eax,%edi
call   1030 <square@plt>
mov    %eax,%edi
mov    $0x2,%esi
call   1090 <mul@plt>
mov    %eax,-0x10(%rbp)
mov    $0xa,%edi
mov    $0x14,%esi
mov    $0x1e,%edx
mov    $0x28,%ecx
mov    $0x32,%r8d
mov    $0x3c,%r9d
call   1070 <sum@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xa,%esi
call   10b0 <assertEq@plt>
mov    -0x8(%rbp),%edi
mov    $0xc8,%esi
call   10b0 <assertEq@plt>
mov    -0xc(%rbp),%edi
mov    $0xc8,%esi
call   10b0 <assertEq@plt>
mov    -0x10(%rbp),%edi
mov    $0xef420,%esi
call   10b0 <assertEq@plt>
mov    -0x14(%rbp),%edi
mov    $0xd2,%esi
call   10b0 <assertEq@plt>
mov    $0x0,%al
call   1060 <endTest@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <method@plt>
xor    %eax,%eax
call   10a0 <getter@plt>
mov    %eax,%r14d
mov    $0xa,%edi
call   1080 <function@plt>
mov    %eax,%r15d
mov    $0x7,%edi
call   1050 <ten@plt>
mov    %eax,%edi
call   1050 <ten@plt>
mov    %eax,%edi
call   1030 <square@plt>
mov    %eax,%edi
mov    $0x2,%esi
call   1090 <mul@plt>
mov    %eax,%ebx
mov    $0xa,%edi
mov    $0x14,%esi
mov    $0x1e,%edx
mov    $0x28,%ecx
mov    $0x32,%r8d
mov    $0x3c,%r9d
call   1070 <sum@plt>
mov    %eax,%ebp
mov    $0xa,%edi
mov    $0xa,%esi
call   10b0 <assertEq@plt>
mov    %r14d,%edi
mov    $0xc8,%esi
call   10b0 <assertEq@plt>
mov    %r15d,%edi
mov    $0xc8,%esi
call   10b0 <assertEq@plt>
mov    %ebx,%edi
mov    $0xef420,%esi
call   10b0 <assertEq@plt>
mov    %ebp,%edi
mov    $0xd2,%esi
call   10b0 <assertEq@plt>
xor    %eax,%eax
call   1060 <endTest@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 10, i32* %1
%6 = call i32 (...) @method()
%7 = call i32 (...) @getter()
store i32 %7, i32* %2
%8 = load i32, i32* %1
%9 = call i32 @function(i32 %8)
store i32 %9, i32* %3
%10 = call i32 @ten(i32 7)
%11 = call i32 @ten(i32 %10)
%12 = call i32 @square(i32 %11)
%13 = call i32 @mul(i32 %12, i32 2)
store i32 %13, i32* %4
%14 = call i32 @sum(i32 10, i32 20, i32 30, i32 40, i32 50, i32 60)
store i32 %14, i32* %5
%15 = load i32, i32* %1
%16 = call i32 @assertEq(i32 %15, i32 10)
%17 = load i32, i32* %2
%18 = call i32 @assertEq(i32 %17, i32 200)
%19 = load i32, i32* %3
%20 = call i32 @assertEq(i32 %19, i32 200)
%21 = load i32, i32* %4
%22 = call i32 @assertEq(i32 %21, i32 980000)
%23 = load i32, i32* %5
%24 = call i32 @assertEq(i32 %23, i32 210)
%25 = call i32 (...) @endTest()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @method()
%2 = tail call i32 (...) @getter()
%3 = tail call i32 @function(i32 10)
%4 = tail call i32 @ten(i32 7)
%5 = tail call i32 @ten(i32 %4)
%6 = tail call i32 @square(i32 %5)
%7 = tail call i32 @mul(i32 %6, i32 2)
%8 = tail call i32 @sum(i32 10, i32 20, i32 30, i32 40, i32 50, i32 60)
%9 = tail call i32 @assertEq(i32 10, i32 10)
%10 = tail call i32 @assertEq(i32 %2, i32 200)
%11 = tail call i32 @assertEq(i32 %3, i32 200)
%12 = tail call i32 @assertEq(i32 %7, i32 980000)
%13 = tail call i32 @assertEq(i32 %8, i32 210)
%14 = tail call i32 (...) @endTest()
ret i32 0
}