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

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

@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@__FUNCTION__.TensorConnectSet = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@morn_network_flag = external global i32, align 4
@morn_network_parafile = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

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

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

declare void @mMemoryBlockRelease(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @TensorConnectSet(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca [64 x i8], align 16
  %23 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.MLayer, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  store ptr %26, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TensorConnectPara, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = getelementptr inbounds %struct.MLayer, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store ptr %31, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TensorConnectPara, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  %35 = getelementptr inbounds %struct.MLayer, ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  store ptr %36, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.MLayer, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  store ptr %39, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.MTensor, ptr %40, i32 0, i32 5
  %42 = load i32, ptr %41, align 8, !tbaa !17
  store i32 %42, ptr %8, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call ptr @GetHandle(ptr noundef %43, i32 noundef 16, i32 noundef -1197970358, ptr noundef @endTensorConnect)
  store ptr %44, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MHandle, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  store ptr %47, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.MLayer, ptr %48, i32 0, i32 5
  %50 = load i32, ptr %49, align 8, !tbaa !22
  %51 = icmp ne i32 %50, -1
  br i1 %51, label %52, label %54

52:                                               ; preds = %1
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %53, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %355

54:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.TensorConnectPara, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 8, !tbaa !23
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TensorConnectPara, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !24
  %61 = mul nsw i32 %57, %60
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TensorConnectPara, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 4, !tbaa !25
  %65 = mul nsw i32 %61, %64
  store i32 %65, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MTensor, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !26
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MTensor, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !27
  %72 = mul nsw i32 %68, %71
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MTensor, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !28
  %76 = mul nsw i32 %72, %75
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %13, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %78 = load i32, ptr %12, align 4, !tbaa !19
  %79 = load i32, ptr %13, align 4, !tbaa !19
  %80 = mul nsw i32 %78, %79
  store i32 %80, ptr %14, align 4, !tbaa !19
  br label %81

81:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 5, ptr %15, align 4, !tbaa !19
  %82 = load i32, ptr %15, align 4, !tbaa !19
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %89

84:                                               ; preds = %81
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MTensor, ptr %86, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  call void @TensorRedefine(ptr noundef %85, i32 noundef -1, i32 noundef -1, i32 noundef -1, i32 noundef -1, ptr noundef %88, i32 noundef -1)
  br label %158

89:                                               ; preds = %81
  %90 = load i32, ptr %15, align 4, !tbaa !19
  %91 = icmp eq i32 %90, 4
  br i1 %91, label %92, label %110

92:                                               ; preds = %89
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MTensor, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !30
  %97 = add nsw i32 %96, 0
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TensorConnectPara, ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 8, !tbaa !23
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.TensorConnectPara, ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !24
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.TensorConnectPara, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !25
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.MTensor, ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !29
  call void @TensorRedefine(ptr noundef %93, i32 noundef %97, i32 noundef %100, i32 noundef %103, i32 noundef %106, ptr noundef %109, i32 noundef -1)
  br label %157

110:                                              ; preds = %89
  %111 = load i32, ptr %15, align 4, !tbaa !19
  %112 = icmp eq i32 %111, 5
  br i1 %112, label %113, label %128

113:                                              ; preds = %110
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MTensor, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !30
  %118 = add nsw i32 %117, 0
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TensorConnectPara, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %120, align 8, !tbaa !23
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.TensorConnectPara, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !24
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TensorConnectPara, ptr %125, i32 0, i32 2
  %127 = load i32, ptr %126, align 4, !tbaa !25
  call void @TensorRedefine(ptr noundef %114, i32 noundef %118, i32 noundef %121, i32 noundef %124, i32 noundef %127, ptr noundef null, i32 noundef -1)
  br label %156

128:                                              ; preds = %110
  %129 = load i32, ptr %15, align 4, !tbaa !19
  %130 = icmp eq i32 %129, 6
  br i1 %130, label %131, label %146

131:                                              ; preds = %128
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.MTensor, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !30
  %136 = add nsw i32 %135, 0
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.TensorConnectPara, ptr %137, i32 0, i32 3
  %139 = load i32, ptr %138, align 8, !tbaa !23
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.TensorConnectPara, ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 8, !tbaa !24
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.TensorConnectPara, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 4, !tbaa !25
  call void @TensorRedefine(ptr noundef %132, i32 noundef %136, i32 noundef %139, i32 noundef %142, i32 noundef %145, ptr noundef null, i32 noundef -1)
  br label %155

146:                                              ; preds = %128
  br label %147

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !19
  %148 = load i32, ptr %16, align 4, !tbaa !19
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %152

150:                                              ; preds = %147
  %151 = load i32, ptr %16, align 4, !tbaa !19
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %151, i32 noundef -1, ptr noundef @.str.1, i32 noundef 70, ptr noundef @__FUNCTION__.TensorConnectSet, ptr noundef @.str.14)
  br label %152

152:                                              ; preds = %150, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154, %131
  br label %156

156:                                              ; preds = %155, %113
  br label %157

157:                                              ; preds = %156, %92
  br label %158

158:                                              ; preds = %157, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr @morn_network_flag, align 4, !tbaa !19
  %162 = icmp eq i32 %161, 1
  br i1 %162, label %163, label %276

163:                                              ; preds = %160
  br label %164

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 5, ptr %17, align 4, !tbaa !19
  %165 = load i32, ptr %17, align 4, !tbaa !19
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %172

167:                                              ; preds = %164
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.MTensor, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !29
  call void @TensorRedefine(ptr noundef %168, i32 noundef -1, i32 noundef -1, i32 noundef -1, i32 noundef -1, ptr noundef %171, i32 noundef -1)
  br label %241

172:                                              ; preds = %164
  %173 = load i32, ptr %17, align 4, !tbaa !19
  %174 = icmp eq i32 %173, 4
  br i1 %174, label %175, label %193

175:                                              ; preds = %172
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.MTensor, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !30
  %180 = add nsw i32 %179, 0
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.MTensor, ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 4, !tbaa !26
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MTensor, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 8, !tbaa !27
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.MTensor, ptr %187, i32 0, i32 3
  %189 = load i32, ptr %188, align 4, !tbaa !28
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.MTensor, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !29
  call void @TensorRedefine(ptr noundef %176, i32 noundef %180, i32 noundef %183, i32 noundef %186, i32 noundef %189, ptr noundef %192, i32 noundef -1)
  br label %240

193:                                              ; preds = %172
  %194 = load i32, ptr %17, align 4, !tbaa !19
  %195 = icmp eq i32 %194, 5
  br i1 %195, label %196, label %211

196:                                              ; preds = %193
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.MTensor, ptr %198, i32 0, i32 0
  %200 = load i32, ptr %199, align 8, !tbaa !30
  %201 = add nsw i32 %200, 0
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.MTensor, ptr %202, i32 0, i32 1
  %204 = load i32, ptr %203, align 4, !tbaa !26
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.MTensor, ptr %205, i32 0, i32 2
  %207 = load i32, ptr %206, align 8, !tbaa !27
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.MTensor, ptr %208, i32 0, i32 3
  %210 = load i32, ptr %209, align 4, !tbaa !28
  call void @TensorRedefine(ptr noundef %197, i32 noundef %201, i32 noundef %204, i32 noundef %207, i32 noundef %210, ptr noundef null, i32 noundef -1)
  br label %239

211:                                              ; preds = %193
  %212 = load i32, ptr %17, align 4, !tbaa !19
  %213 = icmp eq i32 %212, 6
  br i1 %213, label %214, label %229

214:                                              ; preds = %211
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.MTensor, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 8, !tbaa !30
  %219 = add nsw i32 %218, 0
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.MTensor, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !26
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.MTensor, ptr %223, i32 0, i32 2
  %225 = load i32, ptr %224, align 8, !tbaa !27
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.MTensor, ptr %226, i32 0, i32 3
  %228 = load i32, ptr %227, align 4, !tbaa !28
  call void @TensorRedefine(ptr noundef %215, i32 noundef %219, i32 noundef %222, i32 noundef %225, i32 noundef %228, ptr noundef null, i32 noundef -1)
  br label %238

229:                                              ; preds = %211
  br label %230

230:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 1, ptr %18, align 4, !tbaa !19
  %231 = load i32, ptr %18, align 4, !tbaa !19
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %235

233:                                              ; preds = %230
  %234 = load i32, ptr %18, align 4, !tbaa !19
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %234, i32 noundef -1, ptr noundef @.str.1, i32 noundef 73, ptr noundef @__FUNCTION__.TensorConnectSet, ptr noundef @.str.14)
  br label %235

235:                                              ; preds = %233, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237, %214
  br label %239

239:                                              ; preds = %238, %196
  br label %240

240:                                              ; preds = %239, %175
  br label %241

241:                                              ; preds = %240, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %242

242:                                              ; preds = %241
  br label %243

243:                                              ; preds = %242
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.HandleTensorConnect, ptr %244, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !31
  %247 = icmp ne ptr %246, null
  br i1 %247, label %248, label %252

248:                                              ; preds = %243
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.HandleTensorConnect, ptr %249, i32 0, i32 1
  %251 = load ptr, ptr %250, align 8, !tbaa !31
  call void @mMemoryBlockRelease(ptr noundef %251)
  br label %252

252:                                              ; preds = %248, %243
  %253 = load i32, ptr %14, align 4, !tbaa !19
  %254 = sext i32 %253 to i64
  %255 = mul i64 %254, 4
  %256 = trunc i64 %255 to i32
  %257 = load i32, ptr %8, align 4, !tbaa !19
  %258 = call ptr @mMemoryBlockCreate(i32 noundef %256, i32 noundef %257)
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.HandleTensorConnect, ptr %259, i32 0, i32 1
  store ptr %258, ptr %260, align 8, !tbaa !31
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.HandleTensorConnect, ptr %261, i32 0, i32 1
  %263 = load ptr, ptr %262, align 8, !tbaa !31
  %264 = getelementptr inbounds %struct.MMemoryBlock, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !33
  %266 = load i32, ptr %14, align 4, !tbaa !19
  %267 = sext i32 %266 to i64
  %268 = mul i64 %267, 4
  call void @llvm.memset.p0.i64(ptr align 1 %265, i8 0, i64 %268, i1 false)
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.HandleTensorConnect, ptr %269, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8, !tbaa !31
  %272 = getelementptr inbounds %struct.MMemoryBlock, ptr %271, i32 0, i32 5
  store i32 0, ptr %272, align 8, !tbaa !35
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.HandleTensorConnect, ptr %273, i32 0, i32 1
  %275 = load ptr, ptr %274, align 8, !tbaa !31
  call void @mMemoryBlockWrite(ptr noundef %275)
  br label %276

276:                                              ; preds = %252, %160
  %277 = load ptr, ptr %10, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.HandleTensorConnect, ptr %277, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8, !tbaa !36
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %285

281:                                              ; preds = %276
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.HandleTensorConnect, ptr %282, i32 0, i32 0
  %284 = load ptr, ptr %283, align 8, !tbaa !36
  call void @mMemoryBlockRelease(ptr noundef %284)
  br label %285

285:                                              ; preds = %281, %276
  %286 = load i32, ptr %14, align 4, !tbaa !19
  %287 = sext i32 %286 to i64
  %288 = mul i64 %287, 4
  %289 = trunc i64 %288 to i32
  %290 = load i32, ptr %8, align 4, !tbaa !19
  %291 = call ptr @mMemoryBlockCreate(i32 noundef %289, i32 noundef %290)
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.HandleTensorConnect, ptr %292, i32 0, i32 0
  store ptr %291, ptr %293, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %294 = load ptr, ptr %10, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.HandleTensorConnect, ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !36
  %297 = getelementptr inbounds %struct.MMemoryBlock, ptr %296, i32 0, i32 2
  %298 = load ptr, ptr %297, align 8, !tbaa !33
  store ptr %298, ptr %19, align 8, !tbaa !5
  %299 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !5
  %300 = icmp eq ptr %299, null
  br i1 %300, label %301, label %325

301:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %302 = load i32, ptr %13, align 4, !tbaa !19
  %303 = sitofp i32 %302 to float
  %304 = fdiv float 2.000000e+00, %303
  %305 = fpext float %304 to double
  %306 = call double @sqrt(double noundef %305) #5
  %307 = fptrunc double %306 to float
  store float %307, ptr %20, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !19
  br label %308

308:                                              ; preds = %321, %301
  %309 = load i32, ptr %21, align 4, !tbaa !19
  %310 = load i32, ptr %14, align 4, !tbaa !19
  %311 = icmp slt i32 %309, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %308
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %324

313:                                              ; preds = %308
  %314 = load float, ptr %20, align 4, !tbaa !37
  %315 = call float @mNormalRand(float noundef 0.000000e+00, float noundef 1.000000e+00)
  %316 = fmul float %314, %315
  %317 = load ptr, ptr %19, align 8, !tbaa !5
  %318 = load i32, ptr %21, align 4, !tbaa !19
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds float, ptr %317, i64 %319
  store float %316, ptr %320, align 4, !tbaa !37
  br label %321

321:                                              ; preds = %313
  %322 = load i32, ptr %21, align 4, !tbaa !19
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %21, align 4, !tbaa !19
  br label %308, !llvm.loop !38

324:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %344

325:                                              ; preds = %285
  br label %326

326:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  %327 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.MLayer, ptr %328, i32 0, i32 0
  %330 = getelementptr inbounds [32 x i8], ptr %329, i64 0, i64 0
  %331 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %327, ptr noundef @.str.15, ptr noundef %330, ptr noundef @.str.16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %332 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %332, ptr %23, align 8, !tbaa !5
  %333 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !5
  %334 = getelementptr inbounds [64 x i8], ptr %22, i64 0, i64 0
  %335 = getelementptr inbounds i8, ptr %334, i64 0
  %336 = call i32 @m_Hash(ptr noundef %335, i32 noundef -1)
  %337 = load i32, ptr %14, align 4, !tbaa !19
  %338 = sext i32 %337 to i64
  %339 = mul i64 %338, 4
  %340 = trunc i64 %339 to i32
  %341 = call i32 @mMORNRead(ptr noundef %333, i32 noundef %336, ptr noundef %23, i32 noundef 1, i32 noundef %340)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  br label %342

342:                                              ; preds = %326
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343, %324
  %345 = load ptr, ptr %10, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.HandleTensorConnect, ptr %345, i32 0, i32 0
  %347 = load ptr, ptr %346, align 8, !tbaa !36
  %348 = getelementptr inbounds %struct.MMemoryBlock, ptr %347, i32 0, i32 5
  store i32 0, ptr %348, align 8, !tbaa !35
  %349 = load ptr, ptr %10, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.HandleTensorConnect, ptr %349, i32 0, i32 0
  %351 = load ptr, ptr %350, align 8, !tbaa !36
  call void @mMemoryBlockWrite(ptr noundef %351)
  %352 = load ptr, ptr %9, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.MHandle, ptr %352, i32 0, i32 1
  store volatile i32 1, ptr %353, align 4, !tbaa !40
  %354 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %354, ptr %2, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %355

355:                                              ; preds = %344, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %356 = load ptr, ptr %2, align 8
  ret ptr %356
}

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

declare void @TensorRedefine(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1

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

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

declare void @mMemoryBlockWrite(ptr noundef) #1

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

declare float @mNormalRand(float noundef, float noundef) #1

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

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

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

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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 56}
!10 = !{!"MLayer", !7, i64 0, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TensorConnectPara", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 28, !14, i64 32}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 48}
!17 = !{!18, !11, i64 24}
!18 = !{!"MTensor", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"MHandle", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!22 = !{!10, !11, i64 64}
!23 = !{!13, !11, i64 16}
!24 = !{!13, !11, i64 8}
!25 = !{!13, !11, i64 12}
!26 = !{!18, !11, i64 4}
!27 = !{!18, !11, i64 8}
!28 = !{!18, !11, i64 12}
!29 = !{!18, !6, i64 16}
!30 = !{!18, !11, i64 0}
!31 = !{!32, !6, i64 8}
!32 = !{!"HandleTensorConnect", !6, i64 0, !6, i64 8}
!33 = !{!34, !6, i64 8}
!34 = !{!"MMemoryBlock", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32}
!35 = !{!34, !11, i64 32}
!36 = !{!32, !6, i64 0}
!37 = !{!14, !14, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!21, !11, i64 4}


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

@morn_network_flag = external local_unnamed_addr global i32, align 4
@morn_network_parafile = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @endTensorConnect(ptr noundef) #1

declare void @mMemoryBlockRelease(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @TensorConnectSet(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca [64 x i8], align 16
  %3 = alloca ptr, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %6, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %6, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !16
  %15 = tail call ptr @GetHandle(ptr noundef %12, i32 noundef 16, i32 noundef -1197970358, ptr noundef nonnull @endTensorConnect) #5
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load i32, ptr %18, align 8, !tbaa !20
  %.not = icmp eq i32 %19, -1
  br i1 %.not, label %20, label %84

20:                                               ; preds = %1
  %21 = getelementptr inbounds i8, ptr %5, i64 16
  %22 = load i32, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !22
  %25 = mul i32 %24, %22
  %26 = getelementptr inbounds i8, ptr %5, i64 12
  %27 = load i32, ptr %26, align 4, !tbaa !23
  %28 = mul i32 %25, %27
  %29 = getelementptr inbounds i8, ptr %8, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !24
  %31 = getelementptr inbounds i8, ptr %8, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !25
  %33 = mul i32 %32, %30
  %34 = getelementptr inbounds i8, ptr %8, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !26
  %36 = mul i32 %33, %35
  %37 = add i32 %36, 1
  %38 = mul i32 %28, %37
  %39 = load i32, ptr %8, align 8, !tbaa !27
  tail call void @TensorRedefine(ptr noundef nonnull %12, i32 noundef %39, i32 noundef %22, i32 noundef %24, i32 noundef %27, ptr noundef null, i32 noundef -1) #5
  %40 = load i32, ptr @morn_network_flag, align 4, !tbaa !28
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %59

42:                                               ; preds = %20
  %43 = load i32, ptr %8, align 8, !tbaa !27
  %44 = load i32, ptr %29, align 4, !tbaa !24
  %45 = load i32, ptr %31, align 8, !tbaa !25
  %46 = load i32, ptr %34, align 4, !tbaa !26
  tail call void @TensorRedefine(ptr noundef %10, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, ptr noundef null, i32 noundef -1) #5
  %47 = getelementptr inbounds i8, ptr %17, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !29
  %.not97 = icmp eq ptr %48, null
  br i1 %.not97, label %50, label %49

49:                                               ; preds = %42
  tail call void @mMemoryBlockRelease(ptr noundef nonnull %48) #5
  br label %50

50:                                               ; preds = %49, %42
  %51 = sext i32 %38 to i64
  %52 = shl nsw i64 %51, 2
  %53 = trunc i64 %52 to i32
  %54 = tail call ptr @mMemoryBlockCreate(i32 noundef %53, i32 noundef %14) #5
  store ptr %54, ptr %47, align 8, !tbaa !29
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !31
  tail call void @llvm.memset.p0.i64(ptr align 1 %56, i8 0, i64 %52, i1 false)
  %57 = load ptr, ptr %47, align 8, !tbaa !29
  %58 = getelementptr inbounds i8, ptr %57, i64 32
  store i32 0, ptr %58, align 8, !tbaa !33
  tail call void @mMemoryBlockWrite(ptr noundef %57) #5
  br label %59

59:                                               ; preds = %50, %20
  %60 = load ptr, ptr %17, align 8, !tbaa !34
  %.not98 = icmp eq ptr %60, null
  br i1 %.not98, label %62, label %61

61:                                               ; preds = %59
  tail call void @mMemoryBlockRelease(ptr noundef nonnull %60) #5
  br label %62

62:                                               ; preds = %61, %59
  %63 = shl i32 %38, 2
  %64 = tail call ptr @mMemoryBlockCreate(i32 noundef %63, i32 noundef %14) #5
  store ptr %64, ptr %17, align 8, !tbaa !34
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load ptr, ptr %65, align 8, !tbaa !31
  %67 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !35
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %76

69:                                               ; preds = %62
  %70 = sitofp i32 %37 to float
  %71 = fdiv float 2.000000e+00, %70
  %sqrtf = tail call float @sqrtf(float noundef %71) #6
  %72 = icmp sgt i32 %38, 0
  br i1 %72, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %69
  %wide.trip.count = zext nneg i32 %38 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %73 = tail call float @mNormalRand(float noundef 0.000000e+00, float noundef 1.000000e+00) #5
  %74 = fmul float %sqrtf, %73
  %75 = getelementptr inbounds float, ptr %66, i64 %indvars.iv
  store float %74, ptr %75, align 4, !tbaa !36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !37

76:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #5
  %77 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull %0, ptr noundef nonnull @.str.16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr %66, ptr %3, align 8, !tbaa !35
  %78 = load ptr, ptr @morn_network_parafile, align 8, !tbaa !35
  %79 = call i32 @m_Hash(ptr noundef nonnull %2, i32 noundef -1) #5
  %80 = call i32 @mMORNRead(ptr noundef %78, i32 noundef %79, ptr noundef nonnull %3, i32 noundef 1, i32 noundef %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %69, %76
  %81 = load ptr, ptr %17, align 8, !tbaa !34
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  store i32 0, ptr %82, align 8, !tbaa !33
  call void @mMemoryBlockWrite(ptr noundef %81) #5
  %83 = getelementptr inbounds i8, ptr %15, i64 4
  store volatile i32 1, ptr %83, align 4, !tbaa !39
  br label %84

84:                                               ; preds = %1, %.loopexit
  ret ptr %17
}

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

declare void @TensorRedefine(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @mMemoryBlockCreate(i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @mMemoryBlockWrite(ptr noundef) local_unnamed_addr #2

declare float @mNormalRand(float noundef, float noundef) local_unnamed_addr #2

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

declare i32 @mMORNRead(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare float @sqrtf(float) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass