#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 */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ KVM_EXIT_DCR;
scalar_t__ KVM_EXIT_DEBUG;
scalar_t__ KVM_EXIT_EXCEPTION;
scalar_t__ KVM_EXIT_FAIL_ENTRY;
scalar_t__ KVM_EXIT_HLT;
scalar_t__ KVM_EXIT_HYPERCALL;
scalar_t__ KVM_EXIT_INTERNAL_ERROR;
scalar_t__ KVM_EXIT_INTR;
scalar_t__ KVM_EXIT_IO;
scalar_t__ KVM_EXIT_IRQ_WINDOW_OPEN;
scalar_t__ KVM_EXIT_MMIO;
scalar_t__ KVM_EXIT_NMI;
scalar_t__ KVM_EXIT_OSI;
scalar_t__ KVM_EXIT_PAPR_HCALL;
scalar_t__ KVM_EXIT_S390_RESET;
scalar_t__ KVM_EXIT_S390_SIEIC;
scalar_t__ KVM_EXIT_SET_TPR;
scalar_t__ KVM_EXIT_SHUTDOWN;
scalar_t__ KVM_EXIT_TPR_ACCESS;
scalar_t__ KVM_EXIT_UNKNOWN;
const char *get_exit_reason_name(uint32_t exit_reason) {
  if (exit_reason == KVM_EXIT_UNKNOWN)
    return "KVM_EXIT_UNKNOWN";
  if (exit_reason == KVM_EXIT_EXCEPTION)
    return "KVM_EXIT_EXCEPTION";
  if (exit_reason == KVM_EXIT_IO)
    return "KVM_EXIT_IO";
  if (exit_reason == KVM_EXIT_HYPERCALL)
    return "KVM_EXIT_HYPERCALL";
  if (exit_reason == KVM_EXIT_DEBUG)
    return "KVM_EXIT_DEBUG";
  if (exit_reason == KVM_EXIT_HLT)
    return "KVM_EXIT_HLT";
  if (exit_reason == KVM_EXIT_MMIO)
    return "KVM_EXIT_MMIO";
  if (exit_reason == KVM_EXIT_IRQ_WINDOW_OPEN)
    return "KVM_EXIT_IRQ_WINDOW_OPEN";
  if (exit_reason == KVM_EXIT_SHUTDOWN)
    return "KVM_EXIT_SHUTDOWN";
  if (exit_reason == KVM_EXIT_FAIL_ENTRY)
    return "KVM_EXIT_FAIL_ENTRY";
  if (exit_reason == KVM_EXIT_INTR)
    return "KVM_EXIT_INTR";
  if (exit_reason == KVM_EXIT_SET_TPR)
    return "KVM_EXIT_SET_TPR";
  if (exit_reason == KVM_EXIT_TPR_ACCESS)
    return "KVM_EXIT_TPR_ACCESS";
  if (exit_reason == KVM_EXIT_S390_SIEIC)
    return "KVM_EXIT_S390_SIEIC";
  if (exit_reason == KVM_EXIT_S390_RESET)
    return "KVM_EXIT_S390_RESET";
  if (exit_reason == KVM_EXIT_DCR)
    return "KVM_EXIT_DCR";
  if (exit_reason == KVM_EXIT_NMI)
    return "KVM_EXIT_NMI";
  if (exit_reason == KVM_EXIT_INTERNAL_ERROR)
    return "KVM_EXIT_INTERNAL_ERROR";
  if (exit_reason == KVM_EXIT_OSI)
    return "KVM_EXIT_OSI";
  if (exit_reason == KVM_EXIT_PAPR_HCALL)
    return "KVM_EXIT_PAPR_HCALL";
  return "? (unknown value)";
}


x86 assembly (clang, -O0):
<get_exit_reason_name>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2ec5(%rip),%rcx
cmp    (%rcx),%rax
jne    112c <get_exit_reason_name+0x2c>
lea    0xedd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2e99(%rip),%rcx
cmp    (%rcx),%rax
jne    1150 <get_exit_reason_name+0x50>
lea    0xeca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2e5d(%rip),%rcx
cmp    (%rcx),%rax
jne    1174 <get_exit_reason_name+0x74>
lea    0xeb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2e21(%rip),%rcx
cmp    (%rcx),%rax
jne    1198 <get_exit_reason_name+0x98>
lea    0xea1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2e05(%rip),%rcx
cmp    (%rcx),%rax
jne    11bc <get_exit_reason_name+0xbc>
lea    0xe90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2d99(%rip),%rcx
cmp    (%rcx),%rax
jne    11e0 <get_exit_reason_name+0xe0>
lea    0xe7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2e0d(%rip),%rcx
cmp    (%rcx),%rax
jne    1204 <get_exit_reason_name+0x104>
lea    0xe64(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2d81(%rip),%rcx
cmp    (%rcx),%rax
jne    1228 <get_exit_reason_name+0x128>
lea    0xe4e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2d15(%rip),%rcx
cmp    (%rcx),%rax
jne    124c <get_exit_reason_name+0x14c>
lea    0xe43(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2d91(%rip),%rcx
cmp    (%rcx),%rax
jne    1270 <get_exit_reason_name+0x170>
lea    0xe31(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2cc5(%rip),%rcx
cmp    (%rcx),%rax
jne    1294 <get_exit_reason_name+0x194>
lea    0xe21(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2ce1(%rip),%rcx
cmp    (%rcx),%rax
jne    12b8 <get_exit_reason_name+0x1b8>
lea    0xe0b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2ca5(%rip),%rcx
cmp    (%rcx),%rax
jne    12dc <get_exit_reason_name+0x1dc>
lea    0xdf8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c69(%rip),%rcx
cmp    (%rcx),%rax
jne    1300 <get_exit_reason_name+0x200>
lea    0xde8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c6d(%rip),%rcx
cmp    (%rcx),%rax
jne    1324 <get_exit_reason_name+0x224>
lea    0xdd8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c99(%rip),%rcx
cmp    (%rcx),%rax
jne    1348 <get_exit_reason_name+0x248>
lea    0xdc8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c1d(%rip),%rcx
cmp    (%rcx),%rax
jne    136c <get_exit_reason_name+0x26c>
lea    0xdb1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c21(%rip),%rcx
cmp    (%rcx),%rax
jne    1390 <get_exit_reason_name+0x290>
lea    0xd9a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2bed(%rip),%rcx
cmp    (%rcx),%rax
jne    13b4 <get_exit_reason_name+0x2b4>
lea    0xd8e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
mov    -0x10(%rbp),%rax
mov    0x2c01(%rip),%rcx
cmp    (%rcx),%rax
jne    13d8 <get_exit_reason_name+0x2d8>
lea    0xd77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13e3 <get_exit_reason_name+0x2e3>
lea    0xd7b(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_exit_reason_name>:
mov    0x2ed1(%rip),%rax
cmp    %rdi,(%rax)
jne    1114 <get_exit_reason_name+0x14>
lea    0xeed(%rip),%rax
ret
mov    0x2eb5(%rip),%rax
cmp    %rdi,(%rax)
jne    1128 <get_exit_reason_name+0x28>
lea    0xeea(%rip),%rax
ret
mov    0x2e89(%rip),%rax
cmp    %rdi,(%rax)
jne    113c <get_exit_reason_name+0x3c>
lea    0xee9(%rip),%rax
ret
mov    0x2e5d(%rip),%rax
cmp    %rdi,(%rax)
jne    1150 <get_exit_reason_name+0x50>
lea    0xee1(%rip),%rax
ret
mov    0x2e51(%rip),%rax
cmp    %rdi,(%rax)
jne    1164 <get_exit_reason_name+0x64>
lea    0xee0(%rip),%rax
ret
mov    0x2df5(%rip),%rax
cmp    %rdi,(%rax)
jne    1178 <get_exit_reason_name+0x78>
lea    0xedb(%rip),%rax
ret
mov    0x2e79(%rip),%rax
cmp    %rdi,(%rax)
jne    118c <get_exit_reason_name+0x8c>
lea    0xed4(%rip),%rax
ret
mov    0x2dfd(%rip),%rax
cmp    %rdi,(%rax)
jne    11a0 <get_exit_reason_name+0xa0>
lea    0xece(%rip),%rax
ret
mov    0x2da1(%rip),%rax
cmp    %rdi,(%rax)
jne    11b4 <get_exit_reason_name+0xb4>
lea    0xed3(%rip),%rax
ret
mov    0x2e2d(%rip),%rax
cmp    %rdi,(%rax)
jne    11c8 <get_exit_reason_name+0xc8>
lea    0xed1(%rip),%rax
ret
mov    0x2d71(%rip),%rax
cmp    %rdi,(%rax)
jne    11dc <get_exit_reason_name+0xdc>
lea    0xed1(%rip),%rax
ret
mov    0x2d9d(%rip),%rax
cmp    %rdi,(%rax)
jne    11f0 <get_exit_reason_name+0xf0>
lea    0xecb(%rip),%rax
ret
mov    0x2d71(%rip),%rax
cmp    %rdi,(%rax)
jne    1204 <get_exit_reason_name+0x104>
lea    0xec8(%rip),%rax
ret
mov    0x2d45(%rip),%rax
cmp    %rdi,(%rax)
jne    1218 <get_exit_reason_name+0x118>
lea    0xec8(%rip),%rax
ret
mov    0x2d59(%rip),%rax
cmp    %rdi,(%rax)
jne    122c <get_exit_reason_name+0x12c>
lea    0xec8(%rip),%rax
ret
mov    0x2d95(%rip),%rax
cmp    %rdi,(%rax)
jne    1240 <get_exit_reason_name+0x140>
lea    0xec8(%rip),%rax
ret
mov    0x2d29(%rip),%rax
cmp    %rdi,(%rax)
jne    1254 <get_exit_reason_name+0x154>
lea    0xec1(%rip),%rax
ret
mov    0x2d3d(%rip),%rax
cmp    %rdi,(%rax)
jne    1268 <get_exit_reason_name+0x168>
lea    0xeba(%rip),%rax
ret
mov    0x2d19(%rip),%rax
cmp    %rdi,(%rax)
jne    127c <get_exit_reason_name+0x17c>
lea    0xebe(%rip),%rax
ret
mov    0x2d3d(%rip),%rax
cmp    %rdi,(%rax)
lea    0xeb9(%rip),%rcx
lea    0xec6(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@KVM_EXIT_UNKNOWN = global i64 0
@.str = [17 x i8] c"KVM_EXIT_UNKNOWN\00"
@KVM_EXIT_EXCEPTION = global i64 0
@.str.1 = [19 x i8] c"KVM_EXIT_EXCEPTION\00"
@KVM_EXIT_IO = global i64 0
@.str.2 = [12 x i8] c"KVM_EXIT_IO\00"
@KVM_EXIT_HYPERCALL = global i64 0
@.str.3 = [19 x i8] c"KVM_EXIT_HYPERCALL\00"
@KVM_EXIT_DEBUG = global i64 0
@.str.4 = [15 x i8] c"KVM_EXIT_DEBUG\00"
@KVM_EXIT_HLT = global i64 0
@.str.5 = [13 x i8] c"KVM_EXIT_HLT\00"
@KVM_EXIT_MMIO = global i64 0
@.str.6 = [14 x i8] c"KVM_EXIT_MMIO\00"
@KVM_EXIT_IRQ_WINDOW_OPEN = global i64 0
@.str.7 = [25 x i8] c"KVM_EXIT_IRQ_WINDOW_OPEN\00"
@KVM_EXIT_SHUTDOWN = global i64 0
@.str.8 = [18 x i8] c"KVM_EXIT_SHUTDOWN\00"
@KVM_EXIT_FAIL_ENTRY = global i64 0
@.str.9 = [20 x i8] c"KVM_EXIT_FAIL_ENTRY\00"
@KVM_EXIT_INTR = global i64 0
@.str.10 = [14 x i8] c"KVM_EXIT_INTR\00"
@KVM_EXIT_SET_TPR = global i64 0
@.str.11 = [17 x i8] c"KVM_EXIT_SET_TPR\00"
@KVM_EXIT_TPR_ACCESS = global i64 0
@.str.12 = [20 x i8] c"KVM_EXIT_TPR_ACCESS\00"
@KVM_EXIT_S390_SIEIC = global i64 0
@.str.13 = [20 x i8] c"KVM_EXIT_S390_SIEIC\00"
@KVM_EXIT_S390_RESET = global i64 0
@.str.14 = [20 x i8] c"KVM_EXIT_S390_RESET\00"
@KVM_EXIT_DCR = global i64 0
@.str.15 = [13 x i8] c"KVM_EXIT_DCR\00"
@KVM_EXIT_NMI = global i64 0
@.str.16 = [13 x i8] c"KVM_EXIT_NMI\00"
@KVM_EXIT_INTERNAL_ERROR = global i64 0
@.str.17 = [24 x i8] c"KVM_EXIT_INTERNAL_ERROR\00"
@KVM_EXIT_OSI = global i64 0
@.str.18 = [13 x i8] c"KVM_EXIT_OSI\00"
@KVM_EXIT_PAPR_HCALL = global i64 0
@.str.19 = [20 x i8] c"KVM_EXIT_PAPR_HCALL\00"
@.str.20 = [18 x i8] c"? (unknown value)\00"
define i8* @get_exit_reason_name(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = load i64, i64* @KVM_EXIT_UNKNOWN
%6 = icmp eq i64 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8** %2
br label %104
8: ; preds = %1
%9 = load i64, i64* %3
%10 = load i64, i64* @KVM_EXIT_EXCEPTION
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %104
13: ; preds = %8
%14 = load i64, i64* %3
%15 = load i64, i64* @KVM_EXIT_IO
%16 = icmp eq i64 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %13
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %104
18: ; preds = %13
%19 = load i64, i64* %3
%20 = load i64, i64* @KVM_EXIT_HYPERCALL
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %104
23: ; preds = %18
%24 = load i64, i64* %3
%25 = load i64, i64* @KVM_EXIT_DEBUG
%26 = icmp eq i64 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %104
28: ; preds = %23
%29 = load i64, i64* %3
%30 = load i64, i64* @KVM_EXIT_HLT
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %104
33: ; preds = %28
%34 = load i64, i64* %3
%35 = load i64, i64* @KVM_EXIT_MMIO
%36 = icmp eq i64 %34, %35
br i1 %36, label %37, label %38
37: ; preds = %33
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %104
38: ; preds = %33
%39 = load i64, i64* %3
%40 = load i64, i64* @KVM_EXIT_IRQ_WINDOW_OPEN
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %104
43: ; preds = %38
%44 = load i64, i64* %3
%45 = load i64, i64* @KVM_EXIT_SHUTDOWN
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %48
47: ; preds = %43
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %104
48: ; preds = %43
%49 = load i64, i64* %3
%50 = load i64, i64* @KVM_EXIT_FAIL_ENTRY
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %104
53: ; preds = %48
%54 = load i64, i64* %3
%55 = load i64, i64* @KVM_EXIT_INTR
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %104
58: ; preds = %53
%59 = load i64, i64* %3
%60 = load i64, i64* @KVM_EXIT_SET_TPR
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %104
63: ; preds = %58
%64 = load i64, i64* %3
%65 = load i64, i64* @KVM_EXIT_TPR_ACCESS
%66 = icmp eq i64 %64, %65
br i1 %66, label %67, label %68
67: ; preds = %63
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %104
68: ; preds = %63
%69 = load i64, i64* %3
%70 = load i64, i64* @KVM_EXIT_S390_SIEIC
%71 = icmp eq i64 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %68
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %104
73: ; preds = %68
%74 = load i64, i64* %3
%75 = load i64, i64* @KVM_EXIT_S390_RESET
%76 = icmp eq i64 %74, %75
br i1 %76, label %77, label %78
77: ; preds = %73
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %104
78: ; preds = %73
%79 = load i64, i64* %3
%80 = load i64, i64* @KVM_EXIT_DCR
%81 = icmp eq i64 %79, %80
br i1 %81, label %82, label %83
82: ; preds = %78
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %104
83: ; preds = %78
%84 = load i64, i64* %3
%85 = load i64, i64* @KVM_EXIT_NMI
%86 = icmp eq i64 %84, %85
br i1 %86, label %87, label %88
87: ; preds = %83
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %104
88: ; preds = %83
%89 = load i64, i64* %3
%90 = load i64, i64* @KVM_EXIT_INTERNAL_ERROR
%91 = icmp eq i64 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %88
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %104
93: ; preds = %88
%94 = load i64, i64* %3
%95 = load i64, i64* @KVM_EXIT_OSI
%96 = icmp eq i64 %94, %95
br i1 %96, label %97, label %98
97: ; preds = %93
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %104
98: ; preds = %93
%99 = load i64, i64* %3
%100 = load i64, i64* @KVM_EXIT_PAPR_HCALL
%101 = icmp eq i64 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %98
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %104
103: ; preds = %98
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %104
104: ; preds = %103, %102, %97, %92, %87, %82, %77, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%105 = load i8*, i8** %2
ret i8* %105
}

LLVM IR (-O2):
@KVM_EXIT_UNKNOWN = global i64 0
@.str = [17 x i8] c"KVM_EXIT_UNKNOWN\00"
@KVM_EXIT_EXCEPTION = global i64 0
@.str.1 = [19 x i8] c"KVM_EXIT_EXCEPTION\00"
@KVM_EXIT_IO = global i64 0
@.str.2 = [12 x i8] c"KVM_EXIT_IO\00"
@KVM_EXIT_HYPERCALL = global i64 0
@.str.3 = [19 x i8] c"KVM_EXIT_HYPERCALL\00"
@KVM_EXIT_DEBUG = global i64 0
@.str.4 = [15 x i8] c"KVM_EXIT_DEBUG\00"
@KVM_EXIT_HLT = global i64 0
@.str.5 = [13 x i8] c"KVM_EXIT_HLT\00"
@KVM_EXIT_MMIO = global i64 0
@.str.6 = [14 x i8] c"KVM_EXIT_MMIO\00"
@KVM_EXIT_IRQ_WINDOW_OPEN = global i64 0
@.str.7 = [25 x i8] c"KVM_EXIT_IRQ_WINDOW_OPEN\00"
@KVM_EXIT_SHUTDOWN = global i64 0
@.str.8 = [18 x i8] c"KVM_EXIT_SHUTDOWN\00"
@KVM_EXIT_FAIL_ENTRY = global i64 0
@.str.9 = [20 x i8] c"KVM_EXIT_FAIL_ENTRY\00"
@KVM_EXIT_INTR = global i64 0
@.str.10 = [14 x i8] c"KVM_EXIT_INTR\00"
@KVM_EXIT_SET_TPR = global i64 0
@.str.11 = [17 x i8] c"KVM_EXIT_SET_TPR\00"
@KVM_EXIT_TPR_ACCESS = global i64 0
@.str.12 = [20 x i8] c"KVM_EXIT_TPR_ACCESS\00"
@KVM_EXIT_S390_SIEIC = global i64 0
@.str.13 = [20 x i8] c"KVM_EXIT_S390_SIEIC\00"
@KVM_EXIT_S390_RESET = global i64 0
@.str.14 = [20 x i8] c"KVM_EXIT_S390_RESET\00"
@KVM_EXIT_DCR = global i64 0
@.str.15 = [13 x i8] c"KVM_EXIT_DCR\00"
@KVM_EXIT_NMI = global i64 0
@.str.16 = [13 x i8] c"KVM_EXIT_NMI\00"
@KVM_EXIT_INTERNAL_ERROR = global i64 0
@.str.17 = [24 x i8] c"KVM_EXIT_INTERNAL_ERROR\00"
@KVM_EXIT_OSI = global i64 0
@.str.18 = [13 x i8] c"KVM_EXIT_OSI\00"
@KVM_EXIT_PAPR_HCALL = global i64 0
@.str.19 = [20 x i8] c"KVM_EXIT_PAPR_HCALL\00"
@.str.20 = [18 x i8] c"? (unknown value)\00"
define i8* @get_exit_reason_name(i64 %0) {
%2 = load i64, i64* @KVM_EXIT_UNKNOWN
%3 = icmp eq i64 %2, %0
br i1 %3, label %62, label %4
4: ; preds = %1
%5 = load i64, i64* @KVM_EXIT_EXCEPTION
%6 = icmp eq i64 %5, %0
br i1 %6, label %62, label %7
7: ; preds = %4
%8 = load i64, i64* @KVM_EXIT_IO
%9 = icmp eq i64 %8, %0
br i1 %9, label %62, label %10
10: ; preds = %7
%11 = load i64, i64* @KVM_EXIT_HYPERCALL
%12 = icmp eq i64 %11, %0
br i1 %12, label %62, label %13
13: ; preds = %10
%14 = load i64, i64* @KVM_EXIT_DEBUG
%15 = icmp eq i64 %14, %0
br i1 %15, label %62, label %16
16: ; preds = %13
%17 = load i64, i64* @KVM_EXIT_HLT
%18 = icmp eq i64 %17, %0
br i1 %18, label %62, label %19
19: ; preds = %16
%20 = load i64, i64* @KVM_EXIT_MMIO
%21 = icmp eq i64 %20, %0
br i1 %21, label %62, label %22
22: ; preds = %19
%23 = load i64, i64* @KVM_EXIT_IRQ_WINDOW_OPEN
%24 = icmp eq i64 %23, %0
br i1 %24, label %62, label %25
25: ; preds = %22
%26 = load i64, i64* @KVM_EXIT_SHUTDOWN
%27 = icmp eq i64 %26, %0
br i1 %27, label %62, label %28
28: ; preds = %25
%29 = load i64, i64* @KVM_EXIT_FAIL_ENTRY
%30 = icmp eq i64 %29, %0
br i1 %30, label %62, label %31
31: ; preds = %28
%32 = load i64, i64* @KVM_EXIT_INTR
%33 = icmp eq i64 %32, %0
br i1 %33, label %62, label %34
34: ; preds = %31
%35 = load i64, i64* @KVM_EXIT_SET_TPR
%36 = icmp eq i64 %35, %0
br i1 %36, label %62, label %37
37: ; preds = %34
%38 = load i64, i64* @KVM_EXIT_TPR_ACCESS
%39 = icmp eq i64 %38, %0
br i1 %39, label %62, label %40
40: ; preds = %37
%41 = load i64, i64* @KVM_EXIT_S390_SIEIC
%42 = icmp eq i64 %41, %0
br i1 %42, label %62, label %43
43: ; preds = %40
%44 = load i64, i64* @KVM_EXIT_S390_RESET
%45 = icmp eq i64 %44, %0
br i1 %45, label %62, label %46
46: ; preds = %43
%47 = load i64, i64* @KVM_EXIT_DCR
%48 = icmp eq i64 %47, %0
br i1 %48, label %62, label %49
49: ; preds = %46
%50 = load i64, i64* @KVM_EXIT_NMI
%51 = icmp eq i64 %50, %0
br i1 %51, label %62, label %52
52: ; preds = %49
%53 = load i64, i64* @KVM_EXIT_INTERNAL_ERROR
%54 = icmp eq i64 %53, %0
br i1 %54, label %62, label %55
55: ; preds = %52
%56 = load i64, i64* @KVM_EXIT_OSI
%57 = icmp eq i64 %56, %0
br i1 %57, label %62, label %58
58: ; preds = %55
%59 = load i64, i64* @KVM_EXIT_PAPR_HCALL
%60 = icmp eq i64 %59, %0
%61 = select i1 %60, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.20, i64 0, i64 0)
br label %62
62: ; preds = %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%63 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), %7 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), %13 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), %19 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), %22 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %25 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), %28 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), %31 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), %34 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), %37 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), %40 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), %43 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), %46 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), %49 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), %52 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), %55 ], [ %61, %58 ]
ret i8* %63
}