#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 printhelp() {
  printf("Command help\n\n");
  printf("    Commands are case insensitive\n");
  printf("    Address and numeric values can be dec (ex 12), hex (ex 0xC), or "
         "octal (ex 014)\n");
  printf("    Memory addresses can be wa=32-bit word address, ba=byte address. "
         " Suffix of i=instruction or d=data memory\n");
  printf("    Return without a command will rerun a previous d, dd, or di "
         "command while displaying the next block\n\n");
  printf("    BR [breakpoint_number [address]]\n");
  printf("    View or set an instruction breakpoint\n");
  printf("       'b' by itself will display current breakpoints\n");
  printf("       breakpoint_number is the breakpoint reference and ranges from "
         "0 to %u\n",
         5 - 1);
  printf("       address is the instruction word address that the processor "
         "should stop at (instruction is not executed)\n");
  printf(
      "       if no address is provided, then the breakpoint is cleared\n\n");
  printf("    D memory_location_wa [length]\n");
  printf("    Raw dump of PRU data memory (32-bit word offset from beginning "
         "of full PRU memory block - all PRUs)\n\n");
  printf("    DD memory_location_wa [length]\n");
  printf("    Dump data memory (32-bit word offset from beginning of PRU data "
         "memory)\n\n");
  printf("    DI memory_location_wa [length]\n");
  printf("    Dump instruction memory (32-bit word offset from beginning of "
         "PRU instruction memory)\n\n");
  printf("    DIS memory_location_wa [length]\n");
  printf("    Disassemble instruction memory (32-bit word offset from "
         "beginning of PRU instruction memory)\n\n");
  printf("    G\n");
  printf("    Start processor execution of instructions (at current IP)\n\n");
  printf("    GSS\n");
  printf("    Start processor execution using automatic single stepping - this "
         "allows running a program with breakpoints\n\n");
  printf("    HALT\n");
  printf("    Halt the processor\n\n");
  printf("    L memory_location_iwa file_name\n");
  printf("    Load program file into instruction memory at 32-bit word address "
         "provided (offset from beginning of instruction memory\n\n");
  printf("    PRU pru_number\n");
  printf("    Set the active PRU where pru_number ranges from 0 to %u\n",
         2 - 1);
  printf("    Some debugger commands do action on active PRU (such as halt and "
         "reset)\n\n");
  printf("    Q\n");
  printf("    Quit the debugger and return to shell prompt.\n\n");
  printf("    R\n");
  printf("    Display the current PRU registers.\n\n");
  printf("    RESET\n");
  printf("    Reset the current PRU\n\n");
  printf("    SS\n");
  printf("    Single step the current instruction.\n\n");
  printf("    WA [watch_num [address [value]]]\n");
  printf("    Clear or set a watch point\n");
  printf("      format 1:  wa - print watch point list\n");
  printf("      format 2:  wa watch_num - clear watch point watch_num\n");
  printf("      format 3:  wa watch_num address - set a watch point "
         "(watch_num) so any change at that word address\n");
  printf("                 in data memory will be printed during program "
         "execution with gss command\n");
  printf("      format 4:  wa watch_num address value - set a watch point "
         "(watch_num) so that the program (run with gss) will\n");
  printf(
      "                 be halted when the memory location equals the value\n");
  printf("      NOTE: for watchpoints to work, you must use gss command to run "
         "the program\n\n");
  printf("    WR memory_location_wa value1 [value2 [value3 ...]]\n");
  printf("    Write a 32-bit value to a raw (offset from beginning of full PRU "
         "memory block - all PRUs)\n");
  printf("    memory_location is a 32-bit word index from the beginning of the "
         "PRU subsystem memory block\n\n");
  printf("    WRD memory_location_wa value1 [value2 [value3 ...]]\n");
  printf("    Write a 32-bit value to PRU data memory (32-bit word offset from "
         "beginning of PRU data memory)\n\n");
  printf("    WRI memory_location_wa value1 [value2 [value3 ...]]\n");
  printf("    Write a 32-bit value to PRU instruction memory (32-bit word "
         "offset from beginning of PRU instruction memory)\n\n");
  printf("A brief version of help is available with the command hb\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1017(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1098(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10fa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1144(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x120c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x125a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1271(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12bf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12f1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12ec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x134f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x134b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1356(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x136d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13dc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13e2(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x140c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x144c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1445(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x146b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1464(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x147f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x147c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x148a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1484(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14a1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14b9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14eb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x151a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1576(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x15c3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x162a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1662(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x16a7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x16d1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1722(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1776(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x17a1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x17f8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1823(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1888(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
lea    0xf53(%rip),%rdi
call   1040 <puts@plt>
lea    0xf55(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1015(%rip),%rdi
call   1040 <puts@plt>
lea    0x1072(%rip),%rdi
call   1040 <puts@plt>
lea    0x108b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1040 <puts@plt>
lea    0xe68(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10c0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1123(%rip),%rdi
call   1040 <puts@plt>
lea    0x1159(%rip),%rdi
call   1040 <puts@plt>
lea    0x116f(%rip),%rdi
call   1040 <puts@plt>
lea    0x11cc(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1224(%rip),%rdi
call   1040 <puts@plt>
lea    0x123b(%rip),%rdi
call   1040 <puts@plt>
lea    0x128a(%rip),%rdi
call   1040 <puts@plt>
lea    0x12a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x12f8(%rip),%rdi
call   1040 <puts@plt>
lea    0x12f2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1325(%rip),%rdi
call   1040 <puts@plt>
lea    0x1321(%rip),%rdi
call   1040 <puts@plt>
lea    0x1385(%rip),%rdi
call   1040 <puts@plt>
lea    0x1382(%rip),%rdi
call   1040 <puts@plt>
lea    0x138e(%rip),%rdi
call   1040 <puts@plt>
lea    0x13a6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1416(%rip),%rdi
call   1040 <puts@plt>
lea    0xdbf(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x140a(%rip),%rdi
call   1040 <puts@plt>
lea    0x144b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1445(%rip),%rdi
call   1040 <puts@plt>
lea    0x146c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1466(%rip),%rdi
call   1040 <puts@plt>
lea    0x1482(%rip),%rdi
call   1040 <puts@plt>
lea    0x1480(%rip),%rdi
call   1040 <puts@plt>
lea    0x148f(%rip),%rdi
call   1040 <puts@plt>
lea    0x148a(%rip),%rdi
call   1040 <puts@plt>
lea    0x14a8(%rip),%rdi
call   1040 <puts@plt>
lea    0x14c1(%rip),%rdi
call   1040 <puts@plt>
lea    0x14d4(%rip),%rdi
call   1040 <puts@plt>
lea    0x14f5(%rip),%rdi
call   1040 <puts@plt>
lea    0x1525(%rip),%rdi
call   1040 <puts@plt>
lea    0x1582(%rip),%rdi
call   1040 <puts@plt>
lea    0x15d0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1638(%rip),%rdi
call   1040 <puts@plt>
lea    0x1671(%rip),%rdi
call   1040 <puts@plt>
lea    0x16b7(%rip),%rdi
call   1040 <puts@plt>
lea    0x16e2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1734(%rip),%rdi
call   1040 <puts@plt>
lea    0x1789(%rip),%rdi
call   1040 <puts@plt>
lea    0x17b5(%rip),%rdi
call   1040 <puts@plt>
lea    0x180d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1839(%rip),%rdi
call   1040 <puts@plt>
lea    0x189f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Command help\0A\0A\00"
@.str.1 = [35 x i8] c" Commands are case insensitive\0A\00"
@.str.2 = [84 x i8] c" Address and numeric values can be dec (ex 12), hex (ex 0xC), or octal (ex 014)\0A\00"
@.str.3 = [112 x i8] c" Memory addresses can be wa=32-bit word address, ba=byte address. Suffix of i=instruction or d=data memory\0A\00"
@.str.4 = [106 x i8] c" Return without a command will rerun a previous d, dd, or di command while displaying the next block\0A\0A\00"
@.str.5 = [38 x i8] c" BR [breakpoint_number [address]]\0A\00"
@.str.6 = [43 x i8] c" View or set an instruction breakpoint\0A\00"
@.str.7 = [55 x i8] c" 'b' by itself will display current breakpoints\0A\00"
@.str.8 = [78 x i8] c" breakpoint_number is the breakpoint reference and ranges from 0 to %u\0A\00"
@.str.9 = [112 x i8] c" address is the instruction word address that the processor should stop at (instruction is not executed)\0A\00"
@.str.10 = [67 x i8] c" if no address is provided, then the breakpoint is cleared\0A\0A\00"
@.str.11 = [35 x i8] c" D memory_location_wa [length]\0A\00"
@.str.12 = [106 x i8] c" Raw dump of PRU data memory (32-bit word offset from beginning of full PRU memory block - all PRUs)\0A\0A\00"
@.str.13 = [36 x i8] c" DD memory_location_wa [length]\0A\00"
@.str.14 = [78 x i8] c" Dump data memory (32-bit word offset from beginning of PRU data memory)\0A\0A\00"
@.str.15 = [36 x i8] c" DI memory_location_wa [length]\0A\00"
@.str.16 = [92 x i8] c" Dump instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\0A\00"
@.str.17 = [37 x i8] c" DIS memory_location_wa [length]\0A\00"
@.str.18 = [99 x i8] c" Disassemble instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\0A\00"
@.str.19 = [7 x i8] c" G\0A\00"
@.str.20 = [64 x i8] c" Start processor execution of instructions (at current IP)\0A\0A\00"
@.str.21 = [9 x i8] c" GSS\0A\00"
@.str.22 = [113 x i8] c" Start processor execution using automatic single stepping - this allows running a program with breakpoints\0A\0A\00"
@.str.23 = [10 x i8] c" HALT\0A\00"
@.str.24 = [25 x i8] c" Halt the processor\0A\0A\00"
@.str.25 = [37 x i8] c" L memory_location_iwa file_name\0A\00"
@.str.26 = [125 x i8] c" Load program file into instruction memory at 32-bit word address provided (offset from beginning of instruction memory\0A\0A\00"
@.str.27 = [20 x i8] c" PRU pru_number\0A\00"
@.str.28 = [61 x i8] c" Set the active PRU where pru_number ranges from 0 to %u\0A\00"
@.str.29 = [78 x i8] c" Some debugger commands do action on active PRU (such as halt and reset)\0A\0A\00"
@.str.30 = [7 x i8] c" Q\0A\00"
@.str.31 = [52 x i8] c" Quit the debugger and return to shell prompt.\0A\0A\00"
@.str.32 = [7 x i8] c" R\0A\00"
@.str.33 = [41 x i8] c" Display the current PRU registers.\0A\0A\00"
@.str.34 = [11 x i8] c" RESET\0A\00"
@.str.35 = [28 x i8] c" Reset the current PRU\0A\0A\00"
@.str.36 = [8 x i8] c" SS\0A\00"
@.str.37 = [43 x i8] c" Single step the current instruction.\0A\0A\00"
@.str.38 = [38 x i8] c" WA [watch_num [address [value]]]\0A\00"
@.str.39 = [32 x i8] c" Clear or set a watch point\0A\00"
@.str.40 = [46 x i8] c" format 1: wa - print watch point list\0A\00"
@.str.41 = [61 x i8] c" format 2: wa watch_num - clear watch point watch_num\0A\00"
@.str.42 = [106 x i8] c" format 3: wa watch_num address - set a watch point (watch_num) so any change at that word address\0A\00"
@.str.43 = [91 x i8] c" in data memory will be printed during program execution with gss command\0A\00"
@.str.44 = [117 x i8] c" format 4: wa watch_num address value - set a watch point (watch_num) so that the program (run with gss) will\0A\00"
@.str.45 = [70 x i8] c" be halted when the memory location equals the value\0A\00"
@.str.46 = [83 x i8] c" NOTE: for watchpoints to work, you must use gss command to run the program\0A\0A\00"
@.str.47 = [56 x i8] c" WR memory_location_wa value1 [value2 [value3 ...]]\0A\00"
@.str.48 = [95 x i8] c" Write a 32-bit value to a raw (offset from beginning of full PRU memory block - all PRUs)\0A\00"
@.str.49 = [98 x i8] c" memory_location is a 32-bit word index from the beginning of the PRU subsystem memory block\0A\0A\00"
@.str.50 = [57 x i8] c" WRD memory_location_wa value1 [value2 [value3 ...]]\0A\00"
@.str.51 = [101 x i8] c" Write a 32-bit value to PRU data memory (32-bit word offset from beginning of PRU data memory)\0A\0A\00"
@.str.52 = [57 x i8] c" WRI memory_location_wa value1 [value2 [value3 ...]]\0A\00"
@.str.53 = [115 x i8] c" Write a 32-bit value to PRU instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\0A\00"
@.str.54 = [58 x i8] c"A brief version of help is available with the command hb\0A\00"
@.str.55 = [2 x i8] c"\0A\00"
define void @printhelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0), i32 1)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.31, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.33, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.34, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.35, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.37, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.38, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.39, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.40, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.41, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.42, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.43, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.44, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.45, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.46, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.47, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.48, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.49, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.50, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.51, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.52, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.53, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.54, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.55, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.8 = [78 x i8] c" breakpoint_number is the breakpoint reference and ranges from 0 to %u\0A\00"
@.str.28 = [61 x i8] c" Set the active PRU where pru_number ranges from 0 to %u\0A\00"
@str = [14 x i8] c"Command help\0A\00"
@str.56 = [34 x i8] c" Commands are case insensitive\00"
@str.57 = [83 x i8] c" Address and numeric values can be dec (ex 12), hex (ex 0xC), or octal (ex 014)\00"
@str.58 = [111 x i8] c" Memory addresses can be wa=32-bit word address, ba=byte address. Suffix of i=instruction or d=data memory\00"
@str.59 = [105 x i8] c" Return without a command will rerun a previous d, dd, or di command while displaying the next block\0A\00"
@str.60 = [37 x i8] c" BR [breakpoint_number [address]]\00"
@str.61 = [42 x i8] c" View or set an instruction breakpoint\00"
@str.62 = [54 x i8] c" 'b' by itself will display current breakpoints\00"
@str.63 = [111 x i8] c" address is the instruction word address that the processor should stop at (instruction is not executed)\00"
@str.64 = [66 x i8] c" if no address is provided, then the breakpoint is cleared\0A\00"
@str.65 = [34 x i8] c" D memory_location_wa [length]\00"
@str.66 = [105 x i8] c" Raw dump of PRU data memory (32-bit word offset from beginning of full PRU memory block - all PRUs)\0A\00"
@str.67 = [35 x i8] c" DD memory_location_wa [length]\00"
@str.68 = [77 x i8] c" Dump data memory (32-bit word offset from beginning of PRU data memory)\0A\00"
@str.69 = [35 x i8] c" DI memory_location_wa [length]\00"
@str.70 = [91 x i8] c" Dump instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\00"
@str.71 = [36 x i8] c" DIS memory_location_wa [length]\00"
@str.72 = [98 x i8] c" Disassemble instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\00"
@str.73 = [6 x i8] c" G\00"
@str.74 = [63 x i8] c" Start processor execution of instructions (at current IP)\0A\00"
@str.75 = [8 x i8] c" GSS\00"
@str.76 = [112 x i8] c" Start processor execution using automatic single stepping - this allows running a program with breakpoints\0A\00"
@str.77 = [9 x i8] c" HALT\00"
@str.78 = [24 x i8] c" Halt the processor\0A\00"
@str.79 = [36 x i8] c" L memory_location_iwa file_name\00"
@str.80 = [124 x i8] c" Load program file into instruction memory at 32-bit word address provided (offset from beginning of instruction memory\0A\00"
@str.81 = [19 x i8] c" PRU pru_number\00"
@str.82 = [77 x i8] c" Some debugger commands do action on active PRU (such as halt and reset)\0A\00"
@str.83 = [6 x i8] c" Q\00"
@str.84 = [51 x i8] c" Quit the debugger and return to shell prompt.\0A\00"
@str.85 = [6 x i8] c" R\00"
@str.86 = [40 x i8] c" Display the current PRU registers.\0A\00"
@str.87 = [10 x i8] c" RESET\00"
@str.88 = [27 x i8] c" Reset the current PRU\0A\00"
@str.89 = [7 x i8] c" SS\00"
@str.90 = [42 x i8] c" Single step the current instruction.\0A\00"
@str.91 = [37 x i8] c" WA [watch_num [address [value]]]\00"
@str.92 = [31 x i8] c" Clear or set a watch point\00"
@str.93 = [45 x i8] c" format 1: wa - print watch point list\00"
@str.94 = [60 x i8] c" format 2: wa watch_num - clear watch point watch_num\00"
@str.95 = [105 x i8] c" format 3: wa watch_num address - set a watch point (watch_num) so any change at that word address\00"
@str.96 = [90 x i8] c" in data memory will be printed during program execution with gss command\00"
@str.97 = [116 x i8] c" format 4: wa watch_num address value - set a watch point (watch_num) so that the program (run with gss) will\00"
@str.98 = [69 x i8] c" be halted when the memory location equals the value\00"
@str.99 = [82 x i8] c" NOTE: for watchpoints to work, you must use gss command to run the program\0A\00"
@str.100 = [55 x i8] c" WR memory_location_wa value1 [value2 [value3 ...]]\00"
@str.101 = [94 x i8] c" Write a 32-bit value to a raw (offset from beginning of full PRU memory block - all PRUs)\00"
@str.102 = [97 x i8] c" memory_location is a 32-bit word index from the beginning of the PRU subsystem memory block\0A\00"
@str.103 = [56 x i8] c" WRD memory_location_wa value1 [value2 [value3 ...]]\00"
@str.104 = [100 x i8] c" Write a 32-bit value to PRU data memory (32-bit word offset from beginning of PRU data memory)\0A\00"
@str.105 = [56 x i8] c" WRI memory_location_wa value1 [value2 [value3 ...]]\00"
@str.106 = [114 x i8] c" Write a 32-bit value to PRU instruction memory (32-bit word offset from beginning of PRU instruction memory)\0A\00"
@str.107 = [57 x i8] c"A brief version of help is available with the command hb\00"
define void @printhelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.56, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.57, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @str.58, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.59, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.60, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.61, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.62, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @str.63, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.64, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.65, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.66, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.67, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.68, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.69, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.70, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.71, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.72, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.73, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.74, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.75, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.76, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.77, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.78, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.79, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([124 x i8], [124 x i8]* @str.80, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.81, i64 0, i64 0))
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0), i32 1)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.82, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.83, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.84, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.85, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.86, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.87, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.88, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.89, i64 0, i64 0))
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.90, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.91, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.92, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.93, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.94, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.95, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.96, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @str.97, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.98, i64 0, i64 0))
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.99, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.100, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.101, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.102, i64 0, i64 0))
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.103, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str.104, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.105, i64 0, i64 0))
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str.106, i64 0, i64 0))
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.107, i64 0, i64 0))
%56 = tail call i32 @putchar(i32 10)
ret void
}