#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 strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int);
void decibel_assert(const char *e, const char *file, const char *func,
                    const char *line) {
  write(2, file, strlen(file));
  write(2, ":", 1);
  write(2, line, strlen(line));
  write(2, ": ", 2);
  write(2, func, strlen(func));
  write(2, ": Assertion \'", 13);
  write(2, e, strlen(e));
  write(2, "\' failed.\n", 10);
}


x86 assembly (clang, -O0):
<decibel_assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    $0x2,%edi
lea    0xe9b(%rip),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    $0x2,%edx
lea    0xe66(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    $0x2,%edi
lea    0xe35(%rip),%rsi
mov    $0xd,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    $0x2,%edi
lea    0xe0c(%rip),%rsi
mov    $0xa,%edx
call   1030 <write@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decibel_assert>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r12
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xeae(%rip),%rsi
mov    $0x2,%edi
mov    $0x1,%edx
call   1030 <write@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %r12,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe83(%rip),%rsi
mov    $0x2,%edi
mov    $0x2,%edx
call   1030 <write@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %r15,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe59(%rip),%rsi
mov    $0x2,%edi
mov    $0xd,%edx
call   1030 <write@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe3a(%rip),%rsi
mov    $0x2,%edi
mov    $0xa,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [2 x i8] c":\00"
@.str.1 = [3 x i8] c": \00"
@.str.2 = [14 x i8] c": Assertion '\00"
@.str.3 = [11 x i8] c"' failed.\0A\00"
define void @decibel_assert(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %6
%10 = load i8*, i8** %6
%11 = call i32 @strlen(i8* %10)
%12 = call i32 @write(i32 2, i8* %9, i32 %11)
%13 = call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%14 = load i8*, i8** %8
%15 = load i8*, i8** %8
%16 = call i32 @strlen(i8* %15)
%17 = call i32 @write(i32 2, i8* %14, i32 %16)
%18 = call i32 @write(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%19 = load i8*, i8** %7
%20 = load i8*, i8** %7
%21 = call i32 @strlen(i8* %20)
%22 = call i32 @write(i32 2, i8* %19, i32 %21)
%23 = call i32 @write(i32 2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 13)
%24 = load i8*, i8** %5
%25 = load i8*, i8** %5
%26 = call i32 @strlen(i8* %25)
%27 = call i32 @write(i32 2, i8* %24, i32 %26)
%28 = call i32 @write(i32 2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 10)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c":\00"
@.str.1 = [3 x i8] c": \00"
@.str.2 = [14 x i8] c": Assertion '\00"
@.str.3 = [11 x i8] c"' failed.\0A\00"
define void @decibel_assert(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 @strlen(i8* %1)
%6 = tail call i32 @write(i32 2, i8* %1, i32 %5)
%7 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%8 = tail call i32 @strlen(i8* %3)
%9 = tail call i32 @write(i32 2, i8* %3, i32 %8)
%10 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%11 = tail call i32 @strlen(i8* %2)
%12 = tail call i32 @write(i32 2, i8* %2, i32 %11)
%13 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 13)
%14 = tail call i32 @strlen(i8* %0)
%15 = tail call i32 @write(i32 2, i8* %0, i32 %14)
%16 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 10)
ret void
}