#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 /*<<< orphan*/ QSlog(char *, char const *, ...);
void ILL_report(const char *msg, const char *fct, const char *file,
                unsigned int line, int with_src_info) {
  if (msg != NULL) {
    QSlog("FAILURE: %s", msg);
    if (with_src_info == 1) {
      if (fct != NULL) {
        QSlog("\tin function %s", fct);
      }
      QSlog("\tin file %s line %d", file, line);
    }
  }
}


x86 assembly (clang, -O0):
<ILL_report>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1189 <ILL_report+0x79>
mov    -0x8(%rbp),%rsi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <QSlog@plt>
cmpl   $0x1,-0x20(%rbp)
jne    1184 <ILL_report+0x74>
cmpq   $0x0,-0x10(%rbp)
je     116f <ILL_report+0x5f>
mov    -0x10(%rbp),%rsi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <QSlog@plt>
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <QSlog@plt>
jmp    1189 <ILL_report+0x79>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ILL_report>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1172 <ILL_report+0x62>
mov    %r8d,%ebx
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rsi
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1030 <QSlog@plt>
cmp    $0x1,%ebx
jne    1172 <ILL_report+0x62>
test   %rbp,%rbp
je     1154 <ILL_report+0x44>
lea    0xec2(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <QSlog@plt>
lea    0xec1(%rip),%rdi
mov    %r15,%rsi
mov    %r14d,%edx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <QSlog@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"FAILURE: %s\00"
@.str.1 = [16 x i8] c"\09in function %s\00"
@.str.2 = [20 x i8] c"\09in file %s line %d\00"
define void @ILL_report(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %29
13: ; preds = %5
%14 = load i8*, i8** %6
%15 = call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i32, i32* %10
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %28
18: ; preds = %13
%19 = load i8*, i8** %7
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i8*, i8** %7
%23 = call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %22)
br label %24
24: ; preds = %21, %18
%25 = load i8*, i8** %8
%26 = load i32, i32* %9
%27 = call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %25, i32 %26)
br label %28
28: ; preds = %24, %13
br label %29
29: ; preds = %28, %5
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"FAILURE: %s\00"
@.str.1 = [16 x i8] c"\09in function %s\00"
@.str.2 = [20 x i8] c"\09in file %s line %d\00"
define void @ILL_report(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = icmp eq i8* %0, null
br i1 %6, label %16, label %7
7: ; preds = %5
%8 = tail call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0)
%9 = icmp eq i32 %4, 1
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = icmp eq i8* %1, null
br i1 %11, label %14, label %12
12: ; preds = %10
%13 = tail call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %14
14: ; preds = %12, %10
%15 = tail call i32 (i8*, i8*, ...) @QSlog(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %2, i32 %3)
br label %16
16: ; preds = %7, %14, %5
ret void
}