#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 cmdMan(void) {
  printf("man                 -> command help\n");
  printf("exit                -> finish this shell\n");
  printf("who                 -> shows T2FS authors\n");
  printf("create  [file]      -> create new [file] in T2FS\n");
  printf("del     [file]      -> delete [file] from T2FS\n");
  printf("open    [file]      -> open [file] from T2FS\n");
  printf("close   [hdl]       -> close [hdl]\n");
  printf("read    [hdl] [siz] -> read [siz] bytes from file [hdl]\n");
  printf("trunc   [hdl] [siz] -> truncate file [hdl] to [size] bytes\n");
  printf("ls      [pathname]  -> list files in [pathname]\n");
  printf("md      [pathname]  -> create [pathname] dir in T2FS\n");
  printf("rm      [pathname]  -> deletes [pathname] dir in T2FS\n");
  printf("cp      [src] [dst] -> copy files: src -> dst\n");
  printf("fscp -t [src] [dst] -> copy HostFS -> T2FS\n");
  printf("fscp -f [src] [dst] -> copy T2FS   -> HostFS\n");
}


x86 assembly (clang, -O0):
<cmdMan>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x101c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1041(%rip),%rdi
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmdMan>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1016(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1063(%rip),%rdi
call   1030 <puts@plt>
lea    0x108d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10af(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ce(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"man -> command help\0A\00"
@.str.1 = [42 x i8] c"exit -> finish this shell\0A\00"
@.str.2 = [43 x i8] c"who -> shows T2FS authors\0A\00"
@.str.3 = [50 x i8] c"create [file] -> create new [file] in T2FS\0A\00"
@.str.4 = [48 x i8] c"del [file] -> delete [file] from T2FS\0A\00"
@.str.5 = [46 x i8] c"open [file] -> open [file] from T2FS\0A\00"
@.str.6 = [36 x i8] c"close [hdl] -> close [hdl]\0A\00"
@.str.7 = [57 x i8] c"read [hdl] [siz] -> read [siz] bytes from file [hdl]\0A\00"
@.str.8 = [60 x i8] c"trunc [hdl] [siz] -> truncate file [hdl] to [size] bytes\0A\00"
@.str.9 = [49 x i8] c"ls [pathname] -> list files in [pathname]\0A\00"
@.str.10 = [54 x i8] c"md [pathname] -> create [pathname] dir in T2FS\0A\00"
@.str.11 = [55 x i8] c"rm [pathname] -> deletes [pathname] dir in T2FS\0A\00"
@.str.12 = [47 x i8] c"cp [src] [dst] -> copy files: src -> dst\0A\00"
@.str.13 = [44 x i8] c"fscp -t [src] [dst] -> copy HostFS -> T2FS\0A\00"
@.str.14 = [46 x i8] c"fscp -f [src] [dst] -> copy T2FS -> HostFS\0A\00"
define void @cmdMan() {
%1 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [36 x i8] c"man -> command help\00"
@str.15 = [41 x i8] c"exit -> finish this shell\00"
@str.16 = [42 x i8] c"who -> shows T2FS authors\00"
@str.17 = [49 x i8] c"create [file] -> create new [file] in T2FS\00"
@str.18 = [47 x i8] c"del [file] -> delete [file] from T2FS\00"
@str.19 = [45 x i8] c"open [file] -> open [file] from T2FS\00"
@str.20 = [35 x i8] c"close [hdl] -> close [hdl]\00"
@str.21 = [56 x i8] c"read [hdl] [siz] -> read [siz] bytes from file [hdl]\00"
@str.22 = [59 x i8] c"trunc [hdl] [siz] -> truncate file [hdl] to [size] bytes\00"
@str.23 = [48 x i8] c"ls [pathname] -> list files in [pathname]\00"
@str.24 = [53 x i8] c"md [pathname] -> create [pathname] dir in T2FS\00"
@str.25 = [54 x i8] c"rm [pathname] -> deletes [pathname] dir in T2FS\00"
@str.26 = [46 x i8] c"cp [src] [dst] -> copy files: src -> dst\00"
@str.27 = [43 x i8] c"fscp -t [src] [dst] -> copy HostFS -> T2FS\00"
@str.28 = [45 x i8] c"fscp -f [src] [dst] -> copy T2FS -> HostFS\00"
define void @cmdMan() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.28, i64 0, i64 0))
ret void
}