void handle_mibfile_conf(const char *token, char *line) {
  do {
    if (snmp_get_do_debugging()) {
      debugmsgtoken(
          "trace", " %s, %d\n",
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/luebbers/reconos/refs/heads/master/core/"
          "ecos/ecos-patched/ecos/packages/net/snmp/lib/current/src/mib.c",
          1073),
          debugmsg("trace", " %s, %d\n",
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/luebbers/reconos/refs/"
                   "heads/master/core/ecos/ecos-patched/ecos/packages/net/snmp/"
                   "lib/current/src/mib.c",
                   1073),
          debugmsgtoken("read_config:initmib", "reading mibfile: %s\n", line),
          debugmsg("read_config:initmib", "reading mibfile: %s\n", line);
    }
  } while (0);
  read_mib(line);
}


x86 assembly (clang, -O0):
<handle_mibfile_conf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1060 <snmp_get_do_debugging@plt>
cmp    $0x0,%eax
je     11d4 <handle_mibfile_conf+0x94>
lea    0xe99(%rip),%rdi
lea    0xe98(%rip),%rsi
lea    0xe9a(%rip),%rdx
mov    $0x431,%ecx
mov    $0x0,%al
call   1040 <debugmsgtoken@plt>
lea    0xe78(%rip),%rdi
lea    0xe77(%rip),%rsi
lea    0xe79(%rip),%rdx
mov    $0x431,%ecx
mov    $0x0,%al
call   1030 <debugmsg@plt>
mov    -0x10(%rbp),%rdx
lea    0xf23(%rip),%rdi
lea    0xf30(%rip),%rsi
mov    $0x0,%al
call   1040 <debugmsgtoken@plt>
mov    -0x10(%rbp),%rdx
lea    0xf0a(%rip),%rdi
lea    0xf17(%rip),%rsi
mov    $0x0,%al
call   1030 <debugmsg@plt>
jmp    11d9 <handle_mibfile_conf+0x99>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <read_mib@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_mibfile_conf>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
xor    %eax,%eax
call   1060 <snmp_get_do_debugging@plt>
test   %eax,%eax
je     11c3 <handle_mibfile_conf+0x83>
lea    0xea3(%rip),%r14
lea    0xea2(%rip),%r15
lea    0xea4(%rip),%r12
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x431,%ecx
xor    %eax,%eax
call   1040 <debugmsgtoken@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x431,%ecx
xor    %eax,%eax
call   1030 <debugmsg@plt>
lea    0xf34(%rip),%r14
lea    0xf41(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <debugmsgtoken@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <debugmsg@plt>
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1050 <read_mib@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"trace\00"
@.str.1 = [9 x i8] c" %s, %d\0A\00"
@.str.2 = [193 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/luebbers/reconos/refs/heads/master/core/ecos/ecos-patched/ecos/packages/net/snmp/lib/current/src/mib.c\00"
@.str.3 = [20 x i8] c"read_config:initmib\00"
@.str.4 = [21 x i8] c"reading mibfile: %s\0A\00"
define void @handle_mibfile_conf(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
br label %5
5: ; preds = %2
%6 = call i32 (...) @snmp_get_do_debugging()
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.2, i64 0, i64 0), i32 1073)
%10 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.2, i64 0, i64 0), i32 1073)
%11 = load i8*, i8** %4
%12 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%13 = load i8*, i8** %4
%14 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %8, %5
br label %16
16: ; preds = %15
%17 = load i8*, i8** %4
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @read_mib to i32 (i8*, ...)*)(i8* %17)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"trace\00"
@.str.1 = [9 x i8] c" %s, %d\0A\00"
@.str.2 = [193 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/luebbers/reconos/refs/heads/master/core/ecos/ecos-patched/ecos/packages/net/snmp/lib/current/src/mib.c\00"
@.str.3 = [20 x i8] c"read_config:initmib\00"
@.str.4 = [21 x i8] c"reading mibfile: %s\0A\00"
define void @handle_mibfile_conf(i8* nocapture readnone %0, i8* %1) {
%3 = tail call i32 (...) @snmp_get_do_debugging()
%4 = icmp eq i32 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.2, i64 0, i64 0), i32 1073)
%7 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.2, i64 0, i64 0), i32 1073)
%8 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %1)
%9 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %1)
br label %10
10: ; preds = %2, %5
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @read_mib to i32 (i8*, ...)*)(i8* %1)
ret void
}