#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*/ abort();
int /*<<< orphan*/ strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ write_itoa(int, unsigned int);
void __assert_fail(const char *msg, const char *file, unsigned line,
                   const char *func) {
  write(2, ("mf"), strlen(("mf")));
  ;
  write(2, (": assertion failure: `"), strlen((": assertion failure: `")));
  ;
  write(2, msg, strlen(msg));
  write(2, ("' in "), strlen(("' in ")));
  ;
  write(2, func, strlen(func));
  write(2, (" at "), strlen((" at ")));
  ;
  write(2, file, strlen(file));
  write(2, (":"), strlen((":")));
  ;
  write_itoa(2, line);
  write(2, ("\n"), strlen(("\n")));
  ;
  abort();
}


x86 assembly (clang, -O0):
<__assert_fail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
lea    0xea2(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xe8f(%rip),%rsi
call   1040 <write@plt>
lea    0xe86(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xe73(%rip),%rsi
call   1040 <write@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1040 <write@plt>
lea    0xe5d(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xe4a(%rip),%rsi
call   1040 <write@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1040 <write@plt>
lea    0xe23(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xe10(%rip),%rsi
call   1040 <write@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1040 <write@plt>
lea    0xde8(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xdd5(%rip),%rsi
call   1040 <write@plt>
mov    -0x14(%rbp),%esi
mov    $0x2,%edi
call   1060 <write_itoa@plt>
lea    0xdbe(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xdab(%rip),%rsi
call   1040 <write@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<__assert_fail>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rcx,%r12
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xea5(%rip),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xe8a(%rip),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xe6c(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %r12,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %r12,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xe3d(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %r15,%rsi
mov    %eax,%edx
call   1040 <write@plt>
lea    0xe0d(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    $0x2,%edi
mov    %r14d,%esi
call   1060 <write_itoa@plt>
lea    0xde4(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"mf\00"
@.str.1 = [23 x i8] c": assertion failure: `\00"
@.str.2 = [6 x i8] c"' in \00"
@.str.3 = [5 x i8] c" at \00"
@.str.4 = [2 x i8] c":\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @__assert_fail(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @write(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @write(i32 2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i8*, i8** %5
%14 = load i8*, i8** %5
%15 = call i32 @strlen(i8* %14)
%16 = call i32 @write(i32 2, i8* %13, i32 %15)
%17 = call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 @write(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %17)
%19 = load i8*, i8** %8
%20 = load i8*, i8** %8
%21 = call i32 @strlen(i8* %20)
%22 = call i32 @write(i32 2, i8* %19, i32 %21)
%23 = call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @write(i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = load i8*, i8** %6
%26 = load i8*, i8** %6
%27 = call i32 @strlen(i8* %26)
%28 = call i32 @write(i32 2, i8* %25, i32 %27)
%29 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%30 = call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = load i32, i32* %7
%32 = call i32 @write_itoa(i32 2, i32 %31)
%33 = call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 %33)
%35 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"mf\00"
@.str.1 = [23 x i8] c": assertion failure: `\00"
@.str.2 = [6 x i8] c"' in \00"
@.str.3 = [5 x i8] c" at \00"
@.str.4 = [2 x i8] c":\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @__assert_fail(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = tail call i32 @strlen(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = tail call i32 @strlen(i8* %0)
%10 = tail call i32 @write(i32 2, i8* %0, i32 %9)
%11 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = tail call i32 @strlen(i8* %3)
%14 = tail call i32 @write(i32 2, i8* %3, i32 %13)
%15 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = tail call i32 @strlen(i8* %1)
%18 = tail call i32 @write(i32 2, i8* %1, i32 %17)
%19 = tail call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%20 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = tail call i32 @write_itoa(i32 2, i32 %2)
%22 = tail call i32 @strlen(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%23 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = tail call i32 (...) @abort()
unreachable
}