#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 print_help() {
  printf("Flags:\n");
  printf("-h\tthis help message\n");
  printf("-l N\tset grid \"length\" (height) to N\n");
  printf("-w N\tset grid width to N\n");
  printf("-g\tdisable gridlines\n");
  printf("-r\tstart already running, not paused\n");
  printf("-s N\tset initial run speed to N (1-5)\n");
  printf("-p N\tset cell size to N pixels\n");
  printf("-c\tdisable colorized output\n");
  printf("In-window controls:\n");
  printf("\tPress 1 (slowest) - 5 (fastest) to select a simulation speed\n");
  printf("\tPress P to (un)pause the simulation\n");
  printf("\tPress S to simulate a single generation\n");
  printf("\tPress R to randomize the board\n");
  printf("\tPress C to clear the board\n");
  printf("\tClick a cell on-screen to toggle it on and off individually\n");
  printf("\tPress A to toggle colour\n");
  printf("\tPress G to toggle gridlines\n");
  printf("\tPress Q to quit\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
call   1030 <printf@plt>
lea    0x1052(%rip),%rdi
call   1030 <printf@plt>
lea    0x1064(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xf05(%rip),%rdi
call   1030 <puts@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1030 <puts@plt>
lea    0xff5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x1036(%rip),%rdi
call   1030 <puts@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0x1055(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Flags:\0A\00"
@.str.1 = [22 x i8] c"-h\09this help message\0A\00"
@.str.2 = [38 x i8] c"-l N\09set grid \22length\22 (height) to N\0A\00"
@.str.3 = [26 x i8] c"-w N\09set grid width to N\0A\00"
@.str.4 = [22 x i8] c"-g\09disable gridlines\0A\00"
@.str.5 = [38 x i8] c"-r\09start already running, not paused\0A\00"
@.str.6 = [39 x i8] c"-s N\09set initial run speed to N (1-5)\0A\00"
@.str.7 = [32 x i8] c"-p N\09set cell size to N pixels\0A\00"
@.str.8 = [29 x i8] c"-c\09disable colorized output\0A\00"
@.str.9 = [21 x i8] c"In-window controls:\0A\00"
@.str.10 = [63 x i8] c"\09Press 1 (slowest) - 5 (fastest) to select a simulation speed\0A\00"
@.str.11 = [38 x i8] c"\09Press P to (un)pause the simulation\0A\00"
@.str.12 = [42 x i8] c"\09Press S to simulate a single generation\0A\00"
@.str.13 = [33 x i8] c"\09Press R to randomize the board\0A\00"
@.str.14 = [29 x i8] c"\09Press C to clear the board\0A\00"
@.str.15 = [62 x i8] c"\09Click a cell on-screen to toggle it on and off individually\0A\00"
@.str.16 = [27 x i8] c"\09Press A to toggle colour\0A\00"
@.str.17 = [30 x i8] c"\09Press G to toggle gridlines\0A\00"
@.str.18 = [18 x i8] c"\09Press Q to quit\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Flags:\00"
@str.19 = [21 x i8] c"-h\09this help message\00"
@str.20 = [37 x i8] c"-l N\09set grid \22length\22 (height) to N\00"
@str.21 = [25 x i8] c"-w N\09set grid width to N\00"
@str.22 = [21 x i8] c"-g\09disable gridlines\00"
@str.23 = [37 x i8] c"-r\09start already running, not paused\00"
@str.24 = [38 x i8] c"-s N\09set initial run speed to N (1-5)\00"
@str.25 = [31 x i8] c"-p N\09set cell size to N pixels\00"
@str.26 = [28 x i8] c"-c\09disable colorized output\00"
@str.27 = [20 x i8] c"In-window controls:\00"
@str.28 = [62 x i8] c"\09Press 1 (slowest) - 5 (fastest) to select a simulation speed\00"
@str.29 = [37 x i8] c"\09Press P to (un)pause the simulation\00"
@str.30 = [41 x i8] c"\09Press S to simulate a single generation\00"
@str.31 = [32 x i8] c"\09Press R to randomize the board\00"
@str.32 = [28 x i8] c"\09Press C to clear the board\00"
@str.33 = [61 x i8] c"\09Click a cell on-screen to toggle it on and off individually\00"
@str.34 = [26 x i8] c"\09Press A to toggle colour\00"
@str.35 = [29 x i8] c"\09Press G to toggle gridlines\00"
@str.36 = [17 x i8] c"\09Press Q to quit\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.20, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.22, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.23, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.24, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.25, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.26, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.27, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.28, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.29, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.30, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.31, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.32, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.33, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.34, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.35, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.36, i64 0, i64 0))
ret void
}