#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_SUCCESS;
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_SUCCESS)
    fprintf(stderr, "Try '%s --help' for more information\n", "manually-mount");
  else
    printf(
        "Usage: manually-mount -s|--source DEVICE -d|--destination DIRECTORY "
        "[-f|--file-system FILESYSTEM] [-o|--options OPTIONS]\nMounts a "
        "resource to the specified destination\n\nOptions:\n  -d, "
        "--destination <directory>   The destination directory\n  -f, "
        "--file-system <filesystem>  The filesystem of the resource as "
        "specified in '/etc/filesystems'\n  -h, --help                      "
        "Shows this help and exits\n  -o, --options <options>         The "
        "mount options, see man mount(8) to the defined options\n  -s, "
        "--source <device>           The device to be mounted\n\nExamples:\n  "
        "manually-mount -s /dev/sdb2 -d /mnt\n  manually-mount -s /dev/sdc5 -d "
        "/mnt/ext-device -o rw,users -f ext2\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
je     116e <usage+0x3e>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xea3(%rip),%rsi
lea    0xec2(%rip),%rdx
call   1040 <fprintf@plt>
jmp    117a <usage+0x4a>
lea    0xec0(%rip),%rdi
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    1151 <usage+0x21>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
lea    0xe9f(%rip),%rsi
lea    0xebe(%rip),%rdx
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [38 x i8] c"Try '%s --help' for more information\0A\00"
@.str.1 = [15 x i8] c"manually-mount\00"
@.str.2 = [669 x i8] c"Usage: manually-mount -s|--source DEVICE -d|--destination DIRECTORY [-f|--file-system FILESYSTEM] [-o|--options OPTIONS]\0AMounts a resource to the specified destination\0A\0AOptions:\0A -d, --destination <directory> The destination directory\0A -f, --file-system <filesystem> The filesystem of the resource as specified in '/etc/filesystems'\0A -h, --help Shows this help and exits\0A -o, --options <options> The mount options, see man mount(8) to the defined options\0A -s, --source <device> The device to be mounted\0A\0AExamples:\0A manually-mount -s /dev/sdb2 -d /mnt\0A manually-mount -s /dev/sdc5 -d /mnt/ext-device -o rw,users -f ext2\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_SUCCESS
%5 = icmp ne 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 ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %11
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([669 x i8], [669 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
%12 = load i32, i32* %2
%13 = call i32 @exit(i32 %12)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [38 x i8] c"Try '%s --help' for more information\0A\00"
@.str.1 = [15 x i8] c"manually-mount\00"
@str = [668 x i8] c"Usage: manually-mount -s|--source DEVICE -d|--destination DIRECTORY [-f|--file-system FILESYSTEM] [-o|--options OPTIONS]\0AMounts a resource to the specified destination\0A\0AOptions:\0A -d, --destination <directory> The destination directory\0A -f, --file-system <filesystem> The filesystem of the resource as specified in '/etc/filesystems'\0A -h, --help Shows this help and exits\0A -o, --options <options> The mount options, see man mount(8) to the defined options\0A -s, --source <device> The device to be mounted\0A\0AExamples:\0A manually-mount -s /dev/sdb2 -d /mnt\0A manually-mount -s /dev/sdc5 -d /mnt/ext-device -o rw,users -f ext2\00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = icmp eq i32 %2, %0
br i1 %3, label %7, label %4
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 ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %9
7: ; preds = %1
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([668 x i8], [668 x i8]* @str, i64 0, i64 0))
br label %9
9: ; preds = %7, %4
%10 = tail call i32 @exit(i32 %0)
unreachable
}