#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 *, char *);
int /*<<< orphan*/ stderr;
void usage(char *fullProgName) {
  fprintf(stderr,
          "bzip2, a block-sorting file compressor.  "
          "Version 0.1pl2, 29-Aug-97.\n"
          "\n   usage: %s [flags and input files in any order]\n"
          "\n"
          "   -h --help           print this message\n"
          "   -d --decompress     force decompression\n"
          "   -f --compress       force compression\n"
          "   -t --test           test compressed file integrity\n"
          "   -c --stdout         output to standard out\n"
          "   -v --verbose        be verbose (a 2nd -v gives more)\n"
          "   -k --keep           keep (don't delete) input files\n"
          "   -L --license        display software version & license\n"
          "   -V --version        display software version & license\n"
          "   -s --small          use less memory (at most 2500k)\n"
          "   -1 .. -9            set block size to 100k .. 900k\n"
          "   --repetitive-fast   compress repetitive blocks faster\n"
          "   --repetitive-best   compress repetitive blocks better\n"
          "\n"
          "   If invoked as `bzip2', the default action is to compress.\n"
          "              as `bunzip2', the default action is to decompress.\n"
          "\n"
          "   If no file names are given, bzip2 compresses or decompresses\n"
          "   from standard input to standard output.  You can combine\n"
          "   flags, so `-v -4' means the same as -v4 or -4v, &c.\n"
          "\n",
          fullProgName);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1105 x i8] c"bzip2, a block-sorting file compressor. Version 0.1pl2, 29-Aug-97.\0A\0A usage: %s [flags and input files in any order]\0A\0A -h --help print this message\0A -d --decompress force decompression\0A -f --compress force compression\0A -t --test test compressed file integrity\0A -c --stdout output to standard out\0A -v --verbose be verbose (a 2nd -v gives more)\0A -k --keep keep (don't delete) input files\0A -L --license display software version & license\0A -V --version display software version & license\0A -s --small use less memory (at most 2500k)\0A -1 .. -9 set block size to 100k .. 900k\0A --repetitive-fast compress repetitive blocks faster\0A --repetitive-best compress repetitive blocks better\0A\0A If invoked as `bzip2', the default action is to compress.\0A as `bunzip2', the default action is to decompress.\0A\0A If no file names are given, bzip2 compresses or decompresses\0A from standard input to standard output. You can combine\0A flags, so `-v -4' means the same as -v4 or -4v, &c.\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1105 x i8], [1105 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1105 x i8] c"bzip2, a block-sorting file compressor. Version 0.1pl2, 29-Aug-97.\0A\0A usage: %s [flags and input files in any order]\0A\0A -h --help print this message\0A -d --decompress force decompression\0A -f --compress force compression\0A -t --test test compressed file integrity\0A -c --stdout output to standard out\0A -v --verbose be verbose (a 2nd -v gives more)\0A -k --keep keep (don't delete) input files\0A -L --license display software version & license\0A -V --version display software version & license\0A -s --small use less memory (at most 2500k)\0A -1 .. -9 set block size to 100k .. 900k\0A --repetitive-fast compress repetitive blocks faster\0A --repetitive-best compress repetitive blocks better\0A\0A If invoked as `bzip2', the default action is to compress.\0A as `bunzip2', the default action is to decompress.\0A\0A If no file names are given, bzip2 compresses or decompresses\0A from standard input to standard output. You can combine\0A flags, so `-v -4' means the same as -v4 or -4v, &c.\0A\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1105 x i8], [1105 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}