#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*/ EX_OK;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void printVersionAndExit() {
  printf("arborealis version %s\n", "0.1.1");
  printf("An Arborealis language interpreter\n");
  printf("Copyright (C) 2014 Drew Weymouth\n");
  printf("MIT License <http://opensource.org/licenses/MIT>\n");
  exit(EX_OK);
}


x86 assembly (clang, -O0):
<printVersionAndExit>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xee5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<printVersionAndExit>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xed8(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"arborealis version %s\0A\00"
@.str.1 = [6 x i8] c"0.1.1\00"
@.str.2 = [36 x i8] c"An Arborealis language interpreter\0A\00"
@.str.3 = [34 x i8] c"Copyright (C) 2014 Drew Weymouth\0A\00"
@.str.4 = [50 x i8] c"MIT License <http://opensource.org/licenses/MIT>\0A\00"
@EX_OK = global i32 0
define void @printVersionAndExit() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%5 = load i32, i32* @EX_OK
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@.str = [23 x i8] c"arborealis version %s\0A\00"
@.str.1 = [6 x i8] c"0.1.1\00"
@EX_OK = global i32 0
@str = [35 x i8] c"An Arborealis language interpreter\00"
@str.5 = [33 x i8] c"Copyright (C) 2014 Drew Weymouth\00"
@str.6 = [49 x i8] c"MIT License <http://opensource.org/licenses/MIT>\00"
define void @printVersionAndExit() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.6, i64 0, i64 0))
%5 = load i32, i32* @EX_OK
%6 = tail call i32 @exit(i32 %5)
unreachable
}