#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*/ fprintf(int /*<<< orphan*/, char *, int);
double log10(scalar_t__);
double log10_add_pow10(double, double);
double *malloc(long);
scalar_t__ pow(double, double);
int /*<<< orphan*/ stderr;
double *yyx_calc_log10_prob_vec(const int *ref_quals, long ref_n,
                                const int *alt_quals, long alt_n) {
  long depth = ref_n + alt_n;
  double *prob_vector = NULL;
  double log10_wrong, log10_right;
  long i, j;
  if ((prob_vector = malloc((depth + 2) * sizeof(double))) == NULL) {
    fprintf(stderr, "Error: cannot allocate memory at %d\n", 101);
    return NULL;
  }
  for (i = 0; i < depth + 2; i++) {
    prob_vector[i] = -1e100;
  }
  prob_vector[1] = 0.0;
  long now_depth = 0;
  for (j = 0; j < ref_n; j++) {
    now_depth++;
    log10_wrong = (-1.0 * (ref_quals[j]) / 10.0);
    log10_right = log10(1 - (pow(10.0, log10_wrong)));
    for (i = now_depth + 1; i > 0; i--) {
      prob_vector[i] = log10_add_pow10(prob_vector[i] + log10_right,
                                       prob_vector[i - 1] + log10_wrong);
    }
  }
  for (j = 0; j < alt_n; j++) {
    now_depth++;
    log10_wrong = (-1.0 * (alt_quals[j]) / 10.0);
    log10_right = log10(1 - (pow(10.0, log10_wrong)));
    for (i = now_depth + 1; i > 0; i--) {
      prob_vector[i] = log10_add_pow10(prob_vector[i] + log10_wrong,
                                       prob_vector[i - 1] + log10_right);
    }
  }
  return prob_vector;
}


x86 assembly (clang, -O0):
<yyx_calc_log10_prob_vec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x18(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
add    $0x2,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    11c2 <yyx_calc_log10_prob_vec+0x72>
mov    0x2e3e(%rip),%rax
mov    (%rax),%edi
lea    0xe6d(%rip),%rsi
mov    $0x65,%edx
call   1030 <fprintf@plt>
movq   $0x0,-0x8(%rbp)
jmp    13f1 <yyx_calc_log10_prob_vec+0x2a1>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    -0x30(%rbp),%rcx
add    $0x2,%rcx
cmp    %rcx,%rax
jge    1205 <yyx_calc_log10_prob_vec+0xb5>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  0xe21(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    11ca <yyx_calc_log10_prob_vec+0x7a>
mov    -0x38(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x18(%rbp),%rax
jge    1301 <yyx_calc_log10_prob_vec+0x1b1>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x58(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0xdb8(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xda4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  0xd8e(%rip),%xmm0
call   1050 <pow@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1070 <log10@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jle    12eb <yyx_calc_log10_prob_vec+0x19b>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x48(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  -0x40(%rbp),%xmm1
call   1060 <log10_add_pow10@plt>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
jmp    1295 <yyx_calc_log10_prob_vec+0x145>
jmp    12f0 <yyx_calc_log10_prob_vec+0x1a0>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    1221 <yyx_calc_log10_prob_vec+0xd1>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    13e9 <yyx_calc_log10_prob_vec+0x299>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x58(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
movsd  0xcd0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcbc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  0xca6(%rip),%xmm0
call   1050 <pow@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1070 <log10@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jle    13d3 <yyx_calc_log10_prob_vec+0x283>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  -0x48(%rbp),%xmm1
call   1060 <log10_add_pow10@plt>
mov    -0x38(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
jmp    137d <yyx_calc_log10_prob_vec+0x22d>
jmp    13d8 <yyx_calc_log10_prob_vec+0x288>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    1309 <yyx_calc_log10_prob_vec+0x1b9>
mov    -0x38(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yyx_calc_log10_prob_vec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,%r15
mov    %rdx,0x20(%rsp)
mov    %rsi,%r12
mov    %rdi,%r13
lea    (%rsi,%rcx,1),%rax
lea    0x10(,%rax,8),%rdi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     11a3 <yyx_calc_log10_prob_vec+0x53>
lea    (%r12,%r15,1),%rax
add    $0x2,%rax
test   %rax,%rax
jle    12cd <yyx_calc_log10_prob_vec+0x17d>
cmp    $0x4,%rax
jae    11c2 <yyx_calc_log10_prob_vec+0x72>
xor    %ecx,%ecx
jmp    12a7 <yyx_calc_log10_prob_vec+0x157>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
lea    0xe6d(%rip),%rsi
mov    $0x65,%edx
call   1030 <fprintf@plt>
jmp    1447 <yyx_calc_log10_prob_vec+0x2f7>
mov    %rax,%rcx
and    $0xfffffffffffffffc,%rcx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x7,%edx
cmp    $0x1c,%rdi
jae    11ea <yyx_calc_log10_prob_vec+0x9a>
xor    %edi,%edi
jmp    1271 <yyx_calc_log10_prob_vec+0x121>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
movaps 0xe09(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movups %xmm0,(%rbx,%rdi,8)
movups %xmm0,0x10(%rbx,%rdi,8)
movups %xmm0,0x20(%rbx,%rdi,8)
movups %xmm0,0x30(%rbx,%rdi,8)
movups %xmm0,0x40(%rbx,%rdi,8)
movups %xmm0,0x50(%rbx,%rdi,8)
movups %xmm0,0x60(%rbx,%rdi,8)
movups %xmm0,0x70(%rbx,%rdi,8)
movups %xmm0,0x80(%rbx,%rdi,8)
movups %xmm0,0x90(%rbx,%rdi,8)
movups %xmm0,0xa0(%rbx,%rdi,8)
movups %xmm0,0xb0(%rbx,%rdi,8)
movups %xmm0,0xc0(%rbx,%rdi,8)
movups %xmm0,0xd0(%rbx,%rdi,8)
movups %xmm0,0xe0(%rbx,%rdi,8)
movups %xmm0,0xf0(%rbx,%rdi,8)
add    $0x20,%rdi
add    $0xfffffffffffffff8,%rsi
jne    1200 <yyx_calc_log10_prob_vec+0xb0>
test   %rdx,%rdx
je     12a2 <yyx_calc_log10_prob_vec+0x152>
lea    (%rbx,%rdi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movaps 0xd75(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm0,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    1290 <yyx_calc_log10_prob_vec+0x140>
cmp    %rcx,%rax
je     12cd <yyx_calc_log10_prob_vec+0x17d>
movabs $0xd4b249ad2594c37d,%rdx
49 b2 d4
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdx,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12c0 <yyx_calc_log10_prob_vec+0x170>
movq   $0x0,0x8(%rbx)
test   %r12,%r12
jle    1396 <yyx_calc_log10_prob_vec+0x246>
mov    %r15,0x18(%rsp)
mov    $0x3,%r14d
xor    %r15d,%r15d
nopl   0x0(%rax)
xorps  %xmm1,%xmm1
cvtsi2sdl 0x0(%r13,%r15,4),%xmm1
divsd  0xd0e(%rip),%xmm1
movsd  0xd0e(%rip),%xmm0
movsd  %xmm1,0x8(%rsp)
call   1050 <pow@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1070 <log10@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rbx,%r15,8),%xmm0
mov    %r14,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
addsd  (%rsp),%xmm0
movsd  -0x10(%rbx,%rbp,8),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  0x8(%rsp),%xmm1
addsd  %xmm2,%xmm1
call   1060 <log10_add_pow10@plt>
movsd  %xmm0,-0x8(%rbx,%rbp,8)
add    $0xffffffffffffffff,%rbp
movsd  0x10(%rsp),%xmm0
cmp    $0x1,%rbp
jg     1340 <yyx_calc_log10_prob_vec+0x1f0>
add    $0x1,%r15
add    $0x1,%r14
cmp    %r12,%r15
jne    12f0 <yyx_calc_log10_prob_vec+0x1a0>
mov    0x18(%rsp),%r15
test   %r15,%r15
jg     13a2 <yyx_calc_log10_prob_vec+0x252>
jmp    1447 <yyx_calc_log10_prob_vec+0x2f7>
xor    %r12d,%r12d
test   %r15,%r15
jle    1447 <yyx_calc_log10_prob_vec+0x2f7>
lea    0x3(%r12),%r13
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    %r12,%rbp
add    $0x1,%r12
mov    0x20(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%r14,4),%xmm1
divsd  0xc43(%rip),%xmm1
movsd  0xc43(%rip),%xmm0
movsd  %xmm1,0x8(%rsp)
call   1050 <pow@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1070 <log10@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rbx,%rbp,8),%xmm0
mov    %r13,%rbp
nopl   0x0(%rax,%rax,1)
addsd  0x8(%rsp),%xmm0
movsd  -0x10(%rbx,%rbp,8),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  (%rsp),%xmm1
addsd  %xmm2,%xmm1
call   1060 <log10_add_pow10@plt>
movsd  %xmm0,-0x8(%rbx,%rbp,8)
add    $0xffffffffffffffff,%rbp
movsd  0x10(%rsp),%xmm0
cmp    $0x1,%rbp
jg     1400 <yyx_calc_log10_prob_vec+0x2b0>
add    $0x1,%r14
add    $0x1,%r13
cmp    %r15,%r14
jne    13b0 <yyx_calc_log10_prob_vec+0x260>
mov    %rbx,%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [37 x i8] c"Error: cannot allocate memory at %d\0A\00"
define double* @yyx_calc_log10_prob_vec(i32* %0, i64 %1, i32* %2, i64 %3) {
%5 = alloca double*
%6 = alloca i32*
%7 = alloca i64
%8 = alloca i32*
%9 = alloca i64
%10 = alloca i64
%11 = alloca double*
%12 = alloca double
%13 = alloca double
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
store i32* %0, i32** %6
store i64 %1, i64* %7
store i32* %2, i32** %8
store i64 %3, i64* %9
%17 = load i64, i64* %7
%18 = load i64, i64* %9
%19 = add nsw i64 %17, %18
store i64 %19, i64* %10
store double* null, double** %11
%20 = load i64, i64* %10
%21 = add nsw i64 %20, 2
%22 = mul i64 %21, 8
%23 = call double* @malloc(i64 %22)
store double* %23, double** %11
%24 = icmp eq double* %23, null
br i1 %24, label %25, label %28
25: ; preds = %4
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 101)
store double* null, double** %5
br label %143
28: ; preds = %4
store i64 0, i64* %14
br label %29
29: ; preds = %38, %28
%30 = load i64, i64* %14
%31 = load i64, i64* %10
%32 = add nsw i64 %31, 2
%33 = icmp slt i64 %30, %32
br i1 %33, label %34, label %41
34: ; preds = %29
%35 = load double*, double** %11
%36 = load i64, i64* %14
%37 = getelementptr inbounds double, double* %35, i64 %36
store double -1.000000e+100, double* %37
br label %38
38: ; preds = %34
%39 = load i64, i64* %14
%40 = add nsw i64 %39, 1
store i64 %40, i64* %14
br label %29
41: ; preds = %29
%42 = load double*, double** %11
%43 = getelementptr inbounds double, double* %42, i64 1
store double 0.000000e+00, double* %43
store i64 0, i64* %16
store i64 0, i64* %15
br label %44
44: ; preds = %89, %41
%45 = load i64, i64* %15
%46 = load i64, i64* %7
%47 = icmp slt i64 %45, %46
br i1 %47, label %48, label %92
48: ; preds = %44
%49 = load i64, i64* %16
%50 = add nsw i64 %49, 1
store i64 %50, i64* %16
%51 = load i32*, i32** %6
%52 = load i64, i64* %15
%53 = getelementptr inbounds i32, i32* %51, i64 %52
%54 = load i32, i32* %53
%55 = sitofp i32 %54 to double
%56 = fmul double -1.000000e+00, %55
%57 = fdiv double %56, 1.000000e+01
store double %57, double* %12
%58 = load double, double* %12
%59 = call i64 @pow(double 1.000000e+01, double %58)
%60 = sub nsw i64 1, %59
%61 = call double @log10(i64 %60)
store double %61, double* %13
%62 = load i64, i64* %16
%63 = add nsw i64 %62, 1
store i64 %63, i64* %14
br label %64
64: ; preds = %85, %48
%65 = load i64, i64* %14
%66 = icmp sgt i64 %65, 0
br i1 %66, label %67, label %88
67: ; preds = %64
%68 = load double*, double** %11
%69 = load i64, i64* %14
%70 = getelementptr inbounds double, double* %68, i64 %69
%71 = load double, double* %70
%72 = load double, double* %13
%73 = fadd double %71, %72
%74 = load double*, double** %11
%75 = load i64, i64* %14
%76 = sub nsw i64 %75, 1
%77 = getelementptr inbounds double, double* %74, i64 %76
%78 = load double, double* %77
%79 = load double, double* %12
%80 = fadd double %78, %79
%81 = call double @log10_add_pow10(double %73, double %80)
%82 = load double*, double** %11
%83 = load i64, i64* %14
%84 = getelementptr inbounds double, double* %82, i64 %83
store double %81, double* %84
br label %85
85: ; preds = %67
%86 = load i64, i64* %14
%87 = add nsw i64 %86, -1
store i64 %87, i64* %14
br label %64
88: ; preds = %64
br label %89
89: ; preds = %88
%90 = load i64, i64* %15
%91 = add nsw i64 %90, 1
store i64 %91, i64* %15
br label %44
92: ; preds = %44
store i64 0, i64* %15
br label %93
93: ; preds = %138, %92
%94 = load i64, i64* %15
%95 = load i64, i64* %9
%96 = icmp slt i64 %94, %95
br i1 %96, label %97, label %141
97: ; preds = %93
%98 = load i64, i64* %16
%99 = add nsw i64 %98, 1
store i64 %99, i64* %16
%100 = load i32*, i32** %8
%101 = load i64, i64* %15
%102 = getelementptr inbounds i32, i32* %100, i64 %101
%103 = load i32, i32* %102
%104 = sitofp i32 %103 to double
%105 = fmul double -1.000000e+00, %104
%106 = fdiv double %105, 1.000000e+01
store double %106, double* %12
%107 = load double, double* %12
%108 = call i64 @pow(double 1.000000e+01, double %107)
%109 = sub nsw i64 1, %108
%110 = call double @log10(i64 %109)
store double %110, double* %13
%111 = load i64, i64* %16
%112 = add nsw i64 %111, 1
store i64 %112, i64* %14
br label %113
113: ; preds = %134, %97
%114 = load i64, i64* %14
%115 = icmp sgt i64 %114, 0
br i1 %115, label %116, label %137
116: ; preds = %113
%117 = load double*, double** %11
%118 = load i64, i64* %14
%119 = getelementptr inbounds double, double* %117, i64 %118
%120 = load double, double* %119
%121 = load double, double* %12
%122 = fadd double %120, %121
%123 = load double*, double** %11
%124 = load i64, i64* %14
%125 = sub nsw i64 %124, 1
%126 = getelementptr inbounds double, double* %123, i64 %125
%127 = load double, double* %126
%128 = load double, double* %13
%129 = fadd double %127, %128
%130 = call double @log10_add_pow10(double %122, double %129)
%131 = load double*, double** %11
%132 = load i64, i64* %14
%133 = getelementptr inbounds double, double* %131, i64 %132
store double %130, double* %133
br label %134
134: ; preds = %116
%135 = load i64, i64* %14
%136 = add nsw i64 %135, -1
store i64 %136, i64* %14
br label %113
137: ; preds = %113
br label %138
138: ; preds = %137
%139 = load i64, i64* %15
%140 = add nsw i64 %139, 1
store i64 %140, i64* %15
br label %93
141: ; preds = %93
%142 = load double*, double** %11
store double* %142, double** %5
br label %143
143: ; preds = %141, %25
%144 = load double*, double** %5
ret double* %144
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [37 x i8] c"Error: cannot allocate memory at %d\0A\00"
define noalias double* @yyx_calc_log10_prob_vec(i32* nocapture %0, i64 %1, i32* nocapture %2, i64 %3) {
%5 = add i64 %1, 2
%6 = add i64 %5, %3
%7 = shl i64 %6, 3
%8 = tail call double* @malloc(i64 %7)
%9 = icmp eq double* %8, null
br i1 %9, label %85, label %10
10: ; preds = %4
%11 = icmp sgt i64 %6, 0
br i1 %11, label %12, label %93
12: ; preds = %10
%13 = icmp ult i64 %6, 4
br i1 %13, label %83, label %14
14: ; preds = %12
%15 = and i64 %6, -4
%16 = add i64 %15, -4
%17 = lshr exact i64 %16, 2
%18 = add nuw nsw i64 %17, 1
%19 = and i64 %18, 7
%20 = icmp ult i64 %16, 28
br i1 %20, label %68, label %21
21: ; preds = %14
%22 = and i64 %18, 9223372036854775800
br label %23
23: ; preds = %23, %21
%24 = phi i64 [ 0, %21 ], [ %65, %23 ]
%25 = phi i64 [ 0, %21 ], [ %66, %23 ]
%26 = getelementptr inbounds double, double* %8, i64 %24
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %27
%28 = getelementptr inbounds double, double* %26, i64 2
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %29
%30 = or i64 %24, 4
%31 = getelementptr inbounds double, double* %8, i64 %30
%32 = bitcast double* %31 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %32
%33 = getelementptr inbounds double, double* %31, i64 2
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %34
%35 = or i64 %24, 8
%36 = getelementptr inbounds double, double* %8, i64 %35
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %37
%38 = getelementptr inbounds double, double* %36, i64 2
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %39
%40 = or i64 %24, 12
%41 = getelementptr inbounds double, double* %8, i64 %40
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %42
%43 = getelementptr inbounds double, double* %41, i64 2
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %44
%45 = or i64 %24, 16
%46 = getelementptr inbounds double, double* %8, i64 %45
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %47
%48 = getelementptr inbounds double, double* %46, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %49
%50 = or i64 %24, 20
%51 = getelementptr inbounds double, double* %8, i64 %50
%52 = bitcast double* %51 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %52
%53 = getelementptr inbounds double, double* %51, i64 2
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %54
%55 = or i64 %24, 24
%56 = getelementptr inbounds double, double* %8, i64 %55
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %57
%58 = getelementptr inbounds double, double* %56, i64 2
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %59
%60 = or i64 %24, 28
%61 = getelementptr inbounds double, double* %8, i64 %60
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %62
%63 = getelementptr inbounds double, double* %61, i64 2
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %64
%65 = add nuw i64 %24, 32
%66 = add i64 %25, 8
%67 = icmp eq i64 %66, %22
br i1 %67, label %68, label %23
68: ; preds = %23, %14
%69 = phi i64 [ 0, %14 ], [ %65, %23 ]
%70 = icmp eq i64 %19, 0
br i1 %70, label %81, label %71
71: ; preds = %68, %71
%72 = phi i64 [ %78, %71 ], [ %69, %68 ]
%73 = phi i64 [ %79, %71 ], [ 0, %68 ]
%74 = getelementptr inbounds double, double* %8, i64 %72
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %75
%76 = getelementptr inbounds double, double* %74, i64 2
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> <double -1.000000e+100, double -1.000000e+100>, <2 x double>* %77
%78 = add nuw i64 %72, 4
%79 = add i64 %73, 1
%80 = icmp eq i64 %79, %19
br i1 %80, label %81, label %71
81: ; preds = %71, %68
%82 = icmp eq i64 %6, %15
br i1 %82, label %93, label %83
83: ; preds = %12, %81
%84 = phi i64 [ 0, %12 ], [ %15, %81 ]
br label %88
85: ; preds = %4
%86 = load i32, i32* @stderr
%87 = tail call i32 @fprintf(i32 %86, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 101)
br label %153
88: ; preds = %83, %88
%89 = phi i64 [ %91, %88 ], [ %84, %83 ]
%90 = getelementptr inbounds double, double* %8, i64 %89
store double -1.000000e+100, double* %90
%91 = add nuw nsw i64 %89, 1
%92 = icmp eq i64 %91, %6
br i1 %92, label %93, label %88
93: ; preds = %88, %81, %10
%94 = getelementptr inbounds double, double* %8, i64 1
store double 0.000000e+00, double* %94
%95 = icmp sgt i64 %1, 0
br i1 %95, label %99, label %96
96: ; preds = %122, %93
%97 = phi i64 [ 0, %93 ], [ %1, %122 ]
%98 = icmp sgt i64 %3, 0
br i1 %98, label %125, label %153
99: ; preds = %93, %122
%100 = phi i64 [ %123, %122 ], [ 0, %93 ]
%101 = getelementptr inbounds i32, i32* %0, i64 %100
%102 = load i32, i32* %101
%103 = sitofp i32 %102 to double
%104 = fdiv double %103, -1.000000e+01
%105 = tail call i64 @pow(double 1.000000e+01, double %104)
%106 = sub nsw i64 1, %105
%107 = tail call double @log10(i64 %106)
%108 = add nuw nsw i64 %100, 2
%109 = getelementptr inbounds double, double* %8, i64 %108
%110 = load double, double* %109
br label %111
111: ; preds = %99, %111
%112 = phi double [ %110, %99 ], [ %118, %111 ]
%113 = phi i64 [ %108, %99 ], [ %116, %111 ]
%114 = getelementptr inbounds double, double* %8, i64 %113
%115 = fadd double %107, %112
%116 = add nsw i64 %113, -1
%117 = getelementptr inbounds double, double* %8, i64 %116
%118 = load double, double* %117
%119 = fadd double %104, %118
%120 = tail call double @log10_add_pow10(double %115, double %119)
store double %120, double* %114
%121 = icmp sgt i64 %113, 1
br i1 %121, label %111, label %122
122: ; preds = %111
%123 = add nuw nsw i64 %100, 1
%124 = icmp eq i64 %123, %1
br i1 %124, label %96, label %99
125: ; preds = %96, %150
%126 = phi i64 [ %128, %150 ], [ %97, %96 ]
%127 = phi i64 [ %151, %150 ], [ 0, %96 ]
%128 = add nuw nsw i64 %126, 1
%129 = getelementptr inbounds i32, i32* %2, i64 %127
%130 = load i32, i32* %129
%131 = sitofp i32 %130 to double
%132 = fdiv double %131, -1.000000e+01
%133 = tail call i64 @pow(double 1.000000e+01, double %132)
%134 = sub nsw i64 1, %133
%135 = tail call double @log10(i64 %134)
%136 = add nuw nsw i64 %126, 2
%137 = getelementptr inbounds double, double* %8, i64 %136
%138 = load double, double* %137
br label %139
139: ; preds = %125, %139
%140 = phi double [ %146, %139 ], [ %138, %125 ]
%141 = phi i64 [ %144, %139 ], [ %136, %125 ]
%142 = getelementptr inbounds double, double* %8, i64 %141
%143 = fadd double %132, %140
%144 = add nsw i64 %141, -1
%145 = getelementptr inbounds double, double* %8, i64 %144
%146 = load double, double* %145
%147 = fadd double %135, %146
%148 = tail call double @log10_add_pow10(double %143, double %147)
store double %148, double* %142
%149 = icmp sgt i64 %141, 1
br i1 %149, label %139, label %150
150: ; preds = %139
%151 = add nuw nsw i64 %127, 1
%152 = icmp eq i64 %151, %3
br i1 %152, label %153, label %125
153: ; preds = %150, %96, %85
ret double* %8
}