#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*/ CursorXY(int, int);
int /*<<< orphan*/ drawNoose();
int /*<<< orphan*/ printf(char *);
void drawScreen() {
  CursorXY(1, 12);
  printf("Guess:");
  CursorXY((80 - 26), 3);
  printf("Guessed:");
  CursorXY((80 - 26), 5);
  printf("Word #:");
  CursorXY((80 - 26), 6);
  printf("Current Average:");
  CursorXY((80 - 26), 6 + 1);
  printf("Overall Average:");
  CursorXY(2, 11);
  printf("Word: ");
  drawNoose();
}


x86 assembly (clang, -O0):
<drawScreen>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
mov    $0xc,%esi
call   1030 <CursorXY@plt>
lea    0xeb6(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x3,%esi
call   1030 <CursorXY@plt>
lea    0xea2(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x5,%esi
call   1030 <CursorXY@plt>
lea    0xe90(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x6,%esi
call   1030 <CursorXY@plt>
lea    0xe7d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x7,%esi
call   1030 <CursorXY@plt>
lea    0xe73(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2,%edi
mov    $0xb,%esi
call   1030 <CursorXY@plt>
lea    0xe69(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <drawNoose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawScreen>:
push   %rax
mov    $0x1,%edi
mov    $0xc,%esi
call   1030 <CursorXY@plt>
lea    0xeb9(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x3,%esi
call   1030 <CursorXY@plt>
lea    0xea5(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x5,%esi
call   1030 <CursorXY@plt>
lea    0xe93(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x6,%esi
call   1030 <CursorXY@plt>
lea    0xe80(%rip),%rdi
call   1050 <printf@plt>
mov    $0x36,%edi
mov    $0x7,%esi
call   1030 <CursorXY@plt>
lea    0xe76(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2,%edi
mov    $0xb,%esi
call   1030 <CursorXY@plt>
lea    0xe6c(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <drawNoose@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Guess:\00"
@.str.1 = [9 x i8] c"Guessed:\00"
@.str.2 = [8 x i8] c"Word #:\00"
@.str.3 = [17 x i8] c"Current Average:\00"
@.str.4 = [17 x i8] c"Overall Average:\00"
@.str.5 = [7 x i8] c"Word: \00"
define void @drawScreen() {
%1 = call i32 @CursorXY(i32 1, i32 12)
%2 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @CursorXY(i32 54, i32 3)
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @CursorXY(i32 54, i32 5)
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @CursorXY(i32 54, i32 6)
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @CursorXY(i32 54, i32 7)
%10 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @CursorXY(i32 2, i32 11)
%12 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (...) @drawNoose()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Guess:\00"
@.str.1 = [9 x i8] c"Guessed:\00"
@.str.2 = [8 x i8] c"Word #:\00"
@.str.3 = [17 x i8] c"Current Average:\00"
@.str.4 = [17 x i8] c"Overall Average:\00"
@.str.5 = [7 x i8] c"Word: \00"
define void @drawScreen() {
%1 = tail call i32 @CursorXY(i32 1, i32 12)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @CursorXY(i32 54, i32 3)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @CursorXY(i32 54, i32 5)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @CursorXY(i32 54, i32 6)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @CursorXY(i32 54, i32 7)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @CursorXY(i32 2, i32 11)
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 (...) @drawNoose()
ret void
}