#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 */
int /*<<< orphan*/ pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, int /*<<< orphan*/);
scalar_t__ strlen(char *);
void c_print_results(char *name, char class, int n1, int n2, int n3, int niter,
                     double t, double mops, char *optype,
                     int passed_verification, char *npbversion,
                     char *compiletime, char *cc, char *clink, char *c_lib,
                     char *c_inc, char *cflags, char *clinkflags, char *crand,
                     const char *ocl_dev_type, char *ocl_dev_name) {
  char size[16];
  int j;
  printf("\n\n %s Benchmark Completed.\n", name);
  printf(" Class           =                        %c\n", class);
  if ((n2 == 0) && (n3 == 0)) {
    if ((name[0] == 'E') && (name[1] == 'P')) {
      sprintf(size, "%15.0lf", pow(2.0, n1));
      j = 14;
      if (size[j] == '.') {
        size[j] = ' ';
        j--;
      }
      size[j + 1] = '\0';
      printf(" Size            =          %15s\n", size);
    } else {
      printf(" Size            =             %12d\n", n1);
    }
  } else if (n3 == 0) {
    long nn = n1;
    if (n2 != 0)
      nn *= n2;
    printf(" Size            =             %12ld\n", nn);
  } else
    printf(" Size            =           %4dx%4dx%4d\n", n1, n2, n3);
  printf(" Iterations      =             %12d\n", niter);
  printf(" Time in seconds =             %12.2f\n", t);
  printf(" Mop/s total     =             %12.2f\n", mops);
  printf(" Operation type  = %24s\n", optype);
  if (passed_verification < 0)
    printf(" Verification    =            NOT PERFORMED\n");
  else if (passed_verification)
    printf(" Verification    =               SUCCESSFUL\n");
  else
    printf(" Verification    =             UNSUCCESSFUL\n");
  printf(" Version         =             %12s\n", npbversion);
  printf(" Compile date    =             %12s\n", compiletime);
  printf("\n Compile options:\n");
  printf("    CC           = %s\n", cc);
  printf("    CLINK        = %s\n", clink);
  printf("    C_LIB        = %s\n", c_lib);
  printf("    C_INC        = %s\n", c_inc);
  printf("    CFLAGS       = %s\n", cflags);
  printf("    CLINKFLAGS   = %s\n", clinkflags);
  if (strlen(crand) > 0)
    printf("    RAND         = %s\n", crand);
  printf("\n OpenCL options:\n");
  printf("    Device type  = %s\n", ocl_dev_type);
  printf("    Device name  = %s\n", ocl_dev_name);
  printf("\n--------------------------------------\n");
  printf(" Please send all errors/feedbacks to:\n");
  printf(" Center for Manycore Programming\n");
  printf(" cmp@aces.snu.ac.kr\n");
  printf(" http://aces.snu.ac.kr\n");
  printf("--------------------------------------\n\n");
}


x86 assembly (clang, -O0):
<c_print_results>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %sil,%al
mov    0x70(%rbp),%rsi
mov    0x68(%rbp),%rsi
mov    0x60(%rbp),%rsi
mov    0x58(%rbp),%rsi
mov    0x50(%rbp),%rsi
mov    0x48(%rbp),%rsi
mov    0x40(%rbp),%rsi
mov    0x38(%rbp),%rsi
mov    0x30(%rbp),%rsi
mov    0x28(%rbp),%rsi
mov    0x20(%rbp),%rsi
mov    0x18(%rbp),%esi
mov    0x10(%rbp),%rsi
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    1285 <c_print_results+0x145>
cmpl   $0x0,-0x18(%rbp)
jne    1285 <c_print_results+0x145>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x45,%eax
jne    126f <c_print_results+0x12f>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x50,%eax
jne    126f <c_print_results+0x12f>
lea    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%edi
movsd  0xdf7(%rip),%xmm0
call   1050 <pow@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xe37(%rip),%rsi
call   1060 <sprintf@plt>
movl   $0xe,-0x44(%rbp)
movslq -0x44(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
cmp    $0x2e,%eax
jne    124b <c_print_results+0x10b>
movslq -0x44(%rbp),%rax
movb   $0x20,-0x40(%rbp,%rax,1)
mov    -0x44(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
cltq
movb   $0x0,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rsi
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1280 <c_print_results+0x140>
mov    -0x10(%rbp),%esi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e1 <c_print_results+0x1a1>
cmpl   $0x0,-0x18(%rbp)
jne    12c5 <c_print_results+0x185>
movslq -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12ae <c_print_results+0x16e>
movslq -0x14(%rbp),%rax
imul   -0x50(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rsi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12dc <c_print_results+0x19c>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e1 <c_print_results+0x1a1>
mov    -0x1c(%rbp),%esi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xe18(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xe2c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x10(%rbp),%rsi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,0x18(%rbp)
jge    1347 <c_print_results+0x207>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1377 <c_print_results+0x237>
cmpl   $0x0,0x18(%rbp)
je     1364 <c_print_results+0x224>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1372 <c_print_results+0x232>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1377 <c_print_results+0x237>
mov    0x20(%rbp),%rsi
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x28(%rbp),%rsi
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x30(%rbp),%rsi
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x38(%rbp),%rsi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x40(%rbp),%rsi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x48(%rbp),%rsi
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x50(%rbp),%rsi
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x58(%rbp),%rsi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x60(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
jle    143a <c_print_results+0x2fa>
mov    0x60(%rbp),%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x68(%rbp),%rsi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x70(%rbp),%rsi
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_print_results>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%ebp
mov    %edx,%ebx
mov    %esi,%r13d
mov    %rdi,%r12
lea    0xe87(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe92(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15d,%eax
or     %ebp,%eax
je     11c6 <c_print_results+0x76>
test   %r15d,%r15d
je     122d <c_print_results+0xdd>
lea    0xf14(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    124f <c_print_results+0xff>
cmpb   $0x45,(%r12)
jne    121b <c_print_results+0xcb>
cmpb   $0x50,0x1(%r12)
jne    121b <c_print_results+0xcb>
movsd  0xe23(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
lea    0xe67(%rip),%rsi
mov    %rsp,%rdi
mov    %eax,%edx
call   1070 <sprintf@plt>
mov    $0xf,%eax
cmpb   $0x2e,0xe(%rsp)
jne    120b <c_print_results+0xbb>
movb   $0x20,0xe(%rsp)
mov    $0xe,%eax
movb   $0x0,(%rsp,%rax,1)
lea    0xe44(%rip),%rdi
mov    %rsp,%rsi
jmp    1248 <c_print_results+0xf8>
lea    0xe5a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    124f <c_print_results+0xff>
movslq %ebx,%rax
test   %ebp,%ebp
mov    $0x1,%ecx
cmovne %ebp,%ecx
movslq %ecx,%rsi
imul   %rax,%rsi
lea    0xe59(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xb0(%rsp),%rbp
mov    0xa8(%rsp),%r13
mov    0xa0(%rsp),%rbx
mov    0xc0(%rsp),%r15
mov    0xb8(%rsp),%r12
lea    0xe73(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe87(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe9a(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xead(%rip),%rdi
mov    0x60(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x68(%rsp)
lea    0xfc7(%rip),%rax
lea    0x10d3(%rip),%rcx
cmove  %rax,%rcx
lea    0x10f4(%rip),%rdi
cmovns %rcx,%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
mov    0x70(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9e(%rip),%rdi
mov    0x78(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xea4(%rip),%rdi
mov    0x80(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea5(%rip),%rdi
mov    0x88(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea6(%rip),%rdi
mov    0x90(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea7(%rip),%rdi
mov    0x98(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea8(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeae(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
jle    13b4 <c_print_results+0x264>
lea    0xea7(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xea1(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea7(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <puts@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"\0A\0A %s Benchmark Completed.\0A\00"
@.str.1 = [46 x i8] c" Class = %c\0A\00"
@.str.2 = [8 x i8] c"%15.0lf\00"
@.str.3 = [34 x i8] c" Size = %15s\0A\00"
@.str.4 = [37 x i8] c" Size = %12d\0A\00"
@.str.5 = [38 x i8] c" Size = %12ld\0A\00"
@.str.6 = [42 x i8] c" Size = %4dx%4dx%4d\0A\00"
@.str.7 = [37 x i8] c" Iterations = %12d\0A\00"
@.str.8 = [39 x i8] c" Time in seconds = %12.2f\0A\00"
@.str.9 = [39 x i8] c" Mop/s total = %12.2f\0A\00"
@.str.10 = [25 x i8] c" Operation type = %24s\0A\00"
@.str.11 = [45 x i8] c" Verification = NOT PERFORMED\0A\00"
@.str.12 = [45 x i8] c" Verification = SUCCESSFUL\0A\00"
@.str.13 = [45 x i8] c" Verification = UNSUCCESSFUL\0A\00"
@.str.14 = [37 x i8] c" Version = %12s\0A\00"
@.str.15 = [37 x i8] c" Compile date = %12s\0A\00"
@.str.16 = [20 x i8] c"\0A Compile options:\0A\00"
@.str.17 = [23 x i8] c" CC = %s\0A\00"
@.str.18 = [23 x i8] c" CLINK = %s\0A\00"
@.str.19 = [23 x i8] c" C_LIB = %s\0A\00"
@.str.20 = [23 x i8] c" C_INC = %s\0A\00"
@.str.21 = [23 x i8] c" CFLAGS = %s\0A\00"
@.str.22 = [23 x i8] c" CLINKFLAGS = %s\0A\00"
@.str.23 = [23 x i8] c" RAND = %s\0A\00"
@.str.24 = [19 x i8] c"\0A OpenCL options:\0A\00"
@.str.25 = [23 x i8] c" Device type = %s\0A\00"
@.str.26 = [23 x i8] c" Device name = %s\0A\00"
@.str.27 = [41 x i8] c"\0A--------------------------------------\0A\00"
@.str.28 = [39 x i8] c" Please send all errors/feedbacks to:\0A\00"
@.str.29 = [34 x i8] c" Center for Manycore Programming\0A\00"
@.str.30 = [21 x i8] c" cmp@aces.snu.ac.kr\0A\00"
@.str.31 = [24 x i8] c" http://aces.snu.ac.kr\0A\00"
@.str.32 = [41 x i8] c"--------------------------------------\0A\0A\00"
define void @c_print_results(i8* %0, i8 signext %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6, double %7, i8* %8, i32 %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15, i8* %16, i8* %17, i8* %18, i8* %19, i8* %20) {
%22 = alloca i8*
%23 = alloca i8
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca double
%29 = alloca double
%30 = alloca i8*
%31 = alloca i32
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i8*
%36 = alloca i8*
%37 = alloca i8*
%38 = alloca i8*
%39 = alloca i8*
%40 = alloca i8*
%41 = alloca i8*
%42 = alloca i8*
%43 = alloca [16 x i8]
%44 = alloca i32
%45 = alloca i64
store i8* %0, i8** %22
store i8 %1, i8* %23
store i32 %2, i32* %24
store i32 %3, i32* %25
store i32 %4, i32* %26
store i32 %5, i32* %27
store double %6, double* %28
store double %7, double* %29
store i8* %8, i8** %30
store i32 %9, i32* %31
store i8* %10, i8** %32
store i8* %11, i8** %33
store i8* %12, i8** %34
store i8* %13, i8** %35
store i8* %14, i8** %36
store i8* %15, i8** %37
store i8* %16, i8** %38
store i8* %17, i8** %39
store i8* %18, i8** %40
store i8* %19, i8** %41
store i8* %20, i8** %42
%46 = load i8*, i8** %22
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %46)
%48 = load i8, i8* %23
%49 = sext i8 %48 to i32
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %49)
%51 = load i32, i32* %25
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %96
53: ; preds = %21
%54 = load i32, i32* %26
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %96
56: ; preds = %53
%57 = load i8*, i8** %22
%58 = getelementptr inbounds i8, i8* %57, i64 0
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 69
br i1 %61, label %62, label %92
62: ; preds = %56
%63 = load i8*, i8** %22
%64 = getelementptr inbounds i8, i8* %63, i64 1
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 80
br i1 %67, label %68, label %92
68: ; preds = %62
%69 = getelementptr inbounds [16 x i8], [16 x i8]* %43, i64 0, i64 0
%70 = load i32, i32* %24
%71 = call i32 @pow(double 2.000000e+00, i32 %70)
%72 = call i32 @sprintf(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %71)
store i32 14, i32* %44
%73 = load i32, i32* %44
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [16 x i8], [16 x i8]* %43, i64 0, i64 %74
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 46
br i1 %78, label %79, label %85
79: ; preds = %68
%80 = load i32, i32* %44
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [16 x i8], [16 x i8]* %43, i64 0, i64 %81
store i8 32, i8* %82
%83 = load i32, i32* %44
%84 = add nsw i32 %83, -1
store i32 %84, i32* %44
br label %85
85: ; preds = %79, %68
%86 = load i32, i32* %44
%87 = add nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [16 x i8], [16 x i8]* %43, i64 0, i64 %88
store i8 0, i8* %89
%90 = getelementptr inbounds [16 x i8], [16 x i8]* %43, i64 0, i64 0
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %90)
br label %95
92: ; preds = %62, %56
%93 = load i32, i32* %24
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %92, %85
br label %118
96: ; preds = %53, %21
%97 = load i32, i32* %26
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %112
99: ; preds = %96
%100 = load i32, i32* %24
%101 = sext i32 %100 to i64
store i64 %101, i64* %45
%102 = load i32, i32* %25
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %109
104: ; preds = %99
%105 = load i32, i32* %25
%106 = sext i32 %105 to i64
%107 = load i64, i64* %45
%108 = mul nsw i64 %107, %106
store i64 %108, i64* %45
br label %109
109: ; preds = %104, %99
%110 = load i64, i64* %45
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i64 %110)
br label %117
112: ; preds = %96
%113 = load i32, i32* %24
%114 = load i32, i32* %25
%115 = load i32, i32* %26
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %113, i32 %114, i32 %115)
br label %117
117: ; preds = %112, %109
br label %118
118: ; preds = %117, %95
%119 = load i32, i32* %27
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 %119)
%121 = load double, double* %28
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), double %121)
%123 = load double, double* %29
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), double %123)
%125 = load i8*, i8** %30
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* %125)
%127 = load i32, i32* %31
%128 = icmp slt i32 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %118
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
br label %139
131: ; preds = %118
%132 = load i32, i32* %31
%133 = icmp ne i32 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %131
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
br label %138
136: ; preds = %131
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0))
br label %138
138: ; preds = %136, %134
br label %139
139: ; preds = %138, %129
%140 = load i8*, i8** %32
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), i8* %140)
%142 = load i8*, i8** %33
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0), i8* %142)
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%145 = load i8*, i8** %34
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i8* %145)
%147 = load i8*, i8** %35
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8* %147)
%149 = load i8*, i8** %36
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %149)
%151 = load i8*, i8** %37
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %151)
%153 = load i8*, i8** %38
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.21, i64 0, i64 0), i8* %153)
%155 = load i8*, i8** %39
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0), i8* %155)
%157 = load i8*, i8** %40
%158 = call i64 @strlen(i8* %157)
%159 = icmp sgt i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %139
%161 = load i8*, i8** %40
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %161)
br label %163
163: ; preds = %160, %139
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.24, i64 0, i64 0))
%165 = load i8*, i8** %41
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.25, i64 0, i64 0), i8* %165)
%167 = load i8*, i8** %42
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.26, i64 0, i64 0), i8* %167)
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.27, i64 0, i64 0))
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.28, i64 0, i64 0))
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.29, i64 0, i64 0))
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.30, i64 0, i64 0))
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.31, i64 0, i64 0))
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.32, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"\0A\0A %s Benchmark Completed.\0A\00"
@.str.1 = [46 x i8] c" Class = %c\0A\00"
@.str.2 = [8 x i8] c"%15.0lf\00"
@.str.3 = [34 x i8] c" Size = %15s\0A\00"
@.str.4 = [37 x i8] c" Size = %12d\0A\00"
@.str.5 = [38 x i8] c" Size = %12ld\0A\00"
@.str.6 = [42 x i8] c" Size = %4dx%4dx%4d\0A\00"
@.str.7 = [37 x i8] c" Iterations = %12d\0A\00"
@.str.8 = [39 x i8] c" Time in seconds = %12.2f\0A\00"
@.str.9 = [39 x i8] c" Mop/s total = %12.2f\0A\00"
@.str.10 = [25 x i8] c" Operation type = %24s\0A\00"
@.str.14 = [37 x i8] c" Version = %12s\0A\00"
@.str.15 = [37 x i8] c" Compile date = %12s\0A\00"
@.str.17 = [23 x i8] c" CC = %s\0A\00"
@.str.18 = [23 x i8] c" CLINK = %s\0A\00"
@.str.19 = [23 x i8] c" C_LIB = %s\0A\00"
@.str.20 = [23 x i8] c" C_INC = %s\0A\00"
@.str.21 = [23 x i8] c" CFLAGS = %s\0A\00"
@.str.22 = [23 x i8] c" CLINKFLAGS = %s\0A\00"
@.str.23 = [23 x i8] c" RAND = %s\0A\00"
@.str.25 = [23 x i8] c" Device type = %s\0A\00"
@.str.26 = [23 x i8] c" Device name = %s\0A\00"
@str = [44 x i8] c" Verification = UNSUCCESSFUL\00"
@str.33 = [19 x i8] c"\0A Compile options:\00"
@str.34 = [18 x i8] c"\0A OpenCL options:\00"
@str.35 = [40 x i8] c"\0A--------------------------------------\00"
@str.36 = [38 x i8] c" Please send all errors/feedbacks to:\00"
@str.37 = [33 x i8] c" Center for Manycore Programming\00"
@str.38 = [20 x i8] c" cmp@aces.snu.ac.kr\00"
@str.39 = [23 x i8] c" http://aces.snu.ac.kr\00"
@str.40 = [40 x i8] c"--------------------------------------\0A\00"
@str.41 = [44 x i8] c" Verification = SUCCESSFUL\00"
@str.42 = [44 x i8] c" Verification = NOT PERFORMED\00"
define void @c_print_results(i8* %0, i8 signext %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6, double %7, i8* %8, i32 %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15, i8* %16, i8* %17, i8* %18, i8* %19, i8* %20) {
%22 = alloca [16 x i8]
%23 = getelementptr inbounds [16 x i8], [16 x i8]* %22, i64 0, i64 0
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %0)
%25 = sext i8 %1 to i32
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = or i32 %4, %3
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %49
29: ; preds = %21
%30 = load i8, i8* %0
%31 = icmp eq i8 %30, 69
br i1 %31, label %32, label %47
32: ; preds = %29
%33 = getelementptr inbounds i8, i8* %0, i64 1
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 80
br i1 %35, label %36, label %47
36: ; preds = %32
%37 = tail call i32 @pow(double 2.000000e+00, i32 %2)
%38 = call i32 @sprintf(i8* %23, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds [16 x i8], [16 x i8]* %22, i64 0, i64 14
%40 = load i8, i8* %39
%41 = icmp eq i8 %40, 46
br i1 %41, label %42, label %43
42: ; preds = %36
store i8 32, i8* %39
br label %43
43: ; preds = %42, %36
%44 = phi i64 [ 14, %42 ], [ 15, %36 ]
%45 = getelementptr inbounds [16 x i8], [16 x i8]* %22, i64 0, i64 %44
store i8 0, i8* %45
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %23)
br label %60
47: ; preds = %32, %29
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 %2)
br label %60
49: ; preds = %21
%50 = icmp eq i32 %4, 0
br i1 %50, label %51, label %58
51: ; preds = %49
%52 = sext i32 %2 to i64
%53 = icmp eq i32 %3, 0
%54 = select i1 %53, i32 1, i32 %3
%55 = sext i32 %54 to i64
%56 = mul nsw i64 %55, %52
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i64 %56)
br label %60
58: ; preds = %49
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
br label %60
60: ; preds = %51, %58, %43, %47
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 %5)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), double %6)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), double %7)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* %8)
%65 = icmp slt i32 %9, 0
%66 = icmp eq i32 %9, 0
%67 = select i1 %66, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str.41, i64 0, i64 0)
%68 = select i1 %65, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str.42, i64 0, i64 0), i8* %67
%69 = call i32 @puts(i8* dereferenceable(1) %68)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), i8* %10)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0), i8* %11)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.33, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i8* %12)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8* %13)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %14)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %15)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.21, i64 0, i64 0), i8* %16)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0), i8* %17)
%79 = call i64 @strlen(i8* dereferenceable(1) %18)
%80 = icmp sgt i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %60
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %18)
br label %83
83: ; preds = %81, %60
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.34, i64 0, i64 0))
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.25, i64 0, i64 0), i8* %19)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.26, i64 0, i64 0), i8* %20)
%87 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.35, i64 0, i64 0))
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.36, i64 0, i64 0))
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.37, i64 0, i64 0))
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.38, i64 0, i64 0))
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.39, i64 0, i64 0))
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.40, i64 0, i64 0))
ret void
}