#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 print_footer(FILE *fp, char *reponame) {
  fprintf(fp, "</td>\n</tr>\n<tr bgcolor=\"%s\">\n<td align=\"center\">",
          "#FFFFFF");
  fprintf(fp,
          "<strong>%s darcs statistics generated by "
          "<b>darcsstats</b></strong><br>\n",
          reponame);
  fprintf(fp, "These statistics are provided purely for interested\n"
              "developers, and are not intended to reflect quality - or -\n"
              "quality of work done by any given developer in darcs, merely\n"
              "to show activity of operations in the darcs repository\n"
              "performed by all developers.  If you want to use them to \n"
              "motivate yourself, that's fine, but keep in mind that a bit\n"
              "of useful work is more meaningful than a lot of useless\n"
              "work.<br>\nCreated by "
              "<a href=\"http://vmiklos.hu/\">Miklos Vajna</a>\n"
              "</td></tr></table></font>");
  fprintf(fp, "</body></html>");
}


x86 assembly (clang, -O0):
<print_footer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed5(%rip),%rsi
lea    0xf00(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xef2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf29(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1105(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_footer>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xecf(%rip),%rsi
lea    0xefa(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xef4(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf29(%rip),%rdi
mov    $0x1ed,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x10fe(%rip),%rdi
mov    $0xe,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"</td>\0A</tr>\0A<tr bgcolor=\22%s\22>\0A<td align=\22center\22>\00"
@.str.1 = [8 x i8] c"#FFFFFF\00"
@.str.2 = [73 x i8] c"<strong>%s darcs statistics generated by <b>darcsstats</b></strong><br>\0A\00"
@.str.3 = [494 x i8] c"These statistics are provided purely for interested\0Adevelopers, and are not intended to reflect quality - or -\0Aquality of work done by any given developer in darcs, merely\0Ato show activity of operations in the darcs repository\0Aperformed by all developers. If you want to use them to \0Amotivate yourself, that's fine, but keep in mind that a bit\0Aof useful work is more meaningful than a lot of useless\0Awork.<br>\0ACreated by <a href=\22http://vmiklos.hu/\22>Miklos Vajna</a>\0A</td></tr></table></font>\00"
@.str.4 = [15 x i8] c"</body></html>\00"
define void @print_footer(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = load i8*, i8** %4
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%10 = load i32*, i32** %3
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([494 x i8], [494 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32*, i32** %3
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [50 x i8] c"</td>\0A</tr>\0A<tr bgcolor=\22%s\22>\0A<td align=\22center\22>\00"
@.str.1 = [8 x i8] c"#FFFFFF\00"
@.str.2 = [73 x i8] c"<strong>%s darcs statistics generated by <b>darcsstats</b></strong><br>\0A\00"
@.str.3 = [494 x i8] c"These statistics are provided purely for interested\0Adevelopers, and are not intended to reflect quality - or -\0Aquality of work done by any given developer in darcs, merely\0Ato show activity of operations in the darcs repository\0Aperformed by all developers. If you want to use them to \0Amotivate yourself, that's fine, but keep in mind that a bit\0Aof useful work is more meaningful than a lot of useless\0Awork.<br>\0ACreated by <a href=\22http://vmiklos.hu/\22>Miklos Vajna</a>\0A</td></tr></table></font>\00"
@.str.4 = [15 x i8] c"</body></html>\00"
define void @print_footer(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([494 x i8], [494 x i8]* @.str.3, i64 0, i64 0), i64 493, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i64 14, i64 1, i32* %0)
ret void
}