#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*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, char *, char *);
void setopt_version(const char *value) {
  (void)value;
  printf("%s %s <%s>\n"
         "License GPLv3+: GNU GPL version 3"
         " or later <http://gnu.org/licenses/gpl.html>\n"
         "\n"
         "This is free software; you are free to"
         " change and redistribute it.\n"
         "There is NO WARRANTY, to the extent permitted by law.\n",
         "duplicut", "2.2", "http://github.com/nil0x42/duplicut");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<setopt_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
lea    0xfb8(%rip),%rsi
lea    0xf93(%rip),%rdx
lea    0xf90(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<setopt_version>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xfc3(%rip),%rsi
lea    0xf9e(%rip),%rdx
lea    0xf9b(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [212 x i8] c"%s %s <%s>\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0A\0AThis is free software; you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.1 = [9 x i8] c"duplicut\00"
@.str.2 = [4 x i8] c"2.2\00"
@.str.3 = [35 x i8] c"http://github.com/nil0x42/duplicut\00"
@EXIT_SUCCESS = global i32 0
define void @setopt_version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([212 x i8], [212 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = load i32, i32* @EXIT_SUCCESS
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@.str = [212 x i8] c"%s %s <%s>\0ALicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\0A\0AThis is free software; you are free to change and redistribute it.\0AThere is NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.1 = [9 x i8] c"duplicut\00"
@.str.2 = [4 x i8] c"2.2\00"
@.str.3 = [35 x i8] c"http://github.com/nil0x42/duplicut\00"
@EXIT_SUCCESS = global i32 0
define void @setopt_version(i8* nocapture readnone %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([212 x i8], [212 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%3 = load i32, i32* @EXIT_SUCCESS
%4 = tail call i32 @exit(i32 %3)
unreachable
}