#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 usage() {
  fprintf(
      stderr,
      "Usage: diod [OPTIONS]\n"
      "   -f,--foreground         do not fork and disassociate with tty\n"
      "   -r,--rfdno              service connected client on read file "
      "descriptor\n"
      "   -w,--wfdno              service connected client on write file "
      "descriptor\n"
      "   -l,--listen IP:PORT     set interface to listen on (multiple -l "
      "allowed)\n"
      "   -t,--nwthreads INT      set number of I/O worker threads to spawn\n"
      "   -e,--export PATH        export PATH (multiple -e allowed)\n"
      "   -E,--export-all         export all mounted file systems\n"
      "   -o,--export-opts        set global export options (comma-seperated)\n"
      "   -n,--no-auth            disable authentication check\n"
      "   -H,--no-hostname-lookup disable hostname lookups\n"
      "   -p,--statfs-passthru    statfs should return underly f_type not "
      "V9FS_MAGIC\n"
      "   -N,--no-userdb          bypass password/group file lookup\n"
      "   -u,--runas-uid UID      only allow UID to attach\n"
      "   -S,--allsquash          map all users to the squash user\n"
      "   -U,--squashuser USER    set the squash user (default nobody)\n"
      "   -L,--logdest DEST       log to DEST, can be syslog, stderr, or file\n"
      "   -d,--debug MASK         set debugging mask\n"
      "   -c,--config-file FILE   set config file path\n"
      "   -s,--socktest           run in test mode where server exits early\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1234 x i8] c"Usage: diod [OPTIONS]\0A -f,--foreground do not fork and disassociate with tty\0A -r,--rfdno service connected client on read file descriptor\0A -w,--wfdno service connected client on write file descriptor\0A -l,--listen IP:PORT set interface to listen on (multiple -l allowed)\0A -t,--nwthreads INT set number of I/O worker threads to spawn\0A -e,--export PATH export PATH (multiple -e allowed)\0A -E,--export-all export all mounted file systems\0A -o,--export-opts set global export options (comma-seperated)\0A -n,--no-auth disable authentication check\0A -H,--no-hostname-lookup disable hostname lookups\0A -p,--statfs-passthru statfs should return underly f_type not V9FS_MAGIC\0A -N,--no-userdb bypass password/group file lookup\0A -u,--runas-uid UID only allow UID to attach\0A -S,--allsquash map all users to the squash user\0A -U,--squashuser USER set the squash user (default nobody)\0A -L,--logdest DEST log to DEST, can be syslog, stderr, or file\0A -d,--debug MASK set debugging mask\0A -c,--config-file FILE set config file path\0A -s,--socktest run in test mode where server exits early\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1234 x i8], [1234 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1234 x i8] c"Usage: diod [OPTIONS]\0A -f,--foreground do not fork and disassociate with tty\0A -r,--rfdno service connected client on read file descriptor\0A -w,--wfdno service connected client on write file descriptor\0A -l,--listen IP:PORT set interface to listen on (multiple -l allowed)\0A -t,--nwthreads INT set number of I/O worker threads to spawn\0A -e,--export PATH export PATH (multiple -e allowed)\0A -E,--export-all export all mounted file systems\0A -o,--export-opts set global export options (comma-seperated)\0A -n,--no-auth disable authentication check\0A -H,--no-hostname-lookup disable hostname lookups\0A -p,--statfs-passthru statfs should return underly f_type not V9FS_MAGIC\0A -N,--no-userdb bypass password/group file lookup\0A -u,--runas-uid UID only allow UID to attach\0A -S,--allsquash map all users to the squash user\0A -U,--squashuser USER set the squash user (default nobody)\0A -L,--logdest DEST log to DEST, can be syslog, stderr, or file\0A -d,--debug MASK set debugging mask\0A -c,--config-file FILE set config file path\0A -s,--socktest run in test mode where server exits early\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1234 x i8], [1234 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}