#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*/ draw_border();
int /*<<< orphan*/ draw_labels();
int /*<<< orphan*/ draw_piece(int, int);
int /*<<< orphan*/ erase();
main() {
  int r, f;
  erase();
  for (r = 0; r < 8; r++)
    for (f = 0; f < 8; f++)
      draw_piece(0, 21 + f * 10 + r);
  draw_piece(5, 21);
  draw_piece(3, 22);
  draw_piece(4, 23);
  draw_piece(6, 24);
  draw_piece(7, 25);
  draw_piece(4, 26);
  draw_piece(3, 27);
  draw_piece(5, 28);
  draw_piece(2, 31);
  draw_piece(2, 32);
  draw_piece(2, 33);
  draw_piece(2, 34);
  draw_piece(2, 35);
  draw_piece(2, 36);
  draw_piece(2, 37);
  draw_piece(2, 38);
  draw_piece(12, 81);
  draw_piece(12, 82);
  draw_piece(12, 83);
  draw_piece(12, 84);
  draw_piece(12, 85);
  draw_piece(12, 86);
  draw_piece(12, 87);
  draw_piece(12, 88);
  draw_piece(15, 91);
  draw_piece(13, 92);
  draw_piece(14, 93);
  draw_piece(16, 94);
  draw_piece(17, 95);
  draw_piece(14, 96);
  draw_piece(13, 97);
  draw_piece(15, 98);
  draw_piece(6, 54);
  draw_piece(7, 55);
  draw_piece(16, 64);
  draw_piece(17, 65);
  draw_border();
  draw_labels();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <erase@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    11aa <main+0x6a>
movl   $0x0,-0xc(%rbp)
cmpl   $0x8,-0xc(%rbp)
jge    1197 <main+0x57>
imul   $0xa,-0xc(%rbp),%esi
add    $0x15,%esi
add    -0x8(%rbp),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    116e <main+0x2e>
jmp    119c <main+0x5c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    115d <main+0x1d>
mov    $0x5,%edi
mov    $0x15,%esi
call   1060 <draw_piece@plt>
mov    $0x3,%edi
mov    $0x16,%esi
call   1060 <draw_piece@plt>
mov    $0x4,%edi
mov    $0x17,%esi
call   1060 <draw_piece@plt>
mov    $0x6,%edi
mov    $0x18,%esi
call   1060 <draw_piece@plt>
mov    $0x7,%edi
mov    $0x19,%esi
call   1060 <draw_piece@plt>
mov    $0x4,%edi
mov    $0x1a,%esi
call   1060 <draw_piece@plt>
mov    $0x3,%edi
mov    $0x1b,%esi
call   1060 <draw_piece@plt>
mov    $0x5,%edi
mov    $0x1c,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x1f,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x20,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x21,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x22,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x23,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x24,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x25,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x26,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x51,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x52,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x53,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x54,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x55,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x56,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x57,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x58,%esi
call   1060 <draw_piece@plt>
mov    $0xf,%edi
mov    $0x5b,%esi
call   1060 <draw_piece@plt>
mov    $0xd,%edi
mov    $0x5c,%esi
call   1060 <draw_piece@plt>
mov    $0xe,%edi
mov    $0x5d,%esi
call   1060 <draw_piece@plt>
mov    $0x10,%edi
mov    $0x5e,%esi
call   1060 <draw_piece@plt>
mov    $0x11,%edi
mov    $0x5f,%esi
call   1060 <draw_piece@plt>
mov    $0xe,%edi
mov    $0x60,%esi
call   1060 <draw_piece@plt>
mov    $0xd,%edi
mov    $0x61,%esi
call   1060 <draw_piece@plt>
mov    $0xf,%edi
mov    $0x62,%esi
call   1060 <draw_piece@plt>
mov    $0x6,%edi
mov    $0x36,%esi
call   1060 <draw_piece@plt>
mov    $0x7,%edi
mov    $0x37,%esi
call   1060 <draw_piece@plt>
mov    $0x10,%edi
mov    $0x40,%esi
call   1060 <draw_piece@plt>
mov    $0x11,%edi
mov    $0x41,%esi
call   1060 <draw_piece@plt>
mov    $0x0,%al
call   1050 <draw_border@plt>
mov    $0x0,%al
call   1040 <draw_labels@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <erase@plt>
mov    $0x5b,%ebx
nopl   (%rax)
lea    -0x46(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0x3c(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0x32(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0x28(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0x1e(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0x14(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
lea    -0xa(%rbx),%esi
xor    %edi,%edi
call   1060 <draw_piece@plt>
xor    %edi,%edi
mov    %ebx,%esi
call   1060 <draw_piece@plt>
add    $0x1,%ebx
cmp    $0x63,%ebx
jne    1150 <main+0x10>
mov    $0x5,%edi
mov    $0x15,%esi
call   1060 <draw_piece@plt>
mov    $0x3,%edi
mov    $0x16,%esi
call   1060 <draw_piece@plt>
mov    $0x4,%edi
mov    $0x17,%esi
call   1060 <draw_piece@plt>
mov    $0x6,%edi
mov    $0x18,%esi
call   1060 <draw_piece@plt>
mov    $0x7,%edi
mov    $0x19,%esi
call   1060 <draw_piece@plt>
mov    $0x4,%edi
mov    $0x1a,%esi
call   1060 <draw_piece@plt>
mov    $0x3,%edi
mov    $0x1b,%esi
call   1060 <draw_piece@plt>
mov    $0x5,%edi
mov    $0x1c,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x1f,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x20,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x21,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x22,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x23,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x24,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x25,%esi
call   1060 <draw_piece@plt>
mov    $0x2,%edi
mov    $0x26,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x51,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x52,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x53,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x54,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x55,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x56,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x57,%esi
call   1060 <draw_piece@plt>
mov    $0xc,%edi
mov    $0x58,%esi
call   1060 <draw_piece@plt>
mov    $0xf,%edi
mov    $0x5b,%esi
call   1060 <draw_piece@plt>
mov    $0xd,%edi
mov    $0x5c,%esi
call   1060 <draw_piece@plt>
mov    $0xe,%edi
mov    $0x5d,%esi
call   1060 <draw_piece@plt>
mov    $0x10,%edi
mov    $0x5e,%esi
call   1060 <draw_piece@plt>
mov    $0x11,%edi
mov    $0x5f,%esi
call   1060 <draw_piece@plt>
mov    $0xe,%edi
mov    $0x60,%esi
call   1060 <draw_piece@plt>
mov    $0xd,%edi
mov    $0x61,%esi
call   1060 <draw_piece@plt>
mov    $0xf,%edi
mov    $0x62,%esi
call   1060 <draw_piece@plt>
mov    $0x6,%edi
mov    $0x36,%esi
call   1060 <draw_piece@plt>
mov    $0x7,%edi
mov    $0x37,%esi
call   1060 <draw_piece@plt>
mov    $0x10,%edi
mov    $0x40,%esi
call   1060 <draw_piece@plt>
mov    $0x11,%edi
mov    $0x41,%esi
call   1060 <draw_piece@plt>
xor    %eax,%eax
call   1050 <draw_border@plt>
xor    %eax,%eax
call   1040 <draw_labels@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @erase()
store i32 0, i32* %2
br label %5
5: ; preds = %23, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 8
br i1 %7, label %8, label %26
8: ; preds = %5
store i32 0, i32* %3
br label %9
9: ; preds = %19, %8
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 8
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load i32, i32* %3
%14 = mul nsw i32 %13, 10
%15 = add nsw i32 21, %14
%16 = load i32, i32* %2
%17 = add nsw i32 %15, %16
%18 = call i32 @draw_piece(i32 0, i32 %17)
br label %19
19: ; preds = %12
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %9
22: ; preds = %9
br label %23
23: ; preds = %22
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %5
26: ; preds = %5
%27 = call i32 @draw_piece(i32 5, i32 21)
%28 = call i32 @draw_piece(i32 3, i32 22)
%29 = call i32 @draw_piece(i32 4, i32 23)
%30 = call i32 @draw_piece(i32 6, i32 24)
%31 = call i32 @draw_piece(i32 7, i32 25)
%32 = call i32 @draw_piece(i32 4, i32 26)
%33 = call i32 @draw_piece(i32 3, i32 27)
%34 = call i32 @draw_piece(i32 5, i32 28)
%35 = call i32 @draw_piece(i32 2, i32 31)
%36 = call i32 @draw_piece(i32 2, i32 32)
%37 = call i32 @draw_piece(i32 2, i32 33)
%38 = call i32 @draw_piece(i32 2, i32 34)
%39 = call i32 @draw_piece(i32 2, i32 35)
%40 = call i32 @draw_piece(i32 2, i32 36)
%41 = call i32 @draw_piece(i32 2, i32 37)
%42 = call i32 @draw_piece(i32 2, i32 38)
%43 = call i32 @draw_piece(i32 12, i32 81)
%44 = call i32 @draw_piece(i32 12, i32 82)
%45 = call i32 @draw_piece(i32 12, i32 83)
%46 = call i32 @draw_piece(i32 12, i32 84)
%47 = call i32 @draw_piece(i32 12, i32 85)
%48 = call i32 @draw_piece(i32 12, i32 86)
%49 = call i32 @draw_piece(i32 12, i32 87)
%50 = call i32 @draw_piece(i32 12, i32 88)
%51 = call i32 @draw_piece(i32 15, i32 91)
%52 = call i32 @draw_piece(i32 13, i32 92)
%53 = call i32 @draw_piece(i32 14, i32 93)
%54 = call i32 @draw_piece(i32 16, i32 94)
%55 = call i32 @draw_piece(i32 17, i32 95)
%56 = call i32 @draw_piece(i32 14, i32 96)
%57 = call i32 @draw_piece(i32 13, i32 97)
%58 = call i32 @draw_piece(i32 15, i32 98)
%59 = call i32 @draw_piece(i32 6, i32 54)
%60 = call i32 @draw_piece(i32 7, i32 55)
%61 = call i32 @draw_piece(i32 16, i32 64)
%62 = call i32 @draw_piece(i32 17, i32 65)
%63 = call i32 (...) @draw_border()
%64 = call i32 (...) @draw_labels()
%65 = load i32, i32* %1
ret i32 %65
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @erase()
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %20, %2 ]
%4 = add nuw nsw i32 %3, 21
%5 = tail call i32 @draw_piece(i32 0, i32 %4)
%6 = add nuw nsw i32 %3, 31
%7 = tail call i32 @draw_piece(i32 0, i32 %6)
%8 = add nuw nsw i32 %3, 41
%9 = tail call i32 @draw_piece(i32 0, i32 %8)
%10 = add nuw nsw i32 %3, 51
%11 = tail call i32 @draw_piece(i32 0, i32 %10)
%12 = add nuw nsw i32 %3, 61
%13 = tail call i32 @draw_piece(i32 0, i32 %12)
%14 = add nuw nsw i32 %3, 71
%15 = tail call i32 @draw_piece(i32 0, i32 %14)
%16 = add nuw nsw i32 %3, 81
%17 = tail call i32 @draw_piece(i32 0, i32 %16)
%18 = add nuw nsw i32 %3, 91
%19 = tail call i32 @draw_piece(i32 0, i32 %18)
%20 = add nuw nsw i32 %3, 1
%21 = icmp eq i32 %20, 8
br i1 %21, label %22, label %2
22: ; preds = %2
%23 = tail call i32 @draw_piece(i32 5, i32 21)
%24 = tail call i32 @draw_piece(i32 3, i32 22)
%25 = tail call i32 @draw_piece(i32 4, i32 23)
%26 = tail call i32 @draw_piece(i32 6, i32 24)
%27 = tail call i32 @draw_piece(i32 7, i32 25)
%28 = tail call i32 @draw_piece(i32 4, i32 26)
%29 = tail call i32 @draw_piece(i32 3, i32 27)
%30 = tail call i32 @draw_piece(i32 5, i32 28)
%31 = tail call i32 @draw_piece(i32 2, i32 31)
%32 = tail call i32 @draw_piece(i32 2, i32 32)
%33 = tail call i32 @draw_piece(i32 2, i32 33)
%34 = tail call i32 @draw_piece(i32 2, i32 34)
%35 = tail call i32 @draw_piece(i32 2, i32 35)
%36 = tail call i32 @draw_piece(i32 2, i32 36)
%37 = tail call i32 @draw_piece(i32 2, i32 37)
%38 = tail call i32 @draw_piece(i32 2, i32 38)
%39 = tail call i32 @draw_piece(i32 12, i32 81)
%40 = tail call i32 @draw_piece(i32 12, i32 82)
%41 = tail call i32 @draw_piece(i32 12, i32 83)
%42 = tail call i32 @draw_piece(i32 12, i32 84)
%43 = tail call i32 @draw_piece(i32 12, i32 85)
%44 = tail call i32 @draw_piece(i32 12, i32 86)
%45 = tail call i32 @draw_piece(i32 12, i32 87)
%46 = tail call i32 @draw_piece(i32 12, i32 88)
%47 = tail call i32 @draw_piece(i32 15, i32 91)
%48 = tail call i32 @draw_piece(i32 13, i32 92)
%49 = tail call i32 @draw_piece(i32 14, i32 93)
%50 = tail call i32 @draw_piece(i32 16, i32 94)
%51 = tail call i32 @draw_piece(i32 17, i32 95)
%52 = tail call i32 @draw_piece(i32 14, i32 96)
%53 = tail call i32 @draw_piece(i32 13, i32 97)
%54 = tail call i32 @draw_piece(i32 15, i32 98)
%55 = tail call i32 @draw_piece(i32 6, i32 54)
%56 = tail call i32 @draw_piece(i32 7, i32 55)
%57 = tail call i32 @draw_piece(i32 16, i32 64)
%58 = tail call i32 @draw_piece(i32 17, i32 65)
%59 = tail call i32 (...) @draw_border()
%60 = tail call i32 (...) @draw_labels()
ret i32 0
}