#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void web_page_footer(FILE *f) {
  fprintf(f, "<table style=\"text-align: left; width: 460px; background-color: "
             "#2196F3;\" border=\"0\" cellpadding=\"2\" "
             "cellspacing=\"2\"><tbody>\r\n");
  fprintf(f,
          "<tr><td style=\"vertical-align: top; text-align: center;\"><span "
          "style=\"font-family: Helvetica,Arial,sans-serif; color: white;\"><a "
          "style=\"text-decoration:none; color: white;\" "
          "href=http://ondrej1024.github.io/crelay>crelay</a> | version %s | "
          "%s</span></td></tr>\r\n",
          "0.14", "2019");
  fprintf(f, "</tbody></table></body></html>\r\n");
}


x86 assembly (clang, -O0):
<web_page_footer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf46(%rip),%rsi
lea    0x1044(%rip),%rdx
lea    0x1042(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1035(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<web_page_footer>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    $0x7e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf3b(%rip),%rsi
lea    0x1039(%rip),%rdx
lea    0x1037(%rip),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x102b(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [127 x i8] c"<table style=\22text-align: left; width: 460px; background-color:F3;\22 border=\220\22 cellpadding=\222\22 cellspacing=\222\22><tbody>\0D\0A\00"
@.str.1 = [261 x i8] c"<tr><td style=\22vertical-align: top; text-align: center;\22><span style=\22font-family: Helvetica,Arial,sans-serif; color: white;\22><a style=\22text-decoration:none; color: white;\22 href=http://ondrej1024.github.io/crelay>crelay</a> | version %s | %s</span></td></tr>\0D\0A\00"
@.str.2 = [5 x i8] c"0.14\00"
@.str.3 = [5 x i8] c"2019\00"
@.str.4 = [33 x i8] c"</tbody></table></body></html>\0D\0A\00"
define void @web_page_footer(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [127 x i8] c"<table style=\22text-align: left; width: 460px; background-color:F3;\22 border=\220\22 cellpadding=\222\22 cellspacing=\222\22><tbody>\0D\0A\00"
@.str.1 = [261 x i8] c"<tr><td style=\22vertical-align: top; text-align: center;\22><span style=\22font-family: Helvetica,Arial,sans-serif; color: white;\22><a style=\22text-decoration:none; color: white;\22 href=http://ondrej1024.github.io/crelay>crelay</a> | version %s | %s</span></td></tr>\0D\0A\00"
@.str.2 = [5 x i8] c"0.14\00"
@.str.3 = [5 x i8] c"2019\00"
@.str.4 = [33 x i8] c"</tbody></table></body></html>\0D\0A\00"
define void @web_page_footer(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str, i64 0, i64 0), i64 126, i64 1, i32* %0)
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 32, i64 1, i32* %0)
ret void
}