#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*/ fprintf(int /*<<< orphan*/, char const *, char *, int, int,
                           char *);
int /*<<< orphan*/ stdout;
void not_found(const char *refer) {
  static const char *error =
      "<div class=\"pContainer\">"
      "<span class=\"pName\">%s <i>rev.%d/db-%d</i></span>"
      "<div class=\"pComment\">"
      "<h2>404 - Not Found</h2>"
      "<span>"
      "The requested URL doesn't refer to any existing resource on this "
      "server.<br/>"
      "It may have been pruned or deleted."
      "</span>"
      "<br/>"
      "<div class=\"navi controls\">[<a href=\"%s\">Go back</a>]</div>"
      "</div></div>";
  fprintf(stdout, error, "akari-bbs", 14, 4, (!refer) ? "/" : refer);
}


x86 assembly (clang, -O0):
<not_found>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2ef9(%rip),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    114e <not_found+0x3e>
lea    0x1006(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    1156 <not_found+0x46>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%r9
lea    0xfd9(%rip),%rdx
mov    $0xe,%ecx
mov    $0x4,%r8d
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<not_found>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
test   %rdi,%rdi
lea    0x1028(%rip),%r9
cmovne %rdi,%r9
lea    0xed2(%rip),%rsi
lea    0x100c(%rip),%rdx
mov    %eax,%edi
mov    $0xe,%ecx
mov    $0x4,%r8d
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@not_found.error = internal global i8* getelementptr inbounds ([321 x i8], [321 x i8]* @.str, i32 0, i32 0)
@.str = [321 x i8] c"<div class=\22pContainer\22><span class=\22pName\22>%s <i>rev.%d/db-%d</i></span><div class=\22pComment\22><h2>404 - Not Found</h2><span>The requested URL doesn't refer to any existing resource on this server.<br/>It may have been pruned or deleted.</span><br/><div class=\22navi controls\22>[<a href=\22%s\22>Go back</a>]</div></div></div>\00"
@stdout = global i32 0
@.str.1 = [10 x i8] c"akari-bbs\00"
@.str.2 = [2 x i8] c"/\00"
define void @not_found(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = load i8*, i8** @not_found.error
%5 = load i8*, i8** %2
%6 = icmp ne i8* %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
br label %10
8: ; preds = %1
%9 = load i8*, i8** %2
br label %10
10: ; preds = %8, %7
%11 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %7 ], [ %9, %8 ]
%12 = call i32 @fprintf(i32 %3, i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 14, i32 4, i8* %11)
ret void
}

LLVM IR (-O2):
@.str = [321 x i8] c"<div class=\22pContainer\22><span class=\22pName\22>%s <i>rev.%d/db-%d</i></span><div class=\22pComment\22><h2>404 - Not Found</h2><span>The requested URL doesn't refer to any existing resource on this server.<br/>It may have been pruned or deleted.</span><br/><div class=\22navi controls\22>[<a href=\22%s\22>Go back</a>]</div></div></div>\00"
@stdout = global i32 0
@.str.1 = [10 x i8] c"akari-bbs\00"
@.str.2 = [2 x i8] c"/\00"
define void @not_found(i8* %0) {
%2 = load i32, i32* @stdout
%3 = icmp eq i8* %0, null
%4 = select i1 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %0
%5 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([321 x i8], [321 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 14, i32 4, i8* %4)
ret void
}