#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 **cre_mat(int, int);
double fabs(double);
int /*<<< orphan*/ free_mat(double **, int);
void differ(double (*f)(double **vars, int n), double **vars, double **grads,
            int n, double prec) {
  int i, j;
  double delta_x = 3, delta_y;
  double y1, y2;
  double diff1, diff2;
  double **vars_temp = cre_mat(n, 1);
  for (i = 0; i < n; ++i) {
    y1 = f(vars, n);
    for (j = 0; j < n; ++j) {
      vars_temp[j][0] = vars[j][0];
      if (i == j)
        vars_temp[j][0] += delta_x;
    }
    y2 = f(vars_temp, n);
    delta_y = y2 - y1;
    diff1 = delta_y / delta_x;
    while (1) {
      delta_x = 0.5 * delta_x;
      y1 = f(vars, n);
      for (j = 0; j < n; ++j) {
        vars_temp[j][0] = vars[j][0];
        if (i == j)
          vars_temp[j][0] += delta_x;
      }
      y2 = f(vars_temp, n);
      delta_y = y2 - y1;
      diff2 = delta_y / delta_x;
      if (fabs(diff2 - diff1) <= prec)
        break;
      else
        diff1 = diff2;
    }
    grads[i][0] = diff2;
  }
  free_mat(vars_temp, n);
  vars_temp = NULL;
}


x86 assembly (clang, -O0):
<differ>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  0xebc(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x1,%esi
call   1030 <cre_mat@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1334 <differ+0x214>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   *%rax
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11ea <differ+0xca>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jne    11d7 <differ+0xb7>
movsd  -0x38(%rbp),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
jmp    11dc <differ+0xbc>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1186 <differ+0x66>
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   *%rax
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xde6(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   *%rax
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a9 <differ+0x189>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jne    1296 <differ+0x176>
movsd  -0x38(%rbp),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
jmp    129b <differ+0x17b>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1245 <differ+0x125>
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   *%rax
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
movaps 0xd26(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1302 <differ+0x1e2>
jmp    1311 <differ+0x1f1>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    121a <differ+0xfa>
movsd  -0x60(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1161 <differ+0x41>
mov    -0x68(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1040 <free_mat@plt>
movq   $0x0,-0x68(%rbp)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<differ>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm0,0x28(%rsp)
mov    %ecx,%r15d
mov    %rdx,0x20(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r12
mov    %ecx,%edi
mov    $0x1,%esi
call   1030 <cre_mat@plt>
mov    %rax,%rbp
test   %r15d,%r15d
jle    138b <differ+0x26b>
mov    %r15d,%r13d
lea    -0x1(%r13),%rax
mov    %rax,0x18(%rsp)
mov    %r13,0x8(%rsp)
and    $0xfffffffe,%r13d
movsd  0xe89(%rip),%xmm3
xor    %r14d,%r14d
jmp    119c <differ+0x7c>
nopl   0x0(%rax)
mov    0x20(%rsp),%rax
mov    (%rax,%r14,8),%rax
movsd  %xmm0,(%rax)
add    $0x1,%r14
cmp    0x8(%rsp),%r14
je     138b <differ+0x26b>
movsd  %xmm3,(%rsp)
mov    %rbx,%rdi
mov    %r15d,%esi
call   *%r12
cmpq   $0x0,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
je     1220 <differ+0x100>
xor    %eax,%eax
movsd  (%rsp),%xmm1
movsd  0xe41(%rip),%xmm2
jmp    11eb <differ+0xcb>
nopl   0x0(%rax)
mov    0x8(%rbx,%rax,8),%rcx
addsd  (%rcx),%xmm0
mov    0x8(%rbp,%rax,8),%rcx
movsd  %xmm0,(%rcx)
add    $0x2,%rax
cmp    %r13,%rax
je     122f <differ+0x10f>
movapd %xmm1,%xmm0
cmp    %rax,%r14
je     11f8 <differ+0xd8>
movapd %xmm2,%xmm0
mov    (%rbx,%rax,8),%rcx
addsd  (%rcx),%xmm0
mov    0x0(%rbp,%rax,8),%rcx
movsd  %xmm0,(%rcx)
lea    0x1(%rax),%rcx
movapd %xmm1,%xmm0
cmp    %rcx,%r14
je     11d0 <differ+0xb0>
movapd %xmm2,%xmm0
jmp    11d0 <differ+0xb0>
nopl   0x0(%rax)
xor    %eax,%eax
movsd  (%rsp),%xmm1
movsd  0xdd9(%rip),%xmm2
testb  $0x1,0x8(%rsp)
je     1254 <differ+0x134>
movapd %xmm1,%xmm0
cmp    %rax,%r14
je     1243 <differ+0x123>
movapd %xmm2,%xmm0
mov    (%rbx,%rax,8),%rcx
mov    0x0(%rbp,%rax,8),%rax
addsd  (%rcx),%xmm0
movsd  %xmm0,(%rax)
mov    %rbp,%rdi
mov    %r15d,%esi
call   *%r12
movsd  (%rsp),%xmm3
movapd %xmm0,%xmm1
subsd  0x10(%rsp),%xmm1
divsd  %xmm3,%xmm1
jmp    12d4 <differ+0x1b4>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rbx,%rax,8),%rcx
mov    0x0(%rbp,%rax,8),%rax
addsd  (%rcx),%xmm0
movsd  %xmm0,(%rax)
mov    %rbp,%rdi
mov    %r15d,%esi
movsd  %xmm1,(%rsp)
call   *%r12
movsd  (%rsp),%xmm3
subsd  0x30(%rsp),%xmm0
divsd  %xmm3,%xmm0
movapd %xmm0,%xmm1
subsd  0x10(%rsp),%xmm1
andpd  0xd60(%rip),%xmm1
movsd  0x28(%rsp),%xmm2
ucomisd %xmm1,%xmm2
movapd %xmm0,%xmm1
jae    1180 <differ+0x60>
movsd  %xmm1,0x10(%rsp)
movsd  %xmm3,(%rsp)
mov    %rbx,%rdi
mov    %r15d,%esi
call   *%r12
movsd  (%rsp),%xmm1
mulsd  0xd1b(%rip),%xmm1
cmpq   $0x0,0x18(%rsp)
movsd  %xmm0,0x30(%rsp)
je     1360 <differ+0x240>
xor    %eax,%eax
movsd  0xcfb(%rip),%xmm2
jmp    132b <differ+0x20b>
nop
mov    0x8(%rbx,%rax,8),%rcx
addsd  (%rcx),%xmm0
mov    0x8(%rbp,%rax,8),%rcx
movsd  %xmm0,(%rcx)
add    $0x2,%rax
cmp    %r13,%rax
je     136a <differ+0x24a>
movapd %xmm1,%xmm0
cmp    %rax,%r14
je     1338 <differ+0x218>
movapd %xmm2,%xmm0
mov    (%rbx,%rax,8),%rcx
addsd  (%rcx),%xmm0
mov    0x0(%rbp,%rax,8),%rcx
movsd  %xmm0,(%rcx)
lea    0x1(%rax),%rcx
movapd %xmm1,%xmm0
cmp    %rcx,%r14
je     1310 <differ+0x1f0>
movapd %xmm2,%xmm0
jmp    1310 <differ+0x1f0>
nopl   0x0(%rax)
xor    %eax,%eax
movsd  0xc9e(%rip),%xmm2
testb  $0x1,0x8(%rsp)
je     1291 <differ+0x171>
movapd %xmm1,%xmm0
cmp    %rax,%r14
je     1280 <differ+0x160>
movapd %xmm2,%xmm0
jmp    1280 <differ+0x160>
mov    %rbp,%rdi
mov    %r15d,%esi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <free_mat@plt>

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

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