#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*/ printf(char *, ...);
void DEBUG_PrintScreen(char Screen[20][20 + 1], int Curr_Score) {
  int Y, X;
  for (Y = 0; Y < 20; Y++) {
    printf("\n");
    for (X = 0; X < 20; X++) {
      printf("%c", Screen[Y][X]);
    }
  }
  printf("\n");
  printf("     Score %03d      \n", Curr_Score);
}


x86 assembly (clang, -O0):
<DEBUG_PrintScreen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x14,-0x10(%rbp)
jge    1195 <DEBUG_PrintScreen+0x85>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    1182 <DEBUG_PrintScreen+0x72>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0x15,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1145 <DEBUG_PrintScreen+0x35>
jmp    1187 <DEBUG_PrintScreen+0x77>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <DEBUG_PrintScreen+0x16>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DEBUG_PrintScreen>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%rbx
mov    $0x13,%ebp
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl -0x13(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x12(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x11(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x10(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xf(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xe(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xd(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xc(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xb(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0xa(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x9(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x8(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x7(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x6(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x5(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x4(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x3(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x2(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl -0x1(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
movsbl (%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
add    $0x15,%rbp
cmp    $0x1b7,%rbp
jne    1130 <DEBUG_PrintScreen+0x10>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xddd(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printf@plt>

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

LLVM IR (-O2):
@.str.2 = [23 x i8] c" Score %03d \0A\00"
define void @DEBUG_PrintScreen([21 x i8]* nocapture %0, i32 %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %86, %3 ]
%5 = tail call i32 @putchar(i32 10)
%6 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 0
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = tail call i32 @putchar(i32 %8)
%10 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 1
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = tail call i32 @putchar(i32 %12)
%14 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 2
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = tail call i32 @putchar(i32 %16)
%18 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 3
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = tail call i32 @putchar(i32 %20)
%22 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 4
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = tail call i32 @putchar(i32 %24)
%26 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 5
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = tail call i32 @putchar(i32 %28)
%30 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 6
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = tail call i32 @putchar(i32 %32)
%34 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 7
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = tail call i32 @putchar(i32 %36)
%38 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 8
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = tail call i32 @putchar(i32 %40)
%42 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 9
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = tail call i32 @putchar(i32 %44)
%46 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 10
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = tail call i32 @putchar(i32 %48)
%50 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 11
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = tail call i32 @putchar(i32 %52)
%54 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 12
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = tail call i32 @putchar(i32 %56)
%58 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 13
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = tail call i32 @putchar(i32 %60)
%62 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 14
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = tail call i32 @putchar(i32 %64)
%66 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 15
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = tail call i32 @putchar(i32 %68)
%70 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 16
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = tail call i32 @putchar(i32 %72)
%74 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 17
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = tail call i32 @putchar(i32 %76)
%78 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 18
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = tail call i32 @putchar(i32 %80)
%82 = getelementptr inbounds [21 x i8], [21 x i8]* %0, i64 %4, i64 19
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = tail call i32 @putchar(i32 %84)
%86 = add nuw nsw i64 %4, 1
%87 = icmp eq i64 %86, 20
br i1 %87, label %88, label %3
88: ; preds = %3
%89 = tail call i32 @putchar(i32 10)
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %1)
ret void
}