#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*/ print_header();
int /*<<< orphan*/ printf(char *, ...);
void print_html_header(char *titel) {
  print_header();
  printf("<html>\n<head>\n");
  printf("<title>%s</title>\n", titel);
  printf("<meta charset=\"utf-8\" />\n");
  printf("<link rel=\"stylesheet\" type=\"text/css\" "
         "href=\"http://maltin.pisces.uberspace.de/it2/style.css\" />\n");
  printf("</head><body>\n");
}


x86 assembly (clang, -O0):
<print_html_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1040 <print_header@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_html_header>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <print_header@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xf24(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"<html>\0A<head>\0A\00"
@.str.1 = [19 x i8] c"<title>%s</title>\0A\00"
@.str.2 = [26 x i8] c"<meta charset=\22utf-8\22 />\0A\00"
@.str.3 = [98 x i8] c"<link rel=\22stylesheet\22 type=\22text/css\22 href=\22http://maltin.pisces.uberspace.de/it2/style.css\22 />\0A\00"
@.str.4 = [15 x i8] c"</head><body>\0A\00"
define void @print_html_header(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @print_header()
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"<title>%s</title>\0A\00"
@str = [14 x i8] c"<html>\0A<head>\00"
@str.5 = [25 x i8] c"<meta charset=\22utf-8\22 />\00"
@str.6 = [97 x i8] c"<link rel=\22stylesheet\22 type=\22text/css\22 href=\22http://maltin.pisces.uberspace.de/it2/style.css\22 />\00"
@str.7 = [14 x i8] c"</head><body>\00"
define void @print_html_header(i8* %0) {
%2 = tail call i32 (...) @print_header()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.5, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.6, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.7, i64 0, i64 0))
ret void
}