#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*/ color_set(int, int, int, int, char *);
void plcmap0_def(int imin, int imax) {
  int i;
  if (0 >= imin && 0 <= imax)
    color_set(0, 0, 0, 0, "black");
  ;
  if (1 >= imin && 1 <= imax)
    color_set(1, 255, 0, 0, "red");
  ;
  if (2 >= imin && 2 <= imax)
    color_set(2, 255, 255, 0, "yellow");
  ;
  if (3 >= imin && 3 <= imax)
    color_set(3, 0, 255, 0, "green");
  ;
  if (4 >= imin && 4 <= imax)
    color_set(4, 127, 255, 212, "aquamarine");
  ;
  if (5 >= imin && 5 <= imax)
    color_set(5, 255, 192, 203, "pink");
  ;
  if (6 >= imin && 6 <= imax)
    color_set(6, 245, 222, 179, "wheat");
  ;
  if (7 >= imin && 7 <= imax)
    color_set(7, 190, 190, 190, "grey");
  ;
  if (8 >= imin && 8 <= imax)
    color_set(8, 165, 42, 42, "brown");
  ;
  if (9 >= imin && 9 <= imax)
    color_set(9, 0, 0, 255, "blue");
  ;
  if (10 >= imin && 10 <= imax)
    color_set(10, 138, 43, 226, "BlueViolet");
  ;
  if (11 >= imin && 11 <= imax)
    color_set(11, 0, 255, 255, "cyan");
  ;
  if (12 >= imin && 12 <= imax)
    color_set(12, 64, 224, 208, "turquoise");
  ;
  if (13 >= imin && 13 <= imax)
    color_set(13, 255, 0, 255, "magenta");
  ;
  if (14 >= imin && 14 <= imax)
    color_set(14, 250, 128, 114, "salmon");
  ;
  if (15 >= imin && 15 <= imax)
    color_set(15, 255, 255, 255, "white");
  ;
  for (i = 16; i <= imax; i++)
    if (i >= imin && i <= imax)
      color_set(i, 255, 0, 0, "red");
  ;
}


x86 assembly (clang, -O0):
<plcmap0_def>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xor    %eax,%eax
cmp    -0x4(%rbp),%eax
jl     1148 <plcmap0_def+0x38>
xor    %eax,%eax
cmp    -0x8(%rbp),%eax
jg     1148 <plcmap0_def+0x38>
xor    %ecx,%ecx
lea    0xec3(%rip),%r8
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <color_set@plt>
mov    $0x1,%eax
cmp    -0x4(%rbp),%eax
jl     117e <plcmap0_def+0x6e>
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
jg     117e <plcmap0_def+0x6e>
mov    $0x1,%edi
mov    $0xff,%esi
xor    %ecx,%ecx
lea    0xe8f(%rip),%r8
mov    %ecx,%edx
call   1030 <color_set@plt>
mov    $0x2,%eax
cmp    -0x4(%rbp),%eax
jl     11b4 <plcmap0_def+0xa4>
mov    $0x2,%eax
cmp    -0x8(%rbp),%eax
jg     11b4 <plcmap0_def+0xa4>
mov    $0x2,%edi
mov    $0xff,%edx
xor    %ecx,%ecx
lea    0xe5d(%rip),%r8
mov    %edx,%esi
call   1030 <color_set@plt>
mov    $0x3,%eax
cmp    -0x4(%rbp),%eax
jl     11ea <plcmap0_def+0xda>
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
jg     11ea <plcmap0_def+0xda>
mov    $0x3,%edi
xor    %ecx,%ecx
mov    $0xff,%edx
lea    0xe2e(%rip),%r8
mov    %ecx,%esi
call   1030 <color_set@plt>
mov    $0x4,%eax
cmp    -0x4(%rbp),%eax
jl     1226 <plcmap0_def+0x116>
mov    $0x4,%eax
cmp    -0x8(%rbp),%eax
jg     1226 <plcmap0_def+0x116>
mov    $0x4,%edi
mov    $0x7f,%esi
mov    $0xff,%edx
mov    $0xd4,%ecx
lea    0xdf6(%rip),%r8
call   1030 <color_set@plt>
mov    $0x5,%eax
cmp    -0x4(%rbp),%eax
jl     1262 <plcmap0_def+0x152>
mov    $0x5,%eax
cmp    -0x8(%rbp),%eax
jg     1262 <plcmap0_def+0x152>
mov    $0x5,%edi
mov    $0xff,%esi
mov    $0xc0,%edx
mov    $0xcb,%ecx
lea    0xdc5(%rip),%r8
call   1030 <color_set@plt>
mov    $0x6,%eax
cmp    -0x4(%rbp),%eax
jl     129e <plcmap0_def+0x18e>
mov    $0x6,%eax
cmp    -0x8(%rbp),%eax
jg     129e <plcmap0_def+0x18e>
mov    $0x6,%edi
mov    $0xf5,%esi
mov    $0xde,%edx
mov    $0xb3,%ecx
lea    0xd8e(%rip),%r8
call   1030 <color_set@plt>
mov    $0x7,%eax
cmp    -0x4(%rbp),%eax
jl     12d4 <plcmap0_def+0x1c4>
mov    $0x7,%eax
cmp    -0x8(%rbp),%eax
jg     12d4 <plcmap0_def+0x1c4>
mov    $0x7,%edi
mov    $0xbe,%ecx
lea    0xd62(%rip),%r8
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <color_set@plt>
mov    $0x8,%eax
cmp    -0x4(%rbp),%eax
jl     130d <plcmap0_def+0x1fd>
mov    $0x8,%eax
cmp    -0x8(%rbp),%eax
jg     130d <plcmap0_def+0x1fd>
mov    $0x8,%edi
mov    $0xa5,%esi
mov    $0x2a,%ecx
lea    0xd2c(%rip),%r8
mov    %ecx,%edx
call   1030 <color_set@plt>
mov    $0x9,%eax
cmp    -0x4(%rbp),%eax
jl     1343 <plcmap0_def+0x233>
mov    $0x9,%eax
cmp    -0x8(%rbp),%eax
jg     1343 <plcmap0_def+0x233>
mov    $0x9,%edi
xor    %edx,%edx
mov    $0xff,%ecx
lea    0xcfc(%rip),%r8
mov    %edx,%esi
call   1030 <color_set@plt>
mov    $0xa,%eax
cmp    -0x4(%rbp),%eax
jl     137f <plcmap0_def+0x26f>
mov    $0xa,%eax
cmp    -0x8(%rbp),%eax
jg     137f <plcmap0_def+0x26f>
mov    $0xa,%edi
mov    $0x8a,%esi
mov    $0x2b,%edx
mov    $0xe2,%ecx
lea    0xcc3(%rip),%r8
call   1030 <color_set@plt>
mov    $0xb,%eax
cmp    -0x4(%rbp),%eax
jl     13b5 <plcmap0_def+0x2a5>
mov    $0xb,%eax
cmp    -0x8(%rbp),%eax
jg     13b5 <plcmap0_def+0x2a5>
mov    $0xb,%edi
xor    %esi,%esi
mov    $0xff,%ecx
lea    0xc9a(%rip),%r8
mov    %ecx,%edx
call   1030 <color_set@plt>
mov    $0xc,%eax
cmp    -0x4(%rbp),%eax
jl     13f1 <plcmap0_def+0x2e1>
mov    $0xc,%eax
cmp    -0x8(%rbp),%eax
jg     13f1 <plcmap0_def+0x2e1>
mov    $0xc,%edi
mov    $0x40,%esi
mov    $0xe0,%edx
mov    $0xd0,%ecx
lea    0xc61(%rip),%r8
call   1030 <color_set@plt>
mov    $0xd,%eax
cmp    -0x4(%rbp),%eax
jl     1427 <plcmap0_def+0x317>
mov    $0xd,%eax
cmp    -0x8(%rbp),%eax
jg     1427 <plcmap0_def+0x317>
mov    $0xd,%edi
mov    $0xff,%ecx
xor    %edx,%edx
lea    0xc37(%rip),%r8
mov    %ecx,%esi
call   1030 <color_set@plt>
mov    $0xe,%eax
cmp    -0x4(%rbp),%eax
jl     1463 <plcmap0_def+0x353>
mov    $0xe,%eax
cmp    -0x8(%rbp),%eax
jg     1463 <plcmap0_def+0x353>
mov    $0xe,%edi
mov    $0xfa,%esi
mov    $0x80,%edx
mov    $0x72,%ecx
lea    0xc01(%rip),%r8
call   1030 <color_set@plt>
mov    $0xf,%eax
cmp    -0x4(%rbp),%eax
jl     1499 <plcmap0_def+0x389>
mov    $0xf,%eax
cmp    -0x8(%rbp),%eax
jg     1499 <plcmap0_def+0x389>
mov    $0xf,%edi
mov    $0xff,%ecx
lea    0xbd6(%rip),%r8
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <color_set@plt>
movl   $0x10,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     14ef <plcmap0_def+0x3df>
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     14dc <plcmap0_def+0x3cc>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     14dc <plcmap0_def+0x3cc>
mov    -0xc(%rbp),%edi
mov    $0xff,%esi
xor    %ecx,%ecx
lea    0xb31(%rip),%r8
mov    %ecx,%edx
call   1030 <color_set@plt>
jmp    14e1 <plcmap0_def+0x3d1>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14a0 <plcmap0_def+0x390>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plcmap0_def>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebp
test   %edi,%edi
jg     1139 <plcmap0_def+0x29>
test   %r14d,%r14d
js     1139 <plcmap0_def+0x29>
lea    0xed4(%rip),%r8
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <color_set@plt>
cmp    $0x1,%ebp
jg     115d <plcmap0_def+0x4d>
test   %r14d,%r14d
jle    115d <plcmap0_def+0x4d>
lea    0xebc(%rip),%r8
mov    $0x1,%edi
mov    $0xff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <color_set@plt>
cmp    $0x2,%ebp
jg     1185 <plcmap0_def+0x75>
cmp    $0x2,%r14d
jl     1185 <plcmap0_def+0x75>
lea    0xe9b(%rip),%r8
mov    $0x2,%edi
mov    $0xff,%esi
mov    $0xff,%edx
xor    %ecx,%ecx
call   1030 <color_set@plt>
cmp    $0x3,%ebp
jg     11aa <plcmap0_def+0x9a>
cmp    $0x3,%r14d
jl     11aa <plcmap0_def+0x9a>
lea    0xe7a(%rip),%r8
mov    $0x3,%edi
xor    %esi,%esi
mov    $0xff,%edx
xor    %ecx,%ecx
call   1030 <color_set@plt>
cmp    $0x4,%ebp
jg     11d5 <plcmap0_def+0xc5>
cmp    $0x4,%r14d
jl     11d5 <plcmap0_def+0xc5>
lea    0xe5b(%rip),%r8
mov    $0x4,%edi
mov    $0x7f,%esi
mov    $0xff,%edx
mov    $0xd4,%ecx
call   1030 <color_set@plt>
cmp    $0x5,%ebp
jg     1200 <plcmap0_def+0xf0>
cmp    $0x5,%r14d
jl     1200 <plcmap0_def+0xf0>
lea    0xe3b(%rip),%r8
mov    $0x5,%edi
mov    $0xff,%esi
mov    $0xc0,%edx
mov    $0xcb,%ecx
call   1030 <color_set@plt>
cmp    $0x6,%ebp
jg     122b <plcmap0_def+0x11b>
cmp    $0x6,%r14d
jl     122b <plcmap0_def+0x11b>
lea    0xe15(%rip),%r8
mov    $0x6,%edi
mov    $0xf5,%esi
mov    $0xde,%edx
mov    $0xb3,%ecx
call   1030 <color_set@plt>
cmp    $0x7,%ebp
jg     1256 <plcmap0_def+0x146>
cmp    $0x7,%r14d
jl     1256 <plcmap0_def+0x146>
lea    0xdf0(%rip),%r8
mov    $0x7,%edi
mov    $0xbe,%esi
mov    $0xbe,%edx
mov    $0xbe,%ecx
call   1030 <color_set@plt>
cmp    $0x8,%ebp
jg     1281 <plcmap0_def+0x171>
cmp    $0x8,%r14d
jl     1281 <plcmap0_def+0x171>
lea    0xdca(%rip),%r8
mov    $0x8,%edi
mov    $0xa5,%esi
mov    $0x2a,%edx
mov    $0x2a,%ecx
call   1030 <color_set@plt>
cmp    $0x9,%ebp
jg     12a6 <plcmap0_def+0x196>
cmp    $0x9,%r14d
jl     12a6 <plcmap0_def+0x196>
lea    0xda5(%rip),%r8
mov    $0x9,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0xff,%ecx
call   1030 <color_set@plt>
cmp    $0xa,%ebp
jg     12d1 <plcmap0_def+0x1c1>
cmp    $0xa,%r14d
jl     12d1 <plcmap0_def+0x1c1>
lea    0xd85(%rip),%r8
mov    $0xa,%edi
mov    $0x8a,%esi
mov    $0x2b,%edx
mov    $0xe2,%ecx
call   1030 <color_set@plt>
cmp    $0xb,%ebp
jg     12f9 <plcmap0_def+0x1e9>
cmp    $0xb,%r14d
jl     12f9 <plcmap0_def+0x1e9>
lea    0xd65(%rip),%r8
mov    $0xb,%edi
xor    %esi,%esi
mov    $0xff,%edx
mov    $0xff,%ecx
call   1030 <color_set@plt>
cmp    $0xc,%ebp
jg     1324 <plcmap0_def+0x214>
cmp    $0xc,%r14d
jl     1324 <plcmap0_def+0x214>
lea    0xd42(%rip),%r8
mov    $0xc,%edi
mov    $0x40,%esi
mov    $0xe0,%edx
mov    $0xd0,%ecx
call   1030 <color_set@plt>
cmp    $0xd,%ebp
jg     134c <plcmap0_def+0x23c>
cmp    $0xd,%r14d
jl     134c <plcmap0_def+0x23c>
lea    0xd21(%rip),%r8
mov    $0xd,%edi
mov    $0xff,%esi
xor    %edx,%edx
mov    $0xff,%ecx
call   1030 <color_set@plt>
cmp    $0xe,%ebp
jg     1377 <plcmap0_def+0x267>
cmp    $0xe,%r14d
jl     1377 <plcmap0_def+0x267>
lea    0xd01(%rip),%r8
mov    $0xe,%edi
mov    $0xfa,%esi
mov    $0x80,%edx
mov    $0x72,%ecx
call   1030 <color_set@plt>
cmp    $0xf,%ebp
jg     13a2 <plcmap0_def+0x292>
cmp    $0xf,%r14d
jl     13a2 <plcmap0_def+0x292>
lea    0xcdd(%rip),%r8
mov    $0xf,%edi
mov    $0xff,%esi
mov    $0xff,%edx
mov    $0xff,%ecx
call   1030 <color_set@plt>
cmp    $0x10,%r14d
jge    13b3 <plcmap0_def+0x2a3>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
neg    %r14d
mov    $0x10,%ebx
lea    0xc44(%rip),%r15
jmp    13e3 <plcmap0_def+0x2d3>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%r14,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
je     13a8 <plcmap0_def+0x298>
cmp    %ebp,%ebx
jl     13d0 <plcmap0_def+0x2c0>
mov    %ebx,%edi
mov    $0xff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %r15,%r8
call   1030 <color_set@plt>
jmp    13d0 <plcmap0_def+0x2c0>

LLVM IR (-O0):
@.str = [6 x i8] c"black\00"
@.str.1 = [4 x i8] c"red\00"
@.str.2 = [7 x i8] c"yellow\00"
@.str.3 = [6 x i8] c"green\00"
@.str.4 = [11 x i8] c"aquamarine\00"
@.str.5 = [5 x i8] c"pink\00"
@.str.6 = [6 x i8] c"wheat\00"
@.str.7 = [5 x i8] c"grey\00"
@.str.8 = [6 x i8] c"brown\00"
@.str.9 = [5 x i8] c"blue\00"
@.str.10 = [11 x i8] c"BlueViolet\00"
@.str.11 = [5 x i8] c"cyan\00"
@.str.12 = [10 x i8] c"turquoise\00"
@.str.13 = [8 x i8] c"magenta\00"
@.str.14 = [7 x i8] c"salmon\00"
@.str.15 = [6 x i8] c"white\00"
define void @plcmap0_def(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp sge i32 0, %6
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp sle i32 0, %9
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @color_set(i32 0, i32 0, i32 0, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %11, %8, %2
%14 = load i32, i32* %3
%15 = icmp sge i32 1, %14
br i1 %15, label %16, label %21
16: ; preds = %13
%17 = load i32, i32* %4
%18 = icmp sle i32 1, %17
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @color_set(i32 1, i32 255, i32 0, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %19, %16, %13
%22 = load i32, i32* %3
%23 = icmp sge i32 2, %22
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load i32, i32* %4
%26 = icmp sle i32 2, %25
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @color_set(i32 2, i32 255, i32 255, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27, %24, %21
%30 = load i32, i32* %3
%31 = icmp sge i32 3, %30
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load i32, i32* %4
%34 = icmp sle i32 3, %33
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @color_set(i32 3, i32 0, i32 255, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %37
37: ; preds = %35, %32, %29
%38 = load i32, i32* %3
%39 = icmp sge i32 4, %38
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = load i32, i32* %4
%42 = icmp sle i32 4, %41
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @color_set(i32 4, i32 127, i32 255, i32 212, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %45
45: ; preds = %43, %40, %37
%46 = load i32, i32* %3
%47 = icmp sge i32 5, %46
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = load i32, i32* %4
%50 = icmp sle i32 5, %49
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @color_set(i32 5, i32 255, i32 192, i32 203, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %53
53: ; preds = %51, %48, %45
%54 = load i32, i32* %3
%55 = icmp sge i32 6, %54
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = load i32, i32* %4
%58 = icmp sle i32 6, %57
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @color_set(i32 6, i32 245, i32 222, i32 179, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %61
61: ; preds = %59, %56, %53
%62 = load i32, i32* %3
%63 = icmp sge i32 7, %62
br i1 %63, label %64, label %69
64: ; preds = %61
%65 = load i32, i32* %4
%66 = icmp sle i32 7, %65
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 @color_set(i32 7, i32 190, i32 190, i32 190, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %69
69: ; preds = %67, %64, %61
%70 = load i32, i32* %3
%71 = icmp sge i32 8, %70
br i1 %71, label %72, label %77
72: ; preds = %69
%73 = load i32, i32* %4
%74 = icmp sle i32 8, %73
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @color_set(i32 8, i32 165, i32 42, i32 42, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %77
77: ; preds = %75, %72, %69
%78 = load i32, i32* %3
%79 = icmp sge i32 9, %78
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, i32* %4
%82 = icmp sle i32 9, %81
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 @color_set(i32 9, i32 0, i32 0, i32 255, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %85
85: ; preds = %83, %80, %77
%86 = load i32, i32* %3
%87 = icmp sge i32 10, %86
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32, i32* %4
%90 = icmp sle i32 10, %89
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 @color_set(i32 10, i32 138, i32 43, i32 226, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %93
93: ; preds = %91, %88, %85
%94 = load i32, i32* %3
%95 = icmp sge i32 11, %94
br i1 %95, label %96, label %101
96: ; preds = %93
%97 = load i32, i32* %4
%98 = icmp sle i32 11, %97
br i1 %98, label %99, label %101
99: ; preds = %96
%100 = call i32 @color_set(i32 11, i32 0, i32 255, i32 255, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %101
101: ; preds = %99, %96, %93
%102 = load i32, i32* %3
%103 = icmp sge i32 12, %102
br i1 %103, label %104, label %109
104: ; preds = %101
%105 = load i32, i32* %4
%106 = icmp sle i32 12, %105
br i1 %106, label %107, label %109
107: ; preds = %104
%108 = call i32 @color_set(i32 12, i32 64, i32 224, i32 208, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
br label %109
109: ; preds = %107, %104, %101
%110 = load i32, i32* %3
%111 = icmp sge i32 13, %110
br i1 %111, label %112, label %117
112: ; preds = %109
%113 = load i32, i32* %4
%114 = icmp sle i32 13, %113
br i1 %114, label %115, label %117
115: ; preds = %112
%116 = call i32 @color_set(i32 13, i32 255, i32 0, i32 255, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %117
117: ; preds = %115, %112, %109
%118 = load i32, i32* %3
%119 = icmp sge i32 14, %118
br i1 %119, label %120, label %125
120: ; preds = %117
%121 = load i32, i32* %4
%122 = icmp sle i32 14, %121
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = call i32 @color_set(i32 14, i32 250, i32 128, i32 114, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
br label %125
125: ; preds = %123, %120, %117
%126 = load i32, i32* %3
%127 = icmp sge i32 15, %126
br i1 %127, label %128, label %133
128: ; preds = %125
%129 = load i32, i32* %4
%130 = icmp sle i32 15, %129
br i1 %130, label %131, label %133
131: ; preds = %128
%132 = call i32 @color_set(i32 15, i32 255, i32 255, i32 255, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %133
133: ; preds = %131, %128, %125
store i32 16, i32* %5
br label %134
134: ; preds = %150, %133
%135 = load i32, i32* %5
%136 = load i32, i32* %4
%137 = icmp sle i32 %135, %136
br i1 %137, label %138, label %153
138: ; preds = %134
%139 = load i32, i32* %5
%140 = load i32, i32* %3
%141 = icmp sge i32 %139, %140
br i1 %141, label %142, label %149
142: ; preds = %138
%143 = load i32, i32* %5
%144 = load i32, i32* %4
%145 = icmp sle i32 %143, %144
br i1 %145, label %146, label %149
146: ; preds = %142
%147 = load i32, i32* %5
%148 = call i32 @color_set(i32 %147, i32 255, i32 0, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %149
149: ; preds = %146, %142, %138
br label %150
150: ; preds = %149
%151 = load i32, i32* %5
%152 = add nsw i32 %151, 1
store i32 %152, i32* %5
br label %134
153: ; preds = %134
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"black\00"
@.str.1 = [4 x i8] c"red\00"
@.str.2 = [7 x i8] c"yellow\00"
@.str.3 = [6 x i8] c"green\00"
@.str.4 = [11 x i8] c"aquamarine\00"
@.str.5 = [5 x i8] c"pink\00"
@.str.6 = [6 x i8] c"wheat\00"
@.str.7 = [5 x i8] c"grey\00"
@.str.8 = [6 x i8] c"brown\00"
@.str.9 = [5 x i8] c"blue\00"
@.str.10 = [11 x i8] c"BlueViolet\00"
@.str.11 = [5 x i8] c"cyan\00"
@.str.12 = [10 x i8] c"turquoise\00"
@.str.13 = [8 x i8] c"magenta\00"
@.str.14 = [7 x i8] c"salmon\00"
@.str.15 = [6 x i8] c"white\00"
define void @plcmap0_def(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 1
%4 = icmp sgt i32 %1, -1
%5 = and i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @color_set(i32 0, i32 0, i32 0, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %2
%9 = icmp slt i32 %0, 2
%10 = icmp sgt i32 %1, 0
%11 = and i1 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = tail call i32 @color_set(i32 1, i32 255, i32 0, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
%15 = icmp slt i32 %0, 3
%16 = icmp sgt i32 %1, 1
%17 = and i1 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = tail call i32 @color_set(i32 2, i32 255, i32 255, i32 0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %14
%21 = icmp slt i32 %0, 4
%22 = icmp sgt i32 %1, 2
%23 = and i1 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = tail call i32 @color_set(i32 3, i32 0, i32 255, i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
%27 = icmp slt i32 %0, 5
%28 = icmp sgt i32 %1, 3
%29 = and i1 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = tail call i32 @color_set(i32 4, i32 127, i32 255, i32 212, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
%33 = icmp slt i32 %0, 6
%34 = icmp sgt i32 %1, 4
%35 = and i1 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = tail call i32 @color_set(i32 5, i32 255, i32 192, i32 203, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %36, %32
%39 = icmp slt i32 %0, 7
%40 = icmp sgt i32 %1, 5
%41 = and i1 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @color_set(i32 6, i32 245, i32 222, i32 179, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = icmp slt i32 %0, 8
%46 = icmp sgt i32 %1, 6
%47 = and i1 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = tail call i32 @color_set(i32 7, i32 190, i32 190, i32 190, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %50
50: ; preds = %48, %44
%51 = icmp slt i32 %0, 9
%52 = icmp sgt i32 %1, 7
%53 = and i1 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = tail call i32 @color_set(i32 8, i32 165, i32 42, i32 42, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %56
56: ; preds = %54, %50
%57 = icmp slt i32 %0, 10
%58 = icmp sgt i32 %1, 8
%59 = and i1 %57, %58
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = tail call i32 @color_set(i32 9, i32 0, i32 0, i32 255, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %62
62: ; preds = %60, %56
%63 = icmp slt i32 %0, 11
%64 = icmp sgt i32 %1, 9
%65 = and i1 %63, %64
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @color_set(i32 10, i32 138, i32 43, i32 226, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %68
68: ; preds = %66, %62
%69 = icmp slt i32 %0, 12
%70 = icmp sgt i32 %1, 10
%71 = and i1 %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = tail call i32 @color_set(i32 11, i32 0, i32 255, i32 255, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %74
74: ; preds = %72, %68
%75 = icmp slt i32 %0, 13
%76 = icmp sgt i32 %1, 11
%77 = and i1 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = tail call i32 @color_set(i32 12, i32 64, i32 224, i32 208, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
br label %80
80: ; preds = %78, %74
%81 = icmp slt i32 %0, 14
%82 = icmp sgt i32 %1, 12
%83 = and i1 %81, %82
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = tail call i32 @color_set(i32 13, i32 255, i32 0, i32 255, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %86
86: ; preds = %84, %80
%87 = icmp slt i32 %0, 15
%88 = icmp sgt i32 %1, 13
%89 = and i1 %87, %88
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = tail call i32 @color_set(i32 14, i32 250, i32 128, i32 114, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = icmp slt i32 %0, 16
%94 = icmp sgt i32 %1, 14
%95 = and i1 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = tail call i32 @color_set(i32 15, i32 255, i32 255, i32 255, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %98
98: ; preds = %96, %92
%99 = icmp slt i32 %1, 16
br i1 %99, label %108, label %100
100: ; preds = %98, %105
%101 = phi i32 [ %106, %105 ], [ 16, %98 ]
%102 = icmp slt i32 %101, %0
br i1 %102, label %105, label %103
103: ; preds = %100
%104 = tail call i32 @color_set(i32 %101, i32 255, i32 0, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %105
105: ; preds = %100, %103
%106 = add nuw i32 %101, 1
%107 = icmp eq i32 %101, %1
br i1 %107, label %108, label %100
108: ; preds = %105, %98
ret void
}