#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);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void _usage(signed error) {
  fputs("Usage: shaman [options]\n\n"
        "Options:\n"
        "  -h, --help\t\t\tprint help and exit\n"
        "  -i, --imperial\t\tuse Imperial units (default)\n"
        "  -m, --metric\t\t\tuse Metric units\n"
        "  -q, --quiet\t\t\tsilence all output\n"
        "  -r, --refresh\t\t\tforce update of local cache\n"
        "  -v, --verbose\t\t\toutput more status information\n"
        "  -c, --cache\t\t\tspecify location of local cache\n"
        "  -f, --format=\"format\"\t\tformat output according to \"format\"\n"
        "  -l, --location=\"location\"\tprint weather information for "
        "\"location\"\n\n"
        "See `man 1 shaman` for more information\n",
        (error ? stderr : stdout));
  exit(error);
}


x86 assembly (clang, -O0):
<_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1146 <_usage+0x26>
mov    0x2ea4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
jmp    1152 <_usage+0x32>
mov    0x2e8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<_usage>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    1130 <_usage+0x10>
mov    0x2eaa(%rip),%rax
jmp    1137 <_usage+0x17>
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
call   1030 <fputs@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [500 x i8] c"Usage: shaman [options]\0A\0AOptions:\0A -h, --help\09\09\09print help and exit\0A -i, --imperial\09\09use Imperial units (default)\0A -m, --metric\09\09\09use Metric units\0A -q, --quiet\09\09\09silence all output\0A -r, --refresh\09\09\09force update of local cache\0A -v, --verbose\09\09\09output more status information\0A -c, --cache\09\09\09specify location of local cache\0A -f, --format=\22format\22\09\09format output according to \22format\22\0A -l, --location=\22location\22\09print weather information for \22location\22\0A\0ASee `man 1 shaman` for more information\0A\00"
@stderr = global i32 0
@stdout = global i32 0
define void @_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load i32, i32* @stderr
br label %9
7: ; preds = %1
%8 = load i32, i32* @stdout
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
%11 = call i32 @fputs(i8* getelementptr inbounds ([500 x i8], [500 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %2
%13 = call i32 @exit(i32 %12)
unreachable
}

LLVM IR (-O2):
@.str = [500 x i8] c"Usage: shaman [options]\0A\0AOptions:\0A -h, --help\09\09\09print help and exit\0A -i, --imperial\09\09use Imperial units (default)\0A -m, --metric\09\09\09use Metric units\0A -q, --quiet\09\09\09silence all output\0A -r, --refresh\09\09\09force update of local cache\0A -v, --verbose\09\09\09output more status information\0A -c, --cache\09\09\09specify location of local cache\0A -f, --format=\22format\22\09\09format output according to \22format\22\0A -l, --location=\22location\22\09print weather information for \22location\22\0A\0ASee `man 1 shaman` for more information\0A\00"
@stderr = global i32 0
@stdout = global i32 0
define void @_usage(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = load i32, i32* @stderr
%4 = load i32, i32* @stdout
%5 = select i1 %2, i32 %4, i32 %3
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([500 x i8], [500 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 @exit(i32 %0)
unreachable
}