#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*/ f0();
int /*<<< orphan*/ f1(int);
int /*<<< orphan*/ f2(int, int);
int /*<<< orphan*/ f3(int, int, int);
int /*<<< orphan*/ f4(int, int, int, int);
int s(char *);
void t(void) {
  f1(7);
  f1(7);
  f2(7, 1);
  f3(7, 1, 2);
  int one = 1;
  int two = 2;
  int onetwo = 23;
  f0();
  f0();
  f2(onetwo, 3);
  f0();
  f1(s("1, 2, 3, 4"));
  f0();
  f2(1, 1);
  f4(1, 2, 1, 2);
  (0);
  f2(0, 23);
}


x86 assembly (clang, -O0):
<t>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x7,%edi
call   1060 <f1@plt>
mov    $0x7,%edi
call   1060 <f1@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1040 <f2@plt>
mov    $0x7,%edi
mov    $0x1,%esi
mov    $0x2,%edx
call   1050 <f3@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x17,-0xc(%rbp)
mov    $0x0,%al
call   1030 <f0@plt>
mov    $0x0,%al
call   1030 <f0@plt>
mov    -0xc(%rbp),%edi
mov    $0x3,%esi
call   1040 <f2@plt>
mov    $0x0,%al
call   1030 <f0@plt>
lea    0xe23(%rip),%rdi
call   1070 <s@plt>
mov    %eax,%edi
call   1060 <f1@plt>
mov    $0x0,%al
call   1030 <f0@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1040 <f2@plt>
mov    $0x1,%edx
mov    $0x2,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1080 <f4@plt>
xor    %edi,%edi
mov    $0x17,%esi
call   1040 <f2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t>:
push   %rax
mov    $0x7,%edi
call   1060 <f1@plt>
mov    $0x7,%edi
call   1060 <f1@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1040 <f2@plt>
mov    $0x7,%edi
mov    $0x1,%esi
mov    $0x2,%edx
call   1050 <f3@plt>
xor    %eax,%eax
call   1030 <f0@plt>
xor    %eax,%eax
call   1030 <f0@plt>
mov    $0x17,%edi
mov    $0x3,%esi
call   1040 <f2@plt>
xor    %eax,%eax
call   1030 <f0@plt>
lea    0xe3d(%rip),%rdi
call   1070 <s@plt>
mov    %eax,%edi
call   1060 <f1@plt>
xor    %eax,%eax
call   1030 <f0@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1040 <f2@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
call   1080 <f4@plt>
xor    %edi,%edi
mov    $0x17,%esi
pop    %rax
jmp    1040 <f2@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"1, 2, 3, 4\00"
define void @t() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 @f1(i32 7)
%5 = call i32 @f1(i32 7)
%6 = call i32 @f2(i32 7, i32 1)
%7 = call i32 @f3(i32 7, i32 1, i32 2)
store i32 1, i32* %1
store i32 2, i32* %2
store i32 23, i32* %3
%8 = call i32 (...) @f0()
%9 = call i32 (...) @f0()
%10 = load i32, i32* %3
%11 = call i32 @f2(i32 %10, i32 3)
%12 = call i32 (...) @f0()
%13 = call i32 @s(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @f1(i32 %13)
%15 = call i32 (...) @f0()
%16 = call i32 @f2(i32 1, i32 1)
%17 = call i32 @f4(i32 1, i32 2, i32 1, i32 2)
%18 = call i32 @f2(i32 0, i32 23)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"1, 2, 3, 4\00"
define void @t() {
%1 = tail call i32 @f1(i32 7)
%2 = tail call i32 @f1(i32 7)
%3 = tail call i32 @f2(i32 7, i32 1)
%4 = tail call i32 @f3(i32 7, i32 1, i32 2)
%5 = tail call i32 (...) @f0()
%6 = tail call i32 (...) @f0()
%7 = tail call i32 @f2(i32 23, i32 3)
%8 = tail call i32 (...) @f0()
%9 = tail call i32 @s(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @f1(i32 %9)
%11 = tail call i32 (...) @f0()
%12 = tail call i32 @f2(i32 1, i32 1)
%13 = tail call i32 @f4(i32 1, i32 2, i32 1, i32 2)
%14 = tail call i32 @f2(i32 0, i32 23)
ret void
}