#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 /*<<< orphan*/ _CRCodeImageTamplateStorageVoteToBin(unsigned char *, int,
                                                        int, int, int, int, int,
                                                        int, float *);
scalar_t__ malloc(int);
float sqrt(float);
float *_CRCodeImageTamplateStorageCreateFeatureVector(unsigned char *template,
                                                      int width, int height,
                                                      int gridSize,
                                                      int binSize) {
  float *vec = (float *)malloc(sizeof(float) * gridSize * gridSize * binSize);
  for (int i = 0; i < gridSize * gridSize * binSize; i++)
    vec[i] = 0;
  int rangeX = width / gridSize;
  int rangeY = height / gridSize;
  for (int i = 0; i < gridSize; i++) {
    for (int j = 0; j < gridSize; j++) {
      int offsetX = j * rangeX;
      int offsetY = i * rangeY;
      float *p = vec + (i * gridSize + j) * binSize;
      _CRCodeImageTamplateStorageVoteToBin(template, offsetX, offsetY, rangeX,
                                           rangeY, width, height, binSize, p);
    }
  }
  float norm2 = 0;
  for (int i = 0; i < gridSize * gridSize * binSize; i++)
    norm2 += (vec[i] * vec[i]);
  norm2 = sqrt(norm2);
  for (int i = 0; i < gridSize * gridSize * binSize; i++)
    vec[i] = vec[i] / norm2;
  return vec;
}


x86 assembly (clang, -O0):
<_CRCodeImageTamplateStorageCreateFeatureVector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
movslq -0x18(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    11a7 <_CRCodeImageTamplateStorageCreateFeatureVector+0x77>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1173 <_CRCodeImageTamplateStorageCreateFeatureVector+0x43>
mov    -0xc(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    126a <_CRCodeImageTamplateStorageCreateFeatureVector+0x13a>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1257 <_CRCodeImageTamplateStorageCreateFeatureVector+0x127>
mov    -0x34(%rbp),%eax
imul   -0x28(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
mov    -0xc(%rbp),%r9d
mov    -0x10(%rbp),%r11d
mov    -0x18(%rbp),%r10d
mov    -0x48(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <_CRCodeImageTamplateStorageVoteToBin@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d5 <_CRCodeImageTamplateStorageCreateFeatureVector+0xa5>
jmp    125c <_CRCodeImageTamplateStorageCreateFeatureVector+0x12c>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11c2 <_CRCodeImageTamplateStorageCreateFeatureVector+0x92>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    12c9 <_CRCodeImageTamplateStorageCreateFeatureVector+0x199>
mov    -0x20(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1279 <_CRCodeImageTamplateStorageCreateFeatureVector+0x149>
movss  -0x4c(%rbp),%xmm0
call   1050 <sqrt@plt>
movss  %xmm0,-0x4c(%rbp)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    1322 <_CRCodeImageTamplateStorageCreateFeatureVector+0x1f2>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
divss  -0x4c(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12df <_CRCodeImageTamplateStorageCreateFeatureVector+0x1af>
mov    -0x20(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_CRCodeImageTamplateStorageCreateFeatureVector>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %ecx,%ebp
mov    %edx,%r15d
mov    %esi,%r12d
mov    %rdi,0x48(%rsp)
mov    %r8,0x10(%rsp)
mov    %r8d,%ebx
imul   %ecx,%ebx
imul   %ecx,%ebx
lea    0x0(,%rbx,4),%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%r13d
mov    %rbx,0x18(%rsp)
test   %ebx,%ebx
jle    1196 <_CRCodeImageTamplateStorageCreateFeatureVector+0x56>
lea    0x0(,%r13,4),%rdx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %r13,0x20(%rsp)
mov    %r14,0x8(%rsp)
mov    %r12d,(%rsp)
mov    %r12d,%eax
cltd
idiv   %ebp
mov    %eax,%ecx
mov    %r15,0x50(%rsp)
mov    %r15d,%eax
cltd
idiv   %ebp
test   %ebp,%ebp
mov    0x10(%rsp),%r10
jle    126b <_CRCodeImageTamplateStorageCreateFeatureVector+0x12b>
mov    %eax,%r14d
movslq %r10d,%r13
mov    %ebp,%ebx
mov    %r13,%rdx
imul   %rbx,%rdx
shl    $0x2,%rdx
mov    %rdx,0x28(%rsp)
shl    $0x2,%r13
xor    %edx,%edx
mov    0x8(%rsp),%r15
mov    %rbx,0x30(%rsp)
nopl   0x0(%rax)
mov    %r14d,%esi
mov    %rdx,0x40(%rsp)
imul   %edx,%esi
mov    %esi,0x4(%rsp)
mov    %r15,0x38(%rsp)
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    0x50(%rsp),%rdi
mov    %r12d,%esi
mov    0xc(%rsp),%edx
mov    %ecx,%ebp
mov    %r14d,%r8d
mov    0x8(%rsp),%r9d
push   %r15
push   %r10
push   0x68(%rsp)
call   1030 <_CRCodeImageTamplateStorageVoteToBin@plt>
mov    %ebp,%ecx
mov    0x30(%rsp),%r10
add    $0x20,%rsp
add    %ebp,%r12d
add    %r13,%r15
add    $0xffffffffffffffff,%rbx
jne    1210 <_CRCodeImageTamplateStorageCreateFeatureVector+0xd0>
mov    0x40(%rsp),%rdx
add    $0x1,%rdx
mov    0x38(%rsp),%r15
add    0x28(%rsp),%r15
mov    0x30(%rsp),%rbx
cmp    %rbx,%rdx
jne    11f0 <_CRCodeImageTamplateStorageCreateFeatureVector+0xb0>
mov    0x18(%rsp),%r14
test   %r14d,%r14d
mov    0x8(%rsp),%rbx
mov    0x20(%rsp),%rbp
jle    13c7 <_CRCodeImageTamplateStorageCreateFeatureVector+0x287>
lea    -0x1(%rbp),%rcx
mov    %ebp,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    1299 <_CRCodeImageTamplateStorageCreateFeatureVector+0x159>
xorps  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    12f0 <_CRCodeImageTamplateStorageCreateFeatureVector+0x1b0>
mov    %ebp,%edx
and    $0xfffffffc,%edx
xorps  %xmm0,%xmm0
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  (%rbx,%rcx,4),%xmm1
movss  0x4(%rbx,%rcx,4),%xmm2
mulss  %xmm1,%xmm1
addss  %xmm0,%xmm1
mulss  %xmm2,%xmm2
addss  %xmm1,%xmm2
movss  0x8(%rbx,%rcx,4),%xmm1
mulss  %xmm1,%xmm1
addss  %xmm2,%xmm1
movss  0xc(%rbx,%rcx,4),%xmm0
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    12b0 <_CRCodeImageTamplateStorageCreateFeatureVector+0x170>
test   %rax,%rax
je     1316 <_CRCodeImageTamplateStorageCreateFeatureVector+0x1d6>
lea    (%rbx,%rcx,4),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movss  (%rcx,%rdx,4),%xmm1
mulss  %xmm1,%xmm1
addss  %xmm1,%xmm0
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1300 <_CRCodeImageTamplateStorageCreateFeatureVector+0x1c0>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     132c <_CRCodeImageTamplateStorageCreateFeatureVector+0x1ec>
sqrtss %xmm0,%xmm0
test   %r14d,%r14d
jg     133a <_CRCodeImageTamplateStorageCreateFeatureVector+0x1fa>
jmp    13c7 <_CRCodeImageTamplateStorageCreateFeatureVector+0x287>
call   1060 <sqrt@plt>
test   %r14d,%r14d
jle    13c7 <_CRCodeImageTamplateStorageCreateFeatureVector+0x287>
cmp    $0x4,%r14d
jae    1344 <_CRCodeImageTamplateStorageCreateFeatureVector+0x204>
xor    %eax,%eax
jmp    13b0 <_CRCodeImageTamplateStorageCreateFeatureVector+0x270>
mov    %ebp,%eax
and    $0xfffffffc,%eax
movaps %xmm0,%xmm1
shufps $0x0,%xmm0,%xmm1
lea    -0x4(%rax),%rdx
mov    %rdx,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     13d9 <_CRCodeImageTamplateStorageCreateFeatureVector+0x299>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
nopl   (%rax)
movups (%rbx,%rdx,4),%xmm2
movups 0x10(%rbx,%rdx,4),%xmm3
divps  %xmm1,%xmm2
movups %xmm2,(%rbx,%rdx,4)
divps  %xmm1,%xmm3
movups %xmm3,0x10(%rbx,%rdx,4)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1370 <_CRCodeImageTamplateStorageCreateFeatureVector+0x230>
test   $0x1,%cl
je     13a2 <_CRCodeImageTamplateStorageCreateFeatureVector+0x262>
movups (%rbx,%rdx,4),%xmm2
divps  %xmm1,%xmm2
movups %xmm2,(%rbx,%rdx,4)
cmp    %rbp,%rax
je     13c7 <_CRCodeImageTamplateStorageCreateFeatureVector+0x287>
nopw   0x0(%rax,%rax,1)
movss  (%rbx,%rax,4),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,(%rbx,%rax,4)
add    $0x1,%rax
cmp    %rax,%rbp
jne    13b0 <_CRCodeImageTamplateStorageCreateFeatureVector+0x270>
mov    %rbx,%rax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%cl
jne    1397 <_CRCodeImageTamplateStorageCreateFeatureVector+0x257>
jmp    13a2 <_CRCodeImageTamplateStorageCreateFeatureVector+0x262>

LLVM IR (-O0):
define float* @_CRCodeImageTamplateStorageCreateFeatureVector(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%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 i32
%18 = alloca i32
%19 = alloca float*
%20 = alloca float
%21 = alloca i32
%22 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%23 = load i32, i32* %9
%24 = sext i32 %23 to i64
%25 = mul i64 4, %24
%26 = load i32, i32* %9
%27 = sext i32 %26 to i64
%28 = mul i64 %25, %27
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = mul i64 %28, %30
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 %32)
%34 = inttoptr i64 %33 to float*
store float* %34, float** %11
store i32 0, i32* %12
br label %35
35: ; preds = %48, %5
%36 = load i32, i32* %12
%37 = load i32, i32* %9
%38 = load i32, i32* %9
%39 = mul nsw i32 %37, %38
%40 = load i32, i32* %10
%41 = mul nsw i32 %39, %40
%42 = icmp slt i32 %36, %41
br i1 %42, label %43, label %51
43: ; preds = %35
%44 = load float*, float** %11
%45 = load i32, i32* %12
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds float, float* %44, i64 %46
store float 0.000000e+00, float* %47
br label %48
48: ; preds = %43
%49 = load i32, i32* %12
%50 = add nsw i32 %49, 1
store i32 %50, i32* %12
br label %35
51: ; preds = %35
%52 = load i32, i32* %7
%53 = load i32, i32* %9
%54 = sdiv i32 %52, %53
store i32 %54, i32* %13
%55 = load i32, i32* %8
%56 = load i32, i32* %9
%57 = sdiv i32 %55, %56
store i32 %57, i32* %14
store i32 0, i32* %15
br label %58
58: ; preds = %98, %51
%59 = load i32, i32* %15
%60 = load i32, i32* %9
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %101
62: ; preds = %58
store i32 0, i32* %16
br label %63
63: ; preds = %94, %62
%64 = load i32, i32* %16
%65 = load i32, i32* %9
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %97
67: ; preds = %63
%68 = load i32, i32* %16
%69 = load i32, i32* %13
%70 = mul nsw i32 %68, %69
store i32 %70, i32* %17
%71 = load i32, i32* %15
%72 = load i32, i32* %14
%73 = mul nsw i32 %71, %72
store i32 %73, i32* %18
%74 = load float*, float** %11
%75 = load i32, i32* %15
%76 = load i32, i32* %9
%77 = mul nsw i32 %75, %76
%78 = load i32, i32* %16
%79 = add nsw i32 %77, %78
%80 = load i32, i32* %10
%81 = mul nsw i32 %79, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds float, float* %74, i64 %82
store float* %83, float** %19
%84 = load i8*, i8** %6
%85 = load i32, i32* %17
%86 = load i32, i32* %18
%87 = load i32, i32* %13
%88 = load i32, i32* %14
%89 = load i32, i32* %7
%90 = load i32, i32* %8
%91 = load i32, i32* %10
%92 = load float*, float** %19
%93 = call i32 @_CRCodeImageTamplateStorageVoteToBin(i8* %84, i32 %85, i32 %86, i32 %87, i32 %88, i32 %89, i32 %90, i32 %91, float* %92)
br label %94
94: ; preds = %67
%95 = load i32, i32* %16
%96 = add nsw i32 %95, 1
store i32 %96, i32* %16
br label %63
97: ; preds = %63
br label %98
98: ; preds = %97
%99 = load i32, i32* %15
%100 = add nsw i32 %99, 1
store i32 %100, i32* %15
br label %58
101: ; preds = %58
store float 0.000000e+00, float* %20
store i32 0, i32* %21
br label %102
102: ; preds = %123, %101
%103 = load i32, i32* %21
%104 = load i32, i32* %9
%105 = load i32, i32* %9
%106 = mul nsw i32 %104, %105
%107 = load i32, i32* %10
%108 = mul nsw i32 %106, %107
%109 = icmp slt i32 %103, %108
br i1 %109, label %110, label %126
110: ; preds = %102
%111 = load float*, float** %11
%112 = load i32, i32* %21
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, float* %111, i64 %113
%115 = load float, float* %114
%116 = load float*, float** %11
%117 = load i32, i32* %21
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds float, float* %116, i64 %118
%120 = load float, float* %119
%121 = load float, float* %20
%122 = call float @llvm.fmuladd.f32(float %115, float %120, float %121)
store float %122, float* %20
br label %123
123: ; preds = %110
%124 = load i32, i32* %21
%125 = add nsw i32 %124, 1
store i32 %125, i32* %21
br label %102
126: ; preds = %102
%127 = load float, float* %20
%128 = call float @sqrt(float %127)
store float %128, float* %20
store i32 0, i32* %22
br label %129
129: ; preds = %149, %126
%130 = load i32, i32* %22
%131 = load i32, i32* %9
%132 = load i32, i32* %9
%133 = mul nsw i32 %131, %132
%134 = load i32, i32* %10
%135 = mul nsw i32 %133, %134
%136 = icmp slt i32 %130, %135
br i1 %136, label %137, label %152
137: ; preds = %129
%138 = load float*, float** %11
%139 = load i32, i32* %22
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds float, float* %138, i64 %140
%142 = load float, float* %141
%143 = load float, float* %20
%144 = fdiv float %142, %143
%145 = load float*, float** %11
%146 = load i32, i32* %22
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds float, float* %145, i64 %147
store float %144, float* %148
br label %149
149: ; preds = %137
%150 = load i32, i32* %22
%151 = add nsw i32 %150, 1
store i32 %151, i32* %22
br label %129
152: ; preds = %129
%153 = load float*, float** %11
ret float* %153
}

LLVM IR (-O2):
define float* @_CRCodeImageTamplateStorageCreateFeatureVector(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = mul i32 %4, %3
%7 = shl i32 %6, 2
%8 = mul i32 %7, %3
%9 = tail call i64 @malloc(i32 %8)
%10 = inttoptr i64 %9 to float*
%11 = mul i32 %6, %3
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %5
%14 = inttoptr i64 %9 to i8*
%15 = zext i32 %11 to i64
%16 = shl nuw nsw i64 %15, 2
br label %17
17: ; preds = %13, %5
%18 = sdiv i32 %1, %3
%19 = sdiv i32 %2, %3
%20 = icmp sgt i32 %3, 0
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = sext i32 %4 to i64
%23 = zext i32 %3 to i64
%24 = zext i32 %3 to i64
br label %25
25: ; preds = %38, %21
%26 = phi i64 [ 0, %21 ], [ %39, %38 ]
%27 = mul nsw i64 %26, %23
%28 = trunc i64 %26 to i32
%29 = mul i32 %19, %28
br label %41
30: ; preds = %38, %17
br i1 %12, label %31, label %135
31: ; preds = %30
%32 = zext i32 %11 to i64
%33 = add nsw i64 %32, -1
%34 = and i64 %32, 3
%35 = icmp ult i64 %33, 3
br i1 %35, label %51, label %36
36: ; preds = %31
%37 = and i64 %32, 4294967292
br label %113
38: ; preds = %41
%39 = add nuw nsw i64 %26, 1
%40 = icmp eq i64 %39, %24
br i1 %40, label %30, label %25
41: ; preds = %25, %41
%42 = phi i64 [ 0, %25 ], [ %49, %41 ]
%43 = add nuw nsw i64 %42, %27
%44 = mul nsw i64 %43, %22
%45 = getelementptr inbounds float, float* %10, i64 %44
%46 = trunc i64 %42 to i32
%47 = mul i32 %18, %46
%48 = tail call i32 @_CRCodeImageTamplateStorageVoteToBin(i8* %0, i32 %47, i32 %29, i32 %18, i32 %19, i32 %1, i32 %2, i32 %4, float* %45)
%49 = add nuw nsw i64 %42, 1
%50 = icmp eq i64 %49, %24
br i1 %50, label %38, label %41
51: ; preds = %113, %31
%52 = phi float [ undef, %31 ], [ %131, %113 ]
%53 = phi i64 [ 0, %31 ], [ %132, %113 ]
%54 = phi float [ 0.000000e+00, %31 ], [ %131, %113 ]
%55 = icmp eq i64 %34, 0
br i1 %55, label %66, label %56
56: ; preds = %51, %56
%57 = phi i64 [ %63, %56 ], [ %53, %51 ]
%58 = phi float [ %62, %56 ], [ %54, %51 ]
%59 = phi i64 [ %64, %56 ], [ 0, %51 ]
%60 = getelementptr inbounds float, float* %10, i64 %57
%61 = load float, float* %60
%62 = tail call float @llvm.fmuladd.f32(float %61, float %61, float %58)
%63 = add nuw nsw i64 %57, 1
%64 = add i64 %59, 1
%65 = icmp eq i64 %64, %34
br i1 %65, label %66, label %56
66: ; preds = %56, %51
%67 = phi float [ %52, %51 ], [ %62, %56 ]
%68 = tail call float @sqrt(float %67)
br i1 %12, label %69, label %135
69: ; preds = %66
%70 = zext i32 %11 to i64
%71 = icmp ult i32 %11, 4
br i1 %71, label %111, label %72
72: ; preds = %69
%73 = and i64 %32, 4294967292
%74 = insertelement <4 x float> poison, float %68, i64 0
%75 = shufflevector <4 x float> %74, <4 x float> poison, <4 x i32> zeroinitializer
%76 = add nsw i64 %73, -4
%77 = lshr exact i64 %76, 2
%78 = add nuw nsw i64 %77, 1
%79 = and i64 %78, 1
%80 = icmp eq i64 %76, 0
br i1 %80, label %100, label %81
81: ; preds = %72
%82 = and i64 %78, 9223372036854775806
br label %83
83: ; preds = %83, %81
%84 = phi i64 [ 0, %81 ], [ %97, %83 ]
%85 = phi i64 [ 0, %81 ], [ %98, %83 ]
%86 = getelementptr inbounds float, float* %10, i64 %84
%87 = bitcast float* %86 to <4 x float>*
%88 = load <4 x float>, <4 x float>* %87
%89 = fdiv <4 x float> %88, %75
%90 = bitcast float* %86 to <4 x float>*
store <4 x float> %89, <4 x float>* %90
%91 = or i64 %84, 4
%92 = getelementptr inbounds float, float* %10, i64 %91
%93 = bitcast float* %92 to <4 x float>*
%94 = load <4 x float>, <4 x float>* %93
%95 = fdiv <4 x float> %94, %75
%96 = bitcast float* %92 to <4 x float>*
store <4 x float> %95, <4 x float>* %96
%97 = add nuw i64 %84, 8
%98 = add i64 %85, 2
%99 = icmp eq i64 %98, %82
br i1 %99, label %100, label %83
100: ; preds = %83, %72
%101 = phi i64 [ 0, %72 ], [ %97, %83 ]
%102 = icmp eq i64 %79, 0
br i1 %102, label %109, label %103
103: ; preds = %100
%104 = getelementptr inbounds float, float* %10, i64 %101
%105 = bitcast float* %104 to <4 x float>*
%106 = load <4 x float>, <4 x float>* %105
%107 = fdiv <4 x float> %106, %75
%108 = bitcast float* %104 to <4 x float>*
store <4 x float> %107, <4 x float>* %108
br label %109
109: ; preds = %100, %103
%110 = icmp eq i64 %73, %32
br i1 %110, label %135, label %111
111: ; preds = %69, %109
%112 = phi i64 [ 0, %69 ], [ %73, %109 ]
br label %136
113: ; preds = %113, %36
%114 = phi i64 [ 0, %36 ], [ %132, %113 ]
%115 = phi float [ 0.000000e+00, %36 ], [ %131, %113 ]
%116 = phi i64 [ 0, %36 ], [ %133, %113 ]
%117 = getelementptr inbounds float, float* %10, i64 %114
%118 = load float, float* %117
%119 = tail call float @llvm.fmuladd.f32(float %118, float %118, float %115)
%120 = or i64 %114, 1
%121 = getelementptr inbounds float, float* %10, i64 %120
%122 = load float, float* %121
%123 = tail call float @llvm.fmuladd.f32(float %122, float %122, float %119)
%124 = or i64 %114, 2
%125 = getelementptr inbounds float, float* %10, i64 %124
%126 = load float, float* %125
%127 = tail call float @llvm.fmuladd.f32(float %126, float %126, float %123)
%128 = or i64 %114, 3
%129 = getelementptr inbounds float, float* %10, i64 %128
%130 = load float, float* %129
%131 = tail call float @llvm.fmuladd.f32(float %130, float %130, float %127)
%132 = add nuw nsw i64 %114, 4
%133 = add i64 %116, 4
%134 = icmp eq i64 %133, %37
br i1 %134, label %51, label %113
135: ; preds = %136, %109, %30, %66
ret float* %10
136: ; preds = %111, %136
%137 = phi i64 [ %141, %136 ], [ %112, %111 ]
%138 = getelementptr inbounds float, float* %10, i64 %137
%139 = load float, float* %138
%140 = fdiv float %139, %68
store float %140, float* %138
%141 = add nuw nsw i64 %137, 1
%142 = icmp eq i64 %141, %70
br i1 %142, label %135, label %136
}