#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_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf(
      "Usage:\n"
      "  rrc [<option> <value> [..]]\n"
      "\n"
      "Options:\n"
      "  -h, -?       : Show this message.\n"
      "  -p <PASSWORD>: Sets the password for the server. Use -p! for no "
      "password.\n"
      "                 If not set, you will be prompted for a password during "
      "startup.\n"
      "  -u <USERNAME>: Sets the username for the server. (Default: \"user\")\n"
      "  -n <PORTNUMS>: Sets the Mongoose portnum string for the server. "
      "(Default: \"8080\")\n"
      "  -p!          : Do not set a password, this disables authentication.\n"
      "\n"
      "Note that if you specify -p, -u, or -n, the next string will be taken "
      "verbatim\n"
      "as the parameter, even if it is another option.\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [592 x i8] c"Usage:\0A rrc [<option> <value> [..]]\0A\0AOptions:\0A -h, -? : Show this message.\0A -p <PASSWORD>: Sets the password for the server. Use -p! for no password.\0A If not set, you will be prompted for a password during startup.\0A -u <USERNAME>: Sets the username for the server. (Default: \22user\22)\0A -n <PORTNUMS>: Sets the Mongoose portnum string for the server. (Default: \228080\22)\0A -p! : Do not set a password, this disables authentication.\0A\0ANote that if you specify -p, -u, or -n, the next string will be taken verbatim\0Aas the parameter, even if it is another option.\0A\00"
@EXIT_SUCCESS = global i32 0
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([592 x i8], [592 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = call i32 @exit(i32 %2)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [591 x i8] c"Usage:\0A rrc [<option> <value> [..]]\0A\0AOptions:\0A -h, -? : Show this message.\0A -p <PASSWORD>: Sets the password for the server. Use -p! for no password.\0A If not set, you will be prompted for a password during startup.\0A -u <USERNAME>: Sets the username for the server. (Default: \22user\22)\0A -n <PORTNUMS>: Sets the Mongoose portnum string for the server. (Default: \228080\22)\0A -p! : Do not set a password, this disables authentication.\0A\0ANote that if you specify -p, -u, or -n, the next string will be taken verbatim\0Aas the parameter, even if it is another option.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([591 x i8], [591 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = tail call i32 @exit(i32 %2)
unreachable
}