#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*/ empty();
int /*<<< orphan*/ empty2();
int /*<<< orphan*/ fexpect(char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ func_name();
int /*<<< orphan*/ func_ptr_call();
int /*<<< orphan*/ local_static();
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ stub1();
int /*<<< orphan*/ stub2();
int /*<<< orphan*/ t1();
int /*<<< orphan*/ t10(int, double);
int /*<<< orphan*/ t2(int);
int /*<<< orphan*/ t3(int, int, int, int, int, int);
int /*<<< orphan*/ t4();
int /*<<< orphan*/ t5();
int /*<<< orphan*/ t6();
int /*<<< orphan*/ t7(int, int);
int /*<<< orphan*/ t8(int);
int /*<<< orphan*/ t9();
int /*<<< orphan*/ test_bool();
int /*<<< orphan*/ test_funcdesg();
int /*<<< orphan*/ test_struct();
void testmain() {
  print("function");
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          173, 77, t1());
  ;
  t2(79);
  t3(1, 2, 3, 4, 5, 6);
  t4();
  t5();
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          178, 3, t6());
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          179, 12, t7(3, 4));
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          180, 77, (1 ? t1 : t6)());
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          181, 3, (0 ? t1 : t6)());
  ;
  t8(23);
  t9();
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c",
          184, 7, t10(3, 4.0));
  ;
  func_ptr_call();
  func_name();
  local_static();
  empty();
  empty2();
  test_bool();
  test_struct();
  test_funcdesg();
}


x86 assembly (clang, -O0):
<testmain>:
push   %rbp
mov    %rsp,%rbp
lea    0xdbd(%rip),%rdi
call   10e0 <print@plt>
mov    $0x0,%al
call   1060 <t1@plt>
mov    %eax,%ecx
lea    0xdb1(%rip),%rdi
mov    $0xad,%esi
mov    $0x4d,%edx
call   1160 <fexpect@plt>
mov    $0x4f,%edi
call   1120 <t2@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
call   1070 <t3@plt>
mov    $0x0,%al
call   1130 <t4@plt>
mov    $0x0,%al
call   1080 <t5@plt>
mov    $0x0,%al
call   1140 <t6@plt>
mov    %eax,%ecx
lea    0xd55(%rip),%rdi
mov    $0xb2,%esi
mov    $0x3,%edx
call   1160 <fexpect@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   10a0 <t7@plt>
mov    %eax,%ecx
lea    0xd2e(%rip),%rdi
mov    $0xb3,%esi
mov    $0xc,%edx
call   1160 <fexpect@plt>
mov    $0x0,%al
call   1060 <t1@plt>
mov    %eax,%ecx
lea    0xd0f(%rip),%rdi
mov    $0xb4,%esi
mov    $0x4d,%edx
call   1160 <fexpect@plt>
mov    $0x0,%al
call   1140 <t6@plt>
mov    %eax,%ecx
lea    0xcf0(%rip),%rdi
mov    $0xb5,%esi
mov    $0x3,%edx
call   1160 <fexpect@plt>
mov    $0x17,%edi
call   1150 <t8@plt>
mov    $0x0,%al
call   10b0 <t9@plt>
mov    $0x3,%edi
movsd  0xcb2(%rip),%xmm0
call   1100 <t10@plt>
mov    %eax,%ecx
lea    0xcb5(%rip),%rdi
mov    $0xb8,%esi
mov    $0x7,%edx
call   1160 <fexpect@plt>
mov    $0x0,%al
call   1040 <func_ptr_call@plt>
mov    $0x0,%al
call   1030 <func_name@plt>
mov    $0x0,%al
call   1110 <local_static@plt>
mov    $0x0,%al
call   10f0 <empty@plt>
mov    $0x0,%al
call   1050 <empty2@plt>
mov    $0x0,%al
call   1090 <test_bool@plt>
mov    $0x0,%al
call   10c0 <test_struct@plt>
mov    $0x0,%al
call   10d0 <test_funcdesg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testmain>:
push   %rbx
lea    0xdc0(%rip),%rdi
call   10e0 <print@plt>
xor    %eax,%eax
call   1060 <t1@plt>
lea    0xdb6(%rip),%rbx
mov    %rbx,%rdi
mov    $0xad,%esi
mov    $0x4d,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
mov    $0x4f,%edi
call   1120 <t2@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
call   1070 <t3@plt>
xor    %eax,%eax
call   1130 <t4@plt>
xor    %eax,%eax
call   1080 <t5@plt>
xor    %eax,%eax
call   1140 <t6@plt>
mov    %rbx,%rdi
mov    $0xb2,%esi
mov    $0x3,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   10a0 <t7@plt>
mov    %rbx,%rdi
mov    $0xb3,%esi
mov    $0xc,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
xor    %eax,%eax
call   1060 <t1@plt>
mov    %rbx,%rdi
mov    $0xb4,%esi
mov    $0x4d,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
xor    %eax,%eax
call   1140 <t6@plt>
mov    %rbx,%rdi
mov    $0xb5,%esi
mov    $0x3,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
mov    $0x17,%edi
call   1150 <t8@plt>
xor    %eax,%eax
call   10b0 <t9@plt>
movsd  0xcc7(%rip),%xmm0
mov    $0x3,%edi
call   1100 <t10@plt>
mov    %rbx,%rdi
mov    $0xb8,%esi
mov    $0x7,%edx
mov    %eax,%ecx
call   1160 <fexpect@plt>
xor    %eax,%eax
call   1040 <func_ptr_call@plt>
xor    %eax,%eax
call   1030 <func_name@plt>
xor    %eax,%eax
call   1110 <local_static@plt>
xor    %eax,%eax
call   10f0 <empty@plt>
xor    %eax,%eax
call   1050 <empty2@plt>
xor    %eax,%eax
call   1090 <test_bool@plt>
xor    %eax,%eax
call   10c0 <test_struct@plt>
xor    %eax,%eax
pop    %rbx
jmp    10d0 <test_funcdesg@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"function\00"
@.str.1 = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c\00"
define void @testmain() {
%1 = call i32 @print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @t1()
%3 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 173, i32 77, i32 %2)
%4 = call i32 @t2(i32 79)
%5 = call i32 @t3(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6)
%6 = call i32 (...) @t4()
%7 = call i32 (...) @t5()
%8 = call i32 (...) @t6()
%9 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 178, i32 3, i32 %8)
%10 = call i32 @t7(i32 3, i32 4)
%11 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 179, i32 12, i32 %10)
%12 = call i32 (...) @t1()
%13 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 180, i32 77, i32 %12)
%14 = call i32 (...) @t6()
%15 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 181, i32 3, i32 %14)
%16 = call i32 @t8(i32 23)
%17 = call i32 (...) @t9()
%18 = call i32 @t10(i32 3, double 4.000000e+00)
%19 = call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 184, i32 7, i32 %18)
%20 = call i32 (...) @func_ptr_call()
%21 = call i32 (...) @func_name()
%22 = call i32 (...) @local_static()
%23 = call i32 (...) @empty()
%24 = call i32 (...) @empty2()
%25 = call i32 (...) @test_bool()
%26 = call i32 (...) @test_struct()
%27 = call i32 (...) @test_funcdesg()
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"function\00"
@.str.1 = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/function.c\00"
define void @testmain() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @t1()
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 173, i32 77, i32 %2)
%4 = tail call i32 @t2(i32 79)
%5 = tail call i32 @t3(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6)
%6 = tail call i32 (...) @t4()
%7 = tail call i32 (...) @t5()
%8 = tail call i32 (...) @t6()
%9 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 178, i32 3, i32 %8)
%10 = tail call i32 @t7(i32 3, i32 4)
%11 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 179, i32 12, i32 %10)
%12 = tail call i32 (...) @t1()
%13 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 180, i32 77, i32 %12)
%14 = tail call i32 (...) @t6()
%15 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 181, i32 3, i32 %14)
%16 = tail call i32 @t8(i32 23)
%17 = tail call i32 (...) @t9()
%18 = tail call i32 @t10(i32 3, double 4.000000e+00)
%19 = tail call i32 @fexpect(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i32 184, i32 7, i32 %18)
%20 = tail call i32 (...) @func_ptr_call()
%21 = tail call i32 (...) @func_name()
%22 = tail call i32 (...) @local_static()
%23 = tail call i32 (...) @empty()
%24 = tail call i32 (...) @empty2()
%25 = tail call i32 (...) @test_bool()
%26 = tail call i32 (...) @test_struct()
%27 = tail call i32 (...) @test_funcdesg()
ret void
}