#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(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void do_version(const char *name) {
  fprintf(stderr,
          "%s (Unix-Connect) "
          "0.94"
          "\n"
          "Copyright "
          "(C) 1993-1994 Martin Husemann,\n"
          "(C) 1995-1998 Christopher Creutzig, (C) 1995-2000 Moritz Both,\n"
          "(C) 1995-2001 Dirk Meyer, (C) 1997-2001 Detlef Wuerkner,\n"
          "(C) 1997-2000 Matthias Andree, (C) 1997-2000 Andreas Barth,\n"
          "(C) 1999-2000 Krischan Jodies.\n"
          "\n"
          "Unix-Connect comes with ABSOLUTELY NO WARRANTY,\n"
          "to the extent permitted by law.\n"
          "You may redistribute copies of Unix-Connect\n"
          "under the terms of the GNU General Public License.\n"
          "For more information about these matters,\n"
          "see the files named COPYING.\n",
          name);
  exit(0);
}


x86 assembly (clang, -O0):
<do_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<do_version>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [523 x i8] c"%s (Unix-Connect) 0.94\0ACopyright (C) 1993-1994 Martin Husemann,\0A(C) 1995-1998 Christopher Creutzig, (C) 1995-2000 Moritz Both,\0A(C) 1995-2001 Dirk Meyer, (C) 1997-2001 Detlef Wuerkner,\0A(C) 1997-2000 Matthias Andree, (C) 1997-2000 Andreas Barth,\0A(C) 1999-2000 Krischan Jodies.\0A\0AUnix-Connect comes with ABSOLUTELY NO WARRANTY,\0Ato the extent permitted by law.\0AYou may redistribute copies of Unix-Connect\0Aunder the terms of the GNU General Public License.\0AFor more information about these matters,\0Asee the files named COPYING.\0A\00"
define void @do_version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([523 x i8], [523 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [523 x i8] c"%s (Unix-Connect) 0.94\0ACopyright (C) 1993-1994 Martin Husemann,\0A(C) 1995-1998 Christopher Creutzig, (C) 1995-2000 Moritz Both,\0A(C) 1995-2001 Dirk Meyer, (C) 1997-2001 Detlef Wuerkner,\0A(C) 1997-2000 Matthias Andree, (C) 1997-2000 Andreas Barth,\0A(C) 1999-2000 Krischan Jodies.\0A\0AUnix-Connect comes with ABSOLUTELY NO WARRANTY,\0Ato the extent permitted by law.\0AYou may redistribute copies of Unix-Connect\0Aunder the terms of the GNU General Public License.\0AFor more information about these matters,\0Asee the files named COPYING.\0A\00"
define void @do_version(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([523 x i8], [523 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 0)
unreachable
}