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

; 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.TensorOutputPara = type { ptr, i32, i32, i32, ptr, ptr, [4 x [128 x i8]], float, float, float }
%struct.MTensor = type { i32, i32, i32, i32, ptr, i32 }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleTensorOutput = type { float, float, [32 x float], i32, float }

@.str.3 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.6 = 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
@morn_network_parafile = external global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.mTensorOutputBackward = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@morn_network_para_dir = external global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@morn_filename = external thread_local global [256 x i8], align 16

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @mTensorOutputBackward(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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %16

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

19:                                               ; preds = %16
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = ptrtoint ptr %20 to i64
  %22 = icmp eq i64 %21, -1
  br label %23

23:                                               ; preds = %19, %16
  %24 = phi i1 [ true, %16 ], [ %22, %19 ]
  %25 = zext i1 %24 to i32
  store i32 %25, ptr %3, align 4, !tbaa !9
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %23
  %29 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %29, i32 noundef -1, ptr noundef @.str.3, i32 noundef 135, ptr noundef @__FUNCTION__.mTensorOutputBackward, ptr noundef @.str.4)
  br label %30

30:                                               ; preds = %28, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %31

31:                                               ; preds = %30
  br label %32

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

43:                                               ; preds = %32
  %44 = load i32, ptr %4, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %44, i32 noundef -1, ptr noundef @.str.3, i32 noundef 136, ptr noundef @__FUNCTION__.mTensorOutputBackward, ptr noundef @.str.6)
  br label %45

45:                                               ; preds = %43, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %46

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.MLayer, ptr %47, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  store ptr %49, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.TensorOutputPara, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.MLayer, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  store ptr %54, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MLayer, ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  store ptr %57, ptr %7, align 8, !tbaa !5
  store float 0.000000e+00, ptr @morn_network_error, align 4, !tbaa !18
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TensorOutputPara, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 8, !tbaa !19
  %61 = icmp ne i32 %60, -1
  br i1 %61, label %62, label %79

62:                                               ; preds = %46
  br label %63

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.TensorOutputPara, ptr %64, i32 0, i32 3
  %66 = load i32, ptr %65, align 8, !tbaa !19
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MTensor, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = icmp ne i32 %66, %69
  %71 = zext i1 %70 to i32
  store i32 %71, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %63
  %75 = load i32, ptr %8, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %75, i32 noundef -1, ptr noundef @.str.3, i32 noundef 146, ptr noundef @__FUNCTION__.mTensorOutputBackward, ptr noundef @.str.29)
  br label %76

76:                                               ; preds = %74, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %46
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TensorOutputPara, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !22
  %83 = icmp ne i32 %82, -1
  br i1 %83, label %84, label %101

84:                                               ; preds = %79
  br label %85

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.TensorOutputPara, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 8, !tbaa !22
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.MTensor, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !23
  %92 = icmp ne i32 %88, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %9, align 4, !tbaa !9
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %85
  %97 = load i32, ptr %9, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %97, i32 noundef -1, ptr noundef @.str.3, i32 noundef 147, ptr noundef @__FUNCTION__.mTensorOutputBackward, ptr noundef @.str.29)
  br label %98

98:                                               ; preds = %96, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100, %79
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.TensorOutputPara, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !24
  %105 = icmp ne i32 %104, -1
  br i1 %105, label %106, label %123

106:                                              ; preds = %101
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TensorOutputPara, ptr %108, i32 0, i32 2
  %110 = load i32, ptr %109, align 4, !tbaa !24
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MTensor, ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 4, !tbaa !25
  %114 = icmp ne i32 %110, %113
  %115 = zext i1 %114 to i32
  store i32 %115, ptr %10, align 4, !tbaa !9
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %120

118:                                              ; preds = %107
  %119 = load i32, ptr %10, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %119, i32 noundef -1, ptr noundef @.str.3, i32 noundef 148, ptr noundef @__FUNCTION__.mTensorOutputBackward, ptr noundef @.str.29)
  br label %120

120:                                              ; preds = %118, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122, %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.TensorOutputPara, ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TensorOutputPara, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !14
  %131 = call float %126(ptr noundef %127, ptr noundef %130, ptr noundef null)
  store float %131, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = call ptr @GetHandle(ptr noundef %132, i32 noundef 144, i32 noundef -1443865489, ptr noundef @endTensorOutput)
  store ptr %133, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.MHandle, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !27
  store ptr %136, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.MHandle, ptr %137, i32 0, i32 1
  %139 = load volatile i32, ptr %138, align 4, !tbaa !29
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %165

141:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %153, %141
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = icmp slt i32 %143, 32
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %156

146:                                              ; preds = %142
  %147 = load float, ptr %11, align 4, !tbaa !18
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.HandleTensorOutput, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [32 x float], ptr %149, i64 0, i64 %151
  store float %147, ptr %152, align 4, !tbaa !18
  br label %153

153:                                              ; preds = %146
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %14, align 4, !tbaa !9
  br label %142, !llvm.loop !30

156:                                              ; preds = %145
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.HandleTensorOutput, ptr %157, i32 0, i32 3
  store i32 0, ptr %158, align 4, !tbaa !32
  %159 = load float, ptr %11, align 4, !tbaa !18
  %160 = fmul float %159, 3.200000e+01
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.HandleTensorOutput, ptr %161, i32 0, i32 4
  store float %160, ptr %162, align 4, !tbaa !34
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.MHandle, ptr %163, i32 0, i32 1
  store volatile i32 1, ptr %164, align 4, !tbaa !29
  br label %165

165:                                              ; preds = %156, %123
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.HandleTensorOutput, ptr %166, i32 0, i32 4
  %168 = load float, ptr %167, align 4, !tbaa !34
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.HandleTensorOutput, ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.HandleTensorOutput, ptr %171, i32 0, i32 3
  %173 = load i32, ptr %172, align 4, !tbaa !32
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [32 x float], ptr %170, i64 0, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !18
  %177 = fsub float %168, %176
  %178 = load float, ptr %11, align 4, !tbaa !18
  %179 = fadd float %177, %178
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.HandleTensorOutput, ptr %180, i32 0, i32 4
  store float %179, ptr %181, align 4, !tbaa !34
  %182 = load float, ptr %11, align 4, !tbaa !18
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.HandleTensorOutput, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.HandleTensorOutput, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !32
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [32 x float], ptr %184, i64 0, i64 %188
  store float %182, ptr %189, align 4, !tbaa !18
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.HandleTensorOutput, ptr %190, i32 0, i32 3
  %192 = load i32, ptr %191, align 4, !tbaa !32
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %191, align 4, !tbaa !32
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.HandleTensorOutput, ptr %194, i32 0, i32 3
  %196 = load i32, ptr %195, align 4, !tbaa !32
  %197 = icmp eq i32 %196, 32
  br i1 %197, label %198, label %222

198:                                              ; preds = %165
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.HandleTensorOutput, ptr %199, i32 0, i32 4
  store float 0.000000e+00, ptr %200, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %216, %198
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = icmp slt i32 %202, 32
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %219

205:                                              ; preds = %201
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.HandleTensorOutput, ptr %206, i32 0, i32 2
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [32 x float], ptr %207, i64 0, i64 %209
  %211 = load float, ptr %210, align 4, !tbaa !18
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.HandleTensorOutput, ptr %212, i32 0, i32 4
  %214 = load float, ptr %213, align 4, !tbaa !34
  %215 = fadd float %214, %211
  store float %215, ptr %213, align 4, !tbaa !34
  br label %216

216:                                              ; preds = %205
  %217 = load i32, ptr %15, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %15, align 4, !tbaa !9
  br label %201, !llvm.loop !35

219:                                              ; preds = %204
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.HandleTensorOutput, ptr %220, i32 0, i32 3
  store i32 0, ptr %221, align 4, !tbaa !32
  br label %222

222:                                              ; preds = %219, %165
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.HandleTensorOutput, ptr %223, i32 0, i32 4
  %225 = load float, ptr %224, align 4, !tbaa !34
  %226 = fdiv float %225, 3.200000e+01
  store float %226, ptr @morn_network_error, align 4, !tbaa !18
  %227 = load float, ptr %11, align 4, !tbaa !18
  %228 = fpext float %227 to double
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, double noundef %228)
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.TensorOutputPara, ptr %230, i32 0, i32 5
  %232 = load ptr, ptr %231, align 8, !tbaa !36
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %242

234:                                              ; preds = %222
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.TensorOutputPara, ptr %235, i32 0, i32 5
  %237 = load ptr, ptr %236, align 8, !tbaa !36
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.TensorOutputPara, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !14
  call void %237(ptr noundef %238, ptr noundef %241)
  br label %242

242:                                              ; preds = %234, %222
  %243 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %244 = load i32, ptr @morn_network_save, align 4, !tbaa !9
  %245 = srem i32 %243, %244
  %246 = icmp eq i32 %245, 0
  br i1 %246, label %247, label %250

247:                                              ; preds = %242
  %248 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %249 = icmp sgt i32 %248, 0
  br i1 %249, label %259, label %250

250:                                              ; preds = %247, %242
  %251 = load float, ptr @morn_network_error, align 4, !tbaa !18
  %252 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !18
  %253 = fcmp ole float %251, %252
  br i1 %253, label %259, label %254

254:                                              ; preds = %250
  %255 = load float, ptr @morn_network_error, align 4, !tbaa !18
  %256 = load i32, ptr @morn_network_time_max, align 4, !tbaa !9
  %257 = sitofp i32 %256 to float
  %258 = fcmp oeq float %255, %257
  br i1 %258, label %259, label %266

259:                                              ; preds = %254, %250, %247
  %260 = load ptr, ptr @morn_network_para_dir, align 8, !tbaa !5
  %261 = load i32, ptr @morn_network_time, align 4, !tbaa !9
  %262 = call ptr (ptr, ...) @mFileCreate(ptr noundef @.str.31, ptr noundef %260, i32 noundef %261)
  store ptr %262, ptr @morn_network_parafile, align 8, !tbaa !5
  %263 = call align 16 ptr @llvm.threadlocal.address.p0(ptr align 16 @morn_filename)
  %264 = getelementptr inbounds [256 x i8], ptr %263, i64 0, i64 0
  %265 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %264)
  br label %266

266:                                              ; preds = %259, %254
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.TensorOutputPara, ptr %267, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8, !tbaa !14
  %270 = getelementptr inbounds %struct.MLayer, ptr %269, i32 0, i32 5
  store i32 1, ptr %270, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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

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

declare ptr @mFileCreate(ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"TensorOutputPara", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !16, i64 552, !16, i64 556, !16, i64 560}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !6, i64 40}
!18 = !{!16, !16, i64 0}
!19 = !{!15, !10, i64 16}
!20 = !{!21, !10, i64 4}
!21 = !{!"MTensor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24}
!22 = !{!15, !10, i64 8}
!23 = !{!21, !10, i64 8}
!24 = !{!15, !10, i64 12}
!25 = !{!21, !10, i64 12}
!26 = !{!15, !6, i64 24}
!27 = !{!28, !6, i64 16}
!28 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!29 = !{!28, !10, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !10, i64 136}
!33 = !{!"HandleTensorOutput", !16, i64 0, !16, i64 4, !7, i64 8, !10, i64 136, !16, i64 140}
!34 = !{!33, !16, i64 140}
!35 = distinct !{!35, !31}
!36 = !{!15, !6, i64 32}
!37 = !{!12, !10, i64 64}


; 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.3 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.6 = 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
@morn_network_parafile = external local_unnamed_addr global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.mTensorOutputBackward = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [24 x i8], align 1
@morn_network_para_dir = external local_unnamed_addr global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@morn_filename = external thread_local global [256 x i8], align 16

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

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

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

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

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

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

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

14:                                               ; preds = %13, %7
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %17, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  store float 0.000000e+00, ptr @morn_network_error, align 4, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %16, i64 16
  %23 = load i32, ptr %22, align 8, !tbaa !17
  %.not71 = icmp eq i32 %23, -1
  br i1 %.not71, label %28, label %24

24:                                               ; preds = %14
  %25 = getelementptr inbounds i8, ptr %19, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %.not75 = icmp eq i32 %23, %26
  br i1 %.not75, label %28, label %27

27:                                               ; preds = %24
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 146, ptr noundef nonnull @__FUNCTION__.mTensorOutputBackward, ptr noundef nonnull @.str.29) #5
  br label %28

28:                                               ; preds = %24, %27, %14
  %29 = getelementptr inbounds i8, ptr %16, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !20
  %.not72 = icmp eq i32 %30, -1
  br i1 %.not72, label %35, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %19, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !21
  %.not76 = icmp eq i32 %30, %33
  br i1 %.not76, label %35, label %34

34:                                               ; preds = %31
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 147, ptr noundef nonnull @__FUNCTION__.mTensorOutputBackward, ptr noundef nonnull @.str.29) #5
  br label %35

35:                                               ; preds = %31, %34, %28
  %36 = getelementptr inbounds i8, ptr %16, i64 12
  %37 = load i32, ptr %36, align 4, !tbaa !22
  %.not73 = icmp eq i32 %37, -1
  br i1 %.not73, label %42, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %19, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !23
  %.not77 = icmp eq i32 %37, %40
  br i1 %.not77, label %42, label %41

41:                                               ; preds = %38
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 148, ptr noundef nonnull @__FUNCTION__.mTensorOutputBackward, ptr noundef nonnull @.str.29) #5
  br label %42

42:                                               ; preds = %38, %41, %35
  %43 = getelementptr inbounds i8, ptr %16, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !24
  %45 = load ptr, ptr %16, align 8, !tbaa !12
  %46 = tail call float %44(ptr noundef nonnull %0, ptr noundef %45, ptr noundef null) #5
  %47 = tail call ptr @GetHandle(ptr noundef %21, i32 noundef 144, i32 noundef -1443865489, ptr noundef nonnull @endTensorOutput) #5
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = getelementptr inbounds i8, ptr %47, i64 4
  %51 = load volatile i32, ptr %50, align 4, !tbaa !27
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %.preheader, label %._crit_edge

._crit_edge:                                      ; preds = %42
  %.phi.trans.insert = getelementptr inbounds i8, ptr %49, i64 140
  %.pre = load float, ptr %.phi.trans.insert, align 4, !tbaa !28
  %.phi.trans.insert82 = getelementptr inbounds i8, ptr %49, i64 136
  %.pre83 = load i32, ptr %.phi.trans.insert82, align 4, !tbaa !30
  %.phi.trans.insert84 = getelementptr inbounds i8, ptr %49, i64 8
  %.phi.trans.insert85 = sext i32 %.pre83 to i64
  %.phi.trans.insert86 = getelementptr inbounds [32 x float], ptr %.phi.trans.insert84, i64 0, i64 %.phi.trans.insert85
  %.pre87 = load float, ptr %.phi.trans.insert86, align 4, !tbaa !16
  br label %64

.preheader:                                       ; preds = %42
  %53 = getelementptr inbounds i8, ptr %49, i64 8
  %54 = insertelement <4 x float> poison, float %46, i64 0
  %55 = shufflevector <4 x float> %54, <4 x float> poison, <4 x i32> zeroinitializer
  store <4 x float> %55, ptr %53, align 4, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %49, i64 24
  store <4 x float> %55, ptr %56, align 4, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %49, i64 40
  store <4 x float> %55, ptr %57, align 4, !tbaa !16
  %58 = getelementptr inbounds i8, ptr %49, i64 56
  store <4 x float> %55, ptr %58, align 4, !tbaa !16
  %59 = getelementptr inbounds i8, ptr %49, i64 72
  store <4 x float> %55, ptr %59, align 4, !tbaa !16
  %60 = getelementptr inbounds i8, ptr %49, i64 88
  store <4 x float> %55, ptr %60, align 4, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %49, i64 104
  store <4 x float> %55, ptr %61, align 4, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %49, i64 120
  store <4 x float> %55, ptr %62, align 4, !tbaa !16
  %63 = fmul float %46, 3.200000e+01
  store volatile i32 1, ptr %50, align 4, !tbaa !27
  br label %64

64:                                               ; preds = %._crit_edge, %.preheader
  %65 = phi float [ %.pre87, %._crit_edge ], [ %46, %.preheader ]
  %66 = phi i32 [ %.pre83, %._crit_edge ], [ 0, %.preheader ]
  %67 = phi float [ %.pre, %._crit_edge ], [ %63, %.preheader ]
  %68 = getelementptr inbounds i8, ptr %49, i64 140
  %69 = getelementptr inbounds i8, ptr %49, i64 8
  %70 = getelementptr inbounds i8, ptr %49, i64 136
  %71 = sext i32 %66 to i64
  %72 = getelementptr inbounds [32 x float], ptr %69, i64 0, i64 %71
  %73 = fsub float %67, %65
  %74 = fadd float %46, %73
  store float %74, ptr %68, align 4, !tbaa !28
  store float %46, ptr %72, align 4, !tbaa !16
  %75 = add nsw i32 %66, 1
  store i32 %75, ptr %70, align 4, !tbaa !30
  %76 = icmp eq i32 %75, 32
  br i1 %76, label %77, label %._crit_edge88

._crit_edge88:                                    ; preds = %64
  %.pre89 = load float, ptr %68, align 4, !tbaa !28
  br label %173

77:                                               ; preds = %64
  %78 = load float, ptr %69, align 4, !tbaa !16
  %79 = fadd float %78, 0.000000e+00
  %80 = getelementptr inbounds i8, ptr %49, i64 12
  %81 = load float, ptr %80, align 4, !tbaa !16
  %82 = fadd float %81, %79
  %83 = getelementptr inbounds i8, ptr %49, i64 16
  %84 = load float, ptr %83, align 4, !tbaa !16
  %85 = fadd float %84, %82
  %86 = getelementptr inbounds i8, ptr %49, i64 20
  %87 = load float, ptr %86, align 4, !tbaa !16
  %88 = fadd float %87, %85
  %89 = getelementptr inbounds i8, ptr %49, i64 24
  %90 = load float, ptr %89, align 4, !tbaa !16
  %91 = fadd float %90, %88
  %92 = getelementptr inbounds i8, ptr %49, i64 28
  %93 = load float, ptr %92, align 4, !tbaa !16
  %94 = fadd float %93, %91
  %95 = getelementptr inbounds i8, ptr %49, i64 32
  %96 = load float, ptr %95, align 4, !tbaa !16
  %97 = fadd float %96, %94
  %98 = getelementptr inbounds i8, ptr %49, i64 36
  %99 = load float, ptr %98, align 4, !tbaa !16
  %100 = fadd float %99, %97
  %101 = getelementptr inbounds i8, ptr %49, i64 40
  %102 = load float, ptr %101, align 4, !tbaa !16
  %103 = fadd float %102, %100
  %104 = getelementptr inbounds i8, ptr %49, i64 44
  %105 = load float, ptr %104, align 4, !tbaa !16
  %106 = fadd float %105, %103
  %107 = getelementptr inbounds i8, ptr %49, i64 48
  %108 = load float, ptr %107, align 4, !tbaa !16
  %109 = fadd float %108, %106
  %110 = getelementptr inbounds i8, ptr %49, i64 52
  %111 = load float, ptr %110, align 4, !tbaa !16
  %112 = fadd float %111, %109
  %113 = getelementptr inbounds i8, ptr %49, i64 56
  %114 = load float, ptr %113, align 4, !tbaa !16
  %115 = fadd float %114, %112
  %116 = getelementptr inbounds i8, ptr %49, i64 60
  %117 = load float, ptr %116, align 4, !tbaa !16
  %118 = fadd float %117, %115
  %119 = getelementptr inbounds i8, ptr %49, i64 64
  %120 = load float, ptr %119, align 4, !tbaa !16
  %121 = fadd float %120, %118
  %122 = getelementptr inbounds i8, ptr %49, i64 68
  %123 = load float, ptr %122, align 4, !tbaa !16
  %124 = fadd float %123, %121
  %125 = getelementptr inbounds i8, ptr %49, i64 72
  %126 = load float, ptr %125, align 4, !tbaa !16
  %127 = fadd float %126, %124
  %128 = getelementptr inbounds i8, ptr %49, i64 76
  %129 = load float, ptr %128, align 4, !tbaa !16
  %130 = fadd float %129, %127
  %131 = getelementptr inbounds i8, ptr %49, i64 80
  %132 = load float, ptr %131, align 4, !tbaa !16
  %133 = fadd float %132, %130
  %134 = getelementptr inbounds i8, ptr %49, i64 84
  %135 = load float, ptr %134, align 4, !tbaa !16
  %136 = fadd float %135, %133
  %137 = getelementptr inbounds i8, ptr %49, i64 88
  %138 = load float, ptr %137, align 4, !tbaa !16
  %139 = fadd float %138, %136
  %140 = getelementptr inbounds i8, ptr %49, i64 92
  %141 = load float, ptr %140, align 4, !tbaa !16
  %142 = fadd float %141, %139
  %143 = getelementptr inbounds i8, ptr %49, i64 96
  %144 = load float, ptr %143, align 4, !tbaa !16
  %145 = fadd float %144, %142
  %146 = getelementptr inbounds i8, ptr %49, i64 100
  %147 = load float, ptr %146, align 4, !tbaa !16
  %148 = fadd float %147, %145
  %149 = getelementptr inbounds i8, ptr %49, i64 104
  %150 = load float, ptr %149, align 4, !tbaa !16
  %151 = fadd float %150, %148
  %152 = getelementptr inbounds i8, ptr %49, i64 108
  %153 = load float, ptr %152, align 4, !tbaa !16
  %154 = fadd float %153, %151
  %155 = getelementptr inbounds i8, ptr %49, i64 112
  %156 = load float, ptr %155, align 4, !tbaa !16
  %157 = fadd float %156, %154
  %158 = getelementptr inbounds i8, ptr %49, i64 116
  %159 = load float, ptr %158, align 4, !tbaa !16
  %160 = fadd float %159, %157
  %161 = getelementptr inbounds i8, ptr %49, i64 120
  %162 = load float, ptr %161, align 4, !tbaa !16
  %163 = fadd float %162, %160
  %164 = getelementptr inbounds i8, ptr %49, i64 124
  %165 = load float, ptr %164, align 4, !tbaa !16
  %166 = fadd float %165, %163
  %167 = getelementptr inbounds i8, ptr %49, i64 128
  %168 = load float, ptr %167, align 4, !tbaa !16
  %169 = fadd float %168, %166
  %170 = getelementptr inbounds i8, ptr %49, i64 132
  %171 = load float, ptr %170, align 4, !tbaa !16
  %172 = fadd float %171, %169
  store float %172, ptr %68, align 4, !tbaa !28
  store i32 0, ptr %70, align 4, !tbaa !30
  br label %173

173:                                              ; preds = %._crit_edge88, %77
  %174 = phi float [ %.pre89, %._crit_edge88 ], [ %172, %77 ]
  %175 = fmul float %174, 3.125000e-02
  store float %175, ptr @morn_network_error, align 4, !tbaa !16
  %176 = fpext float %46 to double
  %177 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, double noundef %176)
  %178 = getelementptr inbounds i8, ptr %16, i64 32
  %179 = load ptr, ptr %178, align 8, !tbaa !31
  %.not74 = icmp eq ptr %179, null
  br i1 %.not74, label %182, label %180

180:                                              ; preds = %173
  %181 = load ptr, ptr %16, align 8, !tbaa !12
  tail call void %179(ptr noundef nonnull %0, ptr noundef %181) #5
  br label %182

182:                                              ; preds = %180, %173
  %183 = load i32, ptr @morn_network_time, align 4
  %184 = load i32, ptr @morn_network_save, align 4, !tbaa !32
  %185 = srem i32 %183, %184
  %186 = icmp eq i32 %185, 0
  %187 = icmp sgt i32 %183, 0
  %or.cond = and i1 %187, %186
  br i1 %or.cond, label %196, label %188

188:                                              ; preds = %182
  %189 = load float, ptr @morn_network_error, align 4, !tbaa !16
  %190 = load float, ptr @morn_network_error_thresh, align 4, !tbaa !16
  %191 = fcmp ugt float %189, %190
  br i1 %191, label %192, label %196

192:                                              ; preds = %188
  %193 = load i32, ptr @morn_network_time_max, align 4, !tbaa !32
  %194 = sitofp i32 %193 to float
  %195 = fcmp oeq float %189, %194
  br i1 %195, label %196, label %201

196:                                              ; preds = %182, %192, %188
  %197 = load ptr, ptr @morn_network_para_dir, align 8, !tbaa !33
  %198 = tail call ptr (ptr, ...) @mFileCreate(ptr noundef nonnull @.str.31, ptr noundef %197, i32 noundef %183) #5
  store ptr %198, ptr @morn_network_parafile, align 8, !tbaa !33
  %199 = tail call align 16 ptr @llvm.threadlocal.address.p0(ptr align 16 @morn_filename)
  %200 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull %199)
  br label %201

201:                                              ; preds = %196, %192
  %202 = load ptr, ptr %16, align 8, !tbaa !12
  %203 = getelementptr inbounds i8, ptr %202, i64 64
  store i32 1, ptr %203, align 8, !tbaa !34
  ret void
}

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

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

declare ptr @mFileCreate(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"TensorOutputPara", !10, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !14, i64 552, !14, i64 556, !14, i64 560}
!14 = !{!"float", !7, i64 0}
!15 = !{!6, !10, i64 40}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !9, i64 16}
!18 = !{!19, !9, i64 4}
!19 = !{!"MTensor", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !10, i64 16, !9, i64 24}
!20 = !{!13, !9, i64 8}
!21 = !{!19, !9, i64 8}
!22 = !{!13, !9, i64 12}
!23 = !{!19, !9, i64 12}
!24 = !{!13, !10, i64 24}
!25 = !{!26, !10, i64 16}
!26 = !{!"MHandle", !9, i64 0, !9, i64 4, !10, i64 8, !10, i64 16}
!27 = !{!26, !9, i64 4}
!28 = !{!29, !14, i64 140}
!29 = !{!"HandleTensorOutput", !14, i64 0, !14, i64 4, !7, i64 8, !9, i64 136, !14, i64 140}
!30 = !{!29, !9, i64 136}
!31 = !{!13, !10, i64 32}
!32 = !{!9, !9, i64 0}
!33 = !{!10, !10, i64 0}
!34 = !{!6, !9, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass