#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
void synopsis(const char *progname, int status) {
  FILE *file = status ? stderr : stdout;
  fprintf(file,
          "USAGE: %s [-"
          "cdfhmnp"
          "] "
          "[-o {open,close,access,modify,open_perm,access_perm}] "
          "file ...\n"
          "-c: learn about events on children of a directory (not decendants)\n"
          "-d: send events which happen to directories\n"
          "-f: set premptive ignores (go faster)\n"
          "-h: this help screen\n"
          "-m: place mark on the whole mount point, not just the inode\n"
          "-n: do not ignore repeated permission checks\n"
          "-p: check permissions, not just notification\n"
          "-s N: sleep N seconds before replying to perm events\n",
          progname);
  exit(status);
}


x86 assembly (clang, -O0):
<synopsis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     114c <synopsis+0x2c>
mov    0x2ea0(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    115a <synopsis+0x3a>
mov    0x2e85(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe8f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<synopsis>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rdx
test   %esi,%esi
jne    1133 <synopsis+0x13>
mov    0x2ea7(%rip),%rax
jmp    113a <synopsis+0x1a>
mov    0x2ea6(%rip),%rax
mov    (%rax),%rdi
lea    0xebc(%rip),%rsi
call   1030 <fprintf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32* null
@stdout = global i32* null
@.str = [458 x i8] c"USAGE: %s [-cdfhmnp] [-o {open,close,access,modify,open_perm,access_perm}] file ...\0A-c: learn about events on children of a directory (not decendants)\0A-d: send events which happen to directories\0A-f: set premptive ignores (go faster)\0A-h: this help screen\0A-m: place mark on the whole mount point, not just the inode\0A-n: do not ignore repeated permission checks\0A-p: check permissions, not just notification\0A-s N: sleep N seconds before replying to perm events\0A\00"
define void @synopsis(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32*, i32** @stderr
br label %12
10: ; preds = %2
%11 = load i32*, i32** @stdout
br label %12
12: ; preds = %10, %8
%13 = phi i32* [ %9, %8 ], [ %11, %10 ]
store i32* %13, i32** %5
%14 = load i32*, i32** %5
%15 = load i8*, i8** %3
%16 = call i32 @fprintf(i32* %14, i8* getelementptr inbounds ([458 x i8], [458 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = load i32, i32* %4
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@stderr = global i32* null
@stdout = global i32* null
@.str = [458 x i8] c"USAGE: %s [-cdfhmnp] [-o {open,close,access,modify,open_perm,access_perm}] file ...\0A-c: learn about events on children of a directory (not decendants)\0A-d: send events which happen to directories\0A-f: set premptive ignores (go faster)\0A-h: this help screen\0A-m: place mark on the whole mount point, not just the inode\0A-n: do not ignore repeated permission checks\0A-p: check permissions, not just notification\0A-s N: sleep N seconds before replying to perm events\0A\00"
define void @synopsis(i8* %0, i32 %1) {
%3 = icmp eq i32 %1, 0
%4 = load i32*, i32** @stderr
%5 = load i32*, i32** @stdout
%6 = select i1 %3, i32* %5, i32* %4
%7 = tail call i32 @fprintf(i32* %6, i8* getelementptr inbounds ([458 x i8], [458 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = tail call i32 @exit(i32 %1)
unreachable
}