#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*/ cl_program;
typedef int /*<<< orphan*/ cl_context;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ clCreateProgramWithSource(int /*<<< orphan*/, int,
                                             char const **,
                                             unsigned long const *,
                                             int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
size_t fread(char *, int, unsigned long const, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
unsigned long ftell(int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcmp(char const *, char *);
int create_program(cl_program *program, const char *program_name,
                   cl_context *context) {
  FILE *file = NULL;
  if (!strcmp(program_name, "mwc64x")) {
    file = fopen("mwc64x/sumKernel.cl", "r");
  } else if (!strcmp(program_name, "mwc64x-random")) {
    file = fopen("Random123/sumRandomKernel.cl", "r");
  } else if (!strcmp(program_name, "random123")) {
    file = fopen("Random123/sumKernel.cl", "r");
  } else if (!strcmp(program_name, "random123-random")) {
    file = fopen("Random123/sumRandomKernel.cl", "r");
  } else if (!strcmp(program_name, "opencl_random")) {
    file = fopen("OpenCL_random/sumKernel.cl", "r");
  } else if (!strcmp(program_name, "opencl_random-random")) {
    file = fopen("OpenCL_random/sumRandomKernel.cl", "r");
  } else if (!strcmp(program_name, "park_miller")) {
    file = fopen("Park_Miller/sumKernel.cl", "r");
  } else if (!strcmp(program_name, "park_miller-random")) {
    file = fopen("Park_Miller/sumRandomKernel.cl", "r");
  } else {
    return 1;
  }
  assert(file != NULL);
  fseek(file, 0, SEEK_END);
  const unsigned long sourceSize = ftell(file);
  rewind(file);
  assert(sourceSize > 0);
  char *source = (char *)malloc(sizeof(char) * sourceSize);
  size_t result = fread(source, 1, sourceSize, file);
  assert(result == sourceSize);
  fclose(file);
  *program = clCreateProgramWithSource(*context, 1, (const char **)&source,
                                       &sourceSize, NULL);
  free(source);
  return 0;
}


x86 assembly (clang, -O0):
<create_program>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1201 <create_program+0x51>
lea    0xe1b(%rip),%rdi
lea    0xeee(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    13a3 <create_program+0x1f3>
mov    -0x18(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1236 <create_program+0x86>
lea    0xe08(%rip),%rdi
lea    0xeb9(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    139e <create_program+0x1ee>
mov    -0x18(%rbp),%rdi
lea    0xe05(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    126b <create_program+0xbb>
lea    0xdfa(%rip),%rdi
lea    0xe84(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    1399 <create_program+0x1e9>
mov    -0x18(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12a0 <create_program+0xf0>
lea    0xd9e(%rip),%rdi
lea    0xe4f(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    1394 <create_program+0x1e4>
mov    -0x18(%rbp),%rdi
lea    0xdcd(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12d5 <create_program+0x125>
lea    0xdc6(%rip),%rdi
lea    0xe1a(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    138f <create_program+0x1df>
mov    -0x18(%rbp),%rdi
lea    0xdc1(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    130a <create_program+0x15a>
lea    0xdc1(%rip),%rdi
lea    0xde5(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    138a <create_program+0x1da>
mov    -0x18(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    133f <create_program+0x18f>
lea    0xdb9(%rip),%rdi
lea    0xdb0(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    1385 <create_program+0x1d5>
mov    -0x18(%rbp),%rdi
lea    0xdb2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1374 <create_program+0x1c4>
lea    0xdb0(%rip),%rdi
lea    0xd7b(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    1380 <create_program+0x1d0>
movl   $0x1,-0x4(%rbp)
jmp    1471 <create_program+0x2c1>
jmp    1385 <create_program+0x1d5>
jmp    138a <create_program+0x1da>
jmp    138f <create_program+0x1df>
jmp    1394 <create_program+0x1e4>
jmp    1399 <create_program+0x1e9>
jmp    139e <create_program+0x1ee>
jmp    13a3 <create_program+0x1f3>
cmpq   $0x0,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x28(%rbp),%rdi
mov    0x2c28(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x28(%rbp),%rdi
call   10a0 <ftell@plt>
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
call   1070 <rewind@plt>
cmpq   $0x0,-0x30(%rbp)
seta   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x30(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fread@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1090 <assert@plt>
mov    -0x28(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    $0x1,%esi
lea    -0x38(%rbp),%rdx
lea    -0x30(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1040 <clCreateProgramWithSource@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_program>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xe33(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1284 <create_program+0xd4>
lea    0xe37(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
lea    0xe36(%rip),%r12
test   %eax,%eax
je     12af <create_program+0xff>
lea    0xe44(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     128d <create_program+0xdd>
lea    0xe52(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12af <create_program+0xff>
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1296 <create_program+0xe6>
lea    0xe62(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     129f <create_program+0xef>
lea    0xe85(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12a8 <create_program+0xf8>
lea    0xe97(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
mov    $0x1,%r12d
test   %eax,%eax
jne    1363 <create_program+0x1b3>
lea    0xe8d(%rip),%r12
jmp    12af <create_program+0xff>
lea    0xd7c(%rip),%r12
jmp    12af <create_program+0xff>
lea    0xdbc(%rip),%r12
jmp    12af <create_program+0xff>
lea    0xde9(%rip),%r12
jmp    12af <create_program+0xff>
lea    0xe10(%rip),%r12
jmp    12af <create_program+0xff>
lea    0xe34(%rip),%r12
lea    0xe2b(%rip),%rsi
mov    %r12,%rdi
call   10d0 <fopen@plt>
mov    %rax,%r13
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1090 <assert@plt>
mov    0x2d12(%rip),%rax
mov    (%rax),%edx
xor    %r12d,%r12d
mov    %r13,%rdi
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    %r13,%rdi
call   10a0 <ftell@plt>
mov    %rax,%rbx
mov    %rax,0x8(%rsp)
mov    %r13,%rdi
call   1070 <rewind@plt>
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1090 <assert@plt>
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,(%rsp)
mov    %rax,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r13,%rcx
call   1050 <fread@plt>
xor    %edi,%edi
cmp    %rbx,%rax
sete   %dil
call   1090 <assert@plt>
mov    %r13,%rdi
call   1060 <fclose@plt>
mov    (%r15),%edi
mov    %rsp,%rdx
lea    0x8(%rsp),%rcx
mov    $0x1,%esi
xor    %r8d,%r8d
call   1040 <clCreateProgramWithSource@plt>
mov    %eax,(%r14)
mov    (%rsp),%rdi
call   1030 <free@plt>
mov    %r12d,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"mwc64x\00"
@.str.1 = [20 x i8] c"mwc64x/sumKernel.cl\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [14 x i8] c"mwc64x-random\00"
@.str.4 = [29 x i8] c"Random123/sumRandomKernel.cl\00"
@.str.5 = [10 x i8] c"random123\00"
@.str.6 = [23 x i8] c"Random123/sumKernel.cl\00"
@.str.7 = [17 x i8] c"random123-random\00"
@.str.8 = [14 x i8] c"opencl_random\00"
@.str.9 = [27 x i8] c"OpenCL_random/sumKernel.cl\00"
@.str.10 = [21 x i8] c"opencl_random-random\00"
@.str.11 = [33 x i8] c"OpenCL_random/sumRandomKernel.cl\00"
@.str.12 = [12 x i8] c"park_miller\00"
@.str.13 = [25 x i8] c"Park_Miller/sumKernel.cl\00"
@.str.14 = [19 x i8] c"park_miller-random\00"
@.str.15 = [31 x i8] c"Park_Miller/sumRandomKernel.cl\00"
@SEEK_END = global i32 0
define i32 @create_program(i32* %0, i8* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
store i32* %0, i32** %5
store i8* %1, i8** %6
store i32* %2, i32** %7
store i32* null, i32** %8
%12 = load i8*, i8** %6
%13 = call i32 @strcmp(i8* %12, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%14 = icmp ne i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %3
%16 = call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %16, i32** %8
br label %67
17: ; preds = %3
%18 = load i8*, i8** %6
%19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp ne i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %17
%22 = call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %22, i32** %8
br label %66
23: ; preds = %17
%24 = load i8*, i8** %6
%25 = call i32 @strcmp(i8* %24, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %23
%28 = call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %28, i32** %8
br label %65
29: ; preds = %23
%30 = load i8*, i8** %6
%31 = call i32 @strcmp(i8* %30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = call i32* @fopen(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %34, i32** %8
br label %64
35: ; preds = %29
%36 = load i8*, i8** %6
%37 = call i32 @strcmp(i8* %36, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %35
%40 = call i32* @fopen(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %40, i32** %8
br label %63
41: ; preds = %35
%42 = load i8*, i8** %6
%43 = call i32 @strcmp(i8* %42, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%44 = icmp ne i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %41
%46 = call i32* @fopen(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %46, i32** %8
br label %62
47: ; preds = %41
%48 = load i8*, i8** %6
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%50 = icmp ne i32 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %47
%52 = call i32* @fopen(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %52, i32** %8
br label %61
53: ; preds = %47
%54 = load i8*, i8** %6
%55 = call i32 @strcmp(i8* %54, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%56 = icmp ne i32 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %53
%58 = call i32* @fopen(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %58, i32** %8
br label %60
59: ; preds = %53
store i32 1, i32* %4
br label %105
60: ; preds = %57
br label %61
61: ; preds = %60, %51
br label %62
62: ; preds = %61, %45
br label %63
63: ; preds = %62, %39
br label %64
64: ; preds = %63, %33
br label %65
65: ; preds = %64, %27
br label %66
66: ; preds = %65, %21
br label %67
67: ; preds = %66, %15
%68 = load i32*, i32** %8
%69 = icmp ne i32* %68, null
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 %70)
%72 = load i32*, i32** %8
%73 = load i32, i32* @SEEK_END
%74 = call i32 @fseek(i32* %72, i32 0, i32 %73)
%75 = load i32*, i32** %8
%76 = call i64 @ftell(i32* %75)
store i64 %76, i64* %9
%77 = load i32*, i32** %8
%78 = call i32 @rewind(i32* %77)
%79 = load i64, i64* %9
%80 = icmp ugt i64 %79, 0
%81 = zext i1 %80 to i32
%82 = call i32 @assert(i32 %81)
%83 = load i64, i64* %9
%84 = mul i64 1, %83
%85 = trunc i64 %84 to i32
%86 = call i64 @malloc(i32 %85)
%87 = inttoptr i64 %86 to i8*
store i8* %87, i8** %10
%88 = load i8*, i8** %10
%89 = load i64, i64* %9
%90 = load i32*, i32** %8
%91 = call i64 @fread(i8* %88, i32 1, i64 %89, i32* %90)
store i64 %91, i64* %11
%92 = load i64, i64* %11
%93 = load i64, i64* %9
%94 = icmp eq i64 %92, %93
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load i32*, i32** %8
%98 = call i32 @fclose(i32* %97)
%99 = load i32*, i32** %7
%100 = load i32, i32* %99
%101 = call i32 @clCreateProgramWithSource(i32 %100, i32 1, i8** %10, i64* %9, i32* null)
%102 = load i32*, i32** %5
store i32 %101, i32* %102
%103 = load i8*, i8** %10
%104 = call i32 @free(i8* %103)
store i32 0, i32* %4
br label %105
105: ; preds = %67, %59
%106 = load i32, i32* %4
ret i32 %106
}

LLVM IR (-O2):
@.str = [7 x i8] c"mwc64x\00"
@.str.1 = [20 x i8] c"mwc64x/sumKernel.cl\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [14 x i8] c"mwc64x-random\00"
@.str.4 = [29 x i8] c"Random123/sumRandomKernel.cl\00"
@.str.5 = [10 x i8] c"random123\00"
@.str.6 = [23 x i8] c"Random123/sumKernel.cl\00"
@.str.7 = [17 x i8] c"random123-random\00"
@.str.8 = [14 x i8] c"opencl_random\00"
@.str.9 = [27 x i8] c"OpenCL_random/sumKernel.cl\00"
@.str.10 = [21 x i8] c"opencl_random-random\00"
@.str.11 = [33 x i8] c"OpenCL_random/sumRandomKernel.cl\00"
@.str.12 = [12 x i8] c"park_miller\00"
@.str.13 = [25 x i8] c"Park_Miller/sumKernel.cl\00"
@.str.14 = [19 x i8] c"park_miller-random\00"
@.str.15 = [31 x i8] c"Park_Miller/sumRandomKernel.cl\00"
@SEEK_END = global i32 0
define i32 @create_program(i32* nocapture writeonly %0, i8* nocapture %1, i32* nocapture %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %29, label %8
8: ; preds = %3
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(14) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %29, label %11
11: ; preds = %8
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %29, label %14
14: ; preds = %11
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %29, label %17
17: ; preds = %14
%18 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(14) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %29, label %20
20: ; preds = %17
%21 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(21) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %20
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(19) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %56
29: ; preds = %26, %23, %20, %17, %14, %11, %8, %3
%30 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), %8 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), %11 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), %14 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), %17 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), %20 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), %23 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), %26 ]
%31 = tail call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp ne i32* %31, null
%33 = zext i1 %32 to i32
%34 = tail call i32 @assert(i32 %33)
%35 = load i32, i32* @SEEK_END
%36 = tail call i32 @fseek(i32* %31, i32 0, i32 %35)
%37 = bitcast i64* %4 to i8*
%38 = tail call i64 @ftell(i32* %31)
store i64 %38, i64* %4
%39 = tail call i32 @rewind(i32* %31)
%40 = icmp ne i64 %38, 0
%41 = zext i1 %40 to i32
%42 = tail call i32 @assert(i32 %41)
%43 = bitcast i8** %5 to i8*
%44 = trunc i64 %38 to i32
%45 = tail call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to i8*
store i8* %46, i8** %5
%47 = tail call i64 @fread(i8* %46, i32 1, i64 %38, i32* %31)
%48 = icmp eq i64 %47, %38
%49 = zext i1 %48 to i32
%50 = tail call i32 @assert(i32 %49)
%51 = tail call i32 @fclose(i32* %31)
%52 = load i32, i32* %2
%53 = call i32 @clCreateProgramWithSource(i32 %52, i32 1, i8** %5, i64* %4, i32* null)
store i32 %53, i32* %0
%54 = load i8*, i8** %5
%55 = call i32 @free(i8* %54)
br label %56
56: ; preds = %26, %29
%57 = phi i32 [ 0, %29 ], [ 1, %26 ]
ret i32 %57
}