#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 */
double fabsf(float);
float gaindequant(int, double, int);
int /*<<< orphan*/ getCBvec(float *, float *, int, int, int);
void iCBConstruct(float *decvector, int *index, int *gain_index, float *mem,
                  int lMem, int veclen, int nStages) {
  int j;
  int k;
  float gain[3];
  float cbvec[40];
  gain[0] = gaindequant(gain_index[0], 1.0, 32);
  if (nStages > 1)
    gain[1] = gaindequant(gain_index[1], fabsf(gain[0]), 16);
  if (nStages > 2)
    gain[2] = gaindequant(gain_index[2], fabsf(gain[1]), 8);
  getCBvec(cbvec, mem, index[0], lMem, veclen);
  for (j = 0; j < veclen; j++)
    decvector[j] = gain[0] * cbvec[j];
  if (nStages > 1) {
    for (k = 1; k < nStages; k++) {
      getCBvec(cbvec, mem, index[k], lMem, veclen);
      for (j = 0; j < veclen; j++)
        decvector[j] += gain[k] * cbvec[j];
    }
  }
}


x86 assembly (clang, -O0):
<iCBConstruct>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
movsd  0xe9c(%rip),%xmm0
mov    $0x20,%esi
call   1030 <gaindequant@plt>
movss  %xmm0,-0x3c(%rbp)
cmpl   $0x1,0x10(%rbp)
jle    11a9 <iCBConstruct+0x79>
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0xe4(%rbp)
movss  -0x3c(%rbp),%xmm0
call   1040 <fabsf@plt>
mov    -0xe4(%rbp),%edi
mov    $0x10,%esi
call   1030 <gaindequant@plt>
movss  %xmm0,-0x38(%rbp)
cmpl   $0x2,0x10(%rbp)
jle    11df <iCBConstruct+0xaf>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0xe8(%rbp)
movss  -0x38(%rbp),%xmm0
call   1040 <fabsf@plt>
mov    -0xe8(%rbp),%edi
mov    $0x8,%esi
call   1030 <gaindequant@plt>
movss  %xmm0,-0x34(%rbp)
lea    -0xe0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
call   1050 <getCBvec@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    123c <iCBConstruct+0x10c>
movss  -0x3c(%rbp),%xmm0
movslq -0x2c(%rbp),%rax
mulss  -0xe0(%rbp,%rax,4),%xmm0
ff ff
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1203 <iCBConstruct+0xd3>
cmpl   $0x1,0x10(%rbp)
jle    12e5 <iCBConstruct+0x1b5>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12e0 <iCBConstruct+0x1b0>
lea    -0xe0(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
call   1050 <getCBvec@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12cd <iCBConstruct+0x19d>
movslq -0x30(%rbp),%rax
movss  -0x3c(%rbp,%rax,4),%xmm0
movslq -0x2c(%rbp),%rax
movss  -0xe0(%rbp,%rax,4),%xmm2
ff ff
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1282 <iCBConstruct+0x152>
jmp    12d2 <iCBConstruct+0x1a2>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    124d <iCBConstruct+0x11d>
jmp    12e5 <iCBConstruct+0x1b5>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iCBConstruct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r9d,%ebx
mov    %r8d,0xc(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdx,%r13
mov    %rsi,0x10(%rsp)
mov    %rdi,%rbp
mov    0x130(%rsp),%r15d
mov    (%rdx),%edi
movsd  0xe95(%rip),%xmm0
mov    $0x20,%esi
call   1030 <gaindequant@plt>
movaps %xmm0,0x20(%rsp)
cmp    $0x2,%r15d
jl     11c3 <iCBConstruct+0x93>
mov    0x4(%r13),%r14d
movaps 0x20(%rsp),%xmm0
call   1040 <fabsf@plt>
mov    %r14d,%edi
mov    $0x10,%esi
call   1030 <gaindequant@plt>
movss  %xmm0,0x48(%rsp)
cmp    $0x2,%r15d
je     11c3 <iCBConstruct+0x93>
mov    0x8(%r13),%r13d
call   1040 <fabsf@plt>
mov    %r13d,%edi
mov    $0x8,%esi
call   1030 <gaindequant@plt>
movss  %xmm0,0x4c(%rsp)
mov    0x10(%rsp),%rax
mov    (%rax),%edx
lea    0x50(%rsp),%rdi
mov    0x18(%rsp),%rsi
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
call   1050 <getCBvec@plt>
mov    %ebx,%r14d
test   %ebx,%ebx
movaps 0x20(%rsp),%xmm3
jle    12b9 <iCBConstruct+0x189>
cmp    $0x8,%ebx
jae    11fc <iCBConstruct+0xcc>
xor    %eax,%eax
jmp    12a0 <iCBConstruct+0x170>
mov    %r14d,%eax
and    $0xfffffff8,%eax
movaps %xmm3,%xmm0
shufps $0x0,%xmm3,%xmm0
lea    -0x8(%rax),%rdx
mov    %rdx,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     1451 <iCBConstruct+0x321>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movaps 0x50(%rsp,%rdx,4),%xmm1
mulps  %xmm0,%xmm1
movaps 0x60(%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups %xmm1,0x0(%rbp,%rdx,4)
movups %xmm2,0x10(%rbp,%rdx,4)
movaps 0x70(%rsp,%rdx,4),%xmm1
mulps  %xmm0,%xmm1
movaps 0x80(%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups %xmm1,0x20(%rbp,%rdx,4)
movups %xmm2,0x30(%rbp,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1230 <iCBConstruct+0x100>
test   $0x1,%cl
je     1290 <iCBConstruct+0x160>
movaps %xmm0,%xmm1
mulps  0x50(%rsp,%rdx,4),%xmm1
movaps 0x60(%rsp,%rdx,4),%xmm2
mulps  %xmm0,%xmm2
movups %xmm1,0x0(%rbp,%rdx,4)
movups %xmm2,0x10(%rbp,%rdx,4)
cmp    %r14,%rax
je     12b9 <iCBConstruct+0x189>
cs nopw 0x0(%rax,%rax,1)
nop
movss  0x50(%rsp,%rax,4),%xmm0
mulss  %xmm3,%xmm0
movss  %xmm0,0x0(%rbp,%rax,4)
add    $0x1,%rax
cmp    %rax,%r14
jne    12a0 <iCBConstruct+0x170>
cmp    $0x2,%r15d
jl     143f <iCBConstruct+0x30f>
mov    %r15d,%r15d
mov    %r14d,%r12d
and    $0xfffffff8,%r12d
lea    -0x8(%r12),%rax
mov    %rax,0x20(%rsp)
mov    %rax,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x38(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x30(%rsp)
mov    $0x1,%r13d
jmp    130d <iCBConstruct+0x1dd>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    %r15,%r13
je     143f <iCBConstruct+0x30f>
mov    0x10(%rsp),%rax
mov    (%rax,%r13,4),%edx
lea    0x50(%rsp),%rdi
mov    0x18(%rsp),%rsi
mov    0xc(%rsp),%ecx
mov    %ebx,%r8d
call   1050 <getCBvec@plt>
test   %ebx,%ebx
jle    1300 <iCBConstruct+0x1d0>
movss  0x44(%rsp,%r13,4),%xmm0
cmp    $0x8,%ebx
jae    1350 <iCBConstruct+0x220>
xor    %eax,%eax
jmp    1410 <iCBConstruct+0x2e0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movaps %xmm0,%xmm1
shufps $0x0,%xmm0,%xmm1
cmpq   $0x0,0x20(%rsp)
je     1434 <iCBConstruct+0x304>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movaps 0x50(%rsp,%rax,4),%xmm2
mulps  %xmm1,%xmm2
movups 0x0(%rbp,%rax,4),%xmm3
addps  %xmm2,%xmm3
movups 0x10(%rbp,%rax,4),%xmm2
movups 0x20(%rbp,%rax,4),%xmm4
movups 0x30(%rbp,%rax,4),%xmm5
movaps 0x60(%rsp,%rax,4),%xmm6
mulps  %xmm1,%xmm6
addps  %xmm2,%xmm6
movups %xmm3,0x0(%rbp,%rax,4)
movups %xmm6,0x10(%rbp,%rax,4)
movaps 0x70(%rsp,%rax,4),%xmm2
mulps  %xmm1,%xmm2
addps  %xmm4,%xmm2
movaps 0x80(%rsp,%rax,4),%xmm3
mulps  %xmm1,%xmm3
addps  %xmm5,%xmm3
movups %xmm2,0x20(%rbp,%rax,4)
movups %xmm3,0x30(%rbp,%rax,4)
add    $0x10,%rax
add    $0xfffffffffffffffe,%rcx
jne    1370 <iCBConstruct+0x240>
testb  $0x1,0x38(%rsp)
je     1402 <iCBConstruct+0x2d2>
movups 0x0(%rbp,%rax,4),%xmm2
movups 0x10(%rbp,%rax,4),%xmm3
movaps %xmm1,%xmm4
mulps  0x50(%rsp,%rax,4),%xmm4
addps  %xmm2,%xmm4
movaps 0x60(%rsp,%rax,4),%xmm2
mulps  %xmm1,%xmm2
addps  %xmm3,%xmm2
movups %xmm4,0x0(%rbp,%rax,4)
movups %xmm2,0x10(%rbp,%rax,4)
mov    %r12,%rax
cmp    %r14,%r12
je     1300 <iCBConstruct+0x1d0>
xchg   %ax,%ax
movss  0x50(%rsp,%rax,4),%xmm1
mulss  %xmm0,%xmm1
addss  0x0(%rbp,%rax,4),%xmm1
movss  %xmm1,0x0(%rbp,%rax,4)
add    $0x1,%rax
cmp    %rax,%r14
jne    1410 <iCBConstruct+0x2e0>
jmp    1300 <iCBConstruct+0x1d0>
xor    %eax,%eax
testb  $0x1,0x38(%rsp)
jne    13d8 <iCBConstruct+0x2a8>
jmp    1402 <iCBConstruct+0x2d2>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%cl
jne    1276 <iCBConstruct+0x146>
jmp    1290 <iCBConstruct+0x160>

LLVM IR (-O0):
define void @iCBConstruct(float* %0, i32* %1, i32* %2, float* %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca float*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca float*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca [3 x float]
%18 = alloca [40 x float]
store float* %0, float** %8
store i32* %1, i32** %9
store i32* %2, i32** %10
store float* %3, float** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%19 = load i32*, i32** %10
%20 = getelementptr inbounds i32, i32* %19, i64 0
%21 = load i32, i32* %20
%22 = call float @gaindequant(i32 %21, double 1.000000e+00, i32 32)
%23 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 0
store float %22, float* %23
%24 = load i32, i32* %14
%25 = icmp sgt i32 %24, 1
br i1 %25, label %26, label %35
26: ; preds = %7
%27 = load i32*, i32** %10
%28 = getelementptr inbounds i32, i32* %27, i64 1
%29 = load i32, i32* %28
%30 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 0
%31 = load float, float* %30
%32 = call double @fabsf(float %31)
%33 = call float @gaindequant(i32 %29, double %32, i32 16)
%34 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 1
store float %33, float* %34
br label %35
35: ; preds = %26, %7
%36 = load i32, i32* %14
%37 = icmp sgt i32 %36, 2
br i1 %37, label %38, label %47
38: ; preds = %35
%39 = load i32*, i32** %10
%40 = getelementptr inbounds i32, i32* %39, i64 2
%41 = load i32, i32* %40
%42 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 1
%43 = load float, float* %42
%44 = call double @fabsf(float %43)
%45 = call float @gaindequant(i32 %41, double %44, i32 8)
%46 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 2
store float %45, float* %46
br label %47
47: ; preds = %38, %35
%48 = getelementptr inbounds [40 x float], [40 x float]* %18, i64 0, i64 0
%49 = load float*, float** %11
%50 = load i32*, i32** %9
%51 = getelementptr inbounds i32, i32* %50, i64 0
%52 = load i32, i32* %51
%53 = load i32, i32* %12
%54 = load i32, i32* %13
%55 = call i32 @getCBvec(float* %48, float* %49, i32 %52, i32 %53, i32 %54)
store i32 0, i32* %15
br label %56
56: ; preds = %72, %47
%57 = load i32, i32* %15
%58 = load i32, i32* %13
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 0
%62 = load float, float* %61
%63 = load i32, i32* %15
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [40 x float], [40 x float]* %18, i64 0, i64 %64
%66 = load float, float* %65
%67 = fmul float %62, %66
%68 = load float*, float** %8
%69 = load i32, i32* %15
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, float* %68, i64 %70
store float %67, float* %71
br label %72
72: ; preds = %60
%73 = load i32, i32* %15
%74 = add nsw i32 %73, 1
store i32 %74, i32* %15
br label %56
75: ; preds = %56
%76 = load i32, i32* %14
%77 = icmp sgt i32 %76, 1
br i1 %77, label %78, label %121
78: ; preds = %75
store i32 1, i32* %16
br label %79
79: ; preds = %117, %78
%80 = load i32, i32* %16
%81 = load i32, i32* %14
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %120
83: ; preds = %79
%84 = getelementptr inbounds [40 x float], [40 x float]* %18, i64 0, i64 0
%85 = load float*, float** %11
%86 = load i32*, i32** %9
%87 = load i32, i32* %16
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %86, i64 %88
%90 = load i32, i32* %89
%91 = load i32, i32* %12
%92 = load i32, i32* %13
%93 = call i32 @getCBvec(float* %84, float* %85, i32 %90, i32 %91, i32 %92)
store i32 0, i32* %15
br label %94
94: ; preds = %113, %83
%95 = load i32, i32* %15
%96 = load i32, i32* %13
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %116
98: ; preds = %94
%99 = load i32, i32* %16
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [3 x float], [3 x float]* %17, i64 0, i64 %100
%102 = load float, float* %101
%103 = load i32, i32* %15
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [40 x float], [40 x float]* %18, i64 0, i64 %104
%106 = load float, float* %105
%107 = load float*, float** %8
%108 = load i32, i32* %15
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds float, float* %107, i64 %109
%111 = load float, float* %110
%112 = call float @llvm.fmuladd.f32(float %102, float %106, float %111)
store float %112, float* %110
br label %113
113: ; preds = %98
%114 = load i32, i32* %15
%115 = add nsw i32 %114, 1
store i32 %115, i32* %15
br label %94
116: ; preds = %94
br label %117
117: ; preds = %116
%118 = load i32, i32* %16
%119 = add nsw i32 %118, 1
store i32 %119, i32* %16
br label %79
120: ; preds = %79
br label %121
121: ; preds = %120, %75
ret void
}

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