#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*/ tmpi_error1(int, int, char *, char *, ...);
main() {
  tmpi_error1(1000, 4,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fintler/tmpi/refs/heads/master/src/"
              "runtime/src/utils/test/tdbg.c",
              "look at this");
  tmpi_error1(1000, 7,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fintler/tmpi/refs/heads/master/src/"
              "runtime/src/utils/test/tdbg.c",
              "How about some arguments %d, %s, %c?", 10, "abc", 'X');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3e8,%edi
mov    $0x4,%esi
lea    0xed7(%rip),%rdx
lea    0xf6b(%rip),%rcx
mov    $0x0,%al
call   1030 <tmpi_error1@plt>
mov    $0x3e8,%edi
mov    $0x7,%esi
lea    0xeb8(%rip),%rdx
lea    0xf59(%rip),%rcx
mov    $0xa,%r8d
lea    0xf71(%rip),%r9
movl   $0x58,(%rsp)
mov    $0x0,%al
call   1030 <tmpi_error1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee4(%rip),%rbx
lea    0xf78(%rip),%rcx
mov    $0x3e8,%edi
mov    $0x4,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <tmpi_error1@plt>
movl   $0x58,(%rsp)
lea    0xf63(%rip),%rcx
lea    0xf81(%rip),%r9
mov    $0x3e8,%edi
mov    $0x7,%esi
mov    %rbx,%rdx
mov    $0xa,%r8d
xor    %eax,%eax
call   1030 <tmpi_error1@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fintler/tmpi/refs/heads/master/src/runtime/src/utils/test/tdbg.c\00"
@.str.1 = [13 x i8] c"look at this\00"
@.str.2 = [37 x i8] c"How about some arguments %d, %s, %c?\00"
@.str.3 = [4 x i8] c"abc\00"
define i32 @main() {
%1 = call i32 (i32, i32, i8*, i8*, ...) @tmpi_error1(i32 1000, i32 4, i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i32, i32, i8*, i8*, ...) @tmpi_error1(i32 1000, i32 7, i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 88)
ret i32 0
}

LLVM IR (-O2):
@.str = [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fintler/tmpi/refs/heads/master/src/runtime/src/utils/test/tdbg.c\00"
@.str.1 = [13 x i8] c"look at this\00"
@.str.2 = [37 x i8] c"How about some arguments %d, %s, %c?\00"
@.str.3 = [4 x i8] c"abc\00"
define i32 @main() {
%1 = tail call i32 (i32, i32, i8*, i8*, ...) @tmpi_error1(i32 1000, i32 4, i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i32, i32, i8*, i8*, ...) @tmpi_error1(i32 1000, i32 7, i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 88)
ret i32 0
}