void __assert(assertion, filename, linenumber) const char *assertion;
const char *filename;
int linenumber;
{
  errput("Failed assertion '");
  errput(assertion);
  errput("' in file ");
  errput(filename);
  errput(" at line ");
  errput(itoa(linenumber));
  errput(".\n");
  abort();
}


x86 assembly (clang, -O0):
<__assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
mov    -0x14(%rbp),%edi
mov    $0x0,%al
call   1050 <itoa@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <errput@plt>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <errput@plt>
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<__assert>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1040 <errput@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <errput@plt>
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1040 <errput@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <errput@plt>
lea    0xeaa(%rip),%rdi
xor    %eax,%eax
call   1040 <errput@plt>
mov    %r14d,%edi
xor    %eax,%eax
call   1050 <itoa@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <errput@plt>
lea    0xe93(%rip),%rdi
xor    %eax,%eax
call   1040 <errput@plt>
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Failed assertion '\00"
@.str.1 = [11 x i8] c"' in file \00"
@.str.2 = [10 x i8] c" at line \00"
@.str.3 = [3 x i8] c".\0A\00"
define void @__assert(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = load i8*, i8** %4
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* %8)
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%11 = load i8*, i8** %5
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* %11)
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* %6
%15 = call i32 (i32, ...) bitcast (i32 (...)* @itoa to i32 (i32, ...)*)(i32 %14)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @errput to i32 (i32, ...)*)(i32 %15)
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
unreachable
}

LLVM IR (-O2):
@.str = [19 x i8] c"Failed assertion '\00"
@.str.1 = [11 x i8] c"' in file \00"
@.str.2 = [10 x i8] c" at line \00"
@.str.3 = [3 x i8] c".\0A\00"
define void @__assert(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* %0)
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* %1)
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @itoa to i32 (i32, ...)*)(i32 %2)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @errput to i32 (i32, ...)*)(i32 %9)
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @errput to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
tail call void @abort()
unreachable
}