; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/algorithm/src (shapematch)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.SIMPLE_MAT = type { i32, i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @calc_hu_moment(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %2
  %43 = call noalias ptr @malloc(i64 noundef 56) #8
  store ptr %43, ptr %3, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %42, %2
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  br label %52

48:                                               ; preds = %44
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #9
  unreachable

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %55, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !13
  store i32 %58, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !14
  store i32 %61, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %62 = load i32, ptr %7, align 4, !tbaa !12
  %63 = call i32 @get_elemsize(i32 noundef %62)
  store i32 %63, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = load i32, ptr %8, align 4, !tbaa !12
  %68 = mul nsw i32 %66, %67
  store i32 %68, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %69, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  store ptr %71, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  store double 0.000000e+00, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  store double 0.000000e+00, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  store double 0.000000e+00, ptr %13, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  store double 0.000000e+00, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store double 0.000000e+00, ptr %15, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store double 0.000000e+00, ptr %16, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  store double 0.000000e+00, ptr %17, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store double 0.000000e+00, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  store double 0.000000e+00, ptr %19, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  store double 0.000000e+00, ptr %20, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  store double 0.000000e+00, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  store double 0.000000e+00, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  store double 0.000000e+00, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  store double 0.000000e+00, ptr %24, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  store double 0.000000e+00, ptr %25, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  store double 0.000000e+00, ptr %26, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  store double 0.000000e+00, ptr %27, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  store double 0.000000e+00, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  store double 0.000000e+00, ptr %29, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  store double 0.000000e+00, ptr %30, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  store double 0.000000e+00, ptr %31, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  store double 0.000000e+00, ptr %32, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  store double 0.000000e+00, ptr %37, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  store double 0.000000e+00, ptr %38, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  store double 0.000000e+00, ptr %39, align 8, !tbaa !16
  store i32 0, ptr %36, align 4, !tbaa !12
  br label %72

72:                                               ; preds = %129, %52
  %73 = load i32, ptr %36, align 4, !tbaa !12
  %74 = load i32, ptr %6, align 4, !tbaa !12
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %132

76:                                               ; preds = %72
  store i32 0, ptr %35, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %125, %76
  %78 = load i32, ptr %35, align 4, !tbaa !12
  %79 = load i32, ptr %5, align 4, !tbaa !12
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %81, label %128

81:                                               ; preds = %77
  %82 = load i32, ptr %35, align 4, !tbaa !12
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = load i32, ptr %36, align 4, !tbaa !12
  %85 = load i32, ptr %9, align 4, !tbaa !12
  %86 = mul nsw i32 %84, %85
  %87 = load i32, ptr %35, align 4, !tbaa !12
  %88 = add nsw i32 %86, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %83, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !18
  %92 = zext i8 %91 to i32
  %93 = mul nsw i32 %82, %92
  %94 = sitofp i32 %93 to double
  %95 = load double, ptr %37, align 8, !tbaa !16
  %96 = fadd double %95, %94
  store double %96, ptr %37, align 8, !tbaa !16
  %97 = load i32, ptr %36, align 4, !tbaa !12
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %36, align 4, !tbaa !12
  %100 = load i32, ptr %9, align 4, !tbaa !12
  %101 = mul nsw i32 %99, %100
  %102 = load i32, ptr %35, align 4, !tbaa !12
  %103 = add nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %98, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !18
  %107 = zext i8 %106 to i32
  %108 = mul nsw i32 %97, %107
  %109 = sitofp i32 %108 to double
  %110 = load double, ptr %38, align 8, !tbaa !16
  %111 = fadd double %110, %109
  store double %111, ptr %38, align 8, !tbaa !16
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i32, ptr %36, align 4, !tbaa !12
  %114 = load i32, ptr %9, align 4, !tbaa !12
  %115 = mul nsw i32 %113, %114
  %116 = load i32, ptr %35, align 4, !tbaa !12
  %117 = add nsw i32 %115, %116
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %112, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !18
  %121 = zext i8 %120 to i32
  %122 = sitofp i32 %121 to double
  %123 = load double, ptr %39, align 8, !tbaa !16
  %124 = fadd double %123, %122
  store double %124, ptr %39, align 8, !tbaa !16
  br label %125

125:                                              ; preds = %81
  %126 = load i32, ptr %35, align 4, !tbaa !12
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %35, align 4, !tbaa !12
  br label %77, !llvm.loop !19

128:                                              ; preds = %77
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %36, align 4, !tbaa !12
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %36, align 4, !tbaa !12
  br label %72, !llvm.loop !21

132:                                              ; preds = %72
  %133 = load double, ptr %37, align 8, !tbaa !16
  %134 = load double, ptr %39, align 8, !tbaa !16
  %135 = fdiv double %133, %134
  %136 = fadd double %135, 5.000000e-01
  %137 = fptosi double %136 to i32
  store i32 %137, ptr %33, align 4, !tbaa !12
  %138 = load double, ptr %38, align 8, !tbaa !16
  %139 = load double, ptr %39, align 8, !tbaa !16
  %140 = fdiv double %138, %139
  %141 = fadd double %140, 5.000000e-01
  %142 = fptosi double %141 to i32
  store i32 %142, ptr %34, align 4, !tbaa !12
  %143 = load double, ptr %39, align 8, !tbaa !16
  store double %143, ptr %11, align 8, !tbaa !16
  store i32 0, ptr %36, align 4, !tbaa !12
  br label %144

144:                                              ; preds = %286, %132
  %145 = load i32, ptr %36, align 4, !tbaa !12
  %146 = load i32, ptr %6, align 4, !tbaa !12
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %289

148:                                              ; preds = %144
  store i32 0, ptr %35, align 4, !tbaa !12
  br label %149

149:                                              ; preds = %282, %148
  %150 = load i32, ptr %35, align 4, !tbaa !12
  %151 = load i32, ptr %5, align 4, !tbaa !12
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %153, label %285

153:                                              ; preds = %149
  %154 = load i32, ptr %35, align 4, !tbaa !12
  %155 = load i32, ptr %33, align 4, !tbaa !12
  %156 = sub nsw i32 %154, %155
  %157 = sitofp i32 %156 to double
  store double %157, ptr %19, align 8, !tbaa !16
  %158 = load i32, ptr %36, align 4, !tbaa !12
  %159 = load i32, ptr %34, align 4, !tbaa !12
  %160 = sub nsw i32 %158, %159
  %161 = sitofp i32 %160 to double
  store double %161, ptr %20, align 8, !tbaa !16
  %162 = load double, ptr %19, align 8, !tbaa !16
  %163 = load double, ptr %20, align 8, !tbaa !16
  %164 = fmul double %162, %163
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = load i32, ptr %36, align 4, !tbaa !12
  %167 = load i32, ptr %9, align 4, !tbaa !12
  %168 = mul nsw i32 %166, %167
  %169 = load i32, ptr %35, align 4, !tbaa !12
  %170 = add nsw i32 %168, %169
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i8, ptr %165, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !18
  %174 = zext i8 %173 to i32
  %175 = sitofp i32 %174 to double
  %176 = load double, ptr %12, align 8, !tbaa !16
  %177 = call double @llvm.fmuladd.f64(double %164, double %175, double %176)
  store double %177, ptr %12, align 8, !tbaa !16
  %178 = load double, ptr %19, align 8, !tbaa !16
  %179 = load double, ptr %19, align 8, !tbaa !16
  %180 = fmul double %178, %179
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load i32, ptr %36, align 4, !tbaa !12
  %183 = load i32, ptr %9, align 4, !tbaa !12
  %184 = mul nsw i32 %182, %183
  %185 = load i32, ptr %35, align 4, !tbaa !12
  %186 = add nsw i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i8, ptr %181, i64 %187
  %189 = load i8, ptr %188, align 1, !tbaa !18
  %190 = zext i8 %189 to i32
  %191 = sitofp i32 %190 to double
  %192 = load double, ptr %13, align 8, !tbaa !16
  %193 = call double @llvm.fmuladd.f64(double %180, double %191, double %192)
  store double %193, ptr %13, align 8, !tbaa !16
  %194 = load double, ptr %20, align 8, !tbaa !16
  %195 = load double, ptr %20, align 8, !tbaa !16
  %196 = fmul double %194, %195
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load i32, ptr %36, align 4, !tbaa !12
  %199 = load i32, ptr %9, align 4, !tbaa !12
  %200 = mul nsw i32 %198, %199
  %201 = load i32, ptr %35, align 4, !tbaa !12
  %202 = add nsw i32 %200, %201
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds i8, ptr %197, i64 %203
  %205 = load i8, ptr %204, align 1, !tbaa !18
  %206 = zext i8 %205 to i32
  %207 = sitofp i32 %206 to double
  %208 = load double, ptr %14, align 8, !tbaa !16
  %209 = call double @llvm.fmuladd.f64(double %196, double %207, double %208)
  store double %209, ptr %14, align 8, !tbaa !16
  %210 = load double, ptr %20, align 8, !tbaa !16
  %211 = load double, ptr %20, align 8, !tbaa !16
  %212 = fmul double %210, %211
  %213 = load double, ptr %20, align 8, !tbaa !16
  %214 = fmul double %212, %213
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = load i32, ptr %36, align 4, !tbaa !12
  %217 = load i32, ptr %9, align 4, !tbaa !12
  %218 = mul nsw i32 %216, %217
  %219 = load i32, ptr %35, align 4, !tbaa !12
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i8, ptr %215, i64 %221
  %223 = load i8, ptr %222, align 1, !tbaa !18
  %224 = zext i8 %223 to i32
  %225 = sitofp i32 %224 to double
  %226 = load double, ptr %16, align 8, !tbaa !16
  %227 = call double @llvm.fmuladd.f64(double %214, double %225, double %226)
  store double %227, ptr %16, align 8, !tbaa !16
  %228 = load double, ptr %19, align 8, !tbaa !16
  %229 = load double, ptr %19, align 8, !tbaa !16
  %230 = fmul double %228, %229
  %231 = load double, ptr %19, align 8, !tbaa !16
  %232 = fmul double %230, %231
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = load i32, ptr %36, align 4, !tbaa !12
  %235 = load i32, ptr %9, align 4, !tbaa !12
  %236 = mul nsw i32 %234, %235
  %237 = load i32, ptr %35, align 4, !tbaa !12
  %238 = add nsw i32 %236, %237
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i8, ptr %233, i64 %239
  %241 = load i8, ptr %240, align 1, !tbaa !18
  %242 = zext i8 %241 to i32
  %243 = sitofp i32 %242 to double
  %244 = load double, ptr %15, align 8, !tbaa !16
  %245 = call double @llvm.fmuladd.f64(double %232, double %243, double %244)
  store double %245, ptr %15, align 8, !tbaa !16
  %246 = load double, ptr %19, align 8, !tbaa !16
  %247 = load double, ptr %20, align 8, !tbaa !16
  %248 = fmul double %246, %247
  %249 = load double, ptr %20, align 8, !tbaa !16
  %250 = fmul double %248, %249
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = load i32, ptr %36, align 4, !tbaa !12
  %253 = load i32, ptr %9, align 4, !tbaa !12
  %254 = mul nsw i32 %252, %253
  %255 = load i32, ptr %35, align 4, !tbaa !12
  %256 = add nsw i32 %254, %255
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i8, ptr %251, i64 %257
  %259 = load i8, ptr %258, align 1, !tbaa !18
  %260 = zext i8 %259 to i32
  %261 = sitofp i32 %260 to double
  %262 = load double, ptr %17, align 8, !tbaa !16
  %263 = call double @llvm.fmuladd.f64(double %250, double %261, double %262)
  store double %263, ptr %17, align 8, !tbaa !16
  %264 = load double, ptr %19, align 8, !tbaa !16
  %265 = load double, ptr %19, align 8, !tbaa !16
  %266 = fmul double %264, %265
  %267 = load double, ptr %20, align 8, !tbaa !16
  %268 = fmul double %266, %267
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = load i32, ptr %36, align 4, !tbaa !12
  %271 = load i32, ptr %9, align 4, !tbaa !12
  %272 = mul nsw i32 %270, %271
  %273 = load i32, ptr %35, align 4, !tbaa !12
  %274 = add nsw i32 %272, %273
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds i8, ptr %269, i64 %275
  %277 = load i8, ptr %276, align 1, !tbaa !18
  %278 = zext i8 %277 to i32
  %279 = sitofp i32 %278 to double
  %280 = load double, ptr %18, align 8, !tbaa !16
  %281 = call double @llvm.fmuladd.f64(double %268, double %279, double %280)
  store double %281, ptr %18, align 8, !tbaa !16
  br label %282

282:                                              ; preds = %153
  %283 = load i32, ptr %35, align 4, !tbaa !12
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %35, align 4, !tbaa !12
  br label %149, !llvm.loop !22

285:                                              ; preds = %149
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %36, align 4, !tbaa !12
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %36, align 4, !tbaa !12
  br label %144, !llvm.loop !23

289:                                              ; preds = %144
  %290 = load double, ptr %13, align 8, !tbaa !16
  %291 = load double, ptr %11, align 8, !tbaa !16
  %292 = call double @pow(double noundef %291, double noundef 2.000000e+00) #10
  %293 = fdiv double %290, %292
  store double %293, ptr %21, align 8, !tbaa !16
  %294 = load double, ptr %14, align 8, !tbaa !16
  %295 = load double, ptr %11, align 8, !tbaa !16
  %296 = call double @pow(double noundef %295, double noundef 2.000000e+00) #10
  %297 = fdiv double %294, %296
  store double %297, ptr %22, align 8, !tbaa !16
  %298 = load double, ptr %12, align 8, !tbaa !16
  %299 = load double, ptr %11, align 8, !tbaa !16
  %300 = call double @pow(double noundef %299, double noundef 2.000000e+00) #10
  %301 = fdiv double %298, %300
  store double %301, ptr %23, align 8, !tbaa !16
  %302 = load double, ptr %15, align 8, !tbaa !16
  %303 = load double, ptr %11, align 8, !tbaa !16
  %304 = call double @pow(double noundef %303, double noundef 2.500000e+00) #10
  %305 = fdiv double %302, %304
  store double %305, ptr %24, align 8, !tbaa !16
  %306 = load double, ptr %16, align 8, !tbaa !16
  %307 = load double, ptr %11, align 8, !tbaa !16
  %308 = call double @pow(double noundef %307, double noundef 2.500000e+00) #10
  %309 = fdiv double %306, %308
  store double %309, ptr %25, align 8, !tbaa !16
  %310 = load double, ptr %17, align 8, !tbaa !16
  %311 = load double, ptr %11, align 8, !tbaa !16
  %312 = call double @pow(double noundef %311, double noundef 2.500000e+00) #10
  %313 = fdiv double %310, %312
  store double %313, ptr %26, align 8, !tbaa !16
  %314 = load double, ptr %18, align 8, !tbaa !16
  %315 = load double, ptr %11, align 8, !tbaa !16
  %316 = call double @pow(double noundef %315, double noundef 2.500000e+00) #10
  %317 = fdiv double %314, %316
  store double %317, ptr %27, align 8, !tbaa !16
  %318 = load double, ptr %21, align 8, !tbaa !16
  %319 = load double, ptr %22, align 8, !tbaa !16
  %320 = fsub double %318, %319
  store double %320, ptr %28, align 8, !tbaa !16
  %321 = load double, ptr %24, align 8, !tbaa !16
  %322 = load double, ptr %26, align 8, !tbaa !16
  %323 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %322, double %321)
  store double %323, ptr %29, align 8, !tbaa !16
  %324 = load double, ptr %27, align 8, !tbaa !16
  %325 = load double, ptr %25, align 8, !tbaa !16
  %326 = fneg double %325
  %327 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %324, double %326)
  store double %327, ptr %30, align 8, !tbaa !16
  %328 = load double, ptr %24, align 8, !tbaa !16
  %329 = load double, ptr %26, align 8, !tbaa !16
  %330 = fadd double %328, %329
  store double %330, ptr %31, align 8, !tbaa !16
  %331 = load double, ptr %27, align 8, !tbaa !16
  %332 = load double, ptr %25, align 8, !tbaa !16
  %333 = fadd double %331, %332
  store double %333, ptr %32, align 8, !tbaa !16
  %334 = load double, ptr %21, align 8, !tbaa !16
  %335 = load double, ptr %22, align 8, !tbaa !16
  %336 = fadd double %334, %335
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds double, ptr %337, i64 0
  store double %336, ptr %338, align 8, !tbaa !16
  %339 = load double, ptr %28, align 8, !tbaa !16
  %340 = load double, ptr %28, align 8, !tbaa !16
  %341 = load double, ptr %23, align 8, !tbaa !16
  %342 = fmul double 4.000000e+00, %341
  %343 = load double, ptr %23, align 8, !tbaa !16
  %344 = fmul double %342, %343
  %345 = call double @llvm.fmuladd.f64(double %339, double %340, double %344)
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds double, ptr %346, i64 1
  store double %345, ptr %347, align 8, !tbaa !16
  %348 = load double, ptr %29, align 8, !tbaa !16
  %349 = load double, ptr %29, align 8, !tbaa !16
  %350 = load double, ptr %30, align 8, !tbaa !16
  %351 = load double, ptr %30, align 8, !tbaa !16
  %352 = fmul double %350, %351
  %353 = call double @llvm.fmuladd.f64(double %348, double %349, double %352)
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = getelementptr inbounds double, ptr %354, i64 2
  store double %353, ptr %355, align 8, !tbaa !16
  %356 = load double, ptr %31, align 8, !tbaa !16
  %357 = load double, ptr %31, align 8, !tbaa !16
  %358 = load double, ptr %32, align 8, !tbaa !16
  %359 = load double, ptr %32, align 8, !tbaa !16
  %360 = fmul double %358, %359
  %361 = call double @llvm.fmuladd.f64(double %356, double %357, double %360)
  %362 = load ptr, ptr %3, align 8, !tbaa !5
  %363 = getelementptr inbounds double, ptr %362, i64 3
  store double %361, ptr %363, align 8, !tbaa !16
  %364 = load double, ptr %29, align 8, !tbaa !16
  %365 = load double, ptr %31, align 8, !tbaa !16
  %366 = fmul double %364, %365
  %367 = load double, ptr %31, align 8, !tbaa !16
  %368 = load double, ptr %31, align 8, !tbaa !16
  %369 = load double, ptr %32, align 8, !tbaa !16
  %370 = fmul double 3.000000e+00, %369
  %371 = load double, ptr %32, align 8, !tbaa !16
  %372 = fmul double %370, %371
  %373 = fneg double %372
  %374 = call double @llvm.fmuladd.f64(double %367, double %368, double %373)
  %375 = load double, ptr %30, align 8, !tbaa !16
  %376 = load double, ptr %32, align 8, !tbaa !16
  %377 = fmul double %375, %376
  %378 = load double, ptr %31, align 8, !tbaa !16
  %379 = fmul double 3.000000e+00, %378
  %380 = load double, ptr %31, align 8, !tbaa !16
  %381 = load double, ptr %32, align 8, !tbaa !16
  %382 = load double, ptr %32, align 8, !tbaa !16
  %383 = fmul double %381, %382
  %384 = fneg double %383
  %385 = call double @llvm.fmuladd.f64(double %379, double %380, double %384)
  %386 = fmul double %377, %385
  %387 = call double @llvm.fmuladd.f64(double %366, double %374, double %386)
  %388 = load ptr, ptr %3, align 8, !tbaa !5
  %389 = getelementptr inbounds double, ptr %388, i64 4
  store double %387, ptr %389, align 8, !tbaa !16
  %390 = load double, ptr %28, align 8, !tbaa !16
  %391 = load double, ptr %31, align 8, !tbaa !16
  %392 = load double, ptr %31, align 8, !tbaa !16
  %393 = load double, ptr %32, align 8, !tbaa !16
  %394 = load double, ptr %32, align 8, !tbaa !16
  %395 = fmul double %393, %394
  %396 = fneg double %395
  %397 = call double @llvm.fmuladd.f64(double %391, double %392, double %396)
  %398 = load double, ptr %23, align 8, !tbaa !16
  %399 = fmul double 4.000000e+00, %398
  %400 = load double, ptr %31, align 8, !tbaa !16
  %401 = fmul double %399, %400
  %402 = load double, ptr %32, align 8, !tbaa !16
  %403 = fmul double %401, %402
  %404 = call double @llvm.fmuladd.f64(double %390, double %397, double %403)
  %405 = load ptr, ptr %3, align 8, !tbaa !5
  %406 = getelementptr inbounds double, ptr %405, i64 5
  store double %404, ptr %406, align 8, !tbaa !16
  %407 = load double, ptr %30, align 8, !tbaa !16
  %408 = load double, ptr %31, align 8, !tbaa !16
  %409 = fmul double %407, %408
  %410 = load double, ptr %31, align 8, !tbaa !16
  %411 = load double, ptr %31, align 8, !tbaa !16
  %412 = load double, ptr %32, align 8, !tbaa !16
  %413 = fmul double 3.000000e+00, %412
  %414 = load double, ptr %32, align 8, !tbaa !16
  %415 = fmul double %413, %414
  %416 = fneg double %415
  %417 = call double @llvm.fmuladd.f64(double %410, double %411, double %416)
  %418 = load double, ptr %29, align 8, !tbaa !16
  %419 = load double, ptr %32, align 8, !tbaa !16
  %420 = fmul double %418, %419
  %421 = load double, ptr %31, align 8, !tbaa !16
  %422 = fmul double 3.000000e+00, %421
  %423 = load double, ptr %31, align 8, !tbaa !16
  %424 = load double, ptr %32, align 8, !tbaa !16
  %425 = load double, ptr %32, align 8, !tbaa !16
  %426 = fmul double %424, %425
  %427 = fneg double %426
  %428 = call double @llvm.fmuladd.f64(double %422, double %423, double %427)
  %429 = fmul double %420, %428
  %430 = fneg double %429
  %431 = call double @llvm.fmuladd.f64(double %409, double %417, double %430)
  %432 = load ptr, ptr %3, align 8, !tbaa !5
  %433 = getelementptr inbounds double, ptr %432, i64 6
  store double %431, ptr %433, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  ret void
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_elemsize(i32 noundef) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #7

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !6, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @calc_hu_moment(ptr noundef writeonly %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call noalias dereferenceable_or_null(56) ptr @malloc(i64 noundef 56) #8
  br label %6

6:                                                ; preds = %4, %2
  %.0198 = phi ptr [ %5, %4 ], [ %0, %2 ]
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %7, label %11

7:                                                ; preds = %6
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #9
  unreachable

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = load i32, ptr %1, align 8, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !12
  %17 = tail call i32 @get_elemsize(i32 noundef %16)
  %18 = load i32, ptr %12, align 4, !tbaa !5
  %19 = mul nsw i32 %18, %17
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = icmp sgt i32 %14, 0
  %23 = icmp sgt i32 %13, 0
  %or.cond = select i1 %22, i1 %23, i1 false
  br i1 %or.cond, label %.preheader204.us.preheader, label %._crit_edge243

.preheader204.us.preheader:                       ; preds = %11
  %24 = sext i32 %19 to i64
  %wide.trip.count275 = zext nneg i32 %14 to i64
  %wide.trip.count = zext nneg i32 %13 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %25 = icmp eq i32 %13, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader204.us

.preheader204.us:                                 ; preds = %.preheader204.us.preheader, %._crit_edge.us
  %indvars.iv272 = phi i64 [ 0, %.preheader204.us.preheader ], [ %indvars.iv.next273, %._crit_edge.us ]
  %.0214.us = phi double [ 0.000000e+00, %.preheader204.us.preheader ], [ %.lcssa321, %._crit_edge.us ]
  %.0176213.us = phi double [ 0.000000e+00, %.preheader204.us.preheader ], [ %.lcssa322, %._crit_edge.us ]
  %.0178212.us = phi double [ 0.000000e+00, %.preheader204.us.preheader ], [ %.lcssa323, %._crit_edge.us ]
  %26 = mul nsw i64 %indvars.iv272, %24
  %invariant.gep = getelementptr i8, ptr %21, i64 %26
  %27 = trunc nuw nsw i64 %indvars.iv272 to i32
  br i1 %25, label %._crit_edge.us.unr-lcssa, label %.preheader204.us.new

.preheader204.us.new:                             ; preds = %.preheader204.us, %.preheader204.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader204.us.new ], [ 0, %.preheader204.us ]
  %.1208.us = phi double [ %49, %.preheader204.us.new ], [ %.0214.us, %.preheader204.us ]
  %.1177207.us = phi double [ %47, %.preheader204.us.new ], [ %.0176213.us, %.preheader204.us ]
  %.1179206.us = phi double [ %44, %.preheader204.us.new ], [ %.0178212.us, %.preheader204.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader204.us.new ], [ 0, %.preheader204.us ]
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv
  %28 = load i8, ptr %gep, align 1, !tbaa !14
  %29 = zext i8 %28 to i32
  %30 = trunc nuw nsw i64 %indvars.iv to i32
  %31 = mul nuw nsw i32 %30, %29
  %32 = uitofp nneg i32 %31 to double
  %33 = fadd double %.1179206.us, %32
  %34 = mul nuw nsw i32 %27, %29
  %35 = uitofp nneg i32 %34 to double
  %36 = fadd double %.1177207.us, %35
  %37 = uitofp i8 %28 to double
  %38 = fadd double %.1208.us, %37
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv.next
  %39 = load i8, ptr %gep.1, align 1, !tbaa !14
  %40 = zext i8 %39 to i32
  %41 = trunc nuw nsw i64 %indvars.iv.next to i32
  %42 = mul nuw nsw i32 %41, %40
  %43 = uitofp nneg i32 %42 to double
  %44 = fadd double %33, %43
  %45 = mul nuw nsw i32 %27, %40
  %46 = uitofp nneg i32 %45 to double
  %47 = fadd double %36, %46
  %48 = uitofp i8 %39 to double
  %49 = fadd double %38, %48
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader204.us.new, !llvm.loop !15

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader204.us.new, %.preheader204.us
  %.lcssa323.ph = phi double [ poison, %.preheader204.us ], [ %44, %.preheader204.us.new ]
  %.lcssa322.ph = phi double [ poison, %.preheader204.us ], [ %47, %.preheader204.us.new ]
  %.lcssa321.ph = phi double [ poison, %.preheader204.us ], [ %49, %.preheader204.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader204.us ], [ %indvars.iv.next.1, %.preheader204.us.new ]
  %.1208.us.unr = phi double [ %.0214.us, %.preheader204.us ], [ %49, %.preheader204.us.new ]
  %.1177207.us.unr = phi double [ %.0176213.us, %.preheader204.us ], [ %47, %.preheader204.us.new ]
  %.1179206.us.unr = phi double [ %.0178212.us, %.preheader204.us ], [ %44, %.preheader204.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %gep.epil = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv.unr
  %50 = load i8, ptr %gep.epil, align 1, !tbaa !14
  %51 = zext i8 %50 to i32
  %52 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %53 = mul nuw nsw i32 %52, %51
  %54 = uitofp nneg i32 %53 to double
  %55 = fadd double %.1179206.us.unr, %54
  %56 = mul nuw nsw i32 %27, %51
  %57 = uitofp nneg i32 %56 to double
  %58 = fadd double %.1177207.us.unr, %57
  %59 = uitofp i8 %50 to double
  %60 = fadd double %.1208.us.unr, %59
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %.lcssa323 = phi double [ %.lcssa323.ph, %._crit_edge.us.unr-lcssa ], [ %55, %._crit_edge.us.epilog-lcssa ]
  %.lcssa322 = phi double [ %.lcssa322.ph, %._crit_edge.us.unr-lcssa ], [ %58, %._crit_edge.us.epilog-lcssa ]
  %.lcssa321 = phi double [ %.lcssa321.ph, %._crit_edge.us.unr-lcssa ], [ %60, %._crit_edge.us.epilog-lcssa ]
  %indvars.iv.next273 = add nuw nsw i64 %indvars.iv272, 1
  %exitcond276.not = icmp eq i64 %indvars.iv.next273, %wide.trip.count275
  br i1 %exitcond276.not, label %._crit_edge215, label %.preheader204.us, !llvm.loop !17

._crit_edge215:                                   ; preds = %._crit_edge.us
  %61 = fdiv double %.lcssa323, %.lcssa321
  %62 = fadd double %61, 5.000000e-01
  %63 = fptosi double %62 to i32
  %64 = fdiv double %.lcssa322, %.lcssa321
  %65 = fadd double %64, 5.000000e-01
  %66 = fptosi double %65 to i32
  br i1 %22, label %.preheader.us.preheader, label %._crit_edge243

.preheader.us.preheader:                          ; preds = %._crit_edge215
  %67 = sext i32 %19 to i64
  %wide.trip.count285 = zext nneg i32 %14 to i64
  %wide.trip.count280 = zext nneg i32 %13 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us251
  %indvars.iv282 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next283, %._crit_edge.us251 ]
  %.0186240.us = phi double [ 0.000000e+00, %.preheader.us.preheader ], [ %99, %._crit_edge.us251 ]
  %68 = phi <4 x double> [ zeroinitializer, %.preheader.us.preheader ], [ %96, %._crit_edge.us251 ]
  %69 = phi <2 x double> [ zeroinitializer, %.preheader.us.preheader ], [ %104, %._crit_edge.us251 ]
  %70 = trunc i64 %indvars.iv282 to i32
  %71 = sub i32 %70, %66
  %72 = sitofp i32 %71 to double
  %73 = mul nsw i64 %indvars.iv282, %67
  %74 = fmul double %72, %72
  %75 = fmul double %74, %72
  %invariant.gep307 = getelementptr i8, ptr %21, i64 %73
  %76 = insertelement <2 x double> poison, double %75, i64 0
  %77 = insertelement <2 x double> poison, double %72, i64 0
  br label %78

78:                                               ; preds = %.preheader.us, %78
  %indvars.iv277 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next278, %78 ]
  %.1187226.us = phi double [ %.0186240.us, %.preheader.us ], [ %99, %78 ]
  %79 = phi <4 x double> [ %68, %.preheader.us ], [ %96, %78 ]
  %80 = phi <2 x double> [ %69, %.preheader.us ], [ %104, %78 ]
  %81 = trunc i64 %indvars.iv277 to i32
  %82 = sub i32 %81, %63
  %83 = sitofp i32 %82 to double
  %gep308 = getelementptr i8, ptr %invariant.gep307, i64 %indvars.iv277
  %84 = load i8, ptr %gep308, align 1, !tbaa !14
  %85 = uitofp i8 %84 to double
  %86 = insertelement <2 x double> %77, double %83, i64 1
  %87 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %88 = fmul <2 x double> %86, %87
  %89 = extractelement <2 x double> %88, i64 1
  %90 = fmul double %89, %83
  %91 = shufflevector <2 x double> %88, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %92 = insertelement <4 x double> %91, double %74, i64 2
  %93 = insertelement <4 x double> %92, double %90, i64 3
  %94 = insertelement <4 x double> poison, double %85, i64 0
  %95 = shufflevector <4 x double> %94, <4 x double> poison, <4 x i32> zeroinitializer
  %96 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %93, <4 x double> %95, <4 x double> %79)
  %97 = extractelement <2 x double> %88, i64 0
  %98 = fmul double %97, %72
  %99 = tail call double @llvm.fmuladd.f64(double %98, double %85, double %.1187226.us)
  %100 = fmul double %89, %72
  %101 = insertelement <2 x double> %76, double %100, i64 1
  %102 = insertelement <2 x double> poison, double %85, i64 0
  %103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
  %104 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %101, <2 x double> %103, <2 x double> %80)
  %indvars.iv.next278 = add nuw nsw i64 %indvars.iv277, 1
  %exitcond281.not = icmp eq i64 %indvars.iv.next278, %wide.trip.count280
  br i1 %exitcond281.not, label %._crit_edge.us251, label %78, !llvm.loop !18

._crit_edge.us251:                                ; preds = %78
  %indvars.iv.next283 = add nuw nsw i64 %indvars.iv282, 1
  %exitcond286.not = icmp eq i64 %indvars.iv.next283, %wide.trip.count285
  br i1 %exitcond286.not, label %._crit_edge243, label %.preheader.us, !llvm.loop !19

._crit_edge243:                                   ; preds = %._crit_edge.us251, %11, %._crit_edge215
  %.0.lcssa290 = phi double [ %.lcssa321, %._crit_edge215 ], [ 0.000000e+00, %11 ], [ %.lcssa321, %._crit_edge.us251 ]
  %.0186.lcssa = phi double [ 0.000000e+00, %._crit_edge215 ], [ 0.000000e+00, %11 ], [ %99, %._crit_edge.us251 ]
  %105 = phi <4 x double> [ zeroinitializer, %._crit_edge215 ], [ zeroinitializer, %11 ], [ %96, %._crit_edge.us251 ]
  %106 = phi <2 x double> [ zeroinitializer, %._crit_edge215 ], [ zeroinitializer, %11 ], [ %104, %._crit_edge.us251 ]
  %square = fmul double %.0.lcssa290, %.0.lcssa290
  %107 = shufflevector <4 x double> %105, <4 x double> poison, <2 x i32> <i32 1, i32 2>
  %108 = insertelement <2 x double> poison, double %square, i64 0
  %109 = shufflevector <2 x double> %108, <2 x double> poison, <2 x i32> zeroinitializer
  %110 = fdiv <2 x double> %107, %109
  %111 = extractelement <4 x double> %105, i64 0
  %112 = fdiv double %111, %square
  %113 = tail call double @pow(double noundef %.0.lcssa290, double noundef 2.500000e+00) #10
  %114 = tail call double @pow(double noundef %.0.lcssa290, double noundef 2.500000e+00) #10
  %115 = tail call double @pow(double noundef %.0.lcssa290, double noundef 2.500000e+00) #10
  %116 = shufflevector <4 x double> %105, <4 x double> poison, <2 x i32> <i32 3, i32 poison>
  %117 = insertelement <2 x double> %116, double %.0186.lcssa, i64 1
  %118 = insertelement <2 x double> poison, double %113, i64 0
  %119 = insertelement <2 x double> %118, double %115, i64 1
  %120 = fdiv <2 x double> %117, %119
  %121 = tail call double @pow(double noundef %.0.lcssa290, double noundef 2.500000e+00) #10
  %122 = insertelement <2 x double> poison, double %114, i64 0
  %123 = insertelement <2 x double> %122, double %121, i64 1
  %124 = fdiv <2 x double> %106, %123
  %125 = extractelement <2 x double> %110, i64 0
  %126 = extractelement <2 x double> %110, i64 1
  %127 = fsub double %125, %126
  %128 = extractelement <2 x double> %120, i64 0
  %129 = extractelement <2 x double> %120, i64 1
  %130 = tail call double @llvm.fmuladd.f64(double %129, double -3.000000e+00, double %128)
  %131 = extractelement <2 x double> %124, i64 0
  %132 = fneg double %131
  %133 = extractelement <2 x double> %124, i64 1
  %134 = tail call double @llvm.fmuladd.f64(double %133, double 3.000000e+00, double %132)
  %135 = fadd double %131, %133
  %136 = fadd double %125, %126
  store double %136, ptr %.0198, align 8, !tbaa !20
  %137 = fmul double %112, 4.000000e+00
  %138 = getelementptr inbounds i8, ptr %.0198, i64 8
  %139 = insertelement <2 x double> poison, double %112, i64 0
  %140 = insertelement <2 x double> %139, double %134, i64 1
  %141 = insertelement <2 x double> %140, double %137, i64 0
  %142 = fmul <2 x double> %140, %141
  %143 = insertelement <2 x double> poison, double %127, i64 0
  %144 = insertelement <2 x double> %143, double %130, i64 1
  %145 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %144, <2 x double> %144, <2 x double> %142)
  store <2 x double> %145, ptr %138, align 8, !tbaa !20
  %146 = getelementptr inbounds i8, ptr %.0198, i64 24
  %147 = fmul double %135, -3.000000e+00
  %148 = fmul double %135, %147
  %149 = fmul double %134, %135
  %150 = fadd double %128, %129
  %151 = fmul double %135, %135
  %152 = fmul double %130, %150
  %153 = tail call double @llvm.fmuladd.f64(double %150, double %150, double %148)
  %154 = fmul double %150, 3.000000e+00
  %155 = fneg double %151
  %156 = tail call double @llvm.fmuladd.f64(double %154, double %150, double %155)
  %157 = fmul double %149, %156
  %158 = insertelement <2 x double> poison, double %150, i64 0
  %159 = insertelement <2 x double> %158, double %152, i64 1
  %160 = insertelement <2 x double> %159, double %153, i64 1
  %161 = insertelement <2 x double> poison, double %151, i64 0
  %162 = insertelement <2 x double> %161, double %157, i64 1
  %163 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %159, <2 x double> %160, <2 x double> %162)
  store <2 x double> %163, ptr %146, align 8, !tbaa !20
  %164 = tail call double @llvm.fmuladd.f64(double %150, double %150, double %155)
  %165 = fmul double %137, %150
  %166 = fmul double %165, %135
  %167 = tail call double @llvm.fmuladd.f64(double %127, double %164, double %166)
  %168 = getelementptr inbounds i8, ptr %.0198, i64 40
  store double %167, ptr %168, align 8, !tbaa !20
  %169 = fmul double %150, %134
  %170 = fneg double %130
  %171 = fmul double %135, %170
  %172 = fmul double %171, %156
  %173 = tail call double @llvm.fmuladd.f64(double %169, double %153, double %172)
  %174 = getelementptr inbounds i8, ptr %.0198, i64 48
  store double %173, ptr %174, align 8, !tbaa !20
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_elemsize(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #7

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 24}
!14 = !{!8, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !8, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass