#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(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void printhelp() {
  printf(
      "Deterministic Turing Machine SIMulator - Copyright (C) 2009 Zee Zuo\n");
  printf("Licensed under GNU General Public License v3\n\n");
  printf("Usage: dtmsim [options] rulefile input_tape\n\n");
  printf("\tOptions:\n");
  printf("\t\t--help or -h: Display this help message.\n");
  printf("\t\t--step or -s: Step by step mode (Useful for instruction).\n");
  printf("\t\t--output or -o filename: Save output to a file.\n");
  printf("\t\t--debug or -d: Display debug message.\n");
  printf("\n");
  printf("\trulefile: A file representing the simulated Turing machine. See "
         "<http://dtmsim.googlecode.com/> for more information.\n");
  printf("\tinput_tape: The input tape. Note that \'_\' (underscore) is used "
         "as the blank symbol.\n");
  printf("\nNote: If the input tape is intended to be blank, use a single "
         "character \'_\'.\n");
  printf("WARNING: IF YOU UPDATED FROM AN EARLY VERSION, MAKE SURE THAT YOU "
         "UPDATE THE RULEFILES AS WELL;\n");
  printf("YOU MAY ALSO UPDATE THE RULEFILES YOURSELF BY SUBSTITUTING \'_\' "
         "(UNDERSCORE) FOR ALL \'B\'s.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1047(%rip),%rdi
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1129(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf00(%rip),%rdi
call   1040 <puts@plt>
lea    0xf22(%rip),%rdi
call   1040 <puts@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfc8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1033(%rip),%rdi
call   1040 <puts@plt>
lea    0x107c(%rip),%rdi
call   1040 <puts@plt>
lea    0x10be(%rip),%rdi
call   1040 <puts@plt>
lea    0x1112(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"Deterministic Turing Machine SIMulator - Copyright (C) 2009 Zee Zuo\0A\00"
@.str.1 = [47 x i8] c"Licensed under GNU General Public License v3\0A\0A\00"
@.str.2 = [46 x i8] c"Usage: dtmsim [options] rulefile input_tape\0A\0A\00"
@.str.3 = [11 x i8] c"\09Options:\0A\00"
@.str.4 = [44 x i8] c"\09\09--help or -h: Display this help message.\0A\00"
@.str.5 = [61 x i8] c"\09\09--step or -s: Step by step mode (Useful for instruction).\0A\00"
@.str.6 = [51 x i8] c"\09\09--output or -o filename: Save output to a file.\0A\00"
@.str.7 = [41 x i8] c"\09\09--debug or -d: Display debug message.\0A\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [120 x i8] c"\09rulefile: A file representing the simulated Turing machine. See <http://dtmsim.googlecode.com/> for more information.\0A\00"
@.str.10 = [86 x i8] c"\09input_tape: The input tape. Note that '_' (underscore) is used as the blank symbol.\0A\00"
@.str.11 = [79 x i8] c"\0ANote: If the input tape is intended to be blank, use a single character '_'.\0A\00"
@.str.12 = [97 x i8] c"WARNING: IF YOU UPDATED FROM AN EARLY VERSION, MAKE SURE THAT YOU UPDATE THE RULEFILES AS WELL;\0A\00"
@.str.13 = [91 x i8] c"YOU MAY ALSO UPDATE THE RULEFILES YOURSELF BY SUBSTITUTING '_' (UNDERSCORE) FOR ALL 'B's.\0A\00"
define void @printhelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [68 x i8] c"Deterministic Turing Machine SIMulator - Copyright (C) 2009 Zee Zuo\00"
@str.14 = [46 x i8] c"Licensed under GNU General Public License v3\0A\00"
@str.15 = [45 x i8] c"Usage: dtmsim [options] rulefile input_tape\0A\00"
@str.16 = [10 x i8] c"\09Options:\00"
@str.17 = [43 x i8] c"\09\09--help or -h: Display this help message.\00"
@str.18 = [60 x i8] c"\09\09--step or -s: Step by step mode (Useful for instruction).\00"
@str.19 = [50 x i8] c"\09\09--output or -o filename: Save output to a file.\00"
@str.20 = [40 x i8] c"\09\09--debug or -d: Display debug message.\00"
@str.21 = [119 x i8] c"\09rulefile: A file representing the simulated Turing machine. See <http://dtmsim.googlecode.com/> for more information.\00"
@str.22 = [85 x i8] c"\09input_tape: The input tape. Note that '_' (underscore) is used as the blank symbol.\00"
@str.23 = [78 x i8] c"\0ANote: If the input tape is intended to be blank, use a single character '_'.\00"
@str.24 = [96 x i8] c"WARNING: IF YOU UPDATED FROM AN EARLY VERSION, MAKE SURE THAT YOU UPDATE THE RULEFILES AS WELL;\00"
@str.25 = [90 x i8] c"YOU MAY ALSO UPDATE THE RULEFILES YOURSELF BY SUBSTITUTING '_' (UNDERSCORE) FOR ALL 'B's.\00"
define void @printhelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([119 x i8], [119 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @exit(i32 0)
unreachable
}