#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 EXIT_FAILURE;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
void usage(int status) {
  if (status == EXIT_FAILURE)
    fprintf(stderr, "Try '%s --help' for more information\n",
            "path-activation");
  else {
    printf("Usage: -f|--file FILE [-a|--atime] [-m|--mtime] "
           "[-c|--ctime] ORDER...\n",
           "path-activation");
    printf("Path-based activation of a process\n");
    printf(
        "\n  -a, --atime           Notify access time changes\n  -c, --ctime   "
        "        Notify change time changes\n  -f, --file FILE       The file "
        "or directory to check\n  -h, --help            Show this help and "
        "exits\n  -m, --mtime           Notify modify time changes\n");
  }
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e93(%rip),%rcx
cmp    (%rcx),%eax
jne    116e <usage+0x3e>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xea3(%rip),%rsi
lea    0xec2(%rip),%rdx
call   1040 <fprintf@plt>
jmp    119f <usage+0x6f>
lea    0xec1(%rip),%rdi
lea    0xeaa(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2e9e(%rip),%rax
cmp    %edi,(%rax)
jne    1161 <usage+0x31>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
lea    0xed1(%rip),%rdx
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@stderr = global i32 0
@.str = [38 x i8] c"Try '%s --help' for more information\0A\00"
@.str.1 = [16 x i8] c"path-activation\00"
@.str.2 = [71 x i8] c"Usage: -f|--file FILE [-a|--atime] [-m|--mtime] [-c|--ctime] ORDER...\0A\00"
@.str.3 = [36 x i8] c"Path-based activation of a process\0A\00"
@.str.4 = [259 x i8] c"\0A -a, --atime Notify access time changes\0A -c, --ctime Notify change time changes\0A -f, --file FILE The file or directory to check\0A -h, --help Show this help and exits\0A -m, --mtime Notify modify time changes\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @EXIT_FAILURE
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %13
9: ; preds = %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([259 x i8], [259 x i8]* @.str.4, i64 0, i64 0))
br label %13
13: ; preds = %9, %6
%14 = load i32, i32* %2
%15 = call i32 @exit(i32 %14)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@stderr = global i32 0
@.str = [38 x i8] c"Try '%s --help' for more information\0A\00"
@.str.1 = [16 x i8] c"path-activation\00"
@str = [70 x i8] c"Usage: -f|--file FILE [-a|--atime] [-m|--mtime] [-c|--ctime] ORDER...\00"
@str.5 = [35 x i8] c"Path-based activation of a process\00"
@str.6 = [258 x i8] c"\0A -a, --atime Notify access time changes\0A -c, --ctime Notify change time changes\0A -f, --file FILE The file or directory to check\0A -h, --help Show this help and exits\0A -m, --mtime Notify modify time changes\00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_FAILURE
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %11
7: ; preds = %1
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.5, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([258 x i8], [258 x i8]* @str.6, i64 0, i64 0))
br label %11
11: ; preds = %7, %4
%12 = tail call i32 @exit(i32 %0)
unreachable
}