#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(int, int);
float sqrt(float);
float target_y(float *x, float *dx, int m) {
  int ncoeff = 7;
  float avdat = 0.8745710E+00;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18004E+02, -0.18006E+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[8] = {
      -0.26567599E-02, -0.28948627E+01, -0.38189888E+02, 0.47504463E+01,
      0.63763664E+02,  0.28973518E-01,  -0.13956552E-01, 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 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] * x32 +
                     coeff[6] * x12;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_y =
      dxall == 0 ? 0
                 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + 2 * coeff[6] * x11, 2) +
                        dx2 * dx2 * pow(0 + coeff[2], 2) +
                        dx3 * dx3 * pow(0 + coeff[3] + 2 * coeff[5] * 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    $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_y+0x1b8>
movl   $0x1,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12e3 <target_y+0x1b3>
movslq -0xd8(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
movslq -0xd8(%rbp),%rax
ucomiss -0x80(%rbp,%rax,4),%xmm0
jne    1291 <target_y+0x161>
jp     1291 <target_y+0x161>
jmp    12cf <target_y+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_y+0x128>
jmp    12e8 <target_y+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  -0xfc(%rbp),%xmm0
ff
mulss  -0xdc(%rbp),%xmm0
ff
movss  %xmm0,-0x100(%rbp)
ff
movss  -0xe4(%rbp),%xmm0
ff
movss  %xmm0,-0x104(%rbp)
ff
movss  -0xec(%rbp),%xmm0
ff
movss  %xmm0,-0x108(%rbp)
ff
movss  -0x108(%rbp),%xmm0
ff
mulss  -0xec(%rbp),%xmm0
ff
movss  %xmm0,-0x10c(%rbp)
ff
movss  -0xf4(%rbp),%xmm0
ff
movss  %xmm0,-0x110(%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
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xc0(%rbp),%xmm0
ff
movss  -0x110(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xbc(%rbp),%xmm1
ff
movss  -0x10c(%rbp),%xmm2
ff
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0xb8(%rbp),%xmm0
ff
movss  -0x100(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x114(%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,-0x118(%rbp)
ff
movss  -0x118(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    157c <target_y+0x44c>
jp     157c <target_y+0x44c>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x120(%rbp)
ff
jmp    1702 <target_y+0x5d2>
movss  -0xe0(%rbp),%xmm0
ff
mulss  -0xe0(%rbp),%xmm0
ff
movss  %xmm0,-0x134(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0xcc(%rbp),%xmm1
ff
movss  0xa75(%rip),%xmm0
mulss  -0xb8(%rbp),%xmm0
ff
movss  -0xfc(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
movss  %xmm0,-0x138(%rbp)
ff
movss  -0xe8(%rbp),%xmm0
ff
mulss  -0xe8(%rbp),%xmm0
ff
movss  %xmm0,-0x13c(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xc8(%rbp),%xmm0
ff
cvttss2si %xmm0,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
movss  -0x13c(%rbp),%xmm1
ff
movss  -0x138(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x134(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x130(%rbp)
ff
movss  -0xf0(%rbp),%xmm0
ff
mulss  -0xf0(%rbp),%xmm0
ff
movss  %xmm0,-0x12c(%rbp)
ff
xorps  %xmm1,%xmm1
addss  -0xc4(%rbp),%xmm1
ff
movss  0x9bc(%rip),%xmm0
mulss  -0xbc(%rbp),%xmm0
ff
movss  -0x108(%rbp),%xmm2
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
movss  -0x130(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x12c(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x128(%rbp)
ff
movss  -0xf8(%rbp),%xmm0
ff
mulss  -0xf8(%rbp),%xmm0
ff
movss  %xmm0,-0x124(%rbp)
ff
xorps  %xmm0,%xmm0
addss  -0xc0(%rbp),%xmm0
ff
cvttss2si %xmm0,%edi
mov    $0x2,%esi
call   1040 <pow@plt>
movss  -0x128(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movss  -0x124(%rbp),%xmm0
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrt@plt>
movss  %xmm0,-0x120(%rbp)
ff
movss  -0x120(%rbp),%xmm0
ff
movss  %xmm0,-0x11c(%rbp)
ff
movss  -0x11c(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x114(%rbp),%xmm0
ff
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<target_y>:
push   %rbx
sub    $0x110,%rsp
mov    %rsi,%rbx
xorps  %xmm3,%xmm3
movaps %xmm3,0xf0(%rsp)
movq   $0x0,0x100(%rsp)
movaps 0xeb7(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps %xmm3,0xc0(%rsp)
movq   $0x0,0xd0(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps %xmm3,0x80(%rsp)
movaps %xmm3,0x70(%rsp)
movq   $0x0,0x90(%rsp)
xorps  %xmm4,%xmm4
test   %edx,%edx
jle    1201 <target_y+0xe1>
mov    %edx,%eax
add    $0xffffffffffffffff,%rax
movss  0xe7e(%rip),%xmm2
movss  0xe7a(%rip),%xmm1
xor    %ecx,%ecx
movss  0xe74(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
ucomiss %xmm1,%xmm2
jne    11c7 <target_y+0xa7>
jnp    11d8 <target_y+0xb8>
subss  %xmm2,%xmm1
movaps %xmm0,%xmm2
divss  %xmm1,%xmm2
movss  %xmm2,0x70(%rsp,%rcx,4)
cmp    %rcx,%rax
je     11f5 <target_y+0xd5>
movss  0xe4(%rsp,%rcx,4),%xmm2
movss  0xb4(%rsp,%rcx,4),%xmm1
add    $0x1,%rcx
jmp    11c0 <target_y+0xa0>
movsd  0x70(%rsp),%xmm4
movsd  0x78(%rsp),%xmm3
movss  (%rdi),%xmm5
movss  0x4(%rdi),%xmm8
addss  0xe0d(%rip),%xmm5
mulss  %xmm4,%xmm5
movss  0xe0c(%rip),%xmm9
addss  %xmm9,%xmm5
movsd  (%rbx),%xmm2
movsd  0x8(%rbx),%xmm10
mulps  %xmm4,%xmm2
movaps %xmm2,%xmm12
shufps $0x55,%xmm2,%xmm12
movss  0x8(%rdi),%xmm6
addss  0xde8(%rip),%xmm6
mulss  %xmm3,%xmm6
addss  %xmm9,%xmm6
movss  0xc(%rdi),%xmm7
mulps  %xmm3,%xmm10
movaps %xmm10,%xmm11
shufps $0x55,%xmm10,%xmm11
xorps  %xmm0,%xmm0
movaps %xmm2,%xmm1
addss  %xmm0,%xmm1
addss  %xmm12,%xmm1
addss  %xmm10,%xmm1
addss  %xmm11,%xmm1
ucomiss %xmm0,%xmm1
jne    1287 <target_y+0x167>
jnp    13d8 <target_y+0x2b8>
movss  %xmm7,0x14(%rsp)
movss  %xmm8,0x18(%rsp)
movaps %xmm4,0x50(%rsp)
movaps %xmm3,0x60(%rsp)
mulss  %xmm2,%xmm2
movaps %xmm2,0xa0(%rsp)
movss  0xd82(%rip),%xmm0
movss  %xmm5,0x1c(%rsp)
mulss  %xmm5,%xmm0
addss  0xd74(%rip),%xmm0
cvttss2si %xmm0,%edi
mov    $0x2,%esi
movss  %xmm6,0xc(%rsp)
movaps %xmm10,0x20(%rsp)
movaps %xmm11,0x40(%rsp)
movaps %xmm12,0x30(%rsp)
call   1030 <pow@plt>
movss  %xmm0,0x10(%rsp)
movaps 0x30(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
mov    $0xffffffda,%edi
mov    $0x2,%esi
call   1030 <pow@plt>
mulss  0x30(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
mulss  0xa0(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movss  0xcfa(%rip),%xmm0
mulss  0xc(%rsp),%xmm0
addss  0xcf0(%rip),%xmm0
cvttss2si %xmm0,%edi
mov    $0x2,%esi
call   1030 <pow@plt>
mulss  0x20(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
movaps 0x40(%rsp),%xmm0
mulss  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
mov    $0x3f,%edi
mov    $0x2,%esi
call   1030 <pow@plt>
mulss  0x40(%rsp),%xmm0
addss  0x20(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     13a7 <target_y+0x287>
sqrtss %xmm0,%xmm0
jmp    13ac <target_y+0x28c>
call   1040 <sqrt@plt>
movaps 0x60(%rsp),%xmm3
movaps 0x50(%rsp),%xmm4
movss  0x1c(%rsp),%xmm5
movss  0xc(%rsp),%xmm6
movss  0x18(%rsp),%xmm8
movss  0xc5a(%rip),%xmm9
movss  0x14(%rsp),%xmm7
movaps %xmm5,%xmm1
mulss  %xmm5,%xmm1
movaps %xmm6,%xmm2
mulss  %xmm6,%xmm2
addss  0xc56(%rip),%xmm7
shufps $0x55,%xmm3,%xmm3
mulss  %xmm7,%xmm3
addss  0xc21(%rip),%xmm8
addss  %xmm9,%xmm3
shufps $0x55,%xmm4,%xmm4
mulss  %xmm8,%xmm4
addss  %xmm9,%xmm4
mulss  0xc1e(%rip),%xmm5
addss  0xc26(%rip),%xmm5
mulss  0xc22(%rip),%xmm4
mulss  0xc0e(%rip),%xmm6
addss  %xmm5,%xmm4
addss  %xmm4,%xmm6
mulss  0xc0e(%rip),%xmm3
addss  %xmm6,%xmm3
mulss  0xc06(%rip),%xmm2
addss  %xmm3,%xmm2
mulss  0xbfe(%rip),%xmm1
addss  %xmm2,%xmm1
movss  %xmm0,(%rbx)
movaps %xmm1,%xmm0
add    $0x110,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.target_y.coeff = [8 x float] [float 0xBF65C3A120000000, float 0xC00728ADC0000000, float 0xC043184E40000000, float 0x4013007500000000, float 0x404FE1BFC0000000, float 0x3F9DAB3BE0000000, float 0xBF8C9540C0000000, 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 [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
%30 = alloca float
%31 = alloca float
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
store i32 7, i32* %7
store float 0x3FEBFC7C60000000, 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 0xC032010620000000, float* %36
%37 = getelementptr inbounds [10 x float], [10 x float]* %33, i32 0, i32 3
store float 0xC032018940000000, 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 [8 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* %23
%159 = load float, float* %15
%160 = fmul float %158, %159
store float %160, float* %24
%161 = load float, float* %17
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 [8 x float], [8 x float]* %12, i64 0, i64 0
%169 = load float, float* %168
%170 = fadd float %167, %169
%171 = getelementptr inbounds [8 x float], [8 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 [8 x float], [8 x float]* %12, i64 0, i64 2
%176 = load float, float* %175
%177 = load float, float* %25
%178 = call float @llvm.fmuladd.f32(float %176, float %177, float %174)
%179 = getelementptr inbounds [8 x float], [8 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 [8 x float], [8 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 [8 x float], [8 x float]* %12, i64 0, i64 5
%188 = load float, float* %187
%189 = load float, float* %27
%190 = call float @llvm.fmuladd.f32(float %188, float %189, float %186)
%191 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 6
%192 = load float, float* %191
%193 = load float, float* %24
%194 = call float @llvm.fmuladd.f32(float %192, float %193, float %190)
store float %194, float* %29
%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* %30
%203 = load float, float* %30
%204 = fcmp oeq float %203, 0.000000e+00
br i1 %204, label %205, label %206
205: ; preds = %84
br label %254
206: ; preds = %84
%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 6
%214 = load float, float* %213
%215 = fmul float 2.000000e+00, %214
%216 = load float, float* %23
%217 = call float @llvm.fmuladd.f32(float %215, float %216, float %212)
%218 = fptosi float %217 to i32
%219 = call float @pow(i32 %218, i32 2)
%220 = load float, float* %18
%221 = load float, float* %18
%222 = fmul float %220, %221
%223 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 2
%224 = load float, float* %223
%225 = fadd float 0.000000e+00, %224
%226 = fptosi float %225 to i32
%227 = call float @pow(i32 %226, i32 2)
%228 = fmul float %222, %227
%229 = call float @llvm.fmuladd.f32(float %209, float %219, float %228)
%230 = load float, float* %20
%231 = load float, float* %20
%232 = fmul float %230, %231
%233 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 3
%234 = load float, float* %233
%235 = fadd float 0.000000e+00, %234
%236 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 5
%237 = load float, float* %236
%238 = fmul float 2.000000e+00, %237
%239 = load float, float* %26
%240 = call float @llvm.fmuladd.f32(float %238, float %239, float %235)
%241 = fptosi float %240 to i32
%242 = call float @pow(i32 %241, i32 2)
%243 = call float @llvm.fmuladd.f32(float %232, float %242, float %229)
%244 = load float, float* %22
%245 = load float, float* %22
%246 = fmul float %244, %245
%247 = getelementptr inbounds [8 x float], [8 x float]* %12, i64 0, i64 4
%248 = load float, float* %247
%249 = fadd float 0.000000e+00, %248
%250 = fptosi float %249 to i32
%251 = call float @pow(i32 %250, i32 2)
%252 = call float @llvm.fmuladd.f32(float %246, float %251, float %243)
%253 = call float @sqrt(float %252)
br label %254
254: ; preds = %206, %205
%255 = phi float [ 0.000000e+00, %205 ], [ %253, %206 ]
store float %255, float* %31
%256 = load float, float* %31
%257 = load float*, float** %5
%258 = getelementptr inbounds float, float* %257, i64 0
store float %256, float* %258
%259 = load float, float* %29
ret float %259
}

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 0xC032010620000000, float 0xC032018940000000>, <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 = bitcast float* %1 to <2 x float>*
%53 = load <2 x float>, <2 x float>* %52
%54 = fmul <2 x float> %44, %53
%55 = getelementptr inbounds float, float* %0, i64 2
%56 = load float, float* %55
%57 = fadd float %56, 0xC03200C4A0000000
%58 = extractelement <2 x float> %43, i64 0
%59 = fmul float %57, %58
%60 = fadd float %59, 1.000000e+00
%61 = getelementptr inbounds float, float* %1, i64 2
%62 = getelementptr inbounds float, float* %0, i64 3
%63 = load float, float* %62
%64 = bitcast float* %61 to <2 x float>*
%65 = load <2 x float>, <2 x float>* %64
%66 = fmul <2 x float> %43, %65
%67 = extractelement <2 x float> %54, i64 0
%68 = fadd float %67, 0.000000e+00
%69 = extractelement <2 x float> %54, i64 1
%70 = fadd float %68, %69
%71 = extractelement <2 x float> %66, i64 0
%72 = fadd float %70, %71
%73 = extractelement <2 x float> %66, i64 1
%74 = fadd float %72, %73
%75 = fcmp oeq float %74, 0.000000e+00
br i1 %75, label %96, label %76
76: ; preds = %42
%77 = fmul <2 x float> %54, %54
%78 = extractelement <2 x float> %77, i64 0
%79 = tail call float @llvm.fmuladd.f32(float %49, float 0xBF9C9540C0000000, float 0xC00728ADC0000000)
%80 = fptosi float %79 to i32
%81 = tail call float @pow(i32 %80, i32 2)
%82 = fmul float %69, %69
%83 = tail call float @pow(i32 -38, i32 2)
%84 = fmul float %82, %83
%85 = tail call float @llvm.fmuladd.f32(float %78, float %81, float %84)
%86 = fmul <2 x float> %66, %66
%87 = extractelement <2 x float> %86, i64 0
%88 = tail call float @llvm.fmuladd.f32(float %60, float 0x3FADAB3BE0000000, float 0x4013007500000000)
%89 = fptosi float %88 to i32
%90 = tail call float @pow(i32 %89, i32 2)
%91 = tail call float @llvm.fmuladd.f32(float %87, float %90, float %85)
%92 = fmul float %73, %73
%93 = tail call float @pow(i32 63, i32 2)
%94 = tail call float @llvm.fmuladd.f32(float %92, float %93, float %91)
%95 = tail call float @sqrt(float %94)
br label %96
96: ; preds = %42, %76
%97 = phi float [ %95, %76 ], [ 0.000000e+00, %42 ]
%98 = fmul float %49, %49
%99 = fmul float %60, %60
%100 = fadd float %63, 0xC032004180000000
%101 = extractelement <2 x float> %43, i64 1
%102 = fmul float %100, %101
%103 = fadd float %102, 1.000000e+00
%104 = fadd float %51, -1.500000e+01
%105 = extractelement <2 x float> %44, i64 1
%106 = fmul float %104, %105
%107 = fadd float %106, 1.000000e+00
%108 = tail call float @llvm.fmuladd.f32(float %49, float 0xC00728ADC0000000, float 0x3FEBE6B8C0000000)
%109 = tail call float @llvm.fmuladd.f32(float %107, float 0xC043184E40000000, float %108)
%110 = tail call float @llvm.fmuladd.f32(float %60, float 0x4013007500000000, float %109)
%111 = tail call float @llvm.fmuladd.f32(float %103, float 0x404FE1BFC0000000, float %110)
%112 = tail call float @llvm.fmuladd.f32(float %99, float 0x3F9DAB3BE0000000, float %111)
%113 = tail call float @llvm.fmuladd.f32(float %98, float 0xBF8C9540C0000000, float %112)
store float %97, float* %1
ret float %113
}