#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*/ number_range(int, int);
const char *random_ansi(short type) {
  switch (type) {
  default:
  case 1:
    switch (number_range(1, 15)) {
    case 1:
      return ("\033[0;31m");
    case 2:
      return ("\033[0;32m");
    case 3:
      return ("\033[0;33m");
    case 4:
      return ("\033[0;34m");
    case 5:
      return ("\033[0;35m");
    case 6:
      return ("\033[0;36m");
    case 7:
      return ("\033[0;37m");
    case 8:
      return ("\033[1;30m");
    case 9:
      return ("\033[1;31m");
    case 10:
      return ("\033[1;32m");
    case 11:
      return ("\033[1;33m");
    case 12:
      return ("\033[1;34m");
    case 13:
      return ("\033[1;35m");
    case 14:
      return ("\033[1;36m");
    case 15:
      return ("\033[1;37m");
    default:
      return ("\033[0m");
    }
  case 2:
    switch (number_range(1, 14)) {
    case 1:
      return ("\033[0;5;32m");
    case 2:
      return ("\033[0;5;33m");
    case 3:
      return ("\033[0;5;34m");
    case 4:
      return ("\033[0;5;35m");
    case 5:
      return ("\033[0;5;36m");
    case 6:
      return ("\033[0;5;37m");
    case 7:
      return ("\033[1;5;30m");
    case 8:
      return ("\033[1;5;31m");
    case 9:
      return ("\033[1;5;32m");
    case 10:
      return ("\033[1;5;33m");
    case 11:
      return ("\033[1;5;34m");
    case 12:
      return ("\033[1;5;35m");
    case 13:
      return ("\033[1;5;36m");
    default:
    case 14:
      return ("\033[1;5;37m");
    }
  case 3:
    switch (number_range(1, 15)) {
    case 1:
      return ("\033[41m");
    case 2:
      return ("\033[42m");
    case 3:
      return ("\033[43m");
    case 4:
      return ("\033[44m");
    case 5:
      return ("\033[45m");
    case 6:
      return ("\033[46m");
    case 7:
      return ("\033[47m");
    case 8:
      return ("\033[50m");
    case 9:
      return ("\033[51m");
    case 10:
      return ("\033[52m");
    case 11:
      return ("\033[53m");
    case 12:
      return ("\033[54m");
    case 13:
      return ("\033[55m");
    case 14:
      return ("\033[56m");
    default:
    case 15:
      return ("\033[57m");
    }
  }
}


x86 assembly (clang, -O0):
<random_ansi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %di,%ax
mov    %ax,-0xa(%rbp)
movswl -0xa(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1,%eax
je     115b <random_ansi+0x4b>
jmp    1134 <random_ansi+0x24>
mov    -0x10(%rbp),%eax
sub    $0x2,%eax
je     1290 <random_ansi+0x180>
jmp    1145 <random_ansi+0x35>
mov    -0x10(%rbp),%eax
sub    $0x3,%eax
je     13aa <random_ansi+0x29a>
jmp    1156 <random_ansi+0x46>
jmp    115b <random_ansi+0x4b>
mov    $0x1,%edi
mov    $0xf,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0xe,%eax
ja     1280 <random_ansi+0x170>
mov    -0x18(%rbp),%rax
lea    0xeed(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xf11(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xf09(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xf01(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xef9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xef1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xee9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xed9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xec9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xec1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xeb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xeb1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xea9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xea1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
mov    $0x1,%edi
mov    $0xe,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0xd,%eax
ja     1395 <random_ansi+0x285>
mov    -0x20(%rbp),%rax
lea    0xd80(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe61(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe5b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe4f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe49(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe43(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe3d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe37(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe31(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe2b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe25(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe1f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xe19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
jmp    139a <random_ansi+0x28a>
lea    0xe0e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
mov    $0x1,%edi
mov    $0xf,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0xe,%eax
ja     14bf <random_ansi+0x3af>
mov    -0x28(%rbp),%rax
lea    0xc2a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xdd3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xdc9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xdbf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xdb5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xdab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xda1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd97(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd8d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd83(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd79(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd6f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd65(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd5b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
lea    0xd51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cf <random_ansi+0x3bf>
jmp    14c4 <random_ansi+0x3b4>
lea    0xd42(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_ansi>:
push   %rax
cmp    $0x2,%edi
je     113d <random_ansi+0x2d>
cmp    $0x3,%edi
jne    115f <random_ansi+0x4f>
mov    $0x1,%edi
mov    $0xf,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
cmp    $0xe,%eax
jae    1188 <random_ansi+0x78>
cltq
lea    0x2c75(%rip),%rcx
jmp    117f <random_ansi+0x6f>
mov    $0x1,%edi
mov    $0xe,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
cmp    $0xd,%eax
jae    1191 <random_ansi+0x81>
cltq
lea    0x2beb(%rip),%rcx
jmp    117f <random_ansi+0x6f>
mov    $0x1,%edi
mov    $0xf,%esi
call   1030 <number_range@plt>
add    $0xffffffff,%eax
cmp    $0xf,%eax
jae    119a <random_ansi+0x8a>
cltq
lea    0x2b51(%rip),%rcx
lea    (%rcx,%rax,8),%rax
mov    (%rax),%rax
pop    %rcx
ret
lea    0xfce(%rip),%rax
pop    %rcx
ret
lea    0xf67(%rip),%rax
pop    %rcx
ret
lea    0xed7(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"\1B[0;31m\00"
@.str.1 = [8 x i8] c"\1B[0;32m\00"
@.str.2 = [8 x i8] c"\1B[0;33m\00"
@.str.3 = [8 x i8] c"\1B[0;34m\00"
@.str.4 = [8 x i8] c"\1B[0;35m\00"
@.str.5 = [8 x i8] c"\1B[0;36m\00"
@.str.6 = [8 x i8] c"\1B[0;37m\00"
@.str.7 = [8 x i8] c"\1B[1;30m\00"
@.str.8 = [8 x i8] c"\1B[1;31m\00"
@.str.9 = [8 x i8] c"\1B[1;32m\00"
@.str.10 = [8 x i8] c"\1B[1;33m\00"
@.str.11 = [8 x i8] c"\1B[1;34m\00"
@.str.12 = [8 x i8] c"\1B[1;35m\00"
@.str.13 = [8 x i8] c"\1B[1;36m\00"
@.str.14 = [8 x i8] c"\1B[1;37m\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
@.str.16 = [10 x i8] c"\1B[0;5;32m\00"
@.str.17 = [10 x i8] c"\1B[0;5;33m\00"
@.str.18 = [10 x i8] c"\1B[0;5;34m\00"
@.str.19 = [10 x i8] c"\1B[0;5;35m\00"
@.str.20 = [10 x i8] c"\1B[0;5;36m\00"
@.str.21 = [10 x i8] c"\1B[0;5;37m\00"
@.str.22 = [10 x i8] c"\1B[1;5;30m\00"
@.str.23 = [10 x i8] c"\1B[1;5;31m\00"
@.str.24 = [10 x i8] c"\1B[1;5;32m\00"
@.str.25 = [10 x i8] c"\1B[1;5;33m\00"
@.str.26 = [10 x i8] c"\1B[1;5;34m\00"
@.str.27 = [10 x i8] c"\1B[1;5;35m\00"
@.str.28 = [10 x i8] c"\1B[1;5;36m\00"
@.str.29 = [10 x i8] c"\1B[1;5;37m\00"
@.str.30 = [6 x i8] c"\1B[41m\00"
@.str.31 = [6 x i8] c"\1B[42m\00"
@.str.32 = [6 x i8] c"\1B[43m\00"
@.str.33 = [6 x i8] c"\1B[44m\00"
@.str.34 = [6 x i8] c"\1B[45m\00"
@.str.35 = [6 x i8] c"\1B[46m\00"
@.str.36 = [6 x i8] c"\1B[47m\00"
@.str.37 = [6 x i8] c"\1B[50m\00"
@.str.38 = [6 x i8] c"\1B[51m\00"
@.str.39 = [6 x i8] c"\1B[52m\00"
@.str.40 = [6 x i8] c"\1B[53m\00"
@.str.41 = [6 x i8] c"\1B[54m\00"
@.str.42 = [6 x i8] c"\1B[55m\00"
@.str.43 = [6 x i8] c"\1B[56m\00"
@.str.44 = [6 x i8] c"\1B[57m\00"
define i8* @random_ansi(i16 signext %0) {
%2 = alloca i8*
%3 = alloca i16
store i16 %0, i16* %3
%4 = load i16, i16* %3
%5 = sext i16 %4 to i32
switch i32 %5, label %6 [
i32 1, label %7
i32 2, label %25
i32 3, label %42
]
6: ; preds = %1
br label %7
7: ; preds = %1, %6
%8 = call i32 @number_range(i32 1, i32 15)
switch i32 %8, label %24 [
i32 1, label %9
i32 2, label %10
i32 3, label %11
i32 4, label %12
i32 5, label %13
i32 6, label %14
i32 7, label %15
i32 8, label %16
i32 9, label %17
i32 10, label %18
i32 11, label %19
i32 12, label %20
i32 13, label %21
i32 14, label %22
i32 15, label %23
]
9: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %2
br label %60
10: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %60
11: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %60
12: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %60
13: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %60
14: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %60
15: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %60
16: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %60
17: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %60
18: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %60
19: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %60
20: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %60
21: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %60
22: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %60
23: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %60
24: ; preds = %7
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %60
25: ; preds = %1
%26 = call i32 @number_range(i32 1, i32 14)
switch i32 %26, label %40 [
i32 1, label %27
i32 2, label %28
i32 3, label %29
i32 4, label %30
i32 5, label %31
i32 6, label %32
i32 7, label %33
i32 8, label %34
i32 9, label %35
i32 10, label %36
i32 11, label %37
i32 12, label %38
i32 13, label %39
i32 14, label %41
]
27: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %60
28: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %60
29: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %60
30: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %60
31: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %60
32: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %60
33: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %60
34: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %60
35: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %60
36: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %60
37: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %60
38: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %60
39: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %60
40: ; preds = %25
br label %41
41: ; preds = %25, %40
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %60
42: ; preds = %1
%43 = call i32 @number_range(i32 1, i32 15)
switch i32 %43, label %58 [
i32 1, label %44
i32 2, label %45
i32 3, label %46
i32 4, label %47
i32 5, label %48
i32 6, label %49
i32 7, label %50
i32 8, label %51
i32 9, label %52
i32 10, label %53
i32 11, label %54
i32 12, label %55
i32 13, label %56
i32 14, label %57
i32 15, label %59
]
44: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %60
45: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %60
46: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %60
47: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %60
48: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %60
49: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %60
50: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %60
51: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %60
52: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %60
53: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %60
54: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %60
55: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %60
56: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %60
57: ; preds = %42
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %60
58: ; preds = %42
br label %59
59: ; preds = %42, %58
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %60
60: ; preds = %59, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %41, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9
%61 = load i8*, i8** %2
ret i8* %61
}

LLVM IR (-O2):
@.str = [8 x i8] c"\1B[0;31m\00"
@.str.1 = [8 x i8] c"\1B[0;32m\00"
@.str.2 = [8 x i8] c"\1B[0;33m\00"
@.str.3 = [8 x i8] c"\1B[0;34m\00"
@.str.4 = [8 x i8] c"\1B[0;35m\00"
@.str.5 = [8 x i8] c"\1B[0;36m\00"
@.str.6 = [8 x i8] c"\1B[0;37m\00"
@.str.7 = [8 x i8] c"\1B[1;30m\00"
@.str.8 = [8 x i8] c"\1B[1;31m\00"
@.str.9 = [8 x i8] c"\1B[1;32m\00"
@.str.10 = [8 x i8] c"\1B[1;33m\00"
@.str.11 = [8 x i8] c"\1B[1;34m\00"
@.str.12 = [8 x i8] c"\1B[1;35m\00"
@.str.13 = [8 x i8] c"\1B[1;36m\00"
@.str.14 = [8 x i8] c"\1B[1;37m\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
@.str.16 = [10 x i8] c"\1B[0;5;32m\00"
@.str.17 = [10 x i8] c"\1B[0;5;33m\00"
@.str.18 = [10 x i8] c"\1B[0;5;34m\00"
@.str.19 = [10 x i8] c"\1B[0;5;35m\00"
@.str.20 = [10 x i8] c"\1B[0;5;36m\00"
@.str.21 = [10 x i8] c"\1B[0;5;37m\00"
@.str.22 = [10 x i8] c"\1B[1;5;30m\00"
@.str.23 = [10 x i8] c"\1B[1;5;31m\00"
@.str.24 = [10 x i8] c"\1B[1;5;32m\00"
@.str.25 = [10 x i8] c"\1B[1;5;33m\00"
@.str.26 = [10 x i8] c"\1B[1;5;34m\00"
@.str.27 = [10 x i8] c"\1B[1;5;35m\00"
@.str.28 = [10 x i8] c"\1B[1;5;36m\00"
@.str.29 = [10 x i8] c"\1B[1;5;37m\00"
@.str.30 = [6 x i8] c"\1B[41m\00"
@.str.31 = [6 x i8] c"\1B[42m\00"
@.str.32 = [6 x i8] c"\1B[43m\00"
@.str.33 = [6 x i8] c"\1B[44m\00"
@.str.34 = [6 x i8] c"\1B[45m\00"
@.str.35 = [6 x i8] c"\1B[46m\00"
@.str.36 = [6 x i8] c"\1B[47m\00"
@.str.37 = [6 x i8] c"\1B[50m\00"
@.str.38 = [6 x i8] c"\1B[51m\00"
@.str.39 = [6 x i8] c"\1B[52m\00"
@.str.40 = [6 x i8] c"\1B[53m\00"
@.str.41 = [6 x i8] c"\1B[54m\00"
@.str.42 = [6 x i8] c"\1B[55m\00"
@.str.43 = [6 x i8] c"\1B[56m\00"
@.str.44 = [6 x i8] c"\1B[57m\00"
@switch.table.random_ansi = [15 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), 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.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0)]
@switch.table.random_ansi.45 = [13 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0)]
@switch.table.random_ansi.46 = [14 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.35, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.38, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.40, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.41, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.42, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.43, i64 0, i64 0)]
define i8* @random_ansi(i16 signext %0) {
%2 = sext i16 %0 to i32
switch i32 %2, label %3 [
i32 3, label %11
i32 2, label %7
]
3: ; preds = %1
%4 = tail call i32 @number_range(i32 1, i32 15)
%5 = add i32 %4, -1
%6 = icmp ult i32 %5, 15
br i1 %6, label %15, label %27
7: ; preds = %1
%8 = tail call i32 @number_range(i32 1, i32 14)
%9 = add i32 %8, -1
%10 = icmp ult i32 %9, 13
br i1 %10, label %18, label %27
11: ; preds = %1
%12 = tail call i32 @number_range(i32 1, i32 15)
%13 = add i32 %12, -1
%14 = icmp ult i32 %13, 14
br i1 %14, label %21, label %27
15: ; preds = %3
%16 = sext i32 %5 to i64
%17 = getelementptr inbounds [15 x i8*], [15 x i8*]* @switch.table.random_ansi, i64 0, i64 %16
br label %24
18: ; preds = %7
%19 = sext i32 %9 to i64
%20 = getelementptr inbounds [13 x i8*], [13 x i8*]* @switch.table.random_ansi.45, i64 0, i64 %19
br label %24
21: ; preds = %11
%22 = sext i32 %13 to i64
%23 = getelementptr inbounds [14 x i8*], [14 x i8*]* @switch.table.random_ansi.46, i64 0, i64 %22
br label %24
24: ; preds = %15, %18, %21
%25 = phi i8** [ %23, %21 ], [ %20, %18 ], [ %17, %15 ]
%26 = load i8*, i8** %25
br label %27
27: ; preds = %24, %11, %7, %3
%28 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), %3 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), %7 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0), %11 ], [ %26, %24 ]
ret i8* %28
}