#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*/ printf(char *, char *, int, char *, int);
int printcell(int c) {
  char *bg;
  bg = "#EEEEEE";
  if ('A' <= c && c <= 'Z')
    bg = "#EEFF00";
  if ('a' <= c && c <= 'z')
    bg = "#FFCC00";
  if ('0' <= c && c <= '9')
    bg = "#00EEFF";
  printf("<td align=\"right\" style=\"background-color: %s;\">%d</td><td "
         "align=\"center\" style=\"background-color: %s;\">%c</td> ",
         bg, c, bg, c);
}


x86 assembly (clang, -O0):
<printcell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
lea    0xede(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    $0x41,%eax
cmp    -0x8(%rbp),%eax
jg     1149 <printcell+0x39>
cmpl   $0x5a,-0x8(%rbp)
jg     1149 <printcell+0x39>
lea    0xec3(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    $0x61,%eax
cmp    -0x8(%rbp),%eax
jg     116c <printcell+0x5c>
cmpl   $0x7a,-0x8(%rbp)
jg     116c <printcell+0x5c>
lea    0xea8(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    $0x30,%eax
cmp    -0x8(%rbp),%eax
jg     118f <printcell+0x7f>
cmpl   $0x39,-0x8(%rbp)
jg     118f <printcell+0x7f>
lea    0xe8d(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%r8d
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printcell>:
mov    %edi,%edx
lea    -0x41(%rdx),%eax
cmp    $0x1a,%eax
lea    0xee9(%rip),%rax
lea    0xeda(%rip),%rcx
cmovb  %rax,%rcx
lea    -0x61(%rdx),%eax
cmp    $0x1a,%eax
lea    0xed9(%rip),%rax
cmovae %rcx,%rax
lea    -0x30(%rdx),%ecx
cmp    $0xa,%ecx
lea    0xed0(%rip),%rcx
cmovae %rax,%rcx
lea    0xecd(%rip),%rdi
mov    %rcx,%rsi
mov    %edx,%r8d
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"#EEEEEE\00"
@.str.1 = [8 x i8] c"#EEFF00\00"
@.str.2 = [8 x i8] c"#FFCC00\00"
@.str.3 = [8 x i8] c"EEFF\00"
@.str.4 = [113 x i8] c"<td align=\22right\22 style=\22background-color: %s;\22>%d</td><td align=\22center\22 style=\22background-color: %s;\22>%c</td> \00"
define i32 @printcell(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = load i32, i32* %3
%6 = icmp sle i32 65, %5
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 90
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %4
br label %11
11: ; preds = %10, %7, %1
%12 = load i32, i32* %3
%13 = icmp sle i32 97, %12
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32, i32* %3
%16 = icmp sle i32 %15, 122
br i1 %16, label %17, label %18
17: ; preds = %14
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %4
br label %18
18: ; preds = %17, %14, %11
%19 = load i32, i32* %3
%20 = icmp sle i32 48, %19
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = load i32, i32* %3
%23 = icmp sle i32 %22, 57
br i1 %23, label %24, label %25
24: ; preds = %21
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %4
br label %25
25: ; preds = %24, %21, %18
%26 = load i8*, i8** %4
%27 = load i32, i32* %3
%28 = load i8*, i8** %4
%29 = load i32, i32* %3
%30 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.4, i64 0, i64 0), i8* %26, i32 %27, i8* %28, i32 %29)
%31 = load i32, i32* %2
ret i32 %31
}

LLVM IR (-O2):
@.str = [8 x i8] c"#EEEEEE\00"
@.str.1 = [8 x i8] c"#EEFF00\00"
@.str.2 = [8 x i8] c"#FFCC00\00"
@.str.3 = [8 x i8] c"EEFF\00"
@.str.4 = [113 x i8] c"<td align=\22right\22 style=\22background-color: %s;\22>%d</td><td align=\22center\22 style=\22background-color: %s;\22>%c</td> \00"
define i32 @printcell(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
%4 = select i1 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)
%5 = add i32 %0, -97
%6 = icmp ult i32 %5, 26
%7 = select i1 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %4
%8 = add i32 %0, -48
%9 = icmp ult i32 %8, 10
%10 = select i1 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %7
%11 = tail call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.4, i64 0, i64 0), i8* %10, i32 %0, i8* %10, i32 %0)
ret i32 undef
}