#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*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *, ...);
void refreshInfoBar(int score, int speed) {
  gotoxy(5, 23);
  printf("Score: %d", score);
  gotoxy(5, 24);
  printf("Speed: %d", speed);
  gotoxy(52, 23);
  printf("Coder: Matthew Vlietstra");
  gotoxy(52, 24);
  printf("Version: 0.5");
  return;
}


x86 assembly (clang, -O0):
<refreshInfoBar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x5,%edi
mov    $0x17,%esi
call   1040 <gotoxy@plt>
mov    -0x4(%rbp),%esi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x5,%edi
mov    $0x18,%esi
call   1040 <gotoxy@plt>
mov    -0x8(%rbp),%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x34,%edi
mov    $0x17,%esi
call   1040 <gotoxy@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x34,%edi
mov    $0x18,%esi
call   1040 <gotoxy@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<refreshInfoBar>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0x5,%edi
mov    $0x17,%esi
call   1040 <gotoxy@plt>
lea    0xec3(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x5,%edi
mov    $0x18,%esi
call   1040 <gotoxy@plt>
lea    0xeae(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x34,%edi
mov    $0x17,%esi
call   1040 <gotoxy@plt>
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x34,%edi
mov    $0x18,%esi
call   1040 <gotoxy@plt>
lea    0xe95(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Score: %d\00"
@.str.1 = [10 x i8] c"Speed: %d\00"
@.str.2 = [25 x i8] c"Coder: Matthew Vlietstra\00"
@.str.3 = [13 x i8] c"Version: 0.5\00"
define void @refreshInfoBar(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @gotoxy(i32 5, i32 23)
%6 = load i32, i32* %3
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @gotoxy(i32 5, i32 24)
%9 = load i32, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = call i32 @gotoxy(i32 52, i32 23)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @gotoxy(i32 52, i32 24)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"Score: %d\00"
@.str.1 = [10 x i8] c"Speed: %d\00"
@.str.2 = [25 x i8] c"Coder: Matthew Vlietstra\00"
@.str.3 = [13 x i8] c"Version: 0.5\00"
define void @refreshInfoBar(i32 %0, i32 %1) {
%3 = tail call i32 @gotoxy(i32 5, i32 23)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0)
%5 = tail call i32 @gotoxy(i32 5, i32 24)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %1)
%7 = tail call i32 @gotoxy(i32 52, i32 23)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @gotoxy(i32 52, i32 24)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
ret void
}