#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 *);
int printHelp() {
  printf("  all parameters are hex values preceeded by a '0x' or decimal "
         "numbers\n");
  printf("  some of the commands have a short version, in most cases the first "
         "letter\n");
  printf("  driver info            : d\n");
  printf(
      "  single read rcu bus memory   : r[ead] 0x<address> (e.g.: r 0x7000)\n");
  printf("  multiple read rcu bus memory : r[ead] 0x<address> <dec no> (e.g.: "
         "r 0x7000 16)\n");
  printf("  single write rcu bus memory  : w[rite] 0x<address> 0x<data>\n");
  printf("                                 (e.g.: w 0x6800 0x34)\n");
  printf("  sending a single command     : c 0x<address> (translated to w "
         "<address> 0x0\n");
  printf("  batch processing             : b[atch] 'filepath' [[-l] "
         "<count>,-i]\n");
  return 0;
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
call   1030 <printf@plt>
lea    0xfae(%rip),%rdi
call   1030 <printf@plt>
lea    0xff4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf63(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xfad(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1024(%rip),%rdi
call   1030 <puts@plt>
lea    0x104f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1091(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [72 x i8] c" all parameters are hex values preceeded by a '0x' or decimal numbers\0A\00"
@.str.1 = [77 x i8] c" some of the commands have a short version, in most cases the first letter\0A\00"
@.str.2 = [30 x i8] c" driver info : d\0A\00"
@.str.3 = [70 x i8] c" single read rcu bus memory : r[ead] 0x<address> (e.g.: r 0x7000)\0A\00"
@.str.4 = [82 x i8] c" multiple read rcu bus memory : r[ead] 0x<address> <dec no> (e.g.: r 0x7000 16)\0A\00"
@.str.5 = [63 x i8] c" single write rcu bus memory : w[rite] 0x<address> 0x<data>\0A\00"
@.str.6 = [56 x i8] c" (e.g.: w 0x6800 0x34)\0A\00"
@.str.7 = [79 x i8] c" sending a single command : c 0x<address> (translated to w <address> 0x0\0A\00"
@.str.8 = [71 x i8] c" batch processing : b[atch] 'filepath' [[-l] <count>,-i]\0A\00"
define i32 @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [71 x i8] c" all parameters are hex values preceeded by a '0x' or decimal numbers\00"
@str.9 = [76 x i8] c" some of the commands have a short version, in most cases the first letter\00"
@str.10 = [29 x i8] c" driver info : d\00"
@str.11 = [69 x i8] c" single read rcu bus memory : r[ead] 0x<address> (e.g.: r 0x7000)\00"
@str.12 = [81 x i8] c" multiple read rcu bus memory : r[ead] 0x<address> <dec no> (e.g.: r 0x7000 16)\00"
@str.13 = [62 x i8] c" single write rcu bus memory : w[rite] 0x<address> 0x<data>\00"
@str.14 = [55 x i8] c" (e.g.: w 0x6800 0x34)\00"
@str.15 = [78 x i8] c" sending a single command : c 0x<address> (translated to w <address> 0x0\00"
@str.16 = [70 x i8] c" batch processing : b[atch] 'filepath' [[-l] <count>,-i]\00"
define i32 @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.9, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.14, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.16, i64 0, i64 0))
ret i32 0
}