#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(
      stderr,
      "sparsetest v0.01\n\nUsage:\n     sparsetest [OPTIONS] "
      "FILE\n\nOptions:\n     -b, --blocksize SIZE   Use SIZE blocksize in "
      "bytes (default 512)\n     -s, --size SIZE        Use logical size "
      "SIZE\n     -w, --writeevery SIZE  Write something every SIZE\n     -d, "
      "--descending       Write in descending order\n     -r, --random         "
      "  Write in random order\n     -i, --initialtruncate  Trunate at the "
      "start not the end\n     -h, --help             Display "
      "usage\n\nSparsetest tests a file system's handling of sparse files. The "
      "destination path is\noverwritten with a sparse file of length specified "
      "with the -s parameter. Then,\nwrites are made to the file at offsets "
      "specified by the -w parameter. Finally,\nthe logical length of the "
      "file, and the usage on disk are both printed.\n\nSIZE can be specified "
      "in blocks (default), or use the following suffixes:\n     B  Bytes      "
      "(2^0  bytes)\n     K  Kilobytes  (2^10 bytes)\n     M  Megabytes  (2^20 "
      "bytes)\n     G  Gigabtytes (2^30 bytes)\n     T  Terabytes  (2^40 "
      "bytes)\n     P  Perabytes  (2^50 bytes)\n     E  Exabytes   (2^60 "
      "bytes)\n\nNote that blocksize=1024 will set blocksize to 1024 512byte "
      "blocks (use 1024B if this is not\nwhat you mean). Also note that disk "
      "capacity is often measured using decimal megabytes etc.;\nwe do not "
      "adopt this convention for compatibility with dd.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1309 x i8] c"sparsetest v0.01\0A\0AUsage:\0A sparsetest [OPTIONS] FILE\0A\0AOptions:\0A -b, --blocksize SIZE Use SIZE blocksize in bytes (default 512)\0A -s, --size SIZE Use logical size SIZE\0A -w, --writeevery SIZE Write something every SIZE\0A -d, --descending Write in descending order\0A -r, --random Write in random order\0A -i, --initialtruncate Trunate at the start not the end\0A -h, --help Display usage\0A\0ASparsetest tests a file system's handling of sparse files. The destination path is\0Aoverwritten with a sparse file of length specified with the -s parameter. Then,\0Awrites are made to the file at offsets specified by the -w parameter. Finally,\0Athe logical length of the file, and the usage on disk are both printed.\0A\0ASIZE can be specified in blocks (default), or use the following suffixes:\0A B Bytes (2^0 bytes)\0A K Kilobytes (2^10 bytes)\0A M Megabytes (2^20 bytes)\0A G Gigabtytes (2^30 bytes)\0A T Terabytes (2^40 bytes)\0A P Perabytes (2^50 bytes)\0A E Exabytes (2^60 bytes)\0A\0ANote that blocksize=1024 will set blocksize to 1024 512byte blocks (use 1024B if this is not\0Awhat you mean). Also note that disk capacity is often measured using decimal megabytes etc.;\0Awe do not adopt this convention for compatibility with dd.\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1309 x i8], [1309 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1309 x i8] c"sparsetest v0.01\0A\0AUsage:\0A sparsetest [OPTIONS] FILE\0A\0AOptions:\0A -b, --blocksize SIZE Use SIZE blocksize in bytes (default 512)\0A -s, --size SIZE Use logical size SIZE\0A -w, --writeevery SIZE Write something every SIZE\0A -d, --descending Write in descending order\0A -r, --random Write in random order\0A -i, --initialtruncate Trunate at the start not the end\0A -h, --help Display usage\0A\0ASparsetest tests a file system's handling of sparse files. The destination path is\0Aoverwritten with a sparse file of length specified with the -s parameter. Then,\0Awrites are made to the file at offsets specified by the -w parameter. Finally,\0Athe logical length of the file, and the usage on disk are both printed.\0A\0ASIZE can be specified in blocks (default), or use the following suffixes:\0A B Bytes (2^0 bytes)\0A K Kilobytes (2^10 bytes)\0A M Megabytes (2^20 bytes)\0A G Gigabtytes (2^30 bytes)\0A T Terabytes (2^40 bytes)\0A P Perabytes (2^50 bytes)\0A E Exabytes (2^60 bytes)\0A\0ANote that blocksize=1024 will set blocksize to 1024 512byte blocks (use 1024B if this is not\0Awhat you mean). Also note that disk capacity is often measured using decimal megabytes etc.;\0Awe do not adopt this convention for compatibility with dd.\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1309 x i8], [1309 x i8]* @.str, i64 0, i64 0))
ret void
}