#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
const char *cl_get_error_string(int err) {
  switch (err) {
  case 0:
    return "CL_SUCCESS";
  case -1:
    return "CL_DEVICE_NOT_FOUND";
  case -2:
    return "CL_DEVICE_NOT_AVAILABLE";
  case -3:
    return "CL_COMPILER_NOT_AVAILABLE";
  case -4:
    return "CL_MEM_OBJECT_ALLOCATION_FAILURE";
  case -5:
    return "CL_OUT_OF_RESOURCES";
  case -6:
    return "CL_OUT_OF_HOST_MEMORY";
  case -7:
    return "CL_PROFILING_INFO_NOT_AVAILABLE";
  case -8:
    return "CL_MEM_COPY_OVERLAP";
  case -9:
    return "CL_IMAGE_FORMAT_MISMATCH";
  case -10:
    return "CL_IMAGE_FORMAT_NOT_SUPPORTED";
  case -12:
    return "CL_MAP_FAILURE";
  case -13:
    return "CL_MISALIGNED_SUB_BUFFER_OFFSET";
  case -14:
    return "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST";
  case -15:
    return "CL_COMPILE_PROGRAM_FAILURE";
  case -16:
    return "CL_LINKER_NOT_AVAILABLE";
  case -17:
    return "CL_LINK_PROGRAM_FAILURE";
  case -18:
    return "CL_DEVICE_PARTITION_FAILED";
  case -19:
    return "CL_KERNEL_ARG_INFO_NOT_AVAILABLE";
  case -30:
    return "CL_INVALID_VALUE";
  case -31:
    return "CL_INVALID_DEVICE_TYPE";
  case -32:
    return "CL_INVALID_PLATFORM";
  case -33:
    return "CL_INVALID_DEVICE";
  case -34:
    return "CL_INVALID_CONTEXT";
  case -35:
    return "CL_INVALID_QUEUE_PROPERTIES";
  case -36:
    return "CL_INVALID_COMMAND_QUEUE";
  case -37:
    return "CL_INVALID_HOST_PTR";
  case -38:
    return "CL_INVALID_MEM_OBJECT";
  case -39:
    return "CL_INVALID_IMAGE_FORMAT_DESCRIPTOR";
  case -40:
    return "CL_INVALID_IMAGE_SIZE";
  case -41:
    return "CL_INVALID_SAMPLER";
  case -42:
    return "CL_INVALID_BINARY";
  case -43:
    return "CL_INVALID_BUILD_OPTIONS";
  case -44:
    return "CL_INVALID_PROGRAM";
  case -45:
    return "CL_INVALID_PROGRAM_EXECUTABLE";
  case -46:
    return "CL_INVALID_KERNEL_NAME";
  case -47:
    return "CL_INVALID_KERNEL_DEFINITION";
  case -48:
    return "CL_INVALID_KERNEL";
  case -49:
    return "CL_INVALID_ARG_INDEX";
  case -50:
    return "CL_INVALID_ARG_VALUE";
  case -51:
    return "CL_INVALID_ARG_SIZE";
  case -52:
    return "CL_INVALID_KERNEL_ARGS";
  case -53:
    return "CL_INVALID_WORK_DIMENSION";
  case -54:
    return "CL_INVALID_WORK_GROUP_SIZE";
  case -55:
    return "CL_INVALID_WORK_ITEM_SIZE";
  case -56:
    return "CL_INVALID_GLOBAL_OFFSET";
  case -57:
    return "CL_INVALID_EVENT_WAIT_LIST";
  case -58:
    return "CL_INVALID_EVENT";
  case -59:
    return "CL_INVALID_OPERATION";
  case -60:
    return "CL_INVALID_GL_OBJECT";
  case -61:
    return "CL_INVALID_BUFFER_SIZE";
  case -62:
    return "CL_INVALID_MIP_LEVEL";
  case -63:
    return "CL_INVALID_GLOBAL_WORK_SIZE";
  case -64:
    return "CL_INVALID_PROPERTY";
  case -65:
    return "CL_INVALID_IMAGE_DESCRIPTOR";
  case -66:
    return "CL_INVALID_COMPILER_OPTIONS";
  case -67:
    return "CL_INVALID_LINKER_OPTIONS";
  case -68:
    return "CL_INVALID_DEVICE_PARTITION_COUNT";
  case -69:
    return "CL_INVALID_PIPE_SIZE";
  case -70:
    return "CL_INVALID_DEVICE_QUEUE";
  case -71:
    return "CL_INVALID_SPEC_ID";
  case -72:
    return "CL_MAX_SIZE_RESTRICTION_EXCEEDED";
  case -1002:
    return "CL_INVALID_D3D10_DEVICE_KHR";
  case -1003:
    return "CL_INVALID_D3D10_RESOURCE_KHR";
  case -1004:
    return "CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR";
  case -1005:
    return "CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR";
  case -1006:
    return "CL_INVALID_D3D11_DEVICE_KHR";
  case -1007:
    return "CL_INVALID_D3D11_RESOURCE_KHR";
  case -1008:
    return "CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR";
  case -1009:
    return "CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR";
  case -1010:
    return "CL_INVALID_DX9_MEDIA_ADAPTER_KHR";
  case -1011:
    return "CL_INVALID_DX9_MEDIA_SURFACE_KHR";
  case -1012:
    return "CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR";
  case -1013:
    return "CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR";
  case -1093:
    return "CL_INVALID_EGL_OBJECT_KHR";
  case -1092:
    return "CL_EGL_RESOURCE_NOT_ACQUIRED_KHR";
  case -1001:
    return "CL_PLATFORM_NOT_FOUND_KHR";
  case -1057:
    return "CL_DEVICE_PARTITION_FAILED_EXT";
  case -1058:
    return "CL_INVALID_PARTITION_COUNT_EXT";
  case -1059:
    return "CL_INVALID_PARTITION_NAME_EXT";
  case -1094:
    return "CL_INVALID_ACCELERATOR_INTEL";
  case -1095:
    return "CL_INVALID_ACCELERATOR_TYPE_INTEL";
  case -1096:
    return "CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL";
  case -1097:
    return "CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL";
  case -1000:
    return "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR";
  case -1098:
    return "CL_INVALID_VA_API_MEDIA_ADAPTER_INTEL";
  case -1099:
    return "CL_INVALID_VA_API_MEDIA_SURFACE_INTEL";
  case -1100:
    return "CL_VA_API_MEDIA_SURFACE_ALREADY_ACQUIRED_INTEL";
  case -1101:
    return "CL_VA_API_MEDIA_SURFACE_NOT_ACQUIRED_INTEL";
  default:
    return "CL_UNKNOWN_ERROR";
  }
}


x86 assembly (clang, -O0):
<cl_get_error_string>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0xfffffbb3,%eax
je     1ca8 <cl_get_error_string+0xba8>
jmp    111d <cl_get_error_string+0x1d>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb4,%eax
je     1c98 <cl_get_error_string+0xb98>
jmp    1130 <cl_get_error_string+0x30>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb5,%eax
je     1c88 <cl_get_error_string+0xb88>
jmp    1143 <cl_get_error_string+0x43>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb6,%eax
je     1c78 <cl_get_error_string+0xb78>
jmp    1156 <cl_get_error_string+0x56>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb7,%eax
je     1c58 <cl_get_error_string+0xb58>
jmp    1169 <cl_get_error_string+0x69>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb8,%eax
je     1c48 <cl_get_error_string+0xb48>
jmp    117c <cl_get_error_string+0x7c>
mov    -0x10(%rbp),%eax
sub    $0xfffffbb9,%eax
je     1c38 <cl_get_error_string+0xb38>
jmp    118f <cl_get_error_string+0x8f>
mov    -0x10(%rbp),%eax
sub    $0xfffffbba,%eax
je     1c28 <cl_get_error_string+0xb28>
jmp    11a2 <cl_get_error_string+0xa2>
mov    -0x10(%rbp),%eax
sub    $0xfffffbbb,%eax
je     1bc8 <cl_get_error_string+0xac8>
jmp    11b5 <cl_get_error_string+0xb5>
mov    -0x10(%rbp),%eax
sub    $0xfffffbbc,%eax
je     1bd8 <cl_get_error_string+0xad8>
jmp    11c8 <cl_get_error_string+0xc8>
mov    -0x10(%rbp),%eax
sub    $0xfffffbdd,%eax
je     1c18 <cl_get_error_string+0xb18>
jmp    11db <cl_get_error_string+0xdb>
mov    -0x10(%rbp),%eax
sub    $0xfffffbde,%eax
je     1c08 <cl_get_error_string+0xb08>
jmp    11ee <cl_get_error_string+0xee>
mov    -0x10(%rbp),%eax
sub    $0xfffffbdf,%eax
je     1bf8 <cl_get_error_string+0xaf8>
jmp    1201 <cl_get_error_string+0x101>
mov    -0x10(%rbp),%eax
sub    $0xfffffc0b,%eax
je     1bb8 <cl_get_error_string+0xab8>
jmp    1214 <cl_get_error_string+0x114>
mov    -0x10(%rbp),%eax
sub    $0xfffffc0c,%eax
je     1ba8 <cl_get_error_string+0xaa8>
jmp    1227 <cl_get_error_string+0x127>
mov    -0x10(%rbp),%eax
sub    $0xfffffc0d,%eax
je     1b98 <cl_get_error_string+0xa98>
jmp    123a <cl_get_error_string+0x13a>
mov    -0x10(%rbp),%eax
sub    $0xfffffc0e,%eax
je     1b88 <cl_get_error_string+0xa88>
jmp    124d <cl_get_error_string+0x14d>
mov    -0x10(%rbp),%eax
sub    $0xfffffc0f,%eax
je     1b78 <cl_get_error_string+0xa78>
jmp    1260 <cl_get_error_string+0x160>
mov    -0x10(%rbp),%eax
sub    $0xfffffc10,%eax
je     1b68 <cl_get_error_string+0xa68>
jmp    1273 <cl_get_error_string+0x173>
mov    -0x10(%rbp),%eax
sub    $0xfffffc11,%eax
je     1b58 <cl_get_error_string+0xa58>
jmp    1286 <cl_get_error_string+0x186>
mov    -0x10(%rbp),%eax
sub    $0xfffffc12,%eax
je     1b48 <cl_get_error_string+0xa48>
jmp    1299 <cl_get_error_string+0x199>
mov    -0x10(%rbp),%eax
sub    $0xfffffc13,%eax
je     1b38 <cl_get_error_string+0xa38>
jmp    12ac <cl_get_error_string+0x1ac>
mov    -0x10(%rbp),%eax
sub    $0xfffffc14,%eax
je     1b28 <cl_get_error_string+0xa28>
jmp    12bf <cl_get_error_string+0x1bf>
mov    -0x10(%rbp),%eax
sub    $0xfffffc15,%eax
je     1b18 <cl_get_error_string+0xa18>
jmp    12d2 <cl_get_error_string+0x1d2>
mov    -0x10(%rbp),%eax
sub    $0xfffffc16,%eax
je     1b08 <cl_get_error_string+0xa08>
jmp    12e5 <cl_get_error_string+0x1e5>
mov    -0x10(%rbp),%eax
sub    $0xfffffc17,%eax
je     1be8 <cl_get_error_string+0xae8>
jmp    12f8 <cl_get_error_string+0x1f8>
mov    -0x10(%rbp),%eax
sub    $0xfffffc18,%eax
je     1c68 <cl_get_error_string+0xb68>
jmp    130b <cl_get_error_string+0x20b>
mov    -0x10(%rbp),%eax
sub    $0xffffffb8,%eax
je     1af8 <cl_get_error_string+0x9f8>
jmp    131c <cl_get_error_string+0x21c>
mov    -0x10(%rbp),%eax
sub    $0xffffffb9,%eax
je     1ae8 <cl_get_error_string+0x9e8>
jmp    132d <cl_get_error_string+0x22d>
mov    -0x10(%rbp),%eax
sub    $0xffffffba,%eax
je     1ad8 <cl_get_error_string+0x9d8>
jmp    133e <cl_get_error_string+0x23e>
mov    -0x10(%rbp),%eax
sub    $0xffffffbb,%eax
je     1ac8 <cl_get_error_string+0x9c8>
jmp    134f <cl_get_error_string+0x24f>
mov    -0x10(%rbp),%eax
sub    $0xffffffbc,%eax
je     1ab8 <cl_get_error_string+0x9b8>
jmp    1360 <cl_get_error_string+0x260>
mov    -0x10(%rbp),%eax
sub    $0xffffffbd,%eax
je     1aa8 <cl_get_error_string+0x9a8>
jmp    1371 <cl_get_error_string+0x271>
mov    -0x10(%rbp),%eax
sub    $0xffffffbe,%eax
je     1a98 <cl_get_error_string+0x998>
jmp    1382 <cl_get_error_string+0x282>
mov    -0x10(%rbp),%eax
sub    $0xffffffbf,%eax
je     1a88 <cl_get_error_string+0x988>
jmp    1393 <cl_get_error_string+0x293>
mov    -0x10(%rbp),%eax
sub    $0xffffffc0,%eax
je     1a78 <cl_get_error_string+0x978>
jmp    13a4 <cl_get_error_string+0x2a4>
mov    -0x10(%rbp),%eax
sub    $0xffffffc1,%eax
je     1a68 <cl_get_error_string+0x968>
jmp    13b5 <cl_get_error_string+0x2b5>
mov    -0x10(%rbp),%eax
sub    $0xffffffc2,%eax
je     1a58 <cl_get_error_string+0x958>
jmp    13c6 <cl_get_error_string+0x2c6>
mov    -0x10(%rbp),%eax
sub    $0xffffffc3,%eax
je     1a48 <cl_get_error_string+0x948>
jmp    13d7 <cl_get_error_string+0x2d7>
mov    -0x10(%rbp),%eax
sub    $0xffffffc4,%eax
je     1a38 <cl_get_error_string+0x938>
jmp    13e8 <cl_get_error_string+0x2e8>
mov    -0x10(%rbp),%eax
sub    $0xffffffc5,%eax
je     1a28 <cl_get_error_string+0x928>
jmp    13f9 <cl_get_error_string+0x2f9>
mov    -0x10(%rbp),%eax
sub    $0xffffffc6,%eax
je     1a18 <cl_get_error_string+0x918>
jmp    140a <cl_get_error_string+0x30a>
mov    -0x10(%rbp),%eax
sub    $0xffffffc7,%eax
je     1a08 <cl_get_error_string+0x908>
jmp    141b <cl_get_error_string+0x31b>
mov    -0x10(%rbp),%eax
sub    $0xffffffc8,%eax
je     19f8 <cl_get_error_string+0x8f8>
jmp    142c <cl_get_error_string+0x32c>
mov    -0x10(%rbp),%eax
sub    $0xffffffc9,%eax
je     19e8 <cl_get_error_string+0x8e8>
jmp    143d <cl_get_error_string+0x33d>
mov    -0x10(%rbp),%eax
sub    $0xffffffca,%eax
je     19d8 <cl_get_error_string+0x8d8>
jmp    144e <cl_get_error_string+0x34e>
mov    -0x10(%rbp),%eax
sub    $0xffffffcb,%eax
je     19c8 <cl_get_error_string+0x8c8>
jmp    145f <cl_get_error_string+0x35f>
mov    -0x10(%rbp),%eax
sub    $0xffffffcc,%eax
je     19b8 <cl_get_error_string+0x8b8>
jmp    1470 <cl_get_error_string+0x370>
mov    -0x10(%rbp),%eax
sub    $0xffffffcd,%eax
je     19a8 <cl_get_error_string+0x8a8>
jmp    1481 <cl_get_error_string+0x381>
mov    -0x10(%rbp),%eax
sub    $0xffffffce,%eax
je     1998 <cl_get_error_string+0x898>
jmp    1492 <cl_get_error_string+0x392>
mov    -0x10(%rbp),%eax
sub    $0xffffffcf,%eax
je     1988 <cl_get_error_string+0x888>
jmp    14a3 <cl_get_error_string+0x3a3>
mov    -0x10(%rbp),%eax
sub    $0xffffffd0,%eax
je     1978 <cl_get_error_string+0x878>
jmp    14b4 <cl_get_error_string+0x3b4>
mov    -0x10(%rbp),%eax
sub    $0xffffffd1,%eax
je     1968 <cl_get_error_string+0x868>
jmp    14c5 <cl_get_error_string+0x3c5>
mov    -0x10(%rbp),%eax
sub    $0xffffffd2,%eax
je     1958 <cl_get_error_string+0x858>
jmp    14d6 <cl_get_error_string+0x3d6>
mov    -0x10(%rbp),%eax
sub    $0xffffffd3,%eax
je     1948 <cl_get_error_string+0x848>
jmp    14e7 <cl_get_error_string+0x3e7>
mov    -0x10(%rbp),%eax
sub    $0xffffffd4,%eax
je     1938 <cl_get_error_string+0x838>
jmp    14f8 <cl_get_error_string+0x3f8>
mov    -0x10(%rbp),%eax
sub    $0xffffffd5,%eax
je     1928 <cl_get_error_string+0x828>
jmp    1509 <cl_get_error_string+0x409>
mov    -0x10(%rbp),%eax
sub    $0xffffffd6,%eax
je     1918 <cl_get_error_string+0x818>
jmp    151a <cl_get_error_string+0x41a>
mov    -0x10(%rbp),%eax
sub    $0xffffffd7,%eax
je     1908 <cl_get_error_string+0x808>
jmp    152b <cl_get_error_string+0x42b>
mov    -0x10(%rbp),%eax
sub    $0xffffffd8,%eax
je     18f8 <cl_get_error_string+0x7f8>
jmp    153c <cl_get_error_string+0x43c>
mov    -0x10(%rbp),%eax
sub    $0xffffffd9,%eax
je     18e8 <cl_get_error_string+0x7e8>
jmp    154d <cl_get_error_string+0x44d>
mov    -0x10(%rbp),%eax
sub    $0xffffffda,%eax
je     18d8 <cl_get_error_string+0x7d8>
jmp    155e <cl_get_error_string+0x45e>
mov    -0x10(%rbp),%eax
sub    $0xffffffdb,%eax
je     18c8 <cl_get_error_string+0x7c8>
jmp    156f <cl_get_error_string+0x46f>
mov    -0x10(%rbp),%eax
sub    $0xffffffdc,%eax
je     18b8 <cl_get_error_string+0x7b8>
jmp    1580 <cl_get_error_string+0x480>
mov    -0x10(%rbp),%eax
sub    $0xffffffdd,%eax
je     18a8 <cl_get_error_string+0x7a8>
jmp    1591 <cl_get_error_string+0x491>
mov    -0x10(%rbp),%eax
sub    $0xffffffde,%eax
je     1898 <cl_get_error_string+0x798>
jmp    15a2 <cl_get_error_string+0x4a2>
mov    -0x10(%rbp),%eax
sub    $0xffffffdf,%eax
je     1888 <cl_get_error_string+0x788>
jmp    15b3 <cl_get_error_string+0x4b3>
mov    -0x10(%rbp),%eax
sub    $0xffffffe0,%eax
je     1878 <cl_get_error_string+0x778>
jmp    15c4 <cl_get_error_string+0x4c4>
mov    -0x10(%rbp),%eax
sub    $0xffffffe1,%eax
je     1868 <cl_get_error_string+0x768>
jmp    15d5 <cl_get_error_string+0x4d5>
mov    -0x10(%rbp),%eax
sub    $0xffffffe2,%eax
je     1858 <cl_get_error_string+0x758>
jmp    15e6 <cl_get_error_string+0x4e6>
mov    -0x10(%rbp),%eax
sub    $0xffffffed,%eax
je     1848 <cl_get_error_string+0x748>
jmp    15f7 <cl_get_error_string+0x4f7>
mov    -0x10(%rbp),%eax
sub    $0xffffffee,%eax
je     1838 <cl_get_error_string+0x738>
jmp    1608 <cl_get_error_string+0x508>
mov    -0x10(%rbp),%eax
sub    $0xffffffef,%eax
je     1828 <cl_get_error_string+0x728>
jmp    1619 <cl_get_error_string+0x519>
mov    -0x10(%rbp),%eax
sub    $0xfffffff0,%eax
je     1818 <cl_get_error_string+0x718>
jmp    162a <cl_get_error_string+0x52a>
mov    -0x10(%rbp),%eax
sub    $0xfffffff1,%eax
je     1808 <cl_get_error_string+0x708>
jmp    163b <cl_get_error_string+0x53b>
mov    -0x10(%rbp),%eax
sub    $0xfffffff2,%eax
je     17f8 <cl_get_error_string+0x6f8>
jmp    164c <cl_get_error_string+0x54c>
mov    -0x10(%rbp),%eax
sub    $0xfffffff3,%eax
je     17e8 <cl_get_error_string+0x6e8>
jmp    165d <cl_get_error_string+0x55d>
mov    -0x10(%rbp),%eax
sub    $0xfffffff4,%eax
je     17d8 <cl_get_error_string+0x6d8>
jmp    166e <cl_get_error_string+0x56e>
mov    -0x10(%rbp),%eax
sub    $0xfffffff6,%eax
je     17c8 <cl_get_error_string+0x6c8>
jmp    167f <cl_get_error_string+0x57f>
mov    -0x10(%rbp),%eax
sub    $0xfffffff7,%eax
je     17b8 <cl_get_error_string+0x6b8>
jmp    1690 <cl_get_error_string+0x590>
mov    -0x10(%rbp),%eax
sub    $0xfffffff8,%eax
je     17a8 <cl_get_error_string+0x6a8>
jmp    16a1 <cl_get_error_string+0x5a1>
mov    -0x10(%rbp),%eax
sub    $0xfffffff9,%eax
je     1798 <cl_get_error_string+0x698>
jmp    16b2 <cl_get_error_string+0x5b2>
mov    -0x10(%rbp),%eax
sub    $0xfffffffa,%eax
je     1788 <cl_get_error_string+0x688>
jmp    16c3 <cl_get_error_string+0x5c3>
mov    -0x10(%rbp),%eax
sub    $0xfffffffb,%eax
je     1778 <cl_get_error_string+0x678>
jmp    16d4 <cl_get_error_string+0x5d4>
mov    -0x10(%rbp),%eax
sub    $0xfffffffc,%eax
je     1768 <cl_get_error_string+0x668>
jmp    16e5 <cl_get_error_string+0x5e5>
mov    -0x10(%rbp),%eax
sub    $0xfffffffd,%eax
je     1758 <cl_get_error_string+0x658>
jmp    16f6 <cl_get_error_string+0x5f6>
mov    -0x10(%rbp),%eax
sub    $0xfffffffe,%eax
je     1748 <cl_get_error_string+0x648>
jmp    1707 <cl_get_error_string+0x607>
mov    -0x10(%rbp),%eax
sub    $0xffffffff,%eax
je     1738 <cl_get_error_string+0x638>
jmp    1718 <cl_get_error_string+0x618>
mov    -0x10(%rbp),%eax
test   %eax,%eax
jne    1cb8 <cl_get_error_string+0xbb8>
jmp    1728 <cl_get_error_string+0x628>
lea    0x8d1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8cc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8d0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8d8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8e2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8f3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8f7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x8fd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x90d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x911(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x91a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x928(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x927(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x937(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x954(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x95f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x967(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x96f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x97a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x98b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x98c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x993(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x997(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x999(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x99c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9a8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9b1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9b5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9bb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9ce(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9d4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9d7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9d9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9e2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9e5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9f3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0x9fa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa07(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa09(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa0e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa13(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa17(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa1e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa28(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa3d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa46(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa52(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa57(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa5c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa68(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa74(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa84(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xa9a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xaac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xab1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xab9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xabc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xacd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xad9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xae7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xafe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb11(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb1d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb2b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb42(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb66(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xb91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xba7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbb1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbc2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbcc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbdb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xbf8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc05(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc17(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc2f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc47(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc74(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xc8a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xca9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1cc3 <cl_get_error_string+0xbc3>
lea    0xcc4(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cl_get_error_string>:
lea    0x48(%rdi),%ecx
cmp    $0x48,%ecx
ja     1127 <cl_get_error_string+0x27>
lea    0x11ad(%rip),%rax
lea    0x1082(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x1751(%rip),%rax
ret
add    $0x44d,%edi
cmp    $0x65,%edi
ja     1376 <cl_get_error_string+0x276>
lea    0xec3(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x1ac7(%rip),%rax
ret
lea    0x170f(%rip),%rax
ret
lea    0x16ef(%rip),%rax
ret
lea    0x16d2(%rip),%rax
ret
lea    0x16a8(%rip),%rax
ret
lea    0x1686(%rip),%rax
ret
lea    0x1662(%rip),%rax
ret
lea    0x163e(%rip),%rax
ret
lea    0x1622(%rip),%rax
ret
lea    0x15fe(%rip),%rax
ret
lea    0x15e1(%rip),%rax
ret
lea    0x15c2(%rip),%rax
ret
lea    0x15a5(%rip),%rax
ret
lea    0x1588(%rip),%rax
ret
lea    0x156f(%rip),%rax
ret
lea    0x154c(%rip),%rax
ret
lea    0x152b(%rip),%rax
ret
lea    0x1509(%rip),%rax
ret
lea    0x14e6(%rip),%rax
ret
lea    0x14c4(%rip),%rax
ret
lea    0x14a5(%rip),%rax
ret
lea    0x1489(%rip),%rax
ret
lea    0x146c(%rip),%rax
ret
lea    0x144f(%rip),%rax
ret
lea    0x1435(%rip),%rax
ret
lea    0x1410(%rip),%rax
ret
lea    0x13f1(%rip),%rax
ret
lea    0x13cb(%rip),%rax
ret
lea    0x13b0(%rip),%rax
ret
lea    0x138f(%rip),%rax
ret
lea    0x1375(%rip),%rax
ret
lea    0x135a(%rip),%rax
ret
lea    0x133c(%rip),%rax
ret
lea    0x1311(%rip),%rax
ret
lea    0x12f3(%rip),%rax
ret
lea    0x12d7(%rip),%rax
ret
lea    0x12b6(%rip),%rax
ret
lea    0x1292(%rip),%rax
ret
lea    0x1277(%rip),%rax
ret
lea    0x125d(%rip),%rax
ret
lea    0x1241(%rip),%rax
ret
lea    0x1222(%rip),%rax
ret
lea    0x1209(%rip),%rax
ret
lea    0x11e0(%rip),%rax
ret
lea    0x11bd(%rip),%rax
ret
lea    0x119d(%rip),%rax
ret
lea    0x117d(%rip),%rax
ret
lea    0x115a(%rip),%rax
ret
lea    0x1125(%rip),%rax
ret
lea    0x10fd(%rip),%rax
ret
lea    0x10e6(%rip),%rax
ret
lea    0x10c0(%rip),%rax
ret
lea    0x109f(%rip),%rax
ret
lea    0x1083(%rip),%rax
ret
lea    0x105b(%rip),%rax
ret
lea    0x103d(%rip),%rax
ret
lea    0x1021(%rip),%rax
ret
lea    0xff8(%rip),%rax
ret
lea    0xfd6(%rip),%rax
ret
lea    0xfb6(%rip),%rax
ret
lea    0xf9a(%rip),%rax
ret
lea    0x18b0(%rip),%rax
ret
lea    0x1882(%rip),%rax
ret
lea    0x1854(%rip),%rax
ret
lea    0x17fd(%rip),%rax
ret
lea    0x17cd(%rip),%rax
ret
lea    0x17a3(%rip),%rax
ret
lea    0x177e(%rip),%rax
ret
lea    0x16c5(%rip),%rax
ret
lea    0x16d7(%rip),%rax
ret
lea    0x18c2(%rip),%rax
ret
lea    0x1740(%rip),%rax
ret
lea    0x1719(%rip),%rax
ret
lea    0x16f2(%rip),%rax
ret
lea    0x166f(%rip),%rax
ret
lea    0x163d(%rip),%rax
ret
lea    0x1614(%rip),%rax
ret
lea    0x15eb(%rip),%rax
ret
lea    0x15c0(%rip),%rax
ret
lea    0x1591(%rip),%rax
ret
lea    0x156b(%rip),%rax
ret
lea    0x1547(%rip),%rax
ret
lea    0x151c(%rip),%rax
ret
lea    0x14ed(%rip),%rax
ret
lea    0x14c7(%rip),%rax
ret
lea    0x14a3(%rip),%rax
ret
lea    0x1670(%rip),%rax
ret
lea    0x176d(%rip),%rax
ret

LLVM IR (-O0):
@.str = [11 x i8] c"CL_SUCCESS\00"
@.str.1 = [20 x i8] c"CL_DEVICE_NOT_FOUND\00"
@.str.2 = [24 x i8] c"CL_DEVICE_NOT_AVAILABLE\00"
@.str.3 = [26 x i8] c"CL_COMPILER_NOT_AVAILABLE\00"
@.str.4 = [33 x i8] c"CL_MEM_OBJECT_ALLOCATION_FAILURE\00"
@.str.5 = [20 x i8] c"CL_OUT_OF_RESOURCES\00"
@.str.6 = [22 x i8] c"CL_OUT_OF_HOST_MEMORY\00"
@.str.7 = [32 x i8] c"CL_PROFILING_INFO_NOT_AVAILABLE\00"
@.str.8 = [20 x i8] c"CL_MEM_COPY_OVERLAP\00"
@.str.9 = [25 x i8] c"CL_IMAGE_FORMAT_MISMATCH\00"
@.str.10 = [30 x i8] c"CL_IMAGE_FORMAT_NOT_SUPPORTED\00"
@.str.11 = [15 x i8] c"CL_MAP_FAILURE\00"
@.str.12 = [32 x i8] c"CL_MISALIGNED_SUB_BUFFER_OFFSET\00"
@.str.13 = [45 x i8] c"CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST\00"
@.str.14 = [27 x i8] c"CL_COMPILE_PROGRAM_FAILURE\00"
@.str.15 = [24 x i8] c"CL_LINKER_NOT_AVAILABLE\00"
@.str.16 = [24 x i8] c"CL_LINK_PROGRAM_FAILURE\00"
@.str.17 = [27 x i8] c"CL_DEVICE_PARTITION_FAILED\00"
@.str.18 = [33 x i8] c"CL_KERNEL_ARG_INFO_NOT_AVAILABLE\00"
@.str.19 = [17 x i8] c"CL_INVALID_VALUE\00"
@.str.20 = [23 x i8] c"CL_INVALID_DEVICE_TYPE\00"
@.str.21 = [20 x i8] c"CL_INVALID_PLATFORM\00"
@.str.22 = [18 x i8] c"CL_INVALID_DEVICE\00"
@.str.23 = [19 x i8] c"CL_INVALID_CONTEXT\00"
@.str.24 = [28 x i8] c"CL_INVALID_QUEUE_PROPERTIES\00"
@.str.25 = [25 x i8] c"CL_INVALID_COMMAND_QUEUE\00"
@.str.26 = [20 x i8] c"CL_INVALID_HOST_PTR\00"
@.str.27 = [22 x i8] c"CL_INVALID_MEM_OBJECT\00"
@.str.28 = [35 x i8] c"CL_INVALID_IMAGE_FORMAT_DESCRIPTOR\00"
@.str.29 = [22 x i8] c"CL_INVALID_IMAGE_SIZE\00"
@.str.30 = [19 x i8] c"CL_INVALID_SAMPLER\00"
@.str.31 = [18 x i8] c"CL_INVALID_BINARY\00"
@.str.32 = [25 x i8] c"CL_INVALID_BUILD_OPTIONS\00"
@.str.33 = [19 x i8] c"CL_INVALID_PROGRAM\00"
@.str.34 = [30 x i8] c"CL_INVALID_PROGRAM_EXECUTABLE\00"
@.str.35 = [23 x i8] c"CL_INVALID_KERNEL_NAME\00"
@.str.36 = [29 x i8] c"CL_INVALID_KERNEL_DEFINITION\00"
@.str.37 = [18 x i8] c"CL_INVALID_KERNEL\00"
@.str.38 = [21 x i8] c"CL_INVALID_ARG_INDEX\00"
@.str.39 = [21 x i8] c"CL_INVALID_ARG_VALUE\00"
@.str.40 = [20 x i8] c"CL_INVALID_ARG_SIZE\00"
@.str.41 = [23 x i8] c"CL_INVALID_KERNEL_ARGS\00"
@.str.42 = [26 x i8] c"CL_INVALID_WORK_DIMENSION\00"
@.str.43 = [27 x i8] c"CL_INVALID_WORK_GROUP_SIZE\00"
@.str.44 = [26 x i8] c"CL_INVALID_WORK_ITEM_SIZE\00"
@.str.45 = [25 x i8] c"CL_INVALID_GLOBAL_OFFSET\00"
@.str.46 = [27 x i8] c"CL_INVALID_EVENT_WAIT_LIST\00"
@.str.47 = [17 x i8] c"CL_INVALID_EVENT\00"
@.str.48 = [21 x i8] c"CL_INVALID_OPERATION\00"
@.str.49 = [21 x i8] c"CL_INVALID_GL_OBJECT\00"
@.str.50 = [23 x i8] c"CL_INVALID_BUFFER_SIZE\00"
@.str.51 = [21 x i8] c"CL_INVALID_MIP_LEVEL\00"
@.str.52 = [28 x i8] c"CL_INVALID_GLOBAL_WORK_SIZE\00"
@.str.53 = [20 x i8] c"CL_INVALID_PROPERTY\00"
@.str.54 = [28 x i8] c"CL_INVALID_IMAGE_DESCRIPTOR\00"
@.str.55 = [28 x i8] c"CL_INVALID_COMPILER_OPTIONS\00"
@.str.56 = [26 x i8] c"CL_INVALID_LINKER_OPTIONS\00"
@.str.57 = [34 x i8] c"CL_INVALID_DEVICE_PARTITION_COUNT\00"
@.str.58 = [21 x i8] c"CL_INVALID_PIPE_SIZE\00"
@.str.59 = [24 x i8] c"CL_INVALID_DEVICE_QUEUE\00"
@.str.60 = [19 x i8] c"CL_INVALID_SPEC_ID\00"
@.str.61 = [33 x i8] c"CL_MAX_SIZE_RESTRICTION_EXCEEDED\00"
@.str.62 = [28 x i8] c"CL_INVALID_D3D10_DEVICE_KHR\00"
@.str.63 = [30 x i8] c"CL_INVALID_D3D10_RESOURCE_KHR\00"
@.str.64 = [39 x i8] c"CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR\00"
@.str.65 = [35 x i8] c"CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.66 = [28 x i8] c"CL_INVALID_D3D11_DEVICE_KHR\00"
@.str.67 = [30 x i8] c"CL_INVALID_D3D11_RESOURCE_KHR\00"
@.str.68 = [39 x i8] c"CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR\00"
@.str.69 = [35 x i8] c"CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.70 = [33 x i8] c"CL_INVALID_DX9_MEDIA_ADAPTER_KHR\00"
@.str.71 = [33 x i8] c"CL_INVALID_DX9_MEDIA_SURFACE_KHR\00"
@.str.72 = [42 x i8] c"CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR\00"
@.str.73 = [38 x i8] c"CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR\00"
@.str.74 = [26 x i8] c"CL_INVALID_EGL_OBJECT_KHR\00"
@.str.75 = [33 x i8] c"CL_EGL_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.76 = [26 x i8] c"CL_PLATFORM_NOT_FOUND_KHR\00"
@.str.77 = [31 x i8] c"CL_DEVICE_PARTITION_FAILED_EXT\00"
@.str.78 = [31 x i8] c"CL_INVALID_PARTITION_COUNT_EXT\00"
@.str.79 = [30 x i8] c"CL_INVALID_PARTITION_NAME_EXT\00"
@.str.80 = [29 x i8] c"CL_INVALID_ACCELERATOR_INTEL\00"
@.str.81 = [34 x i8] c"CL_INVALID_ACCELERATOR_TYPE_INTEL\00"
@.str.82 = [40 x i8] c"CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL\00"
@.str.83 = [40 x i8] c"CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL\00"
@.str.84 = [39 x i8] c"CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR\00"
@.str.85 = [38 x i8] c"CL_INVALID_VA_API_MEDIA_ADAPTER_INTEL\00"
@.str.86 = [38 x i8] c"CL_INVALID_VA_API_MEDIA_SURFACE_INTEL\00"
@.str.87 = [47 x i8] c"CL_VA_API_MEDIA_SURFACE_ALREADY_ACQUIRED_INTEL\00"
@.str.88 = [43 x i8] c"CL_VA_API_MEDIA_SURFACE_NOT_ACQUIRED_INTEL\00"
@.str.89 = [17 x i8] c"CL_UNKNOWN_ERROR\00"
define i8* @cl_get_error_string(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %94 [
i32 0, label %5
i32 -1, label %6
i32 -2, label %7
i32 -3, label %8
i32 -4, label %9
i32 -5, label %10
i32 -6, label %11
i32 -7, label %12
i32 -8, label %13
i32 -9, label %14
i32 -10, label %15
i32 -12, label %16
i32 -13, label %17
i32 -14, label %18
i32 -15, label %19
i32 -16, label %20
i32 -17, label %21
i32 -18, label %22
i32 -19, label %23
i32 -30, label %24
i32 -31, label %25
i32 -32, label %26
i32 -33, label %27
i32 -34, label %28
i32 -35, label %29
i32 -36, label %30
i32 -37, label %31
i32 -38, label %32
i32 -39, label %33
i32 -40, label %34
i32 -41, label %35
i32 -42, label %36
i32 -43, label %37
i32 -44, label %38
i32 -45, label %39
i32 -46, label %40
i32 -47, label %41
i32 -48, label %42
i32 -49, label %43
i32 -50, label %44
i32 -51, label %45
i32 -52, label %46
i32 -53, label %47
i32 -54, label %48
i32 -55, label %49
i32 -56, label %50
i32 -57, label %51
i32 -58, label %52
i32 -59, label %53
i32 -60, label %54
i32 -61, label %55
i32 -62, label %56
i32 -63, label %57
i32 -64, label %58
i32 -65, label %59
i32 -66, label %60
i32 -67, label %61
i32 -68, label %62
i32 -69, label %63
i32 -70, label %64
i32 -71, label %65
i32 -72, label %66
i32 -1002, label %67
i32 -1003, label %68
i32 -1004, label %69
i32 -1005, label %70
i32 -1006, label %71
i32 -1007, label %72
i32 -1008, label %73
i32 -1009, label %74
i32 -1010, label %75
i32 -1011, label %76
i32 -1012, label %77
i32 -1013, label %78
i32 -1093, label %79
i32 -1092, label %80
i32 -1001, label %81
i32 -1057, label %82
i32 -1058, label %83
i32 -1059, label %84
i32 -1094, label %85
i32 -1095, label %86
i32 -1096, label %87
i32 -1097, label %88
i32 -1000, label %89
i32 -1098, label %90
i32 -1099, label %91
i32 -1100, label %92
i32 -1101, label %93
]
5: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %2
br label %95
6: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %95
7: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %95
8: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %95
9: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %95
10: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %95
11: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %95
12: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %95
13: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %95
14: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %95
15: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %95
16: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %95
17: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %95
18: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %95
19: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %95
20: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %95
21: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %95
22: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %95
23: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %95
24: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %95
25: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %95
26: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %95
27: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %95
28: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %95
29: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %95
30: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %95
31: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %95
32: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %95
33: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %95
34: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %95
35: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %95
36: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %95
37: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %95
38: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %95
39: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %95
40: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %95
41: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %95
42: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %95
43: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %95
44: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %95
45: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %95
46: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %95
47: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %95
48: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %95
49: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %95
50: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.45, i64 0, i64 0), i8** %2
br label %95
51: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.46, i64 0, i64 0), i8** %2
br label %95
52: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.47, i64 0, i64 0), i8** %2
br label %95
53: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.48, i64 0, i64 0), i8** %2
br label %95
54: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.49, i64 0, i64 0), i8** %2
br label %95
55: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.50, i64 0, i64 0), i8** %2
br label %95
56: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.51, i64 0, i64 0), i8** %2
br label %95
57: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.52, i64 0, i64 0), i8** %2
br label %95
58: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.53, i64 0, i64 0), i8** %2
br label %95
59: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.54, i64 0, i64 0), i8** %2
br label %95
60: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.55, i64 0, i64 0), i8** %2
br label %95
61: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.56, i64 0, i64 0), i8** %2
br label %95
62: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.57, i64 0, i64 0), i8** %2
br label %95
63: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i64 0, i64 0), i8** %2
br label %95
64: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.59, i64 0, i64 0), i8** %2
br label %95
65: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.60, i64 0, i64 0), i8** %2
br label %95
66: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.61, i64 0, i64 0), i8** %2
br label %95
67: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.62, i64 0, i64 0), i8** %2
br label %95
68: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.63, i64 0, i64 0), i8** %2
br label %95
69: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.64, i64 0, i64 0), i8** %2
br label %95
70: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.65, i64 0, i64 0), i8** %2
br label %95
71: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.66, i64 0, i64 0), i8** %2
br label %95
72: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.67, i64 0, i64 0), i8** %2
br label %95
73: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.68, i64 0, i64 0), i8** %2
br label %95
74: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.69, i64 0, i64 0), i8** %2
br label %95
75: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.70, i64 0, i64 0), i8** %2
br label %95
76: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.71, i64 0, i64 0), i8** %2
br label %95
77: ; preds = %1
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.72, i64 0, i64 0), i8** %2
br label %95
78: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.73, i64 0, i64 0), i8** %2
br label %95
79: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.74, i64 0, i64 0), i8** %2
br label %95
80: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.75, i64 0, i64 0), i8** %2
br label %95
81: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.76, i64 0, i64 0), i8** %2
br label %95
82: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.77, i64 0, i64 0), i8** %2
br label %95
83: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.78, i64 0, i64 0), i8** %2
br label %95
84: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.79, i64 0, i64 0), i8** %2
br label %95
85: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.80, i64 0, i64 0), i8** %2
br label %95
86: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.81, i64 0, i64 0), i8** %2
br label %95
87: ; preds = %1
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.82, i64 0, i64 0), i8** %2
br label %95
88: ; preds = %1
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.83, i64 0, i64 0), i8** %2
br label %95
89: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.84, i64 0, i64 0), i8** %2
br label %95
90: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.85, i64 0, i64 0), i8** %2
br label %95
91: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.86, i64 0, i64 0), i8** %2
br label %95
92: ; preds = %1
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.87, i64 0, i64 0), i8** %2
br label %95
93: ; preds = %1
store i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.88, i64 0, i64 0), i8** %2
br label %95
94: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.89, i64 0, i64 0), i8** %2
br label %95
95: ; preds = %94, %93, %92, %91, %90, %89, %88, %87, %86, %85, %84, %83, %82, %81, %80, %79, %78, %77, %76, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%96 = load i8*, i8** %2
ret i8* %96
}

LLVM IR (-O2):
@.str = [11 x i8] c"CL_SUCCESS\00"
@.str.1 = [20 x i8] c"CL_DEVICE_NOT_FOUND\00"
@.str.2 = [24 x i8] c"CL_DEVICE_NOT_AVAILABLE\00"
@.str.3 = [26 x i8] c"CL_COMPILER_NOT_AVAILABLE\00"
@.str.4 = [33 x i8] c"CL_MEM_OBJECT_ALLOCATION_FAILURE\00"
@.str.5 = [20 x i8] c"CL_OUT_OF_RESOURCES\00"
@.str.6 = [22 x i8] c"CL_OUT_OF_HOST_MEMORY\00"
@.str.7 = [32 x i8] c"CL_PROFILING_INFO_NOT_AVAILABLE\00"
@.str.8 = [20 x i8] c"CL_MEM_COPY_OVERLAP\00"
@.str.9 = [25 x i8] c"CL_IMAGE_FORMAT_MISMATCH\00"
@.str.10 = [30 x i8] c"CL_IMAGE_FORMAT_NOT_SUPPORTED\00"
@.str.11 = [15 x i8] c"CL_MAP_FAILURE\00"
@.str.12 = [32 x i8] c"CL_MISALIGNED_SUB_BUFFER_OFFSET\00"
@.str.13 = [45 x i8] c"CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST\00"
@.str.14 = [27 x i8] c"CL_COMPILE_PROGRAM_FAILURE\00"
@.str.15 = [24 x i8] c"CL_LINKER_NOT_AVAILABLE\00"
@.str.16 = [24 x i8] c"CL_LINK_PROGRAM_FAILURE\00"
@.str.17 = [27 x i8] c"CL_DEVICE_PARTITION_FAILED\00"
@.str.18 = [33 x i8] c"CL_KERNEL_ARG_INFO_NOT_AVAILABLE\00"
@.str.19 = [17 x i8] c"CL_INVALID_VALUE\00"
@.str.20 = [23 x i8] c"CL_INVALID_DEVICE_TYPE\00"
@.str.21 = [20 x i8] c"CL_INVALID_PLATFORM\00"
@.str.22 = [18 x i8] c"CL_INVALID_DEVICE\00"
@.str.23 = [19 x i8] c"CL_INVALID_CONTEXT\00"
@.str.24 = [28 x i8] c"CL_INVALID_QUEUE_PROPERTIES\00"
@.str.25 = [25 x i8] c"CL_INVALID_COMMAND_QUEUE\00"
@.str.26 = [20 x i8] c"CL_INVALID_HOST_PTR\00"
@.str.27 = [22 x i8] c"CL_INVALID_MEM_OBJECT\00"
@.str.28 = [35 x i8] c"CL_INVALID_IMAGE_FORMAT_DESCRIPTOR\00"
@.str.29 = [22 x i8] c"CL_INVALID_IMAGE_SIZE\00"
@.str.30 = [19 x i8] c"CL_INVALID_SAMPLER\00"
@.str.31 = [18 x i8] c"CL_INVALID_BINARY\00"
@.str.32 = [25 x i8] c"CL_INVALID_BUILD_OPTIONS\00"
@.str.33 = [19 x i8] c"CL_INVALID_PROGRAM\00"
@.str.34 = [30 x i8] c"CL_INVALID_PROGRAM_EXECUTABLE\00"
@.str.35 = [23 x i8] c"CL_INVALID_KERNEL_NAME\00"
@.str.36 = [29 x i8] c"CL_INVALID_KERNEL_DEFINITION\00"
@.str.37 = [18 x i8] c"CL_INVALID_KERNEL\00"
@.str.38 = [21 x i8] c"CL_INVALID_ARG_INDEX\00"
@.str.39 = [21 x i8] c"CL_INVALID_ARG_VALUE\00"
@.str.40 = [20 x i8] c"CL_INVALID_ARG_SIZE\00"
@.str.41 = [23 x i8] c"CL_INVALID_KERNEL_ARGS\00"
@.str.42 = [26 x i8] c"CL_INVALID_WORK_DIMENSION\00"
@.str.43 = [27 x i8] c"CL_INVALID_WORK_GROUP_SIZE\00"
@.str.44 = [26 x i8] c"CL_INVALID_WORK_ITEM_SIZE\00"
@.str.45 = [25 x i8] c"CL_INVALID_GLOBAL_OFFSET\00"
@.str.46 = [27 x i8] c"CL_INVALID_EVENT_WAIT_LIST\00"
@.str.47 = [17 x i8] c"CL_INVALID_EVENT\00"
@.str.48 = [21 x i8] c"CL_INVALID_OPERATION\00"
@.str.49 = [21 x i8] c"CL_INVALID_GL_OBJECT\00"
@.str.50 = [23 x i8] c"CL_INVALID_BUFFER_SIZE\00"
@.str.51 = [21 x i8] c"CL_INVALID_MIP_LEVEL\00"
@.str.52 = [28 x i8] c"CL_INVALID_GLOBAL_WORK_SIZE\00"
@.str.53 = [20 x i8] c"CL_INVALID_PROPERTY\00"
@.str.54 = [28 x i8] c"CL_INVALID_IMAGE_DESCRIPTOR\00"
@.str.55 = [28 x i8] c"CL_INVALID_COMPILER_OPTIONS\00"
@.str.56 = [26 x i8] c"CL_INVALID_LINKER_OPTIONS\00"
@.str.57 = [34 x i8] c"CL_INVALID_DEVICE_PARTITION_COUNT\00"
@.str.58 = [21 x i8] c"CL_INVALID_PIPE_SIZE\00"
@.str.59 = [24 x i8] c"CL_INVALID_DEVICE_QUEUE\00"
@.str.60 = [19 x i8] c"CL_INVALID_SPEC_ID\00"
@.str.61 = [33 x i8] c"CL_MAX_SIZE_RESTRICTION_EXCEEDED\00"
@.str.62 = [28 x i8] c"CL_INVALID_D3D10_DEVICE_KHR\00"
@.str.63 = [30 x i8] c"CL_INVALID_D3D10_RESOURCE_KHR\00"
@.str.64 = [39 x i8] c"CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR\00"
@.str.65 = [35 x i8] c"CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.66 = [28 x i8] c"CL_INVALID_D3D11_DEVICE_KHR\00"
@.str.67 = [30 x i8] c"CL_INVALID_D3D11_RESOURCE_KHR\00"
@.str.68 = [39 x i8] c"CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR\00"
@.str.69 = [35 x i8] c"CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.70 = [33 x i8] c"CL_INVALID_DX9_MEDIA_ADAPTER_KHR\00"
@.str.71 = [33 x i8] c"CL_INVALID_DX9_MEDIA_SURFACE_KHR\00"
@.str.72 = [42 x i8] c"CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR\00"
@.str.73 = [38 x i8] c"CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR\00"
@.str.74 = [26 x i8] c"CL_INVALID_EGL_OBJECT_KHR\00"
@.str.75 = [33 x i8] c"CL_EGL_RESOURCE_NOT_ACQUIRED_KHR\00"
@.str.76 = [26 x i8] c"CL_PLATFORM_NOT_FOUND_KHR\00"
@.str.77 = [31 x i8] c"CL_DEVICE_PARTITION_FAILED_EXT\00"
@.str.78 = [31 x i8] c"CL_INVALID_PARTITION_COUNT_EXT\00"
@.str.79 = [30 x i8] c"CL_INVALID_PARTITION_NAME_EXT\00"
@.str.80 = [29 x i8] c"CL_INVALID_ACCELERATOR_INTEL\00"
@.str.81 = [34 x i8] c"CL_INVALID_ACCELERATOR_TYPE_INTEL\00"
@.str.82 = [40 x i8] c"CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL\00"
@.str.83 = [40 x i8] c"CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL\00"
@.str.84 = [39 x i8] c"CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR\00"
@.str.85 = [38 x i8] c"CL_INVALID_VA_API_MEDIA_ADAPTER_INTEL\00"
@.str.86 = [38 x i8] c"CL_INVALID_VA_API_MEDIA_SURFACE_INTEL\00"
@.str.87 = [47 x i8] c"CL_VA_API_MEDIA_SURFACE_ALREADY_ACQUIRED_INTEL\00"
@.str.88 = [43 x i8] c"CL_VA_API_MEDIA_SURFACE_NOT_ACQUIRED_INTEL\00"
@.str.89 = [17 x i8] c"CL_UNKNOWN_ERROR\00"
define i8* @cl_get_error_string(i32 %0) {
switch i32 %0, label %90 [
i32 0, label %91
i32 -1, label %2
i32 -2, label %3
i32 -3, label %4
i32 -4, label %5
i32 -5, label %6
i32 -6, label %7
i32 -7, label %8
i32 -8, label %9
i32 -9, label %10
i32 -10, label %11
i32 -12, label %12
i32 -13, label %13
i32 -14, label %14
i32 -15, label %15
i32 -16, label %16
i32 -17, label %17
i32 -18, label %18
i32 -19, label %19
i32 -30, label %20
i32 -31, label %21
i32 -32, label %22
i32 -33, label %23
i32 -34, label %24
i32 -35, label %25
i32 -36, label %26
i32 -37, label %27
i32 -38, label %28
i32 -39, label %29
i32 -40, label %30
i32 -41, label %31
i32 -42, label %32
i32 -43, label %33
i32 -44, label %34
i32 -45, label %35
i32 -46, label %36
i32 -47, label %37
i32 -48, label %38
i32 -49, label %39
i32 -50, label %40
i32 -51, label %41
i32 -52, label %42
i32 -53, label %43
i32 -54, label %44
i32 -55, label %45
i32 -56, label %46
i32 -57, label %47
i32 -58, label %48
i32 -59, label %49
i32 -60, label %50
i32 -61, label %51
i32 -62, label %52
i32 -63, label %53
i32 -64, label %54
i32 -65, label %55
i32 -66, label %56
i32 -67, label %57
i32 -68, label %58
i32 -69, label %59
i32 -70, label %60
i32 -71, label %61
i32 -72, label %62
i32 -1002, label %63
i32 -1003, label %64
i32 -1004, label %65
i32 -1005, label %66
i32 -1006, label %67
i32 -1007, label %68
i32 -1008, label %69
i32 -1009, label %70
i32 -1010, label %71
i32 -1011, label %72
i32 -1012, label %73
i32 -1013, label %74
i32 -1093, label %75
i32 -1092, label %76
i32 -1001, label %77
i32 -1057, label %78
i32 -1058, label %79
i32 -1059, label %80
i32 -1094, label %81
i32 -1095, label %82
i32 -1096, label %83
i32 -1097, label %84
i32 -1000, label %85
i32 -1098, label %86
i32 -1099, label %87
i32 -1100, label %88
i32 -1101, label %89
]
2: ; preds = %1
br label %91
3: ; preds = %1
br label %91
4: ; preds = %1
br label %91
5: ; preds = %1
br label %91
6: ; preds = %1
br label %91
7: ; preds = %1
br label %91
8: ; preds = %1
br label %91
9: ; preds = %1
br label %91
10: ; preds = %1
br label %91
11: ; preds = %1
br label %91
12: ; preds = %1
br label %91
13: ; preds = %1
br label %91
14: ; preds = %1
br label %91
15: ; preds = %1
br label %91
16: ; preds = %1
br label %91
17: ; preds = %1
br label %91
18: ; preds = %1
br label %91
19: ; preds = %1
br label %91
20: ; preds = %1
br label %91
21: ; preds = %1
br label %91
22: ; preds = %1
br label %91
23: ; preds = %1
br label %91
24: ; preds = %1
br label %91
25: ; preds = %1
br label %91
26: ; preds = %1
br label %91
27: ; preds = %1
br label %91
28: ; preds = %1
br label %91
29: ; preds = %1
br label %91
30: ; preds = %1
br label %91
31: ; preds = %1
br label %91
32: ; preds = %1
br label %91
33: ; preds = %1
br label %91
34: ; preds = %1
br label %91
35: ; preds = %1
br label %91
36: ; preds = %1
br label %91
37: ; preds = %1
br label %91
38: ; preds = %1
br label %91
39: ; preds = %1
br label %91
40: ; preds = %1
br label %91
41: ; preds = %1
br label %91
42: ; preds = %1
br label %91
43: ; preds = %1
br label %91
44: ; preds = %1
br label %91
45: ; preds = %1
br label %91
46: ; preds = %1
br label %91
47: ; preds = %1
br label %91
48: ; preds = %1
br label %91
49: ; preds = %1
br label %91
50: ; preds = %1
br label %91
51: ; preds = %1
br label %91
52: ; preds = %1
br label %91
53: ; preds = %1
br label %91
54: ; preds = %1
br label %91
55: ; preds = %1
br label %91
56: ; preds = %1
br label %91
57: ; preds = %1
br label %91
58: ; preds = %1
br label %91
59: ; preds = %1
br label %91
60: ; preds = %1
br label %91
61: ; preds = %1
br label %91
62: ; preds = %1
br label %91
63: ; preds = %1
br label %91
64: ; preds = %1
br label %91
65: ; preds = %1
br label %91
66: ; preds = %1
br label %91
67: ; preds = %1
br label %91
68: ; preds = %1
br label %91
69: ; preds = %1
br label %91
70: ; preds = %1
br label %91
71: ; preds = %1
br label %91
72: ; preds = %1
br label %91
73: ; preds = %1
br label %91
74: ; preds = %1
br label %91
75: ; preds = %1
br label %91
76: ; preds = %1
br label %91
77: ; preds = %1
br label %91
78: ; preds = %1
br label %91
79: ; preds = %1
br label %91
80: ; preds = %1
br label %91
81: ; preds = %1
br label %91
82: ; preds = %1
br label %91
83: ; preds = %1
br label %91
84: ; preds = %1
br label %91
85: ; preds = %1
br label %91
86: ; preds = %1
br label %91
87: ; preds = %1
br label %91
88: ; preds = %1
br label %91
89: ; preds = %1
br label %91
90: ; preds = %1
br label %91
91: ; preds = %1, %90, %89, %88, %87, %86, %85, %84, %83, %82, %81, %80, %79, %78, %77, %76, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%92 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.89, i64 0, i64 0), %90 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.88, i64 0, i64 0), %89 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.87, i64 0, i64 0), %88 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.86, i64 0, i64 0), %87 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.85, i64 0, i64 0), %86 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.84, i64 0, i64 0), %85 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @.str.83, i64 0, i64 0), %84 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @.str.82, i64 0, i64 0), %83 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.81, i64 0, i64 0), %82 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.80, i64 0, i64 0), %81 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.79, i64 0, i64 0), %80 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.78, i64 0, i64 0), %79 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.77, i64 0, i64 0), %78 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.76, i64 0, i64 0), %77 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.75, i64 0, i64 0), %76 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.74, i64 0, i64 0), %75 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.73, i64 0, i64 0), %74 ], [ getelementptr inbounds ([42 x i8], [42 x i8]* @.str.72, i64 0, i64 0), %73 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.71, i64 0, i64 0), %72 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.70, i64 0, i64 0), %71 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.69, i64 0, i64 0), %70 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.68, i64 0, i64 0), %69 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.67, i64 0, i64 0), %68 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.66, i64 0, i64 0), %67 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.65, i64 0, i64 0), %66 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.64, i64 0, i64 0), %65 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.63, i64 0, i64 0), %64 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.62, i64 0, i64 0), %63 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.61, i64 0, i64 0), %62 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.60, i64 0, i64 0), %61 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.59, i64 0, i64 0), %60 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i64 0, i64 0), %59 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.57, i64 0, i64 0), %58 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.56, i64 0, i64 0), %57 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.55, i64 0, i64 0), %56 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.54, i64 0, i64 0), %55 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.53, i64 0, i64 0), %54 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.52, i64 0, i64 0), %53 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.51, i64 0, i64 0), %52 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.50, i64 0, i64 0), %51 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.49, i64 0, i64 0), %50 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.48, i64 0, i64 0), %49 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.47, i64 0, i64 0), %48 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.46, i64 0, i64 0), %47 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.45, i64 0, i64 0), %46 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.44, i64 0, i64 0), %45 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.43, i64 0, i64 0), %44 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.42, i64 0, i64 0), %43 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.41, i64 0, i64 0), %42 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.40, i64 0, i64 0), %41 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), %40 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.38, i64 0, i64 0), %39 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.37, i64 0, i64 0), %38 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.36, i64 0, i64 0), %37 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.35, i64 0, i64 0), %36 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0), %35 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), %34 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.32, i64 0, i64 0), %33 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.31, i64 0, i64 0), %32 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.30, i64 0, i64 0), %31 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0), %30 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.28, i64 0, i64 0), %29 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), %28 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0), %27 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.25, i64 0, i64 0), %26 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.24, i64 0, i64 0), %25 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), %23 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %92
}