#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*/ animate(char *);
int /*<<< orphan*/ clear_line();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
void ready_set_go() {
  clear_line();
  animate("assets/ready.txt");
  sleep(1);
  clear_line();
  animate("assets/set.txt");
  sleep(1);
  clear_line();
  animate("assets/go.txt");
  printf("\n\n\n");
  sleep(1);
}


x86 assembly (clang, -O0):
<ready_set_go>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <clear_line@plt>
lea    0xeae(%rip),%rdi
call   1030 <animate@plt>
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x0,%al
call   1040 <clear_line@plt>
lea    0xea2(%rip),%rdi
call   1030 <animate@plt>
mov    $0x1,%edi
call   1060 <sleep@plt>
mov    $0x0,%al
call   1040 <clear_line@plt>
lea    0xe94(%rip),%rdi
call   1030 <animate@plt>
lea    0xe96(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1060 <sleep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ready_set_go>:
push   %rax
xor    %eax,%eax
call   1040 <clear_line@plt>
lea    0xeb1(%rip),%rdi
call   1030 <animate@plt>
mov    $0x1,%edi
call   1060 <sleep@plt>
xor    %eax,%eax
call   1040 <clear_line@plt>
lea    0xea5(%rip),%rdi
call   1030 <animate@plt>
mov    $0x1,%edi
call   1060 <sleep@plt>
xor    %eax,%eax
call   1040 <clear_line@plt>
lea    0xe97(%rip),%rdi
call   1030 <animate@plt>
lea    0xe99(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
pop    %rax
jmp    1060 <sleep@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"assets/ready.txt\00"
@.str.1 = [15 x i8] c"assets/set.txt\00"
@.str.2 = [14 x i8] c"assets/go.txt\00"
@.str.3 = [4 x i8] c"\0A\0A\0A\00"
define void @ready_set_go() {
%1 = call i32 (...) @clear_line()
%2 = call i32 @animate(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @sleep(i32 1)
%4 = call i32 (...) @clear_line()
%5 = call i32 @animate(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @sleep(i32 1)
%7 = call i32 (...) @clear_line()
%8 = call i32 @animate(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @sleep(i32 1)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"assets/ready.txt\00"
@.str.1 = [15 x i8] c"assets/set.txt\00"
@.str.2 = [14 x i8] c"assets/go.txt\00"
@str = [3 x i8] c"\0A\0A\00"
define void @ready_set_go() {
%1 = tail call i32 (...) @clear_line()
%2 = tail call i32 @animate(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @sleep(i32 1)
%4 = tail call i32 (...) @clear_line()
%5 = tail call i32 @animate(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @sleep(i32 1)
%7 = tail call i32 (...) @clear_line()
%8 = tail call i32 @animate(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @sleep(i32 1)
ret void
}