#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 176
#define CL_COMPILER_NOT_AVAILABLE 175
#define CL_DEVICE_NOT_AVAILABLE 174
#define CL_DEVICE_NOT_FOUND 173
#define CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST 172
#define CL_IMAGE_FORMAT_MISMATCH 171
#define CL_IMAGE_FORMAT_NOT_SUPPORTED 170
#define CL_INVALID_ARG_INDEX 169
#define CL_INVALID_ARG_SIZE 168
#define CL_INVALID_ARG_VALUE 167
#define CL_INVALID_BINARY 166
#define CL_INVALID_BUFFER_SIZE 165
#define CL_INVALID_BUILD_OPTIONS 164
#define CL_INVALID_COMMAND_QUEUE 163
#define CL_INVALID_CONTEXT 162
#define CL_INVALID_DEVICE 161
#define CL_INVALID_DEVICE_TYPE 160
#define CL_INVALID_EVENT 159
#define CL_INVALID_EVENT_WAIT_LIST 158
#define CL_INVALID_GLOBAL_OFFSET 157
#define CL_INVALID_GLOBAL_WORK_SIZE 156
#define CL_INVALID_GL_OBJECT 155
#define CL_INVALID_HOST_PTR 154
#define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR 153
#define CL_INVALID_IMAGE_SIZE 152
#define CL_INVALID_KERNEL 151
#define CL_INVALID_KERNEL_ARGS 150
#define CL_INVALID_KERNEL_DEFINITION 149
#define CL_INVALID_KERNEL_NAME 148
#define CL_INVALID_MEM_OBJECT 147
#define CL_INVALID_MIP_LEVEL 146
#define CL_INVALID_OPERATION 145
#define CL_INVALID_PLATFORM 144
#define CL_INVALID_PROGRAM 143
#define CL_INVALID_PROGRAM_EXECUTABLE 142
#define CL_INVALID_QUEUE_PROPERTIES 141
#define CL_INVALID_SAMPLER 140
#define CL_INVALID_VALUE 139
#define CL_INVALID_WORK_DIMENSION 138
#define CL_INVALID_WORK_GROUP_SIZE 137
#define CL_INVALID_WORK_ITEM_SIZE 136
#define CL_MAP_FAILURE 135
#define CL_MEM_COPY_OVERLAP 134
#define CL_MEM_OBJECT_ALLOCATION_FAILURE 133
#define CL_MISALIGNED_SUB_BUFFER_OFFSET 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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void oclCheckStatus(cl_int status, char *message) {
  if (status != CL_SUCCESS) {
    fprintf(stderr, "%s\n", message);
    switch (status) {
    case CL_SUCCESS:
      break;
    case CL_DEVICE_NOT_FOUND:
      fprintf(stderr, "device not found");
      break;
    case CL_DEVICE_NOT_AVAILABLE:
      fprintf(stderr, "device not available");
      break;
    case CL_COMPILER_NOT_AVAILABLE:
      fprintf(stderr, "compiler not available");
      break;
    case CL_MEM_OBJECT_ALLOCATION_FAILURE:
      fprintf(stderr, "memory object allocation failure");
      break;
    case CL_OUT_OF_RESOURCES:
      fprintf(stderr, "out of resources");
      break;
    case CL_OUT_OF_HOST_MEMORY:
      fprintf(stderr, "out of host memory");
      break;
    case CL_PROFILING_INFO_NOT_AVAILABLE:
      fprintf(stderr, "profiling info not available");
      break;
    case CL_MEM_COPY_OVERLAP:
      fprintf(stderr, "memory copy overlap");
      break;
    case CL_IMAGE_FORMAT_MISMATCH:
      fprintf(stderr, "image format mismatch");
      break;
    case CL_IMAGE_FORMAT_NOT_SUPPORTED:
      fprintf(stderr, "image format not supported");
      break;
    case CL_BUILD_PROGRAM_FAILURE:
      fprintf(stderr, "build program failure");
      break;
    case CL_MAP_FAILURE:
      fprintf(stderr, "map failure");
      break;
    case CL_MISALIGNED_SUB_BUFFER_OFFSET:
      fprintf(stderr, "misaligned sub-buffer offset");
      break;
    case CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST:
      fprintf(stderr, "execution status error for events in wait list");
      break;
    case CL_INVALID_VALUE:
      fprintf(stderr, "invalid value");
      break;
    case CL_INVALID_DEVICE_TYPE:
      fprintf(stderr, "invalid device type");
      break;
    case CL_INVALID_PLATFORM:
      fprintf(stderr, "invalid platform");
      break;
    case CL_INVALID_DEVICE:
      fprintf(stderr, "invalid device");
      break;
    case CL_INVALID_CONTEXT:
      fprintf(stderr, "invalid context");
      break;
    case CL_INVALID_QUEUE_PROPERTIES:
      fprintf(stderr, "invalid queue properties");
      break;
    case CL_INVALID_COMMAND_QUEUE:
      fprintf(stderr, "invalid command queue");
      break;
    case CL_INVALID_HOST_PTR:
      fprintf(stderr, "invalid host pointer");
      break;
    case CL_INVALID_MEM_OBJECT:
      fprintf(stderr, "invalid memory object");
      break;
    case CL_INVALID_IMAGE_FORMAT_DESCRIPTOR:
      fprintf(stderr, "invalid format descriptor");
      break;
    case CL_INVALID_IMAGE_SIZE:
      fprintf(stderr, "invalid image size");
      break;
    case CL_INVALID_SAMPLER:
      fprintf(stderr, "invalid sampler");
      break;
    case CL_INVALID_BINARY:
      fprintf(stderr, "invalid binary");
      break;
    case CL_INVALID_BUILD_OPTIONS:
      fprintf(stderr, "invalid build options");
      break;
    case CL_INVALID_PROGRAM:
      fprintf(stderr, "invalid program");
      break;
    case CL_INVALID_PROGRAM_EXECUTABLE:
      fprintf(stderr, "invalid program executable");
      break;
    case CL_INVALID_KERNEL_NAME:
      fprintf(stderr, "invalid kernel name");
      break;
    case CL_INVALID_KERNEL_DEFINITION:
      fprintf(stderr, "invalid kernel definition");
      break;
    case CL_INVALID_KERNEL:
      fprintf(stderr, "invalid kernel");
      break;
    case CL_INVALID_ARG_INDEX:
      fprintf(stderr, "invalid argument index");
      break;
    case CL_INVALID_ARG_VALUE:
      fprintf(stderr, "invalid argument value");
      break;
    case CL_INVALID_ARG_SIZE:
      fprintf(stderr, "invalid argument size");
      break;
    case CL_INVALID_KERNEL_ARGS:
      fprintf(stderr, "invalid kernel arguments");
      break;
    case CL_INVALID_WORK_DIMENSION:
      fprintf(stderr, "invalid work dimension");
      break;
    case CL_INVALID_WORK_GROUP_SIZE:
      fprintf(stderr, "invalid work-group size");
      break;
    case CL_INVALID_WORK_ITEM_SIZE:
      fprintf(stderr, "invalid work-item size");
      break;
    case CL_INVALID_GLOBAL_OFFSET:
      fprintf(stderr, "invalid global offset");
      break;
    case CL_INVALID_EVENT_WAIT_LIST:
      fprintf(stderr, "invalid event wait list");
      break;
    case CL_INVALID_EVENT:
      fprintf(stderr, "invalid event");
      break;
    case CL_INVALID_OPERATION:
      fprintf(stderr, "invalid operation");
      break;
    case CL_INVALID_GL_OBJECT:
      fprintf(stderr, "invalid GL object");
      break;
    case CL_INVALID_BUFFER_SIZE:
      fprintf(stderr, "invalid buffer size");
      break;
    case CL_INVALID_MIP_LEVEL:
      fprintf(stderr, "invalid Mip level");
      break;
    case CL_INVALID_GLOBAL_WORK_SIZE:
      fprintf(stderr, "invalid global work size");
      break;
    default:
      fprintf(stderr, "Unknown error (%d)", status);
    }
    fprintf(stderr, "\n");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<oclCheckStatus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x80,-0x4(%rbp)
je     1700 <oclCheckStatus+0x5e0>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xf74(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x30,%eax
ja     16c5 <oclCheckStatus+0x5a5>
mov    -0x18(%rbp),%rax
lea    0xe89(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2e54(%rip),%rax
mov    (%rax),%edi
lea    0xf33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
lea    0xf28(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2e1c(%rip),%rax
mov    (%rax),%edi
lea    0xf21(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
lea    0xf1c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xf21(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
lea    0xf16(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
lea    0xf0d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d90(%rip),%rax
mov    (%rax),%edi
lea    0xf0e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d58(%rip),%rax
mov    (%rax),%edi
lea    0xf00(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d3c(%rip),%rax
mov    (%rax),%edi
lea    0xeff(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d20(%rip),%rax
mov    (%rax),%edi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2ce8(%rip),%rax
mov    (%rax),%edi
lea    0xeea(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2ccc(%rip),%rax
mov    (%rax),%edi
lea    0xefd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
lea    0xeef(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xee7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c78(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c40(%rip),%rax
mov    (%rax),%edi
lea    0xec3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2c08(%rip),%rax
mov    (%rax),%edi
lea    0xeba(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2bec(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2bd0(%rip),%rax
mov    (%rax),%edi
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2bb4(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b98(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b7c(%rip),%rax
mov    (%rax),%edi
lea    0xe96(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b60(%rip),%rax
mov    (%rax),%edi
lea    0xe89(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b44(%rip),%rax
mov    (%rax),%edi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b28(%rip),%rax
mov    (%rax),%edi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2b0c(%rip),%rax
mov    (%rax),%edi
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2af0(%rip),%rax
mov    (%rax),%edi
lea    0xe6e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2ad4(%rip),%rax
mov    (%rax),%edi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2ab8(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a9c(%rip),%rax
mov    (%rax),%edi
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a80(%rip),%rax
mov    (%rax),%edi
lea    0xe55(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a64(%rip),%rax
mov    (%rax),%edi
lea    0xe4f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a48(%rip),%rax
mov    (%rax),%edi
lea    0xe4c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a2c(%rip),%rax
mov    (%rax),%edi
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2a10(%rip),%rax
mov    (%rax),%edi
lea    0xe43(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x29f4(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x29d8(%rip),%rax
mov    (%rax),%edi
lea    0xe38(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x29bc(%rip),%rax
mov    (%rax),%edi
lea    0xe34(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x29a0(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2984(%rip),%rax
mov    (%rax),%edi
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2968(%rip),%rax
mov    (%rax),%edi
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x294c(%rip),%rax
mov    (%rax),%edi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2930(%rip),%rax
mov    (%rax),%edi
lea    0xe00(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    16df <oclCheckStatus+0x5bf>
mov    0x2914(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x28fa(%rip),%rax
mov    (%rax),%edi
lea    0x9d7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<oclCheckStatus>:
cmp    $0x80,%edi
jne    1129 <oclCheckStatus+0x9>
ret
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rdx
mov    %edi,%ebx
mov    0x2ea7(%rip),%r14
mov    (%r14),%edi
lea    0xf7d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    -0x81(%rbx),%eax
cmp    $0x2f,%eax
ja     1174 <oclCheckStatus+0x54>
lea    0xea4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    (%r14),%edi
lea    0xfd7(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1350(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
jmp    1431 <oclCheckStatus+0x311>
mov    (%r14),%edi
lea    0xf8c(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf8e(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1016(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf3e(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf91(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xfdd(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1228(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1201(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x11db(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xff9(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10c3(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x102d(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10ea(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10cb(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xfd0(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x11f4(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x121d(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1017(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10ab(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10b0(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x110e(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10ac(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xffc(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xfd3(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf99(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1170(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1199(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1104(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x110b(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x1114(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xecc(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xee2(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xee2(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xefc(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf7a(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0x10ec(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xf4d(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xfe5(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xff0(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xfb6(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xdab(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xd89(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xded(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xcbe(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xcc3(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xccc(%rip),%rsi
jmp    142a <oclCheckStatus+0x30a>
mov    (%r14),%edi
lea    0xd7e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xc87(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [17 x i8] c"device not found\00"
@.str.2 = [21 x i8] c"device not available\00"
@.str.3 = [23 x i8] c"compiler not available\00"
@.str.4 = [33 x i8] c"memory object allocation failure\00"
@.str.5 = [17 x i8] c"out of resources\00"
@.str.6 = [19 x i8] c"out of host memory\00"
@.str.7 = [29 x i8] c"profiling info not available\00"
@.str.8 = [20 x i8] c"memory copy overlap\00"
@.str.9 = [22 x i8] c"image format mismatch\00"
@.str.10 = [27 x i8] c"image format not supported\00"
@.str.11 = [22 x i8] c"build program failure\00"
@.str.12 = [12 x i8] c"map failure\00"
@.str.13 = [29 x i8] c"misaligned sub-buffer offset\00"
@.str.14 = [47 x i8] c"execution status error for events in wait list\00"
@.str.15 = [14 x i8] c"invalid value\00"
@.str.16 = [20 x i8] c"invalid device type\00"
@.str.17 = [17 x i8] c"invalid platform\00"
@.str.18 = [15 x i8] c"invalid device\00"
@.str.19 = [16 x i8] c"invalid context\00"
@.str.20 = [25 x i8] c"invalid queue properties\00"
@.str.21 = [22 x i8] c"invalid command queue\00"
@.str.22 = [21 x i8] c"invalid host pointer\00"
@.str.23 = [22 x i8] c"invalid memory object\00"
@.str.24 = [26 x i8] c"invalid format descriptor\00"
@.str.25 = [19 x i8] c"invalid image size\00"
@.str.26 = [16 x i8] c"invalid sampler\00"
@.str.27 = [15 x i8] c"invalid binary\00"
@.str.28 = [22 x i8] c"invalid build options\00"
@.str.29 = [16 x i8] c"invalid program\00"
@.str.30 = [27 x i8] c"invalid program executable\00"
@.str.31 = [20 x i8] c"invalid kernel name\00"
@.str.32 = [26 x i8] c"invalid kernel definition\00"
@.str.33 = [15 x i8] c"invalid kernel\00"
@.str.34 = [23 x i8] c"invalid argument index\00"
@.str.35 = [23 x i8] c"invalid argument value\00"
@.str.36 = [22 x i8] c"invalid argument size\00"
@.str.37 = [25 x i8] c"invalid kernel arguments\00"
@.str.38 = [23 x i8] c"invalid work dimension\00"
@.str.39 = [24 x i8] c"invalid work-group size\00"
@.str.40 = [23 x i8] c"invalid work-item size\00"
@.str.41 = [22 x i8] c"invalid global offset\00"
@.str.42 = [24 x i8] c"invalid event wait list\00"
@.str.43 = [14 x i8] c"invalid event\00"
@.str.44 = [18 x i8] c"invalid operation\00"
@.str.45 = [18 x i8] c"invalid GL object\00"
@.str.46 = [20 x i8] c"invalid buffer size\00"
@.str.47 = [18 x i8] c"invalid Mip level\00"
@.str.48 = [25 x i8] c"invalid global work size\00"
@.str.49 = [19 x i8] c"Unknown error (%d)\00"
@.str.50 = [2 x i8] c"\0A\00"
define void @oclCheckStatus(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = icmp ne i32 %5, 128
br i1 %6, label %7, label %165
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %4
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* %3
switch i32 %11, label %157 [
i32 128, label %12
i32 173, label %13
i32 174, label %16
i32 175, label %19
i32 133, label %22
i32 130, label %25
i32 131, label %28
i32 129, label %31
i32 134, label %34
i32 171, label %37
i32 170, label %40
i32 176, label %43
i32 135, label %46
i32 132, label %49
i32 172, label %52
i32 139, label %55
i32 160, label %58
i32 144, label %61
i32 161, label %64
i32 162, label %67
i32 141, label %70
i32 163, label %73
i32 154, label %76
i32 147, label %79
i32 153, label %82
i32 152, label %85
i32 140, label %88
i32 166, label %91
i32 164, label %94
i32 143, label %97
i32 142, label %100
i32 148, label %103
i32 149, label %106
i32 151, label %109
i32 169, label %112
i32 167, label %115
i32 168, label %118
i32 150, label %121
i32 138, label %124
i32 137, label %127
i32 136, label %130
i32 157, label %133
i32 158, label %136
i32 159, label %139
i32 145, label %142
i32 155, label %145
i32 165, label %148
i32 146, label %151
i32 156, label %154
]
12: ; preds = %7
br label %161
13: ; preds = %7
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %161
16: ; preds = %7
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %161
19: ; preds = %7
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %161
22: ; preds = %7
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
br label %161
25: ; preds = %7
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
br label %161
28: ; preds = %7
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %161
31: ; preds = %7
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
br label %161
34: ; preds = %7
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
br label %161
37: ; preds = %7
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
br label %161
40: ; preds = %7
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
br label %161
43: ; preds = %7
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
br label %161
46: ; preds = %7
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %161
49: ; preds = %7
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0))
br label %161
52: ; preds = %7
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
br label %161
55: ; preds = %7
%56 = load i32, i32* @stderr
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
br label %161
58: ; preds = %7
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %161
61: ; preds = %7
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0))
br label %161
64: ; preds = %7
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
br label %161
67: ; preds = %7
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0))
br label %161
70: ; preds = %7
%71 = load i32, i32* @stderr
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0))
br label %161
73: ; preds = %7
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
br label %161
76: ; preds = %7
%77 = load i32, i32* @stderr
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0))
br label %161
79: ; preds = %7
%80 = load i32, i32* @stderr
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0))
br label %161
82: ; preds = %7
%83 = load i32, i32* @stderr
%84 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.24, i64 0, i64 0))
br label %161
85: ; preds = %7
%86 = load i32, i32* @stderr
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0))
br label %161
88: ; preds = %7
%89 = load i32, i32* @stderr
%90 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
br label %161
91: ; preds = %7
%92 = load i32, i32* @stderr
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0))
br label %161
94: ; preds = %7
%95 = load i32, i32* @stderr
%96 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0))
br label %161
97: ; preds = %7
%98 = load i32, i32* @stderr
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
br label %161
100: ; preds = %7
%101 = load i32, i32* @stderr
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.30, i64 0, i64 0))
br label %161
103: ; preds = %7
%104 = load i32, i32* @stderr
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0))
br label %161
106: ; preds = %7
%107 = load i32, i32* @stderr
%108 = call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.32, i64 0, i64 0))
br label %161
109: ; preds = %7
%110 = load i32, i32* @stderr
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.33, i64 0, i64 0))
br label %161
112: ; preds = %7
%113 = load i32, i32* @stderr
%114 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.34, i64 0, i64 0))
br label %161
115: ; preds = %7
%116 = load i32, i32* @stderr
%117 = call i32 (i32, i8*, ...) @fprintf(i32 %116, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0))
br label %161
118: ; preds = %7
%119 = load i32, i32* @stderr
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0))
br label %161
121: ; preds = %7
%122 = load i32, i32* @stderr
%123 = call i32 (i32, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0))
br label %161
124: ; preds = %7
%125 = load i32, i32* @stderr
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.38, i64 0, i64 0))
br label %161
127: ; preds = %7
%128 = load i32, i32* @stderr
%129 = call i32 (i32, i8*, ...) @fprintf(i32 %128, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.39, i64 0, i64 0))
br label %161
130: ; preds = %7
%131 = load i32, i32* @stderr
%132 = call i32 (i32, i8*, ...) @fprintf(i32 %131, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.40, i64 0, i64 0))
br label %161
133: ; preds = %7
%134 = load i32, i32* @stderr
%135 = call i32 (i32, i8*, ...) @fprintf(i32 %134, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.41, i64 0, i64 0))
br label %161
136: ; preds = %7
%137 = load i32, i32* @stderr
%138 = call i32 (i32, i8*, ...) @fprintf(i32 %137, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.42, i64 0, i64 0))
br label %161
139: ; preds = %7
%140 = load i32, i32* @stderr
%141 = call i32 (i32, i8*, ...) @fprintf(i32 %140, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.43, i64 0, i64 0))
br label %161
142: ; preds = %7
%143 = load i32, i32* @stderr
%144 = call i32 (i32, i8*, ...) @fprintf(i32 %143, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.44, i64 0, i64 0))
br label %161
145: ; preds = %7
%146 = load i32, i32* @stderr
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.45, i64 0, i64 0))
br label %161
148: ; preds = %7
%149 = load i32, i32* @stderr
%150 = call i32 (i32, i8*, ...) @fprintf(i32 %149, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0))
br label %161
151: ; preds = %7
%152 = load i32, i32* @stderr
%153 = call i32 (i32, i8*, ...) @fprintf(i32 %152, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.47, i64 0, i64 0))
br label %161
154: ; preds = %7
%155 = load i32, i32* @stderr
%156 = call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.48, i64 0, i64 0))
br label %161
157: ; preds = %7
%158 = load i32, i32* @stderr
%159 = load i32, i32* %3
%160 = call i32 (i32, i8*, ...) @fprintf(i32 %158, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.49, i64 0, i64 0), i32 %159)
br label %161
161: ; preds = %157, %154, %151, %148, %145, %142, %139, %136, %133, %130, %127, %124, %121, %118, %115, %112, %109, %106, %103, %100, %97, %94, %91, %88, %85, %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %12
%162 = load i32, i32* @stderr
%163 = call i32 (i32, i8*, ...) @fprintf(i32 %162, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.50, i64 0, i64 0))
%164 = call i32 @exit(i32 1)
unreachable
165: ; preds = %2
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [17 x i8] c"device not found\00"
@.str.2 = [21 x i8] c"device not available\00"
@.str.3 = [23 x i8] c"compiler not available\00"
@.str.4 = [33 x i8] c"memory object allocation failure\00"
@.str.5 = [17 x i8] c"out of resources\00"
@.str.6 = [19 x i8] c"out of host memory\00"
@.str.7 = [29 x i8] c"profiling info not available\00"
@.str.8 = [20 x i8] c"memory copy overlap\00"
@.str.9 = [22 x i8] c"image format mismatch\00"
@.str.10 = [27 x i8] c"image format not supported\00"
@.str.11 = [22 x i8] c"build program failure\00"
@.str.12 = [12 x i8] c"map failure\00"
@.str.13 = [29 x i8] c"misaligned sub-buffer offset\00"
@.str.14 = [47 x i8] c"execution status error for events in wait list\00"
@.str.15 = [14 x i8] c"invalid value\00"
@.str.16 = [20 x i8] c"invalid device type\00"
@.str.17 = [17 x i8] c"invalid platform\00"
@.str.18 = [15 x i8] c"invalid device\00"
@.str.19 = [16 x i8] c"invalid context\00"
@.str.20 = [25 x i8] c"invalid queue properties\00"
@.str.21 = [22 x i8] c"invalid command queue\00"
@.str.22 = [21 x i8] c"invalid host pointer\00"
@.str.23 = [22 x i8] c"invalid memory object\00"
@.str.24 = [26 x i8] c"invalid format descriptor\00"
@.str.25 = [19 x i8] c"invalid image size\00"
@.str.26 = [16 x i8] c"invalid sampler\00"
@.str.27 = [15 x i8] c"invalid binary\00"
@.str.28 = [22 x i8] c"invalid build options\00"
@.str.29 = [16 x i8] c"invalid program\00"
@.str.30 = [27 x i8] c"invalid program executable\00"
@.str.31 = [20 x i8] c"invalid kernel name\00"
@.str.32 = [26 x i8] c"invalid kernel definition\00"
@.str.33 = [15 x i8] c"invalid kernel\00"
@.str.34 = [23 x i8] c"invalid argument index\00"
@.str.35 = [23 x i8] c"invalid argument value\00"
@.str.36 = [22 x i8] c"invalid argument size\00"
@.str.37 = [25 x i8] c"invalid kernel arguments\00"
@.str.38 = [23 x i8] c"invalid work dimension\00"
@.str.39 = [24 x i8] c"invalid work-group size\00"
@.str.40 = [23 x i8] c"invalid work-item size\00"
@.str.41 = [22 x i8] c"invalid global offset\00"
@.str.42 = [24 x i8] c"invalid event wait list\00"
@.str.43 = [14 x i8] c"invalid event\00"
@.str.44 = [18 x i8] c"invalid operation\00"
@.str.45 = [18 x i8] c"invalid GL object\00"
@.str.46 = [20 x i8] c"invalid buffer size\00"
@.str.47 = [18 x i8] c"invalid Mip level\00"
@.str.48 = [25 x i8] c"invalid global work size\00"
@.str.49 = [19 x i8] c"Unknown error (%d)\00"
@.str.50 = [2 x i8] c"\0A\00"
define void @oclCheckStatus(i32 %0, i8* %1) {
%3 = icmp eq i32 %0, 128
br i1 %3, label %158, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
switch i32 %0, label %151 [
i32 156, label %148
i32 173, label %7
i32 174, label %10
i32 175, label %13
i32 133, label %16
i32 130, label %19
i32 131, label %22
i32 129, label %25
i32 134, label %28
i32 171, label %31
i32 170, label %34
i32 176, label %37
i32 135, label %40
i32 132, label %43
i32 172, label %46
i32 139, label %49
i32 160, label %52
i32 144, label %55
i32 161, label %58
i32 162, label %61
i32 141, label %64
i32 163, label %67
i32 154, label %70
i32 147, label %73
i32 153, label %76
i32 152, label %79
i32 140, label %82
i32 166, label %85
i32 164, label %88
i32 143, label %91
i32 142, label %94
i32 148, label %97
i32 149, label %100
i32 151, label %103
i32 169, label %106
i32 167, label %109
i32 168, label %112
i32 150, label %115
i32 138, label %118
i32 137, label %121
i32 136, label %124
i32 157, label %127
i32 158, label %130
i32 159, label %133
i32 145, label %136
i32 155, label %139
i32 165, label %142
i32 146, label %145
]
7: ; preds = %4
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %154
10: ; preds = %4
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %154
13: ; preds = %4
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %154
16: ; preds = %4
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
br label %154
19: ; preds = %4
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
br label %154
22: ; preds = %4
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %154
25: ; preds = %4
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
br label %154
28: ; preds = %4
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
br label %154
31: ; preds = %4
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
br label %154
34: ; preds = %4
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
br label %154
37: ; preds = %4
%38 = load i32, i32* @stderr
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
br label %154
40: ; preds = %4
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %154
43: ; preds = %4
%44 = load i32, i32* @stderr
%45 = tail call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0))
br label %154
46: ; preds = %4
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0))
br label %154
49: ; preds = %4
%50 = load i32, i32* @stderr
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
br label %154
52: ; preds = %4
%53 = load i32, i32* @stderr
%54 = tail call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %154
55: ; preds = %4
%56 = load i32, i32* @stderr
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0))
br label %154
58: ; preds = %4
%59 = load i32, i32* @stderr
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
br label %154
61: ; preds = %4
%62 = load i32, i32* @stderr
%63 = tail call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0))
br label %154
64: ; preds = %4
%65 = load i32, i32* @stderr
%66 = tail call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0))
br label %154
67: ; preds = %4
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
br label %154
70: ; preds = %4
%71 = load i32, i32* @stderr
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0))
br label %154
73: ; preds = %4
%74 = load i32, i32* @stderr
%75 = tail call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0))
br label %154
76: ; preds = %4
%77 = load i32, i32* @stderr
%78 = tail call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.24, i64 0, i64 0))
br label %154
79: ; preds = %4
%80 = load i32, i32* @stderr
%81 = tail call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0))
br label %154
82: ; preds = %4
%83 = load i32, i32* @stderr
%84 = tail call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
br label %154
85: ; preds = %4
%86 = load i32, i32* @stderr
%87 = tail call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0))
br label %154
88: ; preds = %4
%89 = load i32, i32* @stderr
%90 = tail call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0))
br label %154
91: ; preds = %4
%92 = load i32, i32* @stderr
%93 = tail call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.29, i64 0, i64 0))
br label %154
94: ; preds = %4
%95 = load i32, i32* @stderr
%96 = tail call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.30, i64 0, i64 0))
br label %154
97: ; preds = %4
%98 = load i32, i32* @stderr
%99 = tail call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.31, i64 0, i64 0))
br label %154
100: ; preds = %4
%101 = load i32, i32* @stderr
%102 = tail call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.32, i64 0, i64 0))
br label %154
103: ; preds = %4
%104 = load i32, i32* @stderr
%105 = tail call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.33, i64 0, i64 0))
br label %154
106: ; preds = %4
%107 = load i32, i32* @stderr
%108 = tail call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.34, i64 0, i64 0))
br label %154
109: ; preds = %4
%110 = load i32, i32* @stderr
%111 = tail call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0))
br label %154
112: ; preds = %4
%113 = load i32, i32* @stderr
%114 = tail call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0))
br label %154
115: ; preds = %4
%116 = load i32, i32* @stderr
%117 = tail call i32 (i32, i8*, ...) @fprintf(i32 %116, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.37, i64 0, i64 0))
br label %154
118: ; preds = %4
%119 = load i32, i32* @stderr
%120 = tail call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.38, i64 0, i64 0))
br label %154
121: ; preds = %4
%122 = load i32, i32* @stderr
%123 = tail call i32 (i32, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.39, i64 0, i64 0))
br label %154
124: ; preds = %4
%125 = load i32, i32* @stderr
%126 = tail call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.40, i64 0, i64 0))
br label %154
127: ; preds = %4
%128 = load i32, i32* @stderr
%129 = tail call i32 (i32, i8*, ...) @fprintf(i32 %128, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.41, i64 0, i64 0))
br label %154
130: ; preds = %4
%131 = load i32, i32* @stderr
%132 = tail call i32 (i32, i8*, ...) @fprintf(i32 %131, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.42, i64 0, i64 0))
br label %154
133: ; preds = %4
%134 = load i32, i32* @stderr
%135 = tail call i32 (i32, i8*, ...) @fprintf(i32 %134, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.43, i64 0, i64 0))
br label %154
136: ; preds = %4
%137 = load i32, i32* @stderr
%138 = tail call i32 (i32, i8*, ...) @fprintf(i32 %137, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.44, i64 0, i64 0))
br label %154
139: ; preds = %4
%140 = load i32, i32* @stderr
%141 = tail call i32 (i32, i8*, ...) @fprintf(i32 %140, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.45, i64 0, i64 0))
br label %154
142: ; preds = %4
%143 = load i32, i32* @stderr
%144 = tail call i32 (i32, i8*, ...) @fprintf(i32 %143, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.46, i64 0, i64 0))
br label %154
145: ; preds = %4
%146 = load i32, i32* @stderr
%147 = tail call i32 (i32, i8*, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.47, i64 0, i64 0))
br label %154
148: ; preds = %4
%149 = load i32, i32* @stderr
%150 = tail call i32 (i32, i8*, ...) @fprintf(i32 %149, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.48, i64 0, i64 0))
br label %154
151: ; preds = %4
%152 = load i32, i32* @stderr
%153 = tail call i32 (i32, i8*, ...) @fprintf(i32 %152, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.49, i64 0, i64 0), i32 %0)
br label %154
154: ; preds = %151, %148, %145, %142, %139, %136, %133, %130, %127, %124, %121, %118, %115, %112, %109, %106, %103, %100, %97, %94, %91, %88, %85, %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7
%155 = load i32, i32* @stderr
%156 = tail call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.50, i64 0, i64 0))
%157 = tail call i32 @exit(i32 1)
unreachable
158: ; preds = %2
ret void
}