#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 a;
double b;
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
double phi(double);
double r_grh(double z) {
  double pnorms(double), phi(double), a, b;
  extern int mm;
  extern double *ww, *xx, rs, r1, r32;
  int i, k;
  double tem, sum, tem2, *t;
  t = (double *)malloc(mm * sizeof(double));
  for (i = 0; i < mm; i++) {
    a = (ww[i] - rs * z) / r1;
    b = (xx[i] - rs * z) / r1;
    t[i] = pnorms(b) - pnorms(a);
  }
  for (k = 0, sum = 0.; k < mm; k++) {
    for (i = 0, tem = 1.; i < mm; i++) {
      if (i != k) {
        tem *= t[i];
      } else {
        a = (ww[i] - rs * z) / r1;
        b = (xx[i] - rs * z) / r1;
        tem2 = phi(b) * (xx[i] - z / rs) - phi(a) * (ww[i] - z / rs);
        tem2 *= .5 / r32;
        tem *= tem2;
      }
    }
    sum += tem;
  }
  tem = sum * phi(z);
  free(t);
  return (tem);
}


x86 assembly (clang, -O0):
<r_grh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    0x2ea4(%rip),%rax
movslq (%rax),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2e81(%rip),%rcx
cmp    (%rcx),%eax
jge    1263 <r_grh+0x123>
mov    0x2e42(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2e1f(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2e28(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    0x2df8(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2dcd(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2dd6(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <pnorms@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <pnorms@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
subsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    116d <r_grh+0x2d>
movl   $0x0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%eax
mov    0x2d7c(%rip),%rcx
cmp    (%rcx),%eax
jge    1473 <r_grh+0x333>
movl   $0x0,-0x1c(%rbp)
movsd  0xd6d(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2d56(%rip),%rcx
cmp    (%rcx),%eax
jge    1456 <r_grh+0x316>
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     12d2 <r_grh+0x192>
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1443 <r_grh+0x303>
mov    0x2cef(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2ccc(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2cd5(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    0x2ca5(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2c7a(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2c83(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1050 <phi@plt>
movsd  %xmm0,-0x50(%rbp)
mov    0x2c44(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x8(%rbp),%xmm1
mov    0x2c14(%rip),%rax
divsd  (%rax),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <phi@plt>
movsd  -0x58(%rbp),%xmm2
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mov    0x2bf9(%rip),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
movsd  -0x8(%rbp),%xmm4
mov    0x2bd1(%rip),%rax
divsd  (%rax),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xbe9(%rip),%xmm0
mov    0x2b9a(%rip),%rax
divsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1448 <r_grh+0x308>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1298 <r_grh+0x158>
movsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1272 <r_grh+0x132>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1050 <phi@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x28(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<r_grh>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm0,0x8(%rsp)
mov    0x2e9d(%rip),%r13
mov    0x0(%r13),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%rbp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
cmpl   $0x0,0x0(%r13)
jle    13ac <r_grh+0x26c>
mov    %rbp,%r14
xor    %ebp,%ebp
mov    0x2e3d(%rip),%rsi
mov    0x2e26(%rip),%rbx
movapd 0xe66(%rip),%xmm1
mov    0x2e4f(%rip),%rdx
mov    0x2e28(%rip),%rdi
nopl   0x0(%rax,%rax,1)
mov    (%rsi),%rax
movsd  (%rbx),%xmm0
xorpd  %xmm1,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  (%rax,%rbp,8),%xmm2
addsd  %xmm0,%xmm2
movsd  (%rdx),%xmm1
divsd  %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
mov    (%rdi),%rax
addsd  (%rax,%rbp,8),%xmm0
divsd  %xmm1,%xmm0
mov    %rdi,%r15
mov    %rbx,%r12
call   1040 <pnorms@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <pnorms@plt>
mov    %r15,%rdi
mov    0x2dbe(%rip),%rsi
mov    0x2ddf(%rip),%rdx
movapd 0xde7(%rip),%xmm1
movsd  0x18(%rsp),%xmm2
subsd  %xmm0,%xmm2
movsd  %xmm2,(%r14,%rbp,8)
add    $0x1,%rbp
movslq 0x0(%r13),%rax
cmp    %rax,%rbp
jl     11b0 <r_grh+0x70>
test   %eax,%eax
movsd  0x8(%rsp),%xmm3
mov    %r14,%rbp
jle    13b2 <r_grh+0x272>
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %r14d,%r14d
jmp    1288 <r_grh+0x148>
nopw   0x0(%rax,%rax,1)
movsd  0xda8(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
addsd  %xmm2,%xmm0
movsd  %xmm0,0x10(%rsp)
add    $0x1,%r14
movslq %eax,%rcx
cmp    %rcx,%r14
jge    13b2 <r_grh+0x272>
test   %eax,%eax
jle    1260 <r_grh+0x120>
xor    %r13d,%r13d
movsd  0xd79(%rip),%xmm2
jmp    139a <r_grh+0x25a>
nopl   0x0(%rax)
mov    (%rsi),%rax
movsd  (%rbx),%xmm0
xorpd  %xmm1,%xmm0
mulsd  %xmm3,%xmm0
movsd  (%rax,%r14,8),%xmm3
addsd  %xmm0,%xmm3
movsd  (%rdx),%xmm1
divsd  %xmm1,%xmm3
movsd  %xmm3,0x30(%rsp)
mov    (%rdi),%rax
addsd  (%rax,%r14,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm2,0x20(%rsp)
call   1050 <phi@plt>
movsd  %xmm0,0x18(%rsp)
mov    (%r15),%rax
movsd  (%rax,%r14,8),%xmm1
movsd  0x8(%rsp),%xmm0
divsd  (%r12),%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0x30(%rsp),%xmm0
call   1050 <phi@plt>
mov    %r12,%rbx
mov    %r15,%rdi
mov    0x2cac(%rip),%rsi
mov    0x2ccd(%rip),%rdx
movsd  0x8(%rsp),%xmm3
mov    (%rsi),%rax
movsd  (%rax,%r14,8),%xmm1
movapd %xmm3,%xmm2
divsd  (%r12),%xmm2
subsd  %xmm2,%xmm1
movsd  0x20(%rsp),%xmm2
mulsd  %xmm0,%xmm1
movsd  0x28(%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,%xmm4
movapd 0xc9a(%rip),%xmm1
movsd  0xcaa(%rip),%xmm0
mov    0x2c4b(%rip),%rax
divsd  (%rax),%xmm0
mulsd  %xmm4,%xmm0
mov    0x2c74(%rip),%rax
mov    (%rax),%eax
mulsd  %xmm0,%xmm2
add    $0x1,%r13
movslq %eax,%rcx
cmp    %rcx,%r13
jge    1268 <r_grh+0x128>
cmp    %r13,%r14
je     12a0 <r_grh+0x160>
movsd  0x0(%rbp,%r13,8),%xmm0
jmp    1386 <r_grh+0x246>
movsd  0x8(%rsp),%xmm3
movapd %xmm3,%xmm0
call   1050 <phi@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %rbp,%rdi
call   1030 <free@plt>
movsd  0x8(%rsp),%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@mm = external global i32
@ww = external global double*
@rs = external global double
@r1 = external global double
@xx = external global double*
@r32 = external global double
@a = global double 0.000000e+00
@b = global double 0.000000e+00
define double @r_grh(double %0) {
%2 = load i32, i32* @mm
%3 = shl i32 %2, 3
%4 = tail call i64 @malloc(i32 %3)
%5 = inttoptr i64 %4 to double*
%6 = load i32, i32* @mm
%7 = icmp sgt i32 %6, 0
br i1 %7, label %10, label %97
8: ; preds = %10
%9 = icmp sgt i32 %30, 0
br i1 %9, label %33, label %97
10: ; preds = %1, %10
%11 = phi i64 [ %29, %10 ], [ 0, %1 ]
%12 = load double*, double** @ww
%13 = getelementptr inbounds double, double* %12, i64 %11
%14 = load double, double* %13
%15 = load double, double* @rs
%16 = fneg double %15
%17 = tail call double @llvm.fmuladd.f64(double %16, double %0, double %14)
%18 = load double, double* @r1
%19 = fdiv double %17, %18
%20 = load double*, double** @xx
%21 = getelementptr inbounds double, double* %20, i64 %11
%22 = load double, double* %21
%23 = tail call double @llvm.fmuladd.f64(double %16, double %0, double %22)
%24 = fdiv double %23, %18
%25 = tail call double @pnorms(double %24)
%26 = tail call double @pnorms(double %19)
%27 = fsub double %25, %26
%28 = getelementptr inbounds double, double* %5, i64 %11
store double %27, double* %28
%29 = add nuw nsw i64 %11, 1
%30 = load i32, i32* @mm
%31 = sext i32 %30 to i64
%32 = icmp slt i64 %29, %31
br i1 %32, label %10, label %8
33: ; preds = %8, %90
%34 = phi i32 [ %91, %90 ], [ %30, %8 ]
%35 = phi i64 [ %94, %90 ], [ 0, %8 ]
%36 = phi double [ %93, %90 ], [ 0.000000e+00, %8 ]
%37 = icmp sgt i32 %34, 0
br i1 %37, label %38, label %90
38: ; preds = %33, %82
%39 = phi i32 [ %83, %82 ], [ %34, %33 ]
%40 = phi i32 [ %84, %82 ], [ %34, %33 ]
%41 = phi i64 [ %87, %82 ], [ 0, %33 ]
%42 = phi double [ %86, %82 ], [ 1.000000e+00, %33 ]
%43 = icmp eq i64 %41, %35
br i1 %43, label %47, label %44
44: ; preds = %38
%45 = getelementptr inbounds double, double* %5, i64 %41
%46 = load double, double* %45
br label %82
47: ; preds = %38
%48 = load double*, double** @ww
%49 = getelementptr inbounds double, double* %48, i64 %35
%50 = load double, double* %49
%51 = load double, double* @rs
%52 = fneg double %51
%53 = tail call double @llvm.fmuladd.f64(double %52, double %0, double %50)
%54 = load double, double* @r1
%55 = fdiv double %53, %54
%56 = load double*, double** @xx
%57 = getelementptr inbounds double, double* %56, i64 %35
%58 = load double, double* %57
%59 = tail call double @llvm.fmuladd.f64(double %52, double %0, double %58)
%60 = fdiv double %59, %54
%61 = tail call double @phi(double %60)
%62 = load double*, double** @xx
%63 = getelementptr inbounds double, double* %62, i64 %35
%64 = load double, double* %63
%65 = load double, double* @rs
%66 = fdiv double %0, %65
%67 = fsub double %64, %66
%68 = tail call double @phi(double %55)
%69 = load double*, double** @ww
%70 = getelementptr inbounds double, double* %69, i64 %35
%71 = load double, double* %70
%72 = load double, double* @rs
%73 = fdiv double %0, %72
%74 = fsub double %71, %73
%75 = fneg double %68
%76 = fmul double %74, %75
%77 = tail call double @llvm.fmuladd.f64(double %61, double %67, double %76)
%78 = load double, double* @r32
%79 = fdiv double 5.000000e-01, %78
%80 = fmul double %79, %77
%81 = load i32, i32* @mm
br label %82
82: ; preds = %44, %47
%83 = phi i32 [ %39, %44 ], [ %81, %47 ]
%84 = phi i32 [ %40, %44 ], [ %81, %47 ]
%85 = phi double [ %46, %44 ], [ %80, %47 ]
%86 = fmul double %42, %85
%87 = add nuw nsw i64 %41, 1
%88 = sext i32 %84 to i64
%89 = icmp slt i64 %87, %88
br i1 %89, label %38, label %90
90: ; preds = %82, %33
%91 = phi i32 [ %34, %33 ], [ %83, %82 ]
%92 = phi double [ 1.000000e+00, %33 ], [ %86, %82 ]
%93 = fadd double %36, %92
%94 = add nuw nsw i64 %35, 1
%95 = sext i32 %91 to i64
%96 = icmp slt i64 %94, %95
br i1 %96, label %33, label %97
97: ; preds = %90, %1, %8
%98 = phi double [ 0.000000e+00, %8 ], [ 0.000000e+00, %1 ], [ %93, %90 ]
%99 = tail call double @phi(double %0)
%100 = fmul double %98, %99
%101 = tail call i32 @free(double* %5)
ret double %100
}