#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 send(int, char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
void DisplayHelp(int sockfd) {
  char sHelpMessage[] =
      "\n\n**************************************"
      "*****************************************\n"
      "Traceroute Application\n"
      "**************************************"
      "*****************************************\n"
      "The various options available to you are:\n"
      "1) traceroute [destination_machine] - destination_machine=DNS"
      "hostname/IP Address\n"
      "2) traceroute [filename] - filename= File containing a list of"
      " hostname/IP Adresses\n"
      "3) traceroute me - A traceroute to your machine\n"
      "4) help - Display this help text\n"
      "5) quit - Exit the application\n\n\n";
  if (send(sockfd, sHelpMessage, strlen(sHelpMessage), 0) != -1) {
  }
}


x86 assembly (clang, -O0):
<DisplayHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x200(%rbp),%rdi
lea    0xeb4(%rip),%rsi
mov    $0x1fb,%edx
call   1050 <memcpy@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x20c(%rbp)
lea    -0x200(%rbp),%rax
mov    %rax,-0x208(%rbp)
lea    -0x200(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20c(%rbp),%edi
mov    -0x208(%rbp),%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1040 <send@plt>
cmp    $0xffffffff,%eax
je     119d <DisplayHelp+0x6d>
jmp    119d <DisplayHelp+0x6d>
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DisplayHelp>:
push   %rbp
push   %rbx
sub    $0x208,%rsp
mov    %edi,%ebp
lea    0xebe(%rip),%rsi
mov    %rsp,%rbx
mov    $0x1fb,%edx
mov    %rbx,%rdi
call   1050 <memcpy@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1040 <send@plt>
add    $0x208,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@__const.DisplayHelp.sHelpMessage = [507 x i8] c"\0A\0A*******************************************************************************\0ATraceroute Application\0A*******************************************************************************\0AThe various options available to you are:\0A1) traceroute [destination_machine] - destination_machine=DNShostname/IP Address\0A2) traceroute [filename] - filename= File containing a list of hostname/IP Adresses\0A3) traceroute me - A traceroute to your machine\0A4) help - Display this help text\0A5) quit - Exit the application\0A\0A\0A\00"
define void @DisplayHelp(i32 %0) {
%2 = alloca i32
%3 = alloca [507 x i8]
store i32 %0, i32* %2
%4 = bitcast [507 x i8]* %3 to i8*
%5 = load i32, i32* %2
%6 = getelementptr inbounds [507 x i8], [507 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [507 x i8], [507 x i8]* %3, i64 0, i64 0
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @send(i32 %5, i8* %6, i32 %8, i32 0)
%10 = icmp ne i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %1
br label %12
12: ; preds = %11, %1
ret void
}

LLVM IR (-O2):
@__const.DisplayHelp.sHelpMessage = [507 x i8] c"\0A\0A*******************************************************************************\0ATraceroute Application\0A*******************************************************************************\0AThe various options available to you are:\0A1) traceroute [destination_machine] - destination_machine=DNShostname/IP Address\0A2) traceroute [filename] - filename= File containing a list of hostname/IP Adresses\0A3) traceroute me - A traceroute to your machine\0A4) help - Display this help text\0A5) quit - Exit the application\0A\0A\0A\00"
define void @DisplayHelp(i32 %0) {
%2 = alloca [507 x i8]
%3 = getelementptr inbounds [507 x i8], [507 x i8]* %2, i64 0, i64 0
%4 = call i32 @strlen(i8* %3)
%5 = call i32 @send(i32 %0, i8* %3, i32 %4, i32 0)
ret void
}