#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 *);
int web_module_popup_headers(const char *page) {
  printf("HTTP/1.1 200 OK\n");
  printf("Content-Type: text/html; charset=UTF-8\n");
  printf("\n<html>\n<head>\n<meta charset=\"utf-8\" /><title>Chromecast "
         "Configuration Panel - Popup</title>\n");
  printf("\n    <script "
         "src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/"
         "jquery.min.js\" type=\"text/javascript\"></script>");
  printf(
      "\n    <script src=\"javascripts/vendor/jquery-ui-1.8.18.custom.min.js\" "
      "type=\"text/javascript\"></script>");
  printf("\n  </head>");
  printf("\n  <body>");
}


x86 assembly (clang, -O0):
<web_module_popup_headers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<web_module_popup_headers>:
push   %rax
lea    0xfc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1040 <printf@plt>
lea    0xf76(%rip),%rdi
call   1040 <printf@plt>
lea    0xf75(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"HTTP/1.1 200 OK\0A\00"
@.str.1 = [40 x i8] c"Content-Type: text/html; charset=UTF-8\0A\00"
@.str.2 = [94 x i8] c"\0A<html>\0A<head>\0A<meta charset=\22utf-8\22 /><title>Chromecast Configuration Panel - Popup</title>\0A\00"
@.str.3 = [116 x i8] c"\0A <script src=\22http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\22 type=\22text/javascript\22></script>\00"
@.str.4 = [102 x i8] c"\0A <script src=\22javascripts/vendor/jquery-ui-1.8.18.custom.min.js\22 type=\22text/javascript\22></script>\00"
@.str.5 = [11 x i8] c"\0A </head>\00"
@.str.6 = [10 x i8] c"\0A <body>\00"
define i32 @web_module_popup_headers(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@.str.3 = [116 x i8] c"\0A <script src=\22http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\22 type=\22text/javascript\22></script>\00"
@.str.4 = [102 x i8] c"\0A <script src=\22javascripts/vendor/jquery-ui-1.8.18.custom.min.js\22 type=\22text/javascript\22></script>\00"
@.str.5 = [11 x i8] c"\0A </head>\00"
@.str.6 = [10 x i8] c"\0A <body>\00"
@str = [16 x i8] c"HTTP/1.1 200 OK\00"
@str.7 = [39 x i8] c"Content-Type: text/html; charset=UTF-8\00"
@str.8 = [93 x i8] c"\0A<html>\0A<head>\0A<meta charset=\22utf-8\22 /><title>Chromecast Configuration Panel - Popup</title>\00"
define i32 @web_module_popup_headers(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
ret i32 undef
}