#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:\t  shutdown [-akrhfnc] [-t secs] time [warning message]\n"
          "\t\t  -a:      use /etc/shutdown.allow\n"
          "\t\t  -k:      don't really shutdown, only warn.\n"
          "\t\t  -r:      reboot after shutdown.\n"
          "\t\t  -h:      halt after shutdown.\n"
          "\t\t  -f:      do a 'fast' reboot (skip fsck).\n"
          "\t\t  -F:      Force fsck on reboot.\n"
          "\t\t  -n:      do not go through \"init\" but go down real fast.\n"
          "\t\t  -c:      cancel a running shutdown.\n"
          "\t\t  -t secs: delay between warning and kill signal.\n"
          "\t\t  ** the \"time\" argument is mandatory! (try \"now\") **\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 = [506 x i8] c"Usage:\09 shutdown [-akrhfnc] [-t secs] time [warning message]\0A\09\09 -a: use /etc/shutdown.allow\0A\09\09 -k: don't really shutdown, only warn.\0A\09\09 -r: reboot after shutdown.\0A\09\09 -h: halt after shutdown.\0A\09\09 -f: do a 'fast' reboot (skip fsck).\0A\09\09 -F: Force fsck on reboot.\0A\09\09 -n: do not go through \22init\22 but go down real fast.\0A\09\09 -c: cancel a running shutdown.\0A\09\09 -t secs: delay between warning and kill signal.\0A\09\09 ** the \22time\22 argument is mandatory! (try \22now\22) **\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([506 x i8], [506 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [506 x i8] c"Usage:\09 shutdown [-akrhfnc] [-t secs] time [warning message]\0A\09\09 -a: use /etc/shutdown.allow\0A\09\09 -k: don't really shutdown, only warn.\0A\09\09 -r: reboot after shutdown.\0A\09\09 -h: halt after shutdown.\0A\09\09 -f: do a 'fast' reboot (skip fsck).\0A\09\09 -F: Force fsck on reboot.\0A\09\09 -n: do not go through \22init\22 but go down real fast.\0A\09\09 -c: cancel a running shutdown.\0A\09\09 -t secs: delay between warning and kill signal.\0A\09\09 ** the \22time\22 argument is mandatory! (try \22now\22) **\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([506 x i8], [506 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}