#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*/ fexpect(char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ no_declaration();
int /*<<< orphan*/ oldstyle1(int, int);
int /*<<< orphan*/ oldstyle2();
int /*<<< orphan*/ oldstyle3(int);
int /*<<< orphan*/ oldstyle4(int, double);
int /*<<< orphan*/ print(char *);
void testmain() {
  print("K&R");
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "oldstyle.c",
          28, 3, no_declaration());
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "oldstyle.c",
          29, 7, oldstyle1(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/input/8cc/"
          "oldstyle.c",
          30, 4, oldstyle2());
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "oldstyle.c",
          31, 5, oldstyle3(5));
  ;
  fexpect("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/8l/8cc/refs/heads/master/test/input/8cc/"
          "oldstyle.c",
          32, 9, oldstyle4(5, 4.0));
  ;
}


x86 assembly (clang, -O0):
<testmain>:
push   %rbp
mov    %rsp,%rbp
lea    0xe8d(%rip),%rdi
call   1050 <print@plt>
mov    $0x0,%al
call   1060 <no_declaration@plt>
mov    %eax,%ecx
lea    0xe7c(%rip),%rdi
mov    $0x1c,%esi
mov    $0x3,%edx
call   1070 <fexpect@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1030 <oldstyle1@plt>
mov    %eax,%ecx
lea    0xe55(%rip),%rdi
mov    $0x1d,%esi
mov    $0x7,%edx
call   1070 <fexpect@plt>
mov    $0x0,%al
call   1080 <oldstyle2@plt>
mov    %eax,%ecx
lea    0xe36(%rip),%rdi
mov    $0x1e,%esi
mov    $0x4,%edx
call   1070 <fexpect@plt>
mov    $0x5,%edi
call   1040 <oldstyle3@plt>
mov    %eax,%ecx
lea    0xe14(%rip),%rdi
mov    $0x1f,%esi
mov    $0x5,%edx
call   1070 <fexpect@plt>
mov    $0x5,%edi
movsd  0xdec(%rip),%xmm0
call   1090 <oldstyle4@plt>
mov    %eax,%ecx
lea    0xdea(%rip),%rdi
mov    $0x20,%esi
mov    $0x9,%edx
call   1070 <fexpect@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testmain>:
push   %rbx
lea    0xe90(%rip),%rdi
call   1050 <print@plt>
xor    %eax,%eax
call   1060 <no_declaration@plt>
lea    0xe81(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1c,%esi
mov    $0x3,%edx
mov    %eax,%ecx
call   1070 <fexpect@plt>
mov    $0x3,%edi
mov    $0x4,%esi
call   1030 <oldstyle1@plt>
mov    %rbx,%rdi
mov    $0x1d,%esi
mov    $0x7,%edx
mov    %eax,%ecx
call   1070 <fexpect@plt>
xor    %eax,%eax
call   1080 <oldstyle2@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x4,%edx
mov    %eax,%ecx
call   1070 <fexpect@plt>
mov    $0x5,%edi
call   1040 <oldstyle3@plt>
mov    %rbx,%rdi
mov    $0x1f,%esi
mov    $0x5,%edx
mov    %eax,%ecx
call   1070 <fexpect@plt>
movsd  0xdfd(%rip),%xmm0
mov    $0x5,%edi
call   1090 <oldstyle4@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    $0x9,%edx
mov    %eax,%ecx
pop    %rbx
jmp    1070 <fexpect@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"K&R\00"
@.str.1 = [141 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/input/8cc/oldstyle.c\00"
define void @testmain() {
%1 = call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @no_declaration()
%3 = call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 28, i32 3, i32 %2)
%4 = call i32 @oldstyle1(i32 3, i32 4)
%5 = call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 29, i32 7, i32 %4)
%6 = call i32 (...) @oldstyle2()
%7 = call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 30, i32 4, i32 %6)
%8 = call i32 @oldstyle3(i32 5)
%9 = call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 31, i32 5, i32 %8)
%10 = call i32 @oldstyle4(i32 5, double 4.000000e+00)
%11 = call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 32, i32 9, i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"K&R\00"
@.str.1 = [141 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/input/8cc/oldstyle.c\00"
define void @testmain() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @no_declaration()
%3 = tail call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 28, i32 3, i32 %2)
%4 = tail call i32 @oldstyle1(i32 3, i32 4)
%5 = tail call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 29, i32 7, i32 %4)
%6 = tail call i32 (...) @oldstyle2()
%7 = tail call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 30, i32 4, i32 %6)
%8 = tail call i32 @oldstyle3(i32 5)
%9 = tail call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 31, i32 5, i32 %8)
%10 = tail call i32 @oldstyle4(i32 5, double 4.000000e+00)
%11 = tail call i32 @fexpect(i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 32, i32 9, i32 %10)
ret void
}