#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_y(float *x, float *dx, int m) {
  int ncoeff = 8;
  float avdat = -0.9272229E+00;
  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[9] = {-0.58722808E-02, -0.43678422E+01, -0.39406815E+02,
                    0.71073251E+01,  0.65138306E+02,  -0.46641670E-01,
                    0.67683570E-01,  0.26540484E-02,  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 x22 = x21 * x2;
  float x31 = x3;
  float x32 = x31 * x3;
  float x41 = x4;
  float v_target_y = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x21 +
                     coeff[3] * x31 + coeff[4] * x41 + coeff[5] * x11 * x31 +
                     coeff[6] * x32 + coeff[7] * x22;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_y =
      dxall == 0
          ? 0
          : sqrt(
                +dx1 * dx1 * pow(0 + coeff[1] + coeff[5] * x31, 2) +
                dx2 * dx2 * pow(0 + coeff[2] + 2 * coeff[7] * x21, 2) +
                dx3 * dx3 *
                    pow(0 + coeff[3] + coeff[5] * x11 + 2 * coeff[6] * x31, 2) +
                dx4 * dx4 * pow(0 + coeff[4], 2));
  dx[0] = dv_target_y;
  return v_target_y;
}


x86 assembly (clang, -O0):
<target_y>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x8,-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    -0xe0(%rbp),%rdi
lea    0xe1d(%rip),%rsi
mov    $0x24,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0xe4(%rbp)
cmpl   $0x0,-0xe4(%rbp)
jne    12d8 <target_y+0x198>
movl   $0x1,-0xe4(%rbp)
movl   $0x0,-0xe8(%rbp)
mov    -0xe8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12d3 <target_y+0x193>
movslq -0xe8(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
movslq -0xe8(%rbp),%rax
ucomiss -0x80(%rbp,%rax,4),%xmm0
jne    1281 <target_y+0x141>
jp     1281 <target_y+0x141>
jmp    12bf <target_y+0x17f>
movslq -0xe8(%rbp),%rax
movss  -0x80(%rbp,%rax,4),%xmm0
movslq -0xe8(%rbp),%rax
subss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd81(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0xe8(%rbp),%rax
movss  %xmm0,-0xb0(%rbp,%rax,4)
ff ff
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    1248 <target_y+0x108>
jmp    12d8 <target_y+0x198>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  -0x80(%rbp),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xd27(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xec(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0xb0(%rbp),%xmm0
ff
movss  %xmm0,-0xf0(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  -0x7c(%rbp),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xcdd(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xf4(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0xf8(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  -0x78(%rbp),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc92(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xfc(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0xa8(%rbp),%xmm0
ff
movss  %xmm0,-0x100(%rbp)
ff
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
subss  -0x74(%rbp),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm1
movsd  0xc47(%rip),%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x104(%rbp)
ff
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
mulss  -0xa4(%rbp),%xmm0
ff
movss  %xmm0,-0x108(%rbp)
ff
movss  -0xec(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0xf4(%rbp),%xmm0
ff
movss  %xmm0,-0x110(%rbp)
ff
movss  -0x110(%rbp),%xmm0
ff
mulss  -0xf4(%rbp),%xmm0
ff
movss  %xmm0,-0x114(%rbp)
ff
movss  -0xfc(%rbp),%xmm0
ff
movss  %xmm0,-0x118(%rbp)
ff
movss  -0x118(%rbp),%xmm0
ff
mulss  -0xfc(%rbp),%xmm0
ff
movss  %xmm0,-0x11c(%rbp)
ff
movss  -0x104(%rbp),%xmm0
ff
movss  %xmm0,-0x120(%rbp)
ff
movss  -0x1c(%rbp),%xmm1
addss  -0xe0(%rbp),%xmm1
ff
movss  -0xdc(%rbp),%xmm0
ff
movss  -0x10c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd8(%rbp),%xmm1
ff
movss  -0x110(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xd4(%rbp),%xmm0
ff
movss  -0x118(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xd0(%rbp),%xmm1
ff
movss  -0x120(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xcc(%rbp),%xmm0
ff
mulss  -0x10c(%rbp),%xmm0
ff
movss  -0x118(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc8(%rbp),%xmm1
ff
movss  -0x11c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc4(%rbp),%xmm0
ff
movss  -0x114(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x124(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xf0(%rbp),%xmm0
ff
addss  -0xf8(%rbp),%xmm0
ff
addss  -0x100(%rbp),%xmm0
ff
addss  -0x108(%rbp),%xmm0
ff
movss  %xmm0,-0x128(%rbp)
ff
movss  -0x128(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    158c <target_y+0x44c>
jp     158c <target_y+0x44c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x130(%rbp)
ff
jmp    1732 <target_y+0x5f2>
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0xf0(%rbp),%xmm0
ff
movss  %xmm0,-0x144(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0xdc(%rbp),%xmm1
ff
movss  -0xcc(%rbp),%xmm0
ff
movss  -0x118(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  %xmm0,-0x148(%rbp)
ff
movss  -0xf8(%rbp),%xmm0
ff
mulss  -0xf8(%rbp),%xmm0
ff
movss  %xmm0,-0x14c(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0xd8(%rbp),%xmm1
ff
movss  0xa18(%rip),%xmm0
mulss  -0xc4(%rbp),%xmm0
ff
movss  -0x110(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x14c(%rbp),%xmm1
ff
movss  -0x148(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x144(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x140(%rbp)
ff
movss  -0x100(%rbp),%xmm0
ff
mulss  -0x100(%rbp),%xmm0
ff
movss  %xmm0,-0x13c(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xd4(%rbp),%xmm0
ff
movss  -0xcc(%rbp),%xmm1
ff
movss  -0x10c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0x984(%rip),%xmm0
mulss  -0xc8(%rbp),%xmm0
ff
movss  -0x118(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x140(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x13c(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x138(%rbp)
ff
movss  -0x108(%rbp),%xmm0
ff
mulss  -0x108(%rbp),%xmm0
ff
movss  %xmm0,-0x134(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xd0(%rbp),%xmm0
ff
mov    $0x2,%edi
call   1050 <pow@plt>
movss  -0x138(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x134(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <sqrt@plt>
movss  %xmm0,-0x130(%rbp)
ff
movss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x12c(%rbp)
ff
movss  -0x12c(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x124(%rbp),%xmm0
ff
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_y>:
push   %rbx
sub    $0x100,%rsp
mov    %rsi,%rbx
xorps  %xmm4,%xmm4
movaps %xmm4,0xe0(%rsp)
movq   $0x0,0xf0(%rsp)
movaps 0xeb7(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps %xmm4,0xb0(%rsp)
movq   $0x0,0xc0(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps %xmm4,0x70(%rsp)
movaps %xmm4,0x60(%rsp)
movq   $0x0,0x80(%rsp)
xorps  %xmm0,%xmm0
test   %edx,%edx
jle    1201 <target_y+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_y+0xa7>
jnp    11d8 <target_y+0xb8>
subss  %xmm2,%xmm1
movaps %xmm0,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0x60(%rsp,%rcx,4)
cmp    %rcx,%rax
je     11f5 <target_y+0xd5>
movss  0xd4(%rsp,%rcx,4),%xmm2
movss  0xa4(%rsp,%rcx,4),%xmm1
add    $0x1,%rcx
jmp    11c0 <target_y+0xa0>
movsd  0x60(%rsp),%xmm0
movsd  0x68(%rsp),%xmm4
movss  0xe17(%rip),%xmm1
movss  (%rdi),%xmm5
addss  %xmm1,%xmm5
mulss  %xmm0,%xmm5
movss  0xe0f(%rip),%xmm2
addss  %xmm2,%xmm5
addss  0x4(%rdi),%xmm1
movaps %xmm0,%xmm6
shufps $0x55,%xmm0,%xmm6
mulss  %xmm1,%xmm6
addss  %xmm2,%xmm6
movsd  (%rbx),%xmm3
movsd  0x8(%rbx),%xmm9
mulps  %xmm0,%xmm3
movaps %xmm3,%xmm10
shufps $0x55,%xmm3,%xmm10
movss  0x8(%rdi),%xmm7
addss  0xdd8(%rip),%xmm7
movss  0xc(%rdi),%xmm8
mulss  %xmm4,%xmm7
addss  %xmm2,%xmm7
mulps  %xmm4,%xmm9
movaps %xmm9,%xmm2
shufps $0x55,%xmm9,%xmm2
xorps  %xmm0,%xmm0
movaps %xmm3,%xmm1
addss  %xmm0,%xmm1
addss  %xmm10,%xmm1
addss  %xmm9,%xmm1
addss  %xmm2,%xmm1
ucomiss %xmm0,%xmm1
jne    1296 <target_y+0x176>
jnp    13ee <target_y+0x2ce>
movss  %xmm8,0xc(%rsp)
movaps %xmm4,0x50(%rsp)
mulss  %xmm3,%xmm3
movaps %xmm3,0x90(%rsp)
movaps %xmm7,%xmm0
mulss  0xd7b(%rip),%xmm0
addss  0xd77(%rip),%xmm0
mov    $0x2,%edi
movss  %xmm5,0x4(%rsp)
movaps %xmm6,0x20(%rsp)
movss  %xmm7,(%rsp)
movaps %xmm9,0x10(%rsp)
movaps %xmm2,0x40(%rsp)
movaps %xmm10,0x30(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x8(%rsp)
movaps 0x30(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movss  0xd34(%rip),%xmm0
mulss  0x20(%rsp),%xmm0
addss  0xd2a(%rip),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x30(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  0x90(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xced(%rip),%xmm0
mulss  0x4(%rsp),%xmm0
addss  0xcef(%rip),%xmm0
movaps %xmm0,%xmm1
movaps 0x10(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movss  0xcda(%rip),%xmm0
mulss  (%rsp),%xmm0
addss  %xmm1,%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x10(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movaps 0x40(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movss  0xca3(%rip),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulss  0x40(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     13cd <target_y+0x2ad>
sqrtss %xmm0,%xmm0
jmp    13d2 <target_y+0x2b2>
call   1040 <sqrt@plt>
movaps 0x50(%rsp),%xmm4
movss  0x4(%rsp),%xmm5
movaps 0x20(%rsp),%xmm6
movss  (%rsp),%xmm7
movss  0xc(%rsp),%xmm8
movaps %xmm6,%xmm1
mulss  %xmm6,%xmm1
movaps %xmm7,%xmm2
mulss  %xmm7,%xmm2
movss  0xc30(%rip),%xmm3
mulss  %xmm5,%xmm3
addss  0xc3f(%rip),%xmm8
shufps $0x55,%xmm4,%xmm4
mulss  %xmm8,%xmm4
addss  0xc0a(%rip),%xmm4
mulss  0xc0e(%rip),%xmm5
addss  0xc22(%rip),%xmm5
mulss  0xc06(%rip),%xmm6
addss  %xmm5,%xmm6
mulss  %xmm7,%xmm3
mulss  0xbfa(%rip),%xmm7
addss  %xmm6,%xmm7
mulss  0xbf6(%rip),%xmm4
addss  %xmm7,%xmm4
addss  %xmm3,%xmm4
mulss  0xbf2(%rip),%xmm2
addss  %xmm4,%xmm2
mulss  0xbea(%rip),%xmm1
addss  %xmm2,%xmm1
movss  %xmm0,(%rbx)
movaps %xmm1,%xmm0
add    $0x100,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define float @target_y(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 = bitcast float* %65 to <2 x float>*
%69 = load <2 x float>, <2 x float>* %68
%70 = fmul <2 x float> %43, %69
%71 = extractelement <2 x float> %58, i64 0
%72 = fadd float %71, 0.000000e+00
%73 = extractelement <2 x float> %58, i64 1
%74 = fadd float %72, %73
%75 = extractelement <2 x float> %70, i64 0
%76 = fadd float %74, %75
%77 = extractelement <2 x float> %70, i64 1
%78 = fadd float %76, %77
%79 = fcmp oeq float %78, 0.000000e+00
br i1 %79, label %100, label %80
80: ; preds = %42
%81 = fmul <2 x float> %58, %58
%82 = extractelement <2 x float> %81, i64 0
%83 = tail call float @llvm.fmuladd.f32(float %64, float 0xBFA7E16AC0000000, float 0xC01178ABA0000000)
%84 = tail call float @pow(float %83, i32 2)
%85 = fmul float %73, %73
%86 = tail call float @llvm.fmuladd.f32(float %55, float 0x3F75BDF160000000, float 0xC043B41280000000)
%87 = tail call float @pow(float %86, i32 2)
%88 = fmul float %85, %87
%89 = tail call float @llvm.fmuladd.f32(float %82, float %84, float %88)
%90 = fmul <2 x float> %70, %70
%91 = extractelement <2 x float> %90, i64 0
%92 = tail call float @llvm.fmuladd.f32(float %49, float 0xBFA7E16AC0000000, float 0x401C6DE6A0000000)
%93 = tail call float @llvm.fmuladd.f32(float %64, float 0x3FC153B5E0000000, float %92)
%94 = tail call float @pow(float %93, i32 2)
%95 = tail call float @llvm.fmuladd.f32(float %91, float %94, float %89)
%96 = fmul float %77, %77
%97 = tail call float @pow(float 0x405048DA00000000, i32 2)
%98 = tail call float @llvm.fmuladd.f32(float %96, float %97, float %95)
%99 = tail call float @sqrt(float %98)
br label %100
100: ; preds = %42, %80
%101 = phi float [ %99, %80 ], [ 0.000000e+00, %42 ]
%102 = fmul float %55, %55
%103 = fmul float %64, %64
%104 = fmul float %49, 0xBFA7E16AC0000000
%105 = fadd float %67, 0xC032004180000000
%106 = extractelement <2 x float> %43, i64 1
%107 = fmul float %105, %106
%108 = fadd float %107, 1.000000e+00
%109 = tail call float @llvm.fmuladd.f32(float %49, float 0xC01178ABA0000000, float 0xBFEDDBEA80000000)
%110 = tail call float @llvm.fmuladd.f32(float %55, float 0xC043B41280000000, float %109)
%111 = tail call float @llvm.fmuladd.f32(float %64, float 0x401C6DE6A0000000, float %110)
%112 = tail call float @llvm.fmuladd.f32(float %108, float 0x405048DA00000000, float %111)
%113 = tail call float @llvm.fmuladd.f32(float %104, float %64, float %112)
%114 = tail call float @llvm.fmuladd.f32(float %103, float 0x3FB153B5E0000000, float %113)
%115 = tail call float @llvm.fmuladd.f32(float %102, float 0x3F65BDF160000000, float %114)
store float %101, float* %1
ret float %115
}