#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(void) {
  fprintf(stderr, "usage: lkboot <hostname> <command> ...\n"
                  "\n"
                  "       lkboot <hostname> flash <partition> <filename>\n"
                  "       lkboot <hostname> erase <partition>\n"
                  "       lkboot <hostname> remove <partition>\n"
                  "       lkboot <hostname> fpga <bitfile>\n"
                  "       lkboot <hostname> boot <binary>\n"
                  "       lkboot <hostname> getsysparam <name>\n"
                  "       lkboot <hostname> reboot\n"
                  "       lkboot <hostname> :<commandname> [ <arg>* ]\n"
                  "\n"
                  "NOTE: If <hostname> is 'jtag', lkboot will attempt to use\n"
                  "       a tool 'zynq-dcc' to communicate with the device.\n"
                  "       Make sure it is in your path.\n"
                  "\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 = [542 x i8] c"usage: lkboot <hostname> <command> ...\0A\0A lkboot <hostname> flash <partition> <filename>\0A lkboot <hostname> erase <partition>\0A lkboot <hostname> remove <partition>\0A lkboot <hostname> fpga <bitfile>\0A lkboot <hostname> boot <binary>\0A lkboot <hostname> getsysparam <name>\0A lkboot <hostname> reboot\0A lkboot <hostname> :<commandname> [ <arg>* ]\0A\0ANOTE: If <hostname> is 'jtag', lkboot will attempt to use\0A a tool 'zynq-dcc' to communicate with the device.\0A Make sure it is in your path.\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([542 x i8], [542 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [542 x i8] c"usage: lkboot <hostname> <command> ...\0A\0A lkboot <hostname> flash <partition> <filename>\0A lkboot <hostname> erase <partition>\0A lkboot <hostname> remove <partition>\0A lkboot <hostname> fpga <bitfile>\0A lkboot <hostname> boot <binary>\0A lkboot <hostname> getsysparam <name>\0A lkboot <hostname> reboot\0A lkboot <hostname> :<commandname> [ <arg>* ]\0A\0ANOTE: If <hostname> is 'jtag', lkboot will attempt to use\0A a tool 'zynq-dcc' to communicate with the device.\0A Make sure it is in your path.\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([542 x i8], [542 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}