#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*/ printf(char *);
int /*<<< orphan*/ safe_exit(int);
void invalid_usage(void) {
  printf("usage: wvm [wendy bytecode] [options] [arguments to program] \n\n");
  printf("    [wendy bytecode]     : is either a compiled WendyScript file, a "
         "raw source file, or a source string to run.\n\n");
  printf("Arguments to program can be read using the system module.\n\n");
  printf("Options:\n");
  printf("    -h, --help        : shows this message.\n");
  printf("    --nogc            : disables garbage-collection.\n");
  printf("    --trace-vm        : traces each VM instruction.\n");
  printf("    --trace-refcnt    : traces each ref-count action.\n");
  printf("    -v, --verbose     : displays information about memory state on "
         "error.\n");
  printf("    --sandbox         : runs the VM in sandboxed mode, ie. no file "
         "access and no native execution calls.\n");
  safe_exit(1);
}


x86 assembly (clang, -O0):
<invalid_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x103c(%rip),%rdi
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <safe_exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<invalid_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbc(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe5(%rip),%rdi
call   1030 <puts@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1037(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
pop    %rax
jmp    1040 <safe_exit@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"usage: wvm [wendy bytecode] [options] [arguments to program] \0A\0A\00"
@.str.1 = [114 x i8] c" [wendy bytecode] : is either a compiled WendyScript file, a raw source file, or a source string to run.\0A\0A\00"
@.str.2 = [60 x i8] c"Arguments to program can be read using the system module.\0A\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [45 x i8] c" -h, --help : shows this message.\0A\00"
@.str.5 = [54 x i8] c" --nogc : disables garbage-collection.\0A\00"
@.str.6 = [53 x i8] c" --trace-vm : traces each VM instruction.\0A\00"
@.str.7 = [55 x i8] c" --trace-refcnt : traces each ref-count action.\0A\00"
@.str.8 = [75 x i8] c" -v, --verbose : displays information about memory state on error.\0A\00"
@.str.9 = [106 x i8] c" --sandbox : runs the VM in sandboxed mode, ie. no file access and no native execution calls.\0A\00"
define void @invalid_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @safe_exit(i32 1)
ret void
}

LLVM IR (-O2):
@str = [63 x i8] c"usage: wvm [wendy bytecode] [options] [arguments to program] \0A\00"
@str.10 = [113 x i8] c" [wendy bytecode] : is either a compiled WendyScript file, a raw source file, or a source string to run.\0A\00"
@str.11 = [59 x i8] c"Arguments to program can be read using the system module.\0A\00"
@str.12 = [9 x i8] c"Options:\00"
@str.13 = [44 x i8] c" -h, --help : shows this message.\00"
@str.14 = [53 x i8] c" --nogc : disables garbage-collection.\00"
@str.15 = [52 x i8] c" --trace-vm : traces each VM instruction.\00"
@str.16 = [54 x i8] c" --trace-refcnt : traces each ref-count action.\00"
@str.17 = [74 x i8] c" -v, --verbose : displays information about memory state on error.\00"
@str.18 = [105 x i8] c" --sandbox : runs the VM in sandboxed mode, ie. no file access and no native execution calls.\00"
define void @invalid_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @safe_exit(i32 1)
ret void
}