#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*/ EXIT_FAILURE;
unsigned int d(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, unsigned int);
char *randwizard2lvl(void) {
  unsigned roll;
  roll = d(35);
  switch (roll) {
  case 1:
    return ("Alter Self");
  case 2:
    return ("Arcand Lock");
  case 3:
    return ("Blindness");
  case 4:
    return ("Deafness");
  case 5:
    return ("Blur");
  case 6:
    return ("Cloud of Daggers");
  case 7:
    return ("Continual Flame");
  case 8:
    return ("Crown of Madness");
  case 9:
    return ("Darkness");
  case 10:
    return ("Darkvision");
  case 11:
    return ("Detect Thoughts");
  case 12:
    return ("Enlarge or Reduce");
  case 13:
    return ("Flaming Sphere");
  case 14:
    return ("Gentle Repose");
  case 15:
    return ("Gust of Wind");
  case 16:
    return ("Hold Person");
  case 17:
    return ("Invisibility");
  case 18:
    return ("Knock");
  case 19:
    return ("Levitate");
  case 20:
    return ("Locate Object");
  case 21:
    return ("Magic Mouth");
  case 22:
    return ("Magic Weapon");
  case 23:
    return ("Melf's Acid Arrow");
  case 24:
    return ("Mirror Image");
  case 25:
    return ("Misty Step");
  case 26:
    return ("Nystul's Magic Aura");
  case 27:
    return ("Phantasmal Force");
  case 28:
    return ("Ray of Enfeeblement");
  case 29:
    return ("Rope Trick");
  case 30:
    return ("Scorching Ray");
  case 31:
    return ("See Invisibility");
  case 32:
    return ("Shatter");
  case 33:
    return ("Spider Climb");
  case 34:
    return ("Suggestion");
  case 35:
    return ("Web");
  default:
    printf("Impossible random level 2 wizard spell %d\n", roll);
    exit(EXIT_FAILURE);
  }
  return "";
}


x86 assembly (clang, -O0):
<randwizard2lvl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x23,%edi
call   1030 <d@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x22,%eax
ja     139e <randwizard2lvl+0x26e>
mov    -0x18(%rbp),%rax
lea    0xe9b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf17(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xf12(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xf0e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xf08(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xf01(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xef6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xef7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xef7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xef8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xef1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeec(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeec(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeee(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeed(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xee8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xf9a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xed4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xec3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xec1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeba(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xebc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xebd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeaf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xeac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
lea    0xea7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13bb <randwizard2lvl+0x28b>
mov    -0xc(%rbp),%esi
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<randwizard2lvl>:
push   %rax
mov    $0x23,%edi
call   1030 <d@plt>
lea    -0x1(%rax),%ecx
cmp    $0x23,%ecx
jae    1156 <randwizard2lvl+0x26>
movslq %ecx,%rax
lea    0x1093(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
pop    %rcx
ret
lea    0x1057(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Alter Self\00"
@.str.1 = [12 x i8] c"Arcand Lock\00"
@.str.2 = [10 x i8] c"Blindness\00"
@.str.3 = [9 x i8] c"Deafness\00"
@.str.4 = [5 x i8] c"Blur\00"
@.str.5 = [17 x i8] c"Cloud of Daggers\00"
@.str.6 = [16 x i8] c"Continual Flame\00"
@.str.7 = [17 x i8] c"Crown of Madness\00"
@.str.8 = [9 x i8] c"Darkness\00"
@.str.9 = [11 x i8] c"Darkvision\00"
@.str.10 = [16 x i8] c"Detect Thoughts\00"
@.str.11 = [18 x i8] c"Enlarge or Reduce\00"
@.str.12 = [15 x i8] c"Flaming Sphere\00"
@.str.13 = [14 x i8] c"Gentle Repose\00"
@.str.14 = [13 x i8] c"Gust of Wind\00"
@.str.15 = [12 x i8] c"Hold Person\00"
@.str.16 = [13 x i8] c"Invisibility\00"
@.str.17 = [6 x i8] c"Knock\00"
@.str.18 = [9 x i8] c"Levitate\00"
@.str.19 = [14 x i8] c"Locate Object\00"
@.str.20 = [12 x i8] c"Magic Mouth\00"
@.str.21 = [13 x i8] c"Magic Weapon\00"
@.str.22 = [18 x i8] c"Melf's Acid Arrow\00"
@.str.23 = [13 x i8] c"Mirror Image\00"
@.str.24 = [11 x i8] c"Misty Step\00"
@.str.25 = [20 x i8] c"Nystul's Magic Aura\00"
@.str.26 = [17 x i8] c"Phantasmal Force\00"
@.str.27 = [20 x i8] c"Ray of Enfeeblement\00"
@.str.28 = [11 x i8] c"Rope Trick\00"
@.str.29 = [14 x i8] c"Scorching Ray\00"
@.str.30 = [17 x i8] c"See Invisibility\00"
@.str.31 = [8 x i8] c"Shatter\00"
@.str.32 = [13 x i8] c"Spider Climb\00"
@.str.33 = [11 x i8] c"Suggestion\00"
@.str.34 = [4 x i8] c"Web\00"
@.str.35 = [43 x i8] c"Impossible random level 2 wizard spell %d\0A\00"
@EXIT_FAILURE = global i32 0
define i8* @randwizard2lvl() {
%1 = alloca i8*
%2 = alloca i32
%3 = call i32 @d(i32 35)
store i32 %3, i32* %2
%4 = load i32, i32* %2
switch i32 %4, label %40 [
i32 1, label %5
i32 2, label %6
i32 3, label %7
i32 4, label %8
i32 5, label %9
i32 6, label %10
i32 7, label %11
i32 8, label %12
i32 9, label %13
i32 10, label %14
i32 11, label %15
i32 12, label %16
i32 13, label %17
i32 14, label %18
i32 15, label %19
i32 16, label %20
i32 17, label %21
i32 18, label %22
i32 19, label %23
i32 20, label %24
i32 21, label %25
i32 22, label %26
i32 23, label %27
i32 24, label %28
i32 25, label %29
i32 26, label %30
i32 27, label %31
i32 28, label %32
i32 29, label %33
i32 30, label %34
i32 31, label %35
i32 32, label %36
i32 33, label %37
i32 34, label %38
i32 35, label %39
]
5: ; preds = %0
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %1
br label %45
6: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8** %1
br label %45
7: ; preds = %0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %1
br label %45
8: ; preds = %0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %1
br label %45
9: ; preds = %0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %1
br label %45
10: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8** %1
br label %45
11: ; preds = %0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8** %1
br label %45
12: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8** %1
br label %45
13: ; preds = %0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8** %1
br label %45
14: ; preds = %0
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8** %1
br label %45
15: ; preds = %0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8** %1
br label %45
16: ; preds = %0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8** %1
br label %45
17: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8** %1
br label %45
18: ; preds = %0
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8** %1
br label %45
19: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8** %1
br label %45
20: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i8** %1
br label %45
21: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8** %1
br label %45
22: ; preds = %0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8** %1
br label %45
23: ; preds = %0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8** %1
br label %45
24: ; preds = %0
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8** %1
br label %45
25: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i8** %1
br label %45
26: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i8** %1
br label %45
27: ; preds = %0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i8** %1
br label %45
28: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.23, i64 0, i64 0), i8** %1
br label %45
29: ; preds = %0
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8** %1
br label %45
30: ; preds = %0
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0), i8** %1
br label %45
31: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0), i8** %1
br label %45
32: ; preds = %0
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.27, i64 0, i64 0), i8** %1
br label %45
33: ; preds = %0
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0), i8** %1
br label %45
34: ; preds = %0
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.29, i64 0, i64 0), i8** %1
br label %45
35: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.30, i64 0, i64 0), i8** %1
br label %45
36: ; preds = %0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), i8** %1
br label %45
37: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0), i8** %1
br label %45
38: ; preds = %0
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8** %1
br label %45
39: ; preds = %0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i64 0, i64 0), i8** %1
br label %45
40: ; preds = %0
%41 = load i32, i32* %2
%42 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.35, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %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, %5
%46 = load i8*, i8** %1
ret i8* %46
}

LLVM IR (-O2):
@.str = [11 x i8] c"Alter Self\00"
@.str.1 = [12 x i8] c"Arcand Lock\00"
@.str.2 = [10 x i8] c"Blindness\00"
@.str.3 = [9 x i8] c"Deafness\00"
@.str.4 = [5 x i8] c"Blur\00"
@.str.5 = [17 x i8] c"Cloud of Daggers\00"
@.str.6 = [16 x i8] c"Continual Flame\00"
@.str.7 = [17 x i8] c"Crown of Madness\00"
@.str.8 = [9 x i8] c"Darkness\00"
@.str.9 = [11 x i8] c"Darkvision\00"
@.str.10 = [16 x i8] c"Detect Thoughts\00"
@.str.11 = [18 x i8] c"Enlarge or Reduce\00"
@.str.12 = [15 x i8] c"Flaming Sphere\00"
@.str.13 = [14 x i8] c"Gentle Repose\00"
@.str.14 = [13 x i8] c"Gust of Wind\00"
@.str.15 = [12 x i8] c"Hold Person\00"
@.str.16 = [13 x i8] c"Invisibility\00"
@.str.17 = [6 x i8] c"Knock\00"
@.str.18 = [9 x i8] c"Levitate\00"
@.str.19 = [14 x i8] c"Locate Object\00"
@.str.20 = [12 x i8] c"Magic Mouth\00"
@.str.21 = [13 x i8] c"Magic Weapon\00"
@.str.22 = [18 x i8] c"Melf's Acid Arrow\00"
@.str.23 = [13 x i8] c"Mirror Image\00"
@.str.24 = [11 x i8] c"Misty Step\00"
@.str.25 = [20 x i8] c"Nystul's Magic Aura\00"
@.str.26 = [17 x i8] c"Phantasmal Force\00"
@.str.27 = [20 x i8] c"Ray of Enfeeblement\00"
@.str.28 = [11 x i8] c"Rope Trick\00"
@.str.29 = [14 x i8] c"Scorching Ray\00"
@.str.30 = [17 x i8] c"See Invisibility\00"
@.str.31 = [8 x i8] c"Shatter\00"
@.str.32 = [13 x i8] c"Spider Climb\00"
@.str.33 = [11 x i8] c"Suggestion\00"
@.str.34 = [4 x i8] c"Web\00"
@.str.35 = [43 x i8] c"Impossible random level 2 wizard spell %d\0A\00"
@EXIT_FAILURE = global i32 0
@reltable.randwizard2lvl = [35 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.1 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.2 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.3 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.4 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.5 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.6 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.7 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.8 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.9 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.10 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.11 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.12 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.13 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.14 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.15 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.16 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.17 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.18 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.19 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.20 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.21 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.22 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.23 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.24 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.25 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.26 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.27 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.28 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.29 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.30 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.31 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.32 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.33 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.34 to i64), i64 ptrtoint ([35 x i32]* @reltable.randwizard2lvl to i64)) to i32)]
define i8* @randwizard2lvl() {
%1 = tail call i32 @d(i32 35)
%2 = add i32 %1, -1
%3 = icmp ult i32 %2, 35
br i1 %3, label %8, label %4
4: ; preds = %0
%5 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.35, i64 0, i64 0), i32 %1)
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %0
%9 = sext i32 %2 to i64
%10 = shl i64 %9, 2
%11 = call i8* @llvm.load.relative.i64(i8* bitcast ([35 x i32]* @reltable.randwizard2lvl to i8*), i64 %10)
ret i8* %11
}