#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", "cqlock", " ", "1.0", " Copyright (C) ",
          "2015", " ", "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    0xf00(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x20(%rbp),%rdi
lea    0xeb0(%rip),%rsi
lea    0xeba(%rip),%rdx
lea    0xecc(%rip),%r11
lea    0xeb3(%rip),%r8
lea    0xeb0(%rip),%r9
lea    0xeb9(%rip),%rbx
lea    0xeb7(%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    0xf15(%rip),%rdi
call   1030 <gettext@plt>
lea    0xefa(%rip),%r10
lea    0xeec(%rip),%rcx
lea    0xee7(%rip),%r11
lea    0xeb4(%rip),%rsi
lea    0xebe(%rip),%rdx
lea    0xebe(%rip),%r8
lea    0xebb(%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 = [7 x i8] c"cqlock\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"2015\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 ([7 x i8], [7 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 = [7 x i8] c"cqlock\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"2015\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 ([7 x i8], [7 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
}