#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 EXIT_SUCCESS;
int function_receive_and_return_something(int, int);
int /*<<< orphan*/ function_receive_and_return_void();
int /*<<< orphan*/ function_receive_something_return_void(int, int);
int function_receive_void_return_something();
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  function_receive_and_return_void();
  function_receive_something_return_void(3, 4);
  printf("Random trash: %d\n", function_receive_void_return_something());
  printf("(a + b) = %d\n", function_receive_and_return_something(10, 7));
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <function_receive_and_return_void@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <function_receive_something_return_void@plt>
mov    $0x0,%al
call   1060 <function_receive_void_return_something@plt>
mov    %eax,%esi
lea    0xe74(%rip),%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
mov    $0x7,%esi
call   1070 <function_receive_and_return_something@plt>
mov    %eax,%esi
lea    0xe69(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <function_receive_and_return_void@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1050 <function_receive_something_return_void@plt>
xor    %eax,%eax
call   1060 <function_receive_void_return_something@plt>
lea    0xe8b(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    $0xa,%edi
mov    $0x7,%esi
call   1070 <function_receive_and_return_something@plt>
lea    0xe80(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Random trash: %d\0A\00"
@.str.1 = [14 x i8] c"(a + b) = %d\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @function_receive_and_return_void()
%7 = call i32 @function_receive_something_return_void(i32 3, i32 4)
%8 = call i32 (...) @function_receive_void_return_something()
%9 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 @function_receive_and_return_something(i32 10, i32 7)
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}

LLVM IR (-O2):
@.str = [18 x i8] c"Random trash: %d\0A\00"
@.str.1 = [14 x i8] c"(a + b) = %d\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @function_receive_and_return_void()
%4 = tail call i32 @function_receive_something_return_void(i32 3, i32 4)
%5 = tail call i32 (...) @function_receive_void_return_something()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 @function_receive_and_return_something(i32 10, i32 7)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
}