#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*/ mvprintw(int, int, char *);
void print_board(int y, int x) {
  mvprintw(y, x, "    |    |");
  mvprintw(y + 1, x, "    |    |");
  mvprintw(y + 2, x, "----+----+----");
  mvprintw(y + 3, x, "    |    |");
  mvprintw(y + 4, x, "    |    |");
  mvprintw(y + 5, x, "----+----+----");
  mvprintw(y + 6, x, "    |    |");
  mvprintw(y + 7, x, "    |    |");
}


x86 assembly (clang, -O0):
<print_board>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
lea    0xed5(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    -0x8(%rbp),%esi
lea    0xec0(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x2,%edi
mov    -0x8(%rbp),%esi
lea    0xeb6(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
lea    0xe96(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x4,%edi
mov    -0x8(%rbp),%esi
lea    0xe81(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x8(%rbp),%esi
lea    0xe77(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x6,%edi
mov    -0x8(%rbp),%esi
lea    0xe57(%rip),%rdx
call   1030 <mvprintw@plt>
mov    -0x4(%rbp),%edi
add    $0x7,%edi
mov    -0x8(%rbp),%esi
lea    0xe42(%rip),%rdx
call   1030 <mvprintw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_board>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xede(%rip),%r14
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x1(%rbx),%edi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x2(%rbx),%edi
lea    0xeca(%rip),%r15
mov    %ebp,%esi
mov    %r15,%rdx
call   1030 <mvprintw@plt>
lea    0x3(%rbx),%edi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x4(%rbx),%edi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
lea    0x5(%rbx),%edi
mov    %ebp,%esi
mov    %r15,%rdx
call   1030 <mvprintw@plt>
lea    0x6(%rbx),%edi
mov    %ebp,%esi
mov    %r14,%rdx
call   1030 <mvprintw@plt>
add    $0x7,%ebx
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <mvprintw@plt>

LLVM IR (-O0):
@.str = [11 x i8] c" | |\00"
@.str.1 = [15 x i8] c"----+----+----\00"
define void @print_board(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @mvprintw(i32 %5, i32 %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 1
%10 = load i32, i32* %4
%11 = call i32 @mvprintw(i32 %9, i32 %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 2
%14 = load i32, i32* %4
%15 = call i32 @mvprintw(i32 %13, i32 %14, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 3
%18 = load i32, i32* %4
%19 = call i32 @mvprintw(i32 %17, i32 %18, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 4
%22 = load i32, i32* %4
%23 = call i32 @mvprintw(i32 %21, i32 %22, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 5
%26 = load i32, i32* %4
%27 = call i32 @mvprintw(i32 %25, i32 %26, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 6
%30 = load i32, i32* %4
%31 = call i32 @mvprintw(i32 %29, i32 %30, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 7
%34 = load i32, i32* %4
%35 = call i32 @mvprintw(i32 %33, i32 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c" | |\00"
@.str.1 = [15 x i8] c"----+----+----\00"
define void @print_board(i32 %0, i32 %1) {
%3 = tail call i32 @mvprintw(i32 %0, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = add nsw i32 %0, 1
%5 = tail call i32 @mvprintw(i32 %4, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%6 = add nsw i32 %0, 2
%7 = tail call i32 @mvprintw(i32 %6, i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = add nsw i32 %0, 3
%9 = tail call i32 @mvprintw(i32 %8, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%10 = add nsw i32 %0, 4
%11 = tail call i32 @mvprintw(i32 %10, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%12 = add nsw i32 %0, 5
%13 = tail call i32 @mvprintw(i32 %12, i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%14 = add nsw i32 %0, 6
%15 = tail call i32 @mvprintw(i32 %14, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%16 = add nsw i32 %0, 7
%17 = tail call i32 @mvprintw(i32 %16, i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}