#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 print_usage() {
  printf("Copyright (C) 2015 Florent DELAHAYE <delahaye.florent@gmail.com>\n");
  printf("Anguille - client/server program establishing dynamic UDP tunnel to "
         "carry TCP traffic.\n");
  printf("\n");
  printf("Usage: anguille [-h] [-v level] [-d tunnel duration] [-r port range] "
         "[-t application port] [-p password] [-m manager port] [-i server ip] "
         "[-s server mode]\n");
  printf("\n");
  printf("Arguments:\n");
  printf("\n");
  printf("\t-h\tDisplay this help.\n");
  printf("\n");
  printf("\t-v\tSay some stuff. Level from 1 to %u.\n", 6);
  printf("\n");
  printf(
      "\t-d\tClient side only. Set tunnel duration (second). From %u to %u.\n",
      2, 300);
  printf("\n");
  printf("\t-r\tSelect UDP tunnel port-range usable. Syntax is "
         "startingport:endingport\n");
  printf("\n");
  printf("\t-t\tServer side: set target application\n");
  printf("\t\tClient side: set local port to listen\n");
  printf("\n");
  printf("\t-p\tServer side: set password protection.\n");
  printf("\t\tClient side: set server password to get access to tunnel.\n");
  printf("\t\t%d characters max length. Authorized characters: A-Za-z0-9_\n",
         50);
  printf("\n");
  printf("\t-m\tServer side: set TCP manager port.\n");
  printf("\t\tClient side: set remote TCP manager port.\n");
  printf("\n");
  printf("\t-i\tClient side only. Specify program mode as client by setting "
         "server IP (v4 only).\n");
  printf("\n");
  printf("\t-s\tServer side only. Specify program mode as server.\n");
  printf("\n");
  printf("Program mode must be specified using either -i or -s option!");
  printf("\n");
  printf("Example:\n");
  printf(
      "Server: anguille -v 1 -r 4500:4600 -t 22 -p MY_PASS_123 -m 9870 -s\n");
  printf("Client: anguille -v 1 -r 6200:6300 -t 1234 -p MY_PASS_123 -m 9870 -i "
         "178.175.135.122\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x127e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1262(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1246(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x122a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
mov    $0x6,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1209(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc9(%rip),%rdi
mov    $0x2,%esi
mov    $0x12c,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1017(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x119d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
mov    $0x32,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1160(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1136(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x111a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10fe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1129(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1146(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xfb1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1027(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10ac(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10a1(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe64(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe70(%rip),%rdi
mov    $0x2,%esi
mov    $0x12c,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1063(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1098(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10c6(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e4(%rip),%rdi
call   1040 <puts@plt>
lea    0xe42(%rip),%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10f7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1112(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1128(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1167(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe16(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x116f(%rip),%rdi
call   1040 <puts@plt>
lea    0x116c(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a3(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"Copyright (C) 2015 Florent DELAHAYE <delahaye.florent@gmail.com>\0A\00"
@.str.1 = [88 x i8] c"Anguille - client/server program establishing dynamic UDP tunnel to carry TCP traffic.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [156 x i8] c"Usage: anguille [-h] [-v level] [-d tunnel duration] [-r port range] [-t application port] [-p password] [-m manager port] [-i server ip] [-s server mode]\0A\00"
@.str.4 = [12 x i8] c"Arguments:\0A\00"
@.str.5 = [24 x i8] c"\09-h\09Display this help.\0A\00"
@.str.6 = [41 x i8] c"\09-v\09Say some stuff. Level from 1 to %u.\0A\00"
@.str.7 = [68 x i8] c"\09-d\09Client side only. Set tunnel duration (second). From %u to %u.\0A\00"
@.str.8 = [76 x i8] c"\09-r\09Select UDP tunnel port-range usable. Syntax is startingport:endingport\0A\00"
@.str.9 = [41 x i8] c"\09-t\09Server side: set target application\0A\00"
@.str.10 = [41 x i8] c"\09\09Client side: set local port to listen\0A\00"
@.str.11 = [43 x i8] c"\09-p\09Server side: set password protection.\0A\00"
@.str.12 = [61 x i8] c"\09\09Client side: set server password to get access to tunnel.\0A\00"
@.str.13 = [63 x i8] c"\09\09%d characters max length. Authorized characters: A-Za-z0-9_\0A\00"
@.str.14 = [40 x i8] c"\09-m\09Server side: set TCP manager port.\0A\00"
@.str.15 = [45 x i8] c"\09\09Client side: set remote TCP manager port.\0A\00"
@.str.16 = [86 x i8] c"\09-i\09Client side only. Specify program mode as client by setting server IP (v4 only).\0A\00"
@.str.17 = [55 x i8] c"\09-s\09Server side only. Specify program mode as server.\0A\00"
@.str.18 = [61 x i8] c"Program mode must be specified using either -i or -s option!\00"
@.str.19 = [10 x i8] c"Example:\0A\00"
@.str.20 = [68 x i8] c"Server: anguille -v 1 -r 4500:4600 -t 22 -p MY_PASS_123 -m 9870 -s\0A\00"
@.str.21 = [86 x i8] c"Client: anguille -v 1 -r 6200:6300 -t 1234 -p MY_PASS_123 -m 9870 -i 178.175.135.122\0A\00"
define void @print_usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 6)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0), i32 2, i32 300)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0), i32 50)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.17, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.20, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.6 = [41 x i8] c"\09-v\09Say some stuff. Level from 1 to %u.\0A\00"
@.str.7 = [68 x i8] c"\09-d\09Client side only. Set tunnel duration (second). From %u to %u.\0A\00"
@.str.13 = [63 x i8] c"\09\09%d characters max length. Authorized characters: A-Za-z0-9_\0A\00"
@.str.18 = [61 x i8] c"Program mode must be specified using either -i or -s option!\00"
@str = [65 x i8] c"Copyright (C) 2015 Florent DELAHAYE <delahaye.florent@gmail.com>\00"
@str.22 = [87 x i8] c"Anguille - client/server program establishing dynamic UDP tunnel to carry TCP traffic.\00"
@str.23 = [155 x i8] c"Usage: anguille [-h] [-v level] [-d tunnel duration] [-r port range] [-t application port] [-p password] [-m manager port] [-i server ip] [-s server mode]\00"
@str.24 = [11 x i8] c"Arguments:\00"
@str.25 = [23 x i8] c"\09-h\09Display this help.\00"
@str.26 = [75 x i8] c"\09-r\09Select UDP tunnel port-range usable. Syntax is startingport:endingport\00"
@str.27 = [40 x i8] c"\09-t\09Server side: set target application\00"
@str.28 = [40 x i8] c"\09\09Client side: set local port to listen\00"
@str.29 = [42 x i8] c"\09-p\09Server side: set password protection.\00"
@str.30 = [60 x i8] c"\09\09Client side: set server password to get access to tunnel.\00"
@str.31 = [39 x i8] c"\09-m\09Server side: set TCP manager port.\00"
@str.32 = [44 x i8] c"\09\09Client side: set remote TCP manager port.\00"
@str.33 = [85 x i8] c"\09-i\09Client side only. Specify program mode as client by setting server IP (v4 only).\00"
@str.34 = [54 x i8] c"\09-s\09Server side only. Specify program mode as server.\00"
@str.35 = [9 x i8] c"Example:\00"
@str.36 = [67 x i8] c"Server: anguille -v 1 -r 4500:4600 -t 22 -p MY_PASS_123 -m 9870 -s\00"
@str.37 = [85 x i8] c"Client: anguille -v 1 -r 6200:6300 -t 1234 -p MY_PASS_123 -m 9870 -i 178.175.135.122\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.22, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([155 x i8], [155 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.25, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 6)
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0), i32 2, i32 300)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.27, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.28, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.29, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.30, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0), i32 50)
%22 = tail call i32 @putchar(i32 10)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.31, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.32, i64 0, i64 0))
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.33, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.34, i64 0, i64 0))
%29 = tail call i32 @putchar(i32 10)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%31 = tail call i32 @putchar(i32 10)
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.35, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.36, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.37, i64 0, i64 0))
ret void
}