#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.1789744E-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.25880231E-05, -0.21781974E-01, -0.53585429E-01,
                     0.33663522E-01,  0.63088670E-01,  -0.73855968E-04,
                     0.11193584E-03,  -0.17975667E-03, -0.14751505E-03,
                     0.11667734E-03,  0.10845865E-03,  0.68372763E-04,
                     0.19833979E-04,  0.48111880E-04,  0.57281322E-04,
                     -0.85413803E-05, -0.11287080E-03, -0.34575032E-05,
                     -0.43495206E-05, 0.48359789E-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 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] * x11 * x31 +
                   coeff[9] * x21 * x31 + coeff[10] * x32 + coeff[11] * x33 +
                   coeff[12] * x31 * x42 + coeff[13] * x12 + coeff[14] * x13 +
                   coeff[15] * x11 * x22 + coeff[16] * x12 * x31;
  v_target_theta = v_target_theta + coeff[17] * x21 * x32 + coeff[18] * x43 +
                   coeff[19] * x22 * x34;
  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 +
                             coeff[8] * x31 + 2 * coeff[13] * x11 +
                             3 * coeff[14] * x12 + coeff[15] * x22 +
                             2 * coeff[16] * x11 * x31,
                         2) +
                 dx2 * dx2 *
                     pow(0 + coeff[2] + coeff[5] * x11 + coeff[9] * x31 +
                             2 * coeff[15] * x21 * x11 + coeff[17] * x32 +
                             2 * coeff[19] * x21 * x34,
                         2) +
                 dx3 * dx3 *
                     pow(0 + coeff[3] + coeff[7] * x41 + coeff[8] * x11 +
                             coeff[9] * x21 + 2 * coeff[10] * x31 +
                             3 * coeff[11] * x32 + coeff[12] * x42 +
                             coeff[16] * x12 + 2 * coeff[17] * x31 * x21 +
                             4 * coeff[19] * x33 * x22,
                         2) +
                 dx4 * dx4 *
                     pow(0 + coeff[4] + coeff[6] * x11 + coeff[7] * x31 +
                             2 * coeff[12] * 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  -0x124(%rbp),%xmm0
ff
movss  %xmm0,-0x148(%rbp)
ff
movss  -0x148(%rbp),%xmm0
ff
mulss  -0x124(%rbp),%xmm0
ff
movss  %xmm0,-0x14c(%rbp)
ff
movss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x150(%rbp)
ff
movss  -0x150(%rbp),%xmm0
ff
mulss  -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  -0x164(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x168(%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  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x104(%rbp),%xmm0
ff
movss  -0x150(%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  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf8(%rbp),%xmm1
ff
mulss  -0x13c(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf4(%rbp),%xmm0
ff
mulss  -0x150(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x16c(%rbp)
ff
movss  -0x16c(%rbp),%xmm1
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
mulss  -0x148(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe8(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xe4(%rbp),%xmm1
ff
movss  -0x158(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe0(%rbp),%xmm0
ff
mulss  -0x150(%rbp),%xmm0
ff
movss  -0x164(%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
movss  -0x144(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd4(%rbp),%xmm1
ff
mulss  -0x13c(%rbp),%xmm1
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd0(%rbp),%xmm0
ff
mulss  -0x140(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x16c(%rbp)
ff
movss  -0x16c(%rbp),%xmm1
ff
movss  -0xcc(%rbp),%xmm0
ff
mulss  -0x148(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc8(%rbp),%xmm1
ff
movss  -0x168(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
mulss  -0x14c(%rbp),%xmm0
ff
movss  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x16c(%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,-0x170(%rbp)
ff
movss  -0x170(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    17a4 <target_theta+0x664>
jp     17a4 <target_theta+0x664>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x178(%rbp)
ff
jmp    1bba <target_theta+0xa7a>
movss  -0x120(%rbp),%xmm0
ff
mulss  -0x120(%rbp),%xmm0
ff
movss  %xmm0,-0x18c(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x10c(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf8(%rbp),%xmm1
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf0(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x809(%rip),%xmm1
mulss  -0xdc(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x7e5(%rip),%xmm0
mulss  -0xd8(%rbp),%xmm0
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd4(%rbp),%xmm1
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x7b1(%rip),%xmm0
mulss  -0xd0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x190(%rbp)
ff
movss  -0x128(%rbp),%xmm0
ff
mulss  -0x128(%rbp),%xmm0
ff
movss  %xmm0,-0x194(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x108(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x724(%rip),%xmm0
mulss  -0xd4(%rbp),%xmm0
ff
mulss  -0x148(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xcc(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x6e4(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
mulss  -0x148(%rbp),%xmm0
ff
movss  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x194(%rbp),%xmm1
ff
movss  -0x190(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x18c(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x188(%rbp)
ff
movss  -0x130(%rbp),%xmm0
ff
mulss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x184(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x104(%rbp),%xmm1
ff
movss  -0xf4(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf0(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xec(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x618(%rip),%xmm1
mulss  -0xe8(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x5f4(%rip),%xmm0
mulss  -0xe4(%rbp),%xmm0
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xe0(%rbp),%xmm1
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd0(%rbp),%xmm0
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x5a8(%rip),%xmm1
mulss  -0xcc(%rbp),%xmm1
ff
mulss  -0x150(%rbp),%xmm1
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x584(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
mulss  -0x158(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x188(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x184(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x180(%rbp)
ff
movss  -0x138(%rbp),%xmm0
ff
mulss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x17c(%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  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x4d8(%rip),%xmm1
mulss  -0xe0(%rbp),%xmm1
ff
mulss  -0x160(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x4ac(%rip),%xmm0
mulss  -0xc8(%rbp),%xmm0
ff
movss  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x180(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x17c(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x178(%rbp)
ff
movss  -0x178(%rbp),%xmm0
ff
movss  %xmm0,-0x174(%rbp)
ff
movss  -0x174(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x16c(%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,%xmm8
shufps $0x55,%xmm7,%xmm8
movss  0x8(%rdi),%xmm10
movss  0xc(%rdi),%xmm1
addss  0xdc9(%rip),%xmm10
mulss  %xmm0,%xmm10
addss  %xmm3,%xmm10
addss  0xdbb(%rip),%xmm1
movaps %xmm0,%xmm15
shufps $0x55,%xmm0,%xmm15
mulss  %xmm1,%xmm15
addss  %xmm3,%xmm15
movaps %xmm5,%xmm3
mulps  %xmm0,%xmm6
movaps %xmm6,%xmm2
shufps $0x55,%xmm6,%xmm2
movaps %xmm4,%xmm14
mulss  %xmm4,%xmm14
movaps %xmm5,%xmm13
mulss  %xmm5,%xmm13
movaps %xmm10,%xmm12
mulss  %xmm10,%xmm12
movaps %xmm10,%xmm0
mulss  %xmm12,%xmm0
movaps %xmm10,%xmm11
movss  %xmm0,0x1c(%rsp)
mulss  %xmm0,%xmm11
movaps %xmm15,%xmm0
mulss  %xmm15,%xmm0
movaps %xmm0,0x80(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm7,%xmm1
addss  %xmm0,%xmm1
addss  %xmm8,%xmm1
addss  %xmm6,%xmm1
addss  %xmm2,%xmm1
ucomiss %xmm0,%xmm1
jne    12ff <target_theta+0x1df>
jnp    162b <target_theta+0x50b>
movaps %xmm3,%xmm0
mulss  0xd2e(%rip),%xmm0
addss  0xd2a(%rip),%xmm0
mulss  %xmm7,%xmm7
movaps %xmm7,0xc0(%rsp)
movaps %xmm15,%xmm1
mulss  0xd16(%rip),%xmm1
addss  %xmm0,%xmm1
movaps %xmm10,%xmm0
mulss  0xd0a(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xd02(%rip),%xmm1
mulss  %xmm4,%xmm1
addss  %xmm0,%xmm1
movss  0xcf6(%rip),%xmm0
mulss  %xmm14,%xmm0
addss  %xmm1,%xmm0
movss  0xce9(%rip),%xmm1
mulss  %xmm13,%xmm1
addss  %xmm0,%xmm1
movss  0xcdc(%rip),%xmm0
mulss  %xmm4,%xmm0
mulss  %xmm10,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
movss  %xmm10,0x8(%rsp)
movss  %xmm11,0x14(%rsp)
movss  %xmm12,0xc(%rsp)
movaps %xmm13,0x50(%rsp)
movss  %xmm14,0x10(%rsp)
movaps %xmm15,0x40(%rsp)
movss  %xmm4,0x4(%rsp)
movaps %xmm3,0x30(%rsp)
movaps %xmm2,0x70(%rsp)
movaps %xmm6,0x20(%rsp)
movaps %xmm8,0x60(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x18(%rsp)
movaps 0x60(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movss  0x4(%rsp),%xmm2
movss  0xc44(%rip),%xmm0
mulss  %xmm2,%xmm0
addss  0xc58(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
mulss  0xc4b(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xc43(%rip),%xmm1
movaps 0x30(%rsp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xc2e(%rip),%xmm2
mulss  0xc(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0xc20(%rip),%xmm0
mulss  %xmm3,%xmm0
mulss  0x14(%rsp),%xmm0
addss  %xmm2,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x60(%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 0x40(%rsp),%xmm0
mulss  0xbd2(%rip),%xmm0
addss  0xbce(%rip),%xmm0
movss  0xb9a(%rip),%xmm1
mulss  0x4(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xba0(%rip),%xmm0
movaps 0x30(%rsp),%xmm4
mulss  %xmm4,%xmm0
addss  %xmm1,%xmm0
movaps %xmm0,%xmm1
movss  0xba0(%rip),%xmm0
movss  0x8(%rsp),%xmm3
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
movss  0xb8e(%rip),%xmm1
mulss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xb80(%rip),%xmm0
mulss  0x80(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  0xb6f(%rip),%xmm1
mulss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xb61(%rip),%xmm2
mulss  %xmm3,%xmm2
mulss  %xmm4,%xmm2
addss  %xmm1,%xmm2
movss  0xb51(%rip),%xmm0
movss  0x1c(%rsp),%xmm1
mulss  %xmm1,%xmm0
mulss  0x50(%rsp),%xmm0
addss  %xmm2,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x20(%rsp),%xmm0
addss  0x18(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x70(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movss  0xac3(%rip),%xmm0
mulss  0x4(%rsp),%xmm0
addss  0xb01(%rip),%xmm0
movss  0x8(%rsp),%xmm2
movss  0xad3(%rip),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm0
movss  0xae4(%rip),%xmm1
mulss  0x40(%rsp),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xad2(%rip),%xmm0
mulss  0x80(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x70(%rsp),%xmm0
addss  0x20(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15f3 <target_theta+0x4d3>
sqrtss %xmm0,%xmm0
jmp    15f8 <target_theta+0x4d8>
call   1040 <sqrt@plt>
movss  0x8(%rsp),%xmm10
movss  0x14(%rsp),%xmm11
movss  0xc(%rsp),%xmm12
movaps 0x50(%rsp),%xmm13
movss  0x10(%rsp),%xmm14
movaps 0x40(%rsp),%xmm15
movss  0x4(%rsp),%xmm4
movaps 0x30(%rsp),%xmm3
movss  0xa1c(%rip),%xmm8
mulss  %xmm4,%xmm8
movaps %xmm4,%xmm2
movaps %xmm4,%xmm9
movss  0x9fc(%rip),%xmm1
mulss  %xmm4,%xmm1
movss  0x9ec(%rip),%xmm6
mulss  %xmm4,%xmm6
movss  0x9d8(%rip),%xmm7
mulss  %xmm4,%xmm7
mulss  0x9d0(%rip),%xmm2
movss  0x9f0(%rip),%xmm4
mulss  %xmm3,%xmm4
addss  0xa1c(%rip),%xmm2
movss  0x9d4(%rip),%xmm5
mulss  %xmm3,%xmm5
mulss  %xmm3,%xmm7
mulss  0x9c0(%rip),%xmm3
addss  %xmm2,%xmm3
movss  0x9cc(%rip),%xmm2
mulss  %xmm10,%xmm2
addss  %xmm3,%xmm2
movss  0x9d7(%rip),%xmm3
mulss  %xmm15,%xmm3
addss  %xmm2,%xmm3
addss  %xmm7,%xmm3
mulss  %xmm15,%xmm6
addss  %xmm3,%xmm6
movss  0x999(%rip),%xmm2
mulss  %xmm10,%xmm2
mulss  %xmm15,%xmm2
addss  %xmm6,%xmm2
mulss  %xmm10,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm10,%xmm5
addss  %xmm1,%xmm5
movss  0x9a5(%rip),%xmm1
mulss  %xmm12,%xmm1
addss  %xmm5,%xmm1
movaps %xmm15,%xmm5
movaps 0x80(%rsp),%xmm3
mulss  %xmm3,%xmm5
movss  0x1c(%rsp),%xmm2
mulss  0x982(%rip),%xmm2
addss  %xmm1,%xmm2
movss  0x94e(%rip),%xmm1
mulss  %xmm10,%xmm1
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  0x93d(%rip),%xmm2
mulss  %xmm14,%xmm2
mulss  %xmm14,%xmm9
mulss  0x952(%rip),%xmm14
mulss  0x94d(%rip),%xmm9
addss  %xmm1,%xmm14
addss  %xmm14,%xmm9
movss  0x927(%rip),%xmm1
mulss  %xmm13,%xmm1
mulss  %xmm13,%xmm8
addss  %xmm9,%xmm8
mulss  %xmm10,%xmm2
addss  %xmm8,%xmm2
mulss  %xmm12,%xmm4
addss  %xmm2,%xmm4
mulss  0x915(%rip),%xmm5
addss  %xmm4,%xmm5
mulss  %xmm11,%xmm1
addss  %xmm5,%xmm1
movss  %xmm0,(%rbx)
movaps %xmm1,%xmm0
add    $0x130,%rsp
pop    %rbx
ret

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

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 %55, %55
%77 = fmul float %64, %64
%78 = fmul float %64, %77
%79 = fmul float %64, %78
%80 = fmul float %71, %71
%81 = extractelement <2 x float> %58, i64 0
%82 = fadd float %81, 0.000000e+00
%83 = extractelement <2 x float> %58, i64 1
%84 = fadd float %82, %83
%85 = extractelement <2 x float> %74, i64 0
%86 = fadd float %84, %85
%87 = extractelement <2 x float> %74, i64 1
%88 = fadd float %86, %87
%89 = fcmp oeq float %88, 0.000000e+00
br i1 %89, label %137, label %90
90: ; preds = %42
%91 = fmul <2 x float> %58, %58
%92 = extractelement <2 x float> %91, i64 0
%93 = tail call float @llvm.fmuladd.f32(float %55, float 0xBF135C63E0000000, float 0xBF964E0380000000)
%94 = tail call float @llvm.fmuladd.f32(float %71, float 0x3F1D57E320000000, float %93)
%95 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF2355C8A0000000, float %94)
%96 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F193977A0000000, float %95)
%97 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F26862080000000, float %96)
%98 = tail call float @llvm.fmuladd.f32(float %76, float 0xBEE1E99E60000000, float %97)
%99 = fmul float %49, 0xBF2D96A1A0000000
%100 = tail call float @llvm.fmuladd.f32(float %99, float %64, float %98)
%101 = tail call float @pow(float %100, i32 2)
%102 = fmul float %83, %83
%103 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF135C63E0000000, float 0xBFAB6F8CA0000000)
%104 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F1E961580000000, float %103)
%105 = fmul float %55, 0xBEF1E99E60000000
%106 = tail call float @llvm.fmuladd.f32(float %105, float %49, float %104)
%107 = tail call float @llvm.fmuladd.f32(float %77, float 0xBECD00EE80000000, float %106)
%108 = fmul float %55, 0x3EE44897C0000000
%109 = tail call float @llvm.fmuladd.f32(float %108, float %79, float %107)
%110 = tail call float @pow(float %109, i32 2)
%111 = fmul float %102, %110
%112 = tail call float @llvm.fmuladd.f32(float %92, float %101, float %111)
%113 = fmul <2 x float> %74, %74
%114 = extractelement <2 x float> %113, i64 0
%115 = tail call float @llvm.fmuladd.f32(float %71, float 0xBF278FA200000000, float 0x3FA13C5860000000)
%116 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF2355C8A0000000, float %115)
%117 = tail call float @llvm.fmuladd.f32(float %55, float 0x3F1E961580000000, float %116)
%118 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F2C6E8960000000, float %117)
%119 = tail call float @llvm.fmuladd.f32(float %77, float 0x3F2AE2A0C0000000, float %118)
%120 = tail call float @llvm.fmuladd.f32(float %80, float 0x3EF4CC24A0000000, float %119)
%121 = tail call float @llvm.fmuladd.f32(float %75, float 0xBF1D96A1A0000000, float %120)
%122 = fmul float %64, 0xBEDD00EE80000000
%123 = tail call float @llvm.fmuladd.f32(float %122, float %55, float %121)
%124 = fmul float %78, 0x3EF44897C0000000
%125 = tail call float @llvm.fmuladd.f32(float %124, float %76, float %123)
%126 = tail call float @pow(float %125, i32 2)
%127 = tail call float @llvm.fmuladd.f32(float %114, float %126, float %112)
%128 = fmul float %87, %87
%129 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F1D57E320000000, float 0x3FB0269440000000)
%130 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF278FA200000000, float %129)
%131 = fmul float %71, 0x3F04CC24A0000000
%132 = tail call float @llvm.fmuladd.f32(float %131, float %64, float %130)
%133 = tail call float @llvm.fmuladd.f32(float %80, float 0xBEEB5D64C0000000, float %132)
%134 = tail call float @pow(float %133, i32 2)
%135 = tail call float @llvm.fmuladd.f32(float %128, float %134, float %127)
%136 = tail call float @sqrt(float %135)
br label %137
137: ; preds = %42, %90
%138 = phi float [ %136, %90 ], [ 0.000000e+00, %42 ]
%139 = fmul float %76, 0x3ED44897C0000000
%140 = fmul float %71, %80
%141 = fmul float %55, 0xBECD00EE80000000
%142 = fmul float %75, 0xBF1D96A1A0000000
%143 = fmul float %49, 0xBEE1E99E60000000
%144 = fmul float %49, %75
%145 = fmul float %64, 0x3EF4CC24A0000000
%146 = fmul float %55, 0x3F1E961580000000
%147 = fmul float %49, 0xBF2355C8A0000000
%148 = fmul float %64, 0xBF278FA200000000
%149 = fmul float %49, 0x3F1D57E320000000
%150 = fmul float %49, 0xBF135C63E0000000
%151 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF964E0380000000, float 0x3F92530740000000)
%152 = tail call float @llvm.fmuladd.f32(float %55, float 0xBFAB6F8CA0000000, float %151)
%153 = tail call float @llvm.fmuladd.f32(float %64, float 0x3FA13C5860000000, float %152)
%154 = tail call float @llvm.fmuladd.f32(float %71, float 0x3FB0269440000000, float %153)
%155 = tail call float @llvm.fmuladd.f32(float %150, float %55, float %154)
%156 = tail call float @llvm.fmuladd.f32(float %149, float %71, float %155)
%157 = tail call float @llvm.fmuladd.f32(float %148, float %71, float %156)
%158 = tail call float @llvm.fmuladd.f32(float %147, float %64, float %157)
%159 = tail call float @llvm.fmuladd.f32(float %146, float %64, float %158)
%160 = tail call float @llvm.fmuladd.f32(float %77, float 0x3F1C6E8960000000, float %159)
%161 = tail call float @llvm.fmuladd.f32(float %78, float 0x3F11EC6B20000000, float %160)
%162 = tail call float @llvm.fmuladd.f32(float %145, float %80, float %161)
%163 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F093977A0000000, float %162)
%164 = tail call float @llvm.fmuladd.f32(float %144, float 0x3F0E082B40000000, float %163)
%165 = tail call float @llvm.fmuladd.f32(float %143, float %76, float %164)
%166 = tail call float @llvm.fmuladd.f32(float %142, float %64, float %165)
%167 = tail call float @llvm.fmuladd.f32(float %141, float %77, float %166)
%168 = tail call float @llvm.fmuladd.f32(float %140, float 0xBED23E4320000000, float %167)
%169 = tail call float @llvm.fmuladd.f32(float %139, float %79, float %168)
store float %138, float* %1
ret float %169
}