#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*/ free(double *);
double *malloc(unsigned int);
int /*<<< orphan*/ printf(char *, ...);
double *saft_stats_BH_array(double *, unsigned int);
double saft_stats_BH_element(double, double, int, unsigned int);
int main(int argc, char **argv) {
  double p_values[] = {0.0001, 0.001, 0.01, 0.1, 0.5};
  unsigned int n_p_values = sizeof p_values / sizeof(*p_values);
  double *adj_p_values;
  double prev;
  int i;
  adj_p_values = malloc(n_p_values * sizeof(*adj_p_values));
  for (i = 0; i < n_p_values; i++)
    adj_p_values[i] = p_values[i];
  printf("Unadjusted:\n");
  for (i = 0; i < n_p_values; i++)
    printf("%.4f ", p_values[i]);
  printf("\n");
  adj_p_values = saft_stats_BH_array(adj_p_values, n_p_values);
  printf("Adjusted:\n");
  for (i = 0; i < n_p_values; i++)
    printf("%.4f ", adj_p_values[i]);
  printf("\n");
  for (i = 0; i < n_p_values; i++)
    adj_p_values[i] = p_values[i];
  printf("\n");
  printf("Unadjusted:\n");
  for (i = 0; i < n_p_values; i++)
    printf("%.4f ", adj_p_values[i]);
  printf("\n");
  prev = 1;
  for (i = n_p_values - 1; i >= 0; i--) {
    adj_p_values[i] =
        saft_stats_BH_element(adj_p_values[i], prev, i, n_p_values);
    prev = adj_p_values[i];
  }
  printf("Adjusted:\n");
  for (i = 0; i < n_p_values; i++)
    printf("%.4f ", adj_p_values[i]);
  printf("\n");
  free(adj_p_values);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe7d(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe68(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe53(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe3e(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x5,-0x44(%rbp)
mov    -0x44(%rbp),%eax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    1218 <main+0xb8>
movslq -0x5c(%rbp),%rax
movsd  -0x40(%rbp,%rax,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    11e7 <main+0x87>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    125f <main+0xff>
movslq -0x5c(%rbp),%rax
movsd  -0x40(%rbp,%rax,8),%xmm0
lea    0xdf3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    122d <main+0xcd>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x50(%rbp),%rdi
mov    -0x44(%rbp),%esi
call   1080 <saft_stats_BH_array@plt>
mov    %rax,-0x50(%rbp)
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    12c7 <main+0x167>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd8b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1292 <main+0x132>
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    130d <main+0x1ad>
movslq -0x5c(%rbp),%rax
movsd  -0x40(%rbp,%rax,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    12dc <main+0x17c>
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    1365 <main+0x205>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xced(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1330 <main+0x1d0>
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  0xcad(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x5c(%rbp)
cmpl   $0x0,-0x5c(%rbp)
jl     13dd <main+0x27d>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    -0x5c(%rbp),%edi
mov    -0x44(%rbp),%esi
call   1050 <saft_stats_BH_element@plt>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
jmp    1389 <main+0x229>
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jae    1427 <main+0x2c7>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc2b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    13f2 <main+0x292>
lea    0xc1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    $0x28,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
movaps 0xe73(%rip),%xmm0
movups %xmm0,(%rax)
movaps 0xe79(%rip),%xmm0
movups %xmm0,0x10(%rax)
movabs $0x3fe0000000000000,%r13
mov    %r13,0x20(%rax)
lea    0xea6(%rip),%r12
mov    %r12,%rdi
call   1050 <puts@plt>
lea    0xe91(%rip),%r14
movsd  0xe59(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe4f(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe45(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe3b(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe31(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1090 <saft_stats_BH_array@plt>
mov    %rax,%rbx
lea    0xe28(%rip),%r15
mov    %r15,%rdi
call   1050 <puts@plt>
movsd  (%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x20(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movaps 0xd63(%rip),%xmm0
movups %xmm0,(%rbx)
movaps 0xd69(%rip),%xmm0
movups %xmm0,0x10(%rbx)
mov    %r13,0x20(%rbx)
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r12,%rdi
call   1050 <puts@plt>
movsd  (%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x20(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
movsd  0x20(%rbx),%xmm0
movsd  0xd26(%rip),%xmm1
mov    $0x4,%edi
mov    $0x5,%esi
call   1070 <saft_stats_BH_element@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x20(%rbx)
movsd  0x18(%rbx),%xmm0
mov    $0x3,%edi
mov    $0x5,%esi
call   1070 <saft_stats_BH_element@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x18(%rbx)
movsd  0x10(%rbx),%xmm0
mov    $0x2,%edi
mov    $0x5,%esi
call   1070 <saft_stats_BH_element@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x10(%rbx)
movsd  0x8(%rbx),%xmm0
mov    $0x1,%edi
mov    $0x5,%esi
call   1070 <saft_stats_BH_element@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x8(%rbx)
movsd  (%rbx),%xmm0
xor    %edi,%edi
mov    $0x5,%esi
call   1070 <saft_stats_BH_element@plt>
movsd  %xmm0,(%rbx)
mov    %r15,%rdi
call   1050 <puts@plt>
movsd  (%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x20(%rbx),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Unadjusted:\0A\00"
@.str.1 = [6 x i8] c"%.4f \00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [11 x i8] c"Adjusted:\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [5 x double]
%7 = alloca i32
%8 = alloca double*
%9 = alloca double
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = bitcast [5 x double]* %6 to i8*
%12 = bitcast i8* %11 to [5 x double]*
%13 = getelementptr inbounds [5 x double], [5 x double]* %12, i32 0, i32 0
store double 1.000000e-04, double* %13
%14 = getelementptr inbounds [5 x double], [5 x double]* %12, i32 0, i32 1
store double 1.000000e-03, double* %14
%15 = getelementptr inbounds [5 x double], [5 x double]* %12, i32 0, i32 2
store double 1.000000e-02, double* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %12, i32 0, i32 3
store double 1.000000e-01, double* %16
%17 = getelementptr inbounds [5 x double], [5 x double]* %12, i32 0, i32 4
store double 5.000000e-01, double* %17
store i32 5, i32* %7
%18 = load i32, i32* %7
%19 = zext i32 %18 to i64
%20 = mul i64 %19, 8
%21 = trunc i64 %20 to i32
%22 = call double* @malloc(i32 %21)
store double* %22, double** %8
store i32 0, i32* %10
br label %23
23: ; preds = %36, %2
%24 = load i32, i32* %10
%25 = load i32, i32* %7
%26 = icmp ult i32 %24, %25
br i1 %26, label %27, label %39
27: ; preds = %23
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 %29
%31 = load double, double* %30
%32 = load double*, double** %8
%33 = load i32, i32* %10
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
store double %31, double* %35
br label %36
36: ; preds = %27
%37 = load i32, i32* %10
%38 = add nsw i32 %37, 1
store i32 %38, i32* %10
br label %23
39: ; preds = %23
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %10
br label %41
41: ; preds = %51, %39
%42 = load i32, i32* %10
%43 = load i32, i32* %7
%44 = icmp ult i32 %42, %43
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load i32, i32* %10
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 %47
%49 = load double, double* %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %49)
br label %51
51: ; preds = %45
%52 = load i32, i32* %10
%53 = add nsw i32 %52, 1
store i32 %53, i32* %10
br label %41
54: ; preds = %41
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%56 = load double*, double** %8
%57 = load i32, i32* %7
%58 = call double* @saft_stats_BH_array(double* %56, i32 %57)
store double* %58, double** %8
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %10
br label %60
60: ; preds = %71, %54
%61 = load i32, i32* %10
%62 = load i32, i32* %7
%63 = icmp ult i32 %61, %62
br i1 %63, label %64, label %74
64: ; preds = %60
%65 = load double*, double** %8
%66 = load i32, i32* %10
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
%69 = load double, double* %68
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %69)
br label %71
71: ; preds = %64
%72 = load i32, i32* %10
%73 = add nsw i32 %72, 1
store i32 %73, i32* %10
br label %60
74: ; preds = %60
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %10
br label %76
76: ; preds = %89, %74
%77 = load i32, i32* %10
%78 = load i32, i32* %7
%79 = icmp ult i32 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load i32, i32* %10
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 %82
%84 = load double, double* %83
%85 = load double*, double** %8
%86 = load i32, i32* %10
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
store double %84, double* %88
br label %89
89: ; preds = %80
%90 = load i32, i32* %10
%91 = add nsw i32 %90, 1
store i32 %91, i32* %10
br label %76
92: ; preds = %76
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %10
br label %95
95: ; preds = %106, %92
%96 = load i32, i32* %10
%97 = load i32, i32* %7
%98 = icmp ult i32 %96, %97
br i1 %98, label %99, label %109
99: ; preds = %95
%100 = load double*, double** %8
%101 = load i32, i32* %10
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
%104 = load double, double* %103
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %104)
br label %106
106: ; preds = %99
%107 = load i32, i32* %10
%108 = add nsw i32 %107, 1
store i32 %108, i32* %10
br label %95
109: ; preds = %95
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store double 1.000000e+00, double* %9
%111 = load i32, i32* %7
%112 = sub i32 %111, 1
store i32 %112, i32* %10
br label %113
113: ; preds = %135, %109
%114 = load i32, i32* %10
%115 = icmp sge i32 %114, 0
br i1 %115, label %116, label %138
116: ; preds = %113
%117 = load double*, double** %8
%118 = load i32, i32* %10
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
%121 = load double, double* %120
%122 = load double, double* %9
%123 = load i32, i32* %10
%124 = load i32, i32* %7
%125 = call double @saft_stats_BH_element(double %121, double %122, i32 %123, i32 %124)
%126 = load double*, double** %8
%127 = load i32, i32* %10
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %126, i64 %128
store double %125, double* %129
%130 = load double*, double** %8
%131 = load i32, i32* %10
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %130, i64 %132
%134 = load double, double* %133
store double %134, double* %9
br label %135
135: ; preds = %116
%136 = load i32, i32* %10
%137 = add nsw i32 %136, -1
store i32 %137, i32* %10
br label %113
138: ; preds = %113
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %10
br label %140
140: ; preds = %151, %138
%141 = load i32, i32* %10
%142 = load i32, i32* %7
%143 = icmp ult i32 %141, %142
br i1 %143, label %144, label %154
144: ; preds = %140
%145 = load double*, double** %8
%146 = load i32, i32* %10
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, double* %145, i64 %147
%149 = load double, double* %148
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %149)
br label %151
151: ; preds = %144
%152 = load i32, i32* %10
%153 = add nsw i32 %152, 1
store i32 %153, i32* %10
br label %140
154: ; preds = %140
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%156 = load double*, double** %8
%157 = call i32 @free(double* %156)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"%.4f \00"
@str.5 = [12 x i8] c"Unadjusted:\00"
@str.6 = [10 x i8] c"Adjusted:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call double* @malloc(i32 40)
%4 = bitcast double* %3 to <2 x double>*
store <2 x double> <double 1.000000e-04, double 1.000000e-03>, <2 x double>* %4
%5 = getelementptr inbounds double, double* %3, i64 2
%6 = bitcast double* %5 to <2 x double>*
store <2 x double> <double 1.000000e-02, double 1.000000e-01>, <2 x double>* %6
%7 = getelementptr inbounds double, double* %3, i64 4
store double 5.000000e-01, double* %7
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-04)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-03)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-02)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-01)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double 5.000000e-01)
%14 = tail call i32 @putchar(i32 10)
%15 = tail call double* @saft_stats_BH_array(double* %3, i32 5)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.6, i64 0, i64 0))
%17 = load double, double* %15
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %17)
%19 = getelementptr inbounds double, double* %15, i64 1
%20 = load double, double* %19
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %20)
%22 = getelementptr inbounds double, double* %15, i64 2
%23 = load double, double* %22
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %23)
%25 = getelementptr inbounds double, double* %15, i64 3
%26 = load double, double* %25
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %26)
%28 = getelementptr inbounds double, double* %15, i64 4
%29 = load double, double* %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %29)
%31 = tail call i32 @putchar(i32 10)
%32 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 1.000000e-04, double 1.000000e-03>, <2 x double>* %32
%33 = bitcast double* %22 to <2 x double>*
store <2 x double> <double 1.000000e-02, double 1.000000e-01>, <2 x double>* %33
store double 5.000000e-01, double* %28
%34 = tail call i32 @putchar(i32 10)
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%36 = load double, double* %15
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %36)
%38 = load double, double* %19
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %38)
%40 = load double, double* %22
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %40)
%42 = load double, double* %25
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %42)
%44 = load double, double* %28
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %44)
%46 = tail call i32 @putchar(i32 10)
%47 = load double, double* %28
%48 = tail call double @saft_stats_BH_element(double %47, double 1.000000e+00, i32 4, i32 5)
store double %48, double* %28
%49 = load double, double* %25
%50 = tail call double @saft_stats_BH_element(double %49, double %48, i32 3, i32 5)
store double %50, double* %25
%51 = load double, double* %22
%52 = tail call double @saft_stats_BH_element(double %51, double %50, i32 2, i32 5)
store double %52, double* %22
%53 = load double, double* %19
%54 = tail call double @saft_stats_BH_element(double %53, double %52, i32 1, i32 5)
store double %54, double* %19
%55 = load double, double* %15
%56 = tail call double @saft_stats_BH_element(double %55, double %54, i32 0, i32 5)
store double %56, double* %15
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.6, i64 0, i64 0))
%58 = load double, double* %15
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %58)
%60 = load double, double* %19
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %60)
%62 = load double, double* %22
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %62)
%64 = load double, double* %25
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %64)
%66 = load double, double* %28
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %66)
%68 = tail call i32 @putchar(i32 10)
%69 = tail call i32 @free(double* %15)
ret i32 0
}