; 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.HandleTensorBatchNorm = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.MTensor = type { i32, i32, i32, i32, ptr, i32 }

@.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_parafile = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 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__.mTensorBatchNormBackward = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@morn_network_time = external global i32, align 4
@morn_network_save = external global i32, align 4
@morn_network_error = external global float, align 4
@morn_network_error_thresh = external global float, align 4
@morn_network_time_max = external global i32, align 4

; 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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mTensorBatchNormBackward(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 ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [64 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca [64 x i8], align 16
  %15 = alloca ptr, 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 i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %36, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = ptrtoint ptr %33 to i64
  %35 = icmp eq i64 %34, -1
  br label %36

36:                                               ; preds = %32, %29
  %37 = phi i1 [ true, %29 ], [ %35, %32 ]
  %38 = zext i1 %37 to i32
  store i32 %38, ptr %3, align 4, !tbaa !9
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %36
  %42 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %42, i32 noundef -1, ptr noundef @.str.1, i32 noundef 193, ptr noundef @__FUNCTION__.mTensorBatchNormBackward, ptr noundef @.str.13)
  br label %43

43:                                               ; preds = %41, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %44

44:                                               ; preds = %43
  br label %45

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

56:                                               ; preds = %45
  %57 = load i32, ptr %4, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %57, i32 noundef -1, ptr noundef @.str.1, i32 noundef 194, ptr noundef @__FUNCTION__.mTensorBatchNormBackward, ptr noundef @.str.15)
  br label %58

58:                                               ; preds = %56, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MLayer, ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  store ptr %62, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = getelementptr inbounds %struct.MLayer, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  store ptr %67, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %71 = getelementptr inbounds %struct.MLayer, ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  store ptr %72, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MLayer, ptr %73, i32 0, i32 3
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  store ptr %75, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.MLayer, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = call ptr @GetHandle(ptr noundef %78, i32 noundef 64, i32 noundef -561425674, ptr noundef @endTensorBatchNorm)
  store ptr %79, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.MHandle, ptr %80, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  store ptr %82, ptr %10, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MHandle, ptr %84, i32 0, i32 1
  %86 = load volatile i32, ptr %85, align 4, !tbaa !21
  %87 = icmp eq i32 %86, 0
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %83
  %92 = load i32, ptr %11, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %92, i32 noundef -1, ptr noundef @.str.1, i32 noundef 202, ptr noundef @__FUNCTION__.mTensorBatchNormBackward, ptr noundef @.str.16)
  br label %93

93:                                               ; preds = %91, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %98 = load i32, ptr @morn_network_save, align 4, !tbaa !9
  %99 = srem i32 %97, %98
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %96
  %102 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %113, label %104

104:                                              ; preds = %101, %96
  %105 = load float, ptr @morn_network_error, align 4, !tbaa !22
  %106 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !22
  %107 = fcmp ole float %105, %106
  br i1 %107, label %113, label %108

108:                                              ; preds = %104
  %109 = load float, ptr @morn_network_error, align 4, !tbaa !22
  %110 = load i32, ptr @morn_network_time_max, align 4, !tbaa !9
  %111 = sitofp i32 %110 to float
  %112 = fcmp oeq float %109, %111
  br i1 %112, label %113, label %133

113:                                              ; preds = %108, %104, %101
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  %114 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MLayer, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds [32 x i8], ptr %116, i64 0, i64 0
  %118 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %114, ptr noundef @.str.10, ptr noundef %117, ptr noundef @.str.11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !23
  store ptr %121, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !5
  %123 = getelementptr inbounds [64 x i8], ptr %12, i64 0, i64 0
  %124 = getelementptr inbounds i8, ptr %123, i64 0
  %125 = call i32 @m_Hash(ptr noundef %124, i32 noundef -1)
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.MTensor, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !25
  %129 = sext i32 %128 to i64
  %130 = mul i64 %129, 4
  %131 = trunc i64 %130 to i32
  %132 = call i32 @mMORNWrite(ptr noundef %122, i32 noundef %125, ptr noundef %13, i32 noundef 1, i32 noundef %131)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  br label %133

133:                                              ; preds = %113, %108
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %138 = load i32, ptr @morn_network_save, align 4, !tbaa !9
  %139 = srem i32 %137, %138
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %136
  %142 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %143 = icmp sgt i32 %142, 0
  br i1 %143, label %153, label %144

144:                                              ; preds = %141, %136
  %145 = load float, ptr @morn_network_error, align 4, !tbaa !22
  %146 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !22
  %147 = fcmp ole float %145, %146
  br i1 %147, label %153, label %148

148:                                              ; preds = %144
  %149 = load float, ptr @morn_network_error, align 4, !tbaa !22
  %150 = load i32, ptr @morn_network_time_max, align 4, !tbaa !9
  %151 = sitofp i32 %150 to float
  %152 = fcmp oeq float %149, %151
  br i1 %152, label %153, label %173

153:                                              ; preds = %148, %144, %141
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #6
  %154 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.MLayer, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds [32 x i8], ptr %156, i64 0, i64 0
  %158 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %154, ptr noundef @.str.10, ptr noundef %157, ptr noundef @.str.12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !27
  store ptr %161, ptr %15, align 8, !tbaa !5
  %162 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !5
  %163 = getelementptr inbounds [64 x i8], ptr %14, i64 0, i64 0
  %164 = getelementptr inbounds i8, ptr %163, i64 0
  %165 = call i32 @m_Hash(ptr noundef %164, i32 noundef -1)
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.MTensor, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 4, !tbaa !25
  %169 = sext i32 %168 to i64
  %170 = mul i64 %169, 4
  %171 = trunc i64 %170 to i32
  %172 = call i32 @mMORNWrite(ptr noundef %162, i32 noundef %165, ptr noundef %15, i32 noundef 1, i32 noundef %171)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #6
  br label %173

173:                                              ; preds = %153, %148
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.MTensor, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 8, !tbaa !28
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.MTensor, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 4, !tbaa !29
  %182 = mul nsw i32 %178, %181
  store i32 %182, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %213, %175
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.MTensor, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !25
  %188 = icmp slt i32 %184, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %216

190:                                              ; preds = %183
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %191, i32 0, i32 4
  %193 = load float, ptr %192, align 4, !tbaa !30
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %194, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !31
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds float, ptr %196, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !22
  %201 = fmul float %200, %193
  store float %201, ptr %199, align 4, !tbaa !22
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %202, i32 0, i32 4
  %204 = load float, ptr %203, align 4, !tbaa !30
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %205, i32 0, i32 3
  %207 = load ptr, ptr %206, align 8, !tbaa !32
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds float, ptr %207, i64 %209
  %211 = load float, ptr %210, align 4, !tbaa !22
  %212 = fmul float %211, %204
  store float %212, ptr %210, align 4, !tbaa !22
  br label %213

213:                                              ; preds = %190
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %17, align 4, !tbaa !9
  br label %183, !llvm.loop !33

216:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %321, %216
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.MTensor, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !35
  %222 = icmp slt i32 %218, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %217
  store i32 15, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %324

224:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %317, %224
  %226 = load i32, ptr %20, align 4, !tbaa !9
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.MTensor, ptr %227, i32 0, i32 1
  %229 = load i32, ptr %228, align 4, !tbaa !25
  %230 = icmp slt i32 %226, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %225
  store i32 18, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %320

232:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %313, %232
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = load i32, ptr %16, align 4, !tbaa !9
  %236 = icmp slt i32 %234, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %233
  store i32 21, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %316

238:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %239 = load i32, ptr %20, align 4, !tbaa !9
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = mul nsw i32 %239, %240
  %242 = load i32, ptr %21, align 4, !tbaa !9
  %243 = add nsw i32 %241, %242
  store i32 %243, ptr %22, align 4, !tbaa !9
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.MTensor, ptr %244, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !36
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds ptr, ptr %246, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i32, ptr %22, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds float, ptr %250, i64 %252
  %254 = load float, ptr %253, align 4, !tbaa !22
  %255 = fpext float %254 to double
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.MTensor, ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !36
  %259 = load i32, ptr %18, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds ptr, ptr %258, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = load i32, ptr %22, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds float, ptr %262, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !22
  %267 = fpext float %266 to double
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !37
  %271 = load i32, ptr %20, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds double, ptr %270, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !38
  %275 = fsub double %267, %274
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %276, i32 0, i32 5
  %278 = load ptr, ptr %277, align 8, !tbaa !40
  %279 = load i32, ptr %20, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds double, ptr %278, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !38
  %283 = fdiv double %275, %282
  %284 = load ptr, ptr %10, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %284, i32 0, i32 2
  %286 = load ptr, ptr %285, align 8, !tbaa !31
  %287 = load i32, ptr %20, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds float, ptr %286, i64 %288
  %290 = load float, ptr %289, align 4, !tbaa !22
  %291 = fpext float %290 to double
  %292 = call double @llvm.fmuladd.f64(double %255, double %283, double %291)
  %293 = fptrunc double %292 to float
  store float %293, ptr %289, align 4, !tbaa !22
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.MTensor, ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !36
  %297 = load i32, ptr %18, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds ptr, ptr %296, i64 %298
  %300 = load ptr, ptr %299, align 8, !tbaa !5
  %301 = load i32, ptr %22, align 4, !tbaa !9
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds float, ptr %300, i64 %302
  %304 = load float, ptr %303, align 4, !tbaa !22
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %305, i32 0, i32 3
  %307 = load ptr, ptr %306, align 8, !tbaa !32
  %308 = load i32, ptr %20, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds float, ptr %307, i64 %309
  %311 = load float, ptr %310, align 4, !tbaa !22
  %312 = fadd float %311, %304
  store float %312, ptr %310, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %313

313:                                              ; preds = %238
  %314 = load i32, ptr %21, align 4, !tbaa !9
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %21, align 4, !tbaa !9
  br label %233, !llvm.loop !41

316:                                              ; preds = %237
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %20, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %20, align 4, !tbaa !9
  br label %225, !llvm.loop !42

320:                                              ; preds = %231
  br label %321

321:                                              ; preds = %320
  %322 = load i32, ptr %18, align 4, !tbaa !9
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %18, align 4, !tbaa !9
  br label %217, !llvm.loop !43

324:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %415, %324
  %326 = load i32, ptr %23, align 4, !tbaa !9
  %327 = load ptr, ptr %6, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.MTensor, ptr %327, i32 0, i32 1
  %329 = load i32, ptr %328, align 4, !tbaa !25
  %330 = icmp slt i32 %326, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %325
  store i32 24, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %418

332:                                              ; preds = %325
  %333 = load ptr, ptr %10, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %333, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8, !tbaa !23
  %336 = load i32, ptr %23, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds float, ptr %335, i64 %337
  %339 = load float, ptr %338, align 4, !tbaa !22
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %340, i32 0, i32 3
  %342 = load float, ptr %341, align 8, !tbaa !44
  %343 = load ptr, ptr %5, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %343, i32 0, i32 2
  %345 = load float, ptr %344, align 4, !tbaa !45
  %346 = fneg float %342
  %347 = call float @llvm.fmuladd.f32(float %346, float %345, float 1.000000e+00)
  %348 = load ptr, ptr %10, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %348, i32 0, i32 2
  %350 = load ptr, ptr %349, align 8, !tbaa !31
  %351 = load i32, ptr %23, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds float, ptr %350, i64 %352
  %354 = load float, ptr %353, align 4, !tbaa !22
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %355, i32 0, i32 2
  %357 = load float, ptr %356, align 4, !tbaa !45
  %358 = fmul float %354, %357
  %359 = load ptr, ptr %6, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.MTensor, ptr %359, i32 0, i32 0
  %361 = load i32, ptr %360, align 8, !tbaa !35
  %362 = load i32, ptr %16, align 4, !tbaa !9
  %363 = mul nsw i32 %361, %362
  %364 = sitofp i32 %363 to float
  %365 = fdiv float %358, %364
  %366 = fneg float %365
  %367 = call float @llvm.fmuladd.f32(float %339, float %347, float %366)
  %368 = load ptr, ptr %10, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %368, i32 0, i32 0
  %370 = load ptr, ptr %369, align 8, !tbaa !23
  %371 = load i32, ptr %23, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds float, ptr %370, i64 %372
  store float %367, ptr %373, align 4, !tbaa !22
  %374 = load ptr, ptr %10, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %374, i32 0, i32 1
  %376 = load ptr, ptr %375, align 8, !tbaa !27
  %377 = load i32, ptr %23, align 4, !tbaa !9
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds float, ptr %376, i64 %378
  %380 = load float, ptr %379, align 4, !tbaa !22
  %381 = load ptr, ptr %5, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %381, i32 0, i32 3
  %383 = load float, ptr %382, align 8, !tbaa !44
  %384 = load ptr, ptr %5, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %384, i32 0, i32 2
  %386 = load float, ptr %385, align 4, !tbaa !45
  %387 = fneg float %383
  %388 = call float @llvm.fmuladd.f32(float %387, float %386, float 1.000000e+00)
  %389 = load ptr, ptr %10, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %389, i32 0, i32 3
  %391 = load ptr, ptr %390, align 8, !tbaa !32
  %392 = load i32, ptr %23, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds float, ptr %391, i64 %393
  %395 = load float, ptr %394, align 4, !tbaa !22
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %396, i32 0, i32 2
  %398 = load float, ptr %397, align 4, !tbaa !45
  %399 = fmul float %395, %398
  %400 = load ptr, ptr %6, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.MTensor, ptr %400, i32 0, i32 0
  %402 = load i32, ptr %401, align 8, !tbaa !35
  %403 = load i32, ptr %16, align 4, !tbaa !9
  %404 = mul nsw i32 %402, %403
  %405 = sitofp i32 %404 to float
  %406 = fdiv float %399, %405
  %407 = fneg float %406
  %408 = call float @llvm.fmuladd.f32(float %380, float %388, float %407)
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %409, i32 0, i32 1
  %411 = load ptr, ptr %410, align 8, !tbaa !27
  %412 = load i32, ptr %23, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds float, ptr %411, i64 %413
  store float %408, ptr %414, align 4, !tbaa !22
  br label %415

415:                                              ; preds = %332
  %416 = load i32, ptr %23, align 4, !tbaa !9
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %23, align 4, !tbaa !9
  br label %325, !llvm.loop !46

418:                                              ; preds = %331
  %419 = load ptr, ptr %5, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %419, i32 0, i32 1
  %421 = load i32, ptr %420, align 8, !tbaa !47
  %422 = icmp eq i32 %421, 0
  br i1 %422, label %423, label %424

423:                                              ; preds = %418
  store i32 1, ptr %19, align 4
  br label %574

424:                                              ; preds = %418
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %425

425:                                              ; preds = %566, %424
  %426 = load i32, ptr %24, align 4, !tbaa !9
  %427 = load ptr, ptr %6, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.MTensor, ptr %427, i32 0, i32 0
  %429 = load i32, ptr %428, align 8, !tbaa !35
  %430 = icmp slt i32 %426, %429
  br i1 %430, label %432, label %431

431:                                              ; preds = %425
  store i32 27, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %569

432:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %433

433:                                              ; preds = %562, %432
  %434 = load i32, ptr %25, align 4, !tbaa !9
  %435 = load ptr, ptr %6, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.MTensor, ptr %435, i32 0, i32 1
  %437 = load i32, ptr %436, align 4, !tbaa !25
  %438 = icmp slt i32 %434, %437
  br i1 %438, label %440, label %439

439:                                              ; preds = %433
  store i32 30, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %565

440:                                              ; preds = %433
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %441

441:                                              ; preds = %558, %440
  %442 = load i32, ptr %26, align 4, !tbaa !9
  %443 = load i32, ptr %16, align 4, !tbaa !9
  %444 = icmp slt i32 %442, %443
  br i1 %444, label %446, label %445

445:                                              ; preds = %441
  store i32 33, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %561

446:                                              ; preds = %441
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %447 = load i32, ptr %25, align 4, !tbaa !9
  %448 = load i32, ptr %16, align 4, !tbaa !9
  %449 = mul nsw i32 %447, %448
  %450 = load i32, ptr %26, align 4, !tbaa !9
  %451 = add nsw i32 %449, %450
  store i32 %451, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %452 = load ptr, ptr %6, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.MTensor, ptr %452, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !36
  %455 = load i32, ptr %24, align 4, !tbaa !9
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds ptr, ptr %454, i64 %456
  %458 = load ptr, ptr %457, align 8, !tbaa !5
  %459 = load i32, ptr %27, align 4, !tbaa !9
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds float, ptr %458, i64 %460
  %462 = load float, ptr %461, align 4, !tbaa !22
  %463 = fpext float %462 to double
  %464 = load ptr, ptr %10, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %464, i32 0, i32 4
  %466 = load ptr, ptr %465, align 8, !tbaa !37
  %467 = load i32, ptr %25, align 4, !tbaa !9
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds double, ptr %466, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !38
  %471 = fsub double %463, %470
  %472 = load ptr, ptr %10, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %472, i32 0, i32 5
  %474 = load ptr, ptr %473, align 8, !tbaa !40
  %475 = load i32, ptr %25, align 4, !tbaa !9
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds double, ptr %474, i64 %476
  %478 = load double, ptr %477, align 8, !tbaa !38
  %479 = fdiv double %471, %478
  %480 = fptrunc double %479 to float
  store float %480, ptr %28, align 4, !tbaa !22
  %481 = load ptr, ptr %8, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.MTensor, ptr %481, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !36
  %484 = load i32, ptr %24, align 4, !tbaa !9
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds ptr, ptr %483, i64 %485
  %487 = load ptr, ptr %486, align 8, !tbaa !5
  %488 = load i32, ptr %27, align 4, !tbaa !9
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds float, ptr %487, i64 %489
  %491 = load float, ptr %490, align 4, !tbaa !22
  %492 = load ptr, ptr %10, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %492, i32 0, i32 0
  %494 = load ptr, ptr %493, align 8, !tbaa !23
  %495 = load i32, ptr %25, align 4, !tbaa !9
  %496 = sext i32 %495 to i64
  %497 = getelementptr inbounds float, ptr %494, i64 %496
  %498 = load float, ptr %497, align 4, !tbaa !22
  %499 = fmul float %491, %498
  %500 = fpext float %499 to double
  %501 = load ptr, ptr %10, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.HandleTensorBatchNorm, ptr %501, i32 0, i32 5
  %503 = load ptr, ptr %502, align 8, !tbaa !40
  %504 = load i32, ptr %25, align 4, !tbaa !9
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds double, ptr %503, i64 %505
  %507 = load double, ptr %506, align 8, !tbaa !38
  %508 = fdiv double %500, %507
  %509 = load float, ptr %28, align 4, !tbaa !22
  %510 = load float, ptr %28, align 4, !tbaa !22
  %511 = fneg float %509
  %512 = call float @llvm.fmuladd.f32(float %511, float %510, float 1.000000e+00)
  %513 = load ptr, ptr %6, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.MTensor, ptr %513, i32 0, i32 0
  %515 = load i32, ptr %514, align 8, !tbaa !35
  %516 = load i32, ptr %16, align 4, !tbaa !9
  %517 = mul nsw i32 %515, %516
  %518 = sitofp i32 %517 to float
  %519 = fdiv float %512, %518
  %520 = fpext float %519 to double
  %521 = fadd double 1.000000e+00, %520
  %522 = fmul double %508, %521
  %523 = fptrunc double %522 to float
  store float %523, ptr %28, align 4, !tbaa !22
  %524 = load ptr, ptr %5, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %524, i32 0, i32 0
  %526 = load ptr, ptr %525, align 8, !tbaa !14
  %527 = getelementptr inbounds %struct.MLayer, ptr %526, i32 0, i32 5
  %528 = load i32, ptr %527, align 8, !tbaa !48
  %529 = icmp eq i32 %528, 0
  br i1 %529, label %530, label %532

530:                                              ; preds = %446
  %531 = load float, ptr %28, align 4, !tbaa !22
  br label %546

532:                                              ; preds = %446
  %533 = load ptr, ptr %7, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.MTensor, ptr %533, i32 0, i32 4
  %535 = load ptr, ptr %534, align 8, !tbaa !36
  %536 = load i32, ptr %24, align 4, !tbaa !9
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds ptr, ptr %535, i64 %537
  %539 = load ptr, ptr %538, align 8, !tbaa !5
  %540 = load i32, ptr %27, align 4, !tbaa !9
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds float, ptr %539, i64 %541
  %543 = load float, ptr %542, align 4, !tbaa !22
  %544 = load float, ptr %28, align 4, !tbaa !22
  %545 = fadd float %543, %544
  br label %546

546:                                              ; preds = %532, %530
  %547 = phi float [ %531, %530 ], [ %545, %532 ]
  %548 = load ptr, ptr %7, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.MTensor, ptr %548, i32 0, i32 4
  %550 = load ptr, ptr %549, align 8, !tbaa !36
  %551 = load i32, ptr %24, align 4, !tbaa !9
  %552 = sext i32 %551 to i64
  %553 = getelementptr inbounds ptr, ptr %550, i64 %552
  %554 = load ptr, ptr %553, align 8, !tbaa !5
  %555 = load i32, ptr %27, align 4, !tbaa !9
  %556 = sext i32 %555 to i64
  %557 = getelementptr inbounds float, ptr %554, i64 %556
  store float %547, ptr %557, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %558

558:                                              ; preds = %546
  %559 = load i32, ptr %26, align 4, !tbaa !9
  %560 = add nsw i32 %559, 1
  store i32 %560, ptr %26, align 4, !tbaa !9
  br label %441, !llvm.loop !49

561:                                              ; preds = %445
  br label %562

562:                                              ; preds = %561
  %563 = load i32, ptr %25, align 4, !tbaa !9
  %564 = add nsw i32 %563, 1
  store i32 %564, ptr %25, align 4, !tbaa !9
  br label %433, !llvm.loop !50

565:                                              ; preds = %439
  br label %566

566:                                              ; preds = %565
  %567 = load i32, ptr %24, align 4, !tbaa !9
  %568 = add nsw i32 %567, 1
  store i32 %568, ptr %24, align 4, !tbaa !9
  br label %425, !llvm.loop !51

569:                                              ; preds = %431
  %570 = load ptr, ptr %5, align 8, !tbaa !5
  %571 = getelementptr inbounds %struct.TensorBatchNormPara, ptr %570, i32 0, i32 0
  %572 = load ptr, ptr %571, align 8, !tbaa !14
  %573 = getelementptr inbounds %struct.MLayer, ptr %572, i32 0, i32 5
  store i32 1, ptr %573, align 8, !tbaa !48
  store i32 0, ptr %19, align 4
  br label %574

574:                                              ; preds = %569, %423
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %575 = load i32, ptr %19, align 4
  switch i32 %575, label %577 [
    i32 0, label %576
    i32 1, label %576
  ]

576:                                              ; preds = %574, %574
  ret void

577:                                              ; preds = %574
  unreachable
}

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

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

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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!12, !6, i64 48}
!19 = !{!20, !6, i64 16}
!20 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!21 = !{!20, !10, i64 4}
!22 = !{!16, !16, i64 0}
!23 = !{!24, !6, i64 0}
!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 = !{!26, !10, i64 4}
!26 = !{!"MTensor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24}
!27 = !{!24, !6, i64 8}
!28 = !{!26, !10, i64 8}
!29 = !{!26, !10, i64 12}
!30 = !{!15, !16, i64 20}
!31 = !{!24, !6, i64 16}
!32 = !{!24, !6, i64 24}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!26, !10, i64 0}
!36 = !{!26, !6, i64 16}
!37 = !{!24, !6, i64 32}
!38 = !{!39, !39, i64 0}
!39 = !{!"double", !7, i64 0}
!40 = !{!24, !6, i64 40}
!41 = distinct !{!41, !34}
!42 = distinct !{!42, !34}
!43 = distinct !{!43, !34}
!44 = !{!15, !16, i64 16}
!45 = !{!15, !16, i64 12}
!46 = distinct !{!46, !34}
!47 = !{!15, !10, i64 8}
!48 = !{!12, !10, i64 64}
!49 = distinct !{!49, !34}
!50 = distinct !{!50, !34}
!51 = distinct !{!51, !34}


; 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_parafile = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 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__.mTensorBatchNormBackward = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@morn_network_time = external local_unnamed_addr global i32, align 4
@morn_network_save = external local_unnamed_addr global i32, align 4
@morn_network_error = external local_unnamed_addr global float, align 4
@morn_network_error_thresh = external local_unnamed_addr global float, align 4
@morn_network_time_max = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress 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, ...) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare i32 @m_Hash(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @mTensorBatchNormBackward(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca [64 x i8], align 16
  %3 = alloca ptr, align 8
  %4 = alloca [64 x i8], align 16
  %5 = alloca ptr, align 8
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %11 [
    i64 -1, label %6
    i64 0, label %6
  ]

6:                                                ; preds = %1, %1
  %7 = icmp eq ptr %0, null
  %8 = icmp eq ptr %0, inttoptr (i64 -1 to ptr)
  %9 = or i1 %7, %8
  %10 = zext i1 %9 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %10, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 193, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormBackward, ptr noundef nonnull @.str.13) #7
  br label %11

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

17:                                               ; preds = %11
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %16, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 194, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormBackward, ptr noundef nonnull @.str.15) #7
  br label %18

18:                                               ; preds = %17, %11
  %19 = getelementptr inbounds i8, ptr %0, i64 56
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %22 = getelementptr inbounds i8, ptr %21, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %21, i64 48
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %0, i64 48
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = tail call ptr @GetHandle(ptr noundef %29, i32 noundef 64, i32 noundef -561425674, ptr noundef nonnull @endTensorBatchNorm) #7
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %30, i64 4
  %34 = load volatile i32, ptr %33, align 4, !tbaa !19
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %18
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 202, ptr noundef nonnull @__FUNCTION__.mTensorBatchNormBackward, ptr noundef nonnull @.str.16) #7
  br label %37

37:                                               ; preds = %36, %18
  %38 = load i32, ptr @morn_network_time, align 4
  %39 = load i32, ptr @morn_network_save, align 4, !tbaa !20
  %40 = srem i32 %38, %39
  %41 = icmp eq i32 %40, 0
  %42 = icmp sgt i32 %38, 0
  %or.cond = and i1 %42, %41
  br i1 %or.cond, label %51, label %43

43:                                               ; preds = %37
  %44 = load float, ptr @morn_network_error, align 4, !tbaa !21
  %45 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !21
  %46 = fcmp ugt float %44, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = load i32, ptr @morn_network_time_max, align 4, !tbaa !20
  %49 = sitofp i32 %48 to float
  %50 = fcmp oeq float %44, %49
  br i1 %50, label %51, label %60

51:                                               ; preds = %37, %47, %43
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  %52 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull %0, ptr noundef nonnull @.str.11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %53 = load ptr, ptr %32, align 8, !tbaa !22
  store ptr %53, ptr %3, align 8, !tbaa !24
  %54 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !24
  %55 = call i32 @m_Hash(ptr noundef nonnull %2, i32 noundef -1) #7
  %56 = getelementptr inbounds i8, ptr %23, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !25
  %58 = shl i32 %57, 2
  %59 = call i32 @mMORNWrite(ptr noundef %54, i32 noundef %55, ptr noundef nonnull %3, i32 noundef 1, i32 noundef %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  %.pre = load i32, ptr @morn_network_time, align 4
  %.pre236 = load i32, ptr @morn_network_save, align 4, !tbaa !20
  %.pre237 = srem i32 %.pre, %.pre236
  br label %60

60:                                               ; preds = %47, %51
  %.pre-phi = phi i32 [ %40, %47 ], [ %.pre237, %51 ]
  %61 = phi i32 [ %38, %47 ], [ %.pre, %51 ]
  %62 = icmp eq i32 %.pre-phi, 0
  %63 = icmp sgt i32 %61, 0
  %or.cond3 = and i1 %63, %62
  br i1 %or.cond3, label %72, label %64

64:                                               ; preds = %60
  %65 = load float, ptr @morn_network_error, align 4, !tbaa !21
  %66 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !21
  %67 = fcmp ugt float %65, %66
  br i1 %67, label %68, label %72

68:                                               ; preds = %64
  %69 = load i32, ptr @morn_network_time_max, align 4, !tbaa !20
  %70 = sitofp i32 %69 to float
  %71 = fcmp oeq float %65, %70
  br i1 %71, label %72, label %82

72:                                               ; preds = %60, %68, %64
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  %73 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull %0, ptr noundef nonnull @.str.12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %74 = getelementptr inbounds i8, ptr %32, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  store ptr %75, ptr %5, align 8, !tbaa !24
  %76 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !24
  %77 = call i32 @m_Hash(ptr noundef nonnull %4, i32 noundef -1) #7
  %78 = getelementptr inbounds i8, ptr %23, i64 4
  %79 = load i32, ptr %78, align 4, !tbaa !25
  %80 = shl i32 %79, 2
  %81 = call i32 @mMORNWrite(ptr noundef %76, i32 noundef %77, ptr noundef nonnull %5, i32 noundef 1, i32 noundef %80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  br label %82

82:                                               ; preds = %72, %68
  %83 = getelementptr inbounds i8, ptr %23, i64 8
  %84 = load i32, ptr %83, align 8, !tbaa !28
  %85 = getelementptr inbounds i8, ptr %23, i64 12
  %86 = load i32, ptr %85, align 4, !tbaa !29
  %87 = mul i32 %86, %84
  %88 = getelementptr inbounds i8, ptr %23, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !25
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %.lr.ph, label %.preheader146.thread

.lr.ph:                                           ; preds = %82
  %91 = getelementptr i8, ptr %20, i64 20
  %92 = getelementptr inbounds i8, ptr %32, i64 16
  %93 = load ptr, ptr %92, align 8, !tbaa !30
  %94 = getelementptr inbounds i8, ptr %32, i64 24
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %wide.trip.count = zext nneg i32 %89 to i64
  %min.iters.check = icmp ult i32 %89, 12
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %96 = load float, ptr %91, align 4, !tbaa !32
  %97 = getelementptr inbounds float, ptr %93, i64 %indvars.iv.ph
  %98 = load float, ptr %97, align 4, !tbaa !21
  %99 = fmul float %96, %98
  store float %99, ptr %97, align 4, !tbaa !21
  %100 = load float, ptr %91, align 4, !tbaa !32
  %101 = getelementptr inbounds float, ptr %95, i64 %indvars.iv.ph
  %102 = load float, ptr %101, align 4, !tbaa !21
  %103 = fmul float %100, %102
  store float %103, ptr %101, align 4, !tbaa !21
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %104 = add nsw i64 %wide.trip.count, -1
  %105 = icmp eq i64 %indvars.iv.ph, %104
  br i1 %105, label %.preheader146, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %106 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %93, i64 %106
  %scevgep243 = getelementptr i8, ptr %95, i64 %106
  %scevgep244 = getelementptr i8, ptr %20, i64 24
  %bound0 = icmp ult ptr %93, %scevgep243
  %bound1 = icmp ult ptr %95, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0245 = icmp ult ptr %93, %scevgep244
  %bound1246 = icmp ult ptr %91, %scevgep
  %found.conflict247 = and i1 %bound0245, %bound1246
  %conflict.rdx = or i1 %found.conflict, %found.conflict247
  %bound0248 = icmp ult ptr %95, %scevgep244
  %bound1249 = icmp ult ptr %91, %scevgep243
  %found.conflict250 = and i1 %bound0248, %bound1249
  %conflict.rdx251 = or i1 %conflict.rdx, %found.conflict250
  br i1 %conflict.rdx251, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %107 = load float, ptr %91, align 4, !tbaa !32, !alias.scope !33
  %broadcast.splatinsert = insertelement <4 x float> poison, float %107, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %108 = load float, ptr %91, align 4, !tbaa !32, !alias.scope !33
  %broadcast.splatinsert253 = insertelement <4 x float> poison, float %108, i64 0
  %broadcast.splat254 = shufflevector <4 x float> %broadcast.splatinsert253, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %109 = getelementptr inbounds float, ptr %93, i64 %index
  %wide.load = load <4 x float>, ptr %109, align 4, !tbaa !21, !alias.scope !36, !noalias !38
  %110 = fmul <4 x float> %broadcast.splat, %wide.load
  store <4 x float> %110, ptr %109, align 4, !tbaa !21, !alias.scope !36, !noalias !38
  %111 = getelementptr inbounds float, ptr %95, i64 %index
  %wide.load252 = load <4 x float>, ptr %111, align 4, !tbaa !21, !alias.scope !40, !noalias !33
  %112 = fmul <4 x float> %broadcast.splat254, %wide.load252
  store <4 x float> %112, ptr %111, align 4, !tbaa !21, !alias.scope !40, !noalias !33
  %index.next = add nuw i64 %index, 4
  %113 = icmp eq i64 %index.next, %n.vec
  br i1 %113, label %middle.block, label %vector.body, !llvm.loop !41

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader146, label %scalar.ph.preheader

.preheader146:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %114 = load i32, ptr %23, align 8, !tbaa !45
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %.preheader145.lr.ph, label %.preheader143

.preheader146.thread:                             ; preds = %82
  %116 = load i32, ptr %23, align 8, !tbaa !45
  %117 = icmp sgt i32 %116, 0
  br label %._crit_edge

.preheader145.lr.ph:                              ; preds = %.preheader146
  %118 = getelementptr inbounds i8, ptr %27, i64 16
  %119 = getelementptr inbounds i8, ptr %23, i64 16
  %120 = getelementptr inbounds i8, ptr %32, i64 32
  %121 = getelementptr inbounds i8, ptr %32, i64 40
  %122 = getelementptr inbounds i8, ptr %32, i64 16
  %123 = getelementptr inbounds i8, ptr %32, i64 24
  br i1 %90, label %.preheader145.lr.ph.split.us, label %._crit_edge

.preheader145.lr.ph.split.us:                     ; preds = %.preheader145.lr.ph
  %124 = icmp sgt i32 %87, 0
  br i1 %124, label %.preheader145.lr.ph.split.us.split.us, label %.lr.ph161

.preheader145.lr.ph.split.us.split.us:            ; preds = %.preheader145.lr.ph.split.us
  %125 = load ptr, ptr %118, align 8, !tbaa !46
  %126 = load ptr, ptr %119, align 8, !tbaa !46
  %127 = load ptr, ptr %120, align 8, !tbaa !47
  %128 = load ptr, ptr %121, align 8, !tbaa !48
  %129 = load ptr, ptr %122, align 8, !tbaa !30
  %130 = load ptr, ptr %123, align 8, !tbaa !31
  %131 = zext nneg i32 %87 to i64
  %wide.trip.count199 = zext nneg i32 %114 to i64
  %wide.trip.count194 = zext nneg i32 %89 to i64
  br label %.preheader145.us.us

.preheader145.us.us:                              ; preds = %._crit_edge152.split.us.us.us, %.preheader145.lr.ph.split.us.split.us
  %indvars.iv196 = phi i64 [ %indvars.iv.next197, %._crit_edge152.split.us.us.us ], [ 0, %.preheader145.lr.ph.split.us.split.us ]
  %132 = getelementptr inbounds ptr, ptr %125, i64 %indvars.iv196
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv196
  %135 = load ptr, ptr %134, align 8, !tbaa !24
  br label %.preheader144.us.us.us

.preheader144.us.us.us:                           ; preds = %._crit_edge.us.us.us, %.preheader145.us.us
  %indvars.iv191 = phi i64 [ %indvars.iv.next192, %._crit_edge.us.us.us ], [ 0, %.preheader145.us.us ]
  %136 = mul nuw nsw i64 %indvars.iv191, %131
  %137 = getelementptr inbounds double, ptr %127, i64 %indvars.iv191
  %138 = load double, ptr %137, align 8, !tbaa !49
  %139 = getelementptr inbounds double, ptr %128, i64 %indvars.iv191
  %140 = load double, ptr %139, align 8, !tbaa !49
  %141 = getelementptr inbounds float, ptr %129, i64 %indvars.iv191
  %142 = getelementptr inbounds float, ptr %130, i64 %indvars.iv191
  br label %143

143:                                              ; preds = %143, %.preheader144.us.us.us
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %143 ], [ 0, %.preheader144.us.us.us ]
  %144 = add nuw nsw i64 %indvars.iv186, %136
  %145 = getelementptr inbounds float, ptr %133, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !21
  %147 = fpext float %146 to double
  %148 = getelementptr inbounds float, ptr %135, i64 %144
  %149 = load float, ptr %148, align 4, !tbaa !21
  %150 = fpext float %149 to double
  %151 = fsub double %150, %138
  %152 = fdiv double %151, %140
  %153 = load float, ptr %141, align 4, !tbaa !21
  %154 = fpext float %153 to double
  %155 = call double @llvm.fmuladd.f64(double %147, double %152, double %154)
  %156 = fptrunc double %155 to float
  store float %156, ptr %141, align 4, !tbaa !21
  %157 = load float, ptr %145, align 4, !tbaa !21
  %158 = load float, ptr %142, align 4, !tbaa !21
  %159 = fadd float %157, %158
  store float %159, ptr %142, align 4, !tbaa !21
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next187, %131
  br i1 %exitcond190.not, label %._crit_edge.us.us.us, label %143, !llvm.loop !51

._crit_edge.us.us.us:                             ; preds = %143
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %._crit_edge152.split.us.us.us, label %.preheader144.us.us.us, !llvm.loop !52

._crit_edge152.split.us.us.us:                    ; preds = %._crit_edge.us.us.us
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count199
  br i1 %exitcond200.not, label %.preheader143, label %.preheader145.us.us, !llvm.loop !53

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %160 = load float, ptr %91, align 4, !tbaa !32
  %161 = getelementptr inbounds float, ptr %93, i64 %indvars.iv
  %162 = load float, ptr %161, align 4, !tbaa !21
  %163 = fmul float %160, %162
  store float %163, ptr %161, align 4, !tbaa !21
  %164 = load float, ptr %91, align 4, !tbaa !32
  %165 = getelementptr inbounds float, ptr %95, i64 %indvars.iv
  %166 = load float, ptr %165, align 4, !tbaa !21
  %167 = fmul float %164, %166
  store float %167, ptr %165, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %168 = load float, ptr %91, align 4, !tbaa !32
  %169 = getelementptr inbounds float, ptr %93, i64 %indvars.iv.next
  %170 = load float, ptr %169, align 4, !tbaa !21
  %171 = fmul float %168, %170
  store float %171, ptr %169, align 4, !tbaa !21
  %172 = load float, ptr %91, align 4, !tbaa !32
  %173 = getelementptr inbounds float, ptr %95, i64 %indvars.iv.next
  %174 = load float, ptr %173, align 4, !tbaa !21
  %175 = fmul float %172, %174
  store float %175, ptr %173, align 4, !tbaa !21
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.preheader146, label %scalar.ph, !llvm.loop !54

.preheader143:                                    ; preds = %._crit_edge152.split.us.us.us, %.preheader146
  br i1 %90, label %.lr.ph161, label %._crit_edge

.lr.ph161:                                        ; preds = %.preheader145.lr.ph.split.us, %.preheader143
  %176 = phi i1 [ %115, %.preheader143 ], [ true, %.preheader145.lr.ph.split.us ]
  %177 = load ptr, ptr %32, align 8, !tbaa !22
  %178 = getelementptr inbounds i8, ptr %20, i64 16
  %179 = getelementptr inbounds i8, ptr %20, i64 12
  %180 = getelementptr inbounds i8, ptr %32, i64 16
  %181 = load ptr, ptr %180, align 8, !tbaa !30
  %182 = mul nsw i32 %114, %87
  %183 = sitofp i32 %182 to float
  %184 = getelementptr inbounds i8, ptr %32, i64 8
  %185 = load ptr, ptr %184, align 8, !tbaa !27
  %186 = getelementptr inbounds i8, ptr %32, i64 24
  %187 = load ptr, ptr %186, align 8, !tbaa !31
  %wide.trip.count204 = zext nneg i32 %89 to i64
  %min.iters.check289 = icmp ult i32 %89, 4
  br i1 %min.iters.check289, label %scalar.ph288.preheader, label %vector.memcheck255

scalar.ph288.preheader:                           ; preds = %middle.block287, %vector.memcheck255, %.lr.ph161
  %indvars.iv201.ph = phi i64 [ 0, %vector.memcheck255 ], [ 0, %.lr.ph161 ], [ %n.vec292, %middle.block287 ]
  br label %scalar.ph288

vector.memcheck255:                               ; preds = %.lr.ph161
  %188 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep256 = getelementptr i8, ptr %177, i64 %188
  %scevgep257 = getelementptr i8, ptr %185, i64 %188
  %scevgep258 = getelementptr i8, ptr %181, i64 %188
  %scevgep259 = getelementptr i8, ptr %187, i64 %188
  %bound0260 = icmp ult ptr %177, %scevgep257
  %bound1261 = icmp ult ptr %185, %scevgep256
  %found.conflict262 = and i1 %bound0260, %bound1261
  %bound0263 = icmp ult ptr %177, %91
  %bound1264 = icmp ult ptr %179, %scevgep256
  %found.conflict265 = and i1 %bound0263, %bound1264
  %conflict.rdx266 = or i1 %found.conflict262, %found.conflict265
  %bound0267 = icmp ult ptr %177, %scevgep258
  %bound1268 = icmp ult ptr %181, %scevgep256
  %found.conflict269 = and i1 %bound0267, %bound1268
  %conflict.rdx270 = or i1 %conflict.rdx266, %found.conflict269
  %bound0271 = icmp ult ptr %177, %scevgep259
  %bound1272 = icmp ult ptr %187, %scevgep256
  %found.conflict273 = and i1 %bound0271, %bound1272
  %conflict.rdx274 = or i1 %conflict.rdx270, %found.conflict273
  %bound0275 = icmp ult ptr %185, %91
  %bound1276 = icmp ult ptr %179, %scevgep257
  %found.conflict277 = and i1 %bound0275, %bound1276
  %conflict.rdx278 = or i1 %conflict.rdx274, %found.conflict277
  %bound0279 = icmp ult ptr %185, %scevgep258
  %bound1280 = icmp ult ptr %181, %scevgep257
  %found.conflict281 = and i1 %bound0279, %bound1280
  %conflict.rdx282 = or i1 %conflict.rdx278, %found.conflict281
  %bound0283 = icmp ult ptr %185, %scevgep259
  %bound1284 = icmp ult ptr %187, %scevgep257
  %found.conflict285 = and i1 %bound0283, %bound1284
  %conflict.rdx286 = or i1 %conflict.rdx282, %found.conflict285
  br i1 %conflict.rdx286, label %scalar.ph288.preheader, label %vector.ph290

vector.ph290:                                     ; preds = %vector.memcheck255
  %n.vec292 = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert302 = insertelement <4 x float> poison, float %183, i64 0
  %broadcast.splat303 = shufflevector <4 x float> %broadcast.splatinsert302, <4 x float> poison, <4 x i32> zeroinitializer
  %189 = load float, ptr %178, align 8, !tbaa !55, !alias.scope !56
  %broadcast.splatinsert297 = insertelement <4 x float> poison, float %189, i64 0
  %broadcast.splat298 = shufflevector <4 x float> %broadcast.splatinsert297, <4 x float> poison, <4 x i32> zeroinitializer
  %190 = load float, ptr %179, align 4, !tbaa !59, !alias.scope !56
  %broadcast.splatinsert299 = insertelement <4 x float> poison, float %190, i64 0
  %broadcast.splat300 = shufflevector <4 x float> %broadcast.splatinsert299, <4 x float> poison, <4 x i32> zeroinitializer
  %191 = fneg <4 x float> %broadcast.splat298
  %192 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %191, <4 x float> %broadcast.splat300, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>)
  %193 = load float, ptr %178, align 8, !tbaa !55, !alias.scope !56
  %broadcast.splatinsert305 = insertelement <4 x float> poison, float %193, i64 0
  %broadcast.splat306 = shufflevector <4 x float> %broadcast.splatinsert305, <4 x float> poison, <4 x i32> zeroinitializer
  %194 = load float, ptr %179, align 4, !tbaa !59, !alias.scope !56
  %broadcast.splatinsert307 = insertelement <4 x float> poison, float %194, i64 0
  %broadcast.splat308 = shufflevector <4 x float> %broadcast.splatinsert307, <4 x float> poison, <4 x i32> zeroinitializer
  %195 = fneg <4 x float> %broadcast.splat306
  %196 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %195, <4 x float> %broadcast.splat308, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>)
  br label %vector.body294

vector.body294:                                   ; preds = %vector.body294, %vector.ph290
  %index295 = phi i64 [ 0, %vector.ph290 ], [ %index.next310, %vector.body294 ]
  %197 = getelementptr inbounds float, ptr %177, i64 %index295
  %wide.load296 = load <4 x float>, ptr %197, align 4, !tbaa !21, !alias.scope !60, !noalias !62
  %198 = getelementptr inbounds float, ptr %181, i64 %index295
  %wide.load301 = load <4 x float>, ptr %198, align 4, !tbaa !21, !alias.scope !66
  %199 = fneg <4 x float> %wide.load301
  %200 = fmul <4 x float> %broadcast.splat300, %199
  %201 = fdiv <4 x float> %200, %broadcast.splat303
  %202 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load296, <4 x float> %192, <4 x float> %201)
  store <4 x float> %202, ptr %197, align 4, !tbaa !21, !alias.scope !60, !noalias !62
  %203 = getelementptr inbounds float, ptr %185, i64 %index295
  %wide.load304 = load <4 x float>, ptr %203, align 4, !tbaa !21, !alias.scope !67, !noalias !68
  %204 = getelementptr inbounds float, ptr %187, i64 %index295
  %wide.load309 = load <4 x float>, ptr %204, align 4, !tbaa !21, !alias.scope !69
  %205 = fneg <4 x float> %wide.load309
  %206 = fmul <4 x float> %broadcast.splat308, %205
  %207 = fdiv <4 x float> %206, %broadcast.splat303
  %208 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load304, <4 x float> %196, <4 x float> %207)
  store <4 x float> %208, ptr %203, align 4, !tbaa !21, !alias.scope !67, !noalias !68
  %index.next310 = add nuw i64 %index295, 4
  %209 = icmp eq i64 %index.next310, %n.vec292
  br i1 %209, label %middle.block287, label %vector.body294, !llvm.loop !70

middle.block287:                                  ; preds = %vector.body294
  %cmp.n311 = icmp eq i64 %n.vec292, %wide.trip.count
  br i1 %cmp.n311, label %._crit_edge, label %scalar.ph288.preheader

._crit_edge:                                      ; preds = %scalar.ph288, %middle.block287, %.preheader146.thread, %.preheader145.lr.ph, %.preheader143
  %210 = phi i32 [ %114, %.preheader143 ], [ %114, %.preheader145.lr.ph ], [ %116, %.preheader146.thread ], [ %114, %middle.block287 ], [ %114, %scalar.ph288 ]
  %211 = phi i1 [ %115, %.preheader143 ], [ true, %.preheader145.lr.ph ], [ %117, %.preheader146.thread ], [ %176, %middle.block287 ], [ %176, %scalar.ph288 ]
  %212 = getelementptr inbounds i8, ptr %20, i64 8
  %213 = load i32, ptr %212, align 8, !tbaa !71
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %372, label %.preheader142

.preheader142:                                    ; preds = %._crit_edge
  br i1 %211, label %.preheader141.lr.ph, label %._crit_edge171

.preheader141.lr.ph:                              ; preds = %.preheader142
  %215 = mul nsw i32 %210, %87
  %216 = sitofp i32 %215 to float
  %217 = icmp sgt i32 %87, 0
  %or.cond241 = select i1 %90, i1 %217, i1 false
  br i1 %or.cond241, label %.preheader141.lr.ph.split.us.split.us, label %._crit_edge171

.preheader141.lr.ph.split.us.split.us:            ; preds = %.preheader141.lr.ph
  %218 = getelementptr inbounds i8, ptr %25, i64 16
  %219 = getelementptr inbounds i8, ptr %27, i64 16
  %220 = getelementptr inbounds i8, ptr %32, i64 40
  %221 = getelementptr inbounds i8, ptr %32, i64 32
  %222 = getelementptr inbounds i8, ptr %23, i64 16
  %223 = load ptr, ptr %222, align 8, !tbaa !46
  %224 = load ptr, ptr %221, align 8, !tbaa !47
  %225 = load ptr, ptr %220, align 8, !tbaa !48
  %226 = load ptr, ptr %219, align 8, !tbaa !46
  %227 = load ptr, ptr %32, align 8, !tbaa !22
  %228 = load ptr, ptr %20, align 8, !tbaa !12
  %229 = getelementptr inbounds i8, ptr %228, i64 64
  %230 = load i32, ptr %229, align 8, !tbaa !72
  %231 = icmp eq i32 %230, 0
  %232 = load ptr, ptr %218, align 8, !tbaa !46
  %233 = zext nneg i32 %87 to i64
  %wide.trip.count234 = zext nneg i32 %210 to i64
  %wide.trip.count229 = zext nneg i32 %89 to i64
  %234 = mul nuw nsw i64 %wide.trip.count229, %233
  %235 = shl nuw i64 %234, 2
  %236 = shl nuw nsw i64 %wide.trip.count229, 2
  %scevgep354 = getelementptr i8, ptr %227, i64 %236
  br i1 %231, label %.preheader141.us.us.us.preheader, label %.preheader141.us.us.preheader

.preheader141.us.us.preheader:                    ; preds = %.preheader141.lr.ph.split.us.split.us
  %min.iters.check330 = icmp ult i32 %87, 4
  %n.vec333 = and i64 %233, 2147483644
  %broadcast.splatinsert345 = insertelement <4 x float> poison, float %216, i64 0
  %broadcast.splat346 = shufflevector <4 x float> %broadcast.splatinsert345, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n349 = icmp eq i64 %n.vec333, %233
  br label %.preheader141.us.us

.preheader141.us.us.us.preheader:                 ; preds = %.preheader141.lr.ph.split.us.split.us
  %min.iters.check368 = icmp ult i32 %87, 4
  %n.vec371 = and i64 %233, 2147483644
  %broadcast.splatinsert383 = insertelement <4 x float> poison, float %216, i64 0
  %broadcast.splat384 = shufflevector <4 x float> %broadcast.splatinsert383, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n386 = icmp eq i64 %n.vec371, %233
  br label %.preheader141.us.us.us

.preheader141.us.us.us:                           ; preds = %.preheader141.us.us.us.preheader, %._crit_edge166.split.us.split.us.us.us.us
  %indvars.iv231 = phi i64 [ %indvars.iv.next232, %._crit_edge166.split.us.split.us.us.us.us ], [ 0, %.preheader141.us.us.us.preheader ]
  %237 = getelementptr inbounds ptr, ptr %223, i64 %indvars.iv231
  %238 = load ptr, ptr %237, align 8, !tbaa !24
  %239 = getelementptr inbounds ptr, ptr %226, i64 %indvars.iv231
  %240 = load ptr, ptr %239, align 8, !tbaa !24
  %241 = getelementptr inbounds ptr, ptr %232, i64 %indvars.iv231
  %242 = load ptr, ptr %241, align 8, !tbaa !24
  %scevgep351 = getelementptr i8, ptr %242, i64 %235
  %scevgep352 = getelementptr i8, ptr %238, i64 %235
  %scevgep353 = getelementptr i8, ptr %240, i64 %235
  %bound0355 = icmp ult ptr %242, %scevgep352
  %bound1356 = icmp ult ptr %238, %scevgep351
  %found.conflict357 = and i1 %bound0355, %bound1356
  %bound0358 = icmp ult ptr %242, %scevgep353
  %bound1359 = icmp ult ptr %240, %scevgep351
  %found.conflict360 = and i1 %bound0358, %bound1359
  %conflict.rdx361 = or i1 %found.conflict357, %found.conflict360
  %bound0362 = icmp ult ptr %242, %scevgep354
  %bound1363 = icmp ult ptr %227, %scevgep351
  %found.conflict364 = and i1 %bound0362, %bound1363
  %conflict.rdx365 = or i1 %conflict.rdx361, %found.conflict364
  br label %.preheader.us.us.us.us.us

.preheader.us.us.us.us.us:                        ; preds = %._crit_edge164.split.us.us.us.us.us.us, %.preheader141.us.us.us
  %indvars.iv226 = phi i64 [ %indvars.iv.next227, %._crit_edge164.split.us.us.us.us.us.us ], [ 0, %.preheader141.us.us.us ]
  %243 = mul nuw nsw i64 %indvars.iv226, %233
  %244 = getelementptr inbounds double, ptr %224, i64 %indvars.iv226
  %245 = load double, ptr %244, align 8, !tbaa !49
  %246 = getelementptr inbounds double, ptr %225, i64 %indvars.iv226
  %247 = load double, ptr %246, align 8, !tbaa !49
  %248 = getelementptr inbounds float, ptr %227, i64 %indvars.iv226
  %brmerge = select i1 %min.iters.check368, i1 true, i1 %conflict.rdx365
  br i1 %brmerge, label %scalar.ph367.preheader, label %vector.ph369

vector.ph369:                                     ; preds = %.preheader.us.us.us.us.us
  %broadcast.splatinsert376 = insertelement <4 x double> poison, double %245, i64 0
  %broadcast.splat377 = shufflevector <4 x double> %broadcast.splatinsert376, <4 x double> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert378 = insertelement <4 x double> poison, double %247, i64 0
  %broadcast.splat379 = shufflevector <4 x double> %broadcast.splatinsert378, <4 x double> poison, <4 x i32> zeroinitializer
  %249 = load float, ptr %248, align 4, !tbaa !21, !alias.scope !73
  %broadcast.splatinsert381 = insertelement <4 x float> poison, float %249, i64 0
  %broadcast.splat382 = shufflevector <4 x float> %broadcast.splatinsert381, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body373

vector.body373:                                   ; preds = %vector.body373, %vector.ph369
  %index374 = phi i64 [ 0, %vector.ph369 ], [ %index.next385, %vector.body373 ]
  %250 = add nuw nsw i64 %index374, %243
  %251 = getelementptr inbounds float, ptr %238, i64 %250
  %wide.load375 = load <4 x float>, ptr %251, align 4, !tbaa !21, !alias.scope !76
  %252 = fpext <4 x float> %wide.load375 to <4 x double>
  %253 = fsub <4 x double> %252, %broadcast.splat377
  %254 = fdiv <4 x double> %253, %broadcast.splat379
  %255 = fptrunc <4 x double> %254 to <4 x float>
  %256 = getelementptr inbounds float, ptr %240, i64 %250
  %wide.load380 = load <4 x float>, ptr %256, align 4, !tbaa !21, !alias.scope !78
  %257 = fmul <4 x float> %wide.load380, %broadcast.splat382
  %258 = fpext <4 x float> %257 to <4 x double>
  %259 = fdiv <4 x double> %258, %broadcast.splat379
  %260 = fneg <4 x float> %255
  %261 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %260, <4 x float> %255, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>)
  %262 = fdiv <4 x float> %261, %broadcast.splat384
  %263 = fpext <4 x float> %262 to <4 x double>
  %264 = fadd <4 x double> %263, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %265 = fmul <4 x double> %264, %259
  %266 = fptrunc <4 x double> %265 to <4 x float>
  %267 = getelementptr inbounds float, ptr %242, i64 %250
  store <4 x float> %266, ptr %267, align 4, !tbaa !21, !alias.scope !80, !noalias !82
  %index.next385 = add nuw i64 %index374, 4
  %268 = icmp eq i64 %index.next385, %n.vec371
  br i1 %268, label %middle.block366, label %vector.body373, !llvm.loop !83

middle.block366:                                  ; preds = %vector.body373
  br i1 %cmp.n386, label %._crit_edge164.split.us.us.us.us.us.us, label %scalar.ph367.preheader

scalar.ph367.preheader:                           ; preds = %.preheader.us.us.us.us.us, %middle.block366
  %indvars.iv221.ph = phi i64 [ 0, %.preheader.us.us.us.us.us ], [ %n.vec371, %middle.block366 ]
  br label %scalar.ph367

scalar.ph367:                                     ; preds = %scalar.ph367.preheader, %scalar.ph367
  %indvars.iv221 = phi i64 [ %indvars.iv.next222, %scalar.ph367 ], [ %indvars.iv221.ph, %scalar.ph367.preheader ]
  %269 = add nuw nsw i64 %indvars.iv221, %243
  %270 = getelementptr inbounds float, ptr %238, i64 %269
  %271 = load float, ptr %270, align 4, !tbaa !21
  %272 = fpext float %271 to double
  %273 = fsub double %272, %245
  %274 = fdiv double %273, %247
  %275 = fptrunc double %274 to float
  %276 = getelementptr inbounds float, ptr %240, i64 %269
  %277 = load float, ptr %276, align 4, !tbaa !21
  %278 = load float, ptr %248, align 4, !tbaa !21
  %279 = fmul float %277, %278
  %280 = fpext float %279 to double
  %281 = fdiv double %280, %247
  %282 = fneg float %275
  %283 = call float @llvm.fmuladd.f32(float %282, float %275, float 1.000000e+00)
  %284 = fdiv float %283, %216
  %285 = fpext float %284 to double
  %286 = fadd double %285, 1.000000e+00
  %287 = fmul double %286, %281
  %288 = fptrunc double %287 to float
  %289 = getelementptr inbounds float, ptr %242, i64 %269
  store float %288, ptr %289, align 4, !tbaa !21
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %exitcond225.not = icmp eq i64 %indvars.iv.next222, %233
  br i1 %exitcond225.not, label %._crit_edge164.split.us.us.us.us.us.us, label %scalar.ph367, !llvm.loop !84

._crit_edge164.split.us.us.us.us.us.us:           ; preds = %scalar.ph367, %middle.block366
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %exitcond230.not = icmp eq i64 %indvars.iv.next227, %wide.trip.count229
  br i1 %exitcond230.not, label %._crit_edge166.split.us.split.us.us.us.us, label %.preheader.us.us.us.us.us, !llvm.loop !85

._crit_edge166.split.us.split.us.us.us.us:        ; preds = %._crit_edge164.split.us.us.us.us.us.us
  %indvars.iv.next232 = add nuw nsw i64 %indvars.iv231, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next232, %wide.trip.count234
  br i1 %exitcond235.not, label %._crit_edge171, label %.preheader141.us.us.us, !llvm.loop !86

.preheader141.us.us:                              ; preds = %.preheader141.us.us.preheader, %._crit_edge166.split.us.split.us178.us
  %indvars.iv216 = phi i64 [ %indvars.iv.next217, %._crit_edge166.split.us.split.us178.us ], [ 0, %.preheader141.us.us.preheader ]
  %290 = getelementptr inbounds ptr, ptr %223, i64 %indvars.iv216
  %291 = load ptr, ptr %290, align 8, !tbaa !24
  %292 = getelementptr inbounds ptr, ptr %226, i64 %indvars.iv216
  %293 = load ptr, ptr %292, align 8, !tbaa !24
  %294 = getelementptr inbounds ptr, ptr %232, i64 %indvars.iv216
  %295 = load ptr, ptr %294, align 8, !tbaa !24
  %scevgep313 = getelementptr i8, ptr %295, i64 %235
  %scevgep314 = getelementptr i8, ptr %291, i64 %235
  %scevgep315 = getelementptr i8, ptr %293, i64 %235
  %bound0317 = icmp ult ptr %295, %scevgep314
  %bound1318 = icmp ult ptr %291, %scevgep313
  %found.conflict319 = and i1 %bound0317, %bound1318
  %bound0320 = icmp ult ptr %295, %scevgep315
  %bound1321 = icmp ult ptr %293, %scevgep313
  %found.conflict322 = and i1 %bound0320, %bound1321
  %conflict.rdx323 = or i1 %found.conflict319, %found.conflict322
  %bound0324 = icmp ult ptr %295, %scevgep354
  %bound1325 = icmp ult ptr %227, %scevgep313
  %found.conflict326 = and i1 %bound0324, %bound1325
  %conflict.rdx327 = or i1 %conflict.rdx323, %found.conflict326
  br label %.preheader.us.us176.us

.preheader.us.us176.us:                           ; preds = %.preheader141.us.us, %._crit_edge164.split.us168.us.us
  %indvars.iv211 = phi i64 [ 0, %.preheader141.us.us ], [ %indvars.iv.next212, %._crit_edge164.split.us168.us.us ]
  %296 = mul nuw nsw i64 %indvars.iv211, %233
  %297 = getelementptr inbounds double, ptr %224, i64 %indvars.iv211
  %298 = load double, ptr %297, align 8, !tbaa !49
  %299 = getelementptr inbounds double, ptr %225, i64 %indvars.iv211
  %300 = load double, ptr %299, align 8, !tbaa !49
  %301 = getelementptr inbounds float, ptr %227, i64 %indvars.iv211
  %brmerge388 = select i1 %min.iters.check330, i1 true, i1 %conflict.rdx327
  br i1 %brmerge388, label %scalar.ph329.preheader, label %vector.ph331

vector.ph331:                                     ; preds = %.preheader.us.us176.us
  %broadcast.splatinsert338 = insertelement <4 x double> poison, double %298, i64 0
  %broadcast.splat339 = shufflevector <4 x double> %broadcast.splatinsert338, <4 x double> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert340 = insertelement <4 x double> poison, double %300, i64 0
  %broadcast.splat341 = shufflevector <4 x double> %broadcast.splatinsert340, <4 x double> poison, <4 x i32> zeroinitializer
  %302 = load float, ptr %301, align 4, !tbaa !21, !alias.scope !87
  %broadcast.splatinsert343 = insertelement <4 x float> poison, float %302, i64 0
  %broadcast.splat344 = shufflevector <4 x float> %broadcast.splatinsert343, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body335

vector.body335:                                   ; preds = %vector.body335, %vector.ph331
  %index336 = phi i64 [ 0, %vector.ph331 ], [ %index.next348, %vector.body335 ]
  %303 = add nuw nsw i64 %index336, %296
  %304 = getelementptr inbounds float, ptr %291, i64 %303
  %wide.load337 = load <4 x float>, ptr %304, align 4, !tbaa !21, !alias.scope !90
  %305 = fpext <4 x float> %wide.load337 to <4 x double>
  %306 = fsub <4 x double> %305, %broadcast.splat339
  %307 = fdiv <4 x double> %306, %broadcast.splat341
  %308 = fptrunc <4 x double> %307 to <4 x float>
  %309 = getelementptr inbounds float, ptr %293, i64 %303
  %wide.load342 = load <4 x float>, ptr %309, align 4, !tbaa !21, !alias.scope !92
  %310 = fmul <4 x float> %wide.load342, %broadcast.splat344
  %311 = fpext <4 x float> %310 to <4 x double>
  %312 = fdiv <4 x double> %311, %broadcast.splat341
  %313 = fneg <4 x float> %308
  %314 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %313, <4 x float> %308, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>)
  %315 = fdiv <4 x float> %314, %broadcast.splat346
  %316 = fpext <4 x float> %315 to <4 x double>
  %317 = fadd <4 x double> %316, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %318 = fmul <4 x double> %317, %312
  %319 = fptrunc <4 x double> %318 to <4 x float>
  %320 = getelementptr inbounds float, ptr %295, i64 %303
  %wide.load347 = load <4 x float>, ptr %320, align 4, !tbaa !21, !alias.scope !94, !noalias !96
  %321 = fadd <4 x float> %wide.load347, %319
  store <4 x float> %321, ptr %320, align 4, !tbaa !21, !alias.scope !94, !noalias !96
  %index.next348 = add nuw i64 %index336, 4
  %322 = icmp eq i64 %index.next348, %n.vec333
  br i1 %322, label %middle.block328, label %vector.body335, !llvm.loop !97

middle.block328:                                  ; preds = %vector.body335
  br i1 %cmp.n349, label %._crit_edge164.split.us168.us.us, label %scalar.ph329.preheader

scalar.ph329.preheader:                           ; preds = %.preheader.us.us176.us, %middle.block328
  %indvars.iv206.ph = phi i64 [ 0, %.preheader.us.us176.us ], [ %n.vec333, %middle.block328 ]
  br label %scalar.ph329

scalar.ph329:                                     ; preds = %scalar.ph329.preheader, %scalar.ph329
  %indvars.iv206 = phi i64 [ %indvars.iv.next207, %scalar.ph329 ], [ %indvars.iv206.ph, %scalar.ph329.preheader ]
  %323 = add nuw nsw i64 %indvars.iv206, %296
  %324 = getelementptr inbounds float, ptr %291, i64 %323
  %325 = load float, ptr %324, align 4, !tbaa !21
  %326 = fpext float %325 to double
  %327 = fsub double %326, %298
  %328 = fdiv double %327, %300
  %329 = fptrunc double %328 to float
  %330 = getelementptr inbounds float, ptr %293, i64 %323
  %331 = load float, ptr %330, align 4, !tbaa !21
  %332 = load float, ptr %301, align 4, !tbaa !21
  %333 = fmul float %331, %332
  %334 = fpext float %333 to double
  %335 = fdiv double %334, %300
  %336 = fneg float %329
  %337 = call float @llvm.fmuladd.f32(float %336, float %329, float 1.000000e+00)
  %338 = fdiv float %337, %216
  %339 = fpext float %338 to double
  %340 = fadd double %339, 1.000000e+00
  %341 = fmul double %340, %335
  %342 = fptrunc double %341 to float
  %343 = getelementptr inbounds float, ptr %295, i64 %323
  %344 = load float, ptr %343, align 4, !tbaa !21
  %345 = fadd float %344, %342
  store float %345, ptr %343, align 4, !tbaa !21
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond210.not = icmp eq i64 %indvars.iv.next207, %233
  br i1 %exitcond210.not, label %._crit_edge164.split.us168.us.us, label %scalar.ph329, !llvm.loop !98

._crit_edge164.split.us168.us.us:                 ; preds = %scalar.ph329, %middle.block328
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond215.not = icmp eq i64 %indvars.iv.next212, %wide.trip.count229
  br i1 %exitcond215.not, label %._crit_edge166.split.us.split.us178.us, label %.preheader.us.us176.us, !llvm.loop !85

._crit_edge166.split.us.split.us178.us:           ; preds = %._crit_edge164.split.us168.us.us
  %indvars.iv.next217 = add nuw nsw i64 %indvars.iv216, 1
  %exitcond220.not = icmp eq i64 %indvars.iv.next217, %wide.trip.count234
  br i1 %exitcond220.not, label %._crit_edge171, label %.preheader141.us.us, !llvm.loop !86

scalar.ph288:                                     ; preds = %scalar.ph288.preheader, %scalar.ph288
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %scalar.ph288 ], [ %indvars.iv201.ph, %scalar.ph288.preheader ]
  %346 = getelementptr inbounds float, ptr %177, i64 %indvars.iv201
  %347 = load float, ptr %346, align 4, !tbaa !21
  %348 = load float, ptr %178, align 8, !tbaa !55
  %349 = load float, ptr %179, align 4, !tbaa !59
  %350 = fneg float %348
  %351 = call float @llvm.fmuladd.f32(float %350, float %349, float 1.000000e+00)
  %352 = getelementptr inbounds float, ptr %181, i64 %indvars.iv201
  %353 = load float, ptr %352, align 4, !tbaa !21
  %354 = fneg float %353
  %355 = fmul float %349, %354
  %356 = fdiv float %355, %183
  %357 = call float @llvm.fmuladd.f32(float %347, float %351, float %356)
  store float %357, ptr %346, align 4, !tbaa !21
  %358 = getelementptr inbounds float, ptr %185, i64 %indvars.iv201
  %359 = load float, ptr %358, align 4, !tbaa !21
  %360 = load float, ptr %178, align 8, !tbaa !55
  %361 = load float, ptr %179, align 4, !tbaa !59
  %362 = fneg float %360
  %363 = call float @llvm.fmuladd.f32(float %362, float %361, float 1.000000e+00)
  %364 = getelementptr inbounds float, ptr %187, i64 %indvars.iv201
  %365 = load float, ptr %364, align 4, !tbaa !21
  %366 = fneg float %365
  %367 = fmul float %361, %366
  %368 = fdiv float %367, %183
  %369 = call float @llvm.fmuladd.f32(float %359, float %363, float %368)
  store float %369, ptr %358, align 4, !tbaa !21
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge, label %scalar.ph288, !llvm.loop !99

._crit_edge171:                                   ; preds = %._crit_edge166.split.us.split.us178.us, %._crit_edge166.split.us.split.us.us.us.us, %.preheader141.lr.ph, %.preheader142
  %370 = load ptr, ptr %20, align 8, !tbaa !12
  %371 = getelementptr inbounds i8, ptr %370, i64 64
  store i32 1, ptr %371, align 8, !tbaa !72
  br label %372

372:                                              ; preds = %._crit_edge, %._crit_edge171
  ret void
}

declare i32 @mMORNWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress 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 = { 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 #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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!6, !10, i64 48}
!17 = !{!18, !10, i64 16}
!18 = !{!"MHandle", !9, i64 0, !9, i64 4, !10, i64 8, !10, i64 16}
!19 = !{!18, !9, i64 4}
!20 = !{!9, !9, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !10, i64 0}
!23 = !{!"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}
!24 = !{!10, !10, i64 0}
!25 = !{!26, !9, i64 4}
!26 = !{!"MTensor", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !10, i64 16, !9, i64 24}
!27 = !{!23, !10, i64 8}
!28 = !{!26, !9, i64 8}
!29 = !{!26, !9, i64 12}
!30 = !{!23, !10, i64 16}
!31 = !{!23, !10, i64 24}
!32 = !{!13, !14, i64 20}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = !{!39, !34}
!39 = distinct !{!39, !35}
!40 = !{!39}
!41 = distinct !{!41, !42, !43, !44}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!"llvm.loop.isvectorized", i32 1}
!44 = !{!"llvm.loop.unroll.runtime.disable"}
!45 = !{!26, !9, i64 0}
!46 = !{!26, !10, i64 16}
!47 = !{!23, !10, i64 32}
!48 = !{!23, !10, i64 40}
!49 = !{!50, !50, i64 0}
!50 = !{!"double", !7, i64 0}
!51 = distinct !{!51, !42}
!52 = distinct !{!52, !42}
!53 = distinct !{!53, !42}
!54 = distinct !{!54, !42, !43}
!55 = !{!13, !14, i64 16}
!56 = !{!57}
!57 = distinct !{!57, !58}
!58 = distinct !{!58, !"LVerDomain"}
!59 = !{!13, !14, i64 12}
!60 = !{!61}
!61 = distinct !{!61, !58}
!62 = !{!63, !57, !64, !65}
!63 = distinct !{!63, !58}
!64 = distinct !{!64, !58}
!65 = distinct !{!65, !58}
!66 = !{!64}
!67 = !{!63}
!68 = !{!57, !64, !65}
!69 = !{!65}
!70 = distinct !{!70, !42, !43, !44}
!71 = !{!13, !9, i64 8}
!72 = !{!6, !9, i64 64}
!73 = !{!74}
!74 = distinct !{!74, !75}
!75 = distinct !{!75, !"LVerDomain"}
!76 = !{!77}
!77 = distinct !{!77, !75}
!78 = !{!79}
!79 = distinct !{!79, !75}
!80 = !{!81}
!81 = distinct !{!81, !75}
!82 = !{!77, !79, !74}
!83 = distinct !{!83, !42, !43, !44}
!84 = distinct !{!84, !42, !43}
!85 = distinct !{!85, !42}
!86 = distinct !{!86, !42}
!87 = !{!88}
!88 = distinct !{!88, !89}
!89 = distinct !{!89, !"LVerDomain"}
!90 = !{!91}
!91 = distinct !{!91, !89}
!92 = !{!93}
!93 = distinct !{!93, !89}
!94 = !{!95}
!95 = distinct !{!95, !89}
!96 = !{!91, !93, !88}
!97 = distinct !{!97, !42, !43, !44}
!98 = distinct !{!98, !42, !43}
!99 = distinct !{!99, !42, !43}


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