#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*/ printEntry(char, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void generateStandardAlphabet() {
  printf("let StandardAlphabet : [UInt8] = [\n");
  int i = 0;
  for (char c = 'A'; c <= 'Z'; ++c) {
    printEntry(c, i++);
  }
  for (char c = 'a'; c <= 'z'; ++c) {
    printEntry(c, i++);
  }
  for (char c = '0'; c <= '9'; ++c) {
    printEntry(c, i++);
  }
  printEntry('+', i++);
  printEntry('/', i++);
  printf("// PADDING FOLLOWS, not used during lookups\n");
  printEntry('=', i++);
  printf("]\n");
}


x86 assembly (clang, -O0):
<generateStandardAlphabet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     116f <generateStandardAlphabet+0x4f>
mov    -0x5(%rbp),%al
mov    -0x4(%rbp),%esi
mov    %esi,%ecx
add    $0x1,%ecx
mov    %ecx,-0x4(%rbp)
movsbl %al,%edi
call   1040 <printEntry@plt>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    113f <generateStandardAlphabet+0x1f>
movb   $0x61,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
cmp    $0x7a,%eax
jg     11a3 <generateStandardAlphabet+0x83>
mov    -0x6(%rbp),%al
mov    -0x4(%rbp),%esi
mov    %esi,%ecx
add    $0x1,%ecx
mov    %ecx,-0x4(%rbp)
movsbl %al,%edi
call   1040 <printEntry@plt>
mov    -0x6(%rbp),%al
add    $0x1,%al
mov    %al,-0x6(%rbp)
jmp    1173 <generateStandardAlphabet+0x53>
movb   $0x30,-0x7(%rbp)
movsbl -0x7(%rbp),%eax
cmp    $0x39,%eax
jg     11d7 <generateStandardAlphabet+0xb7>
mov    -0x7(%rbp),%al
mov    -0x4(%rbp),%esi
mov    %esi,%ecx
add    $0x1,%ecx
mov    %ecx,-0x4(%rbp)
movsbl %al,%edi
call   1040 <printEntry@plt>
mov    -0x7(%rbp),%al
add    $0x1,%al
mov    %al,-0x7(%rbp)
jmp    11a7 <generateStandardAlphabet+0x87>
mov    -0x4(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x2b,%edi
call   1040 <printEntry@plt>
mov    -0x4(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x2f,%edi
call   1040 <printEntry@plt>
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x3d,%edi
call   1040 <printEntry@plt>
lea    0xe28(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generateStandardAlphabet>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x41,%edi
xor    %esi,%esi
call   1040 <printEntry@plt>
mov    $0x42,%edi
mov    $0x1,%esi
call   1040 <printEntry@plt>
mov    $0x43,%edi
mov    $0x2,%esi
call   1040 <printEntry@plt>
mov    $0x44,%edi
mov    $0x3,%esi
call   1040 <printEntry@plt>
mov    $0x45,%edi
mov    $0x4,%esi
call   1040 <printEntry@plt>
mov    $0x46,%edi
mov    $0x5,%esi
call   1040 <printEntry@plt>
mov    $0x47,%edi
mov    $0x6,%esi
call   1040 <printEntry@plt>
mov    $0x48,%edi
mov    $0x7,%esi
call   1040 <printEntry@plt>
mov    $0x49,%edi
mov    $0x8,%esi
call   1040 <printEntry@plt>
mov    $0x4a,%edi
mov    $0x9,%esi
call   1040 <printEntry@plt>
mov    $0x4b,%edi
mov    $0xa,%esi
call   1040 <printEntry@plt>
mov    $0x4c,%edi
mov    $0xb,%esi
call   1040 <printEntry@plt>
mov    $0x4d,%edi
mov    $0xc,%esi
call   1040 <printEntry@plt>
mov    $0x4e,%edi
mov    $0xd,%esi
call   1040 <printEntry@plt>
mov    $0x4f,%edi
mov    $0xe,%esi
call   1040 <printEntry@plt>
mov    $0x50,%edi
mov    $0xf,%esi
call   1040 <printEntry@plt>
mov    $0x51,%edi
mov    $0x10,%esi
call   1040 <printEntry@plt>
mov    $0x52,%edi
mov    $0x11,%esi
call   1040 <printEntry@plt>
mov    $0x53,%edi
mov    $0x12,%esi
call   1040 <printEntry@plt>
mov    $0x54,%edi
mov    $0x13,%esi
call   1040 <printEntry@plt>
mov    $0x55,%edi
mov    $0x14,%esi
call   1040 <printEntry@plt>
mov    $0x56,%edi
mov    $0x15,%esi
call   1040 <printEntry@plt>
mov    $0x57,%edi
mov    $0x16,%esi
call   1040 <printEntry@plt>
mov    $0x58,%edi
mov    $0x17,%esi
call   1040 <printEntry@plt>
mov    $0x59,%edi
mov    $0x18,%esi
call   1040 <printEntry@plt>
mov    $0x5a,%edi
mov    $0x19,%esi
call   1040 <printEntry@plt>
mov    $0x61,%edi
mov    $0x1a,%esi
call   1040 <printEntry@plt>
mov    $0x62,%edi
mov    $0x1b,%esi
call   1040 <printEntry@plt>
mov    $0x63,%edi
mov    $0x1c,%esi
call   1040 <printEntry@plt>
mov    $0x64,%edi
mov    $0x1d,%esi
call   1040 <printEntry@plt>
mov    $0x65,%edi
mov    $0x1e,%esi
call   1040 <printEntry@plt>
mov    $0x66,%edi
mov    $0x1f,%esi
call   1040 <printEntry@plt>
mov    $0x67,%edi
mov    $0x20,%esi
call   1040 <printEntry@plt>
mov    $0x68,%edi
mov    $0x21,%esi
call   1040 <printEntry@plt>
mov    $0x69,%edi
mov    $0x22,%esi
call   1040 <printEntry@plt>
mov    $0x6a,%edi
mov    $0x23,%esi
call   1040 <printEntry@plt>
mov    $0x6b,%edi
mov    $0x24,%esi
call   1040 <printEntry@plt>
mov    $0x6c,%edi
mov    $0x25,%esi
call   1040 <printEntry@plt>
mov    $0x6d,%edi
mov    $0x26,%esi
call   1040 <printEntry@plt>
mov    $0x6e,%edi
mov    $0x27,%esi
call   1040 <printEntry@plt>
mov    $0x6f,%edi
mov    $0x28,%esi
call   1040 <printEntry@plt>
mov    $0x70,%edi
mov    $0x29,%esi
call   1040 <printEntry@plt>
mov    $0x71,%edi
mov    $0x2a,%esi
call   1040 <printEntry@plt>
mov    $0x72,%edi
mov    $0x2b,%esi
call   1040 <printEntry@plt>
mov    $0x73,%edi
mov    $0x2c,%esi
call   1040 <printEntry@plt>
mov    $0x74,%edi
mov    $0x2d,%esi
call   1040 <printEntry@plt>
mov    $0x75,%edi
mov    $0x2e,%esi
call   1040 <printEntry@plt>
mov    $0x76,%edi
mov    $0x2f,%esi
call   1040 <printEntry@plt>
mov    $0x77,%edi
mov    $0x30,%esi
call   1040 <printEntry@plt>
mov    $0x78,%edi
mov    $0x31,%esi
call   1040 <printEntry@plt>
mov    $0x79,%edi
mov    $0x32,%esi
call   1040 <printEntry@plt>
mov    $0x7a,%edi
mov    $0x33,%esi
call   1040 <printEntry@plt>
mov    $0x30,%edi
mov    $0x34,%esi
call   1040 <printEntry@plt>
mov    $0x31,%edi
mov    $0x35,%esi
call   1040 <printEntry@plt>
mov    $0x32,%edi
mov    $0x36,%esi
call   1040 <printEntry@plt>
mov    $0x33,%edi
mov    $0x37,%esi
call   1040 <printEntry@plt>
mov    $0x34,%edi
mov    $0x38,%esi
call   1040 <printEntry@plt>
mov    $0x35,%edi
mov    $0x39,%esi
call   1040 <printEntry@plt>
mov    $0x36,%edi
mov    $0x3a,%esi
call   1040 <printEntry@plt>
mov    $0x37,%edi
mov    $0x3b,%esi
call   1040 <printEntry@plt>
mov    $0x38,%edi
mov    $0x3c,%esi
call   1040 <printEntry@plt>
mov    $0x39,%edi
mov    $0x3d,%esi
call   1040 <printEntry@plt>
mov    $0x2b,%edi
mov    $0x3e,%esi
call   1040 <printEntry@plt>
mov    $0x2f,%edi
mov    $0x3f,%esi
call   1040 <printEntry@plt>
lea    0xb32(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3d,%edi
mov    $0x40,%esi
call   1040 <printEntry@plt>
lea    0xb43(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"let StandardAlphabet : [UInt8] = [\0A\00"
@.str.1 = [45 x i8] c"// PADDING FOLLOWS, not used during lookups\0A\00"
@.str.2 = [3 x i8] c"]\0A\00"
define void @generateStandardAlphabet() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
store i8 65, i8* %2
br label %6
6: ; preds = %15, %0
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i8, i8* %2
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
%14 = call i32 @printEntry(i8 signext %11, i32 %12)
br label %15
15: ; preds = %10
%16 = load i8, i8* %2
%17 = add i8 %16, 1
store i8 %17, i8* %2
br label %6
18: ; preds = %6
store i8 97, i8* %3
br label %19
19: ; preds = %28, %18
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 122
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = load i8, i8* %3
%25 = load i32, i32* %1
%26 = add nsw i32 %25, 1
store i32 %26, i32* %1
%27 = call i32 @printEntry(i8 signext %24, i32 %25)
br label %28
28: ; preds = %23
%29 = load i8, i8* %3
%30 = add i8 %29, 1
store i8 %30, i8* %3
br label %19
31: ; preds = %19
store i8 48, i8* %4
br label %32
32: ; preds = %41, %31
%33 = load i8, i8* %4
%34 = sext i8 %33 to i32
%35 = icmp sle i32 %34, 57
br i1 %35, label %36, label %44
36: ; preds = %32
%37 = load i8, i8* %4
%38 = load i32, i32* %1
%39 = add nsw i32 %38, 1
store i32 %39, i32* %1
%40 = call i32 @printEntry(i8 signext %37, i32 %38)
br label %41
41: ; preds = %36
%42 = load i8, i8* %4
%43 = add i8 %42, 1
store i8 %43, i8* %4
br label %32
44: ; preds = %32
%45 = load i32, i32* %1
%46 = add nsw i32 %45, 1
store i32 %46, i32* %1
%47 = call i32 @printEntry(i8 signext 43, i32 %45)
%48 = load i32, i32* %1
%49 = add nsw i32 %48, 1
store i32 %49, i32* %1
%50 = call i32 @printEntry(i8 signext 47, i32 %48)
%51 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%52 = load i32, i32* %1
%53 = add nsw i32 %52, 1
store i32 %53, i32* %1
%54 = call i32 @printEntry(i8 signext 61, i32 %52)
%55 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [35 x i8] c"let StandardAlphabet : [UInt8] = [\00"
@str.3 = [44 x i8] c"// PADDING FOLLOWS, not used during lookups\00"
@str.4 = [2 x i8] c"]\00"
define void @generateStandardAlphabet() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printEntry(i8 signext 65, i32 0)
%3 = tail call i32 @printEntry(i8 signext 66, i32 1)
%4 = tail call i32 @printEntry(i8 signext 67, i32 2)
%5 = tail call i32 @printEntry(i8 signext 68, i32 3)
%6 = tail call i32 @printEntry(i8 signext 69, i32 4)
%7 = tail call i32 @printEntry(i8 signext 70, i32 5)
%8 = tail call i32 @printEntry(i8 signext 71, i32 6)
%9 = tail call i32 @printEntry(i8 signext 72, i32 7)
%10 = tail call i32 @printEntry(i8 signext 73, i32 8)
%11 = tail call i32 @printEntry(i8 signext 74, i32 9)
%12 = tail call i32 @printEntry(i8 signext 75, i32 10)
%13 = tail call i32 @printEntry(i8 signext 76, i32 11)
%14 = tail call i32 @printEntry(i8 signext 77, i32 12)
%15 = tail call i32 @printEntry(i8 signext 78, i32 13)
%16 = tail call i32 @printEntry(i8 signext 79, i32 14)
%17 = tail call i32 @printEntry(i8 signext 80, i32 15)
%18 = tail call i32 @printEntry(i8 signext 81, i32 16)
%19 = tail call i32 @printEntry(i8 signext 82, i32 17)
%20 = tail call i32 @printEntry(i8 signext 83, i32 18)
%21 = tail call i32 @printEntry(i8 signext 84, i32 19)
%22 = tail call i32 @printEntry(i8 signext 85, i32 20)
%23 = tail call i32 @printEntry(i8 signext 86, i32 21)
%24 = tail call i32 @printEntry(i8 signext 87, i32 22)
%25 = tail call i32 @printEntry(i8 signext 88, i32 23)
%26 = tail call i32 @printEntry(i8 signext 89, i32 24)
%27 = tail call i32 @printEntry(i8 signext 90, i32 25)
%28 = tail call i32 @printEntry(i8 signext 97, i32 26)
%29 = tail call i32 @printEntry(i8 signext 98, i32 27)
%30 = tail call i32 @printEntry(i8 signext 99, i32 28)
%31 = tail call i32 @printEntry(i8 signext 100, i32 29)
%32 = tail call i32 @printEntry(i8 signext 101, i32 30)
%33 = tail call i32 @printEntry(i8 signext 102, i32 31)
%34 = tail call i32 @printEntry(i8 signext 103, i32 32)
%35 = tail call i32 @printEntry(i8 signext 104, i32 33)
%36 = tail call i32 @printEntry(i8 signext 105, i32 34)
%37 = tail call i32 @printEntry(i8 signext 106, i32 35)
%38 = tail call i32 @printEntry(i8 signext 107, i32 36)
%39 = tail call i32 @printEntry(i8 signext 108, i32 37)
%40 = tail call i32 @printEntry(i8 signext 109, i32 38)
%41 = tail call i32 @printEntry(i8 signext 110, i32 39)
%42 = tail call i32 @printEntry(i8 signext 111, i32 40)
%43 = tail call i32 @printEntry(i8 signext 112, i32 41)
%44 = tail call i32 @printEntry(i8 signext 113, i32 42)
%45 = tail call i32 @printEntry(i8 signext 114, i32 43)
%46 = tail call i32 @printEntry(i8 signext 115, i32 44)
%47 = tail call i32 @printEntry(i8 signext 116, i32 45)
%48 = tail call i32 @printEntry(i8 signext 117, i32 46)
%49 = tail call i32 @printEntry(i8 signext 118, i32 47)
%50 = tail call i32 @printEntry(i8 signext 119, i32 48)
%51 = tail call i32 @printEntry(i8 signext 120, i32 49)
%52 = tail call i32 @printEntry(i8 signext 121, i32 50)
%53 = tail call i32 @printEntry(i8 signext 122, i32 51)
%54 = tail call i32 @printEntry(i8 signext 48, i32 52)
%55 = tail call i32 @printEntry(i8 signext 49, i32 53)
%56 = tail call i32 @printEntry(i8 signext 50, i32 54)
%57 = tail call i32 @printEntry(i8 signext 51, i32 55)
%58 = tail call i32 @printEntry(i8 signext 52, i32 56)
%59 = tail call i32 @printEntry(i8 signext 53, i32 57)
%60 = tail call i32 @printEntry(i8 signext 54, i32 58)
%61 = tail call i32 @printEntry(i8 signext 55, i32 59)
%62 = tail call i32 @printEntry(i8 signext 56, i32 60)
%63 = tail call i32 @printEntry(i8 signext 57, i32 61)
%64 = tail call i32 @printEntry(i8 signext 43, i32 62)
%65 = tail call i32 @printEntry(i8 signext 47, i32 63)
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.3, i64 0, i64 0))
%67 = tail call i32 @printEntry(i8 signext 61, i32 64)
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
ret void
}