#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void print_usage(int detail) {
  fprintf(stderr, "Usage: tagmodifier [--help]\n"
                  "                   [--loggable]\n"
                  "                   [--tagging=<filename>]\n"
                  "                   [<filename.osm>]\n");
  if (detail)
    fprintf(stderr, "\n"
                    "--help                    Prints this information.\n"
                    "\n"
                    "--loggable                Print progress messages "
                    "suitable for logging to file.\n"
                    "\n"
                    "--tagging=<filename>      The name of the XML file "
                    "containing the tagging rules\n"
                    "                          (defaults to 'tagging.xml' in "
                    "current directory).\n"
                    "\n"
                    "<filename.osm>            The name of the file to process "
                    "(by default data is\n"
                    "                          read from standard input).\n");
  exit(!detail);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
call   1030 <fprintf@plt>
cmpl   $0x0,-0x4(%rbp)
je     115f <print_usage+0x3f>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xf31(%rip),%rsi
call   1030 <fprintf@plt>
cmpl   $0x0,-0x4(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
mov    0x2eb3(%rip),%r14
mov    (%r14),%edi
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
test   %ebx,%ebx
je     114f <print_usage+0x2f>
mov    (%r14),%edi
lea    0xf41(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
test   %ebx,%ebx
sete   %dil
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [139 x i8] c"Usage: tagmodifier [--help]\0A [--loggable]\0A [--tagging=<filename>]\0A [<filename.osm>]\0A\00"
@.str.1 = [423 x i8] c"\0A--help Prints this information.\0A\0A--loggable Print progress messages suitable for logging to file.\0A\0A--tagging=<filename> The name of the XML file containing the tagging rules\0A (defaults to 'tagging.xml' in current directory).\0A\0A<filename.osm> The name of the file to process (by default data is\0A read from standard input).\0A\00"
define void @print_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([423 x i8], [423 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %7, %1
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
%14 = zext i1 %13 to i32
%15 = call i32 @exit(i32 %14)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [139 x i8] c"Usage: tagmodifier [--help]\0A [--loggable]\0A [--tagging=<filename>]\0A [<filename.osm>]\0A\00"
@.str.1 = [423 x i8] c"\0A--help Prints this information.\0A\0A--loggable Print progress messages suitable for logging to file.\0A\0A--tagging=<filename> The name of the XML file containing the tagging rules\0A (defaults to 'tagging.xml' in current directory).\0A\0A<filename.osm> The name of the file to process (by default data is\0A read from standard input).\0A\00"
define void @print_usage(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %0, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([423 x i8], [423 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %5, %1
%9 = zext i1 %4 to i32
%10 = tail call i32 @exit(i32 %9)
unreachable
}