#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void print_help() {
  fprintf(stderr,
          "\noptions:\n"
          "    -a\n"
          "        Turn on all alone mode, for debugging purposes.\n"
          "    -c [config file]\n"
          "        Specify the configuration file to use (- for stdin).\n"
          "    -e\n"
          "        Log errors to stderr as well as the log file.\n"
          "    -f\n"
          "        Turn on wall forgetting.\n"
          "    -g\n"
          "        Turn on god mode.\n"
          "    -h\n"
          "        Display this useful information.\n"
          "    -i [lua init file]\n"
          "        The initial lua script to run.\n"
          "    -l [log file]\n"
          "        Set the log file to use.\n"
          "    -L [log level]\n"
          "        Set the logging level.\n"
          "        Supported log levels:\n"
          "            0  All\n"
          "            1  Debug\n"
          "            2  Notices\n"
          "            3  Warnings\n"
          "            4  Errors\n"
          "    -n [optional ip address]\n"
          "        Connect to server for multiplayer.\n"
          "    -r\n"
          "        Turn on all real time mode.\n"
          "    -s\n"
          "        Show everything.\n"
          "    -t [tile set file]\n"
          "        Specifies the tile set file.\n"
          "\n");
  exit(EXIT_SUCCESS);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [848 x i8] c"\0Aoptions:\0A -a\0A Turn on all alone mode, for debugging purposes.\0A -c [config file]\0A Specify the configuration file to use (- for stdin).\0A -e\0A Log errors to stderr as well as the log file.\0A -f\0A Turn on wall forgetting.\0A -g\0A Turn on god mode.\0A -h\0A Display this useful information.\0A -i [lua init file]\0A The initial lua script to run.\0A -l [log file]\0A Set the log file to use.\0A -L [log level]\0A Set the logging level.\0A Supported log levels:\0A 0 All\0A 1 Debug\0A 2 Notices\0A 3 Warnings\0A 4 Errors\0A -n [optional ip address]\0A Connect to server for multiplayer.\0A -r\0A Turn on all real time mode.\0A -s\0A Show everything.\0A -t [tile set file]\0A Specifies the tile set file.\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([848 x i8], [848 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_SUCCESS
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [848 x i8] c"\0Aoptions:\0A -a\0A Turn on all alone mode, for debugging purposes.\0A -c [config file]\0A Specify the configuration file to use (- for stdin).\0A -e\0A Log errors to stderr as well as the log file.\0A -f\0A Turn on wall forgetting.\0A -g\0A Turn on god mode.\0A -h\0A Display this useful information.\0A -i [lua init file]\0A The initial lua script to run.\0A -l [log file]\0A Set the log file to use.\0A -L [log level]\0A Set the logging level.\0A Supported log levels:\0A 0 All\0A 1 Debug\0A 2 Notices\0A 3 Warnings\0A 4 Errors\0A -n [optional ip address]\0A Connect to server for multiplayer.\0A -r\0A Turn on all real time mode.\0A -s\0A Show everything.\0A -t [tile set file]\0A Specifies the tile set file.\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([848 x i8], [848 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @EXIT_SUCCESS
%4 = tail call i32 @exit(i32 %3)
unreachable
}