#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 */
char *wCopyString(char *);
char *wBlockName(int klass) {
  switch (klass) {
  case -1:
    return wCopyString("end-of-file");
  case 291:
    return wCopyString("End For/Next");
  case 292:
    return wCopyString("End Function");
  case 293:
    return wCopyString("End If");
  case 324:
    return wCopyString("End While");
  case 313:
    return wCopyString("End Select");
  case 319:
    return wCopyString("End Sub");
  default:
    return wCopyString("block");
  }
}


x86 assembly (clang, -O0):
<wBlockName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0xffffffff,%eax
je     11a1 <wBlockName+0x91>
jmp    112f <wBlockName+0x1f>
mov    -0x10(%rbp),%eax
sub    $0x123,%eax
je     11b6 <wBlockName+0xa6>
jmp    1142 <wBlockName+0x32>
mov    -0x10(%rbp),%eax
sub    $0x124,%eax
je     11cb <wBlockName+0xbb>
jmp    1155 <wBlockName+0x45>
mov    -0x10(%rbp),%eax
sub    $0x125,%eax
je     11e0 <wBlockName+0xd0>
jmp    1168 <wBlockName+0x58>
mov    -0x10(%rbp),%eax
sub    $0x139,%eax
je     120a <wBlockName+0xfa>
jmp    117b <wBlockName+0x6b>
mov    -0x10(%rbp),%eax
sub    $0x13f,%eax
je     121f <wBlockName+0x10f>
jmp    118e <wBlockName+0x7e>
mov    -0x10(%rbp),%eax
sub    $0x144,%eax
je     11f5 <wBlockName+0xe5>
jmp    1234 <wBlockName+0x124>
lea    0xe58(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe4f(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe47(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe3f(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe31(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe26(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe1c(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
jmp    1244 <wBlockName+0x134>
lea    0xe0f(%rip),%rdi
call   1030 <wCopyString@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wBlockName>:
lea    -0x123(%rdi),%eax
cmp    $0x21,%eax
ja     1137 <wBlockName+0x27>
lea    0xede(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf62(%rip),%rdi
jmp    1030 <wCopyString@plt>
cmp    $0xffffffff,%edi
jne    1148 <wBlockName+0x38>
lea    0xf45(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf83(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf46(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf47(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf4c(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf4b(%rip),%rdi
jmp    1030 <wCopyString@plt>
lea    0xf2a(%rip),%rdi
jmp    1030 <wCopyString@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"end-of-file\00"
@.str.1 = [13 x i8] c"End For/Next\00"
@.str.2 = [13 x i8] c"End Function\00"
@.str.3 = [7 x i8] c"End If\00"
@.str.4 = [10 x i8] c"End While\00"
@.str.5 = [11 x i8] c"End Select\00"
@.str.6 = [8 x i8] c"End Sub\00"
@.str.7 = [6 x i8] c"block\00"
define i8* @wBlockName(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %19 [
i32 -1, label %5
i32 291, label %7
i32 292, label %9
i32 293, label %11
i32 324, label %13
i32 313, label %15
i32 319, label %17
]
5: ; preds = %1
%6 = call i8* @wCopyString(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i8* %6, i8** %2
br label %21
7: ; preds = %1
%8 = call i8* @wCopyString(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store i8* %8, i8** %2
br label %21
9: ; preds = %1
%10 = call i8* @wCopyString(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
store i8* %10, i8** %2
br label %21
11: ; preds = %1
%12 = call i8* @wCopyString(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i8* %12, i8** %2
br label %21
13: ; preds = %1
%14 = call i8* @wCopyString(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
store i8* %14, i8** %2
br label %21
15: ; preds = %1
%16 = call i8* @wCopyString(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
store i8* %16, i8** %2
br label %21
17: ; preds = %1
%18 = call i8* @wCopyString(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
store i8* %18, i8** %2
br label %21
19: ; preds = %1
%20 = call i8* @wCopyString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
store i8* %20, i8** %2
br label %21
21: ; preds = %19, %17, %15, %13, %11, %9, %7, %5
%22 = load i8*, i8** %2
ret i8* %22
}

LLVM IR (-O2):
@.str = [12 x i8] c"end-of-file\00"
@.str.1 = [13 x i8] c"End For/Next\00"
@.str.2 = [13 x i8] c"End Function\00"
@.str.3 = [7 x i8] c"End If\00"
@.str.4 = [10 x i8] c"End While\00"
@.str.5 = [11 x i8] c"End Select\00"
@.str.6 = [8 x i8] c"End Sub\00"
@.str.7 = [6 x i8] c"block\00"
define i8* @wBlockName(i32 %0) {
switch i32 %0, label %8 [
i32 -1, label %9
i32 291, label %2
i32 292, label %3
i32 293, label %4
i32 324, label %5
i32 313, label %6
i32 319, label %7
]
2: ; preds = %1
br label %9
3: ; preds = %1
br label %9
4: ; preds = %1
br label %9
5: ; preds = %1
br label %9
6: ; preds = %1
br label %9
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %1, %8, %7, %6, %5, %4, %3, %2
%10 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), %1 ]
%11 = tail call i8* @wCopyString(i8* %10)
ret i8* %11
}