#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_help(char *argv0) {
  printf("\nSynopsis:\n");
  printf("%s [-p PORT] [-t THR] [-h] TARGET\n\n", argv0);
  printf("TARGET = is the IP/URL to target of the DOS attack,\n");
  printf("PORT   = which port to send to and\n");
  printf("THR    = how many threads to run simultaneously\n\n");
  printf("+-----------------------+-------------------------+\n");
  printf("| PARAMETER             | FUNCTION                |\n");
  printf("+-----------------------+-------------------------+\n");
  printf("| -h, --help            | Print this help message |\n");
  printf("| -I, --interactive     | Run in interactive mode |\n");
  printf("| -p PORT, --port PORT  | Direct packets at PORT  |\n");
  printf("| -t THR, --threads THR | Run THR threads         |\n");
  printf("+-----------------------+-------------------------+\n");
  printf("\nArguments are handled in the order they are given and the last one "
         "of a type will overwrite any previous ones of the same type!\n");
  printf("This also counts for interactive mode!\n");
  printf("e.g.: \"./gdos -I -t 5\" will run in interactive mode, but the "
         "thread count will be overwritten with 5\n");
  printf(
      "\nFeel free to test some parameters out, the program will print out "
      "with what settings it will run and give you 5 seconds to cancel.\n\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1090(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1102(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    %rdi,%rbx
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0x104f(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd4(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1028(%rip),%rdi
call   1030 <puts@plt>
lea    0x109d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1111(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\0ASynopsis:\0A\00"
@.str.1 = [36 x i8] c"%s [-p PORT] [-t THR] [-h] TARGET\0A\0A\00"
@.str.2 = [53 x i8] c"TARGET = is the IP/URL to target of the DOS attack,\0A\00"
@.str.3 = [36 x i8] c"PORT = which port to send to and\0A\00"
@.str.4 = [50 x i8] c"THR = how many threads to run simultaneously\0A\0A\00"
@.str.5 = [53 x i8] c"+-----------------------+-------------------------+\0A\00"
@.str.6 = [53 x i8] c"| PARAMETER | FUNCTION |\0A\00"
@.str.7 = [53 x i8] c"| -h, --help | Print this help message |\0A\00"
@.str.8 = [53 x i8] c"| -I, --interactive | Run in interactive mode |\0A\00"
@.str.9 = [53 x i8] c"| -p PORT, --port PORT | Direct packets at PORT |\0A\00"
@.str.10 = [53 x i8] c"| -t THR, --threads THR | Run THR threads |\0A\00"
@.str.11 = [130 x i8] c"\0AArguments are handled in the order they are given and the last one of a type will overwrite any previous ones of the same type!\0A\00"
@.str.12 = [40 x i8] c"This also counts for interactive mode!\0A\00"
@.str.13 = [102 x i8] c"e.g.: \22./gdos -I -t 5\22 will run in interactive mode, but the thread count will be overwritten with 5\0A\00"
@.str.14 = [134 x i8] c"\0AFeel free to test some parameters out, the program will print out with what settings it will run and give you 5 seconds to cancel.\0A\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([130 x i8], [130 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [36 x i8] c"%s [-p PORT] [-t THR] [-h] TARGET\0A\0A\00"
@str = [11 x i8] c"\0ASynopsis:\00"
@str.15 = [52 x i8] c"TARGET = is the IP/URL to target of the DOS attack,\00"
@str.16 = [35 x i8] c"PORT = which port to send to and\00"
@str.17 = [49 x i8] c"THR = how many threads to run simultaneously\0A\00"
@str.19 = [52 x i8] c"| PARAMETER | FUNCTION |\00"
@str.21 = [52 x i8] c"| -h, --help | Print this help message |\00"
@str.22 = [52 x i8] c"| -I, --interactive | Run in interactive mode |\00"
@str.23 = [52 x i8] c"| -p PORT, --port PORT | Direct packets at PORT |\00"
@str.24 = [52 x i8] c"| -t THR, --threads THR | Run THR threads |\00"
@str.25 = [52 x i8] c"+-----------------------+-------------------------+\00"
@str.26 = [129 x i8] c"\0AArguments are handled in the order they are given and the last one of a type will overwrite any previous ones of the same type!\00"
@str.27 = [39 x i8] c"This also counts for interactive mode!\00"
@str.28 = [101 x i8] c"e.g.: \22./gdos -I -t 5\22 will run in interactive mode, but the thread count will be overwritten with 5\00"
@str.29 = [133 x i8] c"\0AFeel free to test some parameters out, the program will print out with what settings it will run and give you 5 seconds to cancel.\0A\00"
define void @print_help(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([129 x i8], [129 x i8]* @str.26, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.27, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.28, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([133 x i8], [133 x i8]* @str.29, i64 0, i64 0))
ret void
}