void function_one(void) {
  do {
    log_msg_prefix(
        "WARN",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        9, __FUNCTION__);
    log_msg("WARN", "LOG_THIS = %d, %d, %d,%d, %d, %d, %d, %d, %d, %d\n", 1, 2,
            3, 4, 5, 6, 7, 8, 9, 10);
  } while (0);
  do {
    log_msg_prefix(
        "ERROR",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        11, __FUNCTION__);
    log_msg("ERROR", "this is a LOG_ERROR_MSG = %d\n", 1);
  } while (0);
  ;
  do {
    log_msg_prefix(
        "WARN",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        12, __FUNCTION__);
    log_msg("WARN", "this is a LOG_WARNING_MSG = %d\n", 2);
  } while (0);
  ;
  do {
    log_msg_prefix(
        "NOTICE",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        13, __FUNCTION__);
    log_msg("NOTICE", "this is a LOG_NOTICE_MSG = %d\n", 3);
  } while (0);
  ;
  do {
    log_msg_prefix(
        "INFO",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        14, __FUNCTION__);
    log_msg("INFO", "this is a LOG_INFO_MSG = %d\n", 4);
  } while (0);
  ;
  do {
    log_msg_prefix(
        "DEBUG",
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/"
        "master/experiments/logger/useLogmaker.c",
        15, __FUNCTION__);
    log_msg("DEBUG", "this is a LOG_DEBUG_MSG = %d\n", 5);
  } while (0);
  ;
  return;
}


x86 assembly (clang, -O0):
<function_one>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
jmp    112d <function_one+0xd>
lea    0xecc(%rip),%rdi
lea    0xeca(%rip),%rsi
mov    $0x9,%edx
lea    0xf66(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xeab(%rip),%rdi
lea    0xf5e(%rip),%rsi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
movl   $0x5,(%rsp)
movl   $0x6,0x8(%rsp)
movl   $0x7,0x10(%rsp)
movl   $0x8,0x18(%rsp)
movl   $0x9,0x20(%rsp)
movl   $0xa,0x28(%rsp)
mov    $0x0,%al
call   1040 <log_msg@plt>
jmp    11ad <function_one+0x8d>
lea    0xf38(%rip),%rdi
lea    0xe4a(%rip),%rsi
mov    $0xb,%edx
lea    0xee6(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xf17(%rip),%rdi
lea    0xf16(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <log_msg@plt>
jmp    11ed <function_one+0xcd>
lea    0xe0c(%rip),%rdi
lea    0xe0a(%rip),%rsi
mov    $0xc,%edx
lea    0xea6(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xdeb(%rip),%rdi
lea    0xef4(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <log_msg@plt>
jmp    122d <function_one+0x10d>
lea    0xefc(%rip),%rdi
lea    0xdca(%rip),%rsi
mov    $0xd,%edx
lea    0xe66(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xedb(%rip),%rdi
lea    0xedb(%rip),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <log_msg@plt>
jmp    126d <function_one+0x14d>
lea    0xee2(%rip),%rdi
lea    0xd8a(%rip),%rsi
mov    $0xe,%edx
lea    0xe26(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xec1(%rip),%rdi
lea    0xebf(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1040 <log_msg@plt>
jmp    12ad <function_one+0x18d>
lea    0xec4(%rip),%rdi
lea    0xd4a(%rip),%rsi
mov    $0xf,%edx
lea    0xde6(%rip),%rcx
mov    $0x0,%al
call   1030 <log_msg_prefix@plt>
lea    0xea3(%rip),%rdi
lea    0xea2(%rip),%rsi
mov    $0x5,%edx
mov    $0x0,%al
call   1040 <log_msg@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<function_one>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed1(%rip),%r12
lea    0xecf(%rip),%r15
lea    0xf70(%rip),%r14
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x9,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf61(%rip),%rsi
mov    %r12,%rdi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
push   $0xa
push   $0x9
push   $0x8
push   $0x7
push   $0x6
push   $0x5
call   1040 <log_msg@plt>
add    $0x30,%rsp
lea    0xf5c(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xb,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf46(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <log_msg@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0xc,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf39(%rip),%rsi
mov    %r12,%rdi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <log_msg@plt>
lea    0xf43(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xd,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf2e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <log_msg@plt>
lea    0xf37(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xe,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf20(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <log_msg@plt>
lea    0xf27(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xf,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <log_msg_prefix@plt>
lea    0xf11(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <log_msg@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"WARN\00"
@.str.1 = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/master/experiments/logger/useLogmaker.c\00"
@__FUNCTION__.function_one = [13 x i8] c"function_one\00"
@.str.2 = [50 x i8] c"LOG_THIS = %d, %d, %d,%d, %d, %d, %d, %d, %d, %d\0A\00"
@.str.3 = [6 x i8] c"ERROR\00"
@.str.4 = [30 x i8] c"this is a LOG_ERROR_MSG = %d\0A\00"
@.str.5 = [32 x i8] c"this is a LOG_WARNING_MSG = %d\0A\00"
@.str.6 = [7 x i8] c"NOTICE\00"
@.str.7 = [31 x i8] c"this is a LOG_NOTICE_MSG = %d\0A\00"
@.str.8 = [5 x i8] c"INFO\00"
@.str.9 = [29 x i8] c"this is a LOG_INFO_MSG = %d\0A\00"
@.str.10 = [6 x i8] c"DEBUG\00"
@.str.11 = [30 x i8] c"this is a LOG_DEBUG_MSG = %d\0A\00"
define void @function_one() {
br label %1
1: ; preds = %0
%2 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%3 = call i32 (i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10)
br label %4
4: ; preds = %1
br label %5
5: ; preds = %4
%6 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%7 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 1)
br label %8
8: ; preds = %5
br label %9
9: ; preds = %8
%10 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%11 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 2)
br label %12
12: ; preds = %9
br label %13
13: ; preds = %12
%14 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%15 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 3)
br label %16
16: ; preds = %13
br label %17
17: ; preds = %16
%18 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%19 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 4)
br label %20
20: ; preds = %17
br label %21
21: ; preds = %20
%22 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%23 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 5)
br label %24
24: ; preds = %21
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"WARN\00"
@.str.1 = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/apache/incubator-corinthia/refs/heads/master/experiments/logger/useLogmaker.c\00"
@__FUNCTION__.function_one = [13 x i8] c"function_one\00"
@.str.2 = [50 x i8] c"LOG_THIS = %d, %d, %d,%d, %d, %d, %d, %d, %d, %d\0A\00"
@.str.3 = [6 x i8] c"ERROR\00"
@.str.4 = [30 x i8] c"this is a LOG_ERROR_MSG = %d\0A\00"
@.str.5 = [32 x i8] c"this is a LOG_WARNING_MSG = %d\0A\00"
@.str.6 = [7 x i8] c"NOTICE\00"
@.str.7 = [31 x i8] c"this is a LOG_NOTICE_MSG = %d\0A\00"
@.str.8 = [5 x i8] c"INFO\00"
@.str.9 = [29 x i8] c"this is a LOG_INFO_MSG = %d\0A\00"
@.str.10 = [6 x i8] c"DEBUG\00"
@.str.11 = [30 x i8] c"this is a LOG_DEBUG_MSG = %d\0A\00"
define void @function_one() {
%1 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10)
%3 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 11, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%4 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 1)
%5 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%6 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 2)
%7 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%8 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 3)
%9 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 14, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%10 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 4)
%11 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @log_msg_prefix to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str.1, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.function_one, i64 0, i64 0))
%12 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 5)
ret void
}