#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 *, char const *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void version_etc(FILE *stream, const char *command_name, const char *package,
                 const char *version, const char *authors) {
  fprintf(stream, "%s (%s) %s\n", command_name, package, version);
  fprintf(stream, "Written by %s.\n", authors);
  fputs("\nCopyright (C) 1999 Free Software Foundation, Inc.\nThis is free "
        "software; see the source for copying conditions.  There is "
        "NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A "
        "PARTICULAR PURPOSE.\n",
        stream);
}


x86 assembly (clang, -O0):
<version_etc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xea3(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rsi
lea    0xea1(%rip),%rdi
call   1030 <fputs@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<version_etc>:
push   %r14
push   %rbx
push   %rax
mov    %r8,%r14
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xec6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xec4(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xec0(%rip),%rdi
mov    $0xca,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%s (%s) %s\0A\00"
@.str.1 = [16 x i8] c"Written by %s.\0A\00"
@.str.2 = [203 x i8] c"\0ACopyright (C) 1999 Free Software Foundation, Inc.\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\0A\00"
define void @version_etc(i32* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i32* %0, i32** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i32*, i32** %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i8*, i8** %9
%15 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13, i8* %14)
%16 = load i32*, i32** %6
%17 = load i8*, i8** %10
%18 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = load i32*, i32** %6
%20 = call i32 @fputs(i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.2, i64 0, i64 0), i32* %19)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s (%s) %s\0A\00"
@.str.1 = [16 x i8] c"Written by %s.\0A\00"
@.str.2 = [203 x i8] c"\0ACopyright (C) 1999 Free Software Foundation, Inc.\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\0A\00"
define void @version_etc(i32* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i8* %3)
%7 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.2, i64 0, i64 0), i64 202, i64 1, i32* %0)
ret void
}