#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(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void displayHelp(void) {
  printf("Decoder for AMSDrive .bin files. Usage: amsDecode [options] "
         "<binfile.bin>  [start Fx], [stop FX]\n");
  printf("Where the options are :\n");
  printf(
      "-s scan number to dump in occupancy.csv ( default 0 - not dumped )\n");
  printf("-r is the raised noise floor threshold in dBm ( default -90 )\n");
  printf("-g output the spectrum to gnuplot\n");
  printf("-t signal detection threshold in dBm\n");
  printf("-k output drive as kml\n");
  printf("-f output a file containing the magnitude of a single frequency\n");
  printf("-b overcome a bug where a duplicated field is absent in the .bin "
         "file <sigh>\n");
  printf("-o don't throw away overloaded spectra\n");
  printf("-l compare the spectrum to the license database\n");
  exit(0);
}


x86 assembly (clang, -O0):
<displayHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
lea    0x1057(%rip),%rdi
call   1030 <printf@plt>
lea    0x1073(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<displayHelp>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x106c(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [98 x i8] c"Decoder for AMSDrive .bin files. Usage: amsDecode [options] <binfile.bin> [start Fx], [stop FX]\0A\00"
@.str.1 = [25 x i8] c"Where the options are :\0A\00"
@.str.2 = [68 x i8] c"-s scan number to dump in occupancy.csv ( default 0 - not dumped )\0A\00"
@.str.3 = [63 x i8] c"-r is the raised noise floor threshold in dBm ( default -90 )\0A\00"
@.str.4 = [35 x i8] c"-g output the spectrum to gnuplot\0A\00"
@.str.5 = [38 x i8] c"-t signal detection threshold in dBm\0A\00"
@.str.6 = [24 x i8] c"-k output drive as kml\0A\00"
@.str.7 = [65 x i8] c"-f output a file containing the magnitude of a single frequency\0A\00"
@.str.8 = [78 x i8] c"-b overcome a bug where a duplicated field is absent in the .bin file <sigh>\0A\00"
@.str.9 = [40 x i8] c"-o don't throw away overloaded spectra\0A\00"
@.str.10 = [49 x i8] c"-l compare the spectrum to the license database\0A\00"
define void @displayHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [97 x i8] c"Decoder for AMSDrive .bin files. Usage: amsDecode [options] <binfile.bin> [start Fx], [stop FX]\00"
@str.11 = [24 x i8] c"Where the options are :\00"
@str.12 = [67 x i8] c"-s scan number to dump in occupancy.csv ( default 0 - not dumped )\00"
@str.13 = [62 x i8] c"-r is the raised noise floor threshold in dBm ( default -90 )\00"
@str.14 = [34 x i8] c"-g output the spectrum to gnuplot\00"
@str.15 = [37 x i8] c"-t signal detection threshold in dBm\00"
@str.16 = [23 x i8] c"-k output drive as kml\00"
@str.17 = [64 x i8] c"-f output a file containing the magnitude of a single frequency\00"
@str.18 = [77 x i8] c"-b overcome a bug where a duplicated field is absent in the .bin file <sigh>\00"
@str.19 = [39 x i8] c"-o don't throw away overloaded spectra\00"
@str.20 = [48 x i8] c"-l compare the spectrum to the license database\00"
define void @displayHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @exit(i32 0)
unreachable
}