#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(char *programname) {
  printf("Usage: %s [OPTION]\n", programname);
  printf("- Shows infos from RevPiCore control process\n");
  printf("- Reads values of RevPiCore process image\n");
  printf("- Writes values to RevPiCore process image\n");
  printf("\n");
  printf("Options:\n");
  printf("                 -d: Get device list.\n");
  printf("\n");
  printf("      -v <var_name>: Shows infos for a variable.\n");
  printf("\n");
  printf("                 -1: execute the following read only once.\n");
  printf("\n");
  printf("                 -q: execute the following read quietly, print only "
         "the value.\n");
  printf("\n");
  printf("-r <var_name>[,<f>]: Reads value of a variable.\n");
  printf("                     <f> defines the format: h for hex, d for "
         "decimal (default), b for binary\n");
  printf("                     E.g.: -r Input_001,h\n");
  printf("                     Read value from variable 'Input_001'.\n");
  printf("                     Shows values cyclically every second.\n");
  printf("                     Break with Ctrl-C.\n");
  printf("\n");
  printf("   -r <o>,<l>[,<f>]: Reads <l> bytes at offset <o>.\n");
  printf("                     <f> defines the format: h for hex, d for "
         "decimal (default), b for binary\n");
  printf("                     E.g.: -r 1188,16\n");
  printf("                     Read 16 bytes at offset 1188.\n");
  printf("                     Shows values cyclically every second.\n");
  printf("                     Break with Ctrl-C.\n");
  printf("\n");
  printf("  -w <var_name>,<v>: Writes value <v> to variable.\n");
  printf("                     E.g.: -w Output_001,23:\n");
  printf("                     Write value 23 dez (=17 hex) to variable "
         "'Output_001'.\n");
  printf("\n");
  printf("     -w <o>,<l>,<v>: Writes <l> bytes with value <v> (as hex) to "
         "offset <o>.\n");
  printf("                     length should be one of 1|2|4.\n");
  printf("                     E.g.: -w 0,4,31224205:\n");
  printf("                     Write value 31224205 hex (=824328709 dez) to "
         "offset 0.\n");
  printf("\n");
  printf("         -g <o>,<b>: Gets bit number <b> (0-7) from byte at offset "
         "<o>.\n");
  printf("                     E.g.: -b 0,5:\n");
  printf("                     Get bit 5 from byte at offset 0.\n");
  printf("\n");
  printf("   -s <o>,<b>,<0|1>: Sets 0|1 to bit <b> (0-7) of byte at offset "
         "<o>.\n");
  printf("                     E.g.: -b 0,5,1:\n");
  printf("                     Set bit 5 to 1 of byte at offset 0.\n");
  printf("\n");
  printf("     -R <addr>,<bs>: Reset counters/encoders in a digital input "
         "module like DIO or DI.\n");
  printf("                     <addr> is the address of module as displayed "
         "with option -d.\n");
  printf("                     <bs> is a bitset. If the counter on input pin n "
         "must be reset,\n");
  printf("                     the n-th bit must be set to 1.\n");
  printf("                     E.g.: -R 32,0x0014:\n");
  printf("                     Reset the counters on input pin I_3 and I_5.\n");
  printf("\n");
  printf("                 -S: Stop/Restart I/O update.\n");
  printf("\n");
  printf("                 -x: Reset piControl process.\n");
  printf("\n");
  printf("                 -l: Wait for reset of piControl process.\n");
  printf("\n");
  printf("                 -f: Update firmware. (see tutorials on website for "
         "more info) \n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1796(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x176c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1750(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1734(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1718(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x16b6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1097(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1654(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10eb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x161c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x15d6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11f3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x122e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1244(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x159e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x125f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1298(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1566(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12ce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1318(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x135d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13e7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1504(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x140e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14e8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1421(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14cc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1434(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1453(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rsi
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec7(%rip),%rdi
call   1040 <puts@plt>
lea    0xee8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf06(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf1b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf18(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf28(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf68(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa1(%rip),%rdi
call   1040 <puts@plt>
lea    0x105e(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ee(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
lea    0x111a(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfdb(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x1059(%rip),%rdi
call   1040 <puts@plt>
lea    0x1073(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10e3(%rip),%rdi
call   1040 <puts@plt>
lea    0x110a(%rip),%rdi
call   1040 <puts@plt>
lea    0x112b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1161(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ca(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ea(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1220(%rip),%rdi
call   1040 <puts@plt>
lea    0x125c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1273(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1293(%rip),%rdi
call   1040 <puts@plt>
lea    0x12cd(%rip),%rdi
call   1040 <puts@plt>
lea    0x12e6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1309(%rip),%rdi
call   1040 <puts@plt>
lea    0x1354(%rip),%rdi
call   1040 <puts@plt>
lea    0x139a(%rip),%rdi
call   1040 <puts@plt>
lea    0x13e2(%rip),%rdi
call   1040 <puts@plt>
lea    0x140a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1427(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1453(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x146b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1483(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x14a7(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"Usage: %s [OPTION]\0A\00"
@.str.1 = [46 x i8] c"- Shows infos from RevPiCore control process\0A\00"
@.str.2 = [43 x i8] c"- Reads values of RevPiCore process image\0A\00"
@.str.3 = [44 x i8] c"- Writes values to RevPiCore process image\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [39 x i8] c" -d: Get device list.\0A\00"
@.str.7 = [50 x i8] c" -v <var_name>: Shows infos for a variable.\0A\00"
@.str.8 = [60 x i8] c" -1: execute the following read only once.\0A\00"
@.str.9 = [80 x i8] c" -q: execute the following read quietly, print only the value.\0A\00"
@.str.10 = [49 x i8] c"-r <var_name>[,<f>]: Reads value of a variable.\0A\00"
@.str.11 = [95 x i8] c" <f> defines the format: h for hex, d for decimal (default), b for binary\0A\00"
@.str.12 = [43 x i8] c" E.g.: -r Input_001,h\0A\00"
@.str.13 = [60 x i8] c" Read value from variable 'Input_001'.\0A\00"
@.str.14 = [60 x i8] c" Shows values cyclically every second.\0A\00"
@.str.15 = [41 x i8] c" Break with Ctrl-C.\0A\00"
@.str.16 = [53 x i8] c" -r <o>,<l>[,<f>]: Reads <l> bytes at offset <o>.\0A\00"
@.str.17 = [39 x i8] c" E.g.: -r 1188,16\0A\00"
@.str.18 = [52 x i8] c" Read 16 bytes at offset 1188.\0A\00"
@.str.19 = [52 x i8] c" -w <var_name>,<v>: Writes value <v> to variable.\0A\00"
@.str.20 = [46 x i8] c" E.g.: -w Output_001,23:\0A\00"
@.str.21 = [77 x i8] c" Write value 23 dez (=17 hex) to variable 'Output_001'.\0A\00"
@.str.22 = [78 x i8] c" -w <o>,<l>,<v>: Writes <l> bytes with value <v> (as hex) to offset <o>.\0A\00"
@.str.23 = [53 x i8] c" length should be one of 1|2|4.\0A\00"
@.str.24 = [45 x i8] c" E.g.: -w 0,4,31224205:\0A\00"
@.str.25 = [77 x i8] c" Write value 31224205 hex (=824328709 dez) to offset 0.\0A\00"
@.str.26 = [73 x i8] c" -g <o>,<b>: Gets bit number <b> (0-7) from byte at offset <o>.\0A\00"
@.str.27 = [36 x i8] c" E.g.: -b 0,5:\0A\00"
@.str.28 = [55 x i8] c" Get bit 5 from byte at offset 0.\0A\00"
@.str.29 = [71 x i8] c" -s <o>,<b>,<0|1>: Sets 0|1 to bit <b> (0-7) of byte at offset <o>.\0A\00"
@.str.30 = [38 x i8] c" E.g.: -b 0,5,1:\0A\00"
@.str.31 = [58 x i8] c" Set bit 5 to 1 of byte at offset 0.\0A\00"
@.str.32 = [88 x i8] c" -R <addr>,<bs>: Reset counters/encoders in a digital input module like DIO or DI.\0A\00"
@.str.33 = [83 x i8] c" <addr> is the address of module as displayed with option -d.\0A\00"
@.str.34 = [85 x i8] c" <bs> is a bitset. If the counter on input pin n must be reset,\0A\00"
@.str.35 = [53 x i8] c" the n-th bit must be set to 1.\0A\00"
@.str.36 = [42 x i8] c" E.g.: -R 32,0x0014:\0A\00"
@.str.37 = [67 x i8] c" Reset the counters on input pin I_3 and I_5.\0A\00"
@.str.38 = [47 x i8] c" -S: Stop/Restart I/O update.\0A\00"
@.str.39 = [47 x i8] c" -x: Reset piControl process.\0A\00"
@.str.40 = [59 x i8] c" -l: Wait for reset of piControl process.\0A\00"
@.str.41 = [81 x i8] c" -f: Update firmware. (see tutorials on website for more info) \0A\00"
define void @printHelp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.11, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.17, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.19, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.20, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.21, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.22, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.23, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.25, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.26, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.28, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.29, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.31, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.32, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.33, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.34, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.35, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.36, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.37, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.38, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.39, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.40, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.41, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"Usage: %s [OPTION]\0A\00"
@str = [45 x i8] c"- Shows infos from RevPiCore control process\00"
@str.42 = [42 x i8] c"- Reads values of RevPiCore process image\00"
@str.43 = [43 x i8] c"- Writes values to RevPiCore process image\00"
@str.44 = [9 x i8] c"Options:\00"
@str.45 = [38 x i8] c" -d: Get device list.\00"
@str.46 = [49 x i8] c" -v <var_name>: Shows infos for a variable.\00"
@str.47 = [59 x i8] c" -1: execute the following read only once.\00"
@str.48 = [79 x i8] c" -q: execute the following read quietly, print only the value.\00"
@str.49 = [48 x i8] c"-r <var_name>[,<f>]: Reads value of a variable.\00"
@str.51 = [42 x i8] c" E.g.: -r Input_001,h\00"
@str.52 = [59 x i8] c" Read value from variable 'Input_001'.\00"
@str.55 = [52 x i8] c" -r <o>,<l>[,<f>]: Reads <l> bytes at offset <o>.\00"
@str.56 = [94 x i8] c" <f> defines the format: h for hex, d for decimal (default), b for binary\00"
@str.57 = [38 x i8] c" E.g.: -r 1188,16\00"
@str.58 = [51 x i8] c" Read 16 bytes at offset 1188.\00"
@str.59 = [59 x i8] c" Shows values cyclically every second.\00"
@str.60 = [40 x i8] c" Break with Ctrl-C.\00"
@str.61 = [51 x i8] c" -w <var_name>,<v>: Writes value <v> to variable.\00"
@str.62 = [45 x i8] c" E.g.: -w Output_001,23:\00"
@str.63 = [76 x i8] c" Write value 23 dez (=17 hex) to variable 'Output_001'.\00"
@str.64 = [77 x i8] c" -w <o>,<l>,<v>: Writes <l> bytes with value <v> (as hex) to offset <o>.\00"
@str.65 = [52 x i8] c" length should be one of 1|2|4.\00"
@str.66 = [44 x i8] c" E.g.: -w 0,4,31224205:\00"
@str.67 = [76 x i8] c" Write value 31224205 hex (=824328709 dez) to offset 0.\00"
@str.68 = [72 x i8] c" -g <o>,<b>: Gets bit number <b> (0-7) from byte at offset <o>.\00"
@str.69 = [35 x i8] c" E.g.: -b 0,5:\00"
@str.70 = [54 x i8] c" Get bit 5 from byte at offset 0.\00"
@str.71 = [70 x i8] c" -s <o>,<b>,<0|1>: Sets 0|1 to bit <b> (0-7) of byte at offset <o>.\00"
@str.72 = [37 x i8] c" E.g.: -b 0,5,1:\00"
@str.73 = [57 x i8] c" Set bit 5 to 1 of byte at offset 0.\00"
@str.74 = [87 x i8] c" -R <addr>,<bs>: Reset counters/encoders in a digital input module like DIO or DI.\00"
@str.75 = [82 x i8] c" <addr> is the address of module as displayed with option -d.\00"
@str.76 = [84 x i8] c" <bs> is a bitset. If the counter on input pin n must be reset,\00"
@str.77 = [52 x i8] c" the n-th bit must be set to 1.\00"
@str.78 = [41 x i8] c" E.g.: -R 32,0x0014:\00"
@str.79 = [66 x i8] c" Reset the counters on input pin I_3 and I_5.\00"
@str.80 = [46 x i8] c" -S: Stop/Restart I/O update.\00"
@str.81 = [46 x i8] c" -x: Reset piControl process.\00"
@str.82 = [58 x i8] c" -l: Wait for reset of piControl process.\00"
@str.83 = [80 x i8] c" -f: Update firmware. (see tutorials on website for more info) \00"
define void @printHelp(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.42, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.43, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.44, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.45, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.46, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.47, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.48, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.49, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.56, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.51, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.52, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.59, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.60, i64 0, i64 0))
%22 = tail call i32 @putchar(i32 10)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.55, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.56, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.57, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.58, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.59, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.60, i64 0, i64 0))
%29 = tail call i32 @putchar(i32 10)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.61, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.62, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.63, i64 0, i64 0))
%33 = tail call i32 @putchar(i32 10)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.64, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.65, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.66, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.67, i64 0, i64 0))
%38 = tail call i32 @putchar(i32 10)
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.68, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.69, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.70, i64 0, i64 0))
%42 = tail call i32 @putchar(i32 10)
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.71, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.72, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.73, i64 0, i64 0))
%46 = tail call i32 @putchar(i32 10)
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.74, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.75, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.76, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.77, i64 0, i64 0))
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.78, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.79, i64 0, i64 0))
%53 = tail call i32 @putchar(i32 10)
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.80, i64 0, i64 0))
%55 = tail call i32 @putchar(i32 10)
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.81, i64 0, i64 0))
%57 = tail call i32 @putchar(i32 10)
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.82, i64 0, i64 0))
%59 = tail call i32 @putchar(i32 10)
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.83, i64 0, i64 0))
ret void
}