#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *, int);
void usage(FILE *file, const char *arg0) {
  fprintf(
      file,
      "Usage: %s [options] [path] ...\n"
      "Options:\n"
      "  -H    Print this message\n"
      "  -j N  Operate on N files at a time (default %d)\n"
      "  -e P  Exclude files matching P\n"
      "  -A    Print apparent sizes rather than disk usage\n"
      "  -b    Print sizes in bytes\n"
      "  -k    Print sizes in KiB (default)\n"
      "  -m    Print sizes in MiB\n"
      "  -h    Print sizes in human readable format\n"
      "  -a    Print size for all files, not just directories\n"
      "  -s    Only display a total for each argument\n"
      "  -c    Produce a grand total\n"
      "  -0    Terminate each item with a null character rather than newline\n"
      "  -x    Do not cross file system boundaries\n",
      arg0, 4);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xed1(%rip),%rsi
mov    $0x4,%ecx
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
mov    $0x4,%ecx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [587 x i8] c"Usage: %s [options] [path] ...\0AOptions:\0A -H Print this message\0A -j N Operate on N files at a time (default %d)\0A -e P Exclude files matching P\0A -A Print apparent sizes rather than disk usage\0A -b Print sizes in bytes\0A -k Print sizes in KiB (default)\0A -m Print sizes in MiB\0A -h Print sizes in human readable format\0A -a Print size for all files, not just directories\0A -s Only display a total for each argument\0A -c Produce a grand total\0A -0 Terminate each item with a null character rather than newline\0A -x Do not cross file system boundaries\0A\00"
define void @usage(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([587 x i8], [587 x i8]* @.str, i64 0, i64 0), i8* %6, i32 4)
ret void
}

LLVM IR (-O2):
@.str = [587 x i8] c"Usage: %s [options] [path] ...\0AOptions:\0A -H Print this message\0A -j N Operate on N files at a time (default %d)\0A -e P Exclude files matching P\0A -A Print apparent sizes rather than disk usage\0A -b Print sizes in bytes\0A -k Print sizes in KiB (default)\0A -m Print sizes in MiB\0A -h Print sizes in human readable format\0A -a Print size for all files, not just directories\0A -s Only display a total for each argument\0A -c Produce a grand total\0A -0 Terminate each item with a null character rather than newline\0A -x Do not cross file system boundaries\0A\00"
define void @usage(i32* nocapture %0, i8* %1) {
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([587 x i8], [587 x i8]* @.str, i64 0, i64 0), i8* %1, i32 4)
ret void
}