#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*/ print_usage(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void print_help(void) {
  print_usage(0);
  printf("Generate a preview of an OpenTTD save/scenario\n");
  printf("Options:\n");
  printf(" -v|--verbose\n");
  printf(" -p|--png <output>  write map image\n");
  printf(" -m|--map           map orientation (nw,ne,iso)\n");
  printf(" -d|--data <output> write map info (company names and colors, plain "
         "text)\n");
  printf(" -h|--help          show this help\n");
  exit(1);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1050 <print_usage@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
lea    0xf60(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rax
xor    %edi,%edi
call   1050 <print_usage@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"Generate a preview of an OpenTTD save/scenario\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [15 x i8] c" -v|--verbose\0A\00"
@.str.3 = [37 x i8] c" -p|--png <output> write map image\0A\00"
@.str.4 = [49 x i8] c" -m|--map map orientation (nw,ne,iso)\0A\00"
@.str.5 = [75 x i8] c" -d|--data <output> write map info (company names and colors, plain text)\0A\00"
@.str.6 = [36 x i8] c" -h|--help show this help\0A\00"
define void @print_help() {
%1 = call i32 @print_usage(i32 0)
%2 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [47 x i8] c"Generate a preview of an OpenTTD save/scenario\00"
@str.7 = [9 x i8] c"Options:\00"
@str.8 = [14 x i8] c" -v|--verbose\00"
@str.9 = [36 x i8] c" -p|--png <output> write map image\00"
@str.10 = [48 x i8] c" -m|--map map orientation (nw,ne,iso)\00"
@str.11 = [74 x i8] c" -d|--data <output> write map info (company names and colors, plain text)\00"
@str.12 = [35 x i8] c" -h|--help show this help\00"
define void @print_help() {
%1 = tail call i32 @print_usage(i32 0)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
}