#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 exp(double);
double sin(double);
int sqrt(int);
void cgau8(double *x, int sigInLength, double *psir, double *psii,
           int sigOutLength, double ys) {
  int count;
  double x2, cosx, sinx, x3, x4, x5, x6, x7, x8;
  for (count = 0; count < sigInLength; count++) {
    x2 = x[count] * x[count];
    x3 = x[count] * x2;
    x4 = x2 * x2;
    x5 = x2 * x3;
    x6 = x3 * x3;
    x7 = x4 * x3;
    x8 = x4 * x4;
    cosx = cos(x[count]);
    sinx = sin(x[count]);
    psir[count] = (256 * x8 * cosx + 1024 * x7 * sinx - 5376 * x6 * cosx -
                   12544 * x5 * sinx + 28000 * x4 * cosx + 36288 * x3 * sinx -
                   37072 * x2 * cosx - 20848 * x[count] * sinx + 5937 * cosx) *
                  exp(-x2) /
                  sqrt(46206736 * sqrt(3.1415926535897931159980 / 2));
    psii[count] = (-256 * x8 * sinx + 1024 * x7 * cosx + 5376 * x6 * sinx -
                   12544 * x5 * cosx - 28000 * x4 * sinx + 36288 * x3 * cosx +
                   37072 * x2 * sinx - 20848 * x[count] * cosx - 5937 * sinx) *
                  exp(-x2) /
                  sqrt(46206736 * sqrt(3.1415926535897931159980 / 2));
  }
  return;
}


x86 assembly (clang, -O0):
<cgau8>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1584 <cgau8+0x444>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  0xe23(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movsd  0xdf9(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdd7(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd9e(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd65(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd43(%rip),%xmm1
mulsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd21(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0xce0(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  -0x50(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  0xcea(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <exp@plt>
movsd  -0xa0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    $0x1,%edi
call   1060 <sqrt@plt>
imul   $0x2c10f10,%eax,%edi
call   1060 <sqrt@plt>
movsd  -0x98(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xc5f(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  0xc45(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc23(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc01(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xbc8(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb8f(%rip),%xmm1
mulsd  -0x58(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xb6d(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0xb43(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  -0x48(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  0xb05(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1040 <exp@plt>
movsd  -0x90(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    $0x1,%edi
call   1060 <sqrt@plt>
imul   $0x2c10f10,%eax,%edi
call   1060 <sqrt@plt>
movsd  -0x88(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    116a <cgau8+0x2a>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cgau8>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x90,%rsp
test   %esi,%esi
jle    1440 <cgau8+0x300>
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%r13
mov    %esi,%r12d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
movsd  0x0(%r13,%rbx,8),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
movapd %xmm1,%xmm3
mulsd  %xmm1,%xmm3
movapd %xmm3,0x50(%rsp)
mulsd  %xmm2,%xmm1
movapd %xmm1,0x60(%rsp)
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
movsd  %xmm1,0x18(%rsp)
movapd %xmm3,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm1,0x20(%rsp)
movapd %xmm3,%xmm1
mulsd  %xmm3,%xmm1
movapd %xmm1,0x70(%rsp)
call   1050 <cos@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x0(%r13,%rbx,8),%xmm0
call   1030 <sin@plt>
movapd 0x70(%rsp),%xmm4
mulsd  0xe06(%rip),%xmm4
movapd 0x20(%rsp),%xmm2
mulsd  0xe00(%rip),%xmm2
movapd %xmm2,0x20(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm2,%xmm1
movsd  0x38(%rsp),%xmm2
mulsd  %xmm2,%xmm4
addsd  %xmm1,%xmm4
movsd  0x18(%rsp),%xmm1
mulsd  0xdde(%rip),%xmm1
movsd  %xmm1,0x18(%rsp)
mulsd  %xmm2,%xmm1
subsd  %xmm1,%xmm4
movapd 0x60(%rsp),%xmm1
mulsd  0xdca(%rip),%xmm1
movapd %xmm1,0x60(%rsp)
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm1
addsd  %xmm4,%xmm1
movapd 0x50(%rsp),%xmm0
mulsd  0xdb2(%rip),%xmm0
movapd %xmm0,0x50(%rsp)
movapd %xmm2,%xmm4
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xd9a(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  %xmm3,%xmm1
movapd %xmm3,%xmm5
movsd  %xmm3,0x8(%rsp)
addsd  %xmm0,%xmm1
movapd 0x40(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  0xd78(%rip),%xmm0
movapd %xmm0,0x80(%rsp)
mulsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  0x0(%r13,%rbx,8),%xmm0
movsd  0xd60(%rip),%xmm2
mulsd  %xmm2,%xmm0
mulsd  %xmm5,%xmm0
addsd  %xmm1,%xmm0
mulsd  0xd54(%rip),%xmm4
addsd  %xmm0,%xmm4
movsd  %xmm4,(%rsp)
movapd %xmm3,%xmm0
xorpd  0xd5f(%rip),%xmm0
movapd %xmm0,0x40(%rsp)
call   1040 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x1,%edi
call   1060 <sqrt@plt>
imul   $0x2c10f10,%eax,%edi
call   1060 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rbx,8)
movapd 0x70(%rsp),%xmm0
mulsd  0xcf2(%rip),%xmm0
movsd  0x38(%rsp),%xmm2
movapd 0x20(%rsp),%xmm3
mulsd  %xmm2,%xmm3
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
movsd  0x18(%rsp),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
movapd 0x60(%rsp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
movapd 0x50(%rsp),%xmm3
mulsd  %xmm1,%xmm3
subsd  %xmm3,%xmm0
movsd  0x10(%rsp),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movapd 0x80(%rsp),%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
movapd %xmm0,%xmm3
movsd  0x0(%r13,%rbx,8),%xmm0
mulsd  0xc68(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
mulsd  0xc70(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movaps 0x40(%rsp),%xmm0
call   1040 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    $0x1,%edi
call   1060 <sqrt@plt>
imul   $0x2c10f10,%eax,%edi
call   1060 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x20(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r14,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1170 <cgau8+0x30>
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @cgau8(double* %0, i32 %1, double* %2, double* %3, i32 %4, double %5) {
%7 = alloca double*
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store double* %0, double** %7
store i32 %1, i32* %8
store double* %2, double** %9
store double* %3, double** %10
store i32 %4, i32* %11
store double %5, double* %12
store i32 0, i32* %13
br label %23
23: ; preds = %184, %6
%24 = load i32, i32* %13
%25 = load i32, i32* %8
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %187
27: ; preds = %23
%28 = load double*, double** %7
%29 = load i32, i32* %13
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %28, i64 %30
%32 = load double, double* %31
%33 = load double*, double** %7
%34 = load i32, i32* %13
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = load double, double* %36
%38 = fmul double %32, %37
store double %38, double* %14
%39 = load double*, double** %7
%40 = load i32, i32* %13
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = load double, double* %42
%44 = load double, double* %14
%45 = fmul double %43, %44
store double %45, double* %17
%46 = load double, double* %14
%47 = load double, double* %14
%48 = fmul double %46, %47
store double %48, double* %18
%49 = load double, double* %14
%50 = load double, double* %17
%51 = fmul double %49, %50
store double %51, double* %19
%52 = load double, double* %17
%53 = load double, double* %17
%54 = fmul double %52, %53
store double %54, double* %20
%55 = load double, double* %18
%56 = load double, double* %17
%57 = fmul double %55, %56
store double %57, double* %21
%58 = load double, double* %18
%59 = load double, double* %18
%60 = fmul double %58, %59
store double %60, double* %22
%61 = load double*, double** %7
%62 = load i32, i32* %13
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = call double @cos(double %65)
store double %66, double* %15
%67 = load double*, double** %7
%68 = load i32, i32* %13
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
%71 = load double, double* %70
%72 = call double @sin(double %71)
store double %72, double* %16
%73 = load double, double* %22
%74 = fmul double 2.560000e+02, %73
%75 = load double, double* %15
%76 = load double, double* %21
%77 = fmul double 1.024000e+03, %76
%78 = load double, double* %16
%79 = fmul double %77, %78
%80 = call double @llvm.fmuladd.f64(double %74, double %75, double %79)
%81 = load double, double* %20
%82 = fmul double 5.376000e+03, %81
%83 = load double, double* %15
%84 = fneg double %82
%85 = call double @llvm.fmuladd.f64(double %84, double %83, double %80)
%86 = load double, double* %19
%87 = fmul double 1.254400e+04, %86
%88 = load double, double* %16
%89 = fneg double %87
%90 = call double @llvm.fmuladd.f64(double %89, double %88, double %85)
%91 = load double, double* %18
%92 = fmul double 2.800000e+04, %91
%93 = load double, double* %15
%94 = call double @llvm.fmuladd.f64(double %92, double %93, double %90)
%95 = load double, double* %17
%96 = fmul double 3.628800e+04, %95
%97 = load double, double* %16
%98 = call double @llvm.fmuladd.f64(double %96, double %97, double %94)
%99 = load double, double* %14
%100 = fmul double 3.707200e+04, %99
%101 = load double, double* %15
%102 = fneg double %100
%103 = call double @llvm.fmuladd.f64(double %102, double %101, double %98)
%104 = load double*, double** %7
%105 = load i32, i32* %13
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
%109 = fmul double 2.084800e+04, %108
%110 = load double, double* %16
%111 = fneg double %109
%112 = call double @llvm.fmuladd.f64(double %111, double %110, double %103)
%113 = load double, double* %15
%114 = call double @llvm.fmuladd.f64(double 5.937000e+03, double %113, double %112)
%115 = load double, double* %14
%116 = fneg double %115
%117 = call i32 @exp(double %116)
%118 = sitofp i32 %117 to double
%119 = fmul double %114, %118
%120 = call i32 @sqrt(i32 1)
%121 = mul nsw i32 46206736, %120
%122 = call i32 @sqrt(i32 %121)
%123 = sitofp i32 %122 to double
%124 = fdiv double %119, %123
%125 = load double*, double** %9
%126 = load i32, i32* %13
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %125, i64 %127
store double %124, double* %128
%129 = load double, double* %22
%130 = fmul double -2.560000e+02, %129
%131 = load double, double* %16
%132 = load double, double* %21
%133 = fmul double 1.024000e+03, %132
%134 = load double, double* %15
%135 = fmul double %133, %134
%136 = call double @llvm.fmuladd.f64(double %130, double %131, double %135)
%137 = load double, double* %20
%138 = fmul double 5.376000e+03, %137
%139 = load double, double* %16
%140 = call double @llvm.fmuladd.f64(double %138, double %139, double %136)
%141 = load double, double* %19
%142 = fmul double 1.254400e+04, %141
%143 = load double, double* %15
%144 = fneg double %142
%145 = call double @llvm.fmuladd.f64(double %144, double %143, double %140)
%146 = load double, double* %18
%147 = fmul double 2.800000e+04, %146
%148 = load double, double* %16
%149 = fneg double %147
%150 = call double @llvm.fmuladd.f64(double %149, double %148, double %145)
%151 = load double, double* %17
%152 = fmul double 3.628800e+04, %151
%153 = load double, double* %15
%154 = call double @llvm.fmuladd.f64(double %152, double %153, double %150)
%155 = load double, double* %14
%156 = fmul double 3.707200e+04, %155
%157 = load double, double* %16
%158 = call double @llvm.fmuladd.f64(double %156, double %157, double %154)
%159 = load double*, double** %7
%160 = load i32, i32* %13
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, double* %159, i64 %161
%163 = load double, double* %162
%164 = fmul double 2.084800e+04, %163
%165 = load double, double* %15
%166 = fneg double %164
%167 = call double @llvm.fmuladd.f64(double %166, double %165, double %158)
%168 = load double, double* %16
%169 = call double @llvm.fmuladd.f64(double -5.937000e+03, double %168, double %167)
%170 = load double, double* %14
%171 = fneg double %170
%172 = call i32 @exp(double %171)
%173 = sitofp i32 %172 to double
%174 = fmul double %169, %173
%175 = call i32 @sqrt(i32 1)
%176 = mul nsw i32 46206736, %175
%177 = call i32 @sqrt(i32 %176)
%178 = sitofp i32 %177 to double
%179 = fdiv double %174, %178
%180 = load double*, double** %10
%181 = load i32, i32* %13
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %180, i64 %182
store double %179, double* %183
br label %184
184: ; preds = %27
%185 = load i32, i32* %13
%186 = add nsw i32 %185, 1
store i32 %186, i32* %13
br label %23
187: ; preds = %23
ret void
}

LLVM IR (-O2):
define void @cgau8(double* nocapture %0, i32 %1, double* nocapture writeonly %2, double* nocapture writeonly %3, i32 %4, double %5) {
%7 = icmp sgt i32 %1, 0
br i1 %7, label %8, label %78
8: ; preds = %6
%9 = zext i32 %1 to i64
br label %10
10: ; preds = %8, %10
%11 = phi i64 [ 0, %8 ], [ %76, %10 ]
%12 = getelementptr inbounds double, double* %0, i64 %11
%13 = load double, double* %12
%14 = fmul double %13, %13
%15 = fmul double %13, %14
%16 = fmul double %14, %14
%17 = fmul double %14, %15
%18 = fmul double %15, %15
%19 = fmul double %16, %15
%20 = fmul double %16, %16
%21 = tail call double @cos(double %13)
%22 = load double, double* %12
%23 = tail call double @sin(double %22)
%24 = fmul double %20, 2.560000e+02
%25 = fmul double %19, 1.024000e+03
%26 = fmul double %23, %25
%27 = tail call double @llvm.fmuladd.f64(double %24, double %21, double %26)
%28 = fmul double %18, 5.376000e+03
%29 = fneg double %28
%30 = tail call double @llvm.fmuladd.f64(double %29, double %21, double %27)
%31 = fmul double %17, -1.254400e+04
%32 = tail call double @llvm.fmuladd.f64(double %31, double %23, double %30)
%33 = fmul double %16, 2.800000e+04
%34 = tail call double @llvm.fmuladd.f64(double %33, double %21, double %32)
%35 = fmul double %15, 3.628800e+04
%36 = tail call double @llvm.fmuladd.f64(double %35, double %23, double %34)
%37 = fmul double %14, 3.707200e+04
%38 = fneg double %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double %21, double %36)
%40 = load double, double* %12
%41 = fmul double %40, -2.084800e+04
%42 = tail call double @llvm.fmuladd.f64(double %41, double %23, double %39)
%43 = tail call double @llvm.fmuladd.f64(double %21, double 5.937000e+03, double %42)
%44 = fneg double %14
%45 = tail call i32 @exp(double %44)
%46 = sitofp i32 %45 to double
%47 = fmul double %43, %46
%48 = tail call i32 @sqrt(i32 1)
%49 = mul nsw i32 %48, 46206736
%50 = tail call i32 @sqrt(i32 %49)
%51 = sitofp i32 %50 to double
%52 = fdiv double %47, %51
%53 = getelementptr inbounds double, double* %2, i64 %11
store double %52, double* %53
%54 = fmul double %20, -2.560000e+02
%55 = fmul double %21, %25
%56 = tail call double @llvm.fmuladd.f64(double %54, double %23, double %55)
%57 = tail call double @llvm.fmuladd.f64(double %28, double %23, double %56)
%58 = tail call double @llvm.fmuladd.f64(double %31, double %21, double %57)
%59 = fneg double %33
%60 = tail call double @llvm.fmuladd.f64(double %59, double %23, double %58)
%61 = tail call double @llvm.fmuladd.f64(double %35, double %21, double %60)
%62 = tail call double @llvm.fmuladd.f64(double %37, double %23, double %61)
%63 = load double, double* %12
%64 = fmul double %63, -2.084800e+04
%65 = tail call double @llvm.fmuladd.f64(double %64, double %21, double %62)
%66 = tail call double @llvm.fmuladd.f64(double %23, double -5.937000e+03, double %65)
%67 = tail call i32 @exp(double %44)
%68 = sitofp i32 %67 to double
%69 = fmul double %66, %68
%70 = tail call i32 @sqrt(i32 1)
%71 = mul nsw i32 %70, 46206736
%72 = tail call i32 @sqrt(i32 %71)
%73 = sitofp i32 %72 to double
%74 = fdiv double %69, %73
%75 = getelementptr inbounds double, double* %3, i64 %11
store double %74, double* %75
%76 = add nuw nsw i64 %11, 1
%77 = icmp eq i64 %76, %9
br i1 %77, label %78, label %10
78: ; preds = %10, %6
ret void
}