int main() {
  logger_init("test.log", 0 << 1);
  printf("\n##### log with color and trace level\n");
  logger_printf(5 << 1, "\x1b[31;1m",
                "[%s] (%s:%s:%d) "
                "color fatal\n",
                "FATAL",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 9);
  logger_printf(4 << 1, "\x1b[31m",
                "[%s] (%s:%s:%d) "
                "color error\n",
                "ERROR",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 10);
  logger_printf(3 << 1, "\x1b[33m",
                "[%s] (%s:%s:%d) "
                "color warning\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 11);
  logger_printf(2 << 1, "\x1b[32m",
                "[%s] (%s:%s:%d) "
                "color infomation\n",
                "INFO",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 12);
  logger_printf(1 << 1, "\x1b[37m",
                "[%s] (%s:%s:%d) "
                "color debug\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 13);
  logger_printf(0 << 1, "\x1b[36m",
                "[%s] (%s:%s:%d) "
                "color trace\n",
                "TRACE",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 14);
  logger_close();
  logger_init("test.log", 1 << 1 | 1);
  printf("\n##### log without color and debug level\n");
  logger_printf(5 << 1, "\x1b[31;1m",
                "[%s] (%s:%s:%d) "
                "color fatal\n",
                "FATAL",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 20);
  logger_printf(4 << 1, "\x1b[31m",
                "[%s] (%s:%s:%d) "
                "color error\n",
                "ERROR",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 21);
  logger_printf(3 << 1, "\x1b[33m",
                "[%s] (%s:%s:%d) "
                "color warning\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 22);
  logger_printf(2 << 1, "\x1b[32m",
                "[%s] (%s:%s:%d) "
                "color infomation\n",
                "INFO",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 23);
  logger_printf(1 << 1, "\x1b[37m",
                "[%s] (%s:%s:%d) "
                "color debug\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 24);
  logger_printf(0 << 1, "\x1b[36m",
                "[%s] (%s:%s:%d) "
                "color trace\n",
                "TRACE",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 25);
  logger_close();
  logger_init("test.log", 3 << 1);
  printf("\n##### log with color and debug warning\n");
  logger_printf(5 << 1, "\x1b[31;1m",
                "[%s] (%s:%s:%d) "
                "color fatal\n",
                "FATAL",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 31);
  logger_printf(4 << 1, "\x1b[31m",
                "[%s] (%s:%s:%d) "
                "color error\n",
                "ERROR",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 32);
  logger_printf(3 << 1, "\x1b[33m",
                "[%s] (%s:%s:%d) "
                "color warning\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 33);
  logger_printf(2 << 1, "\x1b[32m",
                "[%s] (%s:%s:%d) "
                "color infomation\n",
                "INFO",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 34);
  logger_printf(1 << 1, "\x1b[37m",
                "[%s] (%s:%s:%d) "
                "color debug\n",
                "WARN",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 35);
  logger_printf(0 << 1, "\x1b[36m",
                "[%s] (%s:%s:%d) "
                "color trace\n",
                "TRACE",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/"
                "heads/master/deps/logger/tests/logger_test.c",
                __func__, 36);
  logger_close();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1050 <logger_init@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
lea    0xeb7(%rip),%rsi
lea    0xeb8(%rip),%rdx
lea    0xece(%rip),%rcx
lea    0xecd(%rip),%r8
lea    0xf69(%rip),%r9
movl   $0x9,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x8,%edi
lea    0xf54(%rip),%rsi
lea    0xf53(%rip),%rdx
lea    0xf69(%rip),%rcx
lea    0xe97(%rip),%r8
lea    0xf33(%rip),%r9
movl   $0xa,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x6,%edi
lea    0xf47(%rip),%rsi
lea    0xf46(%rip),%rdx
lea    0xf5e(%rip),%rcx
lea    0xe61(%rip),%r8
lea    0xefd(%rip),%r9
movl   $0xb,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x4,%edi
lea    0xf3b(%rip),%rsi
lea    0xf3a(%rip),%rdx
lea    0xf55(%rip),%rcx
lea    0xe2b(%rip),%r8
lea    0xec7(%rip),%r9
movl   $0xc,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x2,%edi
lea    0xf32(%rip),%rsi
lea    0xf31(%rip),%rdx
lea    0xef2(%rip),%rcx
lea    0xdf5(%rip),%r8
lea    0xe91(%rip),%r9
movl   $0xd,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
xor    %edi,%edi
lea    0xf22(%rip),%rsi
lea    0xf21(%rip),%rdx
lea    0xf37(%rip),%rcx
lea    0xdc2(%rip),%r8
lea    0xe5e(%rip),%r9
movl   $0xe,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x0,%al
call   1060 <logger_close@plt>
lea    0xd44(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1050 <logger_init@plt>
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
lea    0xd4e(%rip),%rsi
lea    0xd4f(%rip),%rdx
lea    0xd65(%rip),%rcx
lea    0xd64(%rip),%r8
lea    0xe00(%rip),%r9
movl   $0x14,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x8,%edi
lea    0xdeb(%rip),%rsi
lea    0xdea(%rip),%rdx
lea    0xe00(%rip),%rcx
lea    0xd2e(%rip),%r8
lea    0xdca(%rip),%r9
movl   $0x15,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x6,%edi
lea    0xdde(%rip),%rsi
lea    0xddd(%rip),%rdx
lea    0xdf5(%rip),%rcx
lea    0xcf8(%rip),%r8
lea    0xd94(%rip),%r9
movl   $0x16,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x4,%edi
lea    0xdd2(%rip),%rsi
lea    0xdd1(%rip),%rdx
lea    0xdec(%rip),%rcx
lea    0xcc2(%rip),%r8
lea    0xd5e(%rip),%r9
movl   $0x17,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x2,%edi
lea    0xdc9(%rip),%rsi
lea    0xdc8(%rip),%rdx
lea    0xd89(%rip),%rcx
lea    0xc8c(%rip),%r8
lea    0xd28(%rip),%r9
movl   $0x18,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
xor    %edi,%edi
lea    0xdb9(%rip),%rsi
lea    0xdb8(%rip),%rdx
lea    0xdce(%rip),%rcx
lea    0xc59(%rip),%r8
lea    0xcf5(%rip),%r9
movl   $0x19,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x0,%al
call   1060 <logger_close@plt>
lea    0xbdb(%rip),%rdi
mov    $0x6,%esi
mov    $0x0,%al
call   1050 <logger_init@plt>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
lea    0xbe5(%rip),%rsi
lea    0xbe6(%rip),%rdx
lea    0xbfc(%rip),%rcx
lea    0xbfb(%rip),%r8
lea    0xc97(%rip),%r9
movl   $0x1f,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x8,%edi
lea    0xc82(%rip),%rsi
lea    0xc81(%rip),%rdx
lea    0xc97(%rip),%rcx
lea    0xbc5(%rip),%r8
lea    0xc61(%rip),%r9
movl   $0x20,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x6,%edi
lea    0xc75(%rip),%rsi
lea    0xc74(%rip),%rdx
lea    0xc8c(%rip),%rcx
lea    0xb8f(%rip),%r8
lea    0xc2b(%rip),%r9
movl   $0x21,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x4,%edi
lea    0xc69(%rip),%rsi
lea    0xc68(%rip),%rdx
lea    0xc83(%rip),%rcx
lea    0xb59(%rip),%r8
lea    0xbf5(%rip),%r9
movl   $0x22,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x2,%edi
lea    0xc60(%rip),%rsi
lea    0xc5f(%rip),%rdx
lea    0xc20(%rip),%rcx
lea    0xb23(%rip),%r8
lea    0xbbf(%rip),%r9
movl   $0x23,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
xor    %edi,%edi
lea    0xc50(%rip),%rsi
lea    0xc4f(%rip),%rdx
lea    0xc65(%rip),%rcx
lea    0xaf0(%rip),%r8
lea    0xb8c(%rip),%r9
movl   $0x24,(%rsp)
mov    $0x0,%al
call   1030 <logger_printf@plt>
mov    $0x0,%al
call   1060 <logger_close@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <logger_init@plt>
lea    0x1046(%rip),%rdi
call   1030 <puts@plt>
movl   $0x9,(%rsp)
lea    0xe94(%rip),%rsi
lea    0xe95(%rip),%rdx
lea    0xeab(%rip),%rcx
lea    0xeaa(%rip),%rbx
lea    0xf46(%rip),%r14
mov    $0xa,%edi
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0xa,(%rsp)
lea    0xf2b(%rip),%rsi
lea    0xf2a(%rip),%rdx
lea    0xf40(%rip),%rcx
mov    $0x8,%edi
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0xb,(%rsp)
lea    0xf26(%rip),%rsi
lea    0xf25(%rip),%rdx
lea    0xf3d(%rip),%r15
mov    $0x6,%edi
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0xc,(%rsp)
lea    0xf1f(%rip),%rsi
lea    0xf1e(%rip),%rdx
lea    0xf39(%rip),%rcx
mov    $0x4,%edi
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0xd,(%rsp)
lea    0xf1e(%rip),%rsi
lea    0xf1d(%rip),%rdx
mov    $0x2,%edi
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0xe,(%rsp)
lea    0xf17(%rip),%rbp
lea    0xf16(%rip),%r12
lea    0xf2c(%rip),%r13
xor    %edi,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
xor    %eax,%eax
call   1060 <logger_close@plt>
lea    0xd64(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <logger_init@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
movl   $0x14,(%rsp)
mov    $0xa,%edi
lea    0xd42(%rip),%rsi
lea    0xd43(%rip),%rdx
lea    0xd59(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x15,(%rsp)
mov    $0x8,%edi
lea    0xde7(%rip),%rsi
lea    0xde6(%rip),%rdx
lea    0xdfc(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x16,(%rsp)
mov    $0x6,%edi
lea    0xde2(%rip),%rsi
lea    0xde1(%rip),%rdx
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x17,(%rsp)
mov    $0x4,%edi
lea    0xde2(%rip),%rsi
lea    0xde1(%rip),%rdx
lea    0xdfc(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x18,(%rsp)
mov    $0x2,%edi
lea    0xde1(%rip),%rsi
lea    0xde0(%rip),%rdx
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x19,(%rsp)
xor    %edi,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
xor    %eax,%eax
call   1060 <logger_close@plt>
lea    0xc41(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <logger_init@plt>
lea    0xe25(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1f,(%rsp)
mov    $0xa,%edi
lea    0xc1f(%rip),%rsi
lea    0xc20(%rip),%rdx
lea    0xc36(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x20,(%rsp)
mov    $0x8,%edi
lea    0xcc4(%rip),%rsi
lea    0xcc3(%rip),%rdx
lea    0xcd9(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x21,(%rsp)
mov    $0x6,%edi
lea    0xcbf(%rip),%rsi
lea    0xcbe(%rip),%rdx
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x22,(%rsp)
mov    $0x4,%edi
lea    0xcbf(%rip),%rsi
lea    0xcbe(%rip),%rdx
lea    0xcd9(%rip),%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x23,(%rsp)
mov    $0x2,%edi
lea    0xcbe(%rip),%rsi
lea    0xcbd(%rip),%rdx
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
movl   $0x24,(%rsp)
xor    %edi,%edi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <logger_printf@plt>
xor    %eax,%eax
call   1060 <logger_close@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"test.log\00"
@.str.1 = [39 x i8] c"\0A##### log with color and trace level\0A\00"
@.str.2 = [8 x i8] c"\1B[31;1m\00"
@.str.3 = [29 x i8] c"[%s] (%s:%s:%d) color fatal\0A\00"
@.str.4 = [6 x i8] c"FATAL\00"
@.str.5 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/heads/master/deps/logger/tests/logger_test.c\00"
@__func__.main = [5 x i8] c"main\00"
@.str.6 = [6 x i8] c"\1B[31m\00"
@.str.7 = [29 x i8] c"[%s] (%s:%s:%d) color error\0A\00"
@.str.8 = [6 x i8] c"ERROR\00"
@.str.9 = [6 x i8] c"\1B[33m\00"
@.str.10 = [31 x i8] c"[%s] (%s:%s:%d) color warning\0A\00"
@.str.11 = [5 x i8] c"WARN\00"
@.str.12 = [6 x i8] c"\1B[32m\00"
@.str.13 = [34 x i8] c"[%s] (%s:%s:%d) color infomation\0A\00"
@.str.14 = [5 x i8] c"INFO\00"
@.str.15 = [6 x i8] c"\1B[37m\00"
@.str.16 = [29 x i8] c"[%s] (%s:%s:%d) color debug\0A\00"
@.str.17 = [6 x i8] c"\1B[36m\00"
@.str.18 = [29 x i8] c"[%s] (%s:%s:%d) color trace\0A\00"
@.str.19 = [6 x i8] c"TRACE\00"
@.str.20 = [42 x i8] c"\0A##### log without color and debug level\0A\00"
@.str.21 = [41 x i8] c"\0A##### log with color and debug warning\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 9)
%5 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 10)
%6 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 11)
%7 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 12)
%8 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 13)
%9 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 14)
%10 = call i32 (...) @logger_close()
%11 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 3)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i64 0, i64 0))
%13 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 20)
%14 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 21)
%15 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 22)
%16 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 23)
%17 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 24)
%18 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 25)
%19 = call i32 (...) @logger_close()
%20 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 6)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.21, i64 0, i64 0))
%22 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 31)
%23 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 32)
%24 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 33)
%25 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 34)
%26 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 35)
%27 = call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 36)
%28 = call i32 (...) @logger_close()
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"test.log\00"
@.str.2 = [8 x i8] c"\1B[31;1m\00"
@.str.3 = [29 x i8] c"[%s] (%s:%s:%d) color fatal\0A\00"
@.str.4 = [6 x i8] c"FATAL\00"
@.str.5 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/shiffthq/shadowsocks-c/refs/heads/master/deps/logger/tests/logger_test.c\00"
@__func__.main = [5 x i8] c"main\00"
@.str.6 = [6 x i8] c"\1B[31m\00"
@.str.7 = [29 x i8] c"[%s] (%s:%s:%d) color error\0A\00"
@.str.8 = [6 x i8] c"ERROR\00"
@.str.9 = [6 x i8] c"\1B[33m\00"
@.str.10 = [31 x i8] c"[%s] (%s:%s:%d) color warning\0A\00"
@.str.11 = [5 x i8] c"WARN\00"
@.str.12 = [6 x i8] c"\1B[32m\00"
@.str.13 = [34 x i8] c"[%s] (%s:%s:%d) color infomation\0A\00"
@.str.14 = [5 x i8] c"INFO\00"
@.str.15 = [6 x i8] c"\1B[37m\00"
@.str.16 = [29 x i8] c"[%s] (%s:%s:%d) color debug\0A\00"
@.str.17 = [6 x i8] c"\1B[36m\00"
@.str.18 = [29 x i8] c"[%s] (%s:%s:%d) color trace\0A\00"
@.str.19 = [6 x i8] c"TRACE\00"
@str = [38 x i8] c"\0A##### log with color and trace level\00"
@str.22 = [41 x i8] c"\0A##### log without color and debug level\00"
@str.23 = [40 x i8] c"\0A##### log with color and debug warning\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 9)
%4 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 10)
%5 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 11)
%6 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 12)
%7 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 13)
%8 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 14)
%9 = tail call i32 (...) @logger_close()
%10 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 3)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 20)
%13 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 21)
%14 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 22)
%15 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 23)
%16 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 24)
%17 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 25)
%18 = tail call i32 (...) @logger_close()
%19 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @logger_init to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 6)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0))
%21 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 31)
%22 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 32)
%23 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 33)
%24 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 34)
%25 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 35)
%26 = tail call i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @logger_printf to i32 (i32, i8*, i8*, i8*, i8*, i8*, i32, ...)*)(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0), i32 36)
%27 = tail call i32 (...) @logger_close()
ret i32 0
}