#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_x(float *x, float *dx, int m) {
  int ncoeff = 7;
  float avdat = 0.3007177E+00;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18000E+02, -0.18013E+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.18000E+02, 0.17988E+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[8] = {
      -0.46120376E-05, -0.38581341E+02, 0.64340477E+02,  0.39774841E+00,
      0.12053976E+01,  -0.72694546E+00, -0.65956688E+00, 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 x21 = x2;
  float x31 = x3;
  float x41 = x4;
  float v_target_x = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x31 +
                     coeff[3] * x11 * x21 + coeff[4] * x31 * x41 +
                     coeff[5] * x21 * x31 + coeff[6] * x11 * x41;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_x =
      dxall == 0
          ? 0
          : sqrt(+dx1 * dx1 *
                     pow(0 + coeff[1] + coeff[3] * x21 + coeff[6] * x41, 2) +
                 dx2 * dx2 * pow(0 + coeff[3] * x11 + coeff[5] * x31, 2) +
                 dx3 * dx3 *
                     pow(0 + coeff[2] + coeff[4] * x41 + coeff[5] * x21, 2) +
                 dx4 * dx4 * pow(0 + coeff[4] * x31 + coeff[6] * x11, 2));
  dx[0] = dv_target_x;
  return v_target_x;
}


x86 assembly (clang, -O0):
<target_x>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x7,-0x18(%rbp)
movss  0xec3(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xea2(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xe95(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  0xe84(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  0xe73(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movss  0xe52(%rip),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  0xe45(%rip),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  0xe34(%rip),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  0xe23(%rip),%xmm0
movss  %xmm0,-0x74(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
mov    0xe34(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe2e(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0xe28(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xe22(%rip),%rax
mov    %rax,-0xb8(%rbp)
movl   $0x0,-0xd4(%rbp)
cmpl   $0x0,-0xd4(%rbp)
jne    12e8 <target_x+0x1b8>
movl   $0x1,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12e3 <target_x+0x1b3>
movslq -0xd8(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
movslq -0xd8(%rbp),%rax
ucomiss -0x80(%rbp,%rax,4),%xmm0
jne    1291 <target_x+0x161>
jp     1291 <target_x+0x161>
jmp    12cf <target_x+0x19f>
movslq -0xd8(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
movslq -0xd8(%rbp),%rax
subss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd71(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0xd8(%rbp),%rax
movss  %xmm0,-0xb0(%rbp,%rax,4)
ff ff
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1258 <target_x+0x128>
jmp    12e8 <target_x+0x1b8>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  -0x80(%rbp),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xd17(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xdc(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
movss  %xmm0,-0xe0(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  -0x7c(%rbp),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xccd(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xe4(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0xe8(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  -0x78(%rbp),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc82(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xec(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
movss  %xmm0,-0xf0(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
subss  -0x74(%rbp),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc37(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xf4(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
movss  %xmm0,-0xf8(%rbp)
ff
movss  -0xdc(%rbp),%xmm0
ff
movss  %xmm0,-0xfc(%rbp)
ff
movss  -0xe4(%rbp),%xmm0
ff
movss  %xmm0,-0x100(%rbp)
ff
movss  -0xec(%rbp),%xmm0
ff
movss  %xmm0,-0x104(%rbp)
ff
movss  -0xf4(%rbp),%xmm0
ff
movss  %xmm0,-0x108(%rbp)
ff
movss  -0x1c(%rbp),%xmm0
addss  -0xd0(%rbp),%xmm0
ff
movss  -0xcc(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc8(%rbp),%xmm0
ff
movss  -0x104(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc4(%rbp),%xmm1
ff
mulss  -0xfc(%rbp),%xmm1
ff
movss  -0x100(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc0(%rbp),%xmm0
ff
mulss  -0x104(%rbp),%xmm0
ff
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xbc(%rbp),%xmm1
ff
mulss  -0x100(%rbp),%xmm1
ff
movss  -0x104(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xb8(%rbp),%xmm0
ff
mulss  -0xfc(%rbp),%xmm0
ff
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x10c(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xe0(%rbp),%xmm0
ff
addss  -0xe8(%rbp),%xmm0
ff
addss  -0xf0(%rbp),%xmm0
ff
addss  -0xf8(%rbp),%xmm0
ff
movss  %xmm0,-0x110(%rbp)
ff
movss  -0x110(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    156c <target_x+0x43c>
jp     156c <target_x+0x43c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
jmp    1752 <target_x+0x622>
movss  -0xe0(%rbp),%xmm0
ff
mulss  -0xe0(%rbp),%xmm0
ff
movss  %xmm0,-0x12c(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xcc(%rbp),%xmm0
ff
movss  -0xc4(%rbp),%xmm1
ff
movss  -0x100(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xb8(%rbp),%xmm0
ff
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  %xmm0,-0x130(%rbp)
ff
movss  -0xe8(%rbp),%xmm0
ff
mulss  -0xe8(%rbp),%xmm0
ff
movss  %xmm0,-0x134(%rbp)
ff
movss  -0xc4(%rbp),%xmm1
ff
movss  -0xfc(%rbp),%xmm0
ff
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm1
movss  -0xbc(%rbp),%xmm0
ff
movss  -0x104(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x134(%rbp),%xmm1
ff
movss  -0x130(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x12c(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x128(%rbp)
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0xf0(%rbp),%xmm0
ff
movss  %xmm0,-0x124(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xc8(%rbp),%xmm0
ff
movss  -0xc0(%rbp),%xmm1
ff
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xbc(%rbp),%xmm0
ff
movss  -0x100(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x128(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x124(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x120(%rbp)
ff
movss  -0xf8(%rbp),%xmm0
ff
mulss  -0xf8(%rbp),%xmm0
ff
movss  %xmm0,-0x11c(%rbp)
ff
movss  -0xc0(%rbp),%xmm1
ff
movss  -0x104(%rbp),%xmm0
ff
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm1
movss  -0xb8(%rbp),%xmm0
ff
movss  -0xfc(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x120(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x11c(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movss  %xmm0,-0x118(%rbp)
ff
movss  -0x118(%rbp),%xmm0
ff
movss  %xmm0,-0x114(%rbp)
ff
movss  -0x114(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x10c(%rbp),%xmm0
ff
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_x>:
push   %rbx
sub    $0x100,%rsp
mov    %rsi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0xe0(%rsp)
movq   $0x0,0xf0(%rsp)
movaps 0xeb7(%rip),%xmm1
movaps %xmm1,0xd0(%rsp)
movaps %xmm0,0xb0(%rsp)
movq   $0x0,0xc0(%rsp)
movaps 0xea4(%rip),%xmm1
movaps %xmm1,0xa0(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movq   $0x0,0x80(%rsp)
xorps  %xmm1,%xmm1
test   %edx,%edx
jle    1201 <target_x+0xe1>
mov    %edx,%eax
add    $0xffffffffffffffff,%rax
movss  0xe81(%rip),%xmm2
movss  0xe7d(%rip),%xmm1
xor    %ecx,%ecx
movss  0xe77(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
ucomiss %xmm1,%xmm2
jne    11c7 <target_x+0xa7>
jnp    11d8 <target_x+0xb8>
subss  %xmm2,%xmm1
movaps %xmm0,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0x60(%rsp,%rcx,4)
cmp    %rcx,%rax
je     11f5 <target_x+0xd5>
movss  0xd4(%rsp,%rcx,4),%xmm2
movss  0xa4(%rsp,%rcx,4),%xmm1
add    $0x1,%rcx
jmp    11c0 <target_x+0xa0>
movsd  0x60(%rsp),%xmm1
movsd  0x68(%rsp),%xmm0
movss  0xe17(%rip),%xmm2
movss  (%rdi),%xmm5
addss  %xmm2,%xmm5
mulss  %xmm1,%xmm5
movss  0xe0f(%rip),%xmm3
addss  0x4(%rdi),%xmm2
addss  %xmm3,%xmm5
movaps %xmm1,%xmm8
shufps $0x55,%xmm1,%xmm8
mulss  %xmm2,%xmm8
addss  %xmm3,%xmm8
movsd  (%rbx),%xmm4
movsd  0x8(%rbx),%xmm2
mulps  %xmm1,%xmm4
movaps %xmm4,%xmm9
shufps $0x55,%xmm4,%xmm9
movss  0x8(%rdi),%xmm7
movss  0xc(%rdi),%xmm1
addss  0xdd0(%rip),%xmm7
mulss  %xmm0,%xmm7
addss  %xmm3,%xmm7
addss  0xdc4(%rip),%xmm1
movaps %xmm0,%xmm6
shufps $0x55,%xmm0,%xmm6
mulss  %xmm1,%xmm6
addss  %xmm3,%xmm6
mulps  %xmm0,%xmm2
movaps %xmm2,%xmm3
shufps $0x55,%xmm2,%xmm3
xorps  %xmm0,%xmm0
movaps %xmm4,%xmm1
addss  %xmm0,%xmm1
addss  %xmm9,%xmm1
addss  %xmm2,%xmm1
addss  %xmm3,%xmm1
ucomiss %xmm0,%xmm1
jne    12ab <target_x+0x18b>
jnp    143d <target_x+0x31d>
movaps %xmm8,%xmm1
mulss  0xd81(%rip),%xmm1
addss  0xd7d(%rip),%xmm1
mulss  %xmm4,%xmm4
movaps %xmm4,0x90(%rsp)
movaps %xmm6,%xmm0
mulss  0xd6a(%rip),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
movss  %xmm5,0x8(%rsp)
movaps %xmm8,0x30(%rsp)
movss  %xmm7,0x4(%rsp)
movaps %xmm6,0x20(%rsp)
movaps %xmm2,0x10(%rsp)
movaps %xmm3,0x50(%rsp)
movaps %xmm9,0x40(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0xc(%rsp)
movaps 0x40(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movss  0xd11(%rip),%xmm1
mulss  0x8(%rsp),%xmm1
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm1
movss  0x4(%rsp),%xmm0
mulss  0xd02(%rip),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x40(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
mulss  0x90(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movaps 0x10(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
mulss  0xcbe(%rip),%xmm0
addss  0xcba(%rip),%xmm0
movss  0xcaa(%rip),%xmm1
mulss  0x30(%rsp),%xmm1
addss  %xmm0,%xmm1
movaps %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x10(%rsp),%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movaps 0x50(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movss  0xc6f(%rip),%xmm0
mulss  0x4(%rsp),%xmm0
addss  0xc6d(%rip),%xmm0
movaps %xmm0,%xmm1
movss  0xc4e(%rip),%xmm0
mulss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x50(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
ucomiss 0xc3b(%rip),%xmm0
jb     1421 <target_x+0x301>
sqrtss %xmm0,%xmm0
jmp    1426 <target_x+0x306>
call   1040 <sqrt@plt>
movss  0x8(%rsp),%xmm5
movaps 0x30(%rsp),%xmm8
movss  0x4(%rsp),%xmm7
movaps 0x20(%rsp),%xmm6
movss  0xbfb(%rip),%xmm1
mulss  %xmm5,%xmm1
movss  0xbf3(%rip),%xmm2
mulss  %xmm8,%xmm2
movss  0xbea(%rip),%xmm3
mulss  %xmm7,%xmm3
movss  0xbce(%rip),%xmm4
mulss  %xmm5,%xmm4
mulss  0xbc6(%rip),%xmm5
addss  0xbd2(%rip),%xmm5
mulss  %xmm7,%xmm2
mulss  0xbc2(%rip),%xmm7
addss  %xmm5,%xmm7
mulss  %xmm8,%xmm4
addss  %xmm7,%xmm4
mulss  %xmm6,%xmm3
addss  %xmm4,%xmm3
addss  %xmm2,%xmm3
mulss  %xmm6,%xmm1
addss  %xmm3,%xmm1
movss  %xmm0,(%rbx)
movaps %xmm1,%xmm0
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.target_x.coeff = [8 x float] [float 0xBED3582340000000, float 0xC0434A6960000000, float 0x405015CA60000000, float 0x3FD974B5C0000000, float 0x3FF3494F00000000, float 0xBFE7432320000000, float 0xBFE51B2C00000000, float 0.000000e+00]
define float @target_x(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 [8 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
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
store i32 7, i32* %7
store float 0x3FD33EF580000000, float* %8
%30 = bitcast [10 x float]* %9 to i8*
%31 = bitcast i8* %30 to [10 x float]*
%32 = getelementptr inbounds [10 x float], [10 x float]* %31, i32 0, i32 0
store float -1.500000e+01, float* %32
%33 = getelementptr inbounds [10 x float], [10 x float]* %31, i32 0, i32 1
store float -1.500000e+01, float* %33
%34 = getelementptr inbounds [10 x float], [10 x float]* %31, i32 0, i32 2
store float -1.800000e+01, float* %34
%35 = getelementptr inbounds [10 x float], [10 x float]* %31, i32 0, i32 3
store float 0xC032035400000000, float* %35
%36 = bitcast [10 x float]* %10 to i8*
%37 = bitcast i8* %36 to [10 x float]*
%38 = getelementptr inbounds [10 x float], [10 x float]* %37, i32 0, i32 0
store float 1.500000e+01, float* %38
%39 = getelementptr inbounds [10 x float], [10 x float]* %37, i32 0, i32 1
store float 1.500000e+01, float* %39
%40 = getelementptr inbounds [10 x float], [10 x float]* %37, i32 0, i32 2
store float 1.800000e+01, float* %40
%41 = getelementptr inbounds [10 x float], [10 x float]* %37, i32 0, i32 3
store float 0x4031FCEDA0000000, float* %41
%42 = bitcast [10 x float]* %11 to i8*
%43 = bitcast [8 x float]* %12 to i8*
store i32 0, i32* %13
%44 = load i32, i32* %13
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %82
46: ; preds = %3
store i32 1, i32* %13
store i32 0, i32* %14
br label %47
47: ; preds = %78, %46
%48 = load i32, i32* %14
%49 = load i32, i32* %6
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %81
51: ; preds = %47
%52 = load i32, i32* %14
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [10 x float], [10 x float]* %9, i64 0, i64 %53
%55 = load float, float* %54
%56 = load i32, i32* %14
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 %57
%59 = load float, float* %58
%60 = fcmp oeq float %55, %59
br i1 %60, label %61, label %62
61: ; preds = %51
br label %78
62: ; preds = %51
%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 = load i32, i32* %14
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x float], [10 x float]* %9, i64 0, i64 %68
%70 = load float, float* %69
%71 = fsub float %66, %70
%72 = fpext float %71 to double
%73 = fdiv double 2.000000e+00, %72
%74 = fptrunc double %73 to float
%75 = load i32, i32* %14
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 %76
store float %74, float* %77
br label %78
78: ; preds = %62, %61
%79 = load i32, i32* %14
%80 = add nsw i32 %79, 1
store i32 %80, i32* %14
br label %47
81: ; preds = %47
br label %82
82: ; preds = %81, %3
%83 = load float*, float** %4
%84 = getelementptr inbounds float, float* %83, i64 0
%85 = load float, float* %84
%86 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 0
%87 = load float, float* %86
%88 = fsub float %85, %87
%89 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 0
%90 = load float, float* %89
%91 = fmul float %88, %90
%92 = fpext float %91 to double
%93 = fadd double 1.000000e+00, %92
%94 = fptrunc double %93 to float
store float %94, float* %15
%95 = load float*, float** %5
%96 = getelementptr inbounds float, float* %95, i64 0
%97 = load float, float* %96
%98 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 0
%99 = load float, float* %98
%100 = fmul float %97, %99
store float %100, float* %16
%101 = load float*, float** %4
%102 = getelementptr inbounds float, float* %101, i64 1
%103 = load float, float* %102
%104 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 1
%105 = load float, float* %104
%106 = fsub float %103, %105
%107 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 1
%108 = load float, float* %107
%109 = fmul float %106, %108
%110 = fpext float %109 to double
%111 = fadd double 1.000000e+00, %110
%112 = fptrunc double %111 to float
store float %112, float* %17
%113 = load float*, float** %5
%114 = getelementptr inbounds float, float* %113, i64 1
%115 = load float, float* %114
%116 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 1
%117 = load float, float* %116
%118 = fmul float %115, %117
store float %118, float* %18
%119 = load float*, float** %4
%120 = getelementptr inbounds float, float* %119, i64 2
%121 = load float, float* %120
%122 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 2
%123 = load float, float* %122
%124 = fsub float %121, %123
%125 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 2
%126 = load float, float* %125
%127 = fmul float %124, %126
%128 = fpext float %127 to double
%129 = fadd double 1.000000e+00, %128
%130 = fptrunc double %129 to float
store float %130, float* %19
%131 = load float*, float** %5
%132 = getelementptr inbounds float, float* %131, i64 2
%133 = load float, float* %132
%134 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 2
%135 = load float, float* %134
%136 = fmul float %133, %135
store float %136, float* %20
%137 = load float*, float** %4
%138 = getelementptr inbounds float, float* %137, i64 3
%139 = load float, float* %138
%140 = getelementptr inbounds [10 x float], [10 x float]* %10, i64 0, i64 3
%141 = load float, float* %140
%142 = fsub float %139, %141
%143 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 3
%144 = load float, float* %143
%145 = fmul float %142, %144
%146 = fpext float %145 to double
%147 = fadd double 1.000000e+00, %146
%148 = fptrunc double %147 to float
store float %148, float* %21
%149 = load float*, float** %5
%150 = getelementptr inbounds float, float* %149, i64 3
%151 = load float, float* %150
%152 = getelementptr inbounds [10 x float], [10 x float]* %11, i64 0, i64 3
%153 = load float, float* %152
%154 = fmul float %151, %153
store float %154, float* %22
%155 = load float, float* %15
store float %155, float* %23
%156 = load float, float* %17
store float %156, float* %24
%157 = load float, float* %19
store float %157, float* %25
%158 = load float, float* %21
store float %158, float* %26
%159 = load float, float* %8
%160 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 0
%161 = load float, float* %160
%162 = fadd float %159, %161
%163 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 1
%164 = load float, float* %163
%165 = load float, float* %23
%166 = call float @llvm.fmuladd.f32(float %164, float %165, float %162)
%167 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 2
%168 = load float, float* %167
%169 = load float, float* %25
%170 = call float @llvm.fmuladd.f32(float %168, float %169, float %166)
%171 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 3
%172 = load float, float* %171
%173 = load float, float* %23
%174 = fmul float %172, %173
%175 = load float, float* %24
%176 = call float @llvm.fmuladd.f32(float %174, float %175, float %170)
%177 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 4
%178 = load float, float* %177
%179 = load float, float* %25
%180 = fmul float %178, %179
%181 = load float, float* %26
%182 = call float @llvm.fmuladd.f32(float %180, float %181, float %176)
%183 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 5
%184 = load float, float* %183
%185 = load float, float* %24
%186 = fmul float %184, %185
%187 = load float, float* %25
%188 = call float @llvm.fmuladd.f32(float %186, float %187, float %182)
%189 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 6
%190 = load float, float* %189
%191 = load float, float* %23
%192 = fmul float %190, %191
%193 = load float, float* %26
%194 = call float @llvm.fmuladd.f32(float %192, float %193, float %188)
store float %194, float* %27
%195 = load float, float* %16
%196 = fadd float 0.000000e+00, %195
%197 = load float, float* %18
%198 = fadd float %196, %197
%199 = load float, float* %20
%200 = fadd float %198, %199
%201 = load float, float* %22
%202 = fadd float %200, %201
store float %202, float* %28
%203 = load float, float* %28
%204 = fcmp oeq float %203, 0.000000e+00
br i1 %204, label %205, label %206
205: ; preds = %82
br label %266
206: ; preds = %82
%207 = load float, float* %16
%208 = load float, float* %16
%209 = fmul float %207, %208
%210 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 1
%211 = load float, float* %210
%212 = fadd float 0.000000e+00, %211
%213 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 3
%214 = load float, float* %213
%215 = load float, float* %24
%216 = call float @llvm.fmuladd.f32(float %214, float %215, float %212)
%217 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 6
%218 = load float, float* %217
%219 = load float, float* %26
%220 = call float @llvm.fmuladd.f32(float %218, float %219, float %216)
%221 = call float @pow(float %220, i32 2)
%222 = load float, float* %18
%223 = load float, float* %18
%224 = fmul float %222, %223
%225 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 3
%226 = load float, float* %225
%227 = load float, float* %23
%228 = call float @llvm.fmuladd.f32(float %226, float %227, float 0.000000e+00)
%229 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 5
%230 = load float, float* %229
%231 = load float, float* %25
%232 = call float @llvm.fmuladd.f32(float %230, float %231, float %228)
%233 = call float @pow(float %232, i32 2)
%234 = fmul float %224, %233
%235 = call float @llvm.fmuladd.f32(float %209, float %221, float %234)
%236 = load float, float* %20
%237 = load float, float* %20
%238 = fmul float %236, %237
%239 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 2
%240 = load float, float* %239
%241 = fadd float 0.000000e+00, %240
%242 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 4
%243 = load float, float* %242
%244 = load float, float* %26
%245 = call float @llvm.fmuladd.f32(float %243, float %244, float %241)
%246 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 5
%247 = load float, float* %246
%248 = load float, float* %24
%249 = call float @llvm.fmuladd.f32(float %247, float %248, float %245)
%250 = call float @pow(float %249, i32 2)
%251 = call float @llvm.fmuladd.f32(float %238, float %250, float %235)
%252 = load float, float* %22
%253 = load float, float* %22
%254 = fmul float %252, %253
%255 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 4
%256 = load float, float* %255
%257 = load float, float* %25
%258 = call float @llvm.fmuladd.f32(float %256, float %257, float 0.000000e+00)
%259 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 6
%260 = load float, float* %259
%261 = load float, float* %23
%262 = call float @llvm.fmuladd.f32(float %260, float %261, float %258)
%263 = call float @pow(float %262, i32 2)
%264 = call float @llvm.fmuladd.f32(float %254, float %263, float %251)
%265 = call float @sqrt(float %264)
br label %266
266: ; preds = %206, %205
%267 = phi float [ 0.000000e+00, %205 ], [ %265, %206 ]
store float %267, float* %29
%268 = load float, float* %29
%269 = load float*, float** %5
%270 = getelementptr inbounds float, float* %269, i64 0
store float %268, float* %270
%271 = load float, float* %27
ret float %271
}

LLVM IR (-O2):
define float @target_x(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 -1.800000e+01, float 0xC032035400000000>, <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 1.800000e+01, float 0x4031FCEDA0000000>, <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, -1.800000e+01
%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, 0xC031FCEDA0000000
%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 = extractelement <2 x float> %58, i64 0
%76 = fadd float %75, 0.000000e+00
%77 = extractelement <2 x float> %58, i64 1
%78 = fadd float %76, %77
%79 = extractelement <2 x float> %74, i64 0
%80 = fadd float %78, %79
%81 = extractelement <2 x float> %74, i64 1
%82 = fadd float %80, %81
%83 = fcmp oeq float %82, 0.000000e+00
br i1 %83, label %108, label %84
84: ; preds = %42
%85 = fmul <2 x float> %58, %58
%86 = extractelement <2 x float> %85, i64 0
%87 = tail call float @llvm.fmuladd.f32(float %55, float 0x3FD974B5C0000000, float 0xC0434A6960000000)
%88 = tail call float @llvm.fmuladd.f32(float %71, float 0xBFE51B2C00000000, float %87)
%89 = tail call float @pow(float %88, i32 2)
%90 = fmul float %77, %77
%91 = tail call float @llvm.fmuladd.f32(float %49, float 0x3FD974B5C0000000, float 0.000000e+00)
%92 = tail call float @llvm.fmuladd.f32(float %64, float 0xBFE7432320000000, float %91)
%93 = tail call float @pow(float %92, i32 2)
%94 = fmul float %90, %93
%95 = tail call float @llvm.fmuladd.f32(float %86, float %89, float %94)
%96 = fmul <2 x float> %74, %74
%97 = extractelement <2 x float> %96, i64 0
%98 = tail call float @llvm.fmuladd.f32(float %71, float 0x3FF3494F00000000, float 0x405015CA60000000)
%99 = tail call float @llvm.fmuladd.f32(float %55, float 0xBFE7432320000000, float %98)
%100 = tail call float @pow(float %99, i32 2)
%101 = tail call float @llvm.fmuladd.f32(float %97, float %100, float %95)
%102 = fmul float %81, %81
%103 = tail call float @llvm.fmuladd.f32(float %64, float 0x3FF3494F00000000, float 0.000000e+00)
%104 = tail call float @llvm.fmuladd.f32(float %49, float 0xBFE51B2C00000000, float %103)
%105 = tail call float @pow(float %104, i32 2)
%106 = tail call float @llvm.fmuladd.f32(float %102, float %105, float %101)
%107 = tail call float @sqrt(float %106)
br label %108
108: ; preds = %42, %84
%109 = phi float [ %107, %84 ], [ 0.000000e+00, %42 ]
%110 = fmul float %49, 0xBFE51B2C00000000
%111 = fmul float %55, 0xBFE7432320000000
%112 = fmul float %64, 0x3FF3494F00000000
%113 = fmul float %49, 0x3FD974B5C0000000
%114 = tail call float @llvm.fmuladd.f32(float %49, float 0xC0434A6960000000, float 0x3FD33EE220000000)
%115 = tail call float @llvm.fmuladd.f32(float %64, float 0x405015CA60000000, float %114)
%116 = tail call float @llvm.fmuladd.f32(float %113, float %55, float %115)
%117 = tail call float @llvm.fmuladd.f32(float %112, float %71, float %116)
%118 = tail call float @llvm.fmuladd.f32(float %111, float %64, float %117)
%119 = tail call float @llvm.fmuladd.f32(float %110, float %71, float %118)
store float %109, float* %1
ret float %119
}