#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*/ fprintf(int /*<<< orphan*/, char *, char *, int, ...);
int /*<<< orphan*/ stderr;
void test_log_info() {
  fprintf(stderr,
          "[INFO] (%s:%d) "
          "Well I did something ."
          "\n",
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/sharkspeed/dororis/refs/heads/dev/"
          "languages/clang/lcthw-code/20-cool.c",
          25);
  fprintf(stderr,
          "[INFO] (%s:%d) "
          "It happened %f times today."
          "\n",
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/sharkspeed/dororis/refs/heads/dev/"
          "languages/clang/lcthw-code/20-cool.c",
          26, 1.3f);
}


x86 assembly (clang, -O0):
<test_log_info>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xee4(%rip),%rsi
lea    0xf04(%rip),%rdx
mov    $0x19,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
lea    0xf89(%rip),%rsi
lea    0xee1(%rip),%rdx
mov    $0x1a,%ecx
movsd  0xea5(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_log_info>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%edi
lea    0xee4(%rip),%rsi
lea    0xf04(%rip),%r14
mov    %r14,%rdx
mov    $0x19,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8d(%rip),%rsi
movsd  0xeb5(%rip),%xmm0
mov    %r14,%rdx
mov    $0x1a,%ecx
mov    $0x1,%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [39 x i8] c"[INFO] (%s:%d) Well I did something .\0A\00"
@.str.1 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sharkspeed/dororis/refs/heads/dev/languages/clang/lcthw-code/20-cool.c\00"
@.str.2 = [44 x i8] c"[INFO] (%s:%d) It happened %f times today.\0A\00"
define void @test_log_info() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, i8*, i32, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.1, i64 0, i64 0), i32 25)
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, i8*, i32, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.1, i64 0, i64 0), i32 26, double 0x3FF4CCCCC0000000)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [39 x i8] c"[INFO] (%s:%d) Well I did something .\0A\00"
@.str.1 = [161 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sharkspeed/dororis/refs/heads/dev/languages/clang/lcthw-code/20-cool.c\00"
@.str.2 = [44 x i8] c"[INFO] (%s:%d) It happened %f times today.\0A\00"
define void @test_log_info() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, i8*, i32, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.1, i64 0, i64 0), i32 25)
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, i8*, i32, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.1, i64 0, i64 0), i32 26, double 0x3FF4CCCCC0000000)
ret void
}