#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ stdout;
void version() {
  printf("%s (%s) %s\n", "owonparse", "owon-utils", "0.1");
  fputs("License GPLv3+: GNU GPL version 3 or later "
        "<http://gnu.org/licenses/gpl.html>.\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"
        "\n",
        stdout);
  printf("Written by %s\n", "Lana Larsen");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
lea    0xeca(%rip),%rsi
lea    0xecd(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
lea    0xebe(%rip),%rdi
call   1040 <fputs@plt>
lea    0xf7c(%rip),%rdi
lea    0xf84(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xecd(%rip),%rsi
lea    0xed0(%rip),%rdx
lea    0xed4(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
call   1040 <fputs@plt>
lea    0xf7f(%rip),%rdi
lea    0xf87(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%s (%s) %s\0A\00"
@.str.1 = [10 x i8] c"owonparse\00"
@.str.2 = [11 x i8] c"owon-utils\00"
@.str.3 = [4 x i8] c"0.1\00"
@.str.4 = [202 x i8] c"License 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"
@stdout = global i32 0
@.str.5 = [15 x i8] c"Written by %s\0A\00"
@.str.6 = [12 x i8] c"Lana Larsen\00"
@EXIT_SUCCESS = global i32 0
define void @version() {
%1 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 @fputs(i8* getelementptr inbounds ([202 x i8], [202 x i8]* @.str.4, i64 0, i64 0), i32 %2)
%4 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%5 = load i32, i32* @EXIT_SUCCESS
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s (%s) %s\0A\00"
@.str.1 = [10 x i8] c"owonparse\00"
@.str.2 = [11 x i8] c"owon-utils\00"
@.str.3 = [4 x i8] c"0.1\00"
@.str.4 = [202 x i8] c"License 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"
@stdout = global i32 0
@.str.5 = [15 x i8] c"Written by %s\0A\00"
@.str.6 = [12 x i8] c"Lana Larsen\00"
@EXIT_SUCCESS = global i32 0
define void @version() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 @fputs(i8* getelementptr inbounds ([202 x i8], [202 x i8]* @.str.4, i64 0, i64 0), i32 %2)
%4 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%5 = load i32, i32* @EXIT_SUCCESS
%6 = tail call i32 @exit(i32 %5)
unreachable
}