#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 */
struct argp_state {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *, char *,
                           char *, char *, char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ gettext(char *);
void print_version(FILE *stream, struct argp_state *state) {
  fprintf(stream, "%s%s%s%s%s%s%s%s", "argpfrmwrk", " ", "1.0",
          " Copyright (C) ", "yyyy", " ", "Ljubomir Kurij",
          gettext(".\nLicense GPLv3+: GNU GPL version 3 or later "
                  "<http://gnu.org/licenses/gpl.html>\nThis is free software: "
                  "you are free to change and redistribute it.\nThere is NO "
                  "WARRANTY, to the extent permitted by law.\n\n"));
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x38,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xf04(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x20(%rbp),%rdi
lea    0xeb0(%rip),%rsi
lea    0xeba(%rip),%rdx
lea    0xed0(%rip),%r11
lea    0xeb7(%rip),%r8
lea    0xeb4(%rip),%r9
lea    0xebd(%rip),%rbx
lea    0xebb(%rip),%r10
mov    %r11,%rcx
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <fprintf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %rbx
mov    %rdi,%rbx
lea    0xf19(%rip),%rdi
call   1030 <gettext@plt>
lea    0xefe(%rip),%r10
lea    0xef0(%rip),%rcx
lea    0xeeb(%rip),%r11
lea    0xeb4(%rip),%rsi
lea    0xebe(%rip),%rdx
lea    0xec2(%rip),%r8
lea    0xebf(%rip),%r9
mov    %rbx,%rdi
push   %rax
push   %r10
push   %rcx
push   %r11
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.argp_state = type { i32 }
@.str = [17 x i8] c"%s%s%s%s%s%s%s%s\00"
@.str.1 = [11 x i8] c"argpfrmwrk\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [4 x i8] c"1.0\00"
@.str.4 = [16 x i8] c" Copyright (C) \00"
@.str.5 = [5 x i8] c"yyyy\00"
@.str.6 = [15 x i8] c"Ljubomir Kurij\00"
@.str.7 = [203 x i8] c".\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\0A\00"
define void @print_version(i32* %0, %struct.argp_state* %1) {
%3 = alloca i32*
%4 = alloca %struct.argp_state*
store i32* %0, i32** %3
store %struct.argp_state* %1, %struct.argp_state** %4
%5 = load i32*, i32** %3
%6 = call i32 @gettext(i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %6)
ret void
}

LLVM IR (-O2):
%struct.argp_state = type { i32 }
@.str = [17 x i8] c"%s%s%s%s%s%s%s%s\00"
@.str.1 = [11 x i8] c"argpfrmwrk\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [4 x i8] c"1.0\00"
@.str.4 = [16 x i8] c" Copyright (C) \00"
@.str.5 = [5 x i8] c"yyyy\00"
@.str.6 = [15 x i8] c"Ljubomir Kurij\00"
@.str.7 = [203 x i8] c".\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0AThis is free software: you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\0A\00"
define void @print_version(i32* nocapture %0, %struct.argp_state* nocapture readnone %1) {
%3 = tail call i32 @gettext(i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.7, i64 0, i64 0))
%4 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %3)
ret void
}