#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 *);
int /*<<< orphan*/ show_version_brief(int /*<<< orphan*/ *);
void show_version(FILE *out) {
  show_version_brief(out);
  fprintf(out,
          "Copyright (C) 2009 Everton da Silva Marques\n"
          "\n"
          "This program is free software; you can redistribute it and/or\n"
          "modify it under the terms of the GNU General Public License\n"
          "as published by the Free Software Foundation; either version 2\n"
          "of the License, or (at your option) any later version.\n"
          "\n"
          "This program is distributed in the hope that it will be useful,\n"
          "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
          "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
          "GNU General Public License for more details.\n");
}


x86 assembly (clang, -O0):
<show_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <show_version_brief@plt>
mov    -0x8(%rbp),%rdi
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_version>:
push   %rbx
mov    %rdi,%rbx
call   1040 <show_version_brief@plt>
lea    0xed0(%rip),%rdi
mov    $0x208,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <fwrite@plt>

LLVM IR (-O0):
@.str = [521 x i8] c"Copyright (C) 2009 Everton da Silva Marques\0A\0AThis program is free software; you can redistribute it and/or\0Amodify it under the terms of the GNU General Public License\0Aas published by the Free Software Foundation; either version 2\0Aof the License, or (at your option) any later version.\0A\0AThis program is distributed in the hope that it will be useful,\0Abut WITHOUT ANY WARRANTY; without even the implied warranty of\0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0AGNU General Public License for more details.\0A\00"
define void @show_version(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @show_version_brief(i32* %3)
%5 = load i32*, i32** %2
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([521 x i8], [521 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [521 x i8] c"Copyright (C) 2009 Everton da Silva Marques\0A\0AThis program is free software; you can redistribute it and/or\0Amodify it under the terms of the GNU General Public License\0Aas published by the Free Software Foundation; either version 2\0Aof the License, or (at your option) any later version.\0A\0AThis program is distributed in the hope that it will be useful,\0Abut WITHOUT ANY WARRANTY; without even the implied warranty of\0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0AGNU General Public License for more details.\0A\00"
define void @show_version(i32* %0) {
%2 = tail call i32 @show_version_brief(i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([521 x i8], [521 x i8]* @.str, i64 0, i64 0), i64 520, i64 1, i32* %0)
ret void
}