#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 */
float pow(float, int);
float sqrt(float);
float target_theta(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = 0.1834182E-01;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18004E+02, -0.18006E+02,
                    0.00000E+00,  0.00000E+00,  0.00000E+00,  0.00000E+00,
                    0.00000E+00,  0.00000E+00};
  float xmax[10] = {0.15000E+02, 0.15000E+02, 0.18003E+02, 0.18001E+02,
                    0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00,
                    0.00000E+00, 0.00000E+00};
  float scale[10] = {0};
  float coeff[21] = {-0.11935770E-05, -0.17095175E-01, -0.54636925E-01,
                     0.26253697E-01,  0.64810492E-01,  -0.40204144E-04,
                     0.62261184E-04,  0.73376141E-04,  0.59741680E-04,
                     -0.94394985E-04, 0.39012308E-03,  0.18443618E-04,
                     0.45297392E-06,  0.27927925E-04,  -0.93489696E-04,
                     -0.14008139E-03, -0.79707224E-05, 0.58449100E-03,
                     -0.82114100E-03, -0.17559512E-05, 0.};
  int ientry = 0;
  int i;
  if (ientry == 0) {
    ientry = 1;
    for (i = 0; i < m; i++) {
      if (xmin[i] == xmax[i])
        continue;
      scale[i] = 2. / (xmax[i] - xmin[i]);
    }
  }
  float x1 = 1. + (x[0] - xmax[0]) * scale[0];
  float dx1 = dx[0] * scale[0];
  float x2 = 1. + (x[1] - xmax[1]) * scale[1];
  float dx2 = dx[1] * scale[1];
  float x3 = 1. + (x[2] - xmax[2]) * scale[2];
  float dx3 = dx[2] * scale[2];
  float x4 = 1. + (x[3] - xmax[3]) * scale[3];
  float dx4 = dx[3] * scale[3];
  float x11 = x1;
  float x12 = x11 * x1;
  float x13 = x12 * x1;
  float x14 = x13 * x1;
  float x21 = x2;
  float x22 = x21 * x2;
  float x31 = x3;
  float x32 = x31 * x3;
  float x33 = x32 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float v_target_theta = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x21 +
                         coeff[3] * x31 + coeff[4] * x41 +
                         coeff[5] * x11 * x21 + coeff[6] * x21 * x31 +
                         coeff[7] * x32;
  v_target_theta = v_target_theta + coeff[8] * x11 * x41 +
                   coeff[9] * x31 * x41 + coeff[10] * x33 +
                   coeff[11] * x31 * x42 + coeff[12] * x14 + coeff[13] * x12 +
                   coeff[14] * x11 * x31 + coeff[15] * x13 +
                   coeff[16] * x11 * x22;
  v_target_theta = v_target_theta + coeff[17] * x12 * x31 +
                   coeff[18] * x11 * x32 + coeff[19] * x21 * x32;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_theta =
      dxall == 0
          ? 0
          : sqrt(+dx1 * dx1 *
                     pow(0 + coeff[1] + coeff[5] * x21 + coeff[8] * x41 +
                             4 * coeff[12] * x13 + 2 * coeff[13] * x11 +
                             coeff[14] * x31 + 3 * coeff[15] * x12 +
                             coeff[16] * x22 + 2 * coeff[17] * x11 * x31 +
                             coeff[18] * x32,
                         2) +
                 dx2 * dx2 *
                     pow(0 + coeff[2] + coeff[5] * x11 + coeff[6] * x31 +
                             2 * coeff[16] * x21 * x11 + coeff[19] * x32,
                         2) +
                 dx3 * dx3 *
                     pow(0 + coeff[3] + coeff[6] * x21 + 2 * coeff[7] * x31 +
                             coeff[9] * x41 + 3 * coeff[10] * x32 +
                             coeff[11] * x42 + coeff[14] * x11 +
                             coeff[17] * x12 + 2 * coeff[18] * x31 * x11 +
                             2 * coeff[19] * x31 * x21,
                         2) +
                 dx4 * dx4 *
                     pow(0 + coeff[4] + coeff[8] * x11 + coeff[9] * x31 +
                             2 * coeff[11] * x41 * x31,
                         2));
  dx[0] = dv_target_theta;
  return v_target_theta;
}


x86 assembly (clang, -O0):
<target_theta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x14,-0x18(%rbp)
movss  0xeb3(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xe92(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xe85(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  0xe74(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  0xe63(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xe42(%rip),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  0xe35(%rip),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  0xe24(%rip),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  0xe13(%rip),%xmm0
movss  %xmm0,-0x74(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
lea    -0x110(%rbp),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x54,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x0,-0x114(%rbp)
jne    12d8 <target_theta+0x198>
movl   $0x1,-0x114(%rbp)
movl   $0x0,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12d3 <target_theta+0x193>
movslq -0x118(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
movslq -0x118(%rbp),%rax
ucomiss -0x80(%rbp,%rax,4),%xmm0
jne    1281 <target_theta+0x141>
jp     1281 <target_theta+0x141>
jmp    12bf <target_theta+0x17f>
movslq -0x118(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
movslq -0x118(%rbp),%rax
subss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd89(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x118(%rbp),%rax
movss  %xmm0,-0xb0(%rbp,%rax,4)
ff ff
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1248 <target_theta+0x108>
jmp    12d8 <target_theta+0x198>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  -0x80(%rbp),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xd2f(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x11c(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
movss  %xmm0,-0x120(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  -0x7c(%rbp),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xce5(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x124(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0x128(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  -0x78(%rbp),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc9a(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x12c(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
movss  %xmm0,-0x130(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
subss  -0x74(%rbp),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc4f(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x134(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
movss  %xmm0,-0x138(%rbp)
ff
movss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x13c(%rbp)
ff
movss  -0x13c(%rbp),%xmm0
ff
mulss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x140(%rbp)
ff
movss  -0x140(%rbp),%xmm0
ff
mulss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x144(%rbp)
ff
movss  -0x144(%rbp),%xmm0
ff
mulss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x148(%rbp)
ff
movss  -0x124(%rbp),%xmm0
ff
movss  %xmm0,-0x14c(%rbp)
ff
movss  -0x14c(%rbp),%xmm0
ff
mulss  -0x124(%rbp),%xmm0
ff
movss  %xmm0,-0x150(%rbp)
ff
movss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x154(%rbp)
ff
movss  -0x154(%rbp),%xmm0
ff
mulss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x158(%rbp)
ff
movss  -0x158(%rbp),%xmm0
ff
mulss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x15c(%rbp)
ff
movss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x160(%rbp)
ff
movss  -0x160(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x164(%rbp)
ff
movss  -0x1c(%rbp),%xmm1
addss  -0x110(%rbp),%xmm1
ff
movss  -0x10c(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x108(%rbp),%xmm1
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x104(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x100(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xfc(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf8(%rbp),%xmm1
ff
mulss  -0x14c(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf4(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x168(%rbp)
ff
movss  -0x168(%rbp),%xmm1
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
mulss  -0x154(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe8(%rbp),%xmm0
ff
movss  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xe4(%rbp),%xmm1
ff
mulss  -0x154(%rbp),%xmm1
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe0(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xdc(%rbp),%xmm1
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd8(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd4(%rbp),%xmm1
ff
movss  -0x144(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x168(%rbp)
ff
movss  -0x168(%rbp),%xmm1
ff
movss  -0xcc(%rbp),%xmm0
ff
mulss  -0x140(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc8(%rbp),%xmm1
ff
mulss  -0x13c(%rbp),%xmm1
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
mulss  -0x14c(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x168(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x120(%rbp),%xmm0
ff
addss  -0x128(%rbp),%xmm0
ff
addss  -0x130(%rbp),%xmm0
ff
addss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x16c(%rbp)
ff
movss  -0x16c(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    178c <target_theta+0x64c>
jp     178c <target_theta+0x64c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x174(%rbp)
ff
jmp    1b92 <target_theta+0xa52>
movss  -0x120(%rbp),%xmm0
ff
mulss  -0x120(%rbp),%xmm0
ff
movss  %xmm0,-0x188(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x10c(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf0(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x83d(%rip),%xmm0
mulss  -0xe0(%rbp),%xmm0
ff
movss  -0x144(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x815(%rip),%xmm1
mulss  -0xdc(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd8(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x7e1(%rip),%xmm1
mulss  -0xd4(%rbp),%xmm1
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd0(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x7a5(%rip),%xmm1
mulss  -0xcc(%rbp),%xmm1
ff
mulss  -0x13c(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc8(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x18c(%rbp)
ff
movss  -0x128(%rbp),%xmm0
ff
mulss  -0x128(%rbp),%xmm0
ff
movss  %xmm0,-0x190(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x108(%rbp),%xmm0
ff
movss  -0xfc(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf8(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x700(%rip),%xmm1
mulss  -0xd0(%rbp),%xmm1
ff
mulss  -0x14c(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x190(%rbp),%xmm1
ff
movss  -0x18c(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x188(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x184(%rbp)
ff
movss  -0x130(%rbp),%xmm0
ff
mulss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x180(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x104(%rbp),%xmm1
ff
movss  -0xf8(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x64c(%rip),%xmm1
mulss  -0xf4(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xec(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x618(%rip),%xmm1
mulss  -0xe8(%rbp),%xmm1
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe4(%rbp),%xmm0
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd8(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xcc(%rbp),%xmm0
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x5ac(%rip),%xmm1
mulss  -0xc8(%rbp),%xmm1
ff
mulss  -0x154(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x584(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
mulss  -0x154(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x184(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x180(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x17c(%rbp)
ff
movss  -0x138(%rbp),%xmm0
ff
mulss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x178(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x100(%rbp),%xmm1
ff
movss  -0xf0(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x4dc(%rip),%xmm0
mulss  -0xe4(%rbp),%xmm0
ff
mulss  -0x160(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x17c(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x178(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x174(%rbp)
ff
movss  -0x174(%rbp),%xmm0
ff
movss  %xmm0,-0x170(%rbp)
ff
movss  -0x170(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x168(%rbp),%xmm0
ff
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_theta>:
push   %rbx
sub    $0x130,%rsp
mov    %rsi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x110(%rsp)
movq   $0x0,0x120(%rsp)
movaps 0xeb7(%rip),%xmm1
movaps %xmm1,0x100(%rsp)
movaps %xmm0,0xe0(%rsp)
movq   $0x0,0xf0(%rsp)
movaps 0xea4(%rip),%xmm1
movaps %xmm1,0xd0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movq   $0x0,0xb0(%rsp)
xorps  %xmm1,%xmm1
test   %edx,%edx
jle    120a <target_theta+0xea>
mov    %edx,%eax
add    $0xffffffffffffffff,%rax
movss  0xe7b(%rip),%xmm2
movss  0xe77(%rip),%xmm1
xor    %ecx,%ecx
movss  0xe71(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm2
jne    11c7 <target_theta+0xa7>
jnp    11db <target_theta+0xbb>
subss  %xmm2,%xmm1
movaps %xmm0,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0x90(%rsp,%rcx,4)
cmp    %rcx,%rax
je     11f8 <target_theta+0xd8>
movss  0x104(%rsp,%rcx,4),%xmm2
movss  0xd4(%rsp,%rcx,4),%xmm1
add    $0x1,%rcx
jmp    11c0 <target_theta+0xa0>
movsd  0x90(%rsp),%xmm1
movsd  0x98(%rsp),%xmm0
movss  0xe0e(%rip),%xmm2
movss  (%rdi),%xmm5
addss  %xmm2,%xmm5
mulss  %xmm1,%xmm5
movss  0xe06(%rip),%xmm3
addss  %xmm3,%xmm5
addss  0x4(%rdi),%xmm2
movaps %xmm1,%xmm4
shufps $0x55,%xmm1,%xmm4
mulss  %xmm2,%xmm4
addss  %xmm3,%xmm4
movsd  (%rbx),%xmm7
movsd  0x8(%rbx),%xmm6
mulps  %xmm1,%xmm7
movaps %xmm7,%xmm8
shufps $0x55,%xmm7,%xmm8
movss  0x8(%rdi),%xmm11
movss  0xc(%rdi),%xmm1
addss  0xdc9(%rip),%xmm11
mulss  %xmm0,%xmm11
addss  %xmm3,%xmm11
addss  0xdbb(%rip),%xmm1
movaps %xmm0,%xmm2
shufps $0x55,%xmm0,%xmm2
mulss  %xmm1,%xmm2
addss  %xmm3,%xmm2
movaps %xmm4,%xmm3
mulps  %xmm0,%xmm6
movaps %xmm6,%xmm4
shufps $0x55,%xmm6,%xmm4
movaps %xmm5,%xmm15
mulss  %xmm5,%xmm15
movaps %xmm5,%xmm13
mulss  %xmm15,%xmm13
movaps %xmm3,%xmm0
mulss  %xmm3,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm11,%xmm12
mulss  %xmm11,%xmm12
movaps %xmm2,0x40(%rsp)
mulss  %xmm2,%xmm2
movaps %xmm2,0x70(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm7,%xmm1
addss  %xmm0,%xmm1
addss  %xmm8,%xmm1
addss  %xmm6,%xmm1
addss  %xmm4,%xmm1
ucomiss %xmm0,%xmm1
jne    12ef <target_theta+0x1cf>
jnp    15f8 <target_theta+0x4d8>
mulss  %xmm7,%xmm7
movaps %xmm7,0xc0(%rsp)
movaps %xmm3,%xmm0
mulss  0xd32(%rip),%xmm0
addss  0xd2e(%rip),%xmm0
movaps 0x40(%rsp),%xmm1
mulss  0xd25(%rip),%xmm1
addss  %xmm0,%xmm1
movss  0xd1d(%rip),%xmm0
movss  %xmm13,0x1c(%rsp)
mulss  %xmm13,%xmm0
addss  %xmm1,%xmm0
movss  0xd09(%rip),%xmm1
mulss  %xmm5,%xmm1
addss  %xmm0,%xmm1
movaps %xmm11,%xmm0
mulss  0xcf9(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xcf1(%rip),%xmm1
mulss  %xmm15,%xmm1
addss  %xmm0,%xmm1
movss  0xce4(%rip),%xmm0
mulss  0x80(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  0xcd3(%rip),%xmm1
mulss  %xmm5,%xmm1
mulss  %xmm11,%xmm1
addss  %xmm0,%xmm1
movss  0xcc2(%rip),%xmm0
mulss  %xmm12,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
movss  %xmm11,0xc(%rsp)
movss  %xmm12,0x10(%rsp)
movss  %xmm15,0x14(%rsp)
movss  %xmm5,0x8(%rsp)
movaps %xmm3,0x30(%rsp)
movaps %xmm4,0x60(%rsp)
movaps %xmm6,0x20(%rsp)
movaps %xmm8,0x50(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x18(%rsp)
movaps 0x50(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movss  0x8(%rsp),%xmm2
movss  0xc39(%rip),%xmm0
mulss  %xmm2,%xmm0
addss  0xc55(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0xc(%rsp),%xmm0
mulss  0xc48(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xc40(%rip),%xmm1
mulss  0x30(%rsp),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xc2e(%rip),%xmm0
mulss  0x10(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x50(%rsp),%xmm0
movss  0x18(%rsp),%xmm1
mulss  0xc0(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x18(%rsp)
movaps 0x20(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x30(%rsp),%xmm4
movss  0xbd8(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  0xbd8(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0xbd1(%rip),%xmm0
movss  0xc(%rsp),%xmm5
mulss  %xmm5,%xmm0
addss  %xmm1,%xmm0
movaps 0x40(%rsp),%xmm1
mulss  0xbba(%rip),%xmm1
addss  %xmm0,%xmm1
movss  0xbb2(%rip),%xmm0
mulss  0x10(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  0xba4(%rip),%xmm1
movaps 0x70(%rsp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xb5b(%rip),%xmm0
movss  0x8(%rsp),%xmm3
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
movaps %xmm0,%xmm1
movss  0xb7a(%rip),%xmm0
mulss  0x14(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  0xb6c(%rip),%xmm1
mulss  %xmm5,%xmm1
mulss  %xmm3,%xmm1
addss  %xmm0,%xmm1
movss  0xb5c(%rip),%xmm0
mulss  %xmm5,%xmm0
mulss  %xmm4,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x20(%rsp),%xmm0
addss  0x18(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x60(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movss  0xad2(%rip),%xmm0
mulss  0x8(%rsp),%xmm0
addss  0xb14(%rip),%xmm0
movss  0xc(%rsp),%xmm1
movss  0xaee(%rip),%xmm2
mulss  %xmm1,%xmm2
addss  %xmm0,%xmm2
movss  0xafa(%rip),%xmm0
mulss  0x40(%rsp),%xmm0
mulss  %xmm1,%xmm0
addss  %xmm2,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x60(%rsp),%xmm0
addss  0x20(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15cc <target_theta+0x4ac>
sqrtss %xmm0,%xmm0
jmp    15d1 <target_theta+0x4b1>
call   1040 <sqrt@plt>
movss  0xc(%rsp),%xmm11
movss  0x10(%rsp),%xmm12
movss  0x1c(%rsp),%xmm13
movss  0x14(%rsp),%xmm15
movss  0x8(%rsp),%xmm5
movaps 0x30(%rsp),%xmm3
movss  0xa6b(%rip),%xmm8
mulss  %xmm3,%xmm8
movss  0xa4d(%rip),%xmm9
mulss  %xmm5,%xmm9
movss  0xa37(%rip),%xmm10
mulss  %xmm5,%xmm10
movss  0xa22(%rip),%xmm4
mulss  %xmm5,%xmm4
movss  0xa0a(%rip),%xmm6
mulss  %xmm5,%xmm6
movss  0x9f6(%rip),%xmm7
mulss  %xmm5,%xmm7
movaps %xmm5,%xmm2
mulss  0x9eb(%rip),%xmm2
movss  0xa0b(%rip),%xmm1
mulss  %xmm3,%xmm1
addss  0xa33(%rip),%xmm2
mulss  %xmm3,%xmm7
mulss  0x9ef(%rip),%xmm3
addss  %xmm2,%xmm3
movss  0x9f3(%rip),%xmm2
mulss  %xmm11,%xmm2
addss  %xmm3,%xmm2
movss  0xa02(%rip),%xmm3
movaps 0x40(%rsp),%xmm14
mulss  %xmm14,%xmm3
addss  %xmm2,%xmm3
addss  %xmm7,%xmm3
mulss  %xmm11,%xmm1
addss  %xmm3,%xmm1
movss  0x9ea(%rip),%xmm2
mulss  %xmm12,%xmm2
addss  %xmm1,%xmm2
mulss  %xmm14,%xmm6
addss  %xmm2,%xmm6
movss  0x9ac(%rip),%xmm1
mulss  %xmm11,%xmm1
mulss  %xmm14,%xmm1
addss  %xmm6,%xmm1
movaps %xmm11,%xmm2
mulss  %xmm12,%xmm2
mulss  0x9b5(%rip),%xmm2
addss  %xmm1,%xmm2
movss  0x989(%rip),%xmm1
mulss  %xmm11,%xmm1
mulss  0x70(%rsp),%xmm1
addss  %xmm2,%xmm1
movss  0x976(%rip),%xmm2
mulss  %xmm15,%xmm2
mulss  %xmm13,%xmm5
mulss  0x984(%rip),%xmm5
mulss  0x97f(%rip),%xmm15
addss  %xmm1,%xmm5
addss  %xmm5,%xmm15
mulss  %xmm11,%xmm4
addss  %xmm15,%xmm4
mulss  0x967(%rip),%xmm13
addss  %xmm4,%xmm13
mulss  0x80(%rsp),%xmm10
addss  %xmm13,%xmm10
mulss  %xmm11,%xmm2
addss  %xmm10,%xmm2
mulss  %xmm12,%xmm9
addss  %xmm2,%xmm9
mulss  %xmm12,%xmm8
addss  %xmm9,%xmm8
movss  %xmm0,(%rbx)
movaps %xmm8,%xmm0
add    $0x130,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.target_theta.coeff = [21 x float] [float 0xBEB4065FC0000000, float 0xBF918165C0000000, float 0xBFABF95F00000000, float 0x3F9AE23FC0000000, float 0x3FB0976BA0000000, float 0xBF05141BE0000000, float 0x3F10524700000000, float 0x3F133C3080000000, float 0x3F0F526480000000, float 0xBF18BEBD80000000, float 0x3F39912DE0000000, float 0x3EF356EBC0000000, float 0x3E9E660860000000, float 0x3EFD48D860000000, float 0xBF1881FCC0000000, float 0xBF225C5A00000000, float 0xBEE0B73FC0000000, float 0x3F432710E0000000, float 0xBF4AE83AE0000000, float 0xBEBD75C0C0000000, float 0.000000e+00]
define float @target_theta(float* %0, float* %1, i32 %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
%9 = alloca [10 x float]
%10 = alloca [10 x float]
%11 = alloca [10 x float]
%12 = alloca [21 x float]
%13 = alloca i32
%14 = alloca i32
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca float
%31 = alloca float
%32 = alloca float
%33 = alloca float
%34 = alloca float
%35 = alloca float
%36 = alloca float
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
store i32 20, i32* %7
store float 0x3F92C832C0000000, float* %8
%37 = bitcast [10 x float]* %9 to i8*
%38 = bitcast i8* %37 to [10 x float]*
%39 = getelementptr inbounds [10 x float], [10 x float]* %38, i32 0, i32 0
store float -1.500000e+01, float* %39
%40 = getelementptr inbounds [10 x float], [10 x float]* %38, i32 0, i32 1
store float -1.500000e+01, float* %40
%41 = getelementptr inbounds [10 x float], [10 x float]* %38, i32 0, i32 2
store float 0xC032010620000000, float* %41
%42 = getelementptr inbounds [10 x float], [10 x float]* %38, i32 0, i32 3
store float 0xC032018940000000, float* %42
%43 = bitcast [10 x float]* %10 to i8*
%44 = bitcast i8* %43 to [10 x float]*
%45 = getelementptr inbounds [10 x float], [10 x float]* %44, i32 0, i32 0
store float 1.500000e+01, float* %45
%46 = getelementptr inbounds [10 x float], [10 x float]* %44, i32 0, i32 1
store float 1.500000e+01, float* %46
%47 = getelementptr inbounds [10 x float], [10 x float]* %44, i32 0, i32 2
store float 0x403200C4A0000000, float* %47
%48 = getelementptr inbounds [10 x float], [10 x float]* %44, i32 0, i32 3
store float 0x4032004180000000, float* %48
%49 = bitcast [10 x float]* %11 to i8*
%50 = bitcast [21 x float]* %12 to i8*
store i32 0, i32* %13
%51 = load i32, i32* %13
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %89
53: ; preds = %3
store i32 1, i32* %13
store i32 0, i32* %14
br label %54
54: ; preds = %85, %53
%55 = load i32, i32* %14
%56 = load i32, i32* %6
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %88
58: ; preds = %54
%59 = load i32, i32* %14
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x float], [10 x float]* %9, i64 0, i64 %60
%62 = load float, float* %61
%63 = load i32, i32* %14
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 %64
%66 = load float, float* %65
%67 = fcmp oeq float %62, %66
br i1 %67, label %68, label %69
68: ; preds = %58
br label %85
69: ; preds = %58
%70 = load i32, i32* %14
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 %71
%73 = load float, float* %72
%74 = load i32, i32* %14
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [10 x float], [10 x float]* %9, i64 0, i64 %75
%77 = load float, float* %76
%78 = fsub float %73, %77
%79 = fpext float %78 to double
%80 = fdiv double 2.000000e+00, %79
%81 = fptrunc double %80 to float
%82 = load i32, i32* %14
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 %83
store float %81, float* %84
br label %85
85: ; preds = %69, %68
%86 = load i32, i32* %14
%87 = add nsw i32 %86, 1
store i32 %87, i32* %14
br label %54
88: ; preds = %54
br label %89
89: ; preds = %88, %3
%90 = load float*, float** %4
%91 = getelementptr inbounds float, float* %90, i64 0
%92 = load float, float* %91
%93 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 0
%94 = load float, float* %93
%95 = fsub float %92, %94
%96 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 0
%97 = load float, float* %96
%98 = fmul float %95, %97
%99 = fpext float %98 to double
%100 = fadd double 1.000000e+00, %99
%101 = fptrunc double %100 to float
store float %101, float* %15
%102 = load float*, float** %5
%103 = getelementptr inbounds float, float* %102, i64 0
%104 = load float, float* %103
%105 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 0
%106 = load float, float* %105
%107 = fmul float %104, %106
store float %107, float* %16
%108 = load float*, float** %4
%109 = getelementptr inbounds float, float* %108, i64 1
%110 = load float, float* %109
%111 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 1
%112 = load float, float* %111
%113 = fsub float %110, %112
%114 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 1
%115 = load float, float* %114
%116 = fmul float %113, %115
%117 = fpext float %116 to double
%118 = fadd double 1.000000e+00, %117
%119 = fptrunc double %118 to float
store float %119, float* %17
%120 = load float*, float** %5
%121 = getelementptr inbounds float, float* %120, i64 1
%122 = load float, float* %121
%123 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 1
%124 = load float, float* %123
%125 = fmul float %122, %124
store float %125, float* %18
%126 = load float*, float** %4
%127 = getelementptr inbounds float, float* %126, i64 2
%128 = load float, float* %127
%129 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 2
%130 = load float, float* %129
%131 = fsub float %128, %130
%132 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 2
%133 = load float, float* %132
%134 = fmul float %131, %133
%135 = fpext float %134 to double
%136 = fadd double 1.000000e+00, %135
%137 = fptrunc double %136 to float
store float %137, float* %19
%138 = load float*, float** %5
%139 = getelementptr inbounds float, float* %138, i64 2
%140 = load float, float* %139
%141 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 2
%142 = load float, float* %141
%143 = fmul float %140, %142
store float %143, float* %20
%144 = load float*, float** %4
%145 = getelementptr inbounds float, float* %144, i64 3
%146 = load float, float* %145
%147 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 3
%148 = load float, float* %147
%149 = fsub float %146, %148
%150 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 3
%151 = load float, float* %150
%152 = fmul float %149, %151
%153 = fpext float %152 to double
%154 = fadd double 1.000000e+00, %153
%155 = fptrunc double %154 to float
store float %155, float* %21
%156 = load float*, float** %5
%157 = getelementptr inbounds float, float* %156, i64 3
%158 = load float, float* %157
%159 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 3
%160 = load float, float* %159
%161 = fmul float %158, %160
store float %161, float* %22
%162 = load float, float* %15
store float %162, float* %23
%163 = load float, float* %23
%164 = load float, float* %15
%165 = fmul float %163, %164
store float %165, float* %24
%166 = load float, float* %24
%167 = load float, float* %15
%168 = fmul float %166, %167
store float %168, float* %25
%169 = load float, float* %25
%170 = load float, float* %15
%171 = fmul float %169, %170
store float %171, float* %26
%172 = load float, float* %17
store float %172, float* %27
%173 = load float, float* %27
%174 = load float, float* %17
%175 = fmul float %173, %174
store float %175, float* %28
%176 = load float, float* %19
store float %176, float* %29
%177 = load float, float* %29
%178 = load float, float* %19
%179 = fmul float %177, %178
store float %179, float* %30
%180 = load float, float* %30
%181 = load float, float* %19
%182 = fmul float %180, %181
store float %182, float* %31
%183 = load float, float* %21
store float %183, float* %32
%184 = load float, float* %32
%185 = load float, float* %21
%186 = fmul float %184, %185
store float %186, float* %33
%187 = load float, float* %8
%188 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 0
%189 = load float, float* %188
%190 = fadd float %187, %189
%191 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 1
%192 = load float, float* %191
%193 = load float, float* %23
%194 = call float @llvm.fmuladd.f32(float %192, float %193, float %190)
%195 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 2
%196 = load float, float* %195
%197 = load float, float* %27
%198 = call float @llvm.fmuladd.f32(float %196, float %197, float %194)
%199 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 3
%200 = load float, float* %199
%201 = load float, float* %29
%202 = call float @llvm.fmuladd.f32(float %200, float %201, float %198)
%203 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 4
%204 = load float, float* %203
%205 = load float, float* %32
%206 = call float @llvm.fmuladd.f32(float %204, float %205, float %202)
%207 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 5
%208 = load float, float* %207
%209 = load float, float* %23
%210 = fmul float %208, %209
%211 = load float, float* %27
%212 = call float @llvm.fmuladd.f32(float %210, float %211, float %206)
%213 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 6
%214 = load float, float* %213
%215 = load float, float* %27
%216 = fmul float %214, %215
%217 = load float, float* %29
%218 = call float @llvm.fmuladd.f32(float %216, float %217, float %212)
%219 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 7
%220 = load float, float* %219
%221 = load float, float* %30
%222 = call float @llvm.fmuladd.f32(float %220, float %221, float %218)
store float %222, float* %34
%223 = load float, float* %34
%224 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 8
%225 = load float, float* %224
%226 = load float, float* %23
%227 = fmul float %225, %226
%228 = load float, float* %32
%229 = call float @llvm.fmuladd.f32(float %227, float %228, float %223)
%230 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 9
%231 = load float, float* %230
%232 = load float, float* %29
%233 = fmul float %231, %232
%234 = load float, float* %32
%235 = call float @llvm.fmuladd.f32(float %233, float %234, float %229)
%236 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 10
%237 = load float, float* %236
%238 = load float, float* %31
%239 = call float @llvm.fmuladd.f32(float %237, float %238, float %235)
%240 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 11
%241 = load float, float* %240
%242 = load float, float* %29
%243 = fmul float %241, %242
%244 = load float, float* %33
%245 = call float @llvm.fmuladd.f32(float %243, float %244, float %239)
%246 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 12
%247 = load float, float* %246
%248 = load float, float* %26
%249 = call float @llvm.fmuladd.f32(float %247, float %248, float %245)
%250 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 13
%251 = load float, float* %250
%252 = load float, float* %24
%253 = call float @llvm.fmuladd.f32(float %251, float %252, float %249)
%254 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 14
%255 = load float, float* %254
%256 = load float, float* %23
%257 = fmul float %255, %256
%258 = load float, float* %29
%259 = call float @llvm.fmuladd.f32(float %257, float %258, float %253)
%260 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 15
%261 = load float, float* %260
%262 = load float, float* %25
%263 = call float @llvm.fmuladd.f32(float %261, float %262, float %259)
%264 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 16
%265 = load float, float* %264
%266 = load float, float* %23
%267 = fmul float %265, %266
%268 = load float, float* %28
%269 = call float @llvm.fmuladd.f32(float %267, float %268, float %263)
store float %269, float* %34
%270 = load float, float* %34
%271 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 17
%272 = load float, float* %271
%273 = load float, float* %24
%274 = fmul float %272, %273
%275 = load float, float* %29
%276 = call float @llvm.fmuladd.f32(float %274, float %275, float %270)
%277 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 18
%278 = load float, float* %277
%279 = load float, float* %23
%280 = fmul float %278, %279
%281 = load float, float* %30
%282 = call float @llvm.fmuladd.f32(float %280, float %281, float %276)
%283 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 19
%284 = load float, float* %283
%285 = load float, float* %27
%286 = fmul float %284, %285
%287 = load float, float* %30
%288 = call float @llvm.fmuladd.f32(float %286, float %287, float %282)
store float %288, float* %34
%289 = load float, float* %16
%290 = fadd float 0.000000e+00, %289
%291 = load float, float* %18
%292 = fadd float %290, %291
%293 = load float, float* %20
%294 = fadd float %292, %293
%295 = load float, float* %22
%296 = fadd float %294, %295
store float %296, float* %35
%297 = load float, float* %35
%298 = fcmp oeq float %297, 0.000000e+00
br i1 %298, label %299, label %300
299: ; preds = %89
br label %454
300: ; preds = %89
%301 = load float, float* %16
%302 = load float, float* %16
%303 = fmul float %301, %302
%304 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 1
%305 = load float, float* %304
%306 = fadd float 0.000000e+00, %305
%307 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 5
%308 = load float, float* %307
%309 = load float, float* %27
%310 = call float @llvm.fmuladd.f32(float %308, float %309, float %306)
%311 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 8
%312 = load float, float* %311
%313 = load float, float* %32
%314 = call float @llvm.fmuladd.f32(float %312, float %313, float %310)
%315 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 12
%316 = load float, float* %315
%317 = fmul float 4.000000e+00, %316
%318 = load float, float* %25
%319 = call float @llvm.fmuladd.f32(float %317, float %318, float %314)
%320 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 13
%321 = load float, float* %320
%322 = fmul float 2.000000e+00, %321
%323 = load float, float* %23
%324 = call float @llvm.fmuladd.f32(float %322, float %323, float %319)
%325 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 14
%326 = load float, float* %325
%327 = load float, float* %29
%328 = call float @llvm.fmuladd.f32(float %326, float %327, float %324)
%329 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 15
%330 = load float, float* %329
%331 = fmul float 3.000000e+00, %330
%332 = load float, float* %24
%333 = call float @llvm.fmuladd.f32(float %331, float %332, float %328)
%334 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 16
%335 = load float, float* %334
%336 = load float, float* %28
%337 = call float @llvm.fmuladd.f32(float %335, float %336, float %333)
%338 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 17
%339 = load float, float* %338
%340 = fmul float 2.000000e+00, %339
%341 = load float, float* %23
%342 = fmul float %340, %341
%343 = load float, float* %29
%344 = call float @llvm.fmuladd.f32(float %342, float %343, float %337)
%345 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 18
%346 = load float, float* %345
%347 = load float, float* %30
%348 = call float @llvm.fmuladd.f32(float %346, float %347, float %344)
%349 = call float @pow(float %348, i32 2)
%350 = load float, float* %18
%351 = load float, float* %18
%352 = fmul float %350, %351
%353 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 2
%354 = load float, float* %353
%355 = fadd float 0.000000e+00, %354
%356 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 5
%357 = load float, float* %356
%358 = load float, float* %23
%359 = call float @llvm.fmuladd.f32(float %357, float %358, float %355)
%360 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 6
%361 = load float, float* %360
%362 = load float, float* %29
%363 = call float @llvm.fmuladd.f32(float %361, float %362, float %359)
%364 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 16
%365 = load float, float* %364
%366 = fmul float 2.000000e+00, %365
%367 = load float, float* %27
%368 = fmul float %366, %367
%369 = load float, float* %23
%370 = call float @llvm.fmuladd.f32(float %368, float %369, float %363)
%371 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 19
%372 = load float, float* %371
%373 = load float, float* %30
%374 = call float @llvm.fmuladd.f32(float %372, float %373, float %370)
%375 = call float @pow(float %374, i32 2)
%376 = fmul float %352, %375
%377 = call float @llvm.fmuladd.f32(float %303, float %349, float %376)
%378 = load float, float* %20
%379 = load float, float* %20
%380 = fmul float %378, %379
%381 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 3
%382 = load float, float* %381
%383 = fadd float 0.000000e+00, %382
%384 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 6
%385 = load float, float* %384
%386 = load float, float* %27
%387 = call float @llvm.fmuladd.f32(float %385, float %386, float %383)
%388 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 7
%389 = load float, float* %388
%390 = fmul float 2.000000e+00, %389
%391 = load float, float* %29
%392 = call float @llvm.fmuladd.f32(float %390, float %391, float %387)
%393 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 9
%394 = load float, float* %393
%395 = load float, float* %32
%396 = call float @llvm.fmuladd.f32(float %394, float %395, float %392)
%397 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 10
%398 = load float, float* %397
%399 = fmul float 3.000000e+00, %398
%400 = load float, float* %30
%401 = call float @llvm.fmuladd.f32(float %399, float %400, float %396)
%402 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 11
%403 = load float, float* %402
%404 = load float, float* %33
%405 = call float @llvm.fmuladd.f32(float %403, float %404, float %401)
%406 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 14
%407 = load float, float* %406
%408 = load float, float* %23
%409 = call float @llvm.fmuladd.f32(float %407, float %408, float %405)
%410 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 17
%411 = load float, float* %410
%412 = load float, float* %24
%413 = call float @llvm.fmuladd.f32(float %411, float %412, float %409)
%414 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 18
%415 = load float, float* %414
%416 = fmul float 2.000000e+00, %415
%417 = load float, float* %29
%418 = fmul float %416, %417
%419 = load float, float* %23
%420 = call float @llvm.fmuladd.f32(float %418, float %419, float %413)
%421 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 19
%422 = load float, float* %421
%423 = fmul float 2.000000e+00, %422
%424 = load float, float* %29
%425 = fmul float %423, %424
%426 = load float, float* %27
%427 = call float @llvm.fmuladd.f32(float %425, float %426, float %420)
%428 = call float @pow(float %427, i32 2)
%429 = call float @llvm.fmuladd.f32(float %380, float %428, float %377)
%430 = load float, float* %22
%431 = load float, float* %22
%432 = fmul float %430, %431
%433 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 4
%434 = load float, float* %433
%435 = fadd float 0.000000e+00, %434
%436 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 8
%437 = load float, float* %436
%438 = load float, float* %23
%439 = call float @llvm.fmuladd.f32(float %437, float %438, float %435)
%440 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 9
%441 = load float, float* %440
%442 = load float, float* %29
%443 = call float @llvm.fmuladd.f32(float %441, float %442, float %439)
%444 = getelementptr inbounds [21 x float], [21 x float]* %12, i64 0, i64 11
%445 = load float, float* %444
%446 = fmul float 2.000000e+00, %445
%447 = load float, float* %32
%448 = fmul float %446, %447
%449 = load float, float* %29
%450 = call float @llvm.fmuladd.f32(float %448, float %449, float %443)
%451 = call float @pow(float %450, i32 2)
%452 = call float @llvm.fmuladd.f32(float %432, float %451, float %429)
%453 = call float @sqrt(float %452)
br label %454
454: ; preds = %300, %299
%455 = phi float [ 0.000000e+00, %299 ], [ %453, %300 ]
store float %455, float* %36
%456 = load float, float* %36
%457 = load float*, float** %5
%458 = getelementptr inbounds float, float* %457, i64 0
store float %456, float* %458
%459 = load float, float* %34
ret float %459
}

LLVM IR (-O2):
define float @target_theta(float* nocapture %0, float* nocapture %1, i32 %2) {
%4 = alloca [10 x float]
%5 = alloca [10 x float]
%6 = alloca [10 x float]
%7 = bitcast [10 x float]* %4 to i8*
%8 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 4
%9 = bitcast float* %8 to i8*
%10 = bitcast [10 x float]* %4 to <4 x float>*
store <4 x float> <float -1.500000e+01, float -1.500000e+01, float 0xC032010620000000, float 0xC032018940000000>, <4 x float>* %10
%11 = bitcast [10 x float]* %5 to i8*
%12 = getelementptr inbounds [10 x float], [10 x float]* %5, i64 0, i64 4
%13 = bitcast float* %12 to i8*
%14 = bitcast [10 x float]* %5 to <4 x float>*
store <4 x float> <float 1.500000e+01, float 1.500000e+01, float 0x403200C4A0000000, float 0x4032004180000000>, <4 x float>* %14
%15 = bitcast [10 x float]* %6 to i8*
%16 = icmp sgt i32 %2, 0
br i1 %16, label %17, label %42
17: ; preds = %3
%18 = zext i32 %2 to i64
br label %19
19: ; preds = %31, %17
%20 = phi float [ 1.500000e+01, %17 ], [ %35, %31 ]
%21 = phi float [ -1.500000e+01, %17 ], [ %33, %31 ]
%22 = phi i64 [ 0, %17 ], [ %29, %31 ]
%23 = fcmp oeq float %21, %20
br i1 %23, label %28, label %24
24: ; preds = %19
%25 = fsub float %20, %21
%26 = fdiv float 2.000000e+00, %25
%27 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 %22
store float %26, float* %27
br label %28
28: ; preds = %19, %24
%29 = add nuw nsw i64 %22, 1
%30 = icmp eq i64 %29, %18
br i1 %30, label %36, label %31
31: ; preds = %28
%32 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 %29
%33 = load float, float* %32
%34 = getelementptr inbounds [10 x float], [10 x float]* %5, i64 0, i64 %29
%35 = load float, float* %34
br label %19
36: ; preds = %28
%37 = bitcast [10 x float]* %6 to <2 x float>*
%38 = load <2 x float>, <2 x float>* %37
%39 = getelementptr inbounds [10 x float], [10 x float]* %6, i64 0, i64 2
%40 = bitcast float* %39 to <2 x float>*
%41 = load <2 x float>, <2 x float>* %40
br label %42
42: ; preds = %36, %3
%43 = phi <2 x float> [ %41, %36 ], [ zeroinitializer, %3 ]
%44 = phi <2 x float> [ %38, %36 ], [ zeroinitializer, %3 ]
%45 = load float, float* %0
%46 = fadd float %45, -1.500000e+01
%47 = extractelement <2 x float> %44, i64 0
%48 = fmul float %46, %47
%49 = fadd float %48, 1.000000e+00
%50 = getelementptr inbounds float, float* %0, i64 1
%51 = load float, float* %50
%52 = fadd float %51, -1.500000e+01
%53 = extractelement <2 x float> %44, i64 1
%54 = fmul float %52, %53
%55 = fadd float %54, 1.000000e+00
%56 = bitcast float* %1 to <2 x float>*
%57 = load <2 x float>, <2 x float>* %56
%58 = fmul <2 x float> %44, %57
%59 = getelementptr inbounds float, float* %0, i64 2
%60 = load float, float* %59
%61 = fadd float %60, 0xC03200C4A0000000
%62 = extractelement <2 x float> %43, i64 0
%63 = fmul float %61, %62
%64 = fadd float %63, 1.000000e+00
%65 = getelementptr inbounds float, float* %1, i64 2
%66 = getelementptr inbounds float, float* %0, i64 3
%67 = load float, float* %66
%68 = fadd float %67, 0xC032004180000000
%69 = extractelement <2 x float> %43, i64 1
%70 = fmul float %68, %69
%71 = fadd float %70, 1.000000e+00
%72 = bitcast float* %65 to <2 x float>*
%73 = load <2 x float>, <2 x float>* %72
%74 = fmul <2 x float> %43, %73
%75 = fmul float %49, %49
%76 = fmul float %49, %75
%77 = fmul float %55, %55
%78 = fmul float %64, %64
%79 = fmul float %71, %71
%80 = extractelement <2 x float> %58, i64 0
%81 = fadd float %80, 0.000000e+00
%82 = extractelement <2 x float> %58, i64 1
%83 = fadd float %81, %82
%84 = extractelement <2 x float> %74, i64 0
%85 = fadd float %83, %84
%86 = extractelement <2 x float> %74, i64 1
%87 = fadd float %85, %86
%88 = fcmp oeq float %87, 0.000000e+00
br i1 %88, label %135, label %89
89: ; preds = %42
%90 = fmul <2 x float> %58, %58
%91 = extractelement <2 x float> %90, i64 0
%92 = tail call float @llvm.fmuladd.f32(float %55, float 0xBF05141BE0000000, float 0xBF918165C0000000)
%93 = tail call float @llvm.fmuladd.f32(float %71, float 0x3F0F526480000000, float %92)
%94 = tail call float @llvm.fmuladd.f32(float %76, float 0x3EBE660860000000, float %93)
%95 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F0D48D860000000, float %94)
%96 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF1881FCC0000000, float %95)
%97 = tail call float @llvm.fmuladd.f32(float %75, float 0xBF3B8A8700000000, float %96)
%98 = tail call float @llvm.fmuladd.f32(float %77, float 0xBEE0B73FC0000000, float %97)
%99 = fmul float %49, 0x3F532710E0000000
%100 = tail call float @llvm.fmuladd.f32(float %99, float %64, float %98)
%101 = tail call float @llvm.fmuladd.f32(float %78, float 0xBF4AE83AE0000000, float %100)
%102 = tail call float @pow(float %101, i32 2)
%103 = fmul float %82, %82
%104 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF05141BE0000000, float 0xBFABF95F00000000)
%105 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F10524700000000, float %104)
%106 = fmul float %55, 0xBEF0B73FC0000000
%107 = tail call float @llvm.fmuladd.f32(float %106, float %49, float %105)
%108 = tail call float @llvm.fmuladd.f32(float %78, float 0xBEBD75C0C0000000, float %107)
%109 = tail call float @pow(float %108, i32 2)
%110 = fmul float %103, %109
%111 = tail call float @llvm.fmuladd.f32(float %91, float %102, float %110)
%112 = fmul <2 x float> %74, %74
%113 = extractelement <2 x float> %112, i64 0
%114 = tail call float @llvm.fmuladd.f32(float %55, float 0x3F10524700000000, float 0x3F9AE23FC0000000)
%115 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F233C3080000000, float %114)
%116 = tail call float @llvm.fmuladd.f32(float %71, float 0xBF18BEBD80000000, float %115)
%117 = tail call float @llvm.fmuladd.f32(float %78, float 0x3F532CE260000000, float %116)
%118 = tail call float @llvm.fmuladd.f32(float %79, float 0x3EF356EBC0000000, float %117)
%119 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF1881FCC0000000, float %118)
%120 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F432710E0000000, float %119)
%121 = fmul float %64, 0xBF5AE83AE0000000
%122 = tail call float @llvm.fmuladd.f32(float %121, float %49, float %120)
%123 = fmul float %64, 0xBECD75C0C0000000
%124 = tail call float @llvm.fmuladd.f32(float %123, float %55, float %122)
%125 = tail call float @pow(float %124, i32 2)
%126 = tail call float @llvm.fmuladd.f32(float %113, float %125, float %111)
%127 = fmul float %86, %86
%128 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F0F526480000000, float 0x3FB0976BA0000000)
%129 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF18BEBD80000000, float %128)
%130 = fmul float %71, 0x3F0356EBC0000000
%131 = tail call float @llvm.fmuladd.f32(float %130, float %64, float %129)
%132 = tail call float @pow(float %131, i32 2)
%133 = tail call float @llvm.fmuladd.f32(float %127, float %132, float %126)
%134 = tail call float @sqrt(float %133)
br label %135
135: ; preds = %42, %89
%136 = phi float [ %134, %89 ], [ 0.000000e+00, %42 ]
%137 = fmul float %55, 0xBEBD75C0C0000000
%138 = fmul float %49, 0xBF4AE83AE0000000
%139 = fmul float %75, 0x3F432710E0000000
%140 = fmul float %49, 0xBEE0B73FC0000000
%141 = fmul float %49, 0xBF1881FCC0000000
%142 = fmul float %49, %76
%143 = fmul float %64, 0x3EF356EBC0000000
%144 = fmul float %64, %78
%145 = fmul float %64, 0xBF18BEBD80000000
%146 = fmul float %49, 0x3F0F526480000000
%147 = fmul float %55, 0x3F10524700000000
%148 = fmul float %49, 0xBF05141BE0000000
%149 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF918165C0000000, float 0x3F92C7E2A0000000)
%150 = tail call float @llvm.fmuladd.f32(float %55, float 0xBFABF95F00000000, float %149)
%151 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F9AE23FC0000000, float %150)
%152 = tail call float @llvm.fmuladd.f32(float %71, float 0x3FB0976BA0000000, float %151)
%153 = tail call float @llvm.fmuladd.f32(float %148, float %55, float %152)
%154 = tail call float @llvm.fmuladd.f32(float %147, float %64, float %153)
%155 = tail call float @llvm.fmuladd.f32(float %78, float 0x3F133C3080000000, float %154)
%156 = tail call float @llvm.fmuladd.f32(float %146, float %71, float %155)
%157 = tail call float @llvm.fmuladd.f32(float %145, float %71, float %156)
%158 = tail call float @llvm.fmuladd.f32(float %144, float 0x3F39912DE0000000, float %157)
%159 = tail call float @llvm.fmuladd.f32(float %143, float %79, float %158)
%160 = tail call float @llvm.fmuladd.f32(float %142, float 0x3E9E660860000000, float %159)
%161 = tail call float @llvm.fmuladd.f32(float %75, float 0x3EFD48D860000000, float %160)
%162 = tail call float @llvm.fmuladd.f32(float %141, float %64, float %161)
%163 = tail call float @llvm.fmuladd.f32(float %76, float 0xBF225C5A00000000, float %162)
%164 = tail call float @llvm.fmuladd.f32(float %140, float %77, float %163)
%165 = tail call float @llvm.fmuladd.f32(float %139, float %64, float %164)
%166 = tail call float @llvm.fmuladd.f32(float %138, float %78, float %165)
%167 = tail call float @llvm.fmuladd.f32(float %137, float %78, float %166)
store float %136, float* %1
ret float %167
}