#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, int const, char const *, char const *,
                          size_t);
void abortWithAllocError(const char *msg, const char *allocatorName,
                         size_t size, const int line) {
  printf("Compiler Error (at %s:%d): %s %s; requested size %zu\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/igor84/summus/refs/heads/master/compiler/"
         "ibsallocator.c",
         line, msg, allocatorName, size);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<abortWithAllocError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x1c(%rbp),%edx
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x18(%rbp),%r9
lea    0xeb3(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1030 <printf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<abortWithAllocError>:
push   %rax
mov    %rdx,%r9
mov    %rsi,%r8
mov    %rdi,%rax
lea    0xecf(%rip),%rdi
lea    0xefe(%rip),%rsi
mov    %ecx,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [54 x i8] c"Compiler Error (at %s:%d): %s %s; requested size %zu\0A\00"
@.str.1 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/igor84/summus/refs/heads/master/compiler/ibsallocator.c\00"
@EXIT_FAILURE = global i32 0
define void @abortWithAllocError(i8* %0, i8* %1, i64 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i64 %2, i64* %7
store i32 %3, i32* %8
%9 = load i32, i32* %8
%10 = load i8*, i8** %5
%11 = load i8*, i8** %6
%12 = load i64, i64* %7
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 %9, i8* %10, i8* %11, i64 %12)
%14 = load i32, i32* @EXIT_FAILURE
%15 = call i32 @exit(i32 %14)
unreachable
}

LLVM IR (-O2):
@.str = [54 x i8] c"Compiler Error (at %s:%d): %s %s; requested size %zu\0A\00"
@.str.1 = [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/igor84/summus/refs/heads/master/compiler/ibsallocator.c\00"
@EXIT_FAILURE = global i32 0
define void @abortWithAllocError(i8* %0, i8* %1, i64 %2, i32 %3) {
%5 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.1, i64 0, i64 0), i32 %3, i8* %0, i8* %1, i64 %2)
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
}