#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*/ printHeader();
int /*<<< orphan*/ printf(char *);
void printUsage() {
  printHeader();
  printf("options:\n");
  printf("--address                , -a                  =   scan for address "
         "ACK (START, ADDR, STOP)\n");
  printf("--command <addr>         , -c <addr>           =   scan for command "
         "ACK (START, ADDR, CMD, STOP)\n");
  printf("--command-write <addr>   , -w <addr>           =   probe command "
         "writability for byte, word, block or more\n");
  printf("--begin=<#>              , -b <#>              =   address or "
         "command to start scan at\n");
  printf("--end=<#>                , -e <#>              =   address or "
         "command to end scan at\n");
  printf("--skip=<#,#,...>         , -s <#,#,...>        =   comma delimited "
         "list of HEX addresses or commands to skip during scan\n");
  printf("\n<addr> is always the read address in HEX\n");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <printHeader@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d7(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
xor    %eax,%eax
call   1040 <printHeader@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd2(%rip),%rdi
call   1030 <puts@plt>
lea    0x101d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1066(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"options:\0A\00"
@.str.1 = [93 x i8] c"--address , -a = scan for address ACK (START, ADDR, STOP)\0A\00"
@.str.2 = [98 x i8] c"--command <addr> , -c <addr> = scan for command ACK (START, ADDR, CMD, STOP)\0A\00"
@.str.3 = [108 x i8] c"--command-write <addr> , -w <addr> = probe command writability for byte, word, block or more\0A\00"
@.str.4 = [88 x i8] c"--begin=<#> , -b <#> = address or command to start scan at\0A\00"
@.str.5 = [86 x i8] c"--end=<#> , -e <#> = address or command to end scan at\0A\00"
@.str.6 = [122 x i8] c"--skip=<#,#,...> , -s <#,#,...> = comma delimited list of HEX addresses or commands to skip during scan\0A\00"
@.str.7 = [43 x i8] c"\0A<addr> is always the read address in HEX\0A\00"
define void @printUsage() {
%1 = call i32 (...) @printHeader()
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"options:\00"
@str.8 = [92 x i8] c"--address , -a = scan for address ACK (START, ADDR, STOP)\00"
@str.9 = [97 x i8] c"--command <addr> , -c <addr> = scan for command ACK (START, ADDR, CMD, STOP)\00"
@str.10 = [107 x i8] c"--command-write <addr> , -w <addr> = probe command writability for byte, word, block or more\00"
@str.11 = [87 x i8] c"--begin=<#> , -b <#> = address or command to start scan at\00"
@str.12 = [85 x i8] c"--end=<#> , -e <#> = address or command to end scan at\00"
@str.13 = [121 x i8] c"--skip=<#,#,...> , -s <#,#,...> = comma delimited list of HEX addresses or commands to skip during scan\00"
@str.14 = [42 x i8] c"\0A<addr> is always the read address in HEX\00"
define void @printUsage() {
%1 = tail call i32 (...) @printHeader()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([107 x i8], [107 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([121 x i8], [121 x i8]* @str.13, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.14, i64 0, i64 0))
ret void
}