#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 *, ...);
void displayHelp() {
  printf("Epiphany BASIC version %s\n", "0.1");
  printf("ebasic [arguments] filename\n\nWhere filename is the source code to "
         "execute by default on all cores\n\nArguments\n--------\n");
  printf("-c placement   Specify core placement; can be a single id, all, a "
         "range (a:b) or a list (a,b,c,d)\n");
  printf("-d processes   Specify number of process on the device\n");
  printf("-h processes   Specify number of process on the host\n");
  printf("-t             Display core run timing information\n");
  printf("-codecore      Placement code on each core (default up to %d bytes "
         "length)\n",
         2048);
  printf("-codeshared    Placement code in shared memory (automatic after %d "
         "bytes in length)\n",
         2048);
  printf("-datashared    Data (arrays and strings) stored in shared memory, "
         "storage on core is default\n");
  printf("-s             Display parse statistics\n");
  printf("-o filename    Write out the compiled byte representation of "
         "processed BASIC code and exits (does not run code)\n");
  printf("-l filename    Loads from compiled byte representation of code and "
         "runs this\n");
  printf("-help          Display this help and quit\n");
}


x86 assembly (clang, -O0):
<displayHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
mov    $0x800,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105e(%rip),%rdi
mov    $0x800,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x116e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayHelp>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
lea    0x1043(%rip),%rdi
call   1030 <puts@plt>
lea    0x106e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
lea    0xea6(%rip),%rdi
mov    $0x800,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x800,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1098(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1105(%rip),%rdi
call   1030 <puts@plt>
lea    0x1169(%rip),%rdi
call   1030 <puts@plt>
lea    0x11aa(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Epiphany BASIC version %s\0A\00"
@.str.1 = [4 x i8] c"0.1\00"
@.str.2 = [119 x i8] c"ebasic [arguments] filename\0A\0AWhere filename is the source code to execute by default on all cores\0A\0AArguments\0A--------\0A\00"
@.str.3 = [99 x i8] c"-c placement Specify core placement; can be a single id, all, a range (a:b) or a list (a,b,c,d)\0A\00"
@.str.4 = [56 x i8] c"-d processes Specify number of process on the device\0A\00"
@.str.5 = [54 x i8] c"-h processes Specify number of process on the host\0A\00"
@.str.6 = [52 x i8] c"-t Display core run timing information\0A\00"
@.str.7 = [76 x i8] c"-codecore Placement code on each core (default up to %d bytes length)\0A\00"
@.str.8 = [85 x i8] c"-codeshared Placement code in shared memory (automatic after %d bytes in length)\0A\00"
@.str.9 = [94 x i8] c"-datashared Data (arrays and strings) stored in shared memory, storage on core is default\0A\00"
@.str.10 = [41 x i8] c"-s Display parse statistics\0A\00"
@.str.11 = [113 x i8] c"-o filename Write out the compiled byte representation of processed BASIC code and exits (does not run code)\0A\00"
@.str.12 = [78 x i8] c"-l filename Loads from compiled byte representation of code and runs this\0A\00"
@.str.13 = [43 x i8] c"-help Display this help and quit\0A\00"
define void @displayHelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0), i32 2048)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.8, i64 0, i64 0), i32 2048)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"Epiphany BASIC version %s\0A\00"
@.str.1 = [4 x i8] c"0.1\00"
@.str.7 = [76 x i8] c"-codecore Placement code on each core (default up to %d bytes length)\0A\00"
@.str.8 = [85 x i8] c"-codeshared Placement code in shared memory (automatic after %d bytes in length)\0A\00"
@str = [118 x i8] c"ebasic [arguments] filename\0A\0AWhere filename is the source code to execute by default on all cores\0A\0AArguments\0A--------\00"
@str.14 = [98 x i8] c"-c placement Specify core placement; can be a single id, all, a range (a:b) or a list (a,b,c,d)\00"
@str.15 = [55 x i8] c"-d processes Specify number of process on the device\00"
@str.16 = [53 x i8] c"-h processes Specify number of process on the host\00"
@str.17 = [51 x i8] c"-t Display core run timing information\00"
@str.18 = [93 x i8] c"-datashared Data (arrays and strings) stored in shared memory, storage on core is default\00"
@str.19 = [40 x i8] c"-s Display parse statistics\00"
@str.20 = [112 x i8] c"-o filename Write out the compiled byte representation of processed BASIC code and exits (does not run code)\00"
@str.21 = [77 x i8] c"-l filename Loads from compiled byte representation of code and runs this\00"
@str.22 = [42 x i8] c"-help Display this help and quit\00"
define void @displayHelp() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([118 x i8], [118 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0), i32 2048)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @.str.8, i64 0, i64 0), i32 2048)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.22, i64 0, i64 0))
ret void
}