#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("udp_proxy \n");
  printf("-?                  Help, print this usage\n");
  printf("-p <num>            Proxy port to 'listen' on\n");
  printf("-s <server:port>    Server address in dotted decimal:port\n");
  printf("-d <num>            Drop every <num> packet, default 0\n");
  printf("-x <num>            "
         "Drop specifically packet with sequence <num> from epoch 0\n");
  printf("-y <num>            Delay every <num> packet, default 0\n");
  printf("-b <num>            "
         "Delay specific packet with sequence <num> by 1\n");
  printf("-D                  Duplicate all packets\n");
  printf("-R <num>            Retransmit packet sequence <num>\n");
  printf("-a                  Inject clear alert from client after CCS\n");
  printf("-S <client|server>  Force side (default: server)\n");
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x104a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1074(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf28(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1026(%rip),%rdi
call   1030 <puts@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0x106d(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"udp_proxy \0A\00"
@.str.1 = [44 x i8] c"-? Help, print this usage\0A\00"
@.str.2 = [47 x i8] c"-p <num> Proxy port to 'listen' on\0A\00"
@.str.3 = [59 x i8] c"-s <server:port> Server address in dotted decimal:port\0A\00"
@.str.4 = [56 x i8] c"-d <num> Drop every <num> packet, default 0\0A\00"
@.str.5 = [79 x i8] c"-x <num> Drop specifically packet with sequence <num> from epoch 0\0A\00"
@.str.6 = [57 x i8] c"-y <num> Delay every <num> packet, default 0\0A\00"
@.str.7 = [68 x i8] c"-b <num> Delay specific packet with sequence <num> by 1\0A\00"
@.str.8 = [43 x i8] c"-D Duplicate all packets\0A\00"
@.str.9 = [54 x i8] c"-R <num> Retransmit packet sequence <num>\0A\00"
@.str.10 = [62 x i8] c"-a Inject clear alert from client after CCS\0A\00"
@.str.11 = [50 x i8] c"-S <client|server> Force side (default: server)\0A\00"
define void @Usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [11 x i8] c"udp_proxy \00"
@str.12 = [43 x i8] c"-? Help, print this usage\00"
@str.13 = [46 x i8] c"-p <num> Proxy port to 'listen' on\00"
@str.14 = [58 x i8] c"-s <server:port> Server address in dotted decimal:port\00"
@str.15 = [55 x i8] c"-d <num> Drop every <num> packet, default 0\00"
@str.16 = [78 x i8] c"-x <num> Drop specifically packet with sequence <num> from epoch 0\00"
@str.17 = [56 x i8] c"-y <num> Delay every <num> packet, default 0\00"
@str.18 = [67 x i8] c"-b <num> Delay specific packet with sequence <num> by 1\00"
@str.19 = [42 x i8] c"-D Duplicate all packets\00"
@str.20 = [53 x i8] c"-R <num> Retransmit packet sequence <num>\00"
@str.21 = [61 x i8] c"-a Inject clear alert from client after CCS\00"
@str.22 = [49 x i8] c"-S <client|server> Force side (default: server)\00"
define void @Usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.22, i64 0, i64 0))
ret void
}