#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 int cl_int;

/* Variables and functions */
#define CL_BUILD_PROGRAM_FAILURE 173
#define CL_COMPILER_NOT_AVAILABLE 172
#define CL_DEVICE_NOT_AVAILABLE 171
#define CL_DEVICE_NOT_FOUND 170
#define CL_IMAGE_FORMAT_MISMATCH 169
#define CL_IMAGE_FORMAT_NOT_SUPPORTED 168
#define CL_INVALID_ARG_INDEX 167
#define CL_INVALID_ARG_SIZE 166
#define CL_INVALID_ARG_VALUE 165
#define CL_INVALID_BINARY 164
#define CL_INVALID_BUFFER_SIZE 163
#define CL_INVALID_BUILD_OPTIONS 162
#define CL_INVALID_COMMAND_QUEUE 161
#define CL_INVALID_CONTEXT 160
#define CL_INVALID_DEVICE 159
#define CL_INVALID_DEVICE_TYPE 158
#define CL_INVALID_EVENT 157
#define CL_INVALID_EVENT_WAIT_LIST 156
#define CL_INVALID_GLOBAL_OFFSET 155
#define CL_INVALID_GL_OBJECT 154
#define CL_INVALID_HOST_PTR 153
#define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR 152
#define CL_INVALID_IMAGE_SIZE 151
#define CL_INVALID_KERNEL 150
#define CL_INVALID_KERNEL_ARGS 149
#define CL_INVALID_KERNEL_DEFINITION 148
#define CL_INVALID_KERNEL_NAME 147
#define CL_INVALID_MEM_OBJECT 146
#define CL_INVALID_MIP_LEVEL 145
#define CL_INVALID_OPERATION 144
#define CL_INVALID_PLATFORM 143
#define CL_INVALID_PROGRAM 142
#define CL_INVALID_PROGRAM_EXECUTABLE 141
#define CL_INVALID_QUEUE_PROPERTIES 140
#define CL_INVALID_SAMPLER 139
#define CL_INVALID_VALUE 138
#define CL_INVALID_WORK_DIMENSION 137
#define CL_INVALID_WORK_GROUP_SIZE 136
#define CL_INVALID_WORK_ITEM_SIZE 135
#define CL_MAP_FAILURE 134
#define CL_MEM_COPY_OVERLAP 133
#define CL_MEM_OBJECT_ALLOCATION_FAILURE 132
#define CL_OUT_OF_HOST_MEMORY 131
#define CL_OUT_OF_RESOURCES 130
#define CL_PROFILING_INFO_NOT_AVAILABLE 129
#define CL_SUCCESS 128
int /*<<< orphan*/ printf(char *);
void printError(cl_int err) {
  switch (err) {
  case CL_SUCCESS:
    printf("\nSuccess!\n");
    return;
  case CL_DEVICE_NOT_FOUND:
    printf("\nDevice not found.\n");
    return;
  case CL_DEVICE_NOT_AVAILABLE:
    printf("\nDevice not available\n");
    return;
  case CL_COMPILER_NOT_AVAILABLE:
    printf("\nCompiler not available\n");
    return;
  case CL_MEM_OBJECT_ALLOCATION_FAILURE:
    printf("\nMemory object allocation failure\n");
    return;
  case CL_OUT_OF_RESOURCES:
    printf("\nOut of resources\n");
    return;
  case CL_OUT_OF_HOST_MEMORY:
    printf("\nOut of host memory\n");
    return;
  case CL_PROFILING_INFO_NOT_AVAILABLE:
    printf("\nProfiling information not available\n");
    return;
  case CL_MEM_COPY_OVERLAP:
    printf("\nMemory copy overlap\n");
    return;
  case CL_IMAGE_FORMAT_MISMATCH:
    printf("\nImage format mismatch\n");
    return;
  case CL_IMAGE_FORMAT_NOT_SUPPORTED:
    printf("\nImage format not supported\n");
    return;
  case CL_BUILD_PROGRAM_FAILURE:
    printf("\nProgram build failure\n");
    return;
  case CL_MAP_FAILURE:
    printf("\nMap failure\n");
    return;
  case CL_INVALID_VALUE:
    printf("\nInvalid value\n");
    return;
  case CL_INVALID_DEVICE_TYPE:
    printf("\nInvalid device type\n");
    return;
  case CL_INVALID_PLATFORM:
    printf("\nInvalid platform\n");
    return;
  case CL_INVALID_DEVICE:
    printf("\nInvalid device\n");
    return;
  case CL_INVALID_CONTEXT:
    printf("\nInvalid context\n");
    return;
  case CL_INVALID_QUEUE_PROPERTIES:
    printf("\nInvalid queue properties\n");
    return;
  case CL_INVALID_COMMAND_QUEUE:
    printf("\nInvalid command queue\n");
    return;
  case CL_INVALID_HOST_PTR:
    printf("\nInvalid host pointer\n");
    return;
  case CL_INVALID_MEM_OBJECT:
    printf("\nInvalid memory object\n");
    return;
  case CL_INVALID_IMAGE_FORMAT_DESCRIPTOR:
    printf("\nInvalid image format descriptor\n");
    return;
  case CL_INVALID_IMAGE_SIZE:
    printf("\nInvalid image size\n");
    return;
  case CL_INVALID_SAMPLER:
    printf("\nInvalid sampler\n");
    return;
  case CL_INVALID_BINARY:
    printf("\nInvalid binary\n");
    return;
  case CL_INVALID_BUILD_OPTIONS:
    printf("\nInvalid build options\n");
    return;
  case CL_INVALID_PROGRAM:
    printf("\nInvalid program\n");
    return;
  case CL_INVALID_PROGRAM_EXECUTABLE:
    printf("\nInvalid program executable\n");
    return;
  case CL_INVALID_KERNEL_NAME:
    printf("\nInvalid kernel name\n");
    return;
  case CL_INVALID_KERNEL_DEFINITION:
    printf("\nInvalid kernel definition\n");
    return;
  case CL_INVALID_KERNEL:
    printf("\nInvalid kernel\n");
    return;
  case CL_INVALID_ARG_INDEX:
    printf("\nInvalid argument index\n");
    return;
  case CL_INVALID_ARG_VALUE:
    printf("\nInvalid argument value\n");
    return;
  case CL_INVALID_ARG_SIZE:
    printf("\nInvalid argument size\n");
    return;
  case CL_INVALID_KERNEL_ARGS:
    printf("\nInvalid kernel arguments\n");
    return;
  case CL_INVALID_WORK_DIMENSION:
    printf("\nInvalid work dimension\n");
    return;
  case CL_INVALID_WORK_GROUP_SIZE:
    printf("\nInvalid work group size\n");
    return;
  case CL_INVALID_WORK_ITEM_SIZE:
    printf("\nInvalid work item size\n");
    return;
  case CL_INVALID_GLOBAL_OFFSET:
    printf("\nInvalid global offset\n");
    return;
  case CL_INVALID_EVENT_WAIT_LIST:
    printf("\nInvalid event wait list\n");
    return;
  case CL_INVALID_EVENT:
    printf("\nInvalid event\n");
    return;
  case CL_INVALID_OPERATION:
    printf("\nInvalid operation\n");
    return;
  case CL_INVALID_GL_OBJECT:
    printf("\nInvalid OpenGL object\n");
    return;
  case CL_INVALID_BUFFER_SIZE:
    printf("\nInvalid buffer size\n");
    return;
  case CL_INVALID_MIP_LEVEL:
    printf("\nInvalid mip-map level\n");
    return;
  default:
    printf("\nUnknown\n");
    return;
  }
}


x86 assembly (clang, -O0):
<printError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x2d,%eax
ja     1452 <printError+0x342>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf6d(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf67(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf8a(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf8c(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfa5(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc4(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc5(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfc8(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfd2(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfd9(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xff7(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xffb(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1003(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1010(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1020(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1020(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1028(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1030(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1037(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1041(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1049(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1052(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x105a(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x106a(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1069(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x106c(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1073(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x1078(%rip),%rdi
call   1030 <printf@plt>
jmp    145e <printError+0x34e>
lea    0x107f(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printError>:
add    $0xffffff80,%edi
cmp    $0x2d,%edi
ja     112e <printError+0x1e>
movslq %edi,%rax
lea    0x12da(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1030 <puts@plt>
lea    0x12bd(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0ASuccess!\0A\00"
@.str.1 = [20 x i8] c"\0ADevice not found.\0A\00"
@.str.2 = [23 x i8] c"\0ADevice not available\0A\00"
@.str.3 = [25 x i8] c"\0ACompiler not available\0A\00"
@.str.4 = [35 x i8] c"\0AMemory object allocation failure\0A\00"
@.str.5 = [19 x i8] c"\0AOut of resources\0A\00"
@.str.6 = [21 x i8] c"\0AOut of host memory\0A\00"
@.str.7 = [38 x i8] c"\0AProfiling information not available\0A\00"
@.str.8 = [22 x i8] c"\0AMemory copy overlap\0A\00"
@.str.9 = [24 x i8] c"\0AImage format mismatch\0A\00"
@.str.10 = [29 x i8] c"\0AImage format not supported\0A\00"
@.str.11 = [24 x i8] c"\0AProgram build failure\0A\00"
@.str.12 = [14 x i8] c"\0AMap failure\0A\00"
@.str.13 = [16 x i8] c"\0AInvalid value\0A\00"
@.str.14 = [22 x i8] c"\0AInvalid device type\0A\00"
@.str.15 = [19 x i8] c"\0AInvalid platform\0A\00"
@.str.16 = [17 x i8] c"\0AInvalid device\0A\00"
@.str.17 = [18 x i8] c"\0AInvalid context\0A\00"
@.str.18 = [27 x i8] c"\0AInvalid queue properties\0A\00"
@.str.19 = [24 x i8] c"\0AInvalid command queue\0A\00"
@.str.20 = [23 x i8] c"\0AInvalid host pointer\0A\00"
@.str.21 = [24 x i8] c"\0AInvalid memory object\0A\00"
@.str.22 = [34 x i8] c"\0AInvalid image format descriptor\0A\00"
@.str.23 = [21 x i8] c"\0AInvalid image size\0A\00"
@.str.24 = [18 x i8] c"\0AInvalid sampler\0A\00"
@.str.25 = [17 x i8] c"\0AInvalid binary\0A\00"
@.str.26 = [24 x i8] c"\0AInvalid build options\0A\00"
@.str.27 = [18 x i8] c"\0AInvalid program\0A\00"
@.str.28 = [29 x i8] c"\0AInvalid program executable\0A\00"
@.str.29 = [22 x i8] c"\0AInvalid kernel name\0A\00"
@.str.30 = [28 x i8] c"\0AInvalid kernel definition\0A\00"
@.str.31 = [17 x i8] c"\0AInvalid kernel\0A\00"
@.str.32 = [25 x i8] c"\0AInvalid argument index\0A\00"
@.str.33 = [25 x i8] c"\0AInvalid argument value\0A\00"
@.str.34 = [24 x i8] c"\0AInvalid argument size\0A\00"
@.str.35 = [27 x i8] c"\0AInvalid kernel arguments\0A\00"
@.str.36 = [25 x i8] c"\0AInvalid work dimension\0A\00"
@.str.37 = [26 x i8] c"\0AInvalid work group size\0A\00"
@.str.38 = [25 x i8] c"\0AInvalid work item size\0A\00"
@.str.39 = [24 x i8] c"\0AInvalid global offset\0A\00"
@.str.40 = [26 x i8] c"\0AInvalid event wait list\0A\00"
@.str.41 = [16 x i8] c"\0AInvalid event\0A\00"
@.str.42 = [20 x i8] c"\0AInvalid operation\0A\00"
@.str.43 = [24 x i8] c"\0AInvalid OpenGL object\0A\00"
@.str.44 = [22 x i8] c"\0AInvalid buffer size\0A\00"
@.str.45 = [24 x i8] c"\0AInvalid mip-map level\0A\00"
@.str.46 = [10 x i8] c"\0AUnknown\0A\00"
define void @printError(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %96 [
i32 128, label %4
i32 170, label %6
i32 171, label %8
i32 172, label %10
i32 132, label %12
i32 130, label %14
i32 131, label %16
i32 129, label %18
i32 133, label %20
i32 169, label %22
i32 168, label %24
i32 173, label %26
i32 134, label %28
i32 138, label %30
i32 158, label %32
i32 143, label %34
i32 159, label %36
i32 160, label %38
i32 140, label %40
i32 161, label %42
i32 153, label %44
i32 146, label %46
i32 152, label %48
i32 151, label %50
i32 139, label %52
i32 164, label %54
i32 162, label %56
i32 142, label %58
i32 141, label %60
i32 147, label %62
i32 148, label %64
i32 150, label %66
i32 167, label %68
i32 165, label %70
i32 166, label %72
i32 149, label %74
i32 137, label %76
i32 136, label %78
i32 135, label %80
i32 155, label %82
i32 156, label %84
i32 157, label %86
i32 144, label %88
i32 154, label %90
i32 163, label %92
i32 145, label %94
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %98
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %98
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %98
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
br label %98
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
br label %98
14: ; preds = %1
%15 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %98
16: ; preds = %1
%17 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
br label %98
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
br label %98
20: ; preds = %1
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
br label %98
22: ; preds = %1
%23 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %98
24: ; preds = %1
%25 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
br label %98
26: ; preds = %1
%27 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
br label %98
28: ; preds = %1
%29 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %98
30: ; preds = %1
%31 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %98
32: ; preds = %1
%33 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
br label %98
34: ; preds = %1
%35 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
br label %98
36: ; preds = %1
%37 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0))
br label %98
38: ; preds = %1
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %98
40: ; preds = %1
%41 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0))
br label %98
42: ; preds = %1
%43 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
br label %98
44: ; preds = %1
%45 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0))
br label %98
46: ; preds = %1
%47 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0))
br label %98
48: ; preds = %1
%49 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.22, i64 0, i64 0))
br label %98
50: ; preds = %1
%51 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0))
br label %98
52: ; preds = %1
%53 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
br label %98
54: ; preds = %1
%55 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0))
br label %98
56: ; preds = %1
%57 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0))
br label %98
58: ; preds = %1
%59 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.27, i64 0, i64 0))
br label %98
60: ; preds = %1
%61 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.28, i64 0, i64 0))
br label %98
62: ; preds = %1
%63 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0))
br label %98
64: ; preds = %1
%65 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.30, i64 0, i64 0))
br label %98
66: ; preds = %1
%67 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.31, i64 0, i64 0))
br label %98
68: ; preds = %1
%69 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.32, i64 0, i64 0))
br label %98
70: ; preds = %1
%71 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.33, i64 0, i64 0))
br label %98
72: ; preds = %1
%73 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.34, i64 0, i64 0))
br label %98
74: ; preds = %1
%75 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.35, i64 0, i64 0))
br label %98
76: ; preds = %1
%77 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.36, i64 0, i64 0))
br label %98
78: ; preds = %1
%79 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.37, i64 0, i64 0))
br label %98
80: ; preds = %1
%81 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.38, i64 0, i64 0))
br label %98
82: ; preds = %1
%83 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.39, i64 0, i64 0))
br label %98
84: ; preds = %1
%85 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0))
br label %98
86: ; preds = %1
%87 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.41, i64 0, i64 0))
br label %98
88: ; preds = %1
%89 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.42, i64 0, i64 0))
br label %98
90: ; preds = %1
%91 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.43, i64 0, i64 0))
br label %98
92: ; preds = %1
%93 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.44, i64 0, i64 0))
br label %98
94: ; preds = %1
%95 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.45, i64 0, i64 0))
br label %98
96: ; preds = %1
%97 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.46, i64 0, i64 0))
br label %98
98: ; preds = %96, %94, %92, %90, %88, %86, %84, %82, %80, %78, %76, %74, %72, %70, %68, %66, %64, %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"\0AInvalid mip-map level\00"
@str.47 = [21 x i8] c"\0AInvalid buffer size\00"
@str.48 = [23 x i8] c"\0AInvalid OpenGL object\00"
@str.49 = [19 x i8] c"\0AInvalid operation\00"
@str.50 = [15 x i8] c"\0AInvalid event\00"
@str.51 = [25 x i8] c"\0AInvalid event wait list\00"
@str.52 = [23 x i8] c"\0AInvalid global offset\00"
@str.53 = [24 x i8] c"\0AInvalid work item size\00"
@str.54 = [25 x i8] c"\0AInvalid work group size\00"
@str.55 = [24 x i8] c"\0AInvalid work dimension\00"
@str.56 = [26 x i8] c"\0AInvalid kernel arguments\00"
@str.57 = [23 x i8] c"\0AInvalid argument size\00"
@str.58 = [24 x i8] c"\0AInvalid argument value\00"
@str.59 = [24 x i8] c"\0AInvalid argument index\00"
@str.60 = [16 x i8] c"\0AInvalid kernel\00"
@str.61 = [27 x i8] c"\0AInvalid kernel definition\00"
@str.62 = [21 x i8] c"\0AInvalid kernel name\00"
@str.63 = [28 x i8] c"\0AInvalid program executable\00"
@str.64 = [17 x i8] c"\0AInvalid program\00"
@str.65 = [23 x i8] c"\0AInvalid build options\00"
@str.66 = [16 x i8] c"\0AInvalid binary\00"
@str.67 = [17 x i8] c"\0AInvalid sampler\00"
@str.68 = [20 x i8] c"\0AInvalid image size\00"
@str.69 = [33 x i8] c"\0AInvalid image format descriptor\00"
@str.70 = [23 x i8] c"\0AInvalid memory object\00"
@str.71 = [22 x i8] c"\0AInvalid host pointer\00"
@str.72 = [23 x i8] c"\0AInvalid command queue\00"
@str.73 = [26 x i8] c"\0AInvalid queue properties\00"
@str.74 = [17 x i8] c"\0AInvalid context\00"
@str.75 = [16 x i8] c"\0AInvalid device\00"
@str.76 = [18 x i8] c"\0AInvalid platform\00"
@str.77 = [21 x i8] c"\0AInvalid device type\00"
@str.78 = [15 x i8] c"\0AInvalid value\00"
@str.79 = [13 x i8] c"\0AMap failure\00"
@str.80 = [23 x i8] c"\0AProgram build failure\00"
@str.81 = [28 x i8] c"\0AImage format not supported\00"
@str.82 = [23 x i8] c"\0AImage format mismatch\00"
@str.83 = [21 x i8] c"\0AMemory copy overlap\00"
@str.84 = [37 x i8] c"\0AProfiling information not available\00"
@str.85 = [20 x i8] c"\0AOut of host memory\00"
@str.86 = [18 x i8] c"\0AOut of resources\00"
@str.87 = [34 x i8] c"\0AMemory object allocation failure\00"
@str.88 = [24 x i8] c"\0ACompiler not available\00"
@str.89 = [22 x i8] c"\0ADevice not available\00"
@str.90 = [19 x i8] c"\0ADevice not found.\00"
@str.91 = [10 x i8] c"\0ASuccess!\00"
@str.92 = [9 x i8] c"\0AUnknown\00"
@reltable.printError = [46 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.91 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @str.84 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.86 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.85 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @str.87 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.83 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @str.79 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.53 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.54 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.55 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @str.78 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.67 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @str.73 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @str.63 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.64 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.76 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.49 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.70 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.62 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @str.61 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @str.56 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @str.60 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.68 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @str.69 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.71 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.48 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.52 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.51 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @str.50 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.77 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @str.75 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.74 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.72 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.65 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.47 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @str.66 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.58 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.57 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.59 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @str.81 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.82 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.90 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.89 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.88 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.80 to i64), i64 ptrtoint ([46 x i32]* @reltable.printError to i64)) to i32)]
define void @printError(i32 %0) {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 46
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([46 x i32]* @reltable.printError to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.92, i64 0, i64 0), %1 ]
%10 = tail call i32 @puts(i8* dereferenceable(1) %9)
ret void
}