#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 Banner(FILE *fp, char *banner) {
  fprintf(
      fp, "%s\n%s %s (%s)\n%s\n%s\n", banner, "SQUID", "1.9g", "Oct 2002",
      "Copyright (C) 1992-2002 HHMI/Washington University School of Medicine",
      "Freely distributed under the GNU General Public License (GPL)");
  fprintf(fp, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
              "- - - -\n");
}


x86 assembly (clang, -O0):
<Banner>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xed1(%rip),%rsi
lea    0xedf(%rip),%rcx
lea    0xede(%rip),%r8
lea    0xedc(%rip),%r9
lea    0xede(%rip),%r10
lea    0xf1d(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf40(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Banner>:
push   %rbx
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xf41(%rip),%r10
lea    0xef4(%rip),%r11
lea    0xec4(%rip),%rsi
lea    0xed2(%rip),%rcx
lea    0xed1(%rip),%r8
lea    0xecf(%rip),%r9
xor    %eax,%eax
push   %r10
push   %r11
call   1030 <fprintf@plt>
add    $0x10,%rsp
lea    0xf46(%rip),%rdi
mov    $0x48,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"%s\0A%s %s (%s)\0A%s\0A%s\0A\00"
@.str.1 = [6 x i8] c"SQUID\00"
@.str.2 = [5 x i8] c"1.9g\00"
@.str.3 = [9 x i8] c"Oct 2002\00"
@.str.4 = [70 x i8] c"Copyright (C) 1992-2002 HHMI/Washington University School of Medicine\00"
@.str.5 = [62 x i8] c"Freely distributed under the GNU General Public License (GPL)\00"
@.str.6 = [73 x i8] c"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\0A\00"
define void @Banner(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 = load i8*, i8** %4
%7 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %6, i8* getelementptr inbounds ([6 x i8], [6 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 ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%8 = load i32*, i32** %3
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"%s\0A%s %s (%s)\0A%s\0A%s\0A\00"
@.str.1 = [6 x i8] c"SQUID\00"
@.str.2 = [5 x i8] c"1.9g\00"
@.str.3 = [9 x i8] c"Oct 2002\00"
@.str.4 = [70 x i8] c"Copyright (C) 1992-2002 HHMI/Washington University School of Medicine\00"
@.str.5 = [62 x i8] c"Freely distributed under the GNU General Public License (GPL)\00"
@.str.6 = [73 x i8] c"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\0A\00"
define void @Banner(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %1, i8* getelementptr inbounds ([6 x i8], [6 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 ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0), i64 72, i64 1, i32* %0)
ret void
}