#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 */
double cos(double);
int /*<<< orphan*/ free(double *);
double *malloc(int);
double sin(double);
void f_iir_derivative_filter(double *src, double *dest, int sx, int sy,
                             double phi, int order) {
  int i, j;
  double *prev, *center, *next;
  double *buf, *pstore;
  double pn, pc, pp;
  double cn, cc, cp;
  double nn, nc, np;
  double cosp, sinp;
  buf = malloc(sx * sizeof(*buf));
  sinp = 0.5 * sin(phi);
  cosp = 0.5 * cos(phi);
  center = src;
  prev = src;
  next = src + sx;
  for (i = 0; i < sy; i++) {
    pstore = buf;
    pn = *prev++;
    cn = *center++;
    nn = *next++;
    pp = pn;
    pc = pn;
    cp = cn;
    cc = cn;
    np = pn;
    nc = nn;
    *pstore++ = cc;
    for (j = 1; j < sx; j++) {
      pn = *prev++;
      cn = *center++;
      nn = *next++;
      *dest++ = sinp * (pc - nc) + cosp * (cn - cp);
      pp = pc;
      pc = pn;
      cp = cc;
      cc = cn;
      np = pc;
      nc = nn;
      *pstore++ = cc;
    }
    *dest++ = sinp * (pc - nc) + cosp * (cn - cp);
    prev = buf;
    if (i == sy - 2)
      next -= sx;
  }
  free(buf);
}


x86 assembly (clang, -O0):
<f_iir_derivative_filter>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  0xe76(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xe55(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1444 <f_iir_derivative_filter+0x304>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x58(%rbp)
movsd  %xmm0,(%rax)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13b5 <f_iir_derivative_filter+0x275>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
subsd  -0x98(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm3
subsd  -0x88(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x58(%rbp)
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12a7 <f_iir_derivative_filter+0x167>
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
subsd  -0x98(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm3
subsd  -0x88(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jne    1431 <f_iir_derivative_filter+0x2f1>
mov    -0x14(%rbp),%ecx
mov    -0x48(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
jmp    1436 <f_iir_derivative_filter+0x2f6>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11e1 <f_iir_derivative_filter+0xa1>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_iir_derivative_filter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%rbx
mov    %rdi,%r13
lea    0x0(,%r15,8),%edi
call   1050 <malloc@plt>
mov    %rax,%r12
movsd  0x8(%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movsd  0x10(%rsp),%xmm8
test   %r14d,%r14d
jle    1355 <f_iir_derivative_filter+0x215>
movslq %r15d,%r11
movsd  0xe59(%rip),%xmm1
mulsd  %xmm1,%xmm8
mulsd  %xmm1,%xmm0
lea    0x0(,%r11,8),%rcx
add    %r13,%rcx
lea    -0x2(%r14),%r10d
neg    %r11
lea    -0x1(%r15),%r9d
mov    %r9d,%r8d
and    $0xfffffffe,%r8d
xor    %edi,%edi
mov    %r13,%rdx
jmp    1227 <f_iir_derivative_filter+0xe7>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movapd %xmm2,%xmm5
mov    %rsi,%r13
subsd  %xmm2,%xmm5
subsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm5
mulsd  %xmm8,%xmm1
addsd  %xmm5,%xmm1
movsd  %xmm1,(%rbx)
add    $0x8,%rbx
cmp    %r10d,%edi
mov    $0x0,%eax
cmove  %r11,%rax
lea    (%rcx,%rax,8),%rcx
add    $0x8,%rcx
add    $0x1,%edi
mov    %r12,%rdx
cmp    %r14d,%edi
je     1355 <f_iir_derivative_filter+0x215>
lea    0x8(%r13),%rsi
movsd  (%rdx),%xmm1
movsd  0x0(%r13),%xmm2
movsd  (%rcx),%xmm3
movsd  %xmm2,(%r12)
cmp    $0x2,%r15d
jl     11e0 <f_iir_derivative_filter+0xa0>
jne    1260 <f_iir_derivative_filter+0x120>
mov    %r12,%rbp
movapd %xmm2,%xmm4
jmp    12fe <f_iir_derivative_filter+0x1be>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r8d,%ebp
xor    %eax,%eax
movapd %xmm2,%xmm4
nopl   0x0(%rax)
movapd %xmm4,%xmm5
movapd %xmm2,%xmm4
subsd  %xmm3,%xmm1
movsd  0x8(%rdx,%rax,1),%xmm6
movsd  (%rsi,%rax,1),%xmm2
movapd %xmm2,%xmm3
subsd  %xmm4,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm8,%xmm1
addsd  %xmm3,%xmm1
subsd  0x8(%rcx,%rax,1),%xmm6
movsd  %xmm1,(%rbx,%rax,1)
movsd  %xmm2,0x8(%r12,%rax,1)
movsd  0x10(%rdx,%rax,1),%xmm1
movsd  0x8(%rsi,%rax,1),%xmm4
movsd  0x10(%rcx,%rax,1),%xmm3
movapd %xmm4,%xmm7
subsd  %xmm5,%xmm7
mulsd  %xmm0,%xmm7
mulsd  %xmm8,%xmm6
addsd  %xmm7,%xmm6
movsd  %xmm6,0x8(%rbx,%rax,1)
movsd  %xmm4,0x10(%r12,%rax,1)
add    $0x10,%rax
add    $0xfffffffe,%ebp
jne    1270 <f_iir_derivative_filter+0x130>
add    %rax,%rdx
add    %rax,%rsi
add    %rax,%rcx
lea    (%r12,%rax,1),%rbp
add    %rax,%rbx
mov    %rsi,%r13
movapd %xmm4,%xmm5
test   $0x1,%r9b
je     11e7 <f_iir_derivative_filter+0xa7>
movsd  0x8(%rdx),%xmm6
movsd  (%rsi),%xmm5
subsd  %xmm3,%xmm1
movsd  0x8(%rcx),%xmm3
add    $0x8,%rcx
movapd %xmm5,%xmm7
subsd  %xmm2,%xmm7
mulsd  %xmm0,%xmm7
mulsd  %xmm8,%xmm1
addsd  %xmm7,%xmm1
movsd  %xmm1,(%rbx)
add    $0x8,%rbx
movsd  %xmm5,0x8(%rbp)
add    $0x8,%rsi
movapd %xmm6,%xmm1
movapd %xmm4,%xmm2
jmp    11e4 <f_iir_derivative_filter+0xa4>
mov    %r12,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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