#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 *, char const *, char *, char *, char *, char *,
                          char *);
void version(const char *name) {
  printf("%s (%s) %s\n"
         "Written by %s.\n"
         "\n"
         "Copyright (C) 2005 %s.\n"
         "%s\n",
         name, "procpipe", "0.0.1", "Anthony Liguori", "IBM, Corp.",
         "This is free software; see the source for copying conditions.  There "
         "is NO\n"
         "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR "
         "PURPOSE.");
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
lea    0xf08(%rip),%rdx
lea    0xf0a(%rip),%rcx
lea    0xf09(%rip),%r8
lea    0xf12(%rip),%r9
lea    0xf16(%rip),%rax
mov    %rax,(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
push   %rax
mov    %rdi,%rsi
lea    0xf45(%rip),%rax
mov    %rax,(%rsp)
lea    0xeda(%rip),%rdi
lea    0xf09(%rip),%rdx
lea    0xf0b(%rip),%rcx
lea    0xf0a(%rip),%r8
lea    0xf13(%rip),%r9
call   1030 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [54 x i8] c"%s (%s) %s\0AWritten by %s.\0A\0ACopyright (C) 2005 %s.\0A%s\0A\00"
@.str.1 = [9 x i8] c"procpipe\00"
@.str.2 = [6 x i8] c"0.0.1\00"
@.str.3 = [16 x i8] c"Anthony Liguori\00"
@.str.4 = [11 x i8] c"IBM, Corp.\00"
@.str.5 = [151 x i8] c"This is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\00"
define void @version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"%s (%s) %s\0AWritten by %s.\0A\0ACopyright (C) 2005 %s.\0A%s\0A\00"
@.str.1 = [9 x i8] c"procpipe\00"
@.str.2 = [6 x i8] c"0.0.1\00"
@.str.3 = [16 x i8] c"Anthony Liguori\00"
@.str.4 = [11 x i8] c"IBM, Corp.\00"
@.str.5 = [151 x i8] c"This is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\00"
define void @version(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.5, i64 0, i64 0))
ret void
}