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

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ version;
typedef int /*<<< orphan*/ vendor;
typedef int /*<<< orphan*/ platforms;
typedef int /*<<< orphan*/ name;
typedef int cl_uint;
typedef int /*<<< orphan*/ cl_platform_id;
typedef scalar_t__ cl_int;

/* Variables and functions */
int /*<<< orphan*/ CL_PLATFORM_NAME;
int /*<<< orphan*/ CL_PLATFORM_VENDOR;
int /*<<< orphan*/ CL_PLATFORM_VERSION;
scalar_t__ CL_SUCCESS;
scalar_t__ clGetPlatformIDs(int, int /*<<< orphan*/ *, int *);
scalar_t__ clGetPlatformInfo(int /*<<< orphan*/, int /*<<< orphan*/, int,
                             char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, scalar_t__);
scalar_t__ list_devices(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
cl_int list_platforms(void) {
  cl_platform_id platforms[10];
  cl_uint num_platforms;
  ({
    cl_int ret = clGetPlatformIDs((sizeof(platforms) / sizeof(*platforms)),
                                  platforms, &num_platforms);
    if (ret != CL_SUCCESS) {
      if ("getting platform ids"[0] != 0)
        fprintf(stderr, "Error %s: %d\n", "getting platform ids", ret);
      return -1;
    }
  });
  printf("Platforms:\n");
  for (int i = 0; i < num_platforms; i++) {
    char vendor[80];
    char name[80];
    char version[80];
    ({
      cl_int ret = clGetPlatformInfo(platforms[i], CL_PLATFORM_VENDOR,
                                     sizeof(vendor), vendor, NULL);
      if (ret != CL_SUCCESS) {
        if ("getting platform vendor name"[0] != 0)
          fprintf(stderr, "Error %s: %d\n", "getting platform vendor name",
                  ret);
        return -1;
      }
    });
    ({
      cl_int ret = clGetPlatformInfo(platforms[i], CL_PLATFORM_NAME,
                                     sizeof(name), name, NULL);
      if (ret != CL_SUCCESS) {
        if ("getting platform name"[0] != 0)
          fprintf(stderr, "Error %s: %d\n", "getting platform name", ret);
        return -1;
      }
    });
    ({
      cl_int ret = clGetPlatformInfo(platforms[i], CL_PLATFORM_VERSION,
                                     sizeof(version), version, NULL);
      if (ret != CL_SUCCESS) {
        if ("getting platform version"[0] != 0)
          fprintf(stderr, "Error %s: %d\n", "getting platform version", ret);
        return -1;
      }
    });
    printf("  %d - %s %s %s\n", i + 1, vendor, name, version);
    ({
      cl_int ret = list_devices(platforms[i]);
      if (ret != CL_SUCCESS) {
        if (""[0] != 0)
          fprintf(stderr, "Error %s: %d\n", "", ret);
        return -1;
      }
    });
  }
  return CL_SUCCESS;
}


x86 assembly (clang, -O0):
<list_platforms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
lea    -0x30(%rbp),%rsi
mov    $0xa,%edi
lea    -0x34(%rbp),%rdx
call   1040 <clGetPlatformIDs@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    0x2e4c(%rip),%rcx
cmp    (%rcx),%rax
je     11b2 <list_platforms+0x62>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rcx
lea    0xe67(%rip),%rsi
lea    0xe6e(%rip),%rdx
call   1070 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13b4 <list_platforms+0x264>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13a6 <list_platforms+0x256>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
mov    0x2dd6(%rip),%rax
mov    (%rax),%esi
lea    -0xa0(%rbp),%rcx
mov    $0x50,%edx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <clGetPlatformInfo@plt>
mov    %rax,-0x148(%rbp)
mov    -0x148(%rbp),%rax
mov    0x2db9(%rip),%rcx
cmp    (%rcx),%rax
je     1248 <list_platforms+0xf8>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
mov    -0x148(%rbp),%rcx
lea    0xdd1(%rip),%rsi
lea    0xdf9(%rip),%rdx
call   1070 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13b4 <list_platforms+0x264>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
lea    -0xf0(%rbp),%rcx
mov    $0x50,%edx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <clGetPlatformInfo@plt>
mov    %rax,-0x150(%rbp)
mov    -0x150(%rbp),%rax
mov    0x2d44(%rip),%rcx
cmp    (%rcx),%rax
je     12bd <list_platforms+0x16d>
mov    0x2d44(%rip),%rax
mov    (%rax),%edi
mov    -0x150(%rbp),%rcx
lea    0xd5c(%rip),%rsi
lea    0xda1(%rip),%rdx
call   1070 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13b4 <list_platforms+0x264>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
mov    0x2d04(%rip),%rax
mov    (%rax),%esi
lea    -0x140(%rbp),%rcx
mov    $0x50,%edx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <clGetPlatformInfo@plt>
mov    %rax,-0x158(%rbp)
mov    -0x158(%rbp),%rax
mov    0x2ccf(%rip),%rcx
cmp    (%rcx),%rax
je     1332 <list_platforms+0x1e2>
mov    0x2ccf(%rip),%rax
mov    (%rax),%edi
mov    -0x158(%rbp),%rcx
lea    0xce7(%rip),%rsi
lea    0xd42(%rip),%rdx
call   1070 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13b4 <list_platforms+0x264>
mov    -0x44(%rbp),%esi
add    $0x1,%esi
lea    -0xa0(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
lea    -0x140(%rbp),%r8
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
call   1030 <list_devices@plt>
mov    %rax,-0x160(%rbp)
mov    -0x160(%rbp),%rax
mov    0x2c4b(%rip),%rcx
cmp    (%rcx),%rax
je     1393 <list_platforms+0x243>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13b4 <list_platforms+0x264>
jmp    1398 <list_platforms+0x248>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11c7 <list_platforms+0x77>
mov    0x2c1b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<list_platforms>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    $0xa,%edi
call   1050 <clGetPlatformIDs@plt>
mov    0x2e3c(%rip),%rbp
cmp    0x0(%rbp),%rax
jne    128d <list_platforms+0x12d>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    1287 <list_platforms+0x127>
lea    0xe0(%rsp),%r14
lea    0x90(%rsp),%r15
lea    0x40(%rsp),%r13
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x10(%rsp,%r12,4),%edi
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
mov    $0x50,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1070 <clGetPlatformInfo@plt>
cmp    0x0(%rbp),%rax
jne    12c5 <list_platforms+0x165>
mov    0x10(%rsp,%r12,4),%edi
mov    0x2ddc(%rip),%rax
mov    (%rax),%esi
mov    $0x50,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
call   1070 <clGetPlatformInfo@plt>
cmp    0x0(%rbp),%rax
jne    12de <list_platforms+0x17e>
mov    0x10(%rsp,%r12,4),%edi
mov    0x2da4(%rip),%rax
mov    (%rax),%esi
mov    $0x50,%edx
mov    %r13,%rcx
xor    %r8d,%r8d
call   1070 <clGetPlatformInfo@plt>
cmp    0x0(%rbp),%rax
jne    12f7 <list_platforms+0x197>
lea    0x1(%r12),%rbx
lea    0xe1b(%rip),%rdi
mov    %ebx,%esi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r13,%r8
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rsp,%r12,4),%edi
call   1040 <list_devices@plt>
cmp    0x0(%rbp),%rax
jne    12ac <list_platforms+0x14c>
movslq 0xc(%rsp),%rax
mov    %rbx,%r12
cmp    %rax,%rbx
jl     11d0 <list_platforms+0x70>
mov    0x0(%rbp),%rax
jmp    12b3 <list_platforms+0x153>
mov    0x2d44(%rip),%rcx
mov    (%rcx),%edi
lea    0xd63(%rip),%rsi
lea    0xd6a(%rip),%rdx
mov    %rax,%rcx
call   1080 <fprintf@plt>
mov    $0xffffffffffffffff,%rax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d0c(%rip),%rcx
mov    (%rcx),%edi
lea    0xd2b(%rip),%rsi
lea    0xd47(%rip),%rdx
jmp    12a4 <list_platforms+0x144>
mov    0x2cf3(%rip),%rcx
mov    (%rcx),%edi
lea    0xd12(%rip),%rsi
lea    0xd4b(%rip),%rdx
jmp    12a4 <list_platforms+0x144>
mov    0x2cda(%rip),%rcx
mov    (%rcx),%edi
lea    0xcf9(%rip),%rsi
lea    0xd48(%rip),%rdx
jmp    12a4 <list_platforms+0x144>

LLVM IR (-O0):
@CL_SUCCESS = global i64 0
@stderr = global i32 0
@.str = [14 x i8] c"Error %s: %d\0A\00"
@.str.1 = [21 x i8] c"getting platform ids\00"
@.str.2 = [12 x i8] c"Platforms:\0A\00"
@CL_PLATFORM_VENDOR = global i32 0
@.str.3 = [29 x i8] c"getting platform vendor name\00"
@CL_PLATFORM_NAME = global i32 0
@.str.4 = [22 x i8] c"getting platform name\00"
@CL_PLATFORM_VERSION = global i32 0
@.str.5 = [25 x i8] c"getting platform version\00"
@.str.6 = [17 x i8] c" %d - %s %s %s\0A\00"
define i64 @list_platforms() {
%1 = alloca i64
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i64
%5 = alloca i32
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca [80 x i8]
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%14 = call i64 @clGetPlatformIDs(i32 10, i32* %13, i32* %3)
store i64 %14, i64* %4
%15 = load i64, i64* %4
%16 = load i64, i64* @CL_SUCCESS
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %0
%19 = load i32, i32* @stderr
%20 = load i64, i64* %4
%21 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 %20)
store i64 -1, i64* %1
br label %95
22: ; preds = %0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %5
br label %24
24: ; preds = %90, %22
%25 = load i32, i32* %5
%26 = load i32, i32* %3
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %93
28: ; preds = %24
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = load i32, i32* @CL_PLATFORM_VENDOR
%34 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%35 = call i64 @clGetPlatformInfo(i32 %32, i32 %33, i32 80, i8* %34, i32* null)
store i64 %35, i64* %9
%36 = load i64, i64* %9
%37 = load i64, i64* @CL_SUCCESS
%38 = icmp ne i64 %36, %37
br i1 %38, label %39, label %43
39: ; preds = %28
%40 = load i32, i32* @stderr
%41 = load i64, i64* %9
%42 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i64 %41)
store i64 -1, i64* %1
br label %95
43: ; preds = %28
%44 = load i32, i32* %5
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = load i32, i32* @CL_PLATFORM_NAME
%49 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%50 = call i64 @clGetPlatformInfo(i32 %47, i32 %48, i32 80, i8* %49, i32* null)
store i64 %50, i64* %10
%51 = load i64, i64* %10
%52 = load i64, i64* @CL_SUCCESS
%53 = icmp ne i64 %51, %52
br i1 %53, label %54, label %58
54: ; preds = %43
%55 = load i32, i32* @stderr
%56 = load i64, i64* %10
%57 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i64 %56)
store i64 -1, i64* %1
br label %95
58: ; preds = %43
%59 = load i32, i32* %5
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = load i32, i32* @CL_PLATFORM_VERSION
%64 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%65 = call i64 @clGetPlatformInfo(i32 %62, i32 %63, i32 80, i8* %64, i32* null)
store i64 %65, i64* %11
%66 = load i64, i64* %11
%67 = load i64, i64* @CL_SUCCESS
%68 = icmp ne i64 %66, %67
br i1 %68, label %69, label %73
69: ; preds = %58
%70 = load i32, i32* @stderr
%71 = load i64, i64* %11
%72 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 %71)
store i64 -1, i64* %1
br label %95
73: ; preds = %58
%74 = load i32, i32* %5
%75 = add nsw i32 %74, 1
%76 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%77 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%78 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %75, i8* %76, i8* %77, i8* %78)
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = call i64 @list_devices(i32 %83)
store i64 %84, i64* %12
%85 = load i64, i64* %12
%86 = load i64, i64* @CL_SUCCESS
%87 = icmp ne i64 %85, %86
br i1 %87, label %88, label %89
88: ; preds = %73
store i64 -1, i64* %1
br label %95
89: ; preds = %73
br label %90
90: ; preds = %89
%91 = load i32, i32* %5
%92 = add nsw i32 %91, 1
store i32 %92, i32* %5
br label %24
93: ; preds = %24
%94 = load i64, i64* @CL_SUCCESS
store i64 %94, i64* %1
br label %95
95: ; preds = %93, %88, %69, %54, %39, %18
%96 = load i64, i64* %1
ret i64 %96
}

LLVM IR (-O2):
@CL_SUCCESS = global i64 0
@stderr = global i32 0
@.str = [14 x i8] c"Error %s: %d\0A\00"
@.str.1 = [21 x i8] c"getting platform ids\00"
@CL_PLATFORM_VENDOR = global i32 0
@.str.3 = [29 x i8] c"getting platform vendor name\00"
@CL_PLATFORM_NAME = global i32 0
@.str.4 = [22 x i8] c"getting platform name\00"
@CL_PLATFORM_VERSION = global i32 0
@.str.5 = [25 x i8] c"getting platform version\00"
@.str.6 = [17 x i8] c" %d - %s %s %s\0A\00"
@str = [11 x i8] c"Platforms:\00"
define i64 @list_platforms() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca [80 x i8]
%4 = alloca [80 x i8]
%5 = alloca [80 x i8]
%6 = bitcast [10 x i32]* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%9 = call i64 @clGetPlatformIDs(i32 10, i32* %8, i32* %2)
%10 = load i64, i64* @CL_SUCCESS
%11 = icmp eq i64 %9, %10
br i1 %11, label %15, label %12
12: ; preds = %0
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i64 %9)
br label %67
15: ; preds = %0
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %64
19: ; preds = %15
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%22 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
br label %23
23: ; preds = %19, %60
%24 = phi i64 [ 0, %19 ], [ %53, %60 ]
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = load i32, i32* @CL_PLATFORM_VENDOR
%28 = call i64 @clGetPlatformInfo(i32 %26, i32 %27, i32 80, i8* %20, i32* null)
%29 = load i64, i64* @CL_SUCCESS
%30 = icmp eq i64 %28, %29
br i1 %30, label %34, label %31
31: ; preds = %23
%32 = load i32, i32* @stderr
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i64 %28)
br label %66
34: ; preds = %23
%35 = load i32, i32* %25
%36 = load i32, i32* @CL_PLATFORM_NAME
%37 = call i64 @clGetPlatformInfo(i32 %35, i32 %36, i32 80, i8* %21, i32* null)
%38 = load i64, i64* @CL_SUCCESS
%39 = icmp eq i64 %37, %38
br i1 %39, label %43, label %40
40: ; preds = %34
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i64 %37)
br label %66
43: ; preds = %34
%44 = load i32, i32* %25
%45 = load i32, i32* @CL_PLATFORM_VERSION
%46 = call i64 @clGetPlatformInfo(i32 %44, i32 %45, i32 80, i8* %22, i32* null)
%47 = load i64, i64* @CL_SUCCESS
%48 = icmp eq i64 %46, %47
br i1 %48, label %52, label %49
49: ; preds = %43
%50 = load i32, i32* @stderr
%51 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 %46)
br label %66
52: ; preds = %43
%53 = add nuw nsw i64 %24, 1
%54 = trunc i64 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %54, i8* %20, i8* %21, i8* %22)
%56 = load i32, i32* %25
%57 = call i64 @list_devices(i32 %56)
%58 = load i64, i64* @CL_SUCCESS
%59 = icmp eq i64 %57, %58
br i1 %59, label %60, label %66
60: ; preds = %52
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = icmp slt i64 %53, %62
br i1 %63, label %23, label %64
64: ; preds = %60, %15
%65 = load i64, i64* @CL_SUCCESS
br label %67
66: ; preds = %52, %49, %40, %31
br label %67
67: ; preds = %66, %64, %12
%68 = phi i64 [ -1, %12 ], [ -1, %66 ], [ %65, %64 ]
ret i64 %68
}