#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*/ assert(int);
const char *chess_square_name(int square) {
  assert(square >= 0 && square <= 63);
  switch (square) {
  case 0:
    return "a1";
  case 1:
    return "b1";
  case 2:
    return "c1";
  case 3:
    return "d1";
  case 4:
    return "e1";
  case 5:
    return "f1";
  case 6:
    return "g1";
  case 7:
    return "h1";
  case 8:
    return "a2";
  case 9:
    return "b2";
  case 10:
    return "c2";
  case 11:
    return "d2";
  case 12:
    return "e2";
  case 13:
    return "f2";
  case 14:
    return "g2";
  case 15:
    return "h2";
  case 16:
    return "a3";
  case 17:
    return "b3";
  case 18:
    return "c3";
  case 19:
    return "d3";
  case 20:
    return "e3";
  case 21:
    return "f3";
  case 22:
    return "g3";
  case 23:
    return "h3";
  case 24:
    return "a4";
  case 25:
    return "b4";
  case 26:
    return "c4";
  case 27:
    return "d4";
  case 28:
    return "e4";
  case 29:
    return "f4";
  case 30:
    return "g4";
  case 31:
    return "h4";
  case 32:
    return "a5";
  case 33:
    return "b5";
  case 34:
    return "c5";
  case 35:
    return "d5";
  case 36:
    return "e5";
  case 37:
    return "f5";
  case 38:
    return "g5";
  case 39:
    return "h5";
  case 40:
    return "a6";
  case 41:
    return "b6";
  case 42:
    return "c6";
  case 43:
    return "d6";
  case 44:
    return "e6";
  case 45:
    return "f6";
  case 46:
    return "g6";
  case 47:
    return "h6";
  case 48:
    return "a7";
  case 49:
    return "b7";
  case 50:
    return "c7";
  case 51:
    return "d7";
  case 52:
    return "e7";
  case 53:
    return "f7";
  case 54:
    return "g7";
  case 55:
    return "h7";
  case 56:
    return "a8";
  case 57:
    return "b8";
  case 58:
    return "c8";
  case 59:
    return "d8";
  case 60:
    return "e8";
  case 61:
    return "f8";
  case 62:
    return "g8";
  case 63:
    return "h8";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<chess_square_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0xd(%rbp)
jl     1134 <chess_square_name+0x24>
cmpl   $0x3f,-0xc(%rbp)
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
movzbl %al,%edi
and    $0x1,%edi
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x3f,%rax
ja     1567 <chess_square_name+0x457>
mov    -0x18(%rbp),%rax
lea    0xea2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf92(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf85(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf6b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf44(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf37(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf2a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf1d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf10(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xf03(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xef6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xee9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xedc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xecf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xec2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xeb5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xea8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe9b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe8e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe81(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe74(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe67(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe5a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe40(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe26(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xe0c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdff(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdf2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xde5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdd8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdcb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdbe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xdb1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xda4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd97(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd8a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd7d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd56(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd49(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd3c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd2f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd22(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd15(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xd08(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcfb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcee(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xce1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcd4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcc7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcba(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xcad(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xca0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xc93(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xc86(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xc79(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xc6c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
lea    0xc5f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    156f <chess_square_name+0x45f>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chess_square_name>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
cmp    $0x40,%ebx
setb   %dil
call   1030 <assert@plt>
cmp    $0x3f,%ebx
ja     1139 <chess_square_name+0x29>
movslq %ebx,%rax
lea    0xf90(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"a1\00"
@.str.1 = [3 x i8] c"b1\00"
@.str.2 = [3 x i8] c"c1\00"
@.str.3 = [3 x i8] c"d1\00"
@.str.4 = [3 x i8] c"e1\00"
@.str.5 = [3 x i8] c"f1\00"
@.str.6 = [3 x i8] c"g1\00"
@.str.7 = [3 x i8] c"h1\00"
@.str.8 = [3 x i8] c"a2\00"
@.str.9 = [3 x i8] c"b2\00"
@.str.10 = [3 x i8] c"c2\00"
@.str.11 = [3 x i8] c"d2\00"
@.str.12 = [3 x i8] c"e2\00"
@.str.13 = [3 x i8] c"f2\00"
@.str.14 = [3 x i8] c"g2\00"
@.str.15 = [3 x i8] c"h2\00"
@.str.16 = [3 x i8] c"a3\00"
@.str.17 = [3 x i8] c"b3\00"
@.str.18 = [3 x i8] c"c3\00"
@.str.19 = [3 x i8] c"d3\00"
@.str.20 = [3 x i8] c"e3\00"
@.str.21 = [3 x i8] c"f3\00"
@.str.22 = [3 x i8] c"g3\00"
@.str.23 = [3 x i8] c"h3\00"
@.str.24 = [3 x i8] c"a4\00"
@.str.25 = [3 x i8] c"b4\00"
@.str.26 = [3 x i8] c"c4\00"
@.str.27 = [3 x i8] c"d4\00"
@.str.28 = [3 x i8] c"e4\00"
@.str.29 = [3 x i8] c"f4\00"
@.str.30 = [3 x i8] c"g4\00"
@.str.31 = [3 x i8] c"h4\00"
@.str.32 = [3 x i8] c"a5\00"
@.str.33 = [3 x i8] c"b5\00"
@.str.34 = [3 x i8] c"c5\00"
@.str.35 = [3 x i8] c"d5\00"
@.str.36 = [3 x i8] c"e5\00"
@.str.37 = [3 x i8] c"f5\00"
@.str.38 = [3 x i8] c"g5\00"
@.str.39 = [3 x i8] c"h5\00"
@.str.40 = [3 x i8] c"a6\00"
@.str.41 = [3 x i8] c"b6\00"
@.str.42 = [3 x i8] c"c6\00"
@.str.43 = [3 x i8] c"d6\00"
@.str.44 = [3 x i8] c"e6\00"
@.str.45 = [3 x i8] c"f6\00"
@.str.46 = [3 x i8] c"g6\00"
@.str.47 = [3 x i8] c"h6\00"
@.str.48 = [3 x i8] c"a7\00"
@.str.49 = [3 x i8] c"b7\00"
@.str.50 = [3 x i8] c"c7\00"
@.str.51 = [3 x i8] c"d7\00"
@.str.52 = [3 x i8] c"e7\00"
@.str.53 = [3 x i8] c"f7\00"
@.str.54 = [3 x i8] c"g7\00"
@.str.55 = [3 x i8] c"h7\00"
@.str.56 = [3 x i8] c"a8\00"
@.str.57 = [3 x i8] c"b8\00"
@.str.58 = [3 x i8] c"c8\00"
@.str.59 = [3 x i8] c"d8\00"
@.str.60 = [3 x i8] c"e8\00"
@.str.61 = [3 x i8] c"f8\00"
@.str.62 = [3 x i8] c"g8\00"
@.str.63 = [3 x i8] c"h8\00"
define i8* @chess_square_name(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 63
br label %9
9: ; preds = %6, %1
%10 = phi i1 [ false, %1 ], [ %8, %6 ]
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i32, i32* %3
switch i32 %13, label %78 [
i32 0, label %14
i32 1, label %15
i32 2, label %16
i32 3, label %17
i32 4, label %18
i32 5, label %19
i32 6, label %20
i32 7, label %21
i32 8, label %22
i32 9, label %23
i32 10, label %24
i32 11, label %25
i32 12, label %26
i32 13, label %27
i32 14, label %28
i32 15, label %29
i32 16, label %30
i32 17, label %31
i32 18, label %32
i32 19, label %33
i32 20, label %34
i32 21, label %35
i32 22, label %36
i32 23, label %37
i32 24, label %38
i32 25, label %39
i32 26, label %40
i32 27, label %41
i32 28, label %42
i32 29, label %43
i32 30, label %44
i32 31, label %45
i32 32, label %46
i32 33, label %47
i32 34, label %48
i32 35, label %49
i32 36, label %50
i32 37, label %51
i32 38, label %52
i32 39, label %53
i32 40, label %54
i32 41, label %55
i32 42, label %56
i32 43, label %57
i32 44, label %58
i32 45, label %59
i32 46, label %60
i32 47, label %61
i32 48, label %62
i32 49, label %63
i32 50, label %64
i32 51, label %65
i32 52, label %66
i32 53, label %67
i32 54, label %68
i32 55, label %69
i32 56, label %70
i32 57, label %71
i32 58, label %72
i32 59, label %73
i32 60, label %74
i32 61, label %75
i32 62, label %76
i32 63, label %77
]
14: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %79
15: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %79
16: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %79
17: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %79
18: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %79
19: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %79
20: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %79
21: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %79
22: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %79
23: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %79
24: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %79
25: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %79
26: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %79
27: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %79
28: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %79
29: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %79
30: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %79
31: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %79
32: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %79
33: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %79
34: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %79
35: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %79
36: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %79
37: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %79
38: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %79
39: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %79
40: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %79
41: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %79
42: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %79
43: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %79
44: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %79
45: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %79
46: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %79
47: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %79
48: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %79
49: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %79
50: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %79
51: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %79
52: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %79
53: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %79
54: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %79
55: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %79
56: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %79
57: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %79
58: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %79
59: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.45, i64 0, i64 0), i8** %2
br label %79
60: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.46, i64 0, i64 0), i8** %2
br label %79
61: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.47, i64 0, i64 0), i8** %2
br label %79
62: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.48, i64 0, i64 0), i8** %2
br label %79
63: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.49, i64 0, i64 0), i8** %2
br label %79
64: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.50, i64 0, i64 0), i8** %2
br label %79
65: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.51, i64 0, i64 0), i8** %2
br label %79
66: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.52, i64 0, i64 0), i8** %2
br label %79
67: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.53, i64 0, i64 0), i8** %2
br label %79
68: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.54, i64 0, i64 0), i8** %2
br label %79
69: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.55, i64 0, i64 0), i8** %2
br label %79
70: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.56, i64 0, i64 0), i8** %2
br label %79
71: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.57, i64 0, i64 0), i8** %2
br label %79
72: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.58, i64 0, i64 0), i8** %2
br label %79
73: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.59, i64 0, i64 0), i8** %2
br label %79
74: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.60, i64 0, i64 0), i8** %2
br label %79
75: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.61, i64 0, i64 0), i8** %2
br label %79
76: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.62, i64 0, i64 0), i8** %2
br label %79
77: ; preds = %9
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.63, i64 0, i64 0), i8** %2
br label %79
78: ; preds = %9
store i8* null, i8** %2
br label %79
79: ; preds = %78, %77, %76, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14
%80 = load i8*, i8** %2
ret i8* %80
}

LLVM IR (-O2):
@.str = [3 x i8] c"a1\00"
@.str.1 = [3 x i8] c"b1\00"
@.str.2 = [3 x i8] c"c1\00"
@.str.3 = [3 x i8] c"d1\00"
@.str.4 = [3 x i8] c"e1\00"
@.str.5 = [3 x i8] c"f1\00"
@.str.6 = [3 x i8] c"g1\00"
@.str.7 = [3 x i8] c"h1\00"
@.str.8 = [3 x i8] c"a2\00"
@.str.9 = [3 x i8] c"b2\00"
@.str.10 = [3 x i8] c"c2\00"
@.str.11 = [3 x i8] c"d2\00"
@.str.12 = [3 x i8] c"e2\00"
@.str.13 = [3 x i8] c"f2\00"
@.str.14 = [3 x i8] c"g2\00"
@.str.15 = [3 x i8] c"h2\00"
@.str.16 = [3 x i8] c"a3\00"
@.str.17 = [3 x i8] c"b3\00"
@.str.18 = [3 x i8] c"c3\00"
@.str.19 = [3 x i8] c"d3\00"
@.str.20 = [3 x i8] c"e3\00"
@.str.21 = [3 x i8] c"f3\00"
@.str.22 = [3 x i8] c"g3\00"
@.str.23 = [3 x i8] c"h3\00"
@.str.24 = [3 x i8] c"a4\00"
@.str.25 = [3 x i8] c"b4\00"
@.str.26 = [3 x i8] c"c4\00"
@.str.27 = [3 x i8] c"d4\00"
@.str.28 = [3 x i8] c"e4\00"
@.str.29 = [3 x i8] c"f4\00"
@.str.30 = [3 x i8] c"g4\00"
@.str.31 = [3 x i8] c"h4\00"
@.str.32 = [3 x i8] c"a5\00"
@.str.33 = [3 x i8] c"b5\00"
@.str.34 = [3 x i8] c"c5\00"
@.str.35 = [3 x i8] c"d5\00"
@.str.36 = [3 x i8] c"e5\00"
@.str.37 = [3 x i8] c"f5\00"
@.str.38 = [3 x i8] c"g5\00"
@.str.39 = [3 x i8] c"h5\00"
@.str.40 = [3 x i8] c"a6\00"
@.str.41 = [3 x i8] c"b6\00"
@.str.42 = [3 x i8] c"c6\00"
@.str.43 = [3 x i8] c"d6\00"
@.str.44 = [3 x i8] c"e6\00"
@.str.45 = [3 x i8] c"f6\00"
@.str.46 = [3 x i8] c"g6\00"
@.str.47 = [3 x i8] c"h6\00"
@.str.48 = [3 x i8] c"a7\00"
@.str.49 = [3 x i8] c"b7\00"
@.str.50 = [3 x i8] c"c7\00"
@.str.51 = [3 x i8] c"d7\00"
@.str.52 = [3 x i8] c"e7\00"
@.str.53 = [3 x i8] c"f7\00"
@.str.54 = [3 x i8] c"g7\00"
@.str.55 = [3 x i8] c"h7\00"
@.str.56 = [3 x i8] c"a8\00"
@.str.57 = [3 x i8] c"b8\00"
@.str.58 = [3 x i8] c"c8\00"
@.str.59 = [3 x i8] c"d8\00"
@.str.60 = [3 x i8] c"e8\00"
@.str.61 = [3 x i8] c"f8\00"
@.str.62 = [3 x i8] c"g8\00"
@.str.63 = [3 x i8] c"h8\00"
@reltable.chess_square_name = [64 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.1 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.2 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.3 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.4 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.5 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.6 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.7 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.8 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.9 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.10 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.11 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.12 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.13 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.14 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.15 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.16 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.17 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.18 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.19 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.20 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.21 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.22 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.23 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.24 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.25 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.26 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.27 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.28 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.29 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.30 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.31 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.32 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.33 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.34 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.35 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.36 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.37 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.38 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.39 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.40 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.41 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.42 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.43 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.44 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.45 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.46 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.47 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.48 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.49 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.50 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.51 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.52 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.53 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.54 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.55 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.56 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.57 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.58 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.59 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.60 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.61 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.62 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.63 to i64), i64 ptrtoint ([64 x i32]* @reltable.chess_square_name to i64)) to i32)]
define i8* @chess_square_name(i32 %0) {
%2 = icmp ult i32 %0, 64
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = icmp ult i32 %0, 64
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = sext i32 %0 to i64
%8 = shl i64 %7, 2
%9 = call i8* @llvm.load.relative.i64(i8* bitcast ([64 x i32]* @reltable.chess_square_name to i8*), i64 %8)
br label %10
10: ; preds = %1, %6
%11 = phi i8* [ %9, %6 ], [ null, %1 ]
ret i8* %11
}