#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 174
#define CL_COMPILER_NOT_AVAILABLE 173
#define CL_DEVICE_NOT_AVAILABLE 172
#define CL_DEVICE_NOT_FOUND 171
#define CL_IMAGE_FORMAT_MISMATCH 170
#define CL_IMAGE_FORMAT_NOT_SUPPORTED 169
#define CL_INVALID_ARG_INDEX 168
#define CL_INVALID_ARG_SIZE 167
#define CL_INVALID_ARG_VALUE 166
#define CL_INVALID_BINARY 165
#define CL_INVALID_BUFFER_SIZE 164
#define CL_INVALID_BUILD_OPTIONS 163
#define CL_INVALID_COMMAND_QUEUE 162
#define CL_INVALID_CONTEXT 161
#define CL_INVALID_DEVICE 160
#define CL_INVALID_DEVICE_TYPE 159
#define CL_INVALID_EVENT 158
#define CL_INVALID_EVENT_WAIT_LIST 157
#define CL_INVALID_GLOBAL_OFFSET 156
#define CL_INVALID_GLOBAL_WORK_SIZE 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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void fatal_CL(cl_int error, int line_no) {
  printf("Error at line %d: ", line_no);
  switch (error) {
  case CL_SUCCESS:
    printf("CL_SUCCESS\n");
    break;
  case CL_DEVICE_NOT_FOUND:
    printf("CL_DEVICE_NOT_FOUND\n");
    break;
  case CL_DEVICE_NOT_AVAILABLE:
    printf("CL_DEVICE_NOT_AVAILABLE\n");
    break;
  case CL_COMPILER_NOT_AVAILABLE:
    printf("CL_COMPILER_NOT_AVAILABLE\n");
    break;
  case CL_MEM_OBJECT_ALLOCATION_FAILURE:
    printf("CL_MEM_OBJECT_ALLOCATION_FAILURE\n");
    break;
  case CL_OUT_OF_RESOURCES:
    printf("CL_OUT_OF_RESOURCES\n");
    break;
  case CL_OUT_OF_HOST_MEMORY:
    printf("CL_OUT_OF_HOST_MEMORY\n");
    break;
  case CL_PROFILING_INFO_NOT_AVAILABLE:
    printf("CL_PROFILING_INFO_NOT_AVAILABLE\n");
    break;
  case CL_MEM_COPY_OVERLAP:
    printf("CL_MEM_COPY_OVERLAP\n");
    break;
  case CL_IMAGE_FORMAT_MISMATCH:
    printf("CL_IMAGE_FORMAT_MISMATCH\n");
    break;
  case CL_IMAGE_FORMAT_NOT_SUPPORTED:
    printf("CL_IMAGE_FORMAT_NOT_SUPPORTED\n");
    break;
  case CL_BUILD_PROGRAM_FAILURE:
    printf("CL_BUILD_PROGRAM_FAILURE\n");
    break;
  case CL_MAP_FAILURE:
    printf("CL_MAP_FAILURE\n");
    break;
  case CL_INVALID_VALUE:
    printf("CL_INVALID_VALUE\n");
    break;
  case CL_INVALID_DEVICE_TYPE:
    printf("CL_INVALID_DEVICE_TYPE\n");
    break;
  case CL_INVALID_PLATFORM:
    printf("CL_INVALID_PLATFORM\n");
    break;
  case CL_INVALID_DEVICE:
    printf("CL_INVALID_DEVICE\n");
    break;
  case CL_INVALID_CONTEXT:
    printf("CL_INVALID_CONTEXT\n");
    break;
  case CL_INVALID_QUEUE_PROPERTIES:
    printf("CL_INVALID_QUEUE_PROPERTIES\n");
    break;
  case CL_INVALID_COMMAND_QUEUE:
    printf("CL_INVALID_COMMAND_QUEUE\n");
    break;
  case CL_INVALID_HOST_PTR:
    printf("CL_INVALID_HOST_PTR\n");
    break;
  case CL_INVALID_MEM_OBJECT:
    printf("CL_INVALID_MEM_OBJECT\n");
    break;
  case CL_INVALID_IMAGE_FORMAT_DESCRIPTOR:
    printf("CL_INVALID_IMAGE_FORMAT_DESCRIPTOR\n");
    break;
  case CL_INVALID_IMAGE_SIZE:
    printf("CL_INVALID_IMAGE_SIZE\n");
    break;
  case CL_INVALID_SAMPLER:
    printf("CL_INVALID_SAMPLER\n");
    break;
  case CL_INVALID_BINARY:
    printf("CL_INVALID_BINARY\n");
    break;
  case CL_INVALID_BUILD_OPTIONS:
    printf("CL_INVALID_BUILD_OPTIONS\n");
    break;
  case CL_INVALID_PROGRAM:
    printf("CL_INVALID_PROGRAM\n");
    break;
  case CL_INVALID_PROGRAM_EXECUTABLE:
    printf("CL_INVALID_PROGRAM_EXECUTABLE\n");
    break;
  case CL_INVALID_KERNEL_NAME:
    printf("CL_INVALID_KERNEL_NAME\n");
    break;
  case CL_INVALID_KERNEL_DEFINITION:
    printf("CL_INVALID_KERNEL_DEFINITION\n");
    break;
  case CL_INVALID_KERNEL:
    printf("CL_INVALID_KERNEL\n");
    break;
  case CL_INVALID_ARG_INDEX:
    printf("CL_INVALID_ARG_INDEX\n");
    break;
  case CL_INVALID_ARG_VALUE:
    printf("CL_INVALID_ARG_VALUE\n");
    break;
  case CL_INVALID_ARG_SIZE:
    printf("CL_INVALID_ARG_SIZE\n");
    break;
  case CL_INVALID_KERNEL_ARGS:
    printf("CL_INVALID_KERNEL_ARGS\n");
    break;
  case CL_INVALID_WORK_DIMENSION:
    printf("CL_INVALID_WORK_DIMENSION\n");
    break;
  case CL_INVALID_WORK_GROUP_SIZE:
    printf("CL_INVALID_WORK_GROUP_SIZE\n");
    break;
  case CL_INVALID_WORK_ITEM_SIZE:
    printf("CL_INVALID_WORK_ITEM_SIZE\n");
    break;
  case CL_INVALID_GLOBAL_OFFSET:
    printf("CL_INVALID_GLOBAL_OFFSET\n");
    break;
  case CL_INVALID_EVENT_WAIT_LIST:
    printf("CL_INVALID_EVENT_WAIT_LIST\n");
    break;
  case CL_INVALID_EVENT:
    printf("CL_INVALID_EVENT\n");
    break;
  case CL_INVALID_OPERATION:
    printf("CL_INVALID_OPERATION\n");
    break;
  case CL_INVALID_GL_OBJECT:
    printf("CL_INVALID_GL_OBJECT\n");
    break;
  case CL_INVALID_BUFFER_SIZE:
    printf("CL_INVALID_BUFFER_SIZE\n");
    break;
  case CL_INVALID_MIP_LEVEL:
    printf("CL_INVALID_MIP_LEVEL\n");
    break;
  case CL_INVALID_GLOBAL_WORK_SIZE:
    printf("CL_INVALID_GLOBAL_WORK_SIZE\n");
    break;
  default:
    printf("Invalid OpenCL error code\n");
  }
  exit(error);
}


x86 assembly (clang, -O0):
<fatal_CL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xf84(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x2e,%eax
ja     14e5 <fatal_CL+0x3c5>
mov    -0x10(%rbp),%rax
lea    0xea1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfa8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfa5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfa4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfa9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfbf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfe0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfe1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xff2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xffd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0xffd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1000(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1005(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x100a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x101b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x102a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1033(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1035(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1038(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x103d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x1040(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f3 <fatal_CL+0x3d3>
lea    0x104a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fatal_CL>:
push   %rbx
mov    %edi,%ebx
lea    0xec6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x80(%rbx),%eax
cmp    $0x2e,%eax
ja     115b <fatal_CL+0x2b>
cltq
lea    0x1316(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1162 <fatal_CL+0x32>
lea    0x12e9(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Error at line %d: \00"
@.str.1 = [12 x i8] c"CL_SUCCESS\0A\00"
@.str.2 = [21 x i8] c"CL_DEVICE_NOT_FOUND\0A\00"
@.str.3 = [25 x i8] c"CL_DEVICE_NOT_AVAILABLE\0A\00"
@.str.4 = [27 x i8] c"CL_COMPILER_NOT_AVAILABLE\0A\00"
@.str.5 = [34 x i8] c"CL_MEM_OBJECT_ALLOCATION_FAILURE\0A\00"
@.str.6 = [21 x i8] c"CL_OUT_OF_RESOURCES\0A\00"
@.str.7 = [23 x i8] c"CL_OUT_OF_HOST_MEMORY\0A\00"
@.str.8 = [33 x i8] c"CL_PROFILING_INFO_NOT_AVAILABLE\0A\00"
@.str.9 = [21 x i8] c"CL_MEM_COPY_OVERLAP\0A\00"
@.str.10 = [26 x i8] c"CL_IMAGE_FORMAT_MISMATCH\0A\00"
@.str.11 = [31 x i8] c"CL_IMAGE_FORMAT_NOT_SUPPORTED\0A\00"
@.str.12 = [26 x i8] c"CL_BUILD_PROGRAM_FAILURE\0A\00"
@.str.13 = [16 x i8] c"CL_MAP_FAILURE\0A\00"
@.str.14 = [18 x i8] c"CL_INVALID_VALUE\0A\00"
@.str.15 = [24 x i8] c"CL_INVALID_DEVICE_TYPE\0A\00"
@.str.16 = [21 x i8] c"CL_INVALID_PLATFORM\0A\00"
@.str.17 = [19 x i8] c"CL_INVALID_DEVICE\0A\00"
@.str.18 = [20 x i8] c"CL_INVALID_CONTEXT\0A\00"
@.str.19 = [29 x i8] c"CL_INVALID_QUEUE_PROPERTIES\0A\00"
@.str.20 = [26 x i8] c"CL_INVALID_COMMAND_QUEUE\0A\00"
@.str.21 = [21 x i8] c"CL_INVALID_HOST_PTR\0A\00"
@.str.22 = [23 x i8] c"CL_INVALID_MEM_OBJECT\0A\00"
@.str.23 = [36 x i8] c"CL_INVALID_IMAGE_FORMAT_DESCRIPTOR\0A\00"
@.str.24 = [23 x i8] c"CL_INVALID_IMAGE_SIZE\0A\00"
@.str.25 = [20 x i8] c"CL_INVALID_SAMPLER\0A\00"
@.str.26 = [19 x i8] c"CL_INVALID_BINARY\0A\00"
@.str.27 = [26 x i8] c"CL_INVALID_BUILD_OPTIONS\0A\00"
@.str.28 = [20 x i8] c"CL_INVALID_PROGRAM\0A\00"
@.str.29 = [31 x i8] c"CL_INVALID_PROGRAM_EXECUTABLE\0A\00"
@.str.30 = [24 x i8] c"CL_INVALID_KERNEL_NAME\0A\00"
@.str.31 = [30 x i8] c"CL_INVALID_KERNEL_DEFINITION\0A\00"
@.str.32 = [19 x i8] c"CL_INVALID_KERNEL\0A\00"
@.str.33 = [22 x i8] c"CL_INVALID_ARG_INDEX\0A\00"
@.str.34 = [22 x i8] c"CL_INVALID_ARG_VALUE\0A\00"
@.str.35 = [21 x i8] c"CL_INVALID_ARG_SIZE\0A\00"
@.str.36 = [24 x i8] c"CL_INVALID_KERNEL_ARGS\0A\00"
@.str.37 = [27 x i8] c"CL_INVALID_WORK_DIMENSION\0A\00"
@.str.38 = [28 x i8] c"CL_INVALID_WORK_GROUP_SIZE\0A\00"
@.str.39 = [27 x i8] c"CL_INVALID_WORK_ITEM_SIZE\0A\00"
@.str.40 = [26 x i8] c"CL_INVALID_GLOBAL_OFFSET\0A\00"
@.str.41 = [28 x i8] c"CL_INVALID_EVENT_WAIT_LIST\0A\00"
@.str.42 = [18 x i8] c"CL_INVALID_EVENT\0A\00"
@.str.43 = [22 x i8] c"CL_INVALID_OPERATION\0A\00"
@.str.44 = [22 x i8] c"CL_INVALID_GL_OBJECT\0A\00"
@.str.45 = [24 x i8] c"CL_INVALID_BUFFER_SIZE\0A\00"
@.str.46 = [22 x i8] c"CL_INVALID_MIP_LEVEL\0A\00"
@.str.47 = [29 x i8] c"CL_INVALID_GLOBAL_WORK_SIZE\0A\00"
@.str.48 = [27 x i8] c"Invalid OpenCL error code\0A\00"
define void @fatal_CL(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* %3
switch i32 %7, label %102 [
i32 128, label %8
i32 171, label %10
i32 172, label %12
i32 173, label %14
i32 132, label %16
i32 130, label %18
i32 131, label %20
i32 129, label %22
i32 133, label %24
i32 170, label %26
i32 169, label %28
i32 174, label %30
i32 134, label %32
i32 138, label %34
i32 159, label %36
i32 143, label %38
i32 160, label %40
i32 161, label %42
i32 140, label %44
i32 162, label %46
i32 153, label %48
i32 146, label %50
i32 152, label %52
i32 151, label %54
i32 139, label %56
i32 165, label %58
i32 163, label %60
i32 142, label %62
i32 141, label %64
i32 147, label %66
i32 148, label %68
i32 150, label %70
i32 168, label %72
i32 166, label %74
i32 167, label %76
i32 149, label %78
i32 137, label %80
i32 136, label %82
i32 135, label %84
i32 156, label %86
i32 157, label %88
i32 158, label %90
i32 144, label %92
i32 154, label %94
i32 164, label %96
i32 145, label %98
i32 155, label %100
]
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %104
10: ; preds = %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %104
12: ; preds = %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
br label %104
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
br label %104
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
br label %104
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
br label %104
20: ; preds = %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
br label %104
22: ; preds = %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
br label %104
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
br label %104
26: ; preds = %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
br label %104
28: ; preds = %2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
br label %104
30: ; preds = %2
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
br label %104
32: ; preds = %2
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %104
34: ; preds = %2
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
br label %104
36: ; preds = %2
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
br label %104
38: ; preds = %2
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
br label %104
40: ; preds = %2
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0))
br label %104
42: ; preds = %2
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
br label %104
44: ; preds = %2
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
br label %104
46: ; preds = %2
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0))
br label %104
48: ; preds = %2
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0))
br label %104
50: ; preds = %2
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0))
br label %104
52: ; preds = %2
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.23, i64 0, i64 0))
br label %104
54: ; preds = %2
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0))
br label %104
56: ; preds = %2
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0))
br label %104
58: ; preds = %2
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.26, i64 0, i64 0))
br label %104
60: ; preds = %2
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0))
br label %104
62: ; preds = %2
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i64 0, i64 0))
br label %104
64: ; preds = %2
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0))
br label %104
66: ; preds = %2
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.30, i64 0, i64 0))
br label %104
68: ; preds = %2
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.31, i64 0, i64 0))
br label %104
70: ; preds = %2
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.32, i64 0, i64 0))
br label %104
72: ; preds = %2
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.33, i64 0, i64 0))
br label %104
74: ; preds = %2
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.34, i64 0, i64 0))
br label %104
76: ; preds = %2
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.35, i64 0, i64 0))
br label %104
78: ; preds = %2
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.36, i64 0, i64 0))
br label %104
80: ; preds = %2
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.37, i64 0, i64 0))
br label %104
82: ; preds = %2
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.38, i64 0, i64 0))
br label %104
84: ; preds = %2
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.39, i64 0, i64 0))
br label %104
86: ; preds = %2
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0))
br label %104
88: ; preds = %2
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.41, i64 0, i64 0))
br label %104
90: ; preds = %2
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.42, i64 0, i64 0))
br label %104
92: ; preds = %2
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.43, i64 0, i64 0))
br label %104
94: ; preds = %2
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.44, i64 0, i64 0))
br label %104
96: ; preds = %2
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.45, i64 0, i64 0))
br label %104
98: ; preds = %2
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.46, i64 0, i64 0))
br label %104
100: ; preds = %2
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.47, i64 0, i64 0))
br label %104
102: ; preds = %2
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.48, i64 0, i64 0))
br label %104
104: ; preds = %102, %100, %98, %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
%105 = load i32, i32* %3
%106 = call i32 @exit(i32 %105)
unreachable
}

LLVM IR (-O2):
@.str = [19 x i8] c"Error at line %d: \00"
@str = [28 x i8] c"CL_INVALID_GLOBAL_WORK_SIZE\00"
@str.49 = [21 x i8] c"CL_INVALID_MIP_LEVEL\00"
@str.50 = [23 x i8] c"CL_INVALID_BUFFER_SIZE\00"
@str.51 = [21 x i8] c"CL_INVALID_GL_OBJECT\00"
@str.52 = [21 x i8] c"CL_INVALID_OPERATION\00"
@str.53 = [17 x i8] c"CL_INVALID_EVENT\00"
@str.54 = [27 x i8] c"CL_INVALID_EVENT_WAIT_LIST\00"
@str.55 = [25 x i8] c"CL_INVALID_GLOBAL_OFFSET\00"
@str.56 = [26 x i8] c"CL_INVALID_WORK_ITEM_SIZE\00"
@str.57 = [27 x i8] c"CL_INVALID_WORK_GROUP_SIZE\00"
@str.58 = [26 x i8] c"CL_INVALID_WORK_DIMENSION\00"
@str.59 = [23 x i8] c"CL_INVALID_KERNEL_ARGS\00"
@str.60 = [20 x i8] c"CL_INVALID_ARG_SIZE\00"
@str.61 = [21 x i8] c"CL_INVALID_ARG_VALUE\00"
@str.62 = [21 x i8] c"CL_INVALID_ARG_INDEX\00"
@str.63 = [18 x i8] c"CL_INVALID_KERNEL\00"
@str.64 = [29 x i8] c"CL_INVALID_KERNEL_DEFINITION\00"
@str.65 = [23 x i8] c"CL_INVALID_KERNEL_NAME\00"
@str.66 = [30 x i8] c"CL_INVALID_PROGRAM_EXECUTABLE\00"
@str.67 = [19 x i8] c"CL_INVALID_PROGRAM\00"
@str.68 = [25 x i8] c"CL_INVALID_BUILD_OPTIONS\00"
@str.69 = [18 x i8] c"CL_INVALID_BINARY\00"
@str.70 = [19 x i8] c"CL_INVALID_SAMPLER\00"
@str.71 = [22 x i8] c"CL_INVALID_IMAGE_SIZE\00"
@str.72 = [35 x i8] c"CL_INVALID_IMAGE_FORMAT_DESCRIPTOR\00"
@str.73 = [22 x i8] c"CL_INVALID_MEM_OBJECT\00"
@str.74 = [20 x i8] c"CL_INVALID_HOST_PTR\00"
@str.75 = [25 x i8] c"CL_INVALID_COMMAND_QUEUE\00"
@str.76 = [28 x i8] c"CL_INVALID_QUEUE_PROPERTIES\00"
@str.77 = [19 x i8] c"CL_INVALID_CONTEXT\00"
@str.78 = [18 x i8] c"CL_INVALID_DEVICE\00"
@str.79 = [20 x i8] c"CL_INVALID_PLATFORM\00"
@str.80 = [23 x i8] c"CL_INVALID_DEVICE_TYPE\00"
@str.81 = [17 x i8] c"CL_INVALID_VALUE\00"
@str.82 = [15 x i8] c"CL_MAP_FAILURE\00"
@str.83 = [25 x i8] c"CL_BUILD_PROGRAM_FAILURE\00"
@str.84 = [30 x i8] c"CL_IMAGE_FORMAT_NOT_SUPPORTED\00"
@str.85 = [25 x i8] c"CL_IMAGE_FORMAT_MISMATCH\00"
@str.86 = [20 x i8] c"CL_MEM_COPY_OVERLAP\00"
@str.87 = [32 x i8] c"CL_PROFILING_INFO_NOT_AVAILABLE\00"
@str.88 = [22 x i8] c"CL_OUT_OF_HOST_MEMORY\00"
@str.89 = [20 x i8] c"CL_OUT_OF_RESOURCES\00"
@str.90 = [33 x i8] c"CL_MEM_OBJECT_ALLOCATION_FAILURE\00"
@str.91 = [26 x i8] c"CL_COMPILER_NOT_AVAILABLE\00"
@str.92 = [24 x i8] c"CL_DEVICE_NOT_AVAILABLE\00"
@str.93 = [20 x i8] c"CL_DEVICE_NOT_FOUND\00"
@str.94 = [11 x i8] c"CL_SUCCESS\00"
@str.95 = [26 x i8] c"Invalid OpenCL error code\00"
@reltable.fatal_CL = [47 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.94 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @str.87 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.89 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.88 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @str.90 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.86 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @str.82 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @str.56 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @str.57 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @str.58 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.81 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.70 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @str.76 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @str.66 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.67 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.79 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.52 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.49 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.73 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.65 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @str.64 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.59 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.63 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str.71 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.72 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.74 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.51 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @str to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.55 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @str.54 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @str.53 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.80 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.78 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @str.77 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.75 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.68 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @str.50 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @str.69 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.61 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.60 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str.62 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @str.84 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.85 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @str.93 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @str.92 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @str.91 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @str.83 to i64), i64 ptrtoint ([47 x i32]* @reltable.fatal_CL to i64)) to i32)]
define void @fatal_CL(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %1)
%4 = add i32 %0, -128
%5 = icmp ult i32 %4, 47
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = sext i32 %4 to i64
%8 = shl i64 %7, 2
%9 = call i8* @llvm.load.relative.i64(i8* bitcast ([47 x i32]* @reltable.fatal_CL to i8*), i64 %8)
br label %10
10: ; preds = %2, %6
%11 = phi i8* [ %9, %6 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.95, i64 0, i64 0), %2 ]
%12 = tail call i32 @puts(i8* dereferenceable(1) %11)
%13 = tail call i32 @exit(i32 %0)
unreachable
}