#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage() {
  printf("Parameters:\n");
  printf("[ -mount <mount> ]         The mount point (default %s)\n", "mnt1_1");
  printf("[ -file <name> ]           file to do the test on (default %s)\n",
         "this_is_the_default_rw_test_file_name");
  printf("[ -process <nb> ]          The test will be done by <nb> process "
         "simultaneously (default %d)\n",
         20);
  printf("[ -loop <nb> ]             <nb> test operations will be done "
         "(default %d)\n",
         200);
  printf("[ -fileSize <MB> ]         file size in MB (default %d)\n", 1);
  printf("[ -closeAfter ]            Close the file after each loop\n");
  printf("[ -closeBetween ]          Close the file between write and read\n");
  printf("[-total|-partial|-random]  Re-read and check all the file, only the "
         "written part or random parts\n");
  exit(-100);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
lea    0xf38(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
mov    $0xc8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffff9c,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0x1050(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee7(%rip),%rdi
lea    0xf20(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0xc8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfbb(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
lea    0x101b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1050(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffff9c,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Parameters:\0A\00"
@.str.1 = [57 x i8] c"[ -mount <mount> ] The mount point (default %s)\0A\00"
@.str.2 = [7 x i8] c"mnt1_1\00"
@.str.3 = [64 x i8] c"[ -file <name> ] file to do the test on (default %s)\0A\00"
@.str.4 = [38 x i8] c"this_is_the_default_rw_test_file_name\00"
@.str.5 = [94 x i8] c"[ -process <nb> ] The test will be done by <nb> process simultaneously (default %d)\0A\00"
@.str.6 = [75 x i8] c"[ -loop <nb> ] <nb> test operations will be done (default %d)\0A\00"
@.str.7 = [57 x i8] c"[ -fileSize <MB> ] file size in MB (default %d)\0A\00"
@.str.8 = [59 x i8] c"[ -closeAfter ] Close the file after each loop\0A\00"
@.str.9 = [66 x i8] c"[ -closeBetween ] Close the file between write and read\0A\00"
@.str.10 = [98 x i8] c"[-total|-partial|-random] Re-read and check all the file, only the written part or random parts\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0), i32 20)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0), i32 200)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i32 1)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 @exit(i32 -100)
unreachable
}

LLVM IR (-O2):
@.str.1 = [57 x i8] c"[ -mount <mount> ] The mount point (default %s)\0A\00"
@.str.2 = [7 x i8] c"mnt1_1\00"
@.str.3 = [64 x i8] c"[ -file <name> ] file to do the test on (default %s)\0A\00"
@.str.4 = [38 x i8] c"this_is_the_default_rw_test_file_name\00"
@.str.5 = [94 x i8] c"[ -process <nb> ] The test will be done by <nb> process simultaneously (default %d)\0A\00"
@.str.6 = [75 x i8] c"[ -loop <nb> ] <nb> test operations will be done (default %d)\0A\00"
@.str.7 = [57 x i8] c"[ -fileSize <MB> ] file size in MB (default %d)\0A\00"
@str = [12 x i8] c"Parameters:\00"
@str.11 = [58 x i8] c"[ -closeAfter ] Close the file after each loop\00"
@str.12 = [65 x i8] c"[ -closeBetween ] Close the file between write and read\00"
@str.13 = [97 x i8] c"[-total|-partial|-random] Re-read and check all the file, only the written part or random parts\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0), i32 20)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0), i32 200)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i32 1)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.13, i64 0, i64 0))
%10 = tail call i32 @exit(i32 -100)
unreachable
}