#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*/ clear();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ movebox();
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
void makeboard() {
  clear();
  refresh();
  move(0, 24);
  printw("=-> CANFIELD <-=");
  move(1, (0 + 7));
  printw("foundation");
  move(3 - 1, (0 + 7));
  printw("=---= =---= =---= =---=");
  move(3, (0 + 7));
  printw("|   | |   | |   | |   |");
  move(3 + 1, (0 + 7));
  printw("=---= =---= =---= =---=");
  move(6, 1);
  printw("stock  tableau");
  move(8 - 1, 1);
  printw("=---=");
  move(8, 1);
  printw("|   |");
  move(8 + 1, 1);
  printw("=---=");
  move(13 - 2, 1);
  printw("talon");
  move(13 - 1, 1);
  printw("=---=");
  move(13, 1);
  printw("|   |");
  move(13 + 1, 1);
  printw("=---=");
  move(8 - 1, ((0 + 7) + 1));
  printw("-1-   -2-   -3-   -4-");
  movebox();
}


x86 assembly (clang, -O0):
<makeboard>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <clear@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
xor    %edi,%edi
mov    $0x18,%esi
call   1070 <move@plt>
lea    0xe8b(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe81(%rip),%rdi
call   1030 <printw@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe71(%rip),%rdi
call   1030 <printw@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe6e(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe3b(%rip),%rdi
call   1030 <printw@plt>
mov    $0x6,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe50(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe17(%rip),%rdi
call   1030 <printw@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe14(%rip),%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xde1(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xdf3(%rip),%rdi
call   1030 <printw@plt>
mov    $0xc,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xdab(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xda8(%rip),%rdi
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xd75(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x8,%esi
call   1070 <move@plt>
lea    0xd8d(%rip),%rdi
call   1030 <printw@plt>
mov    $0x0,%al
call   1060 <movebox@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeboard>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <clear@plt>
xor    %eax,%eax
call   1040 <refresh@plt>
xor    %edi,%edi
mov    $0x18,%esi
call   1070 <move@plt>
lea    0xe8b(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe81(%rip),%rdi
call   1030 <printw@plt>
mov    $0x2,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe71(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1070 <move@plt>
lea    0xe6b(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x7,%esi
call   1070 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x6,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe51(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe18(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x8,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xe12(%rip),%r14
mov    %r14,%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x1,%esi
call   1070 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x1,%esi
call   1070 <move@plt>
lea    0xdf2(%rip),%rdi
call   1030 <printw@plt>
mov    $0xc,%edi
mov    $0x1,%esi
call   1070 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x1,%esi
call   1070 <move@plt>
mov    %r14,%rdi
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1070 <move@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x8,%esi
call   1070 <move@plt>
lea    0xd98(%rip),%rdi
call   1030 <printw@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <movebox@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"=-> CANFIELD <-=\00"
@.str.1 = [11 x i8] c"foundation\00"
@.str.2 = [24 x i8] c"=---= =---= =---= =---=\00"
@.str.3 = [24 x i8] c"| | | | | | | |\00"
@.str.4 = [15 x i8] c"stock tableau\00"
@.str.5 = [6 x i8] c"=---=\00"
@.str.6 = [6 x i8] c"| |\00"
@.str.7 = [6 x i8] c"talon\00"
@.str.8 = [22 x i8] c"-1- -2- -3- -4-\00"
define void @makeboard() {
%1 = call i32 (...) @clear()
%2 = call i32 (...) @refresh()
%3 = call i32 @move(i32 0, i32 24)
%4 = call i32 @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @move(i32 1, i32 7)
%6 = call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @move(i32 2, i32 7)
%8 = call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @move(i32 3, i32 7)
%10 = call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @move(i32 4, i32 7)
%12 = call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @move(i32 6, i32 1)
%14 = call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @move(i32 7, i32 1)
%16 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 @move(i32 8, i32 1)
%18 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 @move(i32 9, i32 1)
%20 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 @move(i32 11, i32 1)
%22 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%23 = call i32 @move(i32 12, i32 1)
%24 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%25 = call i32 @move(i32 13, i32 1)
%26 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%27 = call i32 @move(i32 14, i32 1)
%28 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%29 = call i32 @move(i32 7, i32 8)
%30 = call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%31 = call i32 (...) @movebox()
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"=-> CANFIELD <-=\00"
@.str.1 = [11 x i8] c"foundation\00"
@.str.2 = [24 x i8] c"=---= =---= =---= =---=\00"
@.str.3 = [24 x i8] c"| | | | | | | |\00"
@.str.4 = [15 x i8] c"stock tableau\00"
@.str.5 = [6 x i8] c"=---=\00"
@.str.6 = [6 x i8] c"| |\00"
@.str.7 = [6 x i8] c"talon\00"
@.str.8 = [22 x i8] c"-1- -2- -3- -4-\00"
define void @makeboard() {
%1 = tail call i32 (...) @clear()
%2 = tail call i32 (...) @refresh()
%3 = tail call i32 @move(i32 0, i32 24)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @move(i32 1, i32 7)
%6 = tail call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @move(i32 2, i32 7)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @move(i32 3, i32 7)
%10 = tail call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @move(i32 4, i32 7)
%12 = tail call i32 @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @move(i32 6, i32 1)
%14 = tail call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @move(i32 7, i32 1)
%16 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%17 = tail call i32 @move(i32 8, i32 1)
%18 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%19 = tail call i32 @move(i32 9, i32 1)
%20 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%21 = tail call i32 @move(i32 11, i32 1)
%22 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%23 = tail call i32 @move(i32 12, i32 1)
%24 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%25 = tail call i32 @move(i32 13, i32 1)
%26 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%27 = tail call i32 @move(i32 14, i32 1)
%28 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%29 = tail call i32 @move(i32 7, i32 8)
%30 = tail call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%31 = tail call i32 (...) @movebox()
ret void
}