#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("--save-program=<file> ,  -p <file>          =   save the chip's "
         "program flash to <file>\n");
  printf("--save-eeprom=<file> ,   -e <file>          =   save the chip's "
         "eeprom(data) flash to <file>\n");
  printf("--flash-program=<file> , -f <file>          =   flash the <file> to "
         "the chip's program flash\n");
  printf("--flash-eeprom=<file> ,  -w <file>          =   flash the <file> to "
         "the chip's eeprom(data) flash\n");
  printf("--execute                                   =   exit the Boot ROM "
         "and execute program flash\n");
  printf("--no-verify                                 =   skip verification "
         "after flashing (not recommended)\n");
  printf("--no-pec                                    =   disable SMBus Packet "
         "Error Checking (not recommended)\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    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1014(%rip),%rdi
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bd(%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    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1012(%rip),%rdi
call   1030 <puts@plt>
lea    0x1062(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"options:\0A\00"
@.str.1 = [89 x i8] c"--save-program=<file> , -p <file> = save the chip's program flash to <file>\0A\00"
@.str.2 = [94 x i8] c"--save-eeprom=<file> , -e <file> = save the chip's eeprom(data) flash to <file>\0A\00"
@.str.3 = [94 x i8] c"--flash-program=<file> , -f <file> = flash the <file> to the chip's program flash\0A\00"
@.str.4 = [99 x i8] c"--flash-eeprom=<file> , -w <file> = flash the <file> to the chip's eeprom(data) flash\0A\00"
@.str.5 = [93 x i8] c"--execute = exit the Boot ROM and execute program flash\0A\00"
@.str.6 = [100 x i8] c"--no-verify = skip verification after flashing (not recommended)\0A\00"
@.str.7 = [103 x i8] c"--no-pec = disable SMBus Packet Error Checking (not recommended)\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 ([89 x i8], [89 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"options:\00"
@str.8 = [88 x i8] c"--save-program=<file> , -p <file> = save the chip's program flash to <file>\00"
@str.9 = [93 x i8] c"--save-eeprom=<file> , -e <file> = save the chip's eeprom(data) flash to <file>\00"
@str.10 = [93 x i8] c"--flash-program=<file> , -f <file> = flash the <file> to the chip's program flash\00"
@str.11 = [98 x i8] c"--flash-eeprom=<file> , -w <file> = flash the <file> to the chip's eeprom(data) flash\00"
@str.12 = [92 x i8] c"--execute = exit the Boot ROM and execute program flash\00"
@str.13 = [99 x i8] c"--no-verify = skip verification after flashing (not recommended)\00"
@str.14 = [102 x i8] c"--no-pec = disable SMBus Packet Error Checking (not recommended)\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 ([88 x i8], [88 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.13, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.14, i64 0, i64 0))
ret void
}