#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*/ clear_screen();
int get_level();
int get_rows();
int get_score();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
void game_over() {
  clear_screen();
  printf("\n\n\t***  GAME OVER  ***\n\tFINAL "
         "SCORE:\t%d\n\tROWS:\t\t%d\n\tLEVEL:\t\t%d\n\n",
         get_score(), get_rows(), get_level());
  printf("<< PRESS ENTER TO EXIT >>\n");
  getchar();
}


x86 assembly (clang, -O0):
<game_over>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <clear_screen@plt>
mov    $0x0,%al
call   1040 <get_score@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <get_rows@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <get_level@plt>
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    %eax,%ecx
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<game_over>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1070 <clear_screen@plt>
xor    %eax,%eax
call   1050 <get_score@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1080 <get_rows@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1090 <get_level@plt>
lea    0xe66(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <getchar@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"\0A\0A\09*** GAME OVER ***\0A\09FINAL SCORE:\09%d\0A\09ROWS:\09\09%d\0A\09LEVEL:\09\09%d\0A\0A\00"
@.str.1 = [27 x i8] c"<< PRESS ENTER TO EXIT >>\0A\00"
define void @game_over() {
%1 = call i32 (...) @clear_screen()
%2 = call i32 (...) @get_score()
%3 = call i32 (...) @get_rows()
%4 = call i32 (...) @get_level()
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@.str = [65 x i8] c"\0A\0A\09*** GAME OVER ***\0A\09FINAL SCORE:\09%d\0A\09ROWS:\09\09%d\0A\09LEVEL:\09\09%d\0A\0A\00"
@str = [26 x i8] c"<< PRESS ENTER TO EXIT >>\00"
define void @game_over() {
%1 = tail call i32 (...) @clear_screen()
%2 = tail call i32 (...) @get_score()
%3 = tail call i32 (...) @get_rows()
%4 = tail call i32 (...) @get_level()
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 (...) @getchar()
ret void
}