#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void display_help(void) {
  printf("\nftserver [-p <port-number>] [-d <directory-path>] [-h]\n");
  printf("\n-p <port-number>:\nSpecify the port number on which the server "
         "program will listen for file upload requests from clients. If this "
         "option is not specified, the program defaults to port 5678.\n");
  printf("\n-d <directory-path>:\nSpecify the directory into which the server "
         "program will save uploaded files. If this option is not specified, "
         "the program defaults to the current working directory.\n");
  printf("\n-h:\nDisplays this help message.\n\n");
  exit(0);
}


x86 assembly (clang, -O0):
<display_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<display_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1066(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [57 x i8] c"\0Aftserver [-p <port-number>] [-d <directory-path>] [-h]\0A\00"
@.str.1 = [191 x i8] c"\0A-p <port-number>:\0ASpecify the port number on which the server program will listen for file upload requests from clients. If this option is not specified, the program defaults to port 5678.\0A\00"
@.str.2 = [189 x i8] c"\0A-d <directory-path>:\0ASpecify the directory into which the server program will save uploaded files. If this option is not specified, the program defaults to the current working directory.\0A\00"
@.str.3 = [35 x i8] c"\0A-h:\0ADisplays this help message.\0A\0A\00"
define void @display_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([191 x i8], [191 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [56 x i8] c"\0Aftserver [-p <port-number>] [-d <directory-path>] [-h]\00"
@str.4 = [190 x i8] c"\0A-p <port-number>:\0ASpecify the port number on which the server program will listen for file upload requests from clients. If this option is not specified, the program defaults to port 5678.\00"
@str.5 = [188 x i8] c"\0A-d <directory-path>:\0ASpecify the directory into which the server program will save uploaded files. If this option is not specified, the program defaults to the current working directory.\00"
@str.6 = [34 x i8] c"\0A-h:\0ADisplays this help message.\0A\00"
define void @display_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([190 x i8], [190 x i8]* @str.4, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([188 x i8], [188 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @exit(i32 0)
unreachable
}