#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 doASMHelp() {
  printf("  SET        -- set options (BLOCK_SIZE, AU_SIZE, F1B1_DISK, "
         "F1B1_AU)\n");
  printf("  OPEN       -- open data file\n");
  printf("  ADD        -- add disk with customized disk num (disk, path)\n");
  printf("  LIST       -- list opened disks information (to)\n");
  printf("  LSAU       -- list file of given AU (disk, au, count)\n");
  printf("  FILE       -- list all file entries in ASM (file, [disk, au, "
         "block]).\n");
  printf("  ALIAS      -- list all alias entries in ASM (file, [disk, au, "
         "block]).\n");
  printf(
      "  EXTENT     -- list or adjust variable extent (level, au, count).\n");
  printf("  FMAP       -- list file extent (file, [disk, au, block], to)\n");
  printf("  DUMP       -- dump file extent (file, [disk, au, block], offset, "
         "to)\n");
  printf("  COPY       -- copy file to os  (file, [disk, au, block], to)\n");
  printf("  QUIT/EXIT  -- exit the program.\n");
}


x86 assembly (clang, -O0):
<doASMHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x1070(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1114(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<doASMHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x106b(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d9(%rip),%rdi
call   1030 <puts@plt>
lea    0x110c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [71 x i8] c" SET -- set options (BLOCK_SIZE, AU_SIZE, F1B1_DISK, F1B1_AU)\0A\00"
@.str.1 = [32 x i8] c" OPEN -- open data file\0A\00"
@.str.2 = [64 x i8] c" ADD -- add disk with customized disk num (disk, path)\0A\00"
@.str.3 = [52 x i8] c" LIST -- list opened disks information (to)\0A\00"
@.str.4 = [57 x i8] c" LSAU -- list file of given AU (disk, au, count)\0A\00"
@.str.5 = [73 x i8] c" FILE -- list all file entries in ASM (file, [disk, au, block]).\0A\00"
@.str.6 = [74 x i8] c" ALIAS -- list all alias entries in ASM (file, [disk, au, block]).\0A\00"
@.str.7 = [68 x i8] c" EXTENT -- list or adjust variable extent (level, au, count).\0A\00"
@.str.8 = [64 x i8] c" FMAP -- list file extent (file, [disk, au, block], to)\0A\00"
@.str.9 = [72 x i8] c" DUMP -- dump file extent (file, [disk, au, block], offset, to)\0A\00"
@.str.10 = [64 x i8] c" COPY -- copy file to os (file, [disk, au, block], to)\0A\00"
@.str.11 = [35 x i8] c" QUIT/EXIT -- exit the program.\0A\00"
define void @doASMHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [70 x i8] c" SET -- set options (BLOCK_SIZE, AU_SIZE, F1B1_DISK, F1B1_AU)\00"
@str.12 = [31 x i8] c" OPEN -- open data file\00"
@str.13 = [63 x i8] c" ADD -- add disk with customized disk num (disk, path)\00"
@str.14 = [51 x i8] c" LIST -- list opened disks information (to)\00"
@str.15 = [56 x i8] c" LSAU -- list file of given AU (disk, au, count)\00"
@str.16 = [72 x i8] c" FILE -- list all file entries in ASM (file, [disk, au, block]).\00"
@str.17 = [73 x i8] c" ALIAS -- list all alias entries in ASM (file, [disk, au, block]).\00"
@str.18 = [67 x i8] c" EXTENT -- list or adjust variable extent (level, au, count).\00"
@str.19 = [63 x i8] c" FMAP -- list file extent (file, [disk, au, block], to)\00"
@str.20 = [71 x i8] c" DUMP -- dump file extent (file, [disk, au, block], offset, to)\00"
@str.21 = [63 x i8] c" COPY -- copy file to os (file, [disk, au, block], to)\00"
@str.22 = [34 x i8] c" QUIT/EXIT -- exit the program.\00"
define void @doASMHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.22, i64 0, i64 0))
ret void
}