#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 exp(double);
double sqrt(double);
void calc_normed_spreading(int cbmax, const double bval[], float s3_ptr[],
                           int lo_s3[], int hi_s3[], const double norm[]) {
  double arg, x, y;
  double s3[63];
  int i, j;
  int non_zero_part;
  for (i = 0; i < cbmax; i++) {
    non_zero_part = 0;
    hi_s3[i] = cbmax;
    for (j = 0; j < cbmax; j++) {
      if (j >= i)
        arg = (bval[i] - bval[j]) * 3.0;
      else
        arg = (bval[i] - bval[j]) * 1.5;
      if (arg > 0.5 && arg < 2.5)
        x = 8.0 * (arg - 0.5) * (arg - 2.5);
      else
        x = 0.0;
      arg += 0.474;
      y = 15.811389 + 7.5 * arg - 17.5 * sqrt(1.0 + arg * arg);
      if (y <= -60.0) {
        if (non_zero_part) {
          hi_s3[i] = j;
          break;
        }
      } else {
        s3[j] = exp((x + y) * 0.2302585093);
        if (!non_zero_part) {
          lo_s3[i] = j;
          non_zero_part = 1;
        }
      }
    }
    for (j = lo_s3[i]; j < hi_s3[i]; j++)
      *s3_ptr++ = s3[j] * norm[i];
  }
}


x86 assembly (clang, -O0):
<calc_normed_spreading>:
push   %rbp
mov    %rsp,%rbp
sub    $0x260,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x244(%rbp)
mov    -0x244(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    142d <calc_normed_spreading+0x30d>
movl   $0x0,-0x24c(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x244(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x0,-0x248(%rbp)
mov    -0x248(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    139b <calc_normed_spreading+0x27b>
mov    -0x248(%rbp),%eax
cmp    -0x244(%rbp),%eax
jl     11d7 <calc_normed_spreading+0xb7>
mov    -0x10(%rbp),%rax
movslq -0x244(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x248(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xe3f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1208 <calc_normed_spreading+0xe8>
mov    -0x10(%rbp),%rax
movslq -0x244(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x248(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xe01(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xdfb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    126e <calc_normed_spreading+0x14e>
movsd  0xdf1(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    126e <calc_normed_spreading+0x14e>
movsd  -0x38(%rbp),%xmm1
movsd  0xdd1(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xdd5(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xdbc(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1276 <calc_normed_spreading+0x156>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xdd2(%rip),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xdab(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xda7(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x258(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd75(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  -0x258(%rbp),%xmm1
ff
movsd  0xd54(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd37(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     1327 <calc_normed_spreading+0x207>
cmpl   $0x0,-0x24c(%rbp)
je     1322 <calc_normed_spreading+0x202>
mov    -0x248(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x244(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    139b <calc_normed_spreading+0x27b>
jmp    1382 <calc_normed_spreading+0x262>
movsd  -0x40(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  0xd1f(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movslq -0x248(%rbp),%rax
movsd  %xmm0,-0x240(%rbp,%rax,8)
ff ff
cmpl   $0x0,-0x24c(%rbp)
jne    137d <calc_normed_spreading+0x25d>
mov    -0x248(%rbp),%edx
mov    -0x20(%rbp),%rax
movslq -0x244(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movl   $0x1,-0x24c(%rbp)
jmp    1382 <calc_normed_spreading+0x262>
jmp    1387 <calc_normed_spreading+0x267>
mov    -0x248(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x248(%rbp)
jmp    1180 <calc_normed_spreading+0x60>
mov    -0x20(%rbp),%rax
movslq -0x244(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x248(%rbp)
mov    -0x248(%rbp),%eax
mov    -0x28(%rbp),%rcx
movslq -0x244(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1414 <calc_normed_spreading+0x2f4>
movslq -0x248(%rbp),%rax
movsd  -0x240(%rbp,%rax,8),%xmm0
ff ff
mov    -0x30(%rbp),%rax
movslq -0x244(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movss  %xmm0,(%rax)
mov    -0x248(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x248(%rbp)
jmp    13af <calc_normed_spreading+0x28f>
jmp    1419 <calc_normed_spreading+0x2f9>
mov    -0x244(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x244(%rbp)
jmp    114c <calc_normed_spreading+0x2c>
add    $0x260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_normed_spreading>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
mov    %r9,0x20(%rsp)
mov    %rcx,0x18(%rsp)
mov    %edi,0xc(%rsp)
test   %edi,%edi
jle    141e <calc_normed_spreading+0x2fe>
mov    %rdx,%rbx
mov    %rsi,%r13
mov    0xc(%rsp),%r14d
xor    %ebp,%ebp
mov    %r8,0x10(%rsp)
jmp    116d <calc_normed_spreading+0x4d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %r14,%rbp
je     141e <calc_normed_spreading+0x2fe>
mov    0xc(%rsp),%eax
mov    %eax,(%r8,%rbp,4)
xor    %r12d,%r12d
xor    %r15d,%r15d
jmp    119b <calc_normed_spreading+0x7b>
nopl   (%rax)
xor    %eax,%eax
test   %r15d,%r15d
jne    12d0 <calc_normed_spreading+0x1b0>
add    $0x1,%r12
mov    %eax,%r15d
cmp    %r12,%r14
je     12c0 <calc_normed_spreading+0x1a0>
xor    %eax,%eax
cmp    %rbp,%r12
setb   %al
movsd  0x0(%r13,%rbp,8),%xmm3
subsd  0x0(%r13,%r12,8),%xmm3
lea    0xe48(%rip),%rcx
mulsd  (%rcx,%rax,8),%xmm3
movapd %xmm3,%xmm0
addsd  0xe47(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xe43(%rip),%xmm1
addsd  0xe43(%rip),%xmm1
mulsd  %xmm0,%xmm0
addsd  0xe3f(%rip),%xmm0
ucomisd 0xe7f(%rip),%xmm0
jb     1200 <calc_normed_spreading+0xe0>
sqrtsd %xmm0,%xmm0
jmp    121d <calc_normed_spreading+0xfd>
nopl   0x0(%rax)
movapd %xmm3,0x30(%rsp)
movsd  %xmm1,0x28(%rsp)
call   1040 <sqrt@plt>
movsd  0x28(%rsp),%xmm1
movapd 0x30(%rsp),%xmm3
mulsd  0xe0b(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe07(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    1180 <calc_normed_spreading+0x60>
movapd %xmm3,%xmm1
addsd  0xdf9(%rip),%xmm1
mulsd  0xdf9(%rip),%xmm1
movapd %xmm3,%xmm2
addsd  0xdf5(%rip),%xmm2
mulsd  %xmm1,%xmm2
movsd  0xdf1(%rip),%xmm1
cmpltsd %xmm3,%xmm1
cmpltsd 0xdeb(%rip),%xmm3
andpd  %xmm2,%xmm3
andpd  %xmm1,%xmm3
addsd  %xmm3,%xmm0
mulsd  0xddf(%rip),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,0x40(%rsp,%r12,8)
mov    $0x1,%eax
test   %r15d,%r15d
jne    118b <calc_normed_spreading+0x6b>
mov    0x18(%rsp),%rcx
mov    %r12d,(%rcx,%rbp,4)
jmp    118b <calc_normed_spreading+0x6b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%r8
mov    (%r8,%rbp,4),%r12d
jmp    12d9 <calc_normed_spreading+0x1b9>
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%r8
mov    %r12d,(%r8,%rbp,4)
mov    0x18(%rsp),%rax
movslq (%rax,%rbp,4),%rax
cmp    %r12d,%eax
jge    1160 <calc_normed_spreading+0x40>
mov    0x20(%rsp),%rcx
movsd  (%rcx,%rbp,8),%xmm0
movslq %r12d,%rcx
mov    %rcx,%r10
sub    %rax,%r10
cmp    $0x4,%r10
jb     13f0 <calc_normed_spreading+0x2d0>
mov    %r10,%r11
and    $0xfffffffffffffffc,%r11
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%r11),%rdx
mov    %rdx,%r9
shr    $0x2,%r9
add    $0x1,%r9
test   %rdx,%rdx
je     1414 <calc_normed_spreading+0x2f4>
mov    %r9,%rsi
and    $0xfffffffffffffffe,%rsi
lea    0x70(%rsp),%rdx
lea    (%rdx,%rax,8),%rdx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd -0x30(%rdx,%rdi,8),%xmm2
movupd -0x20(%rdx,%rdi,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
unpcklpd %xmm3,%xmm2
movupd %xmm2,(%rbx,%rdi,4)
movupd -0x10(%rdx,%rdi,8),%xmm2
movupd (%rdx,%rdi,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
unpcklpd %xmm3,%xmm2
movupd %xmm2,0x10(%rbx,%rdi,4)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rsi
jne    1350 <calc_normed_spreading+0x230>
test   $0x1,%r9b
je     13d3 <calc_normed_spreading+0x2b3>
lea    (%rdi,%rax,1),%rdx
movupd 0x40(%rsp,%rdx,8),%xmm2
movupd 0x50(%rsp,%rdx,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
cvtpd2ps %xmm2,%xmm1
cvtpd2ps %xmm3,%xmm2
unpcklpd %xmm2,%xmm1
movupd %xmm1,(%rbx,%rdi,4)
lea    (%rbx,%r11,4),%rbx
cmp    %r11,%r10
je     1160 <calc_normed_spreading+0x40>
add    %r11,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x40(%rsp,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm1,(%rbx)
add    $0x4,%rbx
add    $0x1,%rax
cmp    %rax,%rcx
jne    13f0 <calc_normed_spreading+0x2d0>
jmp    1160 <calc_normed_spreading+0x40>
xor    %edi,%edi
test   $0x1,%r9b
jne    13aa <calc_normed_spreading+0x28a>
jmp    13d3 <calc_normed_spreading+0x2b3>
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @calc_normed_spreading(i32 %0, double* nocapture %1, float* nocapture writeonly %2, i32* nocapture %3, i32* nocapture %4, double* nocapture %5) {
%7 = alloca [63 x double]
%8 = bitcast [63 x double]* %7 to i8*
%9 = icmp sgt i32 %0, 0
br i1 %9, label %10, label %162
10: ; preds = %6
%11 = zext i32 %0 to i64
br label %12
12: ; preds = %158, %10
%13 = phi i64 [ 0, %10 ], [ %160, %158 ]
%14 = phi float* [ %2, %10 ], [ %159, %158 ]
%15 = getelementptr inbounds i32, i32* %4, i64 %13
store i32 %0, i32* %15
%16 = getelementptr inbounds double, double* %1, i64 %13
%17 = getelementptr inbounds i32, i32* %3, i64 %13
br label %18
18: ; preds = %12, %54
%19 = phi i64 [ 0, %12 ], [ %56, %54 ]
%20 = phi i32 [ 0, %12 ], [ %55, %54 ]
%21 = icmp ult i64 %19, %13
%22 = load double, double* %16
%23 = getelementptr inbounds double, double* %1, i64 %19
%24 = load double, double* %23
%25 = fsub double %22, %24
%26 = select i1 %21, double 1.500000e+00, double 3.000000e+00
%27 = fmul double %25, %26
%28 = fadd double %27, 4.740000e-01
%29 = tail call double @llvm.fmuladd.f64(double %28, double 7.500000e+00, double 0x402F9F6E6106AB15)
%30 = tail call double @llvm.fmuladd.f64(double %28, double %28, double 1.000000e+00)
%31 = tail call double @sqrt(double %30)
%32 = tail call double @llvm.fmuladd.f64(double %31, double -1.750000e+01, double %29)
%33 = fcmp ugt double %32, -6.000000e+01
br i1 %33, label %38, label %34
34: ; preds = %18
%35 = icmp eq i32 %20, 0
br i1 %35, label %54, label %36
36: ; preds = %34
%37 = trunc i64 %19 to i32
store i32 %37, i32* %15
br label %60
38: ; preds = %18
%39 = fcmp ogt double %27, 5.000000e-01
%40 = fcmp olt double %27, 2.500000e+00
%41 = and i1 %39, %40
%42 = fadd double %27, -5.000000e-01
%43 = fmul double %42, 8.000000e+00
%44 = fadd double %27, -2.500000e+00
%45 = fmul double %44, %43
%46 = select i1 %41, double %45, double 0.000000e+00
%47 = fadd double %32, %46
%48 = fmul double %47, 0x3FCD791C5F88DBEF
%49 = tail call double @exp(double %48)
%50 = getelementptr inbounds [63 x double], [63 x double]* %7, i64 0, i64 %19
store double %49, double* %50
%51 = icmp eq i32 %20, 0
br i1 %51, label %52, label %54
52: ; preds = %38
%53 = trunc i64 %19 to i32
store i32 %53, i32* %17
br label %54
54: ; preds = %34, %52, %38
%55 = phi i32 [ 0, %34 ], [ 1, %38 ], [ 1, %52 ]
%56 = add nuw nsw i64 %19, 1
%57 = icmp eq i64 %56, %11
br i1 %57, label %58, label %18
58: ; preds = %54
%59 = load i32, i32* %15
br label %60
60: ; preds = %58, %36
%61 = phi i32 [ %59, %58 ], [ %37, %36 ]
%62 = getelementptr inbounds i32, i32* %3, i64 %13
%63 = load i32, i32* %62
%64 = icmp slt i32 %63, %61
br i1 %64, label %65, label %158
65: ; preds = %60
%66 = getelementptr inbounds double, double* %5, i64 %13
%67 = load double, double* %66
%68 = sext i32 %63 to i64
%69 = sext i32 %61 to i64
%70 = sub nsw i64 %69, %68
%71 = icmp ult i64 %70, 4
br i1 %71, label %145, label %72
72: ; preds = %65
%73 = and i64 %70, -4
%74 = add nsw i64 %73, %68
%75 = getelementptr float, float* %14, i64 %73
%76 = insertelement <2 x double> poison, double %67, i64 0
%77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
%78 = insertelement <2 x double> poison, double %67, i64 0
%79 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
%80 = add nsw i64 %73, -4
%81 = lshr exact i64 %80, 2
%82 = add nuw nsw i64 %81, 1
%83 = and i64 %82, 1
%84 = icmp eq i64 %80, 0
br i1 %84, label %124, label %85
85: ; preds = %72
%86 = and i64 %82, 9223372036854775806
br label %87
87: ; preds = %87, %85
%88 = phi i64 [ 0, %85 ], [ %121, %87 ]
%89 = phi i64 [ 0, %85 ], [ %122, %87 ]
%90 = add i64 %88, %68
%91 = getelementptr float, float* %14, i64 %88
%92 = getelementptr inbounds [63 x double], [63 x double]* %7, i64 0, i64 %90
%93 = bitcast double* %92 to <2 x double>*
%94 = load <2 x double>, <2 x double>* %93
%95 = getelementptr inbounds double, double* %92, i64 2
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = fmul <2 x double> %94, %77
%99 = fmul <2 x double> %97, %79
%100 = fptrunc <2 x double> %98 to <2 x float>
%101 = fptrunc <2 x double> %99 to <2 x float>
%102 = bitcast float* %91 to <2 x float>*
store <2 x float> %100, <2 x float>* %102
%103 = getelementptr float, float* %91, i64 2
%104 = bitcast float* %103 to <2 x float>*
store <2 x float> %101, <2 x float>* %104
%105 = or i64 %88, 4
%106 = add i64 %105, %68
%107 = getelementptr float, float* %14, i64 %105
%108 = getelementptr inbounds [63 x double], [63 x double]* %7, i64 0, i64 %106
%109 = bitcast double* %108 to <2 x double>*
%110 = load <2 x double>, <2 x double>* %109
%111 = getelementptr inbounds double, double* %108, i64 2
%112 = bitcast double* %111 to <2 x double>*
%113 = load <2 x double>, <2 x double>* %112
%114 = fmul <2 x double> %110, %77
%115 = fmul <2 x double> %113, %79
%116 = fptrunc <2 x double> %114 to <2 x float>
%117 = fptrunc <2 x double> %115 to <2 x float>
%118 = bitcast float* %107 to <2 x float>*
store <2 x float> %116, <2 x float>* %118
%119 = getelementptr float, float* %107, i64 2
%120 = bitcast float* %119 to <2 x float>*
store <2 x float> %117, <2 x float>* %120
%121 = add nuw i64 %88, 8
%122 = add i64 %89, 2
%123 = icmp eq i64 %122, %86
br i1 %123, label %124, label %87
124: ; preds = %87, %72
%125 = phi i64 [ 0, %72 ], [ %121, %87 ]
%126 = icmp eq i64 %83, 0
br i1 %126, label %143, label %127
127: ; preds = %124
%128 = add i64 %125, %68
%129 = getelementptr float, float* %14, i64 %125
%130 = getelementptr inbounds [63 x double], [63 x double]* %7, i64 0, i64 %128
%131 = bitcast double* %130 to <2 x double>*
%132 = load <2 x double>, <2 x double>* %131
%133 = getelementptr inbounds double, double* %130, i64 2
%134 = bitcast double* %133 to <2 x double>*
%135 = load <2 x double>, <2 x double>* %134
%136 = fmul <2 x double> %132, %77
%137 = fmul <2 x double> %135, %79
%138 = fptrunc <2 x double> %136 to <2 x float>
%139 = fptrunc <2 x double> %137 to <2 x float>
%140 = bitcast float* %129 to <2 x float>*
store <2 x float> %138, <2 x float>* %140
%141 = getelementptr float, float* %129, i64 2
%142 = bitcast float* %141 to <2 x float>*
store <2 x float> %139, <2 x float>* %142
br label %143
143: ; preds = %124, %127
%144 = icmp eq i64 %70, %73
br i1 %144, label %158, label %145
145: ; preds = %65, %143
%146 = phi i64 [ %68, %65 ], [ %74, %143 ]
%147 = phi float* [ %14, %65 ], [ %75, %143 ]
br label %148
148: ; preds = %145, %148
%149 = phi i64 [ %156, %148 ], [ %146, %145 ]
%150 = phi float* [ %155, %148 ], [ %147, %145 ]
%151 = getelementptr inbounds [63 x double], [63 x double]* %7, i64 0, i64 %149
%152 = load double, double* %151
%153 = fmul double %152, %67
%154 = fptrunc double %153 to float
%155 = getelementptr inbounds float, float* %150, i64 1
store float %154, float* %150
%156 = add nsw i64 %149, 1
%157 = icmp eq i64 %156, %69
br i1 %157, label %158, label %148
158: ; preds = %148, %143, %60
%159 = phi float* [ %14, %60 ], [ %75, %143 ], [ %155, %148 ]
%160 = add nuw nsw i64 %13, 1
%161 = icmp eq i64 %160, %11
br i1 %161, label %162, label %12
162: ; preds = %158, %6
ret void
}