#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 random_num(int);
char random_char(int value) {
  char *c;
  switch (random_num(value)) {
  case 1:
    c = "q";
    break;
  case 2:
    c = "w";
    break;
  case 3:
    c = "e";
    break;
  case 4:
    c = "r";
    break;
  case 5:
    c = "t";
    break;
  case 6:
    c = "y";
    break;
  case 7:
    c = "u";
    break;
  case 8:
    c = "i";
    break;
  case 9:
    c = "o";
    break;
  case 10:
    c = "p";
    break;
  case 11:
    c = "a";
    break;
  case 12:
    c = "s";
    break;
  case 13:
    c = "d";
    break;
  case 14:
    c = "f";
    break;
  case 15:
    c = "g";
    break;
  case 16:
    c = "h";
    break;
  case 17:
    c = "j";
    break;
  case 18:
    c = "k";
    break;
  case 19:
    c = "l";
    break;
  case 20:
    c = "z";
    break;
  case 21:
    c = "x";
    break;
  case 22:
    c = "c";
    break;
  case 23:
    c = "v";
    break;
  case 24:
    c = "b";
    break;
  case 25:
    c = "n";
    break;
  case 26:
    c = "m";
    break;
  case 27:
    c = "0";
    break;
  case 28:
    c = "1";
    break;
  case 29:
    c = "2";
    break;
  case 30:
    c = "3";
    break;
  case 31:
    c = "4";
    break;
  case 32:
    c = "5";
    break;
  case 33:
    c = "6";
    break;
  case 34:
    c = "7";
    break;
  case 35:
    c = "8";
    break;
  case 36:
    c = "9";
    break;
  }
  return *c;
}


x86 assembly (clang, -O0):
<random_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <random_num@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x23,%eax
ja     1384 <random_char+0x274>
mov    -0x18(%rbp),%rax
lea    0xec0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf40(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xf32(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xf24(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xf16(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xf08(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xefa(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xeec(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xede(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xed0(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xec2(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xeb4(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xea6(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe98(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe8a(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe7c(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe6e(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe60(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe52(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe44(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe36(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe28(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe1a(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xe0c(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdfe(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdf0(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xde2(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdd4(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdc6(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdb8(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xdaa(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd9c(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd8e(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd80(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd72(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd64(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1384 <random_char+0x274>
lea    0xd56(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_char>:
push   %rax
call   1030 <random_num@plt>
add    $0xfffffffe,%eax
cmp    $0x22,%eax
ja     1130 <random_char+0x20>
cltq
lea    0xf21(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    1137 <random_char+0x27>
lea    0xec9(%rip),%rax
mov    (%rax),%al
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"q\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"e\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [2 x i8] c"t\00"
@.str.5 = [2 x i8] c"y\00"
@.str.6 = [2 x i8] c"u\00"
@.str.7 = [2 x i8] c"i\00"
@.str.8 = [2 x i8] c"o\00"
@.str.9 = [2 x i8] c"p\00"
@.str.10 = [2 x i8] c"a\00"
@.str.11 = [2 x i8] c"s\00"
@.str.12 = [2 x i8] c"d\00"
@.str.13 = [2 x i8] c"f\00"
@.str.14 = [2 x i8] c"g\00"
@.str.15 = [2 x i8] c"h\00"
@.str.16 = [2 x i8] c"j\00"
@.str.17 = [2 x i8] c"k\00"
@.str.18 = [2 x i8] c"l\00"
@.str.19 = [2 x i8] c"z\00"
@.str.20 = [2 x i8] c"x\00"
@.str.21 = [2 x i8] c"c\00"
@.str.22 = [2 x i8] c"v\00"
@.str.23 = [2 x i8] c"b\00"
@.str.24 = [2 x i8] c"n\00"
@.str.25 = [2 x i8] c"m\00"
@.str.26 = [2 x i8] c"0\00"
@.str.27 = [2 x i8] c"1\00"
@.str.28 = [2 x i8] c"2\00"
@.str.29 = [2 x i8] c"3\00"
@.str.30 = [2 x i8] c"4\00"
@.str.31 = [2 x i8] c"5\00"
@.str.32 = [2 x i8] c"6\00"
@.str.33 = [2 x i8] c"7\00"
@.str.34 = [2 x i8] c"8\00"
@.str.35 = [2 x i8] c"9\00"
define signext i8 @random_char(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @random_num(i32 %4)
switch i32 %5, label %42 [
i32 1, label %6
i32 2, label %7
i32 3, label %8
i32 4, label %9
i32 5, label %10
i32 6, label %11
i32 7, label %12
i32 8, label %13
i32 9, label %14
i32 10, label %15
i32 11, label %16
i32 12, label %17
i32 13, label %18
i32 14, label %19
i32 15, label %20
i32 16, label %21
i32 17, label %22
i32 18, label %23
i32 19, label %24
i32 20, label %25
i32 21, label %26
i32 22, label %27
i32 23, label %28
i32 24, label %29
i32 25, label %30
i32 26, label %31
i32 27, label %32
i32 28, label %33
i32 29, label %34
i32 30, label %35
i32 31, label %36
i32 32, label %37
i32 33, label %38
i32 34, label %39
i32 35, label %40
i32 36, label %41
]
6: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3
br label %42
7: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %42
8: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %3
br label %42
9: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %3
br label %42
10: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %3
br label %42
11: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %3
br label %42
12: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8** %3
br label %42
13: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %3
br label %42
14: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8** %3
br label %42
15: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8** %3
br label %42
16: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i8** %3
br label %42
17: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8** %3
br label %42
18: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8** %3
br label %42
19: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8** %3
br label %42
20: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8** %3
br label %42
21: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8** %3
br label %42
22: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i8** %3
br label %42
23: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8** %3
br label %42
24: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i8** %3
br label %42
25: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8** %3
br label %42
26: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8** %3
br label %42
27: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8** %3
br label %42
28: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i8** %3
br label %42
29: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8** %3
br label %42
30: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0), i8** %3
br label %42
31: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8** %3
br label %42
32: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0), i8** %3
br label %42
33: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0), i8** %3
br label %42
34: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0), i8** %3
br label %42
35: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i64 0, i64 0), i8** %3
br label %42
36: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0), i8** %3
br label %42
37: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0), i8** %3
br label %42
38: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i64 0, i64 0), i8** %3
br label %42
39: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i64 0, i64 0), i8** %3
br label %42
40: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i64 0, i64 0), i8** %3
br label %42
41: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.35, i64 0, i64 0), i8** %3
br label %42
42: ; preds = %1, %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, %13, %12, %11, %10, %9, %8, %7, %6
%43 = load i8*, i8** %3
%44 = load i8, i8* %43
ret i8 %44
}

LLVM IR (-O2):
@.str = [2 x i8] c"q\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [2 x i8] c"e\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [2 x i8] c"t\00"
@.str.5 = [2 x i8] c"y\00"
@.str.6 = [2 x i8] c"u\00"
@.str.7 = [2 x i8] c"i\00"
@.str.8 = [2 x i8] c"o\00"
@.str.9 = [2 x i8] c"p\00"
@.str.10 = [2 x i8] c"a\00"
@.str.11 = [2 x i8] c"s\00"
@.str.12 = [2 x i8] c"d\00"
@.str.13 = [2 x i8] c"f\00"
@.str.14 = [2 x i8] c"g\00"
@.str.15 = [2 x i8] c"h\00"
@.str.16 = [2 x i8] c"j\00"
@.str.17 = [2 x i8] c"k\00"
@.str.18 = [2 x i8] c"l\00"
@.str.19 = [2 x i8] c"z\00"
@.str.20 = [2 x i8] c"x\00"
@.str.21 = [2 x i8] c"c\00"
@.str.22 = [2 x i8] c"v\00"
@.str.23 = [2 x i8] c"b\00"
@.str.24 = [2 x i8] c"n\00"
@.str.25 = [2 x i8] c"m\00"
@.str.26 = [2 x i8] c"0\00"
@.str.27 = [2 x i8] c"1\00"
@.str.28 = [2 x i8] c"2\00"
@.str.29 = [2 x i8] c"3\00"
@.str.30 = [2 x i8] c"4\00"
@.str.31 = [2 x i8] c"5\00"
@.str.32 = [2 x i8] c"6\00"
@.str.33 = [2 x i8] c"7\00"
@.str.34 = [2 x i8] c"8\00"
@.str.35 = [2 x i8] c"9\00"
@reltable.random_char = [35 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.1 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.2 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.3 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.4 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.5 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.6 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.7 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.8 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.9 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.10 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.11 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.12 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.13 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.14 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.16 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.17 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.18 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.19 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.20 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.21 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.22 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.23 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.24 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.25 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.26 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.27 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.28 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.29 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.30 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.31 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.32 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.33 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.34 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.35 to i64), i64 ptrtoint ([35 x i32]* @reltable.random_char to i64)) to i32)]
define signext i8 @random_char(i32 %0) {
%2 = tail call i32 @random_num(i32 %0)
%3 = add i32 %2, -2
%4 = icmp ult i32 %3, 35
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = sext i32 %3 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([35 x i32]* @reltable.random_char to i8*), i64 %7)
br label %9
9: ; preds = %5, %1
%10 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %1 ], [ %8, %5 ]
%11 = load i8, i8* %10
ret i8 %11
}