#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 usage(void) {
  printf("Usage: disktest\n");
  printf("    [-f filename]        filename to use     (testfile)\n");
  printf("    [-s seconds]         seconds to run for  (15)\n");
  printf("    [-m megabytes]       megabytes to use    (1)\n");
  printf("    [-M megabytes]       megabytes to skip   (0)\n");
  printf("    [-b blocksize]	 blocksize           (4096)\n");
  printf("    [-l linear tasks]    linear access tasks (4)\n");
  printf("    [-r random tasks]    random access tasks (4)\n");
  printf("    [-v]                 verify pre-existing file\n");
  printf("    [-i]                 only do init phase\n");
  printf("    [-S]                 stop immediately on error\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfae(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
lea    0x1042(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
lea    0xf08(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf53(%rip),%rdi
call   1040 <puts@plt>
lea    0xf78(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe5(%rip),%rdi
call   1040 <puts@plt>
lea    0x100b(%rip),%rdi
call   1040 <puts@plt>
lea    0x102b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Usage: disktest\0A\00"
@.str.1 = [57 x i8] c" [-f filename] filename to use (testfile)\0A\00"
@.str.2 = [51 x i8] c" [-s seconds] seconds to run for (15)\0A\00"
@.str.3 = [50 x i8] c" [-m megabytes] megabytes to use (1)\0A\00"
@.str.4 = [50 x i8] c" [-M megabytes] megabytes to skip (0)\0A\00"
@.str.5 = [48 x i8] c" [-b blocksize]\09 blocksize (4096)\0A\00"
@.str.6 = [50 x i8] c" [-l linear tasks] linear access tasks (4)\0A\00"
@.str.7 = [50 x i8] c" [-r random tasks] random access tasks (4)\0A\00"
@.str.8 = [51 x i8] c" [-v] verify pre-existing file\0A\00"
@.str.9 = [45 x i8] c" [-i] only do init phase\0A\00"
@.str.10 = [52 x i8] c" [-S] stop immediately on error\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 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 ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [16 x i8] c"Usage: disktest\00"
@str.12 = [56 x i8] c" [-f filename] filename to use (testfile)\00"
@str.13 = [50 x i8] c" [-s seconds] seconds to run for (15)\00"
@str.14 = [49 x i8] c" [-m megabytes] megabytes to use (1)\00"
@str.15 = [49 x i8] c" [-M megabytes] megabytes to skip (0)\00"
@str.16 = [47 x i8] c" [-b blocksize]\09 blocksize (4096)\00"
@str.17 = [49 x i8] c" [-l linear tasks] linear access tasks (4)\00"
@str.18 = [49 x i8] c" [-r random tasks] random access tasks (4)\00"
@str.19 = [50 x i8] c" [-v] verify pre-existing file\00"
@str.20 = [44 x i8] c" [-i] only do init phase\00"
@str.21 = [51 x i8] c" [-S] stop immediately on error\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
ret void
}