#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*/ printf(char *);
void help(void) {
  printf("\n");
  printf("Usage: nw [OPTION VALUE] [OPTION VALUE] ...\n");
  printf("\n");
  printf("Valid options:\n");
  printf(" players       maximum number of players, default: 12\n");
  printf(" planets       number of planets, default: 24\n");
  printf(" shots         number of displayed past shots, default: 16\n");
  printf(" rate          energy increase rate (default 1.0/s)\n");
  printf(" limit         energy limit (default 200.0)\n");
  printf(" roundtime     time limit per round in s (default 600)\n");
  printf(" extrapoints   selects the extrapoint mode (one out of: default, "
         "prefered, oldest, best\n");
  printf("\n");
  printf(" fullscreen    fullscreen enabled, default: 1\n");
  printf(" ratio         aspect ratio of battlefield (1.33, 4:3 and 4/3 are "
         "valid formats), default: 16:9\n");
  printf(" playersize    radius of players (default: 4.0)\n");
  printf(" margin        margin around the battlefield before shots are voided "
         "(default: 500.0)\n");
  printf("\n");
  printf(" ip            if set and a free slot exists, display 'to play, "
         "telnet \"ip\" 3490', default: empty\n");
  printf(" message       if set and a free slot exists, display message, "
         "supersedes ip, default: empty\n");
  printf("\n");
  printf("\n");
  printf("Debug options\n");
  printf(" debug         debug output, default: 0\n");
  printf(" fastmode      render only every 100th frame, default: 0\n");
  printf(" throttle      delay for every step in ms, default: 0.0\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0x1024(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0x100c(%rip),%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
call   1030 <printf@plt>
lea    0x104a(%rip),%rdi
call   1030 <printf@plt>
lea    0x109f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0x1103(%rip),%rdi
call   1030 <printf@plt>
lea    0x115a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0x1194(%rip),%rdi
call   1030 <printf@plt>
lea    0x1197(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b4(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e2(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xee4(%rip),%rdi
call   1040 <puts@plt>
lea    0xee7(%rip),%rdi
call   1040 <puts@plt>
lea    0xf11(%rip),%rdi
call   1040 <puts@plt>
lea    0xf33(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1017(%rip),%rdi
call   1040 <puts@plt>
lea    0x1039(%rip),%rdi
call   1040 <puts@plt>
lea    0x108d(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b1(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10f1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1147(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1184(%rip),%rdi
call   1040 <puts@plt>
lea    0x1186(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x11cf(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [45 x i8] c"Usage: nw [OPTION VALUE] [OPTION VALUE] ...\0A\00"
@.str.2 = [16 x i8] c"Valid options:\0A\00"
@.str.3 = [55 x i8] c" players maximum number of players, default: 12\0A\00"
@.str.4 = [47 x i8] c" planets number of planets, default: 24\0A\00"
@.str.5 = [60 x i8] c" shots number of displayed past shots, default: 16\0A\00"
@.str.6 = [53 x i8] c" rate energy increase rate (default 1.0/s)\0A\00"
@.str.7 = [45 x i8] c" limit energy limit (default 200.0)\0A\00"
@.str.8 = [56 x i8] c" roundtime time limit per round in s (default 600)\0A\00"
@.str.9 = [89 x i8] c" extrapoints selects the extrapoint mode (one out of: default, prefered, oldest, best\0A\00"
@.str.10 = [47 x i8] c" fullscreen fullscreen enabled, default: 1\0A\00"
@.str.11 = [97 x i8] c" ratio aspect ratio of battlefield (1.33, 4:3 and 4/3 are valid formats), default: 16:9\0A\00"
@.str.12 = [49 x i8] c" playersize radius of players (default: 4.0)\0A\00"
@.str.13 = [87 x i8] c" margin margin around the battlefield before shots are voided (default: 500.0)\0A\00"
@.str.14 = [99 x i8] c" ip if set and a free slot exists, display 'to play, telnet \22ip\22 3490', default: empty\0A\00"
@.str.15 = [94 x i8] c" message if set and a free slot exists, display message, supersedes ip, default: empty\0A\00"
@.str.16 = [15 x i8] c"Debug options\0A\00"
@.str.17 = [41 x i8] c" debug debug output, default: 0\0A\00"
@.str.18 = [58 x i8] c" fastmode render only every 100th frame, default: 0\0A\00"
@.str.19 = [57 x i8] c" throttle delay for every step in ms, default: 0.0\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.17, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.18, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [44 x i8] c"Usage: nw [OPTION VALUE] [OPTION VALUE] ...\00"
@str.20 = [15 x i8] c"Valid options:\00"
@str.21 = [54 x i8] c" players maximum number of players, default: 12\00"
@str.22 = [46 x i8] c" planets number of planets, default: 24\00"
@str.23 = [59 x i8] c" shots number of displayed past shots, default: 16\00"
@str.24 = [52 x i8] c" rate energy increase rate (default 1.0/s)\00"
@str.25 = [44 x i8] c" limit energy limit (default 200.0)\00"
@str.26 = [55 x i8] c" roundtime time limit per round in s (default 600)\00"
@str.27 = [88 x i8] c" extrapoints selects the extrapoint mode (one out of: default, prefered, oldest, best\00"
@str.28 = [46 x i8] c" fullscreen fullscreen enabled, default: 1\00"
@str.29 = [96 x i8] c" ratio aspect ratio of battlefield (1.33, 4:3 and 4/3 are valid formats), default: 16:9\00"
@str.30 = [48 x i8] c" playersize radius of players (default: 4.0)\00"
@str.31 = [86 x i8] c" margin margin around the battlefield before shots are voided (default: 500.0)\00"
@str.32 = [98 x i8] c" ip if set and a free slot exists, display 'to play, telnet \22ip\22 3490', default: empty\00"
@str.33 = [93 x i8] c" message if set and a free slot exists, display message, supersedes ip, default: empty\00"
@str.34 = [14 x i8] c"Debug options\00"
@str.35 = [40 x i8] c" debug debug output, default: 0\00"
@str.36 = [57 x i8] c" fastmode render only every 100th frame, default: 0\00"
@str.37 = [56 x i8] c" throttle delay for every step in ms, default: 0.0\00"
define void @help() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.20, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.21, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.32, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.33, i64 0, i64 0))
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.34, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.35, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.36, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.37, i64 0, i64 0))
%26 = tail call i32 @putchar(i32 10)
ret void
}