#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 WriteUsage() {
  printf("\nusage:\n");
  printf("\n");
  printf("bin2wav [-o|O ## -u|U ## -n|N ## -T ## -s ## -d ## -f -F -c ## -v] "
         "-t ## | -r ## <binfile1> <binfile2> ... <wavfile>\n");
  printf("\n");
  printf("Save binary data from files <binfile1>, >binfile2>, ... as a wave "
         "file <wavfile>.\n");
  printf("-o : save data starting from byte offset ##.\n");
  printf(
      "-O : save data starting from byte offset ## times size of data type.\n");
  printf("-u : save data upto byte offset ##.\n");
  printf("-U : save data upto byte offset ## times size of data type.\n");
  printf("-n : save at maximum ## bytes.\n");
  printf(
      "-N : save at maximum ## lines (i.e. ## times size of data type times\n");
  printf("     number of channels bytes).\n");
  printf("-T : save at maximum ## seconds of data.\n");
  printf("-t : the sampling interval ## in seconds.\n");
  printf("-r : the sampling rate ## in Hertz.\n");
  printf("\n");
  printf("Usually the type of the data contained in the binary file\n");
  printf("is determined from its extension. The following options can be\n");
  printf("used to specify the data type directly:\n");
  printf("-s : specify sign of the binary data (0=unsigned, 1=signed, "
         "default=signed).\n");
  printf("-d : specify size of the binary data type in bytes (1, 2, 4, 8, "
         "default=2).\n");
  printf("-f : the binary data type is float (4 byte).\n");
  printf("-F : the binary data type is double (8 byte).\n");
  printf("-c : specify number of channels multiplexed in the binary data file "
         "(default=1).\n");
  printf("-v : print settings to stderr.\n");
  printf("\n");
  exit(0);
}


x86 assembly (clang, -O0):
<WriteUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaf(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1074(%rip),%rdi
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ed(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x113e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1180(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c1(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1206(%rip),%rdi
call   1030 <printf@plt>
lea    0x124c(%rip),%rdi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<WriteUsage>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeba(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf80(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1001(%rip),%rdi
call   1040 <puts@plt>
lea    0x1014(%rip),%rdi
call   1040 <puts@plt>
lea    0x104d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1061(%rip),%rdi
call   1040 <puts@plt>
lea    0x107e(%rip),%rdi
call   1040 <puts@plt>
lea    0x109c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10aa(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d8(%rip),%rdi
call   1040 <puts@plt>
lea    0x110b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1127(%rip),%rdi
call   1040 <puts@plt>
lea    0x1168(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a8(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c9(%rip),%rdi
call   1040 <puts@plt>
lea    0x11eb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1230(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"\0Ausage:\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [118 x i8] c"bin2wav [-o|O ## -u|U ## -n|N ## -T ## -s ## -d ## -f -F -c ## -v] -t ## | -r ## <binfile1> <binfile2> ... <wavfile>\0A\00"
@.str.3 = [83 x i8] c"Save binary data from files <binfile1>, >binfile2>, ... as a wave file <wavfile>.\0A\00"
@.str.4 = [46 x i8] c"-o : save data starting from byte offset ##.\0A\00"
@.str.5 = [70 x i8] c"-O : save data starting from byte offset ## times size of data type.\0A\00"
@.str.6 = [37 x i8] c"-u : save data upto byte offset ##.\0A\00"
@.str.7 = [61 x i8] c"-U : save data upto byte offset ## times size of data type.\0A\00"
@.str.8 = [32 x i8] c"-n : save at maximum ## bytes.\0A\00"
@.str.9 = [70 x i8] c"-N : save at maximum ## lines (i.e. ## times size of data type times\0A\00"
@.str.10 = [33 x i8] c" number of channels bytes).\0A\00"
@.str.11 = [42 x i8] c"-T : save at maximum ## seconds of data.\0A\00"
@.str.12 = [43 x i8] c"-t : the sampling interval ## in seconds.\0A\00"
@.str.13 = [37 x i8] c"-r : the sampling rate ## in Hertz.\0A\00"
@.str.14 = [59 x i8] c"Usually the type of the data contained in the binary file\0A\00"
@.str.15 = [64 x i8] c"is determined from its extension. The following options can be\0A\00"
@.str.16 = [41 x i8] c"used to specify the data type directly:\0A\00"
@.str.17 = [78 x i8] c"-s : specify sign of the binary data (0=unsigned, 1=signed, default=signed).\0A\00"
@.str.18 = [77 x i8] c"-d : specify size of the binary data type in bytes (1, 2, 4, 8, default=2).\0A\00"
@.str.19 = [46 x i8] c"-f : the binary data type is float (4 byte).\0A\00"
@.str.20 = [47 x i8] c"-F : the binary data type is double (8 byte).\0A\00"
@.str.21 = [82 x i8] c"-c : specify number of channels multiplexed in the binary data file (default=1).\0A\00"
@.str.22 = [32 x i8] c"-v : print settings to stderr.\0A\00"
define void @WriteUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.21, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.22, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [8 x i8] c"\0Ausage:\00"
@str.23 = [117 x i8] c"bin2wav [-o|O ## -u|U ## -n|N ## -T ## -s ## -d ## -f -F -c ## -v] -t ## | -r ## <binfile1> <binfile2> ... <wavfile>\00"
@str.24 = [82 x i8] c"Save binary data from files <binfile1>, >binfile2>, ... as a wave file <wavfile>.\00"
@str.25 = [45 x i8] c"-o : save data starting from byte offset ##.\00"
@str.26 = [69 x i8] c"-O : save data starting from byte offset ## times size of data type.\00"
@str.27 = [36 x i8] c"-u : save data upto byte offset ##.\00"
@str.28 = [60 x i8] c"-U : save data upto byte offset ## times size of data type.\00"
@str.29 = [31 x i8] c"-n : save at maximum ## bytes.\00"
@str.30 = [69 x i8] c"-N : save at maximum ## lines (i.e. ## times size of data type times\00"
@str.31 = [32 x i8] c" number of channels bytes).\00"
@str.32 = [41 x i8] c"-T : save at maximum ## seconds of data.\00"
@str.33 = [42 x i8] c"-t : the sampling interval ## in seconds.\00"
@str.34 = [36 x i8] c"-r : the sampling rate ## in Hertz.\00"
@str.35 = [58 x i8] c"Usually the type of the data contained in the binary file\00"
@str.36 = [63 x i8] c"is determined from its extension. The following options can be\00"
@str.37 = [40 x i8] c"used to specify the data type directly:\00"
@str.38 = [77 x i8] c"-s : specify sign of the binary data (0=unsigned, 1=signed, default=signed).\00"
@str.39 = [76 x i8] c"-d : specify size of the binary data type in bytes (1, 2, 4, 8, default=2).\00"
@str.40 = [45 x i8] c"-f : the binary data type is float (4 byte).\00"
@str.41 = [46 x i8] c"-F : the binary data type is double (8 byte).\00"
@str.42 = [81 x i8] c"-c : specify number of channels multiplexed in the binary data file (default=1).\00"
@str.43 = [31 x i8] c"-v : print settings to stderr.\00"
define void @WriteUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([117 x i8], [117 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.40, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.41, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.42, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.43, i64 0, i64 0))
%26 = tail call i32 @putchar(i32 10)
%27 = tail call i32 @exit(i32 0)
unreachable
}