#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*/ test_error(char *, int, char *, char *);
int /*<<< orphan*/ test_info(char *, int, char *, char *);
int test_messages(void) {
  test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
            "master/Src/OSF/OpenSSL-111/test/test_test.c",
            442, "This is an %s message.", "info");
  test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
             "master/Src/OSF/OpenSSL-111/test/test_test.c",
             443, "This is an %s message.", "error");
  return 1;
}


x86 assembly (clang, -O0):
<test_messages>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x1ba,%esi
lea    0xf76(%rip),%rdx
lea    0xf86(%rip),%rcx
call   1030 <test_info@plt>
lea    0xeb6(%rip),%rdi
mov    $0x1bb,%esi
lea    0xf57(%rip),%rdx
lea    0xf6c(%rip),%rcx
call   1040 <test_error@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_messages>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rbx
lea    0xf7b(%rip),%r14
lea    0xf8b(%rip),%rcx
mov    %rbx,%rdi
mov    $0x1ba,%esi
mov    %r14,%rdx
call   1030 <test_info@plt>
lea    0xf79(%rip),%rcx
mov    %rbx,%rdi
mov    $0x1bb,%esi
mov    %r14,%rdx
call   1040 <test_error@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/test_test.c\00"
@.str.1 = [23 x i8] c"This is an %s message.\00"
@.str.2 = [5 x i8] c"info\00"
@.str.3 = [6 x i8] c"error\00"
define i32 @test_messages() {
%1 = call i32 @test_info(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), i32 442, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 @test_error(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), i32 443, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/test_test.c\00"
@.str.1 = [23 x i8] c"This is an %s message.\00"
@.str.2 = [5 x i8] c"info\00"
@.str.3 = [6 x i8] c"error\00"
define i32 @test_messages() {
%1 = tail call i32 @test_info(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), i32 442, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @test_error(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), i32 443, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 1
}