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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
char *buildString(char **, int);
char *device() {
  char *str[94] = {
      "int count;",
      "cudaDeviceProp prop;",
      "",
      "cudaGetDeviceCount(&count);",
      "",
      "for (int i=0; i<count; i++) {",
      "	cudaGetDeviceProperties(&prop, i);",
      "	printf(\"Name: %s\\n\", prop.name);",
      "	printf(\"Total global mem: %ld\\n\", prop.totalGlobalMem);",
      "	printf(\"Shared mem per block: %ld\\n\", prop.sharedMemPerBlock);",
      "	printf(\"Total registers per block %d\\n\", prop.regsPerBlock);",
      "	printf(\"Warp size: %d\\n\", prop.warpSize);",
      "	printf(\"Mem pitch: %ld\\n\", prop.memPitch);",
      "	printf(\"Max threads per block: %d\\n\", prop.maxThreadsPerBlock);",
      "	printf(\"Max thread dimensions: %d, %d, %d\\n\", "
      "prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2]);",
      "	printf(\"Max grid size: %d, %d, %d\\n\", prop.maxGridSize[0], "
      "prop.maxGridSize[1], prop.maxGridSize[2]);",
      "	printf(\"Clockrate: %d\\n\", prop.clockRate);",
      "	printf(\"Total constant memory: %ld\\n\", prop.totalConstMem);",
      "	printf(\"Compute capability: %d, %d\\n\", prop.minor, prop.major);",
      "	printf(\"Alignment requirement: %ld\\n\", prop.textureAlignment);",
      "	printf(\"Pitch alignment: %ld\\n\", prop.texturePitchAlignment);",
      "	printf(\"Device copy overlap: \");",
      "	if (prop.deviceOverlap)",
      "		printf(\"Enabled\\n\");",
      "	else",
      "		printf(\"Disabled\\n\");",
      "	printf(\"Number of multiprocessors: %d\\n\", "
      "prop.multiProcessorCount);",
      "	printf(\"Run-time limit for kernel execution: \");",
      "	if(prop.kernelExecTimeoutEnabled)",
      "		printf(\"Enabled\\n\");",
      "	else",
      "		printf(\"Disabled\\n\");",
      "	printf(\"Integrated device: \");",
      "	if(prop.integrated)",
      "		printf(\"Integrated\\n\");",
      "	else",
      "		printf(\"Discrete\\n\");",
      "	printf(\"Can map host memory: \");",
      "	if(prop.canMapHostMemory)",
      "		printf(\"Yes\\n\");",
      "	else",
      "		printf(\"No\\n\");",
      "	printf(\"Compute Mode %d\\n\", prop.computeMode);",
      "	printf(\"Max texture 1d: %d\\n\", prop.maxTexture1D);",
      "	printf(\"Max texture 1d linear: %d\\n\", prop.maxTexture1DLinear);",
      "	printf(\"Max texture 2d: %d, %d\\n\", prop.maxTexture2D[0], "
      "prop.maxTexture2D[1]);",
      "	printf(\"Max texture 2d linear: %d, %d, %d\\n\", "
      "prop.maxTexture2DLinear[0], prop.maxTexture2DLinear[1], "
      "prop.maxTexture2DLinear[2]);",
      "	printf(\"Max texture 2d gather: %d, %d\\n\", "
      "prop.maxTexture2DGather[0], prop.maxTexture2DGather[1]);",
      "	printf(\"Max texture 3d: %d, %d, %d\\n\", prop.maxTexture3D[0], "
      "prop.maxTexture3D[1], prop.maxTexture3D[2]);",
      "	printf(\"Max texture codemap: %d\\n\", prop.maxTextureCubemap);",
      "	printf(\"Max texture 1d layered: %d, %d\\n\", "
      "prop.maxTexture1DLayered[0], prop.maxTexture1DLayered[1]);",
      "	printf(\"Max texture 2d layered: %d, %d, %d\\n\", "
      "prop.maxTexture2DLayered[0], prop.maxTexture2DLayered[2], "
      "prop.maxTexture2DLayered[2]);",
      "	printf(\"Max texture codemap layered: %d, %d\\n\", "
      "prop.maxTextureCubemapLayered[0], prop.maxTextureCubemapLayered[1]);",
      "	printf(\"Max surface 1d: %d\\n\", prop.maxSurface1D);",
      "	printf(\"Max surface 2d: %d, %d\\n\", prop.maxSurface2D[0], "
      "prop.maxSurface2D[1]);",
      "	printf(\"Max surface 3d: %d, %d, %d\\n\", prop.maxSurface3D[0], "
      "prop.maxSurface3D[1], prop.maxSurface3D[2]);",
      "	printf(\"Max surface 1d: %d, %d\\n\", prop.maxSurface1DLayered[0], "
      "prop.maxSurface1DLayered[1]);",
      "	printf(\"Max surface 2d layered: %d, %d, %d\\n\", "
      "prop.maxSurface2DLayered[0], prop.maxSurface2DLayered[1], "
      "prop.maxSurface2DLayered[2]);",
      "	printf(\"Max surface codemap: %d\\n\", prop.maxSurfaceCubemap);",
      "	printf(\"Max surface codemap layered: %d, %d\\n\", "
      "prop.maxSurfaceCubemapLayered[0], prop.maxSurfaceCubemapLayered[1]);",
      "	printf(\"Surface alignment: %ld\\n\", prop.surfaceAlignment);",
      "	printf(\"Concurrent kernels: \");",
      "	if(prop.concurrentKernels)",
      "		printf(\"Yes\\n\");",
      "	else",
      "		printf(\"No\\n\");",
      "	printf(\"ECC enabled: \");",
      "	if(prop.ECCEnabled)",
      "		printf(\"Enabled\\n\");",
      "	else",
      "		printf(\"Disabled\\n\");",
      "	printf(\"PCI Bus Identifier: %d\\n\", prop.pciBusID);",
      "	printf(\"PCI Device Identifier: %d\\n\", prop.pciDeviceID);",
      "	printf(\"PCI Domain Identifier: %d\\n\", prop.pciDomainID);",
      "	printf(\"TCC Driver: \");",
      "	if(prop.tccDriver)",
      "		printf(\"Using TCC Driver\\n\");",
      "	else",
      "		printf(\"Not using TCC Driver\\n\");",
      "	printf(\"Async Engine Count: \");",
      "	if(prop.asyncEngineCount)",
      "		printf(\"Yes\\n\");",
      "	else",
      "		printf(\"No\\n\");",
      "	printf(\"Unified addressing: \");",
      "	if(prop.unifiedAddressing)",
      "		printf(\"Shares a unified address with the host\\n\");",
      "	else",
      "		printf(\"Does not share a unified adress with the host\\n\");",
      "	printf(\"Memory ClockRate: %d\\n\", prop.memoryClockRate);",
      "	printf(\"Memory Bus Width: %d\\n\", prop.memoryBusWidth);",
      "	printf(\"L2 cache size: %d\\n\", prop.l2CacheSize);",
      "	printf(\"Max threads per multiprocessor: %d\\n\", "
      "prop.maxThreadsPerMultiProcessor);",
      "}"};
  return buildString(str, 94);
}


x86 assembly (clang, -O0):
<device>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2f0,%rsp
lea    -0x2f0(%rbp),%rdi
lea    0x39f7(%rip),%rsi
mov    $0x2f0,%edx
call   1040 <memcpy@plt>
lea    -0x2f0(%rbp),%rdi
mov    $0x5e,%esi
call   1030 <buildString@plt>
add    $0x2f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<device>:
push   %rbx
sub    $0x2f0,%rsp
lea    0x3a01(%rip),%rsi
mov    %rsp,%rbx
mov    $0x2f0,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
mov    $0x5e,%esi
call   1030 <buildString@plt>
add    $0x2f0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"int count;\00"
@.str.1 = [21 x i8] c"cudaDeviceProp prop;\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [28 x i8] c"cudaGetDeviceCount(&count);\00"
@.str.4 = [30 x i8] c"for (int i=0; i<count; i++) {\00"
@.str.5 = [36 x i8] c"\09cudaGetDeviceProperties(&prop, i);\00"
@.str.6 = [34 x i8] c"\09printf(\22Name: %s\\n\22, prop.name);\00"
@.str.7 = [57 x i8] c"\09printf(\22Total global mem: %ld\\n\22, prop.totalGlobalMem);\00"
@.str.8 = [64 x i8] c"\09printf(\22Shared mem per block: %ld\\n\22, prop.sharedMemPerBlock);\00"
@.str.9 = [62 x i8] c"\09printf(\22Total registers per block %d\\n\22, prop.regsPerBlock);\00"
@.str.10 = [43 x i8] c"\09printf(\22Warp size: %d\\n\22, prop.warpSize);\00"
@.str.11 = [44 x i8] c"\09printf(\22Mem pitch: %ld\\n\22, prop.memPitch);\00"
@.str.12 = [65 x i8] c"\09printf(\22Max threads per block: %d\\n\22, prop.maxThreadsPerBlock);\00"
@.str.13 = [117 x i8] c"\09printf(\22Max thread dimensions: %d, %d, %d\\n\22, prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2]);\00"
@.str.14 = [103 x i8] c"\09printf(\22Max grid size: %d, %d, %d\\n\22, prop.maxGridSize[0], prop.maxGridSize[1], prop.maxGridSize[2]);\00"
@.str.15 = [44 x i8] c"\09printf(\22Clockrate: %d\\n\22, prop.clockRate);\00"
@.str.16 = [61 x i8] c"\09printf(\22Total constant memory: %ld\\n\22, prop.totalConstMem);\00"
@.str.17 = [65 x i8] c"\09printf(\22Compute capability: %d, %d\\n\22, prop.minor, prop.major);\00"
@.str.18 = [64 x i8] c"\09printf(\22Alignment requirement: %ld\\n\22, prop.textureAlignment);\00"
@.str.19 = [63 x i8] c"\09printf(\22Pitch alignment: %ld\\n\22, prop.texturePitchAlignment);\00"
@.str.20 = [34 x i8] c"\09printf(\22Device copy overlap: \22);\00"
@.str.21 = [25 x i8] c"\09if (prop.deviceOverlap)\00"
@.str.22 = [23 x i8] c"\09\09printf(\22Enabled\\n\22);\00"
@.str.23 = [6 x i8] c"\09else\00"
@.str.24 = [24 x i8] c"\09\09printf(\22Disabled\\n\22);\00"
@.str.25 = [70 x i8] c"\09printf(\22Number of multiprocessors: %d\\n\22, prop.multiProcessorCount);\00"
@.str.26 = [50 x i8] c"\09printf(\22Run-time limit for kernel execution: \22);\00"
@.str.27 = [35 x i8] c"\09if(prop.kernelExecTimeoutEnabled)\00"
@.str.28 = [32 x i8] c"\09printf(\22Integrated device: \22);\00"
@.str.29 = [21 x i8] c"\09if(prop.integrated)\00"
@.str.30 = [26 x i8] c"\09\09printf(\22Integrated\\n\22);\00"
@.str.31 = [24 x i8] c"\09\09printf(\22Discrete\\n\22);\00"
@.str.32 = [34 x i8] c"\09printf(\22Can map host memory: \22);\00"
@.str.33 = [27 x i8] c"\09if(prop.canMapHostMemory)\00"
@.str.34 = [19 x i8] c"\09\09printf(\22Yes\\n\22);\00"
@.str.35 = [18 x i8] c"\09\09printf(\22No\\n\22);\00"
@.str.36 = [48 x i8] c"\09printf(\22Compute Mode %d\\n\22, prop.computeMode);\00"
@.str.37 = [52 x i8] c"\09printf(\22Max texture 1d: %d\\n\22, prop.maxTexture1D);\00"
@.str.38 = [65 x i8] c"\09printf(\22Max texture 1d linear: %d\\n\22, prop.maxTexture1DLinear);\00"
@.str.39 = [81 x i8] c"\09printf(\22Max texture 2d: %d, %d\\n\22, prop.maxTexture2D[0], prop.maxTexture2D[1]);\00"
@.str.40 = [132 x i8] c"\09printf(\22Max texture 2d linear: %d, %d, %d\\n\22, prop.maxTexture2DLinear[0], prop.maxTexture2DLinear[1], prop.maxTexture2DLinear[2]);\00"
@.str.41 = [100 x i8] c"\09printf(\22Max texture 2d gather: %d, %d\\n\22, prop.maxTexture2DGather[0], prop.maxTexture2DGather[1]);\00"
@.str.42 = [107 x i8] c"\09printf(\22Max texture 3d: %d, %d, %d\\n\22, prop.maxTexture3D[0], prop.maxTexture3D[1], prop.maxTexture3D[2]);\00"
@.str.43 = [62 x i8] c"\09printf(\22Max texture codemap: %d\\n\22, prop.maxTextureCubemap);\00"
@.str.44 = [103 x i8] c"\09printf(\22Max texture 1d layered: %d, %d\\n\22, prop.maxTexture1DLayered[0], prop.maxTexture1DLayered[1]);\00"
@.str.45 = [136 x i8] c"\09printf(\22Max texture 2d layered: %d, %d, %d\\n\22, prop.maxTexture2DLayered[0], prop.maxTexture2DLayered[2], prop.maxTexture2DLayered[2]);\00"
@.str.46 = [118 x i8] c"\09printf(\22Max texture codemap layered: %d, %d\\n\22, prop.maxTextureCubemapLayered[0], prop.maxTextureCubemapLayered[1]);\00"
@.str.47 = [52 x i8] c"\09printf(\22Max surface 1d: %d\\n\22, prop.maxSurface1D);\00"
@.str.48 = [81 x i8] c"\09printf(\22Max surface 2d: %d, %d\\n\22, prop.maxSurface2D[0], prop.maxSurface2D[1]);\00"
@.str.49 = [107 x i8] c"\09printf(\22Max surface 3d: %d, %d, %d\\n\22, prop.maxSurface3D[0], prop.maxSurface3D[1], prop.maxSurface3D[2]);\00"
@.str.50 = [95 x i8] c"\09printf(\22Max surface 1d: %d, %d\\n\22, prop.maxSurface1DLayered[0], prop.maxSurface1DLayered[1]);\00"
@.str.51 = [136 x i8] c"\09printf(\22Max surface 2d layered: %d, %d, %d\\n\22, prop.maxSurface2DLayered[0], prop.maxSurface2DLayered[1], prop.maxSurface2DLayered[2]);\00"
@.str.52 = [62 x i8] c"\09printf(\22Max surface codemap: %d\\n\22, prop.maxSurfaceCubemap);\00"
@.str.53 = [118 x i8] c"\09printf(\22Max surface codemap layered: %d, %d\\n\22, prop.maxSurfaceCubemapLayered[0], prop.maxSurfaceCubemapLayered[1]);\00"
@.str.54 = [60 x i8] c"\09printf(\22Surface alignment: %ld\\n\22, prop.surfaceAlignment);\00"
@.str.55 = [33 x i8] c"\09printf(\22Concurrent kernels: \22);\00"
@.str.56 = [28 x i8] c"\09if(prop.concurrentKernels)\00"
@.str.57 = [26 x i8] c"\09printf(\22ECC enabled: \22);\00"
@.str.58 = [21 x i8] c"\09if(prop.ECCEnabled)\00"
@.str.59 = [52 x i8] c"\09printf(\22PCI Bus Identifier: %d\\n\22, prop.pciBusID);\00"
@.str.60 = [58 x i8] c"\09printf(\22PCI Device Identifier: %d\\n\22, prop.pciDeviceID);\00"
@.str.61 = [58 x i8] c"\09printf(\22PCI Domain Identifier: %d\\n\22, prop.pciDomainID);\00"
@.str.62 = [25 x i8] c"\09printf(\22TCC Driver: \22);\00"
@.str.63 = [20 x i8] c"\09if(prop.tccDriver)\00"
@.str.64 = [32 x i8] c"\09\09printf(\22Using TCC Driver\\n\22);\00"
@.str.65 = [36 x i8] c"\09\09printf(\22Not using TCC Driver\\n\22);\00"
@.str.66 = [33 x i8] c"\09printf(\22Async Engine Count: \22);\00"
@.str.67 = [27 x i8] c"\09if(prop.asyncEngineCount)\00"
@.str.68 = [33 x i8] c"\09printf(\22Unified addressing: \22);\00"
@.str.69 = [28 x i8] c"\09if(prop.unifiedAddressing)\00"
@.str.70 = [54 x i8] c"\09\09printf(\22Shares a unified address with the host\\n\22);\00"
@.str.71 = [61 x i8] c"\09\09printf(\22Does not share a unified adress with the host\\n\22);\00"
@.str.72 = [57 x i8] c"\09printf(\22Memory ClockRate: %d\\n\22, prop.memoryClockRate);\00"
@.str.73 = [56 x i8] c"\09printf(\22Memory Bus Width: %d\\n\22, prop.memoryBusWidth);\00"
@.str.74 = [50 x i8] c"\09printf(\22L2 cache size: %d\\n\22, prop.l2CacheSize);\00"
@.str.75 = [83 x i8] c"\09printf(\22Max threads per multiprocessor: %d\\n\22, prop.maxThreadsPerMultiProcessor);\00"
@.str.76 = [2 x i8] c"}\00"
@__const.device.str = [94 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.54, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.55, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.56, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.57, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.59, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.60, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.61, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.62, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.63, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.64, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.65, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.66, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.67, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.68, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.69, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.70, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.71, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.72, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.73, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.74, i32 0, i32 0), i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.75, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.76, i32 0, i32 0)]
define i8* @device() {
%1 = alloca [94 x i8*]
%2 = bitcast [94 x i8*]* %1 to i8*
%3 = getelementptr inbounds [94 x i8*], [94 x i8*]* %1, i64 0, i64 0
%4 = call i8* @buildString(i8** %3, i32 94)
ret i8* %4
}

LLVM IR (-O2):
@.str = [11 x i8] c"int count;\00"
@.str.1 = [21 x i8] c"cudaDeviceProp prop;\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [28 x i8] c"cudaGetDeviceCount(&count);\00"
@.str.4 = [30 x i8] c"for (int i=0; i<count; i++) {\00"
@.str.5 = [36 x i8] c"\09cudaGetDeviceProperties(&prop, i);\00"
@.str.6 = [34 x i8] c"\09printf(\22Name: %s\\n\22, prop.name);\00"
@.str.7 = [57 x i8] c"\09printf(\22Total global mem: %ld\\n\22, prop.totalGlobalMem);\00"
@.str.8 = [64 x i8] c"\09printf(\22Shared mem per block: %ld\\n\22, prop.sharedMemPerBlock);\00"
@.str.9 = [62 x i8] c"\09printf(\22Total registers per block %d\\n\22, prop.regsPerBlock);\00"
@.str.10 = [43 x i8] c"\09printf(\22Warp size: %d\\n\22, prop.warpSize);\00"
@.str.11 = [44 x i8] c"\09printf(\22Mem pitch: %ld\\n\22, prop.memPitch);\00"
@.str.12 = [65 x i8] c"\09printf(\22Max threads per block: %d\\n\22, prop.maxThreadsPerBlock);\00"
@.str.13 = [117 x i8] c"\09printf(\22Max thread dimensions: %d, %d, %d\\n\22, prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2]);\00"
@.str.14 = [103 x i8] c"\09printf(\22Max grid size: %d, %d, %d\\n\22, prop.maxGridSize[0], prop.maxGridSize[1], prop.maxGridSize[2]);\00"
@.str.15 = [44 x i8] c"\09printf(\22Clockrate: %d\\n\22, prop.clockRate);\00"
@.str.16 = [61 x i8] c"\09printf(\22Total constant memory: %ld\\n\22, prop.totalConstMem);\00"
@.str.17 = [65 x i8] c"\09printf(\22Compute capability: %d, %d\\n\22, prop.minor, prop.major);\00"
@.str.18 = [64 x i8] c"\09printf(\22Alignment requirement: %ld\\n\22, prop.textureAlignment);\00"
@.str.19 = [63 x i8] c"\09printf(\22Pitch alignment: %ld\\n\22, prop.texturePitchAlignment);\00"
@.str.20 = [34 x i8] c"\09printf(\22Device copy overlap: \22);\00"
@.str.21 = [25 x i8] c"\09if (prop.deviceOverlap)\00"
@.str.22 = [23 x i8] c"\09\09printf(\22Enabled\\n\22);\00"
@.str.23 = [6 x i8] c"\09else\00"
@.str.24 = [24 x i8] c"\09\09printf(\22Disabled\\n\22);\00"
@.str.25 = [70 x i8] c"\09printf(\22Number of multiprocessors: %d\\n\22, prop.multiProcessorCount);\00"
@.str.26 = [50 x i8] c"\09printf(\22Run-time limit for kernel execution: \22);\00"
@.str.27 = [35 x i8] c"\09if(prop.kernelExecTimeoutEnabled)\00"
@.str.28 = [32 x i8] c"\09printf(\22Integrated device: \22);\00"
@.str.29 = [21 x i8] c"\09if(prop.integrated)\00"
@.str.30 = [26 x i8] c"\09\09printf(\22Integrated\\n\22);\00"
@.str.31 = [24 x i8] c"\09\09printf(\22Discrete\\n\22);\00"
@.str.32 = [34 x i8] c"\09printf(\22Can map host memory: \22);\00"
@.str.33 = [27 x i8] c"\09if(prop.canMapHostMemory)\00"
@.str.34 = [19 x i8] c"\09\09printf(\22Yes\\n\22);\00"
@.str.35 = [18 x i8] c"\09\09printf(\22No\\n\22);\00"
@.str.36 = [48 x i8] c"\09printf(\22Compute Mode %d\\n\22, prop.computeMode);\00"
@.str.37 = [52 x i8] c"\09printf(\22Max texture 1d: %d\\n\22, prop.maxTexture1D);\00"
@.str.38 = [65 x i8] c"\09printf(\22Max texture 1d linear: %d\\n\22, prop.maxTexture1DLinear);\00"
@.str.39 = [81 x i8] c"\09printf(\22Max texture 2d: %d, %d\\n\22, prop.maxTexture2D[0], prop.maxTexture2D[1]);\00"
@.str.40 = [132 x i8] c"\09printf(\22Max texture 2d linear: %d, %d, %d\\n\22, prop.maxTexture2DLinear[0], prop.maxTexture2DLinear[1], prop.maxTexture2DLinear[2]);\00"
@.str.41 = [100 x i8] c"\09printf(\22Max texture 2d gather: %d, %d\\n\22, prop.maxTexture2DGather[0], prop.maxTexture2DGather[1]);\00"
@.str.42 = [107 x i8] c"\09printf(\22Max texture 3d: %d, %d, %d\\n\22, prop.maxTexture3D[0], prop.maxTexture3D[1], prop.maxTexture3D[2]);\00"
@.str.43 = [62 x i8] c"\09printf(\22Max texture codemap: %d\\n\22, prop.maxTextureCubemap);\00"
@.str.44 = [103 x i8] c"\09printf(\22Max texture 1d layered: %d, %d\\n\22, prop.maxTexture1DLayered[0], prop.maxTexture1DLayered[1]);\00"
@.str.45 = [136 x i8] c"\09printf(\22Max texture 2d layered: %d, %d, %d\\n\22, prop.maxTexture2DLayered[0], prop.maxTexture2DLayered[2], prop.maxTexture2DLayered[2]);\00"
@.str.46 = [118 x i8] c"\09printf(\22Max texture codemap layered: %d, %d\\n\22, prop.maxTextureCubemapLayered[0], prop.maxTextureCubemapLayered[1]);\00"
@.str.47 = [52 x i8] c"\09printf(\22Max surface 1d: %d\\n\22, prop.maxSurface1D);\00"
@.str.48 = [81 x i8] c"\09printf(\22Max surface 2d: %d, %d\\n\22, prop.maxSurface2D[0], prop.maxSurface2D[1]);\00"
@.str.49 = [107 x i8] c"\09printf(\22Max surface 3d: %d, %d, %d\\n\22, prop.maxSurface3D[0], prop.maxSurface3D[1], prop.maxSurface3D[2]);\00"
@.str.50 = [95 x i8] c"\09printf(\22Max surface 1d: %d, %d\\n\22, prop.maxSurface1DLayered[0], prop.maxSurface1DLayered[1]);\00"
@.str.51 = [136 x i8] c"\09printf(\22Max surface 2d layered: %d, %d, %d\\n\22, prop.maxSurface2DLayered[0], prop.maxSurface2DLayered[1], prop.maxSurface2DLayered[2]);\00"
@.str.52 = [62 x i8] c"\09printf(\22Max surface codemap: %d\\n\22, prop.maxSurfaceCubemap);\00"
@.str.53 = [118 x i8] c"\09printf(\22Max surface codemap layered: %d, %d\\n\22, prop.maxSurfaceCubemapLayered[0], prop.maxSurfaceCubemapLayered[1]);\00"
@.str.54 = [60 x i8] c"\09printf(\22Surface alignment: %ld\\n\22, prop.surfaceAlignment);\00"
@.str.55 = [33 x i8] c"\09printf(\22Concurrent kernels: \22);\00"
@.str.56 = [28 x i8] c"\09if(prop.concurrentKernels)\00"
@.str.57 = [26 x i8] c"\09printf(\22ECC enabled: \22);\00"
@.str.58 = [21 x i8] c"\09if(prop.ECCEnabled)\00"
@.str.59 = [52 x i8] c"\09printf(\22PCI Bus Identifier: %d\\n\22, prop.pciBusID);\00"
@.str.60 = [58 x i8] c"\09printf(\22PCI Device Identifier: %d\\n\22, prop.pciDeviceID);\00"
@.str.61 = [58 x i8] c"\09printf(\22PCI Domain Identifier: %d\\n\22, prop.pciDomainID);\00"
@.str.62 = [25 x i8] c"\09printf(\22TCC Driver: \22);\00"
@.str.63 = [20 x i8] c"\09if(prop.tccDriver)\00"
@.str.64 = [32 x i8] c"\09\09printf(\22Using TCC Driver\\n\22);\00"
@.str.65 = [36 x i8] c"\09\09printf(\22Not using TCC Driver\\n\22);\00"
@.str.66 = [33 x i8] c"\09printf(\22Async Engine Count: \22);\00"
@.str.67 = [27 x i8] c"\09if(prop.asyncEngineCount)\00"
@.str.68 = [33 x i8] c"\09printf(\22Unified addressing: \22);\00"
@.str.69 = [28 x i8] c"\09if(prop.unifiedAddressing)\00"
@.str.70 = [54 x i8] c"\09\09printf(\22Shares a unified address with the host\\n\22);\00"
@.str.71 = [61 x i8] c"\09\09printf(\22Does not share a unified adress with the host\\n\22);\00"
@.str.72 = [57 x i8] c"\09printf(\22Memory ClockRate: %d\\n\22, prop.memoryClockRate);\00"
@.str.73 = [56 x i8] c"\09printf(\22Memory Bus Width: %d\\n\22, prop.memoryBusWidth);\00"
@.str.74 = [50 x i8] c"\09printf(\22L2 cache size: %d\\n\22, prop.l2CacheSize);\00"
@.str.75 = [83 x i8] c"\09printf(\22Max threads per multiprocessor: %d\\n\22, prop.maxThreadsPerMultiProcessor);\00"
@.str.76 = [2 x i8] c"}\00"
@__const.device.str = [94 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.54, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.55, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.56, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.57, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.59, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.60, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.61, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.62, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.63, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.64, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.65, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.66, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.67, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.68, i32 0, i32 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.69, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.70, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.71, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.72, i32 0, i32 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.73, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.74, i32 0, i32 0), i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.75, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.76, i32 0, i32 0)]
define i8* @device() {
%1 = alloca [94 x i8*]
%2 = bitcast [94 x i8*]* %1 to i8*
%3 = getelementptr inbounds [94 x i8*], [94 x i8*]* %1, i64 0, i64 0
%4 = call i8* @buildString(i8** %3, i32 94)
ret i8* %4
}