; LLVM IR from jingweizhanghuai/Morn :: src/deep_learning (morn_tensor_batch_normlize)

; 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.TensorRegister = type { [32 x i8], ptr, ptr, ptr }
%struct.MLayer = type { [32 x i8], i32, ptr, ptr, ptr, i32 }
%struct.TensorBatchNormPara = type { ptr, i32, float, float, float }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.MTensor = type { i32, i32, i32, i32, ptr, i32 }
%struct.HandleTensorBatchNorm = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@morn_network_flag = external global i32, align 4
@__FUNCTION__.mTensorBatchNormForward = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @endTensorBatchNorm(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @TensorBatchNormSet(ptr noundef) #3

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @mTensorBatchNormForward(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %29, label %25

25:                                               ; preds = %22
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = ptrtoint ptr %26 to i64
  %28 = icmp eq i64 %27, -1
  br label %29

29:                                               ; preds = %25, %22
  %30 = phi i1 [ true, %22 ], [ %28, %25 ]
  %31 = zext i1 %30 to i32
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %29
  %35 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %35, i32 noundef -1, ptr noundef @.str.1, i32 noundef 135, ptr noundef @__FUNCTION__.mTensorBatchNormForward, ptr noundef @.str.13)
  br label %36

36:                                               ; preds = %34, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.MLayer, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.TensorRegister, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds [32 x i8], ptr %44, i64 0, i64 0
  %46 = call i32 @strcmp(ptr noundef @.str.14, ptr noundef %45) #8
  store i32 %46, ptr %4, align 4, !tbaa !9
  %47 = load i32, ptr %4, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %51

49:                                               ; preds = %38
  %50 = load i32, ptr %4, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %50, i32 noundef -1, ptr noundef @.str.1, i32 noundef 136, ptr noundef @__FUNCTION__.mTensorBatchNormForward, ptr noundef @.str.15)
  br label %51

51:                                               ; preds = %49, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %52

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MLayer, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  store ptr %55, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = getelementptr inbounds %struct.MLayer, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  store ptr %60, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MLayer, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  store ptr %63, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  call void @TensorBatchNormSet(ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = call ptr @GetHandle(ptr noundef %65, i32 noundef 64, i32 noundef -561425674, ptr noundef @endTensorBatchNorm)
  store ptr %66, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MHandle, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  store ptr %69, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.MTensor, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !20
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MTensor, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !22
  %76 = mul nsw i32 %72, %75
  store i32 %76, ptr %10, align 4, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.MTensor, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !25
  %83 = sext i32 %82 to i64
  %84 = mul i64 %83, 8
  call void @llvm.memset.p0.i64(ptr align 8 %79, i8 0, i64 %84, i1 false)
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %85, i32 0, i32 5
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MTensor, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !25
  %91 = sext i32 %90 to i64
  %92 = mul i64 %91, 8
  call void @llvm.memset.p0.i64(ptr align 8 %87, i8 0, i64 %92, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %158, %52
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.MTensor, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !27
  %98 = icmp slt i32 %94, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %93
  store i32 6, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %161

100:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %154, %100
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MTensor, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !25
  %106 = icmp slt i32 %102, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %101
  store i32 9, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %157

108:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %150, %108
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 12, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %153

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MTensor, ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !28
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %117, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = mul nsw i32 %122, %123
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = add nsw i32 %124, %125
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %121, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !29
  %130 = fpext float %129 to double
  store double %130, ptr %15, align 8, !tbaa !30
  %131 = load double, ptr %15, align 8, !tbaa !30
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !23
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !30
  %139 = fadd double %138, %131
  store double %139, ptr %137, align 8, !tbaa !30
  %140 = load double, ptr %15, align 8, !tbaa !30
  %141 = load double, ptr %15, align 8, !tbaa !30
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %142, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !26
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !30
  %149 = call double @llvm.fmuladd.f64(double %140, double %141, double %148)
  store double %149, ptr %147, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %150

150:                                              ; preds = %114
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !9
  br label %109, !llvm.loop !32

153:                                              ; preds = %113
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %13, align 4, !tbaa !9
  br label %101, !llvm.loop !34

157:                                              ; preds = %107
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %11, align 4, !tbaa !9
  br label %93, !llvm.loop !35

161:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %259, %161
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.MTensor, ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !25
  %167 = icmp slt i32 %163, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %162
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %262

169:                                              ; preds = %162
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !23
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !30
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.MTensor, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !27
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = mul nsw i32 %179, %180
  %182 = sitofp i32 %181 to double
  %183 = fdiv double %176, %182
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !23
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  store double %183, ptr %189, align 8, !tbaa !30
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %190, i32 0, i32 5
  %192 = load ptr, ptr %191, align 8, !tbaa !26
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !30
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.MTensor, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 8, !tbaa !27
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = mul nsw i32 %199, %200
  %202 = sitofp i32 %201 to double
  %203 = fdiv double %196, %202
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %204, i32 0, i32 5
  %206 = load ptr, ptr %205, align 8, !tbaa !26
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %206, i64 %208
  store double %203, ptr %209, align 8, !tbaa !30
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !23
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !30
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !23
  %220 = load i32, ptr %16, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds double, ptr %219, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !30
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %224, i32 0, i32 5
  %226 = load ptr, ptr %225, align 8, !tbaa !26
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds double, ptr %226, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !30
  %231 = fneg double %216
  %232 = call double @llvm.fmuladd.f64(double %231, double %223, double %230)
  store double %232, ptr %229, align 8, !tbaa !30
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %233, i32 0, i32 5
  %235 = load ptr, ptr %234, align 8, !tbaa !26
  %236 = load i32, ptr %16, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !30
  %240 = fcmp ole double %239, 0.000000e+00
  br i1 %240, label %241, label %242

241:                                              ; preds = %169
  br label %251

242:                                              ; preds = %169
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %243, i32 0, i32 5
  %245 = load ptr, ptr %244, align 8, !tbaa !26
  %246 = load i32, ptr %16, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds double, ptr %245, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !30
  %250 = call double @sqrt(double noundef %249) #7
  br label %251

251:                                              ; preds = %242, %241
  %252 = phi double [ 0x3EE4F8B580000000, %241 ], [ %250, %242 ]
  %253 = load ptr, ptr %9, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %253, i32 0, i32 5
  %255 = load ptr, ptr %254, align 8, !tbaa !26
  %256 = load i32, ptr %16, align 4, !tbaa !9
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds double, ptr %255, i64 %257
  store double %252, ptr %258, align 8, !tbaa !30
  br label %259

259:                                              ; preds = %251
  %260 = load i32, ptr %16, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %16, align 4, !tbaa !9
  br label %162, !llvm.loop !36

262:                                              ; preds = %168
  %263 = load i32, ptr @morn_network_flag, align 4, !tbaa !9
  %264 = icmp eq i32 %263, 0
  br i1 %264, label %265, label %386

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %382, %265
  %267 = load i32, ptr %17, align 4, !tbaa !9
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.MTensor, ptr %268, i32 0, i32 1
  %270 = load i32, ptr %269, align 4, !tbaa !25
  %271 = icmp slt i32 %267, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %266
  store i32 18, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %385

273:                                              ; preds = %266
  %274 = load ptr, ptr %2, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.MLayer, ptr %274, i32 0, i32 5
  %276 = load i32, ptr %275, align 8, !tbaa !37
  %277 = icmp eq i32 %276, -1
  br i1 %277, label %278, label %307

278:                                              ; preds = %273
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !23
  %282 = load i32, ptr %17, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %281, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !30
  %286 = fptrunc double %285 to float
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %287, i32 0, i32 6
  %289 = load ptr, ptr %288, align 8, !tbaa !38
  %290 = load i32, ptr %17, align 4, !tbaa !9
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds float, ptr %289, i64 %291
  store float %286, ptr %292, align 4, !tbaa !29
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %293, i32 0, i32 5
  %295 = load ptr, ptr %294, align 8, !tbaa !26
  %296 = load i32, ptr %17, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds double, ptr %295, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !30
  %300 = fptrunc double %299 to float
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %301, i32 0, i32 7
  %303 = load ptr, ptr %302, align 8, !tbaa !39
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds float, ptr %303, i64 %305
  store float %300, ptr %306, align 4, !tbaa !29
  br label %307

307:                                              ; preds = %278, %273
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !38
  %311 = load i32, ptr %17, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds float, ptr %310, i64 %312
  %314 = load float, ptr %313, align 4, !tbaa !29
  %315 = fmul float %314, 0x3FEFAE1480000000
  %316 = fpext float %315 to double
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %317, i32 0, i32 4
  %319 = load ptr, ptr %318, align 8, !tbaa !23
  %320 = load i32, ptr %17, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds double, ptr %319, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !30
  %324 = call double @llvm.fmuladd.f64(double %323, double 1.000000e-02, double %316)
  %325 = load ptr, ptr %9, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %325, i32 0, i32 4
  %327 = load ptr, ptr %326, align 8, !tbaa !23
  %328 = load i32, ptr %17, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds double, ptr %327, i64 %329
  store double %324, ptr %330, align 8, !tbaa !30
  %331 = load ptr, ptr %9, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %331, i32 0, i32 7
  %333 = load ptr, ptr %332, align 8, !tbaa !39
  %334 = load i32, ptr %17, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds float, ptr %333, i64 %335
  %337 = load float, ptr %336, align 4, !tbaa !29
  %338 = fmul float %337, 0x3FEFAE1480000000
  %339 = fpext float %338 to double
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %340, i32 0, i32 5
  %342 = load ptr, ptr %341, align 8, !tbaa !26
  %343 = load i32, ptr %17, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds double, ptr %342, i64 %344
  %346 = load double, ptr %345, align 8, !tbaa !30
  %347 = call double @llvm.fmuladd.f64(double %346, double 1.000000e-02, double %339)
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %348, i32 0, i32 5
  %350 = load ptr, ptr %349, align 8, !tbaa !26
  %351 = load i32, ptr %17, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds double, ptr %350, i64 %352
  store double %347, ptr %353, align 8, !tbaa !30
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %354, i32 0, i32 4
  %356 = load ptr, ptr %355, align 8, !tbaa !23
  %357 = load i32, ptr %17, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds double, ptr %356, i64 %358
  %360 = load double, ptr %359, align 8, !tbaa !30
  %361 = fptrunc double %360 to float
  %362 = load ptr, ptr %9, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %362, i32 0, i32 6
  %364 = load ptr, ptr %363, align 8, !tbaa !38
  %365 = load i32, ptr %17, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds float, ptr %364, i64 %366
  store float %361, ptr %367, align 4, !tbaa !29
  %368 = load ptr, ptr %9, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %368, i32 0, i32 5
  %370 = load ptr, ptr %369, align 8, !tbaa !26
  %371 = load i32, ptr %17, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds double, ptr %370, i64 %372
  %374 = load double, ptr %373, align 8, !tbaa !30
  %375 = fptrunc double %374 to float
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %376, i32 0, i32 7
  %378 = load ptr, ptr %377, align 8, !tbaa !39
  %379 = load i32, ptr %17, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds float, ptr %378, i64 %380
  store float %375, ptr %381, align 4, !tbaa !29
  br label %382

382:                                              ; preds = %307
  %383 = load i32, ptr %17, align 4, !tbaa !9
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %17, align 4, !tbaa !9
  br label %266, !llvm.loop !40

385:                                              ; preds = %272
  br label %386

386:                                              ; preds = %385, %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %387

387:                                              ; preds = %482, %386
  %388 = load i32, ptr %18, align 4, !tbaa !9
  %389 = load ptr, ptr %6, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.MTensor, ptr %389, i32 0, i32 0
  %391 = load i32, ptr %390, align 8, !tbaa !27
  %392 = icmp slt i32 %388, %391
  br i1 %392, label %394, label %393

393:                                              ; preds = %387
  store i32 21, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %485

394:                                              ; preds = %387
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %395

395:                                              ; preds = %478, %394
  %396 = load i32, ptr %19, align 4, !tbaa !9
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.MTensor, ptr %397, i32 0, i32 1
  %399 = load i32, ptr %398, align 4, !tbaa !25
  %400 = icmp slt i32 %396, %399
  br i1 %400, label %402, label %401

401:                                              ; preds = %395
  store i32 24, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %481

402:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %403

403:                                              ; preds = %474, %402
  %404 = load i32, ptr %20, align 4, !tbaa !9
  %405 = load i32, ptr %10, align 4, !tbaa !9
  %406 = icmp slt i32 %404, %405
  br i1 %406, label %408, label %407

407:                                              ; preds = %403
  store i32 27, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %477

408:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %409 = load ptr, ptr %6, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.MTensor, ptr %409, i32 0, i32 4
  %411 = load ptr, ptr %410, align 8, !tbaa !28
  %412 = load i32, ptr %18, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds ptr, ptr %411, i64 %413
  %415 = load ptr, ptr %414, align 8, !tbaa !5
  %416 = load i32, ptr %19, align 4, !tbaa !9
  %417 = load i32, ptr %10, align 4, !tbaa !9
  %418 = mul nsw i32 %416, %417
  %419 = load i32, ptr %20, align 4, !tbaa !9
  %420 = add nsw i32 %418, %419
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds float, ptr %415, i64 %421
  %423 = load float, ptr %422, align 4, !tbaa !29
  store float %423, ptr %21, align 4, !tbaa !29
  %424 = load float, ptr %21, align 4, !tbaa !29
  %425 = fpext float %424 to double
  %426 = load ptr, ptr %9, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %426, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !23
  %429 = load i32, ptr %19, align 4, !tbaa !9
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds double, ptr %428, i64 %430
  %432 = load double, ptr %431, align 8, !tbaa !30
  %433 = fsub double %425, %432
  %434 = load ptr, ptr %9, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %434, i32 0, i32 5
  %436 = load ptr, ptr %435, align 8, !tbaa !26
  %437 = load i32, ptr %19, align 4, !tbaa !9
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds double, ptr %436, i64 %438
  %440 = load double, ptr %439, align 8, !tbaa !30
  %441 = fdiv double %433, %440
  %442 = load ptr, ptr %9, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %442, i32 0, i32 0
  %444 = load ptr, ptr %443, align 8, !tbaa !41
  %445 = load i32, ptr %19, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds float, ptr %444, i64 %446
  %448 = load float, ptr %447, align 4, !tbaa !29
  %449 = fpext float %448 to double
  %450 = load ptr, ptr %9, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %450, i32 0, i32 1
  %452 = load ptr, ptr %451, align 8, !tbaa !42
  %453 = load i32, ptr %19, align 4, !tbaa !9
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds float, ptr %452, i64 %454
  %456 = load float, ptr %455, align 4, !tbaa !29
  %457 = fpext float %456 to double
  %458 = call double @llvm.fmuladd.f64(double %441, double %449, double %457)
  %459 = fptrunc double %458 to float
  %460 = load ptr, ptr %7, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.MTensor, ptr %460, i32 0, i32 4
  %462 = load ptr, ptr %461, align 8, !tbaa !28
  %463 = load i32, ptr %18, align 4, !tbaa !9
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds ptr, ptr %462, i64 %464
  %466 = load ptr, ptr %465, align 8, !tbaa !5
  %467 = load i32, ptr %19, align 4, !tbaa !9
  %468 = load i32, ptr %10, align 4, !tbaa !9
  %469 = mul nsw i32 %467, %468
  %470 = load i32, ptr %20, align 4, !tbaa !9
  %471 = add nsw i32 %469, %470
  %472 = sext i32 %471 to i64
  %473 = getelementptr inbounds float, ptr %466, i64 %472
  store float %459, ptr %473, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %474

474:                                              ; preds = %408
  %475 = load i32, ptr %20, align 4, !tbaa !9
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %20, align 4, !tbaa !9
  br label %403, !llvm.loop !43

477:                                              ; preds = %407
  br label %478

478:                                              ; preds = %477
  %479 = load i32, ptr %19, align 4, !tbaa !9
  %480 = add nsw i32 %479, 1
  store i32 %480, ptr %19, align 4, !tbaa !9
  br label %395, !llvm.loop !44

481:                                              ; preds = %401
  br label %482

482:                                              ; preds = %481
  %483 = load i32, ptr %18, align 4, !tbaa !9
  %484 = add nsw i32 %483, 1
  store i32 %484, ptr %18, align 4, !tbaa !9
  br label %387, !llvm.loop !45

485:                                              ; preds = %393
  %486 = load ptr, ptr %2, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.MLayer, ptr %486, i32 0, i32 5
  store i32 0, ptr %487, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind willreturn memory(read) "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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"MLayer", !7, i64 0, !10, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!13 = !{!12, !6, i64 56}
!14 = !{!15, !6, i64 0}
!15 = !{!"TensorBatchNormPara", !6, i64 0, !10, i64 8, !16, i64 12, !16, i64 16, !16, i64 20}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !6, i64 40}
!18 = !{!19, !6, i64 16}
!19 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!20 = !{!21, !10, i64 8}
!21 = !{!"MTensor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24}
!22 = !{!21, !10, i64 12}
!23 = !{!24, !6, i64 32}
!24 = !{!"HandleTensorBatchNorm", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!25 = !{!21, !10, i64 4}
!26 = !{!24, !6, i64 40}
!27 = !{!21, !10, i64 0}
!28 = !{!21, !6, i64 16}
!29 = !{!16, !16, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"double", !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !33}
!37 = !{!12, !10, i64 64}
!38 = !{!24, !6, i64 48}
!39 = !{!24, !6, i64 56}
!40 = distinct !{!40, !33}
!41 = !{!24, !6, i64 0}
!42 = !{!24, !6, i64 8}
!43 = distinct !{!43, !33}
!44 = distinct !{!44, !33}
!45 = distinct !{!45, !33}


; 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"

%struct.TensorRegister = type { [32 x i8], ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@morn_network_flag = external local_unnamed_addr global i32, align 4
@__FUNCTION__.mTensorBatchNormForward = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @endTensorBatchNorm(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @TensorBatchNormSet(ptr noundef) local_unnamed_addr #2

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local void @mTensorBatchNormForward(ptr noundef %0) local_unnamed_addr #2 {
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %7 [
    i64 -1, label %2
    i64 0, label %2
  ]

2:                                                ; preds = %1, %1
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %0, inttoptr (i64 -1 to ptr)
  %5 = or i1 %3, %4
  %6 = zext i1 %5 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %6, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 135, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormForward, ptr noundef nonnull @.str.13) #7
  br label %7

7:                                                ; preds = %1, %2
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %10
  %12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull dereferenceable(1) %11) #8
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %14, label %13

13:                                               ; preds = %7
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %12, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 136, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormForward, ptr noundef nonnull @.str.15) #7
  br label %14

14:                                               ; preds = %13, %7
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %17, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  tail call void @TensorBatchNormSet(ptr noundef nonnull %0)
  %22 = tail call ptr @GetHandle(ptr noundef %21, i32 noundef 64, i32 noundef -561425674, ptr noundef nonnull @endTensorBatchNorm) #7
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %19, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds i8, ptr %19, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !20
  %29 = mul i32 %28, %26
  %30 = getelementptr inbounds i8, ptr %24, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %19, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !23
  %34 = sext i32 %33 to i64
  %35 = shl nsw i64 %34, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 %35, i1 false)
  %36 = getelementptr inbounds i8, ptr %24, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = load i32, ptr %32, align 4, !tbaa !23
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 %40, i1 false)
  %41 = load i32, ptr %19, align 8, !tbaa !25
  %42 = icmp sgt i32 %41, 0
  %.pre = load i32, ptr %32, align 4, !tbaa !23
  br i1 %42, label %.preheader141.lr.ph, label %.preheader139

.preheader141.lr.ph:                              ; preds = %14
  %43 = icmp sgt i32 %.pre, 0
  %44 = getelementptr inbounds i8, ptr %19, i64 16
  br i1 %43, label %.preheader141.lr.ph.split.us, label %.loopexit

.preheader141.lr.ph.split.us:                     ; preds = %.preheader141.lr.ph
  %45 = icmp sgt i32 %29, 0
  br i1 %45, label %.preheader141.lr.ph.split.us.split.us, label %.lr.ph.preheader

.preheader141.lr.ph.split.us.split.us:            ; preds = %.preheader141.lr.ph.split.us
  %46 = load ptr, ptr %44, align 8, !tbaa !26
  %47 = load ptr, ptr %30, align 8, !tbaa !21
  %48 = load ptr, ptr %36, align 8, !tbaa !24
  %49 = zext nneg i32 %29 to i64
  %wide.trip.count178 = zext nneg i32 %41 to i64
  %wide.trip.count173 = zext nneg i32 %.pre to i64
  %xtraiter = and i64 %49, 1
  %50 = icmp eq i32 %29, 1
  %unroll_iter = and i64 %49, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader141.us.us

.preheader141.us.us:                              ; preds = %._crit_edge144.split.us.us.us, %.preheader141.lr.ph.split.us.split.us
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %._crit_edge144.split.us.us.us ], [ 0, %.preheader141.lr.ph.split.us.split.us ]
  %51 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv175
  %52 = load ptr, ptr %51, align 8, !tbaa !27
  br label %.preheader140.us.us.us

.preheader140.us.us.us:                           ; preds = %._crit_edge.us.us.us, %.preheader141.us.us
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %._crit_edge.us.us.us ], [ 0, %.preheader141.us.us ]
  %53 = mul nuw nsw i64 %indvars.iv170, %49
  %54 = getelementptr inbounds double, ptr %47, i64 %indvars.iv170
  %55 = getelementptr inbounds double, ptr %48, i64 %indvars.iv170
  %invariant.gep = getelementptr inbounds float, ptr %52, i64 %53
  br i1 %50, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader140.us.us.us.new

.preheader140.us.us.us.new:                       ; preds = %.preheader140.us.us.us, %.preheader140.us.us.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader140.us.us.us.new ], [ 0, %.preheader140.us.us.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader140.us.us.us.new ], [ 0, %.preheader140.us.us.us ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %56 = load float, ptr %gep, align 4, !tbaa !28
  %57 = fpext float %56 to double
  %58 = load double, ptr %54, align 8, !tbaa !29
  %59 = fadd double %58, %57
  store double %59, ptr %54, align 8, !tbaa !29
  %60 = load double, ptr %55, align 8, !tbaa !29
  %61 = tail call double @llvm.fmuladd.f64(double %57, double %57, double %60)
  store double %61, ptr %55, align 8, !tbaa !29
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next
  %62 = load float, ptr %gep.1, align 4, !tbaa !28
  %63 = fpext float %62 to double
  %64 = load double, ptr %54, align 8, !tbaa !29
  %65 = fadd double %64, %63
  store double %65, ptr %54, align 8, !tbaa !29
  %66 = load double, ptr %55, align 8, !tbaa !29
  %67 = tail call double @llvm.fmuladd.f64(double %63, double %63, double %66)
  store double %67, ptr %55, align 8, !tbaa !29
  %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.us.us.unr-lcssa, label %.preheader140.us.us.us.new, !llvm.loop !31

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.preheader140.us.us.us.new, %.preheader140.us.us.us
  %indvars.iv.unr = phi i64 [ 0, %.preheader140.us.us.us ], [ %indvars.iv.next.1, %.preheader140.us.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us.us, label %._crit_edge.us.us.us.epilog-lcssa

._crit_edge.us.us.us.epilog-lcssa:                ; preds = %._crit_edge.us.us.us.unr-lcssa
  %gep.epil = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.unr
  %68 = load float, ptr %gep.epil, align 4, !tbaa !28
  %69 = fpext float %68 to double
  %70 = load double, ptr %54, align 8, !tbaa !29
  %71 = fadd double %70, %69
  store double %71, ptr %54, align 8, !tbaa !29
  %72 = load double, ptr %55, align 8, !tbaa !29
  %73 = tail call double @llvm.fmuladd.f64(double %69, double %69, double %72)
  store double %73, ptr %55, align 8, !tbaa !29
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.unr-lcssa, %._crit_edge.us.us.us.epilog-lcssa
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count173
  br i1 %exitcond174.not, label %._crit_edge144.split.us.us.us, label %.preheader140.us.us.us, !llvm.loop !33

._crit_edge144.split.us.us.us:                    ; preds = %._crit_edge.us.us.us
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %wide.trip.count178
  br i1 %exitcond179.not, label %.preheader139, label %.preheader141.us.us, !llvm.loop !34

.preheader139:                                    ; preds = %._crit_edge144.split.us.us.us, %14
  %74 = icmp sgt i32 %.pre, 0
  br i1 %74, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader141.lr.ph.split.us, %.preheader139
  %.pre203 = load ptr, ptr %36, align 8, !tbaa !24
  br label %.lr.ph

._crit_edge:                                      ; preds = %105
  %75 = load i32, ptr @morn_network_flag, align 4, !tbaa !35
  %76 = icmp eq i32 %75, 0
  %77 = icmp sgt i32 %106, 0
  %or.cond = and i1 %76, %77
  br i1 %or.cond, label %.lr.ph152, label %.loopexit

.lr.ph152:                                        ; preds = %._crit_edge
  %78 = getelementptr inbounds i8, ptr %0, i64 64
  %79 = load i32, ptr %78, align 8, !tbaa !36
  %80 = icmp eq i32 %79, -1
  %81 = getelementptr inbounds i8, ptr %24, i64 48
  %82 = getelementptr inbounds i8, ptr %24, i64 56
  %83 = load ptr, ptr %81, align 8, !tbaa !37
  %84 = load ptr, ptr %30, align 8, !tbaa !21
  %85 = load ptr, ptr %82, align 8, !tbaa !38
  %86 = load ptr, ptr %36, align 8, !tbaa !24
  %wide.trip.count186 = zext nneg i32 %106 to i64
  br label %112

.lr.ph:                                           ; preds = %.lr.ph.preheader, %105
  %87 = phi i32 [ %.pre, %.lr.ph.preheader ], [ %106, %105 ]
  %88 = phi ptr [ %.pre203, %.lr.ph.preheader ], [ %107, %105 ]
  %indvars.iv180 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next181, %105 ]
  %89 = load ptr, ptr %30, align 8, !tbaa !21
  %90 = getelementptr inbounds double, ptr %89, i64 %indvars.iv180
  %91 = load double, ptr %90, align 8, !tbaa !29
  %92 = load i32, ptr %19, align 8, !tbaa !25
  %93 = mul nsw i32 %92, %29
  %94 = sitofp i32 %93 to double
  %95 = fdiv double %91, %94
  store double %95, ptr %90, align 8, !tbaa !29
  %96 = getelementptr inbounds double, ptr %88, i64 %indvars.iv180
  %97 = load double, ptr %96, align 8, !tbaa !29
  %98 = fdiv double %97, %94
  store double %98, ptr %96, align 8, !tbaa !29
  %99 = load double, ptr %90, align 8, !tbaa !29
  %100 = fneg double %99
  %101 = tail call double @llvm.fmuladd.f64(double %100, double %99, double %98)
  store double %101, ptr %96, align 8, !tbaa !29
  %102 = fcmp ugt double %101, 0.000000e+00
  br i1 %102, label %103, label %105

103:                                              ; preds = %.lr.ph
  %104 = tail call double @sqrt(double noundef %101) #7
  %.pre204 = load ptr, ptr %36, align 8, !tbaa !24
  %.pre205 = load i32, ptr %32, align 4, !tbaa !23
  br label %105

105:                                              ; preds = %.lr.ph, %103
  %106 = phi i32 [ %.pre205, %103 ], [ %87, %.lr.ph ]
  %107 = phi ptr [ %.pre204, %103 ], [ %88, %.lr.ph ]
  %108 = phi double [ %104, %103 ], [ 0x3EE4F8B580000000, %.lr.ph ]
  %109 = getelementptr inbounds double, ptr %107, i64 %indvars.iv180
  store double %108, ptr %109, align 8, !tbaa !29
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %110 = sext i32 %106 to i64
  %111 = icmp slt i64 %indvars.iv.next181, %110
  br i1 %111, label %.lr.ph, label %._crit_edge, !llvm.loop !39

112:                                              ; preds = %.lr.ph152, %122
  %indvars.iv183 = phi i64 [ 0, %.lr.ph152 ], [ %indvars.iv.next184, %122 ]
  %113 = getelementptr inbounds double, ptr %84, i64 %indvars.iv183
  %114 = load double, ptr %113, align 8, !tbaa !29
  br i1 %80, label %115, label %._crit_edge206

._crit_edge206:                                   ; preds = %112
  %.phi.trans.insert208 = getelementptr inbounds float, ptr %85, i64 %indvars.iv183
  %.pre209 = load float, ptr %.phi.trans.insert208, align 4, !tbaa !28
  br label %122

115:                                              ; preds = %112
  %116 = fptrunc double %114 to float
  %117 = getelementptr inbounds float, ptr %83, i64 %indvars.iv183
  store float %116, ptr %117, align 4, !tbaa !28
  %118 = getelementptr inbounds double, ptr %86, i64 %indvars.iv183
  %119 = load double, ptr %118, align 8, !tbaa !29
  %120 = fptrunc double %119 to float
  %121 = getelementptr inbounds float, ptr %85, i64 %indvars.iv183
  store float %120, ptr %121, align 4, !tbaa !28
  br label %122

122:                                              ; preds = %._crit_edge206, %115
  %123 = phi float [ %.pre209, %._crit_edge206 ], [ %120, %115 ]
  %124 = getelementptr inbounds float, ptr %83, i64 %indvars.iv183
  %125 = load float, ptr %124, align 4, !tbaa !28
  %126 = fmul float %125, 0x3FEFAE1480000000
  %127 = fpext float %126 to double
  %128 = getelementptr inbounds double, ptr %84, i64 %indvars.iv183
  %129 = tail call double @llvm.fmuladd.f64(double %114, double 1.000000e-02, double %127)
  store double %129, ptr %128, align 8, !tbaa !29
  %130 = getelementptr inbounds float, ptr %85, i64 %indvars.iv183
  %131 = fmul float %123, 0x3FEFAE1480000000
  %132 = fpext float %131 to double
  %133 = getelementptr inbounds double, ptr %86, i64 %indvars.iv183
  %134 = load double, ptr %133, align 8, !tbaa !29
  %135 = tail call double @llvm.fmuladd.f64(double %134, double 1.000000e-02, double %132)
  store double %135, ptr %133, align 8, !tbaa !29
  %136 = load double, ptr %128, align 8, !tbaa !29
  %137 = fptrunc double %136 to float
  store float %137, ptr %124, align 4, !tbaa !28
  %138 = fptrunc double %135 to float
  store float %138, ptr %130, align 4, !tbaa !28
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %wide.trip.count186
  br i1 %exitcond187.not, label %.loopexit, label %112, !llvm.loop !40

.loopexit:                                        ; preds = %122, %.preheader141.lr.ph, %.preheader139, %._crit_edge
  %139 = phi i1 [ %77, %._crit_edge ], [ false, %.preheader139 ], [ false, %.preheader141.lr.ph ], [ %77, %122 ]
  %.lcssa213 = phi i32 [ %106, %._crit_edge ], [ %.pre, %.preheader139 ], [ %.pre, %.preheader141.lr.ph ], [ %106, %122 ]
  %140 = load i32, ptr %19, align 8, !tbaa !25
  %141 = icmp sgt i32 %140, 0
  %142 = icmp sgt i32 %29, 0
  %143 = and i1 %141, %139
  %or.cond231 = select i1 %143, i1 %142, i1 false
  br i1 %or.cond231, label %.preheader137.lr.ph.split.us.split.us, label %._crit_edge159

.preheader137.lr.ph.split.us.split.us:            ; preds = %.loopexit
  %144 = getelementptr inbounds i8, ptr %21, i64 16
  %145 = getelementptr inbounds i8, ptr %24, i64 8
  %146 = getelementptr inbounds i8, ptr %19, i64 16
  %147 = load ptr, ptr %146, align 8, !tbaa !26
  %148 = load ptr, ptr %30, align 8, !tbaa !21
  %149 = load ptr, ptr %36, align 8, !tbaa !24
  %150 = load ptr, ptr %24, align 8, !tbaa !41
  %151 = load ptr, ptr %145, align 8, !tbaa !42
  %152 = load ptr, ptr %144, align 8, !tbaa !26
  %153 = zext nneg i32 %29 to i64
  %wide.trip.count201 = zext nneg i32 %140 to i64
  %wide.trip.count196 = zext i32 %.lcssa213 to i64
  %154 = mul nuw nsw i64 %wide.trip.count196, %153
  %155 = shl i64 %154, 2
  %156 = shl nuw nsw i64 %wide.trip.count196, 2
  %scevgep216 = getelementptr i8, ptr %150, i64 %156
  %scevgep217 = getelementptr i8, ptr %151, i64 %156
  %min.iters.check = icmp ult i32 %29, 4
  %n.vec = and i64 %153, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %153
  br label %.preheader137.us.us

.preheader137.us.us:                              ; preds = %._crit_edge157.split.us.us.us, %.preheader137.lr.ph.split.us.split.us
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %._crit_edge157.split.us.us.us ], [ 0, %.preheader137.lr.ph.split.us.split.us ]
  %157 = getelementptr inbounds ptr, ptr %147, i64 %indvars.iv198
  %158 = load ptr, ptr %157, align 8, !tbaa !27
  %159 = getelementptr inbounds ptr, ptr %152, i64 %indvars.iv198
  %160 = load ptr, ptr %159, align 8, !tbaa !27
  %scevgep = getelementptr i8, ptr %160, i64 %155
  %scevgep215 = getelementptr i8, ptr %158, i64 %155
  %bound0 = icmp ult ptr %160, %scevgep215
  %bound1 = icmp ult ptr %158, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0218 = icmp ult ptr %160, %scevgep216
  %bound1219 = icmp ult ptr %150, %scevgep
  %found.conflict220 = and i1 %bound0218, %bound1219
  %conflict.rdx = or i1 %found.conflict, %found.conflict220
  %bound0221 = icmp ult ptr %160, %scevgep217
  %bound1222 = icmp ult ptr %151, %scevgep
  %found.conflict223 = and i1 %bound0221, %bound1222
  %conflict.rdx224 = or i1 %conflict.rdx, %found.conflict223
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge155.us.us.us, %.preheader137.us.us
  %indvars.iv193 = phi i64 [ %indvars.iv.next194, %._crit_edge155.us.us.us ], [ 0, %.preheader137.us.us ]
  %161 = mul nuw nsw i64 %indvars.iv193, %153
  %162 = getelementptr inbounds double, ptr %148, i64 %indvars.iv193
  %163 = load double, ptr %162, align 8, !tbaa !29
  %164 = getelementptr inbounds double, ptr %149, i64 %indvars.iv193
  %165 = load double, ptr %164, align 8, !tbaa !29
  %166 = getelementptr inbounds float, ptr %150, i64 %indvars.iv193
  %167 = getelementptr inbounds float, ptr %151, i64 %indvars.iv193
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx224
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.us.us.us
  %broadcast.splatinsert = insertelement <4 x double> poison, double %163, i64 0
  %broadcast.splat = shufflevector <4 x double> %broadcast.splatinsert, <4 x double> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert225 = insertelement <4 x double> poison, double %165, i64 0
  %broadcast.splat226 = shufflevector <4 x double> %broadcast.splatinsert225, <4 x double> poison, <4 x i32> zeroinitializer
  %168 = load float, ptr %166, align 4, !tbaa !28, !alias.scope !43
  %broadcast.splatinsert227 = insertelement <4 x float> poison, float %168, i64 0
  %broadcast.splat228 = shufflevector <4 x float> %broadcast.splatinsert227, <4 x float> poison, <4 x i32> zeroinitializer
  %169 = fpext <4 x float> %broadcast.splat228 to <4 x double>
  %170 = load float, ptr %167, align 4, !tbaa !28, !alias.scope !46
  %broadcast.splatinsert229 = insertelement <4 x float> poison, float %170, i64 0
  %broadcast.splat230 = shufflevector <4 x float> %broadcast.splatinsert229, <4 x float> poison, <4 x i32> zeroinitializer
  %171 = fpext <4 x float> %broadcast.splat230 to <4 x double>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %172 = add nuw nsw i64 %index, %161
  %173 = getelementptr inbounds float, ptr %158, i64 %172
  %wide.load = load <4 x float>, ptr %173, align 4, !tbaa !28, !alias.scope !48
  %174 = fpext <4 x float> %wide.load to <4 x double>
  %175 = fsub <4 x double> %174, %broadcast.splat
  %176 = fdiv <4 x double> %175, %broadcast.splat226
  %177 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %176, <4 x double> %169, <4 x double> %171)
  %178 = fptrunc <4 x double> %177 to <4 x float>
  %179 = getelementptr inbounds float, ptr %160, i64 %172
  store <4 x float> %178, ptr %179, align 4, !tbaa !28, !alias.scope !50, !noalias !52
  %index.next = add nuw i64 %index, 4
  %180 = icmp eq i64 %index.next, %n.vec
  br i1 %180, label %middle.block, label %vector.body, !llvm.loop !53

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge155.us.us.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %.preheader.us.us.us, %middle.block
  %indvars.iv188.ph = phi i64 [ 0, %.preheader.us.us.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %scalar.ph ], [ %indvars.iv188.ph, %scalar.ph.preheader ]
  %181 = add nuw nsw i64 %indvars.iv188, %161
  %182 = getelementptr inbounds float, ptr %158, i64 %181
  %183 = load float, ptr %182, align 4, !tbaa !28
  %184 = fpext float %183 to double
  %185 = fsub double %184, %163
  %186 = fdiv double %185, %165
  %187 = load float, ptr %166, align 4, !tbaa !28
  %188 = fpext float %187 to double
  %189 = load float, ptr %167, align 4, !tbaa !28
  %190 = fpext float %189 to double
  %191 = tail call double @llvm.fmuladd.f64(double %186, double %188, double %190)
  %192 = fptrunc double %191 to float
  %193 = getelementptr inbounds float, ptr %160, i64 %181
  store float %192, ptr %193, align 4, !tbaa !28
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %153
  br i1 %exitcond192.not, label %._crit_edge155.us.us.us, label %scalar.ph, !llvm.loop !56

._crit_edge155.us.us.us:                          ; preds = %scalar.ph, %middle.block
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197.not, label %._crit_edge157.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !57

._crit_edge157.split.us.us.us:                    ; preds = %._crit_edge155.us.us.us
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %exitcond202.not = icmp eq i64 %indvars.iv.next199, %wide.trip.count201
  br i1 %exitcond202.not, label %._crit_edge159, label %.preheader137.us.us, !llvm.loop !58

._crit_edge159:                                   ; preds = %._crit_edge157.split.us.us.us, %.loopexit
  %194 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 0, ptr %194, align 8, !tbaa !36
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

; 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>) #6

attributes #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 memory(argmem: read) "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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !9, i64 32}
!6 = !{!"MLayer", !7, i64 0, !9, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !9, i64 64}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!6, !10, i64 56}
!12 = !{!13, !10, i64 0}
!13 = !{!"TensorBatchNormPara", !10, i64 0, !9, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!14 = !{!"float", !7, i64 0}
!15 = !{!6, !10, i64 40}
!16 = !{!17, !10, i64 16}
!17 = !{!"MHandle", !9, i64 0, !9, i64 4, !10, i64 8, !10, i64 16}
!18 = !{!19, !9, i64 8}
!19 = !{!"MTensor", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !10, i64 16, !9, i64 24}
!20 = !{!19, !9, i64 12}
!21 = !{!22, !10, i64 32}
!22 = !{!"HandleTensorBatchNorm", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!23 = !{!19, !9, i64 4}
!24 = !{!22, !10, i64 40}
!25 = !{!19, !9, i64 0}
!26 = !{!19, !10, i64 16}
!27 = !{!10, !10, i64 0}
!28 = !{!14, !14, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = !{!9, !9, i64 0}
!36 = !{!6, !9, i64 64}
!37 = !{!22, !10, i64 48}
!38 = !{!22, !10, i64 56}
!39 = distinct !{!39, !32}
!40 = distinct !{!40, !32}
!41 = !{!22, !10, i64 0}
!42 = !{!22, !10, i64 8}
!43 = !{!44}
!44 = distinct !{!44, !45}
!45 = distinct !{!45, !"LVerDomain"}
!46 = !{!47}
!47 = distinct !{!47, !45}
!48 = !{!49}
!49 = distinct !{!49, !45}
!50 = !{!51}
!51 = distinct !{!51, !45}
!52 = !{!49, !44, !47}
!53 = distinct !{!53, !32, !54, !55}
!54 = !{!"llvm.loop.isvectorized", i32 1}
!55 = !{!"llvm.loop.unroll.runtime.disable"}
!56 = distinct !{!56, !32, !54}
!57 = distinct !{!57, !32}
!58 = distinct !{!58, !32}


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