#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.1533949E-01;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18005E+02, -0.18008E+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.23974299E-05, -0.23068266E-01, -0.53036880E-01,
                     0.35174534E-01,  0.62246315E-01,  -0.76771459E-04,
                     0.11364987E-03,  -0.18495112E-03, 0.12281512E-03,
                     0.99030301E-04,  0.18377485E-04,  0.66158321E-06,
                     0.38923852E-04,  0.40658782E-04,  -0.13046761E-03,
                     0.11372869E-04,  -0.78696530E-05, -0.33736333E-05,
                     -0.43144701E-05, -0.38655584E-04, 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 x34 = x33 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float x43 = x42 * 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] * x11 * x41 +
                         coeff[7] * x31 * x41;
  v_target_theta = v_target_theta + coeff[8] * x21 * x31 + coeff[9] * x32 +
                   coeff[10] * x31 * x42 + coeff[11] * x14 +
                   coeff[12] * x11 * x34 + coeff[13] * x12 +
                   coeff[14] * x11 * x31 + coeff[15] * x13 +
                   coeff[16] * x11 * x22;
  v_target_theta = v_target_theta + coeff[17] * x21 * x32 + coeff[18] * x43 +
                   coeff[19] * x13 * 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[6] * x41 +
                             4 * coeff[11] * x13 + coeff[12] * x34 +
                             2 * coeff[13] * x11 + coeff[14] * x31 +
                             3 * coeff[15] * x12 + coeff[16] * x22 +
                             3 * coeff[19] * x12 * x32,
                         2) +
                 dx2 * dx2 *
                     pow(0 + coeff[2] + coeff[5] * x11 + coeff[8] * x31 +
                             2 * coeff[16] * x21 * x11 + coeff[17] * x32,
                         2) +
                 dx3 * dx3 *
                     pow(0 + coeff[3] + coeff[7] * x41 + coeff[8] * x21 +
                             2 * coeff[9] * x31 + coeff[10] * x42 +
                             4 * coeff[12] * x33 * x11 + coeff[14] * x11 +
                             2 * coeff[17] * x31 * x21 +
                             2 * coeff[19] * x31 * x13,
                         2) +
                 dx4 * dx4 *
                     pow(0 + coeff[4] + coeff[6] * x11 + coeff[7] * x31 +
                             2 * coeff[10] * x41 * x31 + 3 * coeff[18] * x42,
                         2));
  dx[0] = dv_target_theta;
  return v_target_theta;
}


x86 assembly (clang, -O0):
<target_theta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%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  -0x15c(%rbp),%xmm0
ff
mulss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x160(%rbp)
ff
movss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x164(%rbp)
ff
movss  -0x164(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x168(%rbp)
ff
movss  -0x168(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x16c(%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  -0x164(%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  -0x13c(%rbp),%xmm1
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf4(%rbp),%xmm0
ff
mulss  -0x154(%rbp),%xmm0
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x170(%rbp)
ff
movss  -0x170(%rbp),%xmm1
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0x14c(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe8(%rbp),%xmm0
ff
mulss  -0x154(%rbp),%xmm0
ff
movss  -0x168(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xe4(%rbp),%xmm1
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x160(%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,-0x170(%rbp)
ff
movss  -0x170(%rbp),%xmm1
ff
movss  -0xcc(%rbp),%xmm0
ff
mulss  -0x14c(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc8(%rbp),%xmm1
ff
movss  -0x16c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
mulss  -0x144(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x170(%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,-0x174(%rbp)
ff
movss  -0x174(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    17bc <target_theta+0x67c>
jp     17bc <target_theta+0x67c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x17c(%rbp)
ff
jmp    1bd2 <target_theta+0xa92>
movss  -0x120(%rbp),%xmm0
ff
mulss  -0x120(%rbp),%xmm0
ff
movss  %xmm0,-0x190(%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  -0xf8(%rbp),%xmm1
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x80d(%rip),%xmm0
mulss  -0xe4(%rbp),%xmm0
ff
movss  -0x144(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xe0(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x7d1(%rip),%xmm0
mulss  -0xdc(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd8(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x795(%rip),%xmm0
mulss  -0xd4(%rbp),%xmm0
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd0(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x75d(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
mulss  -0x140(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x194(%rbp)
ff
movss  -0x128(%rbp),%xmm0
ff
mulss  -0x128(%rbp),%xmm0
movss  %xmm0,-0x198(%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  -0xf0(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x6d4(%rip),%xmm1
mulss  -0xd0(%rbp),%xmm1
ff
mulss  -0x14c(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xcc(%rbp),%xmm0
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x198(%rbp),%xmm1
ff
movss  -0x194(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x190(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x18c(%rbp)
ff
movss  -0x130(%rbp),%xmm0
ff
mulss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x188(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x104(%rbp),%xmm0
ff
movss  -0xf4(%rbp),%xmm1
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf0(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x608(%rip),%xmm1
mulss  -0xec(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe8(%rbp),%xmm0
ff
movss  -0x168(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x5d4(%rip),%xmm1
mulss  -0xe0(%rbp),%xmm1
ff
mulss  -0x15c(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd8(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x590(%rip),%xmm1
mulss  -0xcc(%rbp),%xmm1
ff
mulss  -0x154(%rbp),%xmm1
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x568(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
mulss  -0x154(%rbp),%xmm0
ff
movss  -0x144(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x18c(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x188(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x184(%rbp)
ff
movss  -0x138(%rbp),%xmm0
ff
mulss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x180(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x100(%rbp),%xmm0
ff
movss  -0xf8(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf4(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x4c0(%rip),%xmm1
mulss  -0xe8(%rbp),%xmm1
ff
mulss  -0x164(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x494(%rip),%xmm0
mulss  -0xc8(%rbp),%xmm0
ff
movss  -0x168(%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
call   1060 <sqrt@plt>
movss  %xmm0,-0x17c(%rbp)
ff
movss  -0x17c(%rbp),%xmm0
ff
movss  %xmm0,-0x178(%rbp)
ff
movss  -0x178(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x170(%rbp),%xmm0
ff
add    $0x1a0,%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),%xmm4
addss  %xmm2,%xmm4
mulss  %xmm1,%xmm4
movss  0xe06(%rip),%xmm3
addss  %xmm3,%xmm4
addss  0x4(%rdi),%xmm2
movaps %xmm1,%xmm5
shufps $0x55,%xmm1,%xmm5
mulss  %xmm2,%xmm5
addss  %xmm3,%xmm5
movsd  (%rbx),%xmm7
movsd  0x8(%rbx),%xmm6
mulps  %xmm1,%xmm7
movaps %xmm7,%xmm9
shufps $0x55,%xmm7,%xmm9
movss  0x8(%rdi),%xmm11
addss  0xdce(%rip),%xmm11
movss  0xc(%rdi),%xmm1
mulss  %xmm0,%xmm11
addss  0xdc0(%rip),%xmm1
addss  %xmm3,%xmm11
movaps %xmm0,%xmm2
shufps $0x55,%xmm0,%xmm2
mulss  %xmm1,%xmm2
addss  %xmm3,%xmm2
mulps  %xmm0,%xmm6
movaps %xmm6,%xmm8
shufps $0x55,%xmm6,%xmm8
movaps %xmm4,%xmm14
mulss  %xmm4,%xmm14
movaps %xmm4,%xmm13
mulss  %xmm14,%xmm13
movaps %xmm5,%xmm0
mulss  %xmm5,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm11,%xmm12
mulss  %xmm11,%xmm12
movaps %xmm11,%xmm3
mulss  %xmm12,%xmm3
movaps %xmm11,%xmm0
mulss  %xmm3,%xmm0
movss  %xmm0,0x18(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm7,%xmm1
addss  %xmm0,%xmm1
addss  %xmm9,%xmm1
addss  %xmm6,%xmm1
addss  %xmm8,%xmm1
ucomiss %xmm0,%xmm1
movaps %xmm2,0x40(%rsp)
mulss  %xmm2,%xmm2
movaps %xmm2,0x70(%rsp)
jne    1306 <target_theta+0x1e6>
jnp    1616 <target_theta+0x4f6>
mulss  %xmm7,%xmm7
movaps %xmm7,0xc0(%rsp)
movaps %xmm5,%xmm0
mulss  0xd1b(%rip),%xmm0
addss  0xd17(%rip),%xmm0
movaps 0x40(%rsp),%xmm1
mulss  0xd0e(%rip),%xmm1
addss  %xmm0,%xmm1
movss  0xd06(%rip),%xmm0
mulss  %xmm13,%xmm0
addss  %xmm1,%xmm0
movss  0xcf9(%rip),%xmm1
mulss  0x18(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xceb(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm1,%xmm0
movaps %xmm11,%xmm1
mulss  0xcdb(%rip),%xmm1
addss  %xmm0,%xmm1
movss  0xcd3(%rip),%xmm0
mulss  %xmm14,%xmm0
addss  %xmm1,%xmm0
movss  0xcc6(%rip),%xmm1
mulss  0x80(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xcb5(%rip),%xmm0
movss  %xmm14,0x14(%rsp)
mulss  %xmm14,%xmm0
mulss  %xmm12,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
movss  %xmm11,0x4(%rsp)
movss  %xmm12,0xc(%rsp)
movss  %xmm13,0x8(%rsp)
movss  %xmm4,(%rsp)
movaps %xmm5,0x30(%rsp)
movaps %xmm8,0x60(%rsp)
movaps %xmm6,0x20(%rsp)
movss  %xmm3,0x1c(%rsp)
movaps %xmm9,0x50(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x10(%rsp)
movaps 0x50(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movss  0xc20(%rip),%xmm0
movss  (%rsp),%xmm2
mulss  %xmm2,%xmm0
addss  0xc37(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0x4(%rsp),%xmm0
mulss  0xc2a(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xc22(%rip),%xmm1
mulss  0x30(%rsp),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xc10(%rip),%xmm0
mulss  0xc(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x50(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
mulss  0xc0(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x40(%rsp),%xmm0
mulss  0xbc6(%rip),%xmm0
addss  0xbc2(%rip),%xmm0
movaps 0x30(%rsp),%xmm4
movss  0xba5(%rip),%xmm1
mulss  %xmm4,%xmm1
addss  %xmm0,%xmm1
movss  0xba9(%rip),%xmm0
movss  0x4(%rsp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xb97(%rip),%xmm1
mulss  0x70(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0x1c(%rsp),%xmm0
mulss  0xb83(%rip),%xmm0
movss  (%rsp),%xmm3
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
movaps %xmm0,%xmm1
movss  0xb3b(%rip),%xmm0
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
movss  0xb5f(%rip),%xmm1
mulss  %xmm2,%xmm1
mulss  %xmm4,%xmm1
addss  %xmm0,%xmm1
movss  0xb4f(%rip),%xmm0
mulss  %xmm2,%xmm0
mulss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x20(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x60(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movss  0xac7(%rip),%xmm0
mulss  (%rsp),%xmm0
addss  0xb06(%rip),%xmm0
movss  0x4(%rsp),%xmm2
movss  0xadc(%rip),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm0
movss  0xae9(%rip),%xmm1
mulss  0x40(%rsp),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xad7(%rip),%xmm0
mulss  0x70(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x60(%rsp),%xmm0
addss  0x20(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15eb <target_theta+0x4cb>
sqrtss %xmm0,%xmm0
jmp    15f0 <target_theta+0x4d0>
call   1040 <sqrt@plt>
movss  0x4(%rsp),%xmm11
movss  0xc(%rsp),%xmm12
movss  0x8(%rsp),%xmm13
movss  0x14(%rsp),%xmm14
movss  (%rsp),%xmm4
movaps 0x30(%rsp),%xmm5
movss  0xa4d(%rip),%xmm8
mulss  %xmm5,%xmm8
movss  0xa2b(%rip),%xmm9
mulss  %xmm4,%xmm9
movss  0xa15(%rip),%xmm10
mulss  %xmm4,%xmm10
movss  0xa00(%rip),%xmm1
mulss  %xmm4,%xmm1
movss  0x9ec(%rip),%xmm6
mulss  %xmm4,%xmm6
movss  0x9d8(%rip),%xmm2
mulss  %xmm4,%xmm2
movaps %xmm4,%xmm15
mulss  0x9cc(%rip),%xmm4
movss  0x9ec(%rip),%xmm7
mulss  %xmm5,%xmm7
addss  0xa18(%rip),%xmm4
mulss  %xmm5,%xmm2
mulss  0x9d0(%rip),%xmm5
addss  %xmm4,%xmm5
movss  0x9d8(%rip),%xmm3
mulss  %xmm11,%xmm3
addss  %xmm5,%xmm3
movss  0x9df(%rip),%xmm4
movaps 0x40(%rsp),%xmm5
mulss  %xmm5,%xmm4
addss  %xmm3,%xmm4
addss  %xmm2,%xmm4
mulss  %xmm5,%xmm6
addss  %xmm4,%xmm6
movss  0x9a2(%rip),%xmm2
mulss  %xmm11,%xmm2
mulss  %xmm5,%xmm2
addss  %xmm6,%xmm2
movaps %xmm5,%xmm6
movaps 0x70(%rsp),%xmm4
mulss  %xmm4,%xmm6
mulss  %xmm11,%xmm7
addss  %xmm2,%xmm7
movss  0x9a8(%rip),%xmm2
mulss  %xmm12,%xmm2
addss  %xmm7,%xmm2
movss  0x973(%rip),%xmm3
mulss  %xmm11,%xmm3
mulss  %xmm4,%xmm3
mulss  %xmm13,%xmm15
mulss  0x984(%rip),%xmm15
addss  %xmm2,%xmm3
addss  %xmm3,%xmm15
mulss  0x18(%rsp),%xmm1
addss  %xmm15,%xmm1
mulss  0x96b(%rip),%xmm14
addss  %xmm1,%xmm14
mulss  %xmm11,%xmm10
movss  0x949(%rip),%xmm1
mulss  %xmm13,%xmm1
mulss  0x94f(%rip),%xmm13
addss  %xmm14,%xmm10
addss  %xmm10,%xmm13
mulss  0x80(%rsp),%xmm9
addss  %xmm13,%xmm9
mulss  %xmm12,%xmm8
addss  %xmm9,%xmm8
mulss  0x928(%rip),%xmm6
addss  %xmm8,%xmm6
mulss  %xmm12,%xmm1
addss  %xmm6,%xmm1
movss  %xmm0,(%rbx)
movaps %xmm1,%xmm0
add    $0x130,%rsp
pop    %rbx
ret

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

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 0xC0320147A0000000, float 0xC032020C40000000>, <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 %64, %78
%80 = fmul float %64, %79
%81 = fmul float %71, %71
%82 = extractelement <2 x float> %58, i64 0
%83 = fadd float %82, 0.000000e+00
%84 = extractelement <2 x float> %58, i64 1
%85 = fadd float %83, %84
%86 = extractelement <2 x float> %74, i64 0
%87 = fadd float %85, %86
%88 = extractelement <2 x float> %74, i64 1
%89 = fadd float %87, %88
%90 = fcmp oeq float %89, 0.000000e+00
br i1 %90, label %138, label %91
91: ; preds = %42
%92 = fmul <2 x float> %58, %58
%93 = extractelement <2 x float> %92, i64 0
%94 = tail call float @llvm.fmuladd.f32(float %55, float 0xBF14200BA0000000, float 0xBF979F3520000000)
%95 = tail call float @llvm.fmuladd.f32(float %71, float 0x3F1DCAE9E0000000, float %94)
%96 = tail call float @llvm.fmuladd.f32(float %76, float 0x3EC632F4E0000000, float %95)
%97 = tail call float @llvm.fmuladd.f32(float %80, float 0x3F04684560000000, float %96)
%98 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F15512120000000, float %97)
%99 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF2119C440000000, float %98)
%100 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F01E35280000000, float %99)
%101 = tail call float @llvm.fmuladd.f32(float %77, float 0xBEE080FCE0000000, float %100)
%102 = fmul float %75, 0xBF1E6665A0000000
%103 = tail call float @llvm.fmuladd.f32(float %102, float %78, float %101)
%104 = tail call float @pow(float %103, i32 2)
%105 = fmul float %84, %84
%106 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF14200BA0000000, float 0xBFAB27A660000000)
%107 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F2018FDE0000000, float %106)
%108 = fmul float %55, 0xBEF080FCE0000000
%109 = tail call float @llvm.fmuladd.f32(float %108, float %49, float %107)
%110 = tail call float @llvm.fmuladd.f32(float %78, float 0xBECC4CD280000000, float %109)
%111 = tail call float @pow(float %110, i32 2)
%112 = fmul float %105, %111
%113 = tail call float @llvm.fmuladd.f32(float %93, float %104, float %112)
%114 = fmul <2 x float> %74, %74
%115 = extractelement <2 x float> %114, i64 0
%116 = tail call float @llvm.fmuladd.f32(float %71, float 0xBF283DEE00000000, float 0x3FA2026580000000)
%117 = tail call float @llvm.fmuladd.f32(float %55, float 0x3F2018FDE0000000, float %116)
%118 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F29F5CFA0000000, float %117)
%119 = tail call float @llvm.fmuladd.f32(float %81, float 0x3EF3452B20000000, float %118)
%120 = fmul float %79, 0x3F24684560000000
%121 = tail call float @llvm.fmuladd.f32(float %120, float %49, float %119)
%122 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF2119C440000000, float %121)
%123 = fmul float %64, 0xBEDC4CD280000000
%124 = tail call float @llvm.fmuladd.f32(float %123, float %55, float %122)
%125 = fmul float %64, 0xBF144443C0000000
%126 = tail call float @llvm.fmuladd.f32(float %125, float %76, float %124)
%127 = tail call float @pow(float %126, i32 2)
%128 = tail call float @llvm.fmuladd.f32(float %115, float %127, float %113)
%129 = fmul float %88, %88
%130 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F1DCAE9E0000000, float 0x3FAFDEBFC0000000)
%131 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF283DEE00000000, float %130)
%132 = fmul float %71, 0x3F03452B20000000
%133 = tail call float @llvm.fmuladd.f32(float %132, float %64, float %131)
%134 = tail call float @llvm.fmuladd.f32(float %81, float 0xBEEB24F0C0000000, float %133)
%135 = tail call float @pow(float %134, i32 2)
%136 = tail call float @llvm.fmuladd.f32(float %129, float %135, float %128)
%137 = tail call float @sqrt(float %136)
br label %138
138: ; preds = %42, %91
%139 = phi float [ %137, %91 ], [ 0.000000e+00, %42 ]
%140 = fmul float %76, 0xBF044443C0000000
%141 = fmul float %71, %81
%142 = fmul float %55, 0xBECC4CD280000000
%143 = fmul float %49, 0xBEE080FCE0000000
%144 = fmul float %49, 0xBF2119C440000000
%145 = fmul float %49, 0x3F04684560000000
%146 = fmul float %49, %76
%147 = fmul float %64, 0x3EF3452B20000000
%148 = fmul float %55, 0x3F2018FDE0000000
%149 = fmul float %64, 0xBF283DEE00000000
%150 = fmul float %49, 0x3F1DCAE9E0000000
%151 = fmul float %49, 0xBF14200BA0000000
%152 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF979F3520000000, float 0x3F8F690DC0000000)
%153 = tail call float @llvm.fmuladd.f32(float %55, float 0xBFAB27A660000000, float %152)
%154 = tail call float @llvm.fmuladd.f32(float %64, float 0x3FA2026580000000, float %153)
%155 = tail call float @llvm.fmuladd.f32(float %71, float 0x3FAFDEBFC0000000, float %154)
%156 = tail call float @llvm.fmuladd.f32(float %151, float %55, float %155)
%157 = tail call float @llvm.fmuladd.f32(float %150, float %71, float %156)
%158 = tail call float @llvm.fmuladd.f32(float %149, float %71, float %157)
%159 = tail call float @llvm.fmuladd.f32(float %148, float %64, float %158)
%160 = tail call float @llvm.fmuladd.f32(float %78, float 0x3F19F5CFA0000000, float %159)
%161 = tail call float @llvm.fmuladd.f32(float %147, float %81, float %160)
%162 = tail call float @llvm.fmuladd.f32(float %146, float 0x3EA632F4E0000000, float %161)
%163 = tail call float @llvm.fmuladd.f32(float %145, float %80, float %162)
%164 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F05512120000000, float %163)
%165 = tail call float @llvm.fmuladd.f32(float %144, float %64, float %164)
%166 = tail call float @llvm.fmuladd.f32(float %76, float 0x3EE7D9C340000000, float %165)
%167 = tail call float @llvm.fmuladd.f32(float %143, float %77, float %166)
%168 = tail call float @llvm.fmuladd.f32(float %142, float %78, float %167)
%169 = tail call float @llvm.fmuladd.f32(float %141, float 0xBED218A080000000, float %168)
%170 = tail call float @llvm.fmuladd.f32(float %140, float %78, float %169)
store float %139, float* %1
ret float %170
}