#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 */
char *gettext(char *);
int /*<<< orphan*/ printf(char *, ...);
void print_header(char *title) {
  printf("Content-Type: text/html\n\n");
  printf(gettext("<html><head><title>CryptNET OpenPGP Public Key "
                 "Server</title></head>\n"));
  printf("<body bgcolor=\"#ffffff\">\n");
  printf("<hr size=\"1\" width=\"100%%\">\n");
  printf(gettext("<center><h2>CryptNET Keyserver</h2></center>\n"));
  printf("<hr size=\"1\" width=\"100%%\">\n");
  printf("<center>\n");
  printf(gettext("[ <a href=\"index.html\">Search</a> ]\n"));
  printf(gettext("[ <a href=\"add.html\">Add A Public Key</a> ]\n"));
  printf(gettext("[ <a href=\"advsrch.html\">Advanced Search</a> ]\n"));
  printf(gettext("[ <a href=\"help.html\">Help</a> ]\n"));
  printf(gettext("[ <a href=\"about.html\">About CKS</a> ]\n"));
  printf("</center>\n");
  printf("<hr size=\"1\" width=\"100%%\">\n");
  printf(gettext("<h3>%s</h3>\n"), title);
}


x86 assembly (clang, -O0):
<print_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf39(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf6c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_header>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0x102c(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb6(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee6(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0xee8(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef7(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf28(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf34(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf30(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
mov    %r14,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Content-Type: text/html\0A\0A\00"
@.str.1 = [70 x i8] c"<html><head><title>CryptNET OpenPGP Public Key Server</title></head>\0A\00"
@.str.2 = [26 x i8] c"<body bgcolor=\22#ffffff\22>\0A\00"
@.str.3 = [29 x i8] c"<hr size=\221\22 width=\22100%%\22>\0A\00"
@.str.4 = [46 x i8] c"<center><h2>CryptNET Keyserver</h2></center>\0A\00"
@.str.5 = [10 x i8] c"<center>\0A\00"
@.str.6 = [37 x i8] c"[ <a href=\22index.html\22>Search</a> ]\0A\00"
@.str.7 = [45 x i8] c"[ <a href=\22add.html\22>Add A Public Key</a> ]\0A\00"
@.str.8 = [48 x i8] c"[ <a href=\22advsrch.html\22>Advanced Search</a> ]\0A\00"
@.str.9 = [34 x i8] c"[ <a href=\22help.html\22>Help</a> ]\0A\00"
@.str.10 = [40 x i8] c"[ <a href=\22about.html\22>About CKS</a> ]\0A\00"
@.str.11 = [11 x i8] c"</center>\0A\00"
@.str.12 = [13 x i8] c"<h3>%s</h3>\0A\00"
define void @print_header(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = call i8* @gettext(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%8 = call i8* @gettext(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* %8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%12 = call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* %12)
%14 = call i8* @gettext(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* %14)
%16 = call i8* @gettext(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* %16)
%18 = call i8* @gettext(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* %18)
%20 = call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%24 = call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%25 = load i8*, i8** %2
%26 = call i32 (i8*, ...) @printf(i8* %24, i8* %25)
ret void
}

LLVM IR (-O2):
@.str.1 = [70 x i8] c"<html><head><title>CryptNET OpenPGP Public Key Server</title></head>\0A\00"
@.str.3 = [29 x i8] c"<hr size=\221\22 width=\22100%%\22>\0A\00"
@.str.4 = [46 x i8] c"<center><h2>CryptNET Keyserver</h2></center>\0A\00"
@.str.6 = [37 x i8] c"[ <a href=\22index.html\22>Search</a> ]\0A\00"
@.str.7 = [45 x i8] c"[ <a href=\22add.html\22>Add A Public Key</a> ]\0A\00"
@.str.8 = [48 x i8] c"[ <a href=\22advsrch.html\22>Advanced Search</a> ]\0A\00"
@.str.9 = [34 x i8] c"[ <a href=\22help.html\22>Help</a> ]\0A\00"
@.str.10 = [40 x i8] c"[ <a href=\22about.html\22>About CKS</a> ]\0A\00"
@.str.12 = [13 x i8] c"<h3>%s</h3>\0A\00"
@str = [25 x i8] c"Content-Type: text/html\0A\00"
@str.13 = [25 x i8] c"<body bgcolor=\22#ffffff\22>\00"
@str.14 = [9 x i8] c"<center>\00"
@str.15 = [10 x i8] c"</center>\00"
define void @print_header(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%3 = tail call i8* @gettext(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i8* @gettext(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0))
%11 = tail call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %11)
%13 = tail call i8* @gettext(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %13)
%15 = tail call i8* @gettext(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %15)
%17 = tail call i8* @gettext(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %17)
%19 = tail call i8* @gettext(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %19)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%23 = tail call i8* @gettext(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %23, i8* %0)
ret void
}