#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void usage() {
  printf("Parameters:\n");
  printf("[ -file <name> ]   The create/write/read/delete test will be done on "
         "<name>.<procNumber> (default %s)\n",
         "this_is_the_default_file_name");
  printf("[ -process <nb> ]  The test will be done by <nb> process "
         "simultaneously (default %d)\n",
         4);
  printf("[ -loop <nb> ]     <nb> write/read operation will be done (default "
         "%d)\n",
         100);
  printf("[ -noclose ]       Do not close the file between write and read\n");
  exit(0);
}


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    0xf34(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf87(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xfeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0xf1c(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Parameters:\0A\00"
@.str.1 = [103 x i8] c"[ -file <name> ] The create/write/read/delete test will be done on <name>.<procNumber> (default %s)\0A\00"
@.str.2 = [30 x i8] c"this_is_the_default_file_name\00"
@.str.3 = [86 x i8] c"[ -process <nb> ] The test will be done by <nb> process simultaneously (default %d)\0A\00"
@.str.4 = [72 x i8] c"[ -loop <nb> ] <nb> write/read operation will be done (default %d)\0A\00"
@.str.5 = [65 x i8] c"[ -noclose ] Do not close the file between write and read\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 ([103 x i8], [103 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.3, i64 0, i64 0), i32 4)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0), i32 100)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.1 = [103 x i8] c"[ -file <name> ] The create/write/read/delete test will be done on <name>.<procNumber> (default %s)\0A\00"
@.str.2 = [30 x i8] c"this_is_the_default_file_name\00"
@.str.3 = [86 x i8] c"[ -process <nb> ] The test will be done by <nb> process simultaneously (default %d)\0A\00"
@.str.4 = [72 x i8] c"[ -loop <nb> ] <nb> write/read operation will be done (default %d)\0A\00"
@str = [12 x i8] c"Parameters:\00"
@str.6 = [64 x i8] c"[ -noclose ] Do not close the file between write and read\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 ([103 x i8], [103 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str.3, i64 0, i64 0), i32 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0), i32 100)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 @exit(i32 0)
unreachable
}