#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 _tinytest_get_verbosity();
int /*<<< orphan*/ printf(char *, char const *, ...);
void dnslogcb(int w, const char *m) {
  do {
    if (_tinytest_get_verbosity() > 1)
      do {
        printf("\n  %s %s:%d: ", "  OK",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/T-Rex/wxKinectHelper/refs/"
               "heads/master/libevent/test/regress_main.c",
               106);
        printf("%s", m);
      } while (0);
  } while (0);
}


x86 assembly (clang, -O0):
<dnslogcb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <_tinytest_get_verbosity@plt>
cmp    $0x1,%eax
jle    117c <dnslogcb+0x5c>
jmp    1144 <dnslogcb+0x24>
lea    0xeb5(%rip),%rdi
lea    0xebc(%rip),%rsi
lea    0xeba(%rip),%rdx
mov    $0x6a,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117c <dnslogcb+0x5c>
jmp    1181 <dnslogcb+0x61>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dnslogcb>:
push   %rbx
mov    %rsi,%rbx
xor    %eax,%eax
call   1040 <_tinytest_get_verbosity@plt>
cmp    $0x2,%eax
jl     1163 <dnslogcb+0x43>
lea    0xec9(%rip),%rdi
lea    0xed0(%rip),%rsi
lea    0xece(%rip),%rdx
mov    $0x6a,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"\0A %s %s:%d: \00"
@.str.1 = [5 x i8] c" OK\00"
@.str.2 = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/T-Rex/wxKinectHelper/refs/heads/master/libevent/test/regress_main.c\00"
@.str.3 = [3 x i8] c"%s\00"
define void @dnslogcb(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
br label %5
5: ; preds = %2
%6 = call i32 (...) @_tinytest_get_verbosity()
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %14
8: ; preds = %5
br label %9
9: ; preds = %8
%10 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.2, i64 0, i64 0), i32 106)
%11 = load i8*, i8** %4
%12 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %11)
br label %13
13: ; preds = %9
br label %14
14: ; preds = %13, %5
br label %15
15: ; preds = %14
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"\0A %s %s:%d: \00"
@.str.1 = [5 x i8] c" OK\00"
@.str.2 = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/T-Rex/wxKinectHelper/refs/heads/master/libevent/test/regress_main.c\00"
@.str.3 = [3 x i8] c"%s\00"
define void @dnslogcb(i32 %0, i8* %1) {
%3 = tail call i32 (...) @_tinytest_get_verbosity()
%4 = icmp sgt i32 %3, 1
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.2, i64 0, i64 0), i32 106)
%7 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %1)
br label %8
8: ; preds = %2, %5
ret void
}