#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*/ gen_simple_blink(char *, char *, int, int);
int /*<<< orphan*/ gen_simple_message(char *, char *, int);
int /*<<< orphan*/ gen_two_line();
int /*<<< orphan*/ output(char *);
int main(int argc, char *argv[]) {
  output("#include <freewpc.h>\n");
  gen_simple_message("game_over", "\"GAME OVER\"", 1500);
  gen_simple_blink("replay", "\"REPLAY\"", 3000, 200);
  gen_two_line();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeaa(%rip),%rdi
call   1030 <output@plt>
lea    0xeb4(%rip),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x5dc,%edx
call   1050 <gen_simple_message@plt>
lea    0xeb2(%rip),%rdi
lea    0xeb2(%rip),%rsi
mov    $0xbb8,%edx
mov    $0xc8,%ecx
call   1060 <gen_simple_blink@plt>
mov    $0x0,%al
call   1040 <gen_two_line@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <output@plt>
lea    0xec2(%rip),%rdi
lea    0xec5(%rip),%rsi
mov    $0x5dc,%edx
call   1050 <gen_simple_message@plt>
lea    0xec0(%rip),%rdi
lea    0xec0(%rip),%rsi
mov    $0xbb8,%edx
mov    $0xc8,%ecx
call   1060 <gen_simple_blink@plt>
xor    %eax,%eax
call   1040 <gen_two_line@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"#include <freewpc.h>\0A\00"
@.str.1 = [10 x i8] c"game_over\00"
@.str.2 = [12 x i8] c"\22GAME OVER\22\00"
@.str.3 = [7 x i8] c"replay\00"
@.str.4 = [9 x i8] c"\22REPLAY\22\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @output(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @gen_simple_message(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 1500)
%7 = call i32 @gen_simple_blink(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 3000, i32 200)
%8 = call i32 (...) @gen_two_line()
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"#include <freewpc.h>\0A\00"
@.str.1 = [10 x i8] c"game_over\00"
@.str.2 = [12 x i8] c"\22GAME OVER\22\00"
@.str.3 = [7 x i8] c"replay\00"
@.str.4 = [9 x i8] c"\22REPLAY\22\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @output(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @gen_simple_message(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 1500)
%5 = tail call i32 @gen_simple_blink(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 3000, i32 200)
%6 = tail call i32 (...) @gen_two_line()
ret i32 0
}