#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*/ printf(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 *rand) {
  char *evalue = "1000";
  printf("\n\n %s Benchmark Completed\n", name);
  printf(" Class           =                        %c\n", class);
  if (n2 == 0 && n3 == 0)
    printf(" Size            =             %12d\n", n1);
  else
    printf(" Size            =              %3dx%3dx%3d\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)
    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);
  printf("    RAND         = %s\n", rand);
}


x86 assembly (clang, -O0):
<c_print_results>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %sil,%al
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)
lea    0xe94(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    11be <c_print_results+0xae>
cmpl   $0x0,-0x18(%rbp)
jne    11be <c_print_results+0xae>
mov    -0x10(%rbp),%esi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d5 <c_print_results+0xc5>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xed3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xee7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x10(%rbp),%rsi
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,0x18(%rbp)
je     123b <c_print_results+0x12b>
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1249 <c_print_results+0x139>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x20(%rbp),%rsi
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x28(%rbp),%rsi
lea    0xf45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x30(%rbp),%rsi
lea    0xf5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x38(%rbp),%rsi
lea    0xf63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x40(%rbp),%rsi
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x48(%rbp),%rsi
lea    0xf6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x50(%rbp),%rsi
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x58(%rbp),%rsi
lea    0xf77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x60(%rbp),%rsi
lea    0xf7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_print_results>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
mov    %r9d,%ebx
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%ebp
mov    %esi,%r12d
mov    %rdi,%rsi
mov    0xf0(%rsp),%rax
mov    %rax,0x60(%rsp)
mov    0xe8(%rsp),%rax
mov    %rax,0x58(%rsp)
mov    0xe0(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    0xd8(%rsp),%rax
mov    %rax,0x48(%rsp)
mov    0xd0(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0xc8(%rsp),%rax
mov    %rax,0x38(%rsp)
mov    0xc0(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0xb8(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0xb0(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0xa8(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0xa0(%rsp),%r13
lea    0xe26(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe33(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14d,%eax
or     %r15d,%eax
je     1212 <c_print_results+0xf2>
lea    0xe6d(%rip),%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1222 <c_print_results+0x102>
lea    0xe30(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe72(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe87(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xead(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0xc(%rsp)
lea    0xf9b(%rip),%rax
lea    0xfd3(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
lea    0xe99(%rip),%rdi
mov    0x20(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeab(%rip),%rdi
mov    0x28(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf8a(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb1(%rip),%rdi
mov    0x30(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    0x38(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    0x40(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
mov    0x48(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
mov    0x50(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
mov    0x58(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
mov    0x60(%rsp),%rsi
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"1000\00"
@.str.1 = [27 x i8] c"\0A\0A %s Benchmark Completed\0A\00"
@.str.2 = [46 x i8] c" Class = %c\0A\00"
@.str.3 = [37 x i8] c" Size = %12d\0A\00"
@.str.4 = [45 x i8] c" Size = %3dx%3dx%3d\0A\00"
@.str.5 = [37 x i8] c" Iterations = %12d\0A\00"
@.str.6 = [39 x i8] c" Time in seconds = %12.2f\0A\00"
@.str.7 = [39 x i8] c" Mop/s total = %12.2f\0A\00"
@.str.8 = [25 x i8] c" Operation type = %24s\0A\00"
@.str.9 = [45 x i8] c" Verification = SUCCESSFUL\0A\00"
@.str.10 = [45 x i8] c" Verification = UNSUCCESSFUL\0A\00"
@.str.11 = [37 x i8] c" Version = %12s\0A\00"
@.str.12 = [37 x i8] c" Compile date = %12s\0A\00"
@.str.13 = [20 x i8] c"\0A Compile options:\0A\00"
@.str.14 = [23 x i8] c" CC = %s\0A\00"
@.str.15 = [23 x i8] c" CLINK = %s\0A\00"
@.str.16 = [23 x i8] c" C_LIB = %s\0A\00"
@.str.17 = [23 x i8] c" C_INC = %s\0A\00"
@.str.18 = [23 x i8] c" CFLAGS = %s\0A\00"
@.str.19 = [23 x i8] c" CLINKFLAGS = %s\0A\00"
@.str.20 = [23 x i8] c" RAND = %s\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) {
%20 = alloca i8*
%21 = alloca i8
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca double
%27 = alloca double
%28 = alloca i8*
%29 = alloca i32
%30 = alloca i8*
%31 = alloca i8*
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i8*
%36 = alloca i8*
%37 = alloca i8*
%38 = alloca i8*
%39 = alloca i8*
store i8* %0, i8** %20
store i8 %1, i8* %21
store i32 %2, i32* %22
store i32 %3, i32* %23
store i32 %4, i32* %24
store i32 %5, i32* %25
store double %6, double* %26
store double %7, double* %27
store i8* %8, i8** %28
store i32 %9, i32* %29
store i8* %10, i8** %30
store i8* %11, i8** %31
store i8* %12, i8** %32
store i8* %13, i8** %33
store i8* %14, i8** %34
store i8* %15, i8** %35
store i8* %16, i8** %36
store i8* %17, i8** %37
store i8* %18, i8** %38
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %39
%40 = load i8*, i8** %20
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %40)
%42 = load i8, i8* %21
%43 = sext i8 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0), i32 %43)
%45 = load i32, i32* %23
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %53
47: ; preds = %19
%48 = load i32, i32* %24
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, i32* %22
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %51)
br label %58
53: ; preds = %47, %19
%54 = load i32, i32* %22
%55 = load i32, i32* %23
%56 = load i32, i32* %24
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %54, i32 %55, i32 %56)
br label %58
58: ; preds = %53, %50
%59 = load i32, i32* %25
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 %59)
%61 = load double, double* %26
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), double %61)
%63 = load double, double* %27
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), double %63)
%65 = load i8*, i8** %28
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* %65)
%67 = load i32, i32* %29
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %58
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
br label %73
71: ; preds = %58
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
br label %73
73: ; preds = %71, %69
%74 = load i8*, i8** %30
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), i8* %74)
%76 = load i8*, i8** %31
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %76)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
%79 = load i8*, i8** %32
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i8* %79)
%81 = load i8*, i8** %33
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* %81)
%83 = load i8*, i8** %34
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i8* %83)
%85 = load i8*, i8** %35
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i8* %85)
%87 = load i8*, i8** %36
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8* %87)
%89 = load i8*, i8** %37
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %89)
%91 = load i8*, i8** %38
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %91)
ret void
}

LLVM IR (-O2):
@.str.1 = [27 x i8] c"\0A\0A %s Benchmark Completed\0A\00"
@.str.2 = [46 x i8] c" Class = %c\0A\00"
@.str.3 = [37 x i8] c" Size = %12d\0A\00"
@.str.4 = [45 x i8] c" Size = %3dx%3dx%3d\0A\00"
@.str.5 = [37 x i8] c" Iterations = %12d\0A\00"
@.str.6 = [39 x i8] c" Time in seconds = %12.2f\0A\00"
@.str.7 = [39 x i8] c" Mop/s total = %12.2f\0A\00"
@.str.8 = [25 x i8] c" Operation type = %24s\0A\00"
@.str.11 = [37 x i8] c" Version = %12s\0A\00"
@.str.12 = [37 x i8] c" Compile date = %12s\0A\00"
@.str.14 = [23 x i8] c" CC = %s\0A\00"
@.str.15 = [23 x i8] c" CLINK = %s\0A\00"
@.str.16 = [23 x i8] c" C_LIB = %s\0A\00"
@.str.17 = [23 x i8] c" C_INC = %s\0A\00"
@.str.18 = [23 x i8] c" CFLAGS = %s\0A\00"
@.str.19 = [23 x i8] c" CLINKFLAGS = %s\0A\00"
@.str.20 = [23 x i8] c" RAND = %s\0A\00"
@str = [44 x i8] c" Verification = UNSUCCESSFUL\00"
@str.21 = [19 x i8] c"\0A Compile options:\00"
@str.22 = [44 x i8] c" Verification = SUCCESSFUL\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) {
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%21 = sext i8 %1 to i32
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = or i32 %4, %3
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %2)
br label %29
27: ; preds = %19
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %2, i32 %3, i32 %4)
br label %29
29: ; preds = %27, %25
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 %5)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), double %6)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), double %7)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* %8)
%34 = icmp eq i32 %9, 0
%35 = select i1 %34, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str.22, i64 0, i64 0)
%36 = tail call i32 @puts(i8* dereferenceable(1) %35)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), i8* %10)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i8* %11)
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0), i8* %12)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* %13)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i8* %14)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), i8* %15)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8* %16)
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %17)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %18)
ret void
}