#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 print_help() {
  printf("Commands:\n");
  printf("  print <start>-<end>       [ print bytes at start address (opt. to "
         "end) ]\n");
  printf("  print16 <start>-<end>     [ print int16's at start address (opt. "
         "to end) ]\n");
  printf("  print32 <start>-<end>     [ print int32's at start address (opt. "
         "to end) ]\n");
  printf("  write <address> <data>..  [ write multiple bytes to RAM starting "
         "at address]\n");
  printf("  write16 <address> <data>..[ write multiple int16's to RAM starting "
         "at address]\n");
  printf("  write32 <address> <data>..[ write multiple int32's to RAM starting "
         "at address]\n");
  printf("  dumpram <start>-<end>     [ Dump RAM of AVR8 during simulation]\n");
  printf("  registers                 [ dump registers ]\n");
  printf("  run, stop, step           [ simulation run, stop, step ]\n");
  printf("  call <address>            [ call function at address ]\n");
  printf("  push <value>              [ push value on stack ]\n");
  printf("  set <reg>=<value>         [ set register to value ]\n");
  printf("  set,clear <status flag>   [ set or clear a bit in the status "
         "register]\n");
  printf("  reset                     [ reset program ]\n");
  printf("  display                   [ toggle display cpu info while "
         "simulating ]\n");
  printf("  speed <speed in Hz>       [ simulation speed or 0 for single step "
         "]\n");
  printf("  break <address>           [ break at address ]\n");
  printf("  info                      [ general info ]\n");
  printf("  disasm                    [ disassemble at address ]\n");
  printf("  disasm <start>-<end>      [ disassemble range of addresses ]\n");
  printf("  symbols                   [ show symbols ]\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa8(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
call   1030 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <printf@plt>
lea    0x10af(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1103(%rip),%rdi
call   1030 <printf@plt>
lea    0x1131(%rip),%rdi
call   1030 <printf@plt>
lea    0x115a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1185(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c3(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1224(%rip),%rdi
call   1030 <printf@plt>
lea    0x125f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1285(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a7(%rip),%rdi
call   1030 <printf@plt>
lea    0x12d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1307(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf66(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x102f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1074(%rip),%rdi
call   1030 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1129(%rip),%rdi
call   1030 <puts@plt>
lea    0x1151(%rip),%rdi
call   1030 <puts@plt>
lea    0x117b(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b8(%rip),%rdi
call   1030 <puts@plt>
lea    0x11da(%rip),%rdi
call   1030 <puts@plt>
lea    0x1217(%rip),%rdi
call   1030 <puts@plt>
lea    0x1251(%rip),%rdi
call   1030 <puts@plt>
lea    0x1276(%rip),%rdi
call   1030 <puts@plt>
lea    0x1297(%rip),%rdi
call   1030 <puts@plt>
lea    0x12c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f5(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Commands:\0A\00"
@.str.1 = [76 x i8] c" print <start>-<end> [ print bytes at start address (opt. to end) ]\0A\00"
@.str.2 = [78 x i8] c" print16 <start>-<end> [ print int16's at start address (opt. to end) ]\0A\00"
@.str.3 = [78 x i8] c" print32 <start>-<end> [ print int32's at start address (opt. to end) ]\0A\00"
@.str.4 = [80 x i8] c" write <address> <data>.. [ write multiple bytes to RAM starting at address]\0A\00"
@.str.5 = [82 x i8] c" write16 <address> <data>..[ write multiple int16's to RAM starting at address]\0A\00"
@.str.6 = [82 x i8] c" write32 <address> <data>..[ write multiple int32's to RAM starting at address]\0A\00"
@.str.7 = [67 x i8] c" dumpram <start>-<end> [ Dump RAM of AVR8 during simulation]\0A\00"
@.str.8 = [48 x i8] c" registers [ dump registers ]\0A\00"
@.str.9 = [60 x i8] c" run, stop, step [ simulation run, stop, step ]\0A\00"
@.str.10 = [58 x i8] c" call <address> [ call function at address ]\0A\00"
@.str.11 = [53 x i8] c" push <value> [ push value on stack ]\0A\00"
@.str.12 = [55 x i8] c" set <reg>=<value> [ set register to value ]\0A\00"
@.str.13 = [74 x i8] c" set,clear <status flag> [ set or clear a bit in the status register]\0A\00"
@.str.14 = [47 x i8] c" reset [ reset program ]\0A\00"
@.str.15 = [74 x i8] c" display [ toggle display cpu info while simulating ]\0A\00"
@.str.16 = [71 x i8] c" speed <speed in Hz> [ simulation speed or 0 for single step ]\0A\00"
@.str.17 = [50 x i8] c" break <address> [ break at address ]\0A\00"
@.str.18 = [46 x i8] c" info [ general info ]\0A\00"
@.str.19 = [56 x i8] c" disasm [ disassemble at address ]\0A\00"
@.str.20 = [64 x i8] c" disasm <start>-<end> [ disassemble range of addresses ]\0A\00"
@.str.21 = [46 x i8] c" symbols [ show symbols ]\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [10 x i8] c"Commands:\00"
@str.22 = [75 x i8] c" print <start>-<end> [ print bytes at start address (opt. to end) ]\00"
@str.23 = [77 x i8] c" print16 <start>-<end> [ print int16's at start address (opt. to end) ]\00"
@str.24 = [77 x i8] c" print32 <start>-<end> [ print int32's at start address (opt. to end) ]\00"
@str.25 = [79 x i8] c" write <address> <data>.. [ write multiple bytes to RAM starting at address]\00"
@str.26 = [81 x i8] c" write16 <address> <data>..[ write multiple int16's to RAM starting at address]\00"
@str.27 = [81 x i8] c" write32 <address> <data>..[ write multiple int32's to RAM starting at address]\00"
@str.28 = [66 x i8] c" dumpram <start>-<end> [ Dump RAM of AVR8 during simulation]\00"
@str.29 = [47 x i8] c" registers [ dump registers ]\00"
@str.30 = [59 x i8] c" run, stop, step [ simulation run, stop, step ]\00"
@str.31 = [57 x i8] c" call <address> [ call function at address ]\00"
@str.32 = [52 x i8] c" push <value> [ push value on stack ]\00"
@str.33 = [54 x i8] c" set <reg>=<value> [ set register to value ]\00"
@str.34 = [73 x i8] c" set,clear <status flag> [ set or clear a bit in the status register]\00"
@str.35 = [46 x i8] c" reset [ reset program ]\00"
@str.36 = [73 x i8] c" display [ toggle display cpu info while simulating ]\00"
@str.37 = [70 x i8] c" speed <speed in Hz> [ simulation speed or 0 for single step ]\00"
@str.38 = [49 x i8] c" break <address> [ break at address ]\00"
@str.39 = [45 x i8] c" info [ general info ]\00"
@str.40 = [55 x i8] c" disasm [ disassemble at address ]\00"
@str.41 = [63 x i8] c" disasm <start>-<end> [ disassemble range of addresses ]\00"
@str.42 = [45 x i8] c" symbols [ show symbols ]\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.22, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.26, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.27, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.28, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.30, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.31, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.32, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.33, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.35, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.40, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.41, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.42, i64 0, i64 0))
ret void
}