#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*/ printf(char *, ...);
void usage(void) {
  printf("\niWar [Intelligent Wardialer] Version %s - By Da Beave "
         "(beave@softwink.com)\n\n",
         "0.071");
  printf("usage: iwar [parameters] -r [dial range]\n\n");
  printf("\t -h  :  Prints this screen\n");
  printf("\t -s  :  Speed/Baud rate [Serial default: 1200] [IAX2 mode "
         "disabled]\n");
  printf("\t -p  :  Parity (None/Even/Odd) \n\t\t[Serial default 'N'one] [IAX2 "
         "mode disabled]\n");
  printf("\t -d  :  Data bits [Serial default: 8] [IAX2 mode disabled]\n");
  printf("\t -t  :  TTY to use (modem) \n\t\t[Serial default /dev/ttyS0] [IAX2 "
         "mode disabled]\n");
  printf("\t -c  :  Use software handshaking (XON/XOFF)\n\t\t[Serial default "
         "is hardware flow control] [IAX2 mode disabled]\n");
  printf("\t -f  :  Output log file [Default: iwar.log]\n");
  printf("\t -e  :  Pre-dial string/NPA to scan [Optional]\n");
  printf("\t -g  :  Post-dial string [Optional]\n");
  printf("\t -a  :  Tone Location (Toneloc W; method) \n\t\t[Serial default: "
         "disabled] [IAX2 mode disabled]\n");
  printf("\t -r  :  Range to scan (ie - 5551212-5551313)\n");
  printf("\t -x  :  Sequential dialing [Default: Random]\n");
  printf("\t -F  :  Full logging (BUSY, NO CARRIER, Timeouts, Skipped, etc)\n");
  printf("\t -b  :  Disable banners check \n\t\t[Serial Default: enabled] "
         "[IAX2 mode disabled]\n");
  printf("\t -o  :  Disable recording banner data \n\t\t[Serial default: "
         "enabled] [IAX2 mode disabled].\n");
  printf("\t -L  :  Load numbers to dial from file.\n");
  printf("\t -l  :  Load 'saved state' file (previously dialed numbers)\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf2c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x116b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1204(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1251(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x126d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xf0f(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf07(%rip),%rdi
call   1040 <puts@plt>
lea    0xf25(%rip),%rdi
call   1040 <puts@plt>
lea    0xf35(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6e(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1026(%rip),%rdi
call   1040 <puts@plt>
lea    0x1088(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cd(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1138(%rip),%rdi
call   1040 <puts@plt>
lea    0x115a(%rip),%rdi
call   1040 <puts@plt>
lea    0x117c(%rip),%rdi
call   1040 <puts@plt>
lea    0x11b1(%rip),%rdi
call   1040 <puts@plt>
lea    0x11f6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1244(%rip),%rdi
call   1040 <puts@plt>
lea    0x1261(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [78 x i8] c"\0AiWar [Intelligent Wardialer] Version %s - By Da Beave (beave@softwink.com)\0A\0A\00"
@.str.1 = [6 x i8] c"0.071\00"
@.str.2 = [43 x i8] c"usage: iwar [parameters] -r [dial range]\0A\0A\00"
@.str.3 = [29 x i8] c"\09 -h : Prints this screen\0A\00"
@.str.4 = [70 x i8] c"\09 -s : Speed/Baud rate [Serial default: 1200] [IAX2 mode disabled]\0A\00"
@.str.5 = [81 x i8] c"\09 -p : Parity (None/Even/Odd) \0A\09\09[Serial default 'N'one] [IAX2 mode disabled]\0A\00"
@.str.6 = [61 x i8] c"\09 -d : Data bits [Serial default: 8] [IAX2 mode disabled]\0A\00"
@.str.7 = [81 x i8] c"\09 -t : TTY to use (modem) \0A\09\09[Serial default /dev/ttyS0] [IAX2 mode disabled]\0A\00"
@.str.8 = [111 x i8] c"\09 -c : Use software handshaking (XON/XOFF)\0A\09\09[Serial default is hardware flow control] [IAX2 mode disabled]\0A\00"
@.str.9 = [46 x i8] c"\09 -f : Output log file [Default: iwar.log]\0A\00"
@.str.10 = [49 x i8] c"\09 -e : Pre-dial string/NPA to scan [Optional]\0A\00"
@.str.11 = [38 x i8] c"\09 -g : Post-dial string [Optional]\0A\00"
@.str.12 = [95 x i8] c"\09 -a : Tone Location (Toneloc W; method) \0A\09\09[Serial default: disabled] [IAX2 mode disabled]\0A\00"
@.str.13 = [47 x i8] c"\09 -r : Range to scan (ie - 5551212-5551313)\0A\00"
@.str.14 = [47 x i8] c"\09 -x : Sequential dialing [Default: Random]\0A\00"
@.str.15 = [66 x i8] c"\09 -F : Full logging (BUSY, NO CARRIER, Timeouts, Skipped, etc)\0A\00"
@.str.16 = [82 x i8] c"\09 -b : Disable banners check \0A\09\09[Serial Default: enabled] [IAX2 mode disabled]\0A\00"
@.str.17 = [91 x i8] c"\09 -o : Disable recording banner data \0A\09\09[Serial default: enabled] [IAX2 mode disabled].\0A\00"
@.str.18 = [42 x i8] c"\09 -L : Load numbers to dial from file.\0A\00"
@.str.19 = [62 x i8] c"\09 -l : Load 'saved state' file (previously dialed numbers)\0A\00"
@.str.20 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.15, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.16, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.17, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [78 x i8] c"\0AiWar [Intelligent Wardialer] Version %s - By Da Beave (beave@softwink.com)\0A\0A\00"
@.str.1 = [6 x i8] c"0.071\00"
@str = [42 x i8] c"usage: iwar [parameters] -r [dial range]\0A\00"
@str.21 = [28 x i8] c"\09 -h : Prints this screen\00"
@str.22 = [69 x i8] c"\09 -s : Speed/Baud rate [Serial default: 1200] [IAX2 mode disabled]\00"
@str.23 = [80 x i8] c"\09 -p : Parity (None/Even/Odd) \0A\09\09[Serial default 'N'one] [IAX2 mode disabled]\00"
@str.24 = [60 x i8] c"\09 -d : Data bits [Serial default: 8] [IAX2 mode disabled]\00"
@str.25 = [80 x i8] c"\09 -t : TTY to use (modem) \0A\09\09[Serial default /dev/ttyS0] [IAX2 mode disabled]\00"
@str.26 = [110 x i8] c"\09 -c : Use software handshaking (XON/XOFF)\0A\09\09[Serial default is hardware flow control] [IAX2 mode disabled]\00"
@str.27 = [45 x i8] c"\09 -f : Output log file [Default: iwar.log]\00"
@str.28 = [48 x i8] c"\09 -e : Pre-dial string/NPA to scan [Optional]\00"
@str.29 = [37 x i8] c"\09 -g : Post-dial string [Optional]\00"
@str.30 = [94 x i8] c"\09 -a : Tone Location (Toneloc W; method) \0A\09\09[Serial default: disabled] [IAX2 mode disabled]\00"
@str.31 = [46 x i8] c"\09 -r : Range to scan (ie - 5551212-5551313)\00"
@str.32 = [46 x i8] c"\09 -x : Sequential dialing [Default: Random]\00"
@str.33 = [65 x i8] c"\09 -F : Full logging (BUSY, NO CARRIER, Timeouts, Skipped, etc)\00"
@str.34 = [81 x i8] c"\09 -b : Disable banners check \0A\09\09[Serial Default: enabled] [IAX2 mode disabled]\00"
@str.35 = [90 x i8] c"\09 -o : Disable recording banner data \0A\09\09[Serial default: enabled] [IAX2 mode disabled].\00"
@str.36 = [41 x i8] c"\09 -L : Load numbers to dial from file.\00"
@str.37 = [61 x i8] c"\09 -l : Load 'saved state' file (previously dialed numbers)\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.21, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.22, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.23, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @putchar(i32 10)
ret void
}