#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.1794413E-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.33807939E-05, -0.21758484E-01, -0.53595312E-01,
                     0.33636115E-01,  0.63103825E-01,  -0.73540403E-04,
                     0.11159950E-03,  -0.17881418E-03, -0.14938906E-03,
                     0.11590434E-03,  0.11188471E-03,  0.66711131E-04,
                     0.19361749E-04,  0.48538499E-04,  0.56002220E-04,
                     -0.84363337E-05, -0.11035437E-03, -0.34471000E-05,
                     -0.42447150E-05, 0.13748117E-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 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;
  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,
                         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,
                         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    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x14,-0x18(%rbp)
movss  0xeb3(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xe92(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xe85(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  0xe74(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  0xe63(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xe42(%rip),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  0xe35(%rip),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  0xe24(%rip),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  0xe13(%rip),%xmm0
movss  %xmm0,-0x74(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
lea    -0x110(%rbp),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x54,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x0,-0x114(%rbp)
jne    12d8 <target_theta+0x198>
movl   $0x1,-0x114(%rbp)
movl   $0x0,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12d3 <target_theta+0x193>
movslq -0x118(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
movslq -0x118(%rbp),%rax
ucomiss -0x80(%rbp,%rax,4),%xmm0
jne    1281 <target_theta+0x141>
jp     1281 <target_theta+0x141>
jmp    12bf <target_theta+0x17f>
movslq -0x118(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
movslq -0x118(%rbp),%rax
subss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd89(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x118(%rbp),%rax
movss  %xmm0,-0xb0(%rbp,%rax,4)
ff ff
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1248 <target_theta+0x108>
jmp    12d8 <target_theta+0x198>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  -0x80(%rbp),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xd2f(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x11c(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
movss  %xmm0,-0x120(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  -0x7c(%rbp),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xce5(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x124(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0x128(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  -0x78(%rbp),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc9a(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x12c(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
movss  %xmm0,-0x130(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
subss  -0x74(%rbp),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc4f(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x134(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
movss  %xmm0,-0x138(%rbp)
ff
movss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x13c(%rbp)
ff
movss  -0x13c(%rbp),%xmm0
ff
mulss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x140(%rbp)
ff
movss  -0x140(%rbp),%xmm0
ff
mulss  -0x11c(%rbp),%xmm0
ff
movss  %xmm0,-0x144(%rbp)
ff
movss  -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  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x15c(%rbp)
ff
movss  -0x15c(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x160(%rbp)
ff
movss  -0x160(%rbp),%xmm0
ff
mulss  -0x134(%rbp),%xmm0
ff
movss  %xmm0,-0x164(%rbp)
ff
movss  -0x1c(%rbp),%xmm1
addss  -0x110(%rbp),%xmm1
ff
movss  -0x10c(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x108(%rbp),%xmm1
ff
movss  -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  -0x15c(%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  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf4(%rbp),%xmm0
ff
mulss  -0x150(%rbp),%xmm0
ff
movss  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x168(%rbp)
ff
movss  -0x168(%rbp),%xmm1
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0x13c(%rbp),%xmm0
ff
movss  -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  -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
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,-0x168(%rbp)
ff
movss  -0x168(%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  -0x164(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
movss  -0x14c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x168(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x120(%rbp),%xmm0
ff
addss  -0x128(%rbp),%xmm0
ff
addss  -0x130(%rbp),%xmm0
ff
addss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x16c(%rbp)
ff
movss  -0x16c(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1784 <target_theta+0x644>
jp     1784 <target_theta+0x644>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x174(%rbp)
ff
jmp    1b6a <target_theta+0xa2a>
movss  -0x120(%rbp),%xmm0
ff
mulss  -0x120(%rbp),%xmm0
ff
movss  %xmm0,-0x188(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0x10c(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xf8(%rbp),%xmm1
ff
movss  -0x15c(%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  0x829(%rip),%xmm1
mulss  -0xdc(%rbp),%xmm1
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x805(%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  0x7d1(%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,-0x18c(%rbp)
ff
movss  -0x128(%rbp),%xmm0
ff
mulss  -0x128(%rbp),%xmm0
ff
movss  %xmm0,-0x190(%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  0x744(%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  0x704(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x190(%rbp),%xmm1
ff
movss  -0x18c(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x188(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x184(%rbp)
ff
movss  -0x130(%rbp),%xmm0
ff
mulss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x180(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0x104(%rbp),%xmm0
ff
movss  -0xf4(%rbp),%xmm1
ff
movss  -0x15c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xf0(%rbp),%xmm0
ff
movss  -0x13c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xec(%rbp),%xmm1
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x640(%rip),%xmm0
mulss  -0xe8(%rbp),%xmm0
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0x61c(%rip),%xmm1
mulss  -0xe4(%rbp),%xmm1
ff
movss  -0x154(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xe0(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd0(%rbp),%xmm1
ff
movss  -0x140(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x5d0(%rip),%xmm0
mulss  -0xcc(%rbp),%xmm0
ff
mulss  -0x150(%rbp),%xmm0
ff
movss  -0x148(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x184(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x180(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x17c(%rbp)
ff
movss  -0x138(%rbp),%xmm0
ff
mulss  -0x138(%rbp),%xmm0
ff
movss  %xmm0,-0x178(%rbp)
ff
xorps  %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  0x528(%rip),%xmm1
mulss  -0xe0(%rbp),%xmm1
ff
mulss  -0x15c(%rbp),%xmm1
ff
movss  -0x150(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x4fc(%rip),%xmm0
mulss  -0xc8(%rbp),%xmm0
ff
movss  -0x160(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x17c(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x178(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x174(%rbp)
ff
movss  -0x174(%rbp),%xmm0
ff
movss  %xmm0,-0x170(%rbp)
ff
movss  -0x170(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x168(%rbp),%xmm0
ff
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_theta>:
push   %rbx
sub    $0x130,%rsp
mov    %rsi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x110(%rsp)
movq   $0x0,0x120(%rsp)
movaps 0xeb7(%rip),%xmm1
movaps %xmm1,0x100(%rsp)
movaps %xmm0,0xe0(%rsp)
movq   $0x0,0xf0(%rsp)
movaps 0xea4(%rip),%xmm1
movaps %xmm1,0xd0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movq   $0x0,0xb0(%rsp)
xorps  %xmm1,%xmm1
test   %edx,%edx
jle    120a <target_theta+0xea>
mov    %edx,%eax
add    $0xffffffffffffffff,%rax
movss  0xe7b(%rip),%xmm2
movss  0xe77(%rip),%xmm1
xor    %ecx,%ecx
movss  0xe71(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm2
jne    11c7 <target_theta+0xa7>
jnp    11db <target_theta+0xbb>
subss  %xmm2,%xmm1
movaps %xmm0,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0x90(%rsp,%rcx,4)
cmp    %rcx,%rax
je     11f8 <target_theta+0xd8>
movss  0x104(%rsp,%rcx,4),%xmm2
movss  0xd4(%rsp,%rcx,4),%xmm1
add    $0x1,%rcx
jmp    11c0 <target_theta+0xa0>
movsd  0x90(%rsp),%xmm1
movsd  0x98(%rsp),%xmm0
movss  0xe0e(%rip),%xmm2
movss  (%rdi),%xmm3
addss  %xmm2,%xmm3
mulss  %xmm1,%xmm3
movss  0xe06(%rip),%xmm5
addss  0x4(%rdi),%xmm2
addss  %xmm5,%xmm3
movaps %xmm1,%xmm4
shufps $0x55,%xmm1,%xmm4
mulss  %xmm2,%xmm4
addss  %xmm5,%xmm4
movsd  (%rbx),%xmm7
movsd  0x8(%rbx),%xmm6
mulps  %xmm1,%xmm7
movaps %xmm7,%xmm8
shufps $0x55,%xmm7,%xmm8
movss  0x8(%rdi),%xmm14
movss  0xc(%rdi),%xmm1
addss  0xdc9(%rip),%xmm14
mulss  %xmm0,%xmm14
addss  %xmm5,%xmm14
addss  0xdbb(%rip),%xmm1
movaps %xmm0,%xmm2
shufps $0x55,%xmm0,%xmm2
mulss  %xmm1,%xmm2
addss  %xmm5,%xmm2
mulps  %xmm0,%xmm6
movaps %xmm6,%xmm5
shufps $0x55,%xmm6,%xmm5
movaps %xmm3,%xmm13
mulss  %xmm3,%xmm13
movaps %xmm4,%xmm11
mulss  %xmm4,%xmm11
movaps %xmm14,%xmm12
mulss  %xmm14,%xmm12
movaps %xmm2,0x40(%rsp)
mulss  %xmm2,%xmm2
movaps %xmm2,0x70(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm7,%xmm1
addss  %xmm0,%xmm1
addss  %xmm8,%xmm1
addss  %xmm6,%xmm1
addss  %xmm5,%xmm1
ucomiss %xmm0,%xmm1
jne    12dd <target_theta+0x1bd>
jnp    15ce <target_theta+0x4ae>
movaps %xmm4,%xmm0
mulss  0xd50(%rip),%xmm0
addss  0xd4c(%rip),%xmm0
mulss  %xmm7,%xmm7
movaps %xmm7,0xc0(%rsp)
movaps 0x40(%rsp),%xmm1
mulss  0xd37(%rip),%xmm1
addss  %xmm0,%xmm1
movaps %xmm14,%xmm0
mulss  0xd2b(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xd23(%rip),%xmm1
mulss  %xmm3,%xmm1
addss  %xmm0,%xmm1
movss  0xd17(%rip),%xmm0
mulss  %xmm13,%xmm0
addss  %xmm1,%xmm0
movss  0xd0a(%rip),%xmm1
movaps %xmm11,0x80(%rsp)
mulss  %xmm11,%xmm1
addss  %xmm0,%xmm1
movss  0xcf4(%rip),%xmm0
mulss  %xmm3,%xmm0
mulss  %xmm14,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
movss  %xmm14,0x10(%rsp)
movss  %xmm12,0x14(%rsp)
movss  %xmm13,0x18(%rsp)
movss  %xmm3,0xc(%rsp)
movaps %xmm4,0x30(%rsp)
movaps %xmm5,0x60(%rsp)
movaps %xmm6,0x20(%rsp)
movaps %xmm8,0x50(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x1c(%rsp)
movaps 0x50(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movss  0xc(%rsp),%xmm2
movss  0xc6f(%rip),%xmm0
mulss  %xmm2,%xmm0
addss  0xc83(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0x10(%rsp),%xmm0
mulss  0xc76(%rip),%xmm0
addss  %xmm1,%xmm0
movss  0xc6e(%rip),%xmm1
movaps 0x30(%rsp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xc59(%rip),%xmm2
mulss  0x14(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  0xc4b(%rip),%xmm0
mulss  %xmm3,%xmm0
addss  %xmm2,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x50(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
mulss  0xc0(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x1c(%rsp)
movaps 0x20(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x40(%rsp),%xmm0
mulss  0xc03(%rip),%xmm0
addss  0xbff(%rip),%xmm0
movss  0xbcb(%rip),%xmm1
mulss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xbd1(%rip),%xmm0
movaps 0x30(%rsp),%xmm3
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
movaps %xmm0,%xmm1
movss  0xbd1(%rip),%xmm0
movss  0x10(%rsp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xbbf(%rip),%xmm1
mulss  0x14(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xbb1(%rip),%xmm0
mulss  0x70(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  0xba3(%rip),%xmm1
mulss  0x18(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  0xb95(%rip),%xmm0
mulss  %xmm2,%xmm0
mulss  %xmm3,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x20(%rsp),%xmm0
addss  0x1c(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x60(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movss  0xb13(%rip),%xmm0
mulss  0xc(%rsp),%xmm0
addss  0xb4d(%rip),%xmm0
movss  0x10(%rsp),%xmm2
movss  0xb23(%rip),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm0
movss  0xb30(%rip),%xmm1
mulss  0x40(%rsp),%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xb1e(%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     15a0 <target_theta+0x480>
sqrtss %xmm0,%xmm0
jmp    15a5 <target_theta+0x485>
call   1040 <sqrt@plt>
movss  0x10(%rsp),%xmm14
movaps 0x80(%rsp),%xmm11
movss  0x14(%rsp),%xmm12
movss  0x18(%rsp),%xmm13
movss  0xc(%rsp),%xmm3
movaps 0x30(%rsp),%xmm4
movss  0xa8d(%rip),%xmm8
mulss  %xmm4,%xmm8
movss  0xa6b(%rip),%xmm9
mulss  %xmm3,%xmm9
movaps %xmm3,%xmm10
movss  0xa65(%rip),%xmm15
movss  0xa45(%rip),%xmm5
mulss  %xmm3,%xmm5
movss  0xa35(%rip),%xmm6
mulss  %xmm3,%xmm6
movss  0xa21(%rip),%xmm7
mulss  %xmm3,%xmm7
mulss  0xa19(%rip),%xmm3
addss  0xa69(%rip),%xmm3
mulss  %xmm4,%xmm15
mulss  %xmm4,%xmm7
mulss  0xa1c(%rip),%xmm4
addss  %xmm3,%xmm4
movss  0xa28(%rip),%xmm1
mulss  %xmm14,%xmm1
addss  %xmm4,%xmm1
movss  0xa2f(%rip),%xmm2
movaps 0x40(%rsp),%xmm3
mulss  %xmm3,%xmm2
addss  %xmm1,%xmm2
addss  %xmm7,%xmm2
mulss  %xmm3,%xmm6
addss  %xmm2,%xmm6
movss  0x9f2(%rip),%xmm1
mulss  %xmm14,%xmm1
mulss  %xmm3,%xmm1
addss  %xmm6,%xmm1
mulss  %xmm14,%xmm5
addss  %xmm1,%xmm5
movaps %xmm3,%xmm6
mulss  %xmm14,%xmm15
addss  %xmm5,%xmm15
movss  0x9f3(%rip),%xmm1
mulss  %xmm12,%xmm1
addss  %xmm15,%xmm1
movaps %xmm14,%xmm2
mulss  %xmm12,%xmm2
mulss  0x9dc(%rip),%xmm2
movaps 0x70(%rsp),%xmm3
mulss  %xmm3,%xmm6
addss  %xmm1,%xmm2
movss  0x9a7(%rip),%xmm1
mulss  %xmm14,%xmm1
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  0x996(%rip),%xmm2
mulss  %xmm13,%xmm2
mulss  %xmm13,%xmm10
mulss  0x9a3(%rip),%xmm13
addss  %xmm1,%xmm13
mulss  0x999(%rip),%xmm10
addss  %xmm13,%xmm10
mulss  %xmm11,%xmm9
addss  %xmm10,%xmm9
mulss  %xmm14,%xmm2
addss  %xmm9,%xmm2
mulss  %xmm12,%xmm8
addss  %xmm2,%xmm8
mulss  0x972(%rip),%xmm6
addss  %xmm8,%xmm6
mulss  0x968(%rip),%xmm11
addss  %xmm6,%xmm11
movss  %xmm0,(%rbx)
movaps %xmm11,%xmm0
add    $0x130,%rsp
pop    %rbx
ret

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

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 %71, %71
%79 = extractelement <2 x float> %58, i64 0
%80 = fadd float %79, 0.000000e+00
%81 = extractelement <2 x float> %58, i64 1
%82 = fadd float %80, %81
%83 = extractelement <2 x float> %74, i64 0
%84 = fadd float %82, %83
%85 = extractelement <2 x float> %74, i64 1
%86 = fadd float %84, %85
%87 = fcmp oeq float %86, 0.000000e+00
br i1 %87, label %132, label %88
88: ; preds = %42
%89 = fmul <2 x float> %58, %58
%90 = extractelement <2 x float> %89, i64 0
%91 = tail call float @llvm.fmuladd.f32(float %55, float 0xBF13473680000000, float 0xBF9647DB20000000)
%92 = tail call float @llvm.fmuladd.f32(float %71, float 0x3F1D4150C0000000, float %91)
%93 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF2394AA40000000, float %92)
%94 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F1972BA20000000, float %93)
%95 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F26055E40000000, float %94)
%96 = tail call float @llvm.fmuladd.f32(float %76, float 0xBEE1B138E0000000, float %95)
%97 = fmul float %49, 0xBF2CEDC1A0000000
%98 = tail call float @llvm.fmuladd.f32(float %97, float %64, float %96)
%99 = tail call float @pow(float %98, i32 2)
%100 = fmul float %81, %81
%101 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF13473680000000, float 0xBFAB70D840000000)
%102 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F1E623560000000, float %101)
%103 = fmul float %55, 0xBEF1B138E0000000
%104 = tail call float @llvm.fmuladd.f32(float %103, float %49, float %102)
%105 = tail call float @llvm.fmuladd.f32(float %77, float 0xBECCEA9740000000, float %104)
%106 = tail call float @llvm.fmuladd.f32(float %55, float 0x3EC710C580000000, float %105)
%107 = tail call float @pow(float %106, i32 2)
%108 = fmul float %100, %107
%109 = tail call float @llvm.fmuladd.f32(float %90, float %99, float %108)
%110 = fmul <2 x float> %74, %74
%111 = extractelement <2 x float> %110, i64 0
%112 = tail call float @llvm.fmuladd.f32(float %71, float 0xBF27700220000000, float 0x3FA138C0C0000000)
%113 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF2394AA40000000, float %112)
%114 = tail call float @llvm.fmuladd.f32(float %55, float 0x3F1E623560000000, float %113)
%115 = tail call float @llvm.fmuladd.f32(float %64, float 0x3F2D5474A0000000, float %114)
%116 = tail call float @llvm.fmuladd.f32(float %77, float 0x3F2A3B5CC0000000, float %115)
%117 = tail call float @llvm.fmuladd.f32(float %78, float 0x3EF44D6140000000, float %116)
%118 = tail call float @llvm.fmuladd.f32(float %75, float 0xBF1CEDC1A0000000, float %117)
%119 = fmul float %64, 0xBEDCEA9740000000
%120 = tail call float @llvm.fmuladd.f32(float %119, float %55, float %118)
%121 = tail call float @pow(float %120, i32 2)
%122 = tail call float @llvm.fmuladd.f32(float %111, float %121, float %109)
%123 = fmul float %85, %85
%124 = tail call float @llvm.fmuladd.f32(float %49, float 0x3F1D4150C0000000, float 0x3FB0279280000000)
%125 = tail call float @llvm.fmuladd.f32(float %64, float 0xBF27700220000000, float %124)
%126 = fmul float %71, 0x3F044D6140000000
%127 = tail call float @llvm.fmuladd.f32(float %126, float %64, float %125)
%128 = tail call float @llvm.fmuladd.f32(float %78, float 0xBEEAB49780000000, float %127)
%129 = tail call float @pow(float %128, i32 2)
%130 = tail call float @llvm.fmuladd.f32(float %123, float %129, float %122)
%131 = tail call float @sqrt(float %130)
br label %132
132: ; preds = %42, %88
%133 = phi float [ %131, %88 ], [ 0.000000e+00, %42 ]
%134 = fmul float %71, %78
%135 = fmul float %55, 0xBECCEA9740000000
%136 = fmul float %75, 0xBF1CEDC1A0000000
%137 = fmul float %49, 0xBEE1B138E0000000
%138 = fmul float %49, %75
%139 = fmul float %64, 0x3EF44D6140000000
%140 = fmul float %64, %77
%141 = fmul float %55, 0x3F1E623560000000
%142 = fmul float %49, 0xBF2394AA40000000
%143 = fmul float %64, 0xBF27700220000000
%144 = fmul float %49, 0x3F1D4150C0000000
%145 = fmul float %49, 0xBF13473680000000
%146 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF9647DB20000000, float 0x3F925F0F40000000)
%147 = tail call float @llvm.fmuladd.f32(float %55, float 0xBFAB70D840000000, float %146)
%148 = tail call float @llvm.fmuladd.f32(float %64, float 0x3FA138C0C0000000, float %147)
%149 = tail call float @llvm.fmuladd.f32(float %71, float 0x3FB0279280000000, float %148)
%150 = tail call float @llvm.fmuladd.f32(float %145, float %55, float %149)
%151 = tail call float @llvm.fmuladd.f32(float %144, float %71, float %150)
%152 = tail call float @llvm.fmuladd.f32(float %143, float %71, float %151)
%153 = tail call float @llvm.fmuladd.f32(float %142, float %64, float %152)
%154 = tail call float @llvm.fmuladd.f32(float %141, float %64, float %153)
%155 = tail call float @llvm.fmuladd.f32(float %77, float 0x3F1D5474A0000000, float %154)
%156 = tail call float @llvm.fmuladd.f32(float %140, float 0x3F117CE880000000, float %155)
%157 = tail call float @llvm.fmuladd.f32(float %139, float %78, float %156)
%158 = tail call float @llvm.fmuladd.f32(float %75, float 0x3F0972BA20000000, float %157)
%159 = tail call float @llvm.fmuladd.f32(float %138, float 0x3F0D5C7DA0000000, float %158)
%160 = tail call float @llvm.fmuladd.f32(float %137, float %76, float %159)
%161 = tail call float @llvm.fmuladd.f32(float %136, float %64, float %160)
%162 = tail call float @llvm.fmuladd.f32(float %135, float %77, float %161)
%163 = tail call float @llvm.fmuladd.f32(float %134, float 0xBED1CDBA60000000, float %162)
%164 = tail call float @llvm.fmuladd.f32(float %76, float 0x3EB710C580000000, float %163)
store float %133, float* %1
ret float %164
}