#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 printHelp() {
  printf("======== FLOP HELP =========\n");
  printf("  <required> - [optional]\n\n");
  printf("  fmount:\n");
  printf("    DESC:     Mounts a local floppy image.\n");
  printf("    USAGE:    `fmount <image>`\n");
  printf("  fumount:\n");
  printf("    DESC:     Unmounts a local floppy image.\n");
  printf("    USAGE:    `fumount`\n");
  printf("  structure:\n");
  printf("    DESC:     Lists the structure of the floppy disk.\n");
  printf("    USAGE:    `structure [-l]`\n");
  printf("  traverse:\n");
  printf("    DESC:     Lists the contents of the root directory.\n");
  printf("    USGE:     `traverse [-l]`\n");
  printf("  showfat:\n");
  printf("    DESC:     Show the content of the FAT tables.\n");
  printf("    USAGE:    `showfat`\n");
  printf("  showsector:\n");
  printf("    DESC:     Show the contents of a specified sector.\n");
  printf("    USAGE:    `showsector <number>`\n");
  printf("  showfile:\n");
  printf("    DESC:     Show the contents of a file.\n");
  printf("    USAGE:    `showfile <file>`\n");
  printf("  help:\n");
  printf("    DESC:     Displays all available commands.\n");
  printf("    USGAE:    `help`\n");
  printf("  exit:\n");
  printf("    DESC:     Exits the flop program.\n");
  printf("    USAGE:    `exit`\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd8(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x104e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
call   1030 <printf@plt>
lea    0x1068(%rip),%rdi
call   1030 <printf@plt>
lea    0x1088(%rip),%rdi
call   1030 <printf@plt>
lea    0x109d(%rip),%rdi
call   1030 <printf@plt>
lea    0x109a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e0(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfce(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x1011(%rip),%rdi
call   1030 <puts@plt>
lea    0x1013(%rip),%rdi
call   1030 <puts@plt>
lea    0x103e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1056(%rip),%rdi
call   1030 <puts@plt>
lea    0x1056(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x1089(%rip),%rdi
call   1030 <puts@plt>
lea    0x1085(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ad(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c7(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"======== FLOP HELP =========\0A\00"
@.str.1 = [28 x i8] c" <required> - [optional]\0A\0A\00"
@.str.2 = [11 x i8] c" fmount:\0A\00"
@.str.3 = [44 x i8] c" DESC: Mounts a local floppy image.\0A\00"
@.str.4 = [32 x i8] c" USAGE: `fmount <image>`\0A\00"
@.str.5 = [12 x i8] c" fumount:\0A\00"
@.str.6 = [46 x i8] c" DESC: Unmounts a local floppy image.\0A\00"
@.str.7 = [25 x i8] c" USAGE: `fumount`\0A\00"
@.str.8 = [14 x i8] c" structure:\0A\00"
@.str.9 = [55 x i8] c" DESC: Lists the structure of the floppy disk.\0A\00"
@.str.10 = [32 x i8] c" USAGE: `structure [-l]`\0A\00"
@.str.11 = [13 x i8] c" traverse:\0A\00"
@.str.12 = [57 x i8] c" DESC: Lists the contents of the root directory.\0A\00"
@.str.13 = [31 x i8] c" USGE: `traverse [-l]`\0A\00"
@.str.14 = [12 x i8] c" showfat:\0A\00"
@.str.15 = [51 x i8] c" DESC: Show the content of the FAT tables.\0A\00"
@.str.16 = [25 x i8] c" USAGE: `showfat`\0A\00"
@.str.17 = [15 x i8] c" showsector:\0A\00"
@.str.18 = [56 x i8] c" DESC: Show the contents of a specified sector.\0A\00"
@.str.19 = [37 x i8] c" USAGE: `showsector <number>`\0A\00"
@.str.20 = [13 x i8] c" showfile:\0A\00"
@.str.21 = [44 x i8] c" DESC: Show the contents of a file.\0A\00"
@.str.22 = [33 x i8] c" USAGE: `showfile <file>`\0A\00"
@.str.23 = [9 x i8] c" help:\0A\00"
@.str.24 = [48 x i8] c" DESC: Displays all available commands.\0A\00"
@.str.25 = [22 x i8] c" USGAE: `help`\0A\00"
@.str.26 = [9 x i8] c" exit:\0A\00"
@.str.27 = [39 x i8] c" DESC: Exits the flop program.\0A\00"
@.str.28 = [22 x i8] c" USAGE: `exit`\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 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 ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [29 x i8] c"======== FLOP HELP =========\00"
@str.29 = [27 x i8] c" <required> - [optional]\0A\00"
@str.30 = [10 x i8] c" fmount:\00"
@str.31 = [43 x i8] c" DESC: Mounts a local floppy image.\00"
@str.32 = [31 x i8] c" USAGE: `fmount <image>`\00"
@str.33 = [11 x i8] c" fumount:\00"
@str.34 = [45 x i8] c" DESC: Unmounts a local floppy image.\00"
@str.35 = [24 x i8] c" USAGE: `fumount`\00"
@str.36 = [13 x i8] c" structure:\00"
@str.37 = [54 x i8] c" DESC: Lists the structure of the floppy disk.\00"
@str.38 = [31 x i8] c" USAGE: `structure [-l]`\00"
@str.39 = [12 x i8] c" traverse:\00"
@str.40 = [56 x i8] c" DESC: Lists the contents of the root directory.\00"
@str.41 = [30 x i8] c" USGE: `traverse [-l]`\00"
@str.42 = [11 x i8] c" showfat:\00"
@str.43 = [50 x i8] c" DESC: Show the content of the FAT tables.\00"
@str.44 = [24 x i8] c" USAGE: `showfat`\00"
@str.45 = [14 x i8] c" showsector:\00"
@str.46 = [55 x i8] c" DESC: Show the contents of a specified sector.\00"
@str.47 = [36 x i8] c" USAGE: `showsector <number>`\00"
@str.48 = [12 x i8] c" showfile:\00"
@str.49 = [43 x i8] c" DESC: Show the contents of a file.\00"
@str.50 = [32 x i8] c" USAGE: `showfile <file>`\00"
@str.51 = [8 x i8] c" help:\00"
@str.52 = [47 x i8] c" DESC: Displays all available commands.\00"
@str.53 = [21 x i8] c" USGAE: `help`\00"
@str.54 = [8 x i8] c" exit:\00"
@str.55 = [38 x i8] c" DESC: Exits the flop program.\00"
@str.56 = [21 x i8] c" USAGE: `exit`\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.29, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.30, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.31, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.32, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.33, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.34, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.35, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.36, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.37, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.38, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.39, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.40, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.41, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.42, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.43, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.44, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.45, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.46, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.47, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.48, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.49, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.50, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.51, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.52, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.53, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.54, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.55, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.56, i64 0, i64 0))
ret void
}