#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*/ printw(char *);
void RankTable(void) {
  int i;
  for (i = 0; i < 8; i++)
    printw("  ");
  printw("name");
  for (i = 0; i < 8; i++)
    printw("  ");
  printw("|");
  printw("   score   \n");
  for (i = 0; i < 49; i++)
    printw("-");
  printw("\n");
}


x86 assembly (clang, -O0):
<RankTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x8,-0x4(%rbp)
jge    1143 <RankTable+0x33>
lea    0xed0(%rip),%rdi
call   1030 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <RankTable+0xf>
lea    0xeb9(%rip),%rdi
call   1030 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x8,-0x4(%rbp)
jge    117a <RankTable+0x6a>
lea    0xe99(%rip),%rdi
call   1030 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1156 <RankTable+0x46>
lea    0xe87(%rip),%rdi
call   1030 <printw@plt>
lea    0xe7d(%rip),%rdi
call   1030 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x31,-0x4(%rbp)
jge    11bd <RankTable+0xad>
lea    0xe6d(%rip),%rdi
call   1030 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1199 <RankTable+0x89>
lea    0xe51(%rip),%rdi
call   1030 <printw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RankTable>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
lea    0xea4(%rip),%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
lea    0xe5d(%rip),%rdi
call   1030 <printw@plt>
lea    0xe53(%rip),%rdi
call   1030 <printw@plt>
lea    0xe54(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
lea    0xcc3(%rip),%rdi
pop    %rbx
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [3 x i8] c" \00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [2 x i8] c"|\00"
@.str.3 = [13 x i8] c" score \0A\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @RankTable() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %7, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 8
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
br label %2
10: ; preds = %2
%11 = call i32 @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %12
12: ; preds = %17, %10
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %15
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
store i32 %19, i32* %1
br label %12
20: ; preds = %12
%21 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %23
23: ; preds = %28, %20
%24 = load i32, i32* %1
%25 = icmp slt i32 %24, 49
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %28
28: ; preds = %26
%29 = load i32, i32* %1
%30 = add nsw i32 %29, 1
store i32 %30, i32* %1
br label %23
31: ; preds = %23
%32 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c" \00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [2 x i8] c"|\00"
@.str.3 = [13 x i8] c" score \0A\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @RankTable() {
%1 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%19 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%20 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%21 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%22 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%24 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%25 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%26 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%27 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%28 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%29 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%30 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%31 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%32 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%33 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%34 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%35 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%36 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%37 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%38 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%39 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%40 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%41 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%42 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%43 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%44 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%45 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%46 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%47 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%48 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%49 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%50 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%51 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%52 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%53 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%54 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%55 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%56 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%57 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%58 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%59 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%60 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%61 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%62 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%63 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%64 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%65 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%66 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%67 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%68 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%69 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}