#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 */
size_t abs(int);
int /*<<< orphan*/ analysis(double *, int, double *, int, int, int const *);
int log10(double);
int /*<<< orphan*/ synthesis(double *, int, double *, int, int, int const *);
double coding_gain_1d_collapsed(const double _r[2 * (1 << (2))],
                                const int *_f) {
  int j;
  int i;
  double r[2 * (1 << (2))];
  double rgt[2 * (1 << (2)) * (1 << (2))];
  double grgt[(1 << (2)) * (1 << (2))];
  double cg;
  for (j = 0; j < 2 * (1 << (2)); j++) {
    for (i = 0; i < 2 * (1 << (2)); i++) {
      r[i] = _r[abs(i - j)];
    }
    analysis(&rgt[j * (1 << (2))], 1, r, 1, 1, _f);
  }
  analysis(grgt, (1 << (2)), rgt, (1 << (2)), (1 << (2)), _f);
  for (j = 0; j < (1 << (2)); j++) {
    for (i = 0; i < (1 << (2)); i++) {
      r[i] = i == j ? 1 : 0;
    }
    synthesis(&rgt[j], (1 << (2)), r, 1, 1, _f);
  }
  cg = 0;
  for (j = 0; j < (1 << (2)); j++) {
    double h;
    h = 0;
    for (i = 0; i < 2 * (1 << (2)); i++) {
      h += rgt[i * (1 << (2)) + j] * rgt[i * (1 << (2)) + j];
    }
    cg -= 10 * log10(grgt[j * (1 << (2)) + j] * h);
  }
  return cg / (1 << (2));
}


x86 assembly (clang, -O0):
<coding_gain_1d_collapsed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    11ef <coding_gain_1d_collapsed+0xaf>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    11b2 <coding_gain_1d_collapsed+0x72>
mov    -0x8(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
mov    -0x18(%rbp),%edi
sub    -0x14(%rbp),%edi
call   1030 <abs@plt>
mov    %rax,%rcx
mov    -0x1f8(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movslq -0x18(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116b <coding_gain_1d_collapsed+0x2b>
mov    -0x14(%rbp),%eax
shl    $0x2,%eax
cltq
lea    -0x160(%rbp),%rdi
shl    $0x3,%rax
add    %rax,%rdi
lea    -0x60(%rbp),%rdx
mov    -0x10(%rbp),%r9
mov    $0x1,%r8d
mov    %r8d,%esi
mov    %r8d,%ecx
call   1060 <analysis@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115a <coding_gain_1d_collapsed+0x1a>
lea    -0x1e0(%rbp),%rdi
lea    -0x160(%rbp),%rdx
mov    -0x10(%rbp),%r9
mov    $0x4,%r8d
mov    %r8d,%esi
mov    %r8d,%ecx
call   1060 <analysis@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    129d <coding_gain_1d_collapsed+0x15d>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    1262 <coding_gain_1d_collapsed+0x122>
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%esi
xor    %eax,%eax
mov    $0x1,%ecx
cmp    %esi,%edx
cmove  %ecx,%eax
cvtsi2sd %eax,%xmm0
movslq -0x18(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    122a <coding_gain_1d_collapsed+0xea>
movslq -0x14(%rbp),%rax
lea    -0x160(%rbp),%rdi
shl    $0x3,%rax
add    %rax,%rdi
lea    -0x60(%rbp),%rdx
mov    -0x10(%rbp),%r9
mov    $0x4,%esi
mov    $0x1,%r8d
mov    %r8d,%ecx
call   1050 <synthesis@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1219 <coding_gain_1d_collapsed+0xd9>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1e8(%rbp)
ff
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    136d <coding_gain_1d_collapsed+0x22d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1f0(%rbp)
ff
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    1323 <coding_gain_1d_collapsed+0x1e3>
mov    -0x18(%rbp),%eax
shl    $0x2,%eax
add    -0x14(%rbp),%eax
cltq
movsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
mov    -0x18(%rbp),%eax
shl    $0x2,%eax
add    -0x14(%rbp),%eax
cltq
movsd  -0x160(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x1f0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1f0(%rbp)
ff
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12cb <coding_gain_1d_collapsed+0x18b>
mov    -0x14(%rbp),%eax
shl    $0x2,%eax
add    -0x14(%rbp),%eax
cltq
movsd  -0x1e0(%rbp,%rax,8),%xmm0
ff ff
mulsd  -0x1f0(%rbp),%xmm0
ff
call   1040 <log10@plt>
imul   $0xa,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x1e8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x1e8(%rbp)
ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12af <coding_gain_1d_collapsed+0x16f>
movsd  -0x1e8(%rbp),%xmm0
ff
movsd  0xc83(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coding_gain_1d_collapsed>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1d0,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0x8,%ebx
lea    0x50(%rsp),%r12
lea    0x10(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x8(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x10(%rsp)
lea    -0x7(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    -0x6(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x20(%rsp)
lea    -0x5(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x28(%rsp)
lea    -0x4(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x30(%rsp)
lea    -0x3(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    -0x2(%rbx),%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x40(%rsp)
add    $0xffffffffffffffff,%rbx
mov    %ebx,%edi
call   1030 <abs@plt>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x48(%rsp)
mov    %r12,%rdi
mov    $0x1,%esi
mov    %r13,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    %r14,%r9
call   1060 <analysis@plt>
add    $0x20,%r12
test   %rbx,%rbx
jne    1170 <coding_gain_1d_collapsed+0x30>
lea    0x150(%rsp),%r13
lea    0x50(%rsp),%r12
mov    %r13,%rdi
mov    $0x4,%esi
mov    %r12,%rdx
mov    $0x4,%ecx
mov    $0x4,%r8d
mov    %r14,%r9
call   1060 <analysis@plt>
movabs $0x3ff0000000000000,%rbx
mov    %rbx,0x10(%rsp)
xorpd  %xmm0,%xmm0
movupd %xmm0,0x18(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x10(%rsp),%r15
mov    %r12,%rdi
mov    $0x4,%esi
mov    %r15,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    %r14,%r9
call   1050 <synthesis@plt>
xorpd  %xmm0,%xmm0
movhpd 0xd46(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
lea    0x58(%rsp),%rdi
xorpd  %xmm0,%xmm0
movapd %xmm0,0x20(%rsp)
mov    $0x4,%esi
mov    %r15,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    %r14,%r9
call   1050 <synthesis@plt>
xorpd  %xmm0,%xmm0
movapd %xmm0,0x10(%rsp)
mov    %rbx,0x20(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x60(%rsp),%rdi
mov    $0x4,%esi
mov    %r15,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    %r14,%r9
call   1050 <synthesis@plt>
xorpd  %xmm0,%xmm0
movapd %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    %rbx,0x28(%rsp)
lea    0x68(%rsp),%rdi
mov    $0x4,%esi
mov    %r15,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    %r14,%r9
call   1050 <synthesis@plt>
mov    $0xfffffffffffffffc,%rbx
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm0,0x8(%rsp)
movsd  0x70(%rsp,%rbx,8),%xmm0
movsd  0x90(%rsp,%rbx,8),%xmm1
mulsd  %xmm0,%xmm0
addsd  0xc7f(%rip),%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xb0(%rsp,%rbx,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd0(%rsp,%rbx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xf0(%rsp,%rbx,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x110(%rsp,%rbx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x130(%rsp,%rbx,8),%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x150(%rsp,%rbx,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
mulsd  0x0(%r13),%xmm0
call   1040 <log10@plt>
add    %eax,%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
add    $0x28,%r13
inc    %rbx
jne    1370 <coding_gain_1d_collapsed+0x230>
mulsd  0xbc7(%rip),%xmm0
add    $0x1d0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define double @coding_gain_1d_collapsed(double* %0, i32* %1) {
%3 = alloca double*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca [8 x double]
%8 = alloca [32 x double]
%9 = alloca [16 x double]
%10 = alloca double
%11 = alloca double
store double* %0, double** %3
store i32* %1, i32** %4
store i32 0, i32* %5
br label %12
12: ; preds = %41, %2
%13 = load i32, i32* %5
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %44
15: ; preds = %12
store i32 0, i32* %6
br label %16
16: ; preds = %30, %15
%17 = load i32, i32* %6
%18 = icmp slt i32 %17, 8
br i1 %18, label %19, label %33
19: ; preds = %16
%20 = load double*, double** %3
%21 = load i32, i32* %6
%22 = load i32, i32* %5
%23 = sub nsw i32 %21, %22
%24 = call i64 @abs(i32 %23)
%25 = getelementptr inbounds double, double* %20, i64 %24
%26 = load double, double* %25
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [8 x double], [8 x double]* %7, i64 0, i64 %28
store double %26, double* %29
br label %30
30: ; preds = %19
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %16
33: ; preds = %16
%34 = load i32, i32* %5
%35 = mul nsw i32 %34, 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [32 x double], [32 x double]* %8, i64 0, i64 %36
%38 = getelementptr inbounds [8 x double], [8 x double]* %7, i64 0, i64 0
%39 = load i32*, i32** %4
%40 = call i32 @analysis(double* %37, i32 1, double* %38, i32 1, i32 1, i32* %39)
br label %41
41: ; preds = %33
%42 = load i32, i32* %5
%43 = add nsw i32 %42, 1
store i32 %43, i32* %5
br label %12
44: ; preds = %12
%45 = getelementptr inbounds [16 x double], [16 x double]* %9, i64 0, i64 0
%46 = getelementptr inbounds [32 x double], [32 x double]* %8, i64 0, i64 0
%47 = load i32*, i32** %4
%48 = call i32 @analysis(double* %45, i32 4, double* %46, i32 4, i32 4, i32* %47)
store i32 0, i32* %5
br label %49
49: ; preds = %76, %44
%50 = load i32, i32* %5
%51 = icmp slt i32 %50, 4
br i1 %51, label %52, label %79
52: ; preds = %49
store i32 0, i32* %6
br label %53
53: ; preds = %66, %52
%54 = load i32, i32* %6
%55 = icmp slt i32 %54, 4
br i1 %55, label %56, label %69
56: ; preds = %53
%57 = load i32, i32* %6
%58 = load i32, i32* %5
%59 = icmp eq i32 %57, %58
%60 = zext i1 %59 to i64
%61 = select i1 %59, i32 1, i32 0
%62 = sitofp i32 %61 to double
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [8 x double], [8 x double]* %7, i64 0, i64 %64
store double %62, double* %65
br label %66
66: ; preds = %56
%67 = load i32, i32* %6
%68 = add nsw i32 %67, 1
store i32 %68, i32* %6
br label %53
69: ; preds = %53
%70 = load i32, i32* %5
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [32 x double], [32 x double]* %8, i64 0, i64 %71
%73 = getelementptr inbounds [8 x double], [8 x double]* %7, i64 0, i64 0
%74 = load i32*, i32** %4
%75 = call i32 @synthesis(double* %72, i32 4, double* %73, i32 1, i32 1, i32* %74)
br label %76
76: ; preds = %69
%77 = load i32, i32* %5
%78 = add nsw i32 %77, 1
store i32 %78, i32* %5
br label %49
79: ; preds = %49
store double 0.000000e+00, double* %10
store i32 0, i32* %5
br label %80
80: ; preds = %122, %79
%81 = load i32, i32* %5
%82 = icmp slt i32 %81, 4
br i1 %82, label %83, label %125
83: ; preds = %80
store double 0.000000e+00, double* %11
store i32 0, i32* %6
br label %84
84: ; preds = %104, %83
%85 = load i32, i32* %6
%86 = icmp slt i32 %85, 8
br i1 %86, label %87, label %107
87: ; preds = %84
%88 = load i32, i32* %6
%89 = mul nsw i32 %88, 4
%90 = load i32, i32* %5
%91 = add nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [32 x double], [32 x double]* %8, i64 0, i64 %92
%94 = load double, double* %93
%95 = load i32, i32* %6
%96 = mul nsw i32 %95, 4
%97 = load i32, i32* %5
%98 = add nsw i32 %96, %97
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [32 x double], [32 x double]* %8, i64 0, i64 %99
%101 = load double, double* %100
%102 = load double, double* %11
%103 = call double @llvm.fmuladd.f64(double %94, double %101, double %102)
store double %103, double* %11
br label %104
104: ; preds = %87
%105 = load i32, i32* %6
%106 = add nsw i32 %105, 1
store i32 %106, i32* %6
br label %84
107: ; preds = %84
%108 = load i32, i32* %5
%109 = mul nsw i32 %108, 4
%110 = load i32, i32* %5
%111 = add nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [16 x double], [16 x double]* %9, i64 0, i64 %112
%114 = load double, double* %113
%115 = load double, double* %11
%116 = fmul double %114, %115
%117 = call i32 @log10(double %116)
%118 = mul nsw i32 10, %117
%119 = sitofp i32 %118 to double
%120 = load double, double* %10
%121 = fsub double %120, %119
store double %121, double* %10
br label %122
122: ; preds = %107
%123 = load i32, i32* %5
%124 = add nsw i32 %123, 1
store i32 %124, i32* %5
br label %80
125: ; preds = %80
%126 = load double, double* %10
%127 = fdiv double %126, 4.000000e+00
ret double %127
}

LLVM IR (-O2):
define double @coding_gain_1d_collapsed(double* nocapture %0, i32* %1) {
%3 = alloca [8 x double]
%4 = alloca [32 x double]
%5 = alloca [16 x double]
%6 = bitcast [8 x double]* %3 to i8*
%7 = bitcast [32 x double]* %4 to i8*
%8 = bitcast [16 x double]* %5 to i8*
%9 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 0
%10 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 1
%11 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 2
%12 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 3
%13 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 4
%14 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 5
%15 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 6
%16 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 7
br label %17
17: ; preds = %2, %17
%18 = phi i64 [ 0, %2 ], [ %62, %17 ]
%19 = trunc i64 %18 to i32
%20 = sub i32 0, %19
%21 = call i64 @abs(i32 %20)
%22 = getelementptr inbounds double, double* %0, i64 %21
%23 = load double, double* %22
store double %23, double* %9
%24 = trunc i64 %18 to i32
%25 = sub i32 1, %24
%26 = call i64 @abs(i32 %25)
%27 = getelementptr inbounds double, double* %0, i64 %26
%28 = load double, double* %27
store double %28, double* %10
%29 = trunc i64 %18 to i32
%30 = sub i32 2, %29
%31 = call i64 @abs(i32 %30)
%32 = getelementptr inbounds double, double* %0, i64 %31
%33 = load double, double* %32
store double %33, double* %11
%34 = trunc i64 %18 to i32
%35 = sub i32 3, %34
%36 = call i64 @abs(i32 %35)
%37 = getelementptr inbounds double, double* %0, i64 %36
%38 = load double, double* %37
store double %38, double* %12
%39 = trunc i64 %18 to i32
%40 = sub i32 4, %39
%41 = call i64 @abs(i32 %40)
%42 = getelementptr inbounds double, double* %0, i64 %41
%43 = load double, double* %42
store double %43, double* %13
%44 = trunc i64 %18 to i32
%45 = sub i32 5, %44
%46 = call i64 @abs(i32 %45)
%47 = getelementptr inbounds double, double* %0, i64 %46
%48 = load double, double* %47
store double %48, double* %14
%49 = trunc i64 %18 to i32
%50 = sub i32 6, %49
%51 = call i64 @abs(i32 %50)
%52 = getelementptr inbounds double, double* %0, i64 %51
%53 = load double, double* %52
store double %53, double* %15
%54 = trunc i64 %18 to i32
%55 = sub i32 7, %54
%56 = call i64 @abs(i32 %55)
%57 = getelementptr inbounds double, double* %0, i64 %56
%58 = load double, double* %57
store double %58, double* %16
%59 = shl nsw i64 %18, 2
%60 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %59
%61 = call i32 @analysis(double* %60, i32 1, double* %9, i32 1, i32 1, i32* %1)
%62 = add nuw nsw i64 %18, 1
%63 = icmp eq i64 %62, 8
br i1 %63, label %64, label %17
64: ; preds = %17
%65 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 1
%66 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 2
%67 = getelementptr inbounds [8 x double], [8 x double]* %3, i64 0, i64 3
%68 = getelementptr inbounds [16 x double], [16 x double]* %5, i64 0, i64 0
%69 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 0
%70 = call i32 @analysis(double* %68, i32 4, double* %69, i32 4, i32 4, i32* %1)
store double 1.000000e+00, double* %9
%71 = bitcast double* %65 to i8*
%72 = call i32 @synthesis(double* %69, i32 4, double* %9, i32 1, i32 1, i32* %1)
%73 = bitcast [8 x double]* %3 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 1.000000e+00>, <2 x double>* %73
%74 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 1
%75 = bitcast double* %66 to i8*
%76 = call i32 @synthesis(double* %74, i32 4, double* %9, i32 1, i32 1, i32* %1)
%77 = bitcast [8 x double]* %3 to i8*
store double 1.000000e+00, double* %66
store double 0.000000e+00, double* %67
%78 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 2
%79 = call i32 @synthesis(double* %78, i32 4, double* %9, i32 1, i32 1, i32* %1)
%80 = bitcast [8 x double]* %3 to i8*
store double 1.000000e+00, double* %67
%81 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 3
%82 = call i32 @synthesis(double* %81, i32 4, double* %9, i32 1, i32 1, i32* %1)
br label %83
83: ; preds = %64, %83
%84 = phi i64 [ 0, %64 ], [ %125, %83 ]
%85 = phi double [ 0.000000e+00, %64 ], [ %124, %83 ]
%86 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %84
%87 = load double, double* %86
%88 = call double @llvm.fmuladd.f64(double %87, double %87, double 0.000000e+00)
%89 = add nuw nsw i64 %84, 4
%90 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %89
%91 = load double, double* %90
%92 = call double @llvm.fmuladd.f64(double %91, double %91, double %88)
%93 = add nuw nsw i64 %84, 8
%94 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %93
%95 = load double, double* %94
%96 = call double @llvm.fmuladd.f64(double %95, double %95, double %92)
%97 = add nuw nsw i64 %84, 12
%98 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %97
%99 = load double, double* %98
%100 = call double @llvm.fmuladd.f64(double %99, double %99, double %96)
%101 = add nuw nsw i64 %84, 16
%102 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %101
%103 = load double, double* %102
%104 = call double @llvm.fmuladd.f64(double %103, double %103, double %100)
%105 = add nuw nsw i64 %84, 20
%106 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %105
%107 = load double, double* %106
%108 = call double @llvm.fmuladd.f64(double %107, double %107, double %104)
%109 = add nuw nsw i64 %84, 24
%110 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %109
%111 = load double, double* %110
%112 = call double @llvm.fmuladd.f64(double %111, double %111, double %108)
%113 = add nuw nsw i64 %84, 28
%114 = getelementptr inbounds [32 x double], [32 x double]* %4, i64 0, i64 %113
%115 = load double, double* %114
%116 = call double @llvm.fmuladd.f64(double %115, double %115, double %112)
%117 = mul nuw nsw i64 %84, 5
%118 = getelementptr inbounds [16 x double], [16 x double]* %5, i64 0, i64 %117
%119 = load double, double* %118
%120 = fmul double %116, %119
%121 = call i32 @log10(double %120)
%122 = mul nsw i32 %121, 10
%123 = sitofp i32 %122 to double
%124 = fsub double %85, %123
%125 = add nuw nsw i64 %84, 1
%126 = icmp eq i64 %125, 4
br i1 %126, label %127, label %83
127: ; preds = %83
%128 = fmul double %124, 2.500000e-01
ret double %128
}