#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*/ printf(char *, ...);
void print_html(char *CSSFILE) {
  printf("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n"
         "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
  printf("<!--This file created by %s (v%s) by MS3FGX-->\n", "livelog.cgi",
         "1.1");
  printf("<html>\n"
         "<head>\n"
         "<title>Bluelog Live</title>\n"
         "<meta http-equiv=\"Content-Type\" content=\"text/html; "
         "charset=iso-8859-1\" >\n");
  printf("<link href=\"%s%s\" type=\"text/css\" rel=\"stylesheet\" "
         "/></head><body>\n",
         "../", CSSFILE);
  printf(
      "<link rel=\"icon\" type=\"image/png\" href=\"/images/favicon.png\" />\n"
      "<link rel=\"shortcut icon\" href=\"/images/favicon.png\" />\n"
      "<META HTTP-EQUIV=\"refresh\" CONTENT=\"20\">\n"
      "</head>\n"
      "<body>\n"
      "<div id=\"container\">\n"
      "<div id=\"header\">\n"
      "<span style=\"position:relative;left:15px;top:45px\">\n"
      "<a href=\"http://www.digifail.com/\" target=\"_blank\" "
      "title=\"DigiFAIL\"><img src=\"/images/digifail_logo.png\" "
      "border=\"0\"></a>\n"
      "</span>\n"
      "</div>\n");
  printf("<div class=\"footer\">\n"
         "<h4>\n"
         "<a href=\"about.html\" "
         "onClick=\"window.open('about.html','About','toolbar=no,location=no,"
         "directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="
         "500,height=320,left=50,top=50'); return false;\">About</a>\n"
         "&nbsp;&nbsp;\n"
         "<a href=\"contact.html\" "
         "onClick=\"window.open('contact.html','Contact','toolbar=no,location="
         "no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,"
         "width=500,height=510,left=50,top=50'); return false;\">Contact</a>\n"
         "</h4>\n"
         "</div>\n");
}


x86 assembly (clang, -O0):
<print_html>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
lea    0xf73(%rip),%rsi
lea    0xf78(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdx
lea    0xfd1(%rip),%rdi
lea    0x100e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_html>:
push   %rbx
mov    %rdi,%rbx
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
lea    0xef2(%rip),%rsi
lea    0xef7(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfaf(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
lea    0xf1e(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1186(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [123 x i8] c"<!DOCTYPE html PUBLIC \22-//W3C//DTD XHTML 1.0 Transitional//EN\22\0A\22http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\22>\0A\00"
@.str.1 = [48 x i8] c"<!--This file created by %s (v%s) by MS3FGX-->\0A\00"
@.str.2 = [12 x i8] c"livelog.cgi\00"
@.str.3 = [4 x i8] c"1.1\00"
@.str.4 = [117 x i8] c"<html>\0A<head>\0A<title>Bluelog Live</title>\0A<meta http-equiv=\22Content-Type\22 content=\22text/html; charset=iso-8859-1\22 >\0A\00"
@.str.5 = [68 x i8] c"<link href=\22%s%s\22 type=\22text/css\22 rel=\22stylesheet\22 /></head><body>\0A\00"
@.str.6 = [4 x i8] c"../\00"
@.str.7 = [404 x i8] c"<link rel=\22icon\22 type=\22image/png\22 href=\22/images/favicon.png\22 />\0A<link rel=\22shortcut icon\22 href=\22/images/favicon.png\22 />\0A<META HTTP-EQUIV=\22refresh\22 CONTENT=\2220\22>\0A</head>\0A<body>\0A<div id=\22container\22>\0A<div id=\22header\22>\0A<span style=\22position:relative;left:15px;top:45px\22>\0A<a href=\22http://www.digifail.com/\22 target=\22_blank\22 title=\22DigiFAIL\22><img src=\22/images/digifail_logo.png\22 border=\220\22></a>\0A</span>\0A</div>\0A\00"
@.str.8 = [489 x i8] c"<div class=\22footer\22>\0A<h4>\0A<a href=\22about.html\22 onClick=\22window.open('about.html','About','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=320,left=50,top=50'); return false;\22>About</a>\0A&nbsp;&nbsp;\0A<a href=\22contact.html\22 onClick=\22window.open('contact.html','Contact','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=510,left=50,top=50'); return false;\22>Contact</a>\0A</h4>\0A</div>\0A\00"
define void @print_html(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.4, i64 0, i64 0))
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([404 x i8], [404 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([489 x i8], [489 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [48 x i8] c"<!--This file created by %s (v%s) by MS3FGX-->\0A\00"
@.str.2 = [12 x i8] c"livelog.cgi\00"
@.str.3 = [4 x i8] c"1.1\00"
@.str.5 = [68 x i8] c"<link href=\22%s%s\22 type=\22text/css\22 rel=\22stylesheet\22 /></head><body>\0A\00"
@.str.6 = [4 x i8] c"../\00"
@str = [122 x i8] c"<!DOCTYPE html PUBLIC \22-//W3C//DTD XHTML 1.0 Transitional//EN\22\0A\22http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\22>\00"
@str.9 = [116 x i8] c"<html>\0A<head>\0A<title>Bluelog Live</title>\0A<meta http-equiv=\22Content-Type\22 content=\22text/html; charset=iso-8859-1\22 >\00"
@str.10 = [403 x i8] c"<link rel=\22icon\22 type=\22image/png\22 href=\22/images/favicon.png\22 />\0A<link rel=\22shortcut icon\22 href=\22/images/favicon.png\22 />\0A<META HTTP-EQUIV=\22refresh\22 CONTENT=\2220\22>\0A</head>\0A<body>\0A<div id=\22container\22>\0A<div id=\22header\22>\0A<span style=\22position:relative;left:15px;top:45px\22>\0A<a href=\22http://www.digifail.com/\22 target=\22_blank\22 title=\22DigiFAIL\22><img src=\22/images/digifail_logo.png\22 border=\220\22></a>\0A</span>\0A</div>\00"
@str.11 = [488 x i8] c"<div class=\22footer\22>\0A<h4>\0A<a href=\22about.html\22 onClick=\22window.open('about.html','About','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=320,left=50,top=50'); return false;\22>About</a>\0A&nbsp;&nbsp;\0A<a href=\22contact.html\22 onClick=\22window.open('contact.html','Contact','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=510,left=50,top=50'); return false;\22>Contact</a>\0A</h4>\0A</div>\00"
define void @print_html(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([403 x i8], [403 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([488 x i8], [488 x i8]* @str.11, i64 0, i64 0))
ret void
}