#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("bin2dat [-o|O ## -u|U ## -n|N ## -T ## -t ## -s ## -d ## -f -F -c ## "
         "-v] <binfile> <datfile>\n");
  printf("\n");
  printf("Save binary data from file <binfile> as ascii data into file "
         "<datfile>.\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 ## divided by stepsize (-t) lines of data.\n");
  printf("-t : add a time column with stepsize ##.\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    0x113f(%rip),%rdi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1127(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1052(%rip),%rdi
call   1030 <printf@plt>
lea    0x1087(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1099(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1119(%rip),%rdi
call   1030 <printf@plt>
lea    0x115b(%rip),%rdi
call   1030 <printf@plt>
lea    0x119c(%rip),%rdi
call   1030 <printf@plt>
lea    0x11be(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1227(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%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    0xf01(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaf(%rip),%rdi
call   1040 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1040 <puts@plt>
lea    0xff2(%rip),%rdi
call   1040 <puts@plt>
lea    0x102b(%rip),%rdi
call   1040 <puts@plt>
lea    0x103f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1073(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1086(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1103(%rip),%rdi
call   1040 <puts@plt>
lea    0x1144(%rip),%rdi
call   1040 <puts@plt>
lea    0x1184(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a5(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c7(%rip),%rdi
call   1040 <puts@plt>
lea    0x120c(%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 = [94 x i8] c"bin2dat [-o|O ## -u|U ## -n|N ## -T ## -t ## -s ## -d ## -f -F -c ## -v] <binfile> <datfile>\0A\00"
@.str.3 = [73 x i8] c"Save binary data from file <binfile> as ascii data into file <datfile>.\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 = [65 x i8] c"-T : save at maximum ## divided by stepsize (-t) lines of data.\0A\00"
@.str.12 = [42 x i8] c"-t : add a time column with stepsize ##.\0A\00"
@.str.13 = [59 x i8] c"Usually the type of the data contained in the binary file\0A\00"
@.str.14 = [64 x i8] c"is determined from its extension. The following options can be\0A\00"
@.str.15 = [41 x i8] c"used to specify the data type directly:\0A\00"
@.str.16 = [78 x i8] c"-s : specify sign of the binary data (0=unsigned, 1=signed, default=signed).\0A\00"
@.str.17 = [77 x i8] c"-d : specify size of the binary data type in bytes (1, 2, 4, 8, default=2).\0A\00"
@.str.18 = [46 x i8] c"-f : the binary data type is float (4 byte).\0A\00"
@.str.19 = [47 x i8] c"-F : the binary data type is double (8 byte).\0A\00"
@.str.20 = [82 x i8] c"-c : specify number of channels multiplexed in the binary data file (default=1).\0A\00"
@.str.21 = [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 ([94 x i8], [94 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 ([73 x i8], [73 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 ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [8 x i8] c"\0Ausage:\00"
@str.22 = [93 x i8] c"bin2dat [-o|O ## -u|U ## -n|N ## -T ## -t ## -s ## -d ## -f -F -c ## -v] <binfile> <datfile>\00"
@str.23 = [72 x i8] c"Save binary data from file <binfile> as ascii data into file <datfile>.\00"
@str.24 = [45 x i8] c"-o : save data starting from byte offset ##.\00"
@str.25 = [69 x i8] c"-O : save data starting from byte offset ## times size of data type.\00"
@str.26 = [36 x i8] c"-u : save data upto byte offset ##.\00"
@str.27 = [60 x i8] c"-U : save data upto byte offset ## times size of data type.\00"
@str.28 = [31 x i8] c"-n : save at maximum ## bytes.\00"
@str.29 = [69 x i8] c"-N : save at maximum ## lines (i.e. ## times size of data type times\00"
@str.30 = [32 x i8] c" number of channels bytes).\00"
@str.31 = [64 x i8] c"-T : save at maximum ## divided by stepsize (-t) lines of data.\00"
@str.32 = [41 x i8] c"-t : add a time column with stepsize ##.\00"
@str.33 = [58 x i8] c"Usually the type of the data contained in the binary file\00"
@str.34 = [63 x i8] c"is determined from its extension. The following options can be\00"
@str.35 = [40 x i8] c"used to specify the data type directly:\00"
@str.36 = [77 x i8] c"-s : specify sign of the binary data (0=unsigned, 1=signed, default=signed).\00"
@str.37 = [76 x i8] c"-d : specify size of the binary data type in bytes (1, 2, 4, 8, default=2).\00"
@str.38 = [45 x i8] c"-f : the binary data type is float (4 byte).\00"
@str.39 = [46 x i8] c"-F : the binary data type is double (8 byte).\00"
@str.40 = [81 x i8] c"-c : specify number of channels multiplexed in the binary data file (default=1).\00"
@str.41 = [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 ([93 x i8], [93 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.23, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.33, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.34, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.35, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.36, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.37, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.38, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.39, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.40, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.41, i64 0, i64 0))
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @exit(i32 0)
unreachable
}