#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 doq() {
  printf("miriad is a very simple frontend to run miriad commands\n\n");
  printf("?                     this help\n");
  printf("version               display how miriad was compiled\n");
  printf("input <file>          process commands from input file\n");
  printf("set <key> <value>     set or show a keyword\n");
  printf("<key>=<value>         set a keyword\n");
  printf("unset <key(s)>        unset keyword(s)\n");
  printf("reset                 reset all keywords\n");
  printf("task {<task>]         set/show default taskname\n");
  printf("inp [<task>]          show settings of keywords to [task]\n");
  printf("go [<task>]           run [task]\n");
  printf("gob [<task>]          run [task] in background\n");
  printf("help [<task>]         help (on a task)\n");
  printf("view <task>           edit keyword file for task\n");
  printf("save/load [file]      save/load global keyword file\n");
  printf("tget/tput [<task>]    save/load [task] keyword file\n");
  printf("cd <dir>              change and/or show current directory\n");
  printf("exit,end              exit program, save variables\n");
  printf("quit                  quit program, do not save variables\n");
  printf("<task> [<par(s)>]     any other command is passed to the shell\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<doq>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1018(%rip),%rdi
call   1030 <printf@plt>
lea    0x1047(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1081(%rip),%rdi
call   1030 <printf@plt>
lea    0x109d(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1115(%rip),%rdi
call   1030 <printf@plt>
lea    0x1145(%rip),%rdi
call   1030 <printf@plt>
lea    0x116d(%rip),%rdi
call   1030 <printf@plt>
lea    0x119c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe2d(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<doq>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa6(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfde(%rip),%rdi
call   1040 <puts@plt>
lea    0x1002(%rip),%rdi
call   1040 <puts@plt>
lea    0x1030(%rip),%rdi
call   1040 <puts@plt>
lea    0x1045(%rip),%rdi
call   1040 <puts@plt>
lea    0x1068(%rip),%rdi
call   1040 <puts@plt>
lea    0x1083(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a8(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1127(%rip),%rdi
call   1040 <puts@plt>
lea    0x114e(%rip),%rdi
call   1040 <puts@plt>
lea    0x117c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [58 x i8] c"miriad is a very simple frontend to run miriad commands\0A\0A\00"
@.str.1 = [33 x i8] c"? this help\0A\00"
@.str.2 = [55 x i8] c"version display how miriad was compiled\0A\00"
@.str.3 = [56 x i8] c"input <file> process commands from input file\0A\00"
@.str.4 = [45 x i8] c"set <key> <value> set or show a keyword\0A\00"
@.str.5 = [37 x i8] c"<key>=<value> set a keyword\0A\00"
@.str.6 = [40 x i8] c"unset <key(s)> unset keyword(s)\0A\00"
@.str.7 = [42 x i8] c"reset reset all keywords\0A\00"
@.str.8 = [49 x i8] c"task {<task>] set/show default taskname\0A\00"
@.str.9 = [59 x i8] c"inp [<task>] show settings of keywords to [task]\0A\00"
@.str.10 = [34 x i8] c"go [<task>] run [task]\0A\00"
@.str.11 = [48 x i8] c"gob [<task>] run [task] in background\0A\00"
@.str.12 = [40 x i8] c"help [<task>] help (on a task)\0A\00"
@.str.13 = [50 x i8] c"view <task> edit keyword file for task\0A\00"
@.str.14 = [53 x i8] c"save/load [file] save/load global keyword file\0A\00"
@.str.15 = [53 x i8] c"tget/tput [<task>] save/load [task] keyword file\0A\00"
@.str.16 = [60 x i8] c"cd <dir> change and/or show current directory\0A\00"
@.str.17 = [52 x i8] c"exit,end exit program, save variables\0A\00"
@.str.18 = [59 x i8] c"quit quit program, do not save variables\0A\00"
@.str.19 = [64 x i8] c"<task> [<par(s)>] any other command is passed to the shell\0A\00"
@.str.20 = [2 x i8] c"\0A\00"
define void @doq() {
%1 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 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 ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [57 x i8] c"miriad is a very simple frontend to run miriad commands\0A\00"
@str.21 = [32 x i8] c"? this help\00"
@str.22 = [54 x i8] c"version display how miriad was compiled\00"
@str.23 = [55 x i8] c"input <file> process commands from input file\00"
@str.24 = [44 x i8] c"set <key> <value> set or show a keyword\00"
@str.25 = [36 x i8] c"<key>=<value> set a keyword\00"
@str.26 = [39 x i8] c"unset <key(s)> unset keyword(s)\00"
@str.27 = [41 x i8] c"reset reset all keywords\00"
@str.28 = [48 x i8] c"task {<task>] set/show default taskname\00"
@str.29 = [58 x i8] c"inp [<task>] show settings of keywords to [task]\00"
@str.30 = [33 x i8] c"go [<task>] run [task]\00"
@str.31 = [47 x i8] c"gob [<task>] run [task] in background\00"
@str.32 = [39 x i8] c"help [<task>] help (on a task)\00"
@str.33 = [49 x i8] c"view <task> edit keyword file for task\00"
@str.34 = [52 x i8] c"save/load [file] save/load global keyword file\00"
@str.35 = [52 x i8] c"tget/tput [<task>] save/load [task] keyword file\00"
@str.36 = [59 x i8] c"cd <dir> change and/or show current directory\00"
@str.37 = [51 x i8] c"exit,end exit program, save variables\00"
@str.38 = [58 x i8] c"quit quit program, do not save variables\00"
@str.39 = [63 x i8] c"<task> [<par(s)>] any other command is passed to the shell\00"
define void @doq() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
ret void
}