void snmp_store(const char *type) {
  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/snmp_api.c",
          719),
          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/snmp_api.c",
                   719),
          debugmsgtoken("snmp_store", "storing stuff...\n"),
          debugmsg("snmp_store", "storing stuff...\n");
    }
  } while (0);
  snmp_save_persistent(type);
  snmp_call_callbacks(0, 1, 0);
  snmp_clean_persistent(type);
}


x86 assembly (clang, -O0):
<snmp_store>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1060 <snmp_get_do_debugging@plt>
cmp    $0x0,%eax
je     11e8 <snmp_store+0x88>
lea    0xe7d(%rip),%rdi
lea    0xe7c(%rip),%rsi
lea    0xe7e(%rip),%rdx
mov    $0x2cf,%ecx
mov    $0x0,%al
call   1040 <debugmsgtoken@plt>
lea    0xe5c(%rip),%rdi
lea    0xe5b(%rip),%rsi
lea    0xe5d(%rip),%rdx
mov    $0x2cf,%ecx
mov    $0x0,%al
call   1030 <debugmsg@plt>
lea    0xf10(%rip),%rdi
lea    0xf14(%rip),%rsi
mov    $0x0,%al
call   1040 <debugmsgtoken@plt>
lea    0xefb(%rip),%rdi
lea    0xeff(%rip),%rsi
mov    $0x0,%al
call   1030 <debugmsg@plt>
jmp    11ed <snmp_store+0x8d>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1050 <snmp_save_persistent@plt>
xor    %edx,%edx
mov    $0x1,%esi
mov    %edx,%edi
mov    $0x0,%al
call   1080 <snmp_call_callbacks@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1070 <snmp_clean_persistent@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snmp_store>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %eax,%eax
call   1060 <snmp_get_do_debugging@plt>
test   %eax,%eax
je     11dd <snmp_store+0x7d>
lea    0xe83(%rip),%r14
lea    0xe82(%rip),%r15
lea    0xe84(%rip),%r12
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x2cf,%ecx
xor    %eax,%eax
call   1040 <debugmsgtoken@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    $0x2cf,%ecx
xor    %eax,%eax
call   1030 <debugmsg@plt>
lea    0xf19(%rip),%r14
lea    0xf1d(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <debugmsgtoken@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <debugmsg@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <snmp_save_persistent@plt>
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1080 <snmp_call_callbacks@plt>
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1070 <snmp_clean_persistent@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"trace\00"
@.str.1 = [9 x i8] c" %s, %d\0A\00"
@.str.2 = [198 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/snmp_api.c\00"
@.str.3 = [11 x i8] c"snmp_store\00"
@.str.4 = [18 x i8] c"storing stuff...\0A\00"
define void @snmp_store(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = call i32 (...) @snmp_get_do_debugging()
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = 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 ([198 x i8], [198 x i8]* @.str.2, i64 0, i64 0), i32 719)
%8 = 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 ([198 x i8], [198 x i8]* @.str.2, i64 0, i64 0), i32 719)
%9 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %11
11: ; preds = %6, %3
br label %12
12: ; preds = %11
%13 = load i8*, i8** %2
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @snmp_save_persistent to i32 (i8*, ...)*)(i8* %13)
%15 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @snmp_call_callbacks to i32 (i32, i32, i32, ...)*)(i32 0, i32 1, i32 0)
%16 = load i8*, i8** %2
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @snmp_clean_persistent to i32 (i8*, ...)*)(i8* %16)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"trace\00"
@.str.1 = [9 x i8] c" %s, %d\0A\00"
@.str.2 = [198 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/snmp_api.c\00"
@.str.3 = [11 x i8] c"snmp_store\00"
@.str.4 = [18 x i8] c"storing stuff...\0A\00"
define void @snmp_store(i8* %0) {
%2 = tail call i32 (...) @snmp_get_do_debugging()
%3 = icmp eq i32 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = 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 ([198 x i8], [198 x i8]* @.str.2, i64 0, i64 0), i32 719)
%6 = 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 ([198 x i8], [198 x i8]* @.str.2, i64 0, i64 0), i32 719)
%7 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @debugmsgtoken to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @debugmsg to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %9
9: ; preds = %1, %4
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @snmp_save_persistent to i32 (i8*, ...)*)(i8* %0)
%11 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @snmp_call_callbacks to i32 (i32, i32, i32, ...)*)(i32 0, i32 1, i32 0)
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @snmp_clean_persistent to i32 (i8*, ...)*)(i8* %0)
ret void
}