#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 */
int Isum2ldw(float *, int, int, float, float, float, float, float, float,
             float *, float *);
int Isum2ldwE(float *, float *, int, int, float, float, float, float, float,
              float, float *, float *, float *, float *);
float const fabs(float);
void project_2(float *line, float *varline, int dim, int imin, int imax,
               float initvalue, float factor, float *data, float *vardat,
               int dim_1, int dim_2, float f1_1, float f3_1, float f1_2,
               float f3_2, float Df_2, float dummy, float ddummy, int ave) {
  const float eps = 1e-30;
  float sum, weight;
  float varsum, varweight;
  float f_2;
  long i, i0, i1;
  int cnt;
  i0 = ((0) > (imin) ? (0) : (imin));
  i1 = ((dim - 1) < (imax) ? (dim - 1) : (imax));
  for (i = 0; i < dim; i++)
    line[i] = initvalue;
  if (varline)
    for (i = 0; i < dim; i++)
      varline[i] = -1.0;
  f_2 = f1_2;
  for (i = i0; i <= i1; i++) {
    if (varline) {
      cnt = Isum2ldwE(data, vardat, dim_1, dim_2, dummy, ddummy, f1_1, f_2,
                      f3_1, f_2 + Df_2, &sum, &weight, &varsum, &varweight);
      line[i] = sum * factor;
      varline[i] = varsum * factor * factor;
      if (ave) {
        if (fabs(weight) > eps)
          line[i] /= weight;
        else
          line[i] = initvalue;
        if (fabs(varweight) > eps)
          varline[i] /= varweight * varweight;
        else
          varline[i] = -1.0;
      }
    } else {
      cnt = Isum2ldw(data, dim_1, dim_2, dummy, ddummy, f1_1, f_2, f3_1,
                     f_2 + Df_2, &sum, &weight);
      line[i] = sum * factor;
      if (ave) {
        if (fabs(weight) > eps)
          line[i] /= weight;
        else
          line[i] = initvalue;
      }
    }
    f_2 += Df_2;
  }
}


x86 assembly (clang, -O0):
<project_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x30(%rbp),%eax
movss  0x28(%rbp),%xmm8
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
movss  %xmm0,-0x20(%rbp)
movss  %xmm1,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
movss  %xmm2,-0x34(%rbp)
movss  %xmm3,-0x38(%rbp)
movss  %xmm4,-0x3c(%rbp)
movss  %xmm5,-0x40(%rbp)
movss  %xmm6,-0x44(%rbp)
movss  %xmm7,-0x48(%rbp)
movss  0xe6c(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
xor    %eax,%eax
cmp    -0x18(%rbp),%eax
jle    11ae <project_2+0x7e>
xor    %eax,%eax
mov    %eax,-0x80(%rbp)
jmp    11b4 <project_2+0x84>
mov    -0x18(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cltq
mov    %rax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cmp    -0x1c(%rbp),%eax
jge    11dd <project_2+0xad>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    11e6 <project_2+0xb6>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cltq
mov    %rax,-0x78(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
jge    122e <project_2+0xfe>
movss  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    11fa <project_2+0xca>
cmpq   $0x0,-0x10(%rbp)
je     127d <project_2+0x14d>
movq   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
jge    1278 <project_2+0x148>
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  0xda2(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1241 <project_2+0x111>
jmp    127d <project_2+0x14d>
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
cmp    -0x78(%rbp),%rax
jg     14b8 <project_2+0x388>
cmpq   $0x0,-0x10(%rbp)
je     13e3 <project_2+0x2b3>
mov    -0x30(%rbp),%rdi
mov    0x10(%rbp),%rsi
mov    0x18(%rbp),%edx
mov    0x20(%rbp),%ecx
movss  -0x48(%rbp),%xmm0
movss  0x28(%rbp),%xmm1
movss  -0x34(%rbp),%xmm2
movss  -0x60(%rbp),%xmm3
movss  -0x38(%rbp),%xmm4
movss  -0x60(%rbp),%xmm5
addss  -0x44(%rbp),%xmm5
lea    -0x50(%rbp),%r8
lea    -0x54(%rbp),%r9
lea    -0x58(%rbp),%r10
lea    -0x5c(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1050 <Isum2ldwE@plt>
mov    %eax,-0x7c(%rbp)
movss  -0x50(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x58(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x0,0x30(%rbp)
je     13de <project_2+0x2ae>
movss  -0x54(%rbp),%xmm0
call   1040 <fabs@plt>
movss  0xcb7(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1372 <project_2+0x242>
movss  -0x54(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    1384 <project_2+0x254>
movss  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x5c(%rbp),%xmm0
call   1040 <fabs@plt>
movss  0xc6a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    13c4 <project_2+0x294>
movss  -0x5c(%rbp),%xmm1
mulss  -0x5c(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    13d9 <project_2+0x2a9>
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  0xc30(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    13de <project_2+0x2ae>
jmp    1498 <project_2+0x368>
mov    -0x30(%rbp),%rdi
mov    0x18(%rbp),%esi
mov    0x20(%rbp),%edx
movss  -0x48(%rbp),%xmm0
movss  0x28(%rbp),%xmm1
movss  -0x34(%rbp),%xmm2
movss  -0x60(%rbp),%xmm3
movss  -0x38(%rbp),%xmm4
movss  -0x60(%rbp),%xmm5
addss  -0x44(%rbp),%xmm5
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
call   1030 <Isum2ldw@plt>
mov    %eax,-0x7c(%rbp)
movss  -0x50(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x0,0x30(%rbp)
je     1493 <project_2+0x363>
movss  -0x54(%rbp),%xmm0
call   1040 <fabs@plt>
movss  0xbad(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    147c <project_2+0x34c>
movss  -0x54(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    148e <project_2+0x35e>
movss  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    1493 <project_2+0x363>
jmp    1498 <project_2+0x368>
movss  -0x44(%rbp),%xmm0
addss  -0x60(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    128f <project_2+0x15f>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<project_2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movss  %xmm7,0x14(%rsp)
movss  %xmm6,0x20(%rsp)
movaps %xmm4,%xmm5
movss  %xmm3,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
mov    %r9,0x30(%rsp)
movss  %xmm1,0x8(%rsp)
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %r12d,%r12d
test   %ecx,%ecx
cmovns %ecx,%r12d
lea    -0x1(%rdx),%eax
cmp    %r8d,%eax
cmovl  %eax,%r8d
movslq %r8d,%rax
mov    %rax,0x38(%rsp)
test   %edx,%edx
movaps %xmm0,0x40(%rsp)
jle    118d <project_2+0x6d>
movslq %edx,%rax
cmp    $0x8,%edx
jae    1199 <project_2+0x79>
xor    %ecx,%ecx
jmp    1280 <project_2+0x160>
test   %r15,%r15
sete   %bpl
jmp    13c1 <project_2+0x2a1>
mov    %rax,%rcx
and    $0xfffffffffffffff8,%rcx
movaps %xmm0,%xmm1
shufps $0x0,%xmm0,%xmm1
lea    -0x8(%rcx),%rbp
mov    %rbp,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x7,%esi
cmp    $0x38,%rbp
jae    11c8 <project_2+0xa8>
xor    %ebp,%ebp
jmp    1241 <project_2+0x121>
and    $0xfffffffffffffff8,%rdi
xor    %ebp,%ebp
xchg   %ax,%ax
movups %xmm1,(%rbx,%rbp,4)
movups %xmm1,0x10(%rbx,%rbp,4)
movups %xmm1,0x20(%rbx,%rbp,4)
movups %xmm1,0x30(%rbx,%rbp,4)
movups %xmm1,0x40(%rbx,%rbp,4)
movups %xmm1,0x50(%rbx,%rbp,4)
movups %xmm1,0x60(%rbx,%rbp,4)
movups %xmm1,0x70(%rbx,%rbp,4)
movups %xmm1,0x80(%rbx,%rbp,4)
movups %xmm1,0x90(%rbx,%rbp,4)
movups %xmm1,0xa0(%rbx,%rbp,4)
movups %xmm1,0xb0(%rbx,%rbp,4)
movups %xmm1,0xc0(%rbx,%rbp,4)
movups %xmm1,0xd0(%rbx,%rbp,4)
movups %xmm1,0xe0(%rbx,%rbp,4)
movups %xmm1,0xf0(%rbx,%rbp,4)
add    $0x40,%rbp
add    $0xfffffffffffffff8,%rdi
jne    11d0 <project_2+0xb0>
test   %rsi,%rsi
je     1272 <project_2+0x152>
lea    (%rbx,%rbp,4),%rdi
add    $0x10,%rdi
shl    $0x5,%rsi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups %xmm1,-0x10(%rdi,%rbp,1)
movups %xmm1,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rsi
jne    1260 <project_2+0x140>
cmp    %rax,%rcx
je     128e <project_2+0x16e>
nopw   0x0(%rax,%rax,1)
movss  %xmm0,(%rbx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1280 <project_2+0x160>
test   %r15,%r15
sete   %bpl
je     13c1 <project_2+0x2a1>
test   %edx,%edx
jle    13c1 <project_2+0x2a1>
cmp    $0x8,%edx
jae    12af <project_2+0x18f>
xor    %ecx,%ecx
jmp    13b0 <project_2+0x290>
mov    %rax,%rcx
and    $0xfffffffffffffff8,%rcx
lea    -0x8(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x7,%edx
cmp    $0x38,%rdi
jae    12d7 <project_2+0x1b7>
xor    %edi,%edi
jmp    1375 <project_2+0x255>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
movaps 0xd1c(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups %xmm1,(%r15,%rdi,4)
movups %xmm1,0x10(%r15,%rdi,4)
movups %xmm1,0x20(%r15,%rdi,4)
movups %xmm1,0x30(%r15,%rdi,4)
movups %xmm1,0x40(%r15,%rdi,4)
movups %xmm1,0x50(%r15,%rdi,4)
movups %xmm1,0x60(%r15,%rdi,4)
movups %xmm1,0x70(%r15,%rdi,4)
movups %xmm1,0x80(%r15,%rdi,4)
movups %xmm1,0x90(%r15,%rdi,4)
movups %xmm1,0xa0(%r15,%rdi,4)
movups %xmm1,0xb0(%r15,%rdi,4)
movups %xmm1,0xc0(%r15,%rdi,4)
movups %xmm1,0xd0(%r15,%rdi,4)
movups %xmm1,0xe0(%r15,%rdi,4)
movups %xmm1,0xf0(%r15,%rdi,4)
add    $0x40,%rdi
add    $0xfffffffffffffff8,%rsi
jne    12f0 <project_2+0x1d0>
test   %rdx,%rdx
je     13a2 <project_2+0x282>
lea    (%r15,%rdi,4),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movaps 0xc71(%rip),%xmm1
nop
movups %xmm1,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    1390 <project_2+0x270>
cmp    %rax,%rcx
je     13c1 <project_2+0x2a1>
nopw   0x0(%rax,%rax,1)
movl   $0xbf800000,(%r15,%rcx,4)
bf
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13b0 <project_2+0x290>
cmp    0x38(%rsp),%r12
jle    13d7 <project_2+0x2b7>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xffffffffffffffff,%r12
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%r14
jmp    1404 <project_2+0x2e4>
movaps 0x40(%rsp),%xmm0
movss  %xmm0,0x4(%rbx,%r12,4)
add    $0x1,%r12
cmp    0x38(%rsp),%r12
movss  0x24(%rsp),%xmm5
jge    13c8 <project_2+0x2a8>
movaps %xmm5,%xmm3
addss  0x20(%rsp),%xmm5
test   %bpl,%bpl
movss  %xmm5,0x24(%rsp)
je     14a0 <project_2+0x380>
mov    0x30(%rsp),%rdi
mov    0x98(%rsp),%esi
mov    0xa0(%rsp),%edx
movss  0x14(%rsp),%xmm0
movss  0xa8(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
movss  0x10(%rsp),%xmm4
mov    %r13,%rcx
mov    %r14,%r8
call   1030 <Isum2ldw@plt>
movss  0x1c(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
movss  %xmm0,0x4(%rbx,%r12,4)
cmpl   $0x0,0xb0(%rsp)
je     13f3 <project_2+0x2d3>
movss  0x18(%rsp),%xmm1
movaps %xmm1,%xmm2
andps  0xb8e(%rip),%xmm2
ucomiss 0xb97(%rip),%xmm2
jbe    13e7 <project_2+0x2c7>
divss  %xmm1,%xmm0
jmp    13ec <project_2+0x2cc>
nopl   0x0(%rax,%rax,1)
mov    0x30(%rsp),%rdi
mov    0x90(%rsp),%rsi
mov    0x98(%rsp),%edx
mov    0xa0(%rsp),%ecx
movss  0x14(%rsp),%xmm0
movss  0xa8(%rsp),%xmm1
movss  0xc(%rsp),%xmm2
movss  0x10(%rsp),%xmm4
mov    %r13,%r8
mov    %r14,%r9
lea    0x28(%rsp),%rax
push   %rax
lea    0x34(%rsp),%rax
push   %rax
call   1040 <Isum2ldwE@plt>
add    $0x10,%rsp
movss  0x1c(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,0x4(%rbx,%r12,4)
movss  0x2c(%rsp),%xmm0
mulss  %xmm1,%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,0x4(%r15,%r12,4)
cmpl   $0x0,0xb0(%rsp)
je     13f3 <project_2+0x2d3>
movss  0x18(%rsp),%xmm0
movaps %xmm0,%xmm1
andps  0xad5(%rip),%xmm1
ucomiss 0xade(%rip),%xmm1
movaps 0x40(%rsp),%xmm1
jbe    1554 <project_2+0x434>
movss  0x4(%rbx,%r12,4),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x4(%rbx,%r12,4)
movss  0x28(%rsp),%xmm0
movaps %xmm0,%xmm1
andps  0xaa5(%rip),%xmm1
ucomiss 0xaae(%rip),%xmm1
jbe    158f <project_2+0x46f>
mulss  %xmm0,%xmm0
movss  0x4(%r15,%r12,4),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x4(%r15,%r12,4)
jmp    13f3 <project_2+0x2d3>
movl   $0xbf800000,0x4(%r15,%r12,4)
80 bf
jmp    13f3 <project_2+0x2d3>

LLVM IR (-O0):
define void @project_2(float* %0, float* %1, i32 %2, i32 %3, i32 %4, float %5, float %6, float* %7, float* %8, i32 %9, i32 %10, float %11, float %12, float %13, float %14, float %15, float %16, float %17, i32 %18) {
%20 = alloca float*
%21 = alloca float*
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca float
%26 = alloca float
%27 = alloca float*
%28 = alloca float*
%29 = alloca i32
%30 = alloca i32
%31 = alloca float
%32 = alloca float
%33 = alloca float
%34 = alloca float
%35 = alloca float
%36 = alloca float
%37 = alloca float
%38 = alloca i32
%39 = alloca float
%40 = alloca float
%41 = alloca float
%42 = alloca float
%43 = alloca float
%44 = alloca float
%45 = alloca i64
%46 = alloca i64
%47 = alloca i64
%48 = alloca i32
store float* %0, float** %20
store float* %1, float** %21
store i32 %2, i32* %22
store i32 %3, i32* %23
store i32 %4, i32* %24
store float %5, float* %25
store float %6, float* %26
store float* %7, float** %27
store float* %8, float** %28
store i32 %9, i32* %29
store i32 %10, i32* %30
store float %11, float* %31
store float %12, float* %32
store float %13, float* %33
store float %14, float* %34
store float %15, float* %35
store float %16, float* %36
store float %17, float* %37
store i32 %18, i32* %38
store float 0x39B4484C00000000, float* %39
%49 = load i32, i32* %23
%50 = icmp sgt i32 0, %49
br i1 %50, label %51, label %52
51: ; preds = %19
br label %54
52: ; preds = %19
%53 = load i32, i32* %23
br label %54
54: ; preds = %52, %51
%55 = phi i32 [ 0, %51 ], [ %53, %52 ]
%56 = sext i32 %55 to i64
store i64 %56, i64* %46
%57 = load i32, i32* %22
%58 = sub nsw i32 %57, 1
%59 = load i32, i32* %24
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %64
61: ; preds = %54
%62 = load i32, i32* %22
%63 = sub nsw i32 %62, 1
br label %66
64: ; preds = %54
%65 = load i32, i32* %24
br label %66
66: ; preds = %64, %61
%67 = phi i32 [ %63, %61 ], [ %65, %64 ]
%68 = sext i32 %67 to i64
store i64 %68, i64* %47
store i64 0, i64* %45
br label %69
69: ; preds = %79, %66
%70 = load i64, i64* %45
%71 = load i32, i32* %22
%72 = sext i32 %71 to i64
%73 = icmp slt i64 %70, %72
br i1 %73, label %74, label %82
74: ; preds = %69
%75 = load float, float* %25
%76 = load float*, float** %20
%77 = load i64, i64* %45
%78 = getelementptr inbounds float, float* %76, i64 %77
store float %75, float* %78
br label %79
79: ; preds = %74
%80 = load i64, i64* %45
%81 = add nsw i64 %80, 1
store i64 %81, i64* %45
br label %69
82: ; preds = %69
%83 = load float*, float** %21
%84 = icmp ne float* %83, null
br i1 %84, label %85, label %99
85: ; preds = %82
store i64 0, i64* %45
br label %86
86: ; preds = %95, %85
%87 = load i64, i64* %45
%88 = load i32, i32* %22
%89 = sext i32 %88 to i64
%90 = icmp slt i64 %87, %89
br i1 %90, label %91, label %98
91: ; preds = %86
%92 = load float*, float** %21
%93 = load i64, i64* %45
%94 = getelementptr inbounds float, float* %92, i64 %93
store float -1.000000e+00, float* %94
br label %95
95: ; preds = %91
%96 = load i64, i64* %45
%97 = add nsw i64 %96, 1
store i64 %97, i64* %45
br label %86
98: ; preds = %86
br label %99
99: ; preds = %98, %82
%100 = load float, float* %33
store float %100, float* %44
%101 = load i64, i64* %46
store i64 %101, i64* %45
br label %102
102: ; preds = %217, %99
%103 = load i64, i64* %45
%104 = load i64, i64* %47
%105 = icmp sle i64 %103, %104
br i1 %105, label %106, label %220
106: ; preds = %102
%107 = load float*, float** %21
%108 = icmp ne float* %107, null
br i1 %108, label %109, label %174
109: ; preds = %106
%110 = load float*, float** %27
%111 = load float*, float** %28
%112 = load i32, i32* %29
%113 = load i32, i32* %30
%114 = load float, float* %36
%115 = load float, float* %37
%116 = load float, float* %31
%117 = load float, float* %44
%118 = load float, float* %32
%119 = load float, float* %44
%120 = load float, float* %35
%121 = fadd float %119, %120
%122 = call i32 @Isum2ldwE(float* %110, float* %111, i32 %112, i32 %113, float %114, float %115, float %116, float %117, float %118, float %121, float* %40, float* %41, float* %42, float* %43)
store i32 %122, i32* %48
%123 = load float, float* %40
%124 = load float, float* %26
%125 = fmul float %123, %124
%126 = load float*, float** %20
%127 = load i64, i64* %45
%128 = getelementptr inbounds float, float* %126, i64 %127
store float %125, float* %128
%129 = load float, float* %42
%130 = load float, float* %26
%131 = fmul float %129, %130
%132 = load float, float* %26
%133 = fmul float %131, %132
%134 = load float*, float** %21
%135 = load i64, i64* %45
%136 = getelementptr inbounds float, float* %134, i64 %135
store float %133, float* %136
%137 = load i32, i32* %38
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %173
139: ; preds = %109
%140 = load float, float* %41
%141 = call float @fabs(float %140)
%142 = fcmp ogt float %141, 0x39B4484C00000000
br i1 %142, label %143, label %150
143: ; preds = %139
%144 = load float, float* %41
%145 = load float*, float** %20
%146 = load i64, i64* %45
%147 = getelementptr inbounds float, float* %145, i64 %146
%148 = load float, float* %147
%149 = fdiv float %148, %144
store float %149, float* %147
br label %155
150: ; preds = %139
%151 = load float, float* %25
%152 = load float*, float** %20
%153 = load i64, i64* %45
%154 = getelementptr inbounds float, float* %152, i64 %153
store float %151, float* %154
br label %155
155: ; preds = %150, %143
%156 = load float, float* %43
%157 = call float @fabs(float %156)
%158 = fcmp ogt float %157, 0x39B4484C00000000
br i1 %158, label %159, label %168
159: ; preds = %155
%160 = load float, float* %43
%161 = load float, float* %43
%162 = fmul float %160, %161
%163 = load float*, float** %21
%164 = load i64, i64* %45
%165 = getelementptr inbounds float, float* %163, i64 %164
%166 = load float, float* %165
%167 = fdiv float %166, %162
store float %167, float* %165
br label %172
168: ; preds = %155
%169 = load float*, float** %21
%170 = load i64, i64* %45
%171 = getelementptr inbounds float, float* %169, i64 %170
store float -1.000000e+00, float* %171
br label %172
172: ; preds = %168, %159
br label %173
173: ; preds = %172, %109
br label %213
174: ; preds = %106
%175 = load float*, float** %27
%176 = load i32, i32* %29
%177 = load i32, i32* %30
%178 = load float, float* %36
%179 = load float, float* %37
%180 = load float, float* %31
%181 = load float, float* %44
%182 = load float, float* %32
%183 = load float, float* %44
%184 = load float, float* %35
%185 = fadd float %183, %184
%186 = call i32 @Isum2ldw(float* %175, i32 %176, i32 %177, float %178, float %179, float %180, float %181, float %182, float %185, float* %40, float* %41)
store i32 %186, i32* %48
%187 = load float, float* %40
%188 = load float, float* %26
%189 = fmul float %187, %188
%190 = load float*, float** %20
%191 = load i64, i64* %45
%192 = getelementptr inbounds float, float* %190, i64 %191
store float %189, float* %192
%193 = load i32, i32* %38
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %212
195: ; preds = %174
%196 = load float, float* %41
%197 = call float @fabs(float %196)
%198 = fcmp ogt float %197, 0x39B4484C00000000
br i1 %198, label %199, label %206
199: ; preds = %195
%200 = load float, float* %41
%201 = load float*, float** %20
%202 = load i64, i64* %45
%203 = getelementptr inbounds float, float* %201, i64 %202
%204 = load float, float* %203
%205 = fdiv float %204, %200
store float %205, float* %203
br label %211
206: ; preds = %195
%207 = load float, float* %25
%208 = load float*, float** %20
%209 = load i64, i64* %45
%210 = getelementptr inbounds float, float* %208, i64 %209
store float %207, float* %210
br label %211
211: ; preds = %206, %199
br label %212
212: ; preds = %211, %174
br label %213
213: ; preds = %212, %173
%214 = load float, float* %35
%215 = load float, float* %44
%216 = fadd float %215, %214
store float %216, float* %44
br label %217
217: ; preds = %213
%218 = load i64, i64* %45
%219 = add nsw i64 %218, 1
store i64 %219, i64* %45
br label %102
220: ; preds = %102
ret void
}

LLVM IR (-O2):
define void @project_2(float* nocapture %0, float* %1, i32 %2, i32 %3, i32 %4, float %5, float %6, float* %7, float* %8, i32 %9, i32 %10, float %11, float %12, float %13, float %14, float %15, float %16, float %17, i32 %18) {
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = bitcast float* %20 to i8*
%25 = bitcast float* %21 to i8*
%26 = bitcast float* %22 to i8*
%27 = bitcast float* %23 to i8*
%28 = icmp sgt i32 %3, 0
%29 = select i1 %28, i32 %3, i32 0
%30 = zext i32 %29 to i64
%31 = add nsw i32 %2, -1
%32 = icmp slt i32 %31, %4
%33 = select i1 %32, i32 %31, i32 %4
%34 = sext i32 %33 to i64
%35 = sext i32 %2 to i64
%36 = icmp sgt i32 %2, 0
br i1 %36, label %37, label %114
37: ; preds = %19
%38 = icmp ult i32 %2, 8
br i1 %38, label %112, label %39
39: ; preds = %37
%40 = and i64 %35, -8
%41 = insertelement <4 x float> poison, float %5, i64 0
%42 = shufflevector <4 x float> %41, <4 x float> poison, <4 x i32> zeroinitializer
%43 = insertelement <4 x float> poison, float %5, i64 0
%44 = shufflevector <4 x float> %43, <4 x float> poison, <4 x i32> zeroinitializer
%45 = add nsw i64 %40, -8
%46 = lshr exact i64 %45, 3
%47 = add nuw nsw i64 %46, 1
%48 = and i64 %47, 7
%49 = icmp ult i64 %45, 56
br i1 %49, label %97, label %50
50: ; preds = %39
%51 = and i64 %47, 4611686018427387896
br label %52
52: ; preds = %52, %50
%53 = phi i64 [ 0, %50 ], [ %94, %52 ]
%54 = phi i64 [ 0, %50 ], [ %95, %52 ]
%55 = getelementptr inbounds float, float* %0, i64 %53
%56 = bitcast float* %55 to <4 x float>*
store <4 x float> %42, <4 x float>* %56
%57 = getelementptr inbounds float, float* %55, i64 4
%58 = bitcast float* %57 to <4 x float>*
store <4 x float> %44, <4 x float>* %58
%59 = or i64 %53, 8
%60 = getelementptr inbounds float, float* %0, i64 %59
%61 = bitcast float* %60 to <4 x float>*
store <4 x float> %42, <4 x float>* %61
%62 = getelementptr inbounds float, float* %60, i64 4
%63 = bitcast float* %62 to <4 x float>*
store <4 x float> %44, <4 x float>* %63
%64 = or i64 %53, 16
%65 = getelementptr inbounds float, float* %0, i64 %64
%66 = bitcast float* %65 to <4 x float>*
store <4 x float> %42, <4 x float>* %66
%67 = getelementptr inbounds float, float* %65, i64 4
%68 = bitcast float* %67 to <4 x float>*
store <4 x float> %44, <4 x float>* %68
%69 = or i64 %53, 24
%70 = getelementptr inbounds float, float* %0, i64 %69
%71 = bitcast float* %70 to <4 x float>*
store <4 x float> %42, <4 x float>* %71
%72 = getelementptr inbounds float, float* %70, i64 4
%73 = bitcast float* %72 to <4 x float>*
store <4 x float> %44, <4 x float>* %73
%74 = or i64 %53, 32
%75 = getelementptr inbounds float, float* %0, i64 %74
%76 = bitcast float* %75 to <4 x float>*
store <4 x float> %42, <4 x float>* %76
%77 = getelementptr inbounds float, float* %75, i64 4
%78 = bitcast float* %77 to <4 x float>*
store <4 x float> %44, <4 x float>* %78
%79 = or i64 %53, 40
%80 = getelementptr inbounds float, float* %0, i64 %79
%81 = bitcast float* %80 to <4 x float>*
store <4 x float> %42, <4 x float>* %81
%82 = getelementptr inbounds float, float* %80, i64 4
%83 = bitcast float* %82 to <4 x float>*
store <4 x float> %44, <4 x float>* %83
%84 = or i64 %53, 48
%85 = getelementptr inbounds float, float* %0, i64 %84
%86 = bitcast float* %85 to <4 x float>*
store <4 x float> %42, <4 x float>* %86
%87 = getelementptr inbounds float, float* %85, i64 4
%88 = bitcast float* %87 to <4 x float>*
store <4 x float> %44, <4 x float>* %88
%89 = or i64 %53, 56
%90 = getelementptr inbounds float, float* %0, i64 %89
%91 = bitcast float* %90 to <4 x float>*
store <4 x float> %42, <4 x float>* %91
%92 = getelementptr inbounds float, float* %90, i64 4
%93 = bitcast float* %92 to <4 x float>*
store <4 x float> %44, <4 x float>* %93
%94 = add nuw i64 %53, 64
%95 = add nuw i64 %54, 8
%96 = icmp eq i64 %95, %51
br i1 %96, label %97, label %52
97: ; preds = %52, %39
%98 = phi i64 [ 0, %39 ], [ %94, %52 ]
%99 = icmp eq i64 %48, 0
br i1 %99, label %110, label %100
100: ; preds = %97, %100
%101 = phi i64 [ %107, %100 ], [ %98, %97 ]
%102 = phi i64 [ %108, %100 ], [ 0, %97 ]
%103 = getelementptr inbounds float, float* %0, i64 %101
%104 = bitcast float* %103 to <4 x float>*
store <4 x float> %42, <4 x float>* %104
%105 = getelementptr inbounds float, float* %103, i64 4
%106 = bitcast float* %105 to <4 x float>*
store <4 x float> %44, <4 x float>* %106
%107 = add nuw i64 %101, 8
%108 = add i64 %102, 1
%109 = icmp eq i64 %108, %48
br i1 %109, label %110, label %100
110: ; preds = %100, %97
%111 = icmp eq i64 %40, %35
br i1 %111, label %121, label %112
112: ; preds = %37, %110
%113 = phi i64 [ 0, %37 ], [ %40, %110 ]
br label %116
114: ; preds = %19
%115 = icmp eq float* %1, null
br label %203
116: ; preds = %112, %116
%117 = phi i64 [ %119, %116 ], [ %113, %112 ]
%118 = getelementptr inbounds float, float* %0, i64 %117
store float %5, float* %118
%119 = add nuw nsw i64 %117, 1
%120 = icmp eq i64 %119, %35
br i1 %120, label %121, label %116
121: ; preds = %116, %110
%122 = icmp eq float* %1, null
%123 = icmp slt i32 %2, 1
%124 = or i1 %122, %123
br i1 %124, label %203, label %125
125: ; preds = %121
%126 = icmp ult i32 %2, 8
br i1 %126, label %196, label %127
127: ; preds = %125
%128 = and i64 %35, -8
%129 = add nsw i64 %128, -8
%130 = lshr exact i64 %129, 3
%131 = add nuw nsw i64 %130, 1
%132 = and i64 %131, 7
%133 = icmp ult i64 %129, 56
br i1 %133, label %181, label %134
134: ; preds = %127
%135 = and i64 %131, 4611686018427387896
br label %136
136: ; preds = %136, %134
%137 = phi i64 [ 0, %134 ], [ %178, %136 ]
%138 = phi i64 [ 0, %134 ], [ %179, %136 ]
%139 = getelementptr inbounds float, float* %1, i64 %137
%140 = bitcast float* %139 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %140
%141 = getelementptr inbounds float, float* %139, i64 4
%142 = bitcast float* %141 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %142
%143 = or i64 %137, 8
%144 = getelementptr inbounds float, float* %1, i64 %143
%145 = bitcast float* %144 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %145
%146 = getelementptr inbounds float, float* %144, i64 4
%147 = bitcast float* %146 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %147
%148 = or i64 %137, 16
%149 = getelementptr inbounds float, float* %1, i64 %148
%150 = bitcast float* %149 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %150
%151 = getelementptr inbounds float, float* %149, i64 4
%152 = bitcast float* %151 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %152
%153 = or i64 %137, 24
%154 = getelementptr inbounds float, float* %1, i64 %153
%155 = bitcast float* %154 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %155
%156 = getelementptr inbounds float, float* %154, i64 4
%157 = bitcast float* %156 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %157
%158 = or i64 %137, 32
%159 = getelementptr inbounds float, float* %1, i64 %158
%160 = bitcast float* %159 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %160
%161 = getelementptr inbounds float, float* %159, i64 4
%162 = bitcast float* %161 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %162
%163 = or i64 %137, 40
%164 = getelementptr inbounds float, float* %1, i64 %163
%165 = bitcast float* %164 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %165
%166 = getelementptr inbounds float, float* %164, i64 4
%167 = bitcast float* %166 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %167
%168 = or i64 %137, 48
%169 = getelementptr inbounds float, float* %1, i64 %168
%170 = bitcast float* %169 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %170
%171 = getelementptr inbounds float, float* %169, i64 4
%172 = bitcast float* %171 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %172
%173 = or i64 %137, 56
%174 = getelementptr inbounds float, float* %1, i64 %173
%175 = bitcast float* %174 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %175
%176 = getelementptr inbounds float, float* %174, i64 4
%177 = bitcast float* %176 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %177
%178 = add nuw i64 %137, 64
%179 = add nuw i64 %138, 8
%180 = icmp eq i64 %179, %135
br i1 %180, label %181, label %136
181: ; preds = %136, %127
%182 = phi i64 [ 0, %127 ], [ %178, %136 ]
%183 = icmp eq i64 %132, 0
br i1 %183, label %194, label %184
184: ; preds = %181, %184
%185 = phi i64 [ %191, %184 ], [ %182, %181 ]
%186 = phi i64 [ %192, %184 ], [ 0, %181 ]
%187 = getelementptr inbounds float, float* %1, i64 %185
%188 = bitcast float* %187 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %188
%189 = getelementptr inbounds float, float* %187, i64 4
%190 = bitcast float* %189 to <4 x float>*
store <4 x float> <float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00>, <4 x float>* %190
%191 = add nuw i64 %185, 8
%192 = add i64 %186, 1
%193 = icmp eq i64 %192, %132
br i1 %193, label %194, label %184
194: ; preds = %184, %181
%195 = icmp eq i64 %128, %35
br i1 %195, label %203, label %196
196: ; preds = %125, %194
%197 = phi i64 [ 0, %125 ], [ %128, %194 ]
br label %198
198: ; preds = %196, %198
%199 = phi i64 [ %201, %198 ], [ %197, %196 ]
%200 = getelementptr inbounds float, float* %1, i64 %199
store float -1.000000e+00, float* %200
%201 = add nuw nsw i64 %199, 1
%202 = icmp eq i64 %201, %35
br i1 %202, label %203, label %198
203: ; preds = %198, %194, %114, %121
%204 = phi i1 [ %115, %114 ], [ %122, %121 ], [ %122, %194 ], [ %122, %198 ]
%205 = icmp sgt i64 %30, %34
br i1 %205, label %253, label %206
206: ; preds = %203
%207 = icmp eq i32 %18, 0
br label %208
208: ; preds = %206, %250
%209 = phi float [ %13, %206 ], [ %211, %250 ]
%210 = phi i64 [ %30, %206 ], [ %251, %250 ]
%211 = fadd float %209, %15
br i1 %204, label %238, label %212
212: ; preds = %208
%213 = call i32 @Isum2ldwE(float* %7, float* %8, i32 %9, i32 %10, float %16, float %17, float %11, float %209, float %12, float %211, float* %20, float* %21, float* %22, float* %23)
%214 = load float, float* %20
%215 = fmul float %214, %6
%216 = getelementptr inbounds float, float* %0, i64 %210
store float %215, float* %216
%217 = load float, float* %22
%218 = fmul float %217, %6
%219 = fmul float %218, %6
%220 = getelementptr inbounds float, float* %1, i64 %210
store float %219, float* %220
br i1 %207, label %250, label %221
221: ; preds = %212
%222 = load float, float* %21
%223 = call float @llvm.fabs.f32(float %222)
%224 = fcmp ogt float %223, 0x39B4484C00000000
br i1 %224, label %225, label %228
225: ; preds = %221
%226 = load float, float* %216
%227 = fdiv float %226, %222
br label %228
228: ; preds = %221, %225
%229 = phi float [ %227, %225 ], [ %5, %221 ]
store float %229, float* %216
%230 = load float, float* %23
%231 = call float @llvm.fabs.f32(float %230)
%232 = fcmp ogt float %231, 0x39B4484C00000000
br i1 %232, label %233, label %237
233: ; preds = %228
%234 = fmul float %230, %230
%235 = load float, float* %220
%236 = fdiv float %235, %234
store float %236, float* %220
br label %250
237: ; preds = %228
store float -1.000000e+00, float* %220
br label %250
238: ; preds = %208
%239 = call i32 @Isum2ldw(float* %7, i32 %9, i32 %10, float %16, float %17, float %11, float %209, float %12, float %211, float* %20, float* %21)
%240 = load float, float* %20
%241 = fmul float %240, %6
%242 = getelementptr inbounds float, float* %0, i64 %210
store float %241, float* %242
br i1 %207, label %250, label %243
243: ; preds = %238
%244 = load float, float* %21
%245 = call float @llvm.fabs.f32(float %244)
%246 = fcmp ogt float %245, 0x39B4484C00000000
br i1 %246, label %247, label %249
247: ; preds = %243
%248 = fdiv float %241, %244
store float %248, float* %242
br label %250
249: ; preds = %243
store float %5, float* %242
br label %250
250: ; preds = %238, %249, %247, %212, %237, %233
%251 = add nuw nsw i64 %210, 1
%252 = icmp slt i64 %210, %34
br i1 %252, label %208, label %253
253: ; preds = %250, %203
ret void
}