#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*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
void usage(void) {
  puts("Usage: fcd-flash [OPTION]...");
  puts("Perform firmware operations on all present FUNcube dongles.");
  puts("");
  puts("Mandatory arguments to long options are mandatory for short options "
       "too.");
  puts("      --flash=FILE  perform a full flash upgrade from firmware image");
  puts("                    (equivalent to `-r -ewv -iFILE`)");
  puts("  -i, --input=FILE  read image from FILE");
  puts("  -r, --reset[=MS]  reset to/from bootloader with a MS millisecond");
  puts("                    delay (default is 2000 ms)");
  puts("  -R, --no-reset    do not reset");
  puts("  -e, --erase       erase flash");
  puts("  -E, --no-erase    do not erase flash");
  puts("  -w, --write       write image to flash");
  puts("  -W, --no-write    do not write to flash");
  puts("  -v, --verify      verify flash against image");
  puts("  -V, --no-verify   do not verify flash");
  puts("      --help        display this help and exit");
  puts("      --version     output version information and exit");
  puts("");
  puts("Examples:");
  puts("fcd-flash --flash=export18b.bin");
  puts("  Write `export18b.bin` to FUNcube dongle");
  puts("fcd-flash --flash=export18b.bin --no-erase --no-write");
  puts("  Reset and verify flash matches `export18b.bin`");
  puts("fcd-flash -r1000 -vi export18b.bin");
  puts("  Reset with 1 second delay and verify flash matches `export18b.bin`");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x1035(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
lea    0x1064(%rip),%rdi
call   1030 <puts@plt>
lea    0x1081(%rip),%rdi
call   1030 <puts@plt>
lea    0x109f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10de(%rip),%rdi
call   1030 <puts@plt>
lea    0x1101(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0x1121(%rip),%rdi
call   1030 <puts@plt>
lea    0x111f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
lea    0x1151(%rip),%rdi
call   1030 <puts@plt>
lea    0x117b(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a0(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b7(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeff(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf75(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9e(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1040 <puts@plt>
lea    0xff2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1015(%rip),%rdi
call   1040 <puts@plt>
lea    0x102a(%rip),%rdi
call   1040 <puts@plt>
lea    0x103e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1059(%rip),%rdi
call   1040 <puts@plt>
lea    0x1076(%rip),%rdi
call   1040 <puts@plt>
lea    0x1094(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b7(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d3(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1118(%rip),%rdi
call   1040 <puts@plt>
lea    0x1116(%rip),%rdi
call   1040 <puts@plt>
lea    0x112a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1148(%rip),%rdi
call   1040 <puts@plt>
lea    0x1172(%rip),%rdi
call   1040 <puts@plt>
lea    0x1197(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ae(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Usage: fcd-flash [OPTION]...\00"
@.str.1 = [60 x i8] c"Perform firmware operations on all present FUNcube dongles.\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [73 x i8] c"Mandatory arguments to long options are mandatory for short options too.\00"
@.str.4 = [69 x i8] c" --flash=FILE perform a full flash upgrade from firmware image\00"
@.str.5 = [53 x i8] c" (equivalent to `-r -ewv -iFILE`)\00"
@.str.6 = [41 x i8] c" -i, --input=FILE read image from FILE\00"
@.str.7 = [67 x i8] c" -r, --reset[=MS] reset to/from bootloader with a MS millisecond\00"
@.str.8 = [47 x i8] c" delay (default is 2000 ms)\00"
@.str.9 = [33 x i8] c" -R, --no-reset do not reset\00"
@.str.10 = [32 x i8] c" -e, --erase erase flash\00"
@.str.11 = [39 x i8] c" -E, --no-erase do not erase flash\00"
@.str.12 = [41 x i8] c" -w, --write write image to flash\00"
@.str.13 = [42 x i8] c" -W, --no-write do not write to flash\00"
@.str.14 = [47 x i8] c" -v, --verify verify flash against image\00"
@.str.15 = [40 x i8] c" -V, --no-verify do not verify flash\00"
@.str.16 = [47 x i8] c" --help display this help and exit\00"
@.str.17 = [56 x i8] c" --version output version information and exit\00"
@.str.18 = [10 x i8] c"Examples:\00"
@.str.19 = [32 x i8] c"fcd-flash --flash=export18b.bin\00"
@.str.20 = [42 x i8] c" Write `export18b.bin` to FUNcube dongle\00"
@.str.21 = [54 x i8] c"fcd-flash --flash=export18b.bin --no-erase --no-write\00"
@.str.22 = [49 x i8] c" Reset and verify flash matches `export18b.bin`\00"
@.str.23 = [35 x i8] c"fcd-flash -r1000 -vi export18b.bin\00"
@.str.24 = [69 x i8] c" Reset with 1 second delay and verify flash matches `export18b.bin`\00"
@EXIT_SUCCESS = global i32 0
define void @usage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.22, i64 0, i64 0))
%25 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0))
%26 = call i32 @puts(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.24, i64 0, i64 0))
%27 = load i32, i32* @EXIT_SUCCESS
%28 = call i32 @exit(i32 %27)
unreachable
}

LLVM IR (-O2):
@.str = [29 x i8] c"Usage: fcd-flash [OPTION]...\00"
@.str.1 = [60 x i8] c"Perform firmware operations on all present FUNcube dongles.\00"
@.str.3 = [73 x i8] c"Mandatory arguments to long options are mandatory for short options too.\00"
@.str.4 = [69 x i8] c" --flash=FILE perform a full flash upgrade from firmware image\00"
@.str.5 = [53 x i8] c" (equivalent to `-r -ewv -iFILE`)\00"
@.str.6 = [41 x i8] c" -i, --input=FILE read image from FILE\00"
@.str.7 = [67 x i8] c" -r, --reset[=MS] reset to/from bootloader with a MS millisecond\00"
@.str.8 = [47 x i8] c" delay (default is 2000 ms)\00"
@.str.9 = [33 x i8] c" -R, --no-reset do not reset\00"
@.str.10 = [32 x i8] c" -e, --erase erase flash\00"
@.str.11 = [39 x i8] c" -E, --no-erase do not erase flash\00"
@.str.12 = [41 x i8] c" -w, --write write image to flash\00"
@.str.13 = [42 x i8] c" -W, --no-write do not write to flash\00"
@.str.14 = [47 x i8] c" -v, --verify verify flash against image\00"
@.str.15 = [40 x i8] c" -V, --no-verify do not verify flash\00"
@.str.16 = [47 x i8] c" --help display this help and exit\00"
@.str.17 = [56 x i8] c" --version output version information and exit\00"
@.str.18 = [10 x i8] c"Examples:\00"
@.str.19 = [32 x i8] c"fcd-flash --flash=export18b.bin\00"
@.str.20 = [42 x i8] c" Write `export18b.bin` to FUNcube dongle\00"
@.str.21 = [54 x i8] c"fcd-flash --flash=export18b.bin --no-erase --no-write\00"
@.str.22 = [49 x i8] c" Reset and verify flash matches `export18b.bin`\00"
@.str.23 = [35 x i8] c"fcd-flash -r1000 -vi export18b.bin\00"
@.str.24 = [69 x i8] c" Reset with 1 second delay and verify flash matches `export18b.bin`\00"
@EXIT_SUCCESS = global i32 0
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @putchar(i32 10)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.21, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.22, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.24, i64 0, i64 0))
%27 = load i32, i32* @EXIT_SUCCESS
%28 = tail call i32 @exit(i32 %27)
unreachable
}