#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 commands() {
  printf("Command list in alphabetical order:\n\n");
  printf("active\t\t\tSet client to active mode\n");
  printf("ascii\t\t\tSet file transfer mode to ascii\n");
  printf("binary\t\t\tSet file transfer mode to binary\n");
  printf("cd <path>\t\tChange working directory to <path>\n");
  printf("close\t\t\tClose connection to server\n");
  printf("get <file>\t\tRetrieve file <file> from server\n");
  printf("help\t\t\tPrint this help\n");
  printf("ls\t\t\tShow files in current working directory\n");
  printf("open <addr>:<port>\tOpen connection to server <addr> in <port>\n");
  printf("passive\t\t\tSet client to passive mode\n");
  printf("put <file>\t\tStore file <file> to server\n");
  printf("quit\t\t\tQuit and close active connections\n\n");
}


x86 assembly (clang, -O0):
<commands>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<commands>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x103f(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Command list in alphabetical order:\0A\0A\00"
@.str.1 = [36 x i8] c"active\09\09\09Set client to active mode\0A\00"
@.str.2 = [41 x i8] c"ascii\09\09\09Set file transfer mode to ascii\0A\00"
@.str.3 = [43 x i8] c"binary\09\09\09Set file transfer mode to binary\0A\00"
@.str.4 = [47 x i8] c"cd <path>\09\09Change working directory to <path>\0A\00"
@.str.5 = [36 x i8] c"close\09\09\09Close connection to server\0A\00"
@.str.6 = [46 x i8] c"get <file>\09\09Retrieve file <file> from server\0A\00"
@.str.7 = [24 x i8] c"help\09\09\09Print this help\0A\00"
@.str.8 = [46 x i8] c"ls\09\09\09Show files in current working directory\0A\00"
@.str.9 = [63 x i8] c"open <addr>:<port>\09Open connection to server <addr> in <port>\0A\00"
@.str.10 = [38 x i8] c"passive\09\09\09Set client to passive mode\0A\00"
@.str.11 = [41 x i8] c"put <file>\09\09Store file <file> to server\0A\00"
@.str.12 = [43 x i8] c"quit\09\09\09Quit and close active connections\0A\0A\00"
define void @commands() {
%1 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [37 x i8] c"Command list in alphabetical order:\0A\00"
@str.13 = [35 x i8] c"active\09\09\09Set client to active mode\00"
@str.14 = [40 x i8] c"ascii\09\09\09Set file transfer mode to ascii\00"
@str.15 = [42 x i8] c"binary\09\09\09Set file transfer mode to binary\00"
@str.16 = [46 x i8] c"cd <path>\09\09Change working directory to <path>\00"
@str.17 = [35 x i8] c"close\09\09\09Close connection to server\00"
@str.18 = [45 x i8] c"get <file>\09\09Retrieve file <file> from server\00"
@str.19 = [23 x i8] c"help\09\09\09Print this help\00"
@str.20 = [45 x i8] c"ls\09\09\09Show files in current working directory\00"
@str.21 = [62 x i8] c"open <addr>:<port>\09Open connection to server <addr> in <port>\00"
@str.22 = [37 x i8] c"passive\09\09\09Set client to passive mode\00"
@str.23 = [40 x i8] c"put <file>\09\09Store file <file> to server\00"
@str.24 = [42 x i8] c"quit\09\09\09Quit and close active connections\0A\00"
define void @commands() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.24, i64 0, i64 0))
ret void
}