#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] source destination\n"
          "Options:\n"
          "  -h    Print this message\n"
          "  -v    Be verbose\n"
          "  -j N  Copy N files at a time (default %d)\n"
          "  -a    Archive; equals -pot\n"
          "  -p    Preserve permissions\n"
          "  -o    Preserve ownership (only preserves user if root)\n"
          "  -t    Preserve modification times\n"
          "  -H    Preserve hard links\n"
          "  -D    Do not delete files not in source from destination\n"
          "  -e P  Exclude files matching P\n"
          "  -E P  Exclude and delete from destination files matching P\n"
          "  -s    Use sub-second precision when comparing mtimes\n"
          "  -w S  mtime can be within S seconds to assume equal\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 = [624 x i8] c"Usage: %s [options] source destination\0AOptions:\0A -h Print this message\0A -v Be verbose\0A -j N Copy N files at a time (default %d)\0A -a Archive; equals -pot\0A -p Preserve permissions\0A -o Preserve ownership (only preserves user if root)\0A -t Preserve modification times\0A -H Preserve hard links\0A -D Do not delete files not in source from destination\0A -e P Exclude files matching P\0A -E P Exclude and delete from destination files matching P\0A -s Use sub-second precision when comparing mtimes\0A -w S mtime can be within S seconds to assume equal\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 ([624 x i8], [624 x i8]* @.str, i64 0, i64 0), i8* %6, i32 4)
ret void
}

LLVM IR (-O2):
@.str = [624 x i8] c"Usage: %s [options] source destination\0AOptions:\0A -h Print this message\0A -v Be verbose\0A -j N Copy N files at a time (default %d)\0A -a Archive; equals -pot\0A -p Preserve permissions\0A -o Preserve ownership (only preserves user if root)\0A -t Preserve modification times\0A -H Preserve hard links\0A -D Do not delete files not in source from destination\0A -e P Exclude files matching P\0A -E P Exclude and delete from destination files matching P\0A -s Use sub-second precision when comparing mtimes\0A -w S mtime can be within S seconds to assume equal\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 ([624 x i8], [624 x i8]* @.str, i64 0, i64 0), i8* %1, i32 4)
ret void
}