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

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@__FUNCTION__.mTensorGroupConvPara = external hidden unnamed_addr constant [21 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 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

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

declare ptr @m_Malloc(i32 noundef) #1

declare ptr @mNetworkLayer(ptr noundef, ptr noundef) #1

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ...) #1

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
define dso_local ptr @mTensorGroupConvPara(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %9 = call ptr @m_Malloc(i32 noundef 48)
  store ptr %9, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = ptrtoint ptr %11 to i64
  %13 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %10, i64 noundef %12, i64 noundef ptrtoint (ptr @.str to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %13, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call ptr @mNetworkLayer(ptr noundef %14, ptr noundef %15)
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %17, i32 0, i32 0
  store ptr %16, ptr %18, align 8, !tbaa !9
  br label %19

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp eq ptr %22, null
  %24 = zext i1 %23 to i32
  store i32 %24, ptr %7, align 4, !tbaa !13
  %25 = load i32, ptr %7, align 4, !tbaa !13
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %19
  %28 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %28, i32 noundef -1, ptr noundef @.str.1, i32 noundef 535, ptr noundef @__FUNCTION__.mTensorGroupConvPara, ptr noundef @.str.2)
  br label %29

29:                                               ; preds = %27, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.MLayer, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !14
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.TensorRegister, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds [32 x i8], ptr %39, i64 0, i64 0
  %41 = call i32 @strcmp(ptr noundef @.str.3, ptr noundef %40) #6
  %42 = icmp ne i32 %41, 0
  %43 = zext i1 %42 to i32
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %44, i32 0, i32 6
  store i32 %43, ptr %45, align 4, !tbaa !16
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = ptrtoint ptr %47 to i64
  %49 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %46, i64 noundef %48, i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %57

52:                                               ; preds = %31
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call i32 @atoi(ptr noundef %53) #6
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %55, i32 0, i32 1
  store i32 %54, ptr %56, align 8, !tbaa !17
  br label %60

57:                                               ; preds = %31
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %58, i32 0, i32 1
  store i32 1, ptr %59, align 8, !tbaa !17
  br label %60

60:                                               ; preds = %57, %52
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = ptrtoint ptr %62 to i64
  %64 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %61, i64 noundef %63, i64 noundef ptrtoint (ptr @.str.21 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %64, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %72

67:                                               ; preds = %60
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call i32 @atoi(ptr noundef %68) #6
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %70, i32 0, i32 10
  store i32 %69, ptr %71, align 4, !tbaa !18
  br label %75

72:                                               ; preds = %60
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %73, i32 0, i32 10
  store i32 -1, ptr %74, align 4, !tbaa !18
  br label %75

75:                                               ; preds = %72, %67
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = ptrtoint ptr %77 to i64
  %79 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %76, i64 noundef %78, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %79, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %87

82:                                               ; preds = %75
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = call i32 @atoi(ptr noundef %83) #6
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %85, i32 0, i32 2
  store i32 %84, ptr %86, align 4, !tbaa !19
  br label %90

87:                                               ; preds = %75
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %88, i32 0, i32 2
  store i32 1, ptr %89, align 4, !tbaa !19
  br label %90

90:                                               ; preds = %87, %82
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = ptrtoint ptr %92 to i64
  %94 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %91, i64 noundef %93, i64 noundef ptrtoint (ptr @.str.7 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %94, ptr %6, align 8, !tbaa !5
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %102

97:                                               ; preds = %90
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = call i32 @atoi(ptr noundef %98) #6
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %100, i32 0, i32 3
  store i32 %99, ptr %101, align 8, !tbaa !20
  br label %105

102:                                              ; preds = %90
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %103, i32 0, i32 3
  store i32 1, ptr %104, align 8, !tbaa !20
  br label %105

105:                                              ; preds = %102, %97
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = ptrtoint ptr %107 to i64
  %109 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %106, i64 noundef %108, i64 noundef ptrtoint (ptr @.str.22 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %109, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %117

112:                                              ; preds = %105
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = call i32 @atoi(ptr noundef %113) #6
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %115, i32 0, i32 11
  store i32 %114, ptr %116, align 8, !tbaa !21
  br label %123

117:                                              ; preds = %105
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %118, i32 0, i32 10
  %120 = load i32, ptr %119, align 4, !tbaa !18
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %121, i32 0, i32 11
  store i32 %120, ptr %122, align 8, !tbaa !21
  br label %123

123:                                              ; preds = %117, %112
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = ptrtoint ptr %125 to i64
  %127 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %124, i64 noundef %126, i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %127, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %135

130:                                              ; preds = %123
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = call i32 @atoi(ptr noundef %131) #6
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %133, i32 0, i32 4
  store i32 %132, ptr %134, align 4, !tbaa !22
  br label %138

135:                                              ; preds = %123
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %136, i32 0, i32 4
  store i32 1, ptr %137, align 4, !tbaa !22
  br label %138

138:                                              ; preds = %135, %130
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = ptrtoint ptr %140 to i64
  %142 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %139, i64 noundef %141, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %142, ptr %6, align 8, !tbaa !5
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %150

145:                                              ; preds = %138
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = call i32 @atoi(ptr noundef %146) #6
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %148, i32 0, i32 5
  store i32 %147, ptr %149, align 8, !tbaa !23
  br label %153

150:                                              ; preds = %138
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %151, i32 0, i32 5
  store i32 1, ptr %152, align 8, !tbaa !23
  br label %153

153:                                              ; preds = %150, %145
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = ptrtoint ptr %155 to i64
  %157 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %154, i64 noundef %156, i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %157, ptr %6, align 8, !tbaa !5
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %166

160:                                              ; preds = %153
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = call double @atof(ptr noundef %161) #6
  %163 = fptrunc double %162 to float
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %164, i32 0, i32 7
  store float %163, ptr %165, align 8, !tbaa !24
  br label %181

166:                                              ; preds = %153
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %167, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %168, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %177

171:                                              ; preds = %166
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = call double @atof(ptr noundef %172) #6
  %174 = fptrunc double %173 to float
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %175, i32 0, i32 7
  store float %174, ptr %176, align 8, !tbaa !24
  br label %180

177:                                              ; preds = %166
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %178, i32 0, i32 7
  store float 0x3F50624DE0000000, ptr %179, align 8, !tbaa !24
  br label %180

180:                                              ; preds = %177, %171
  br label %181

181:                                              ; preds = %180, %160
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = ptrtoint ptr %183 to i64
  %185 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %182, i64 noundef %184, i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %185, ptr %6, align 8, !tbaa !5
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %194

188:                                              ; preds = %181
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = call double @atof(ptr noundef %189) #6
  %191 = fptrunc double %190 to float
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %192, i32 0, i32 8
  store float %191, ptr %193, align 4, !tbaa !25
  br label %209

194:                                              ; preds = %181
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %195, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %196, ptr %6, align 8, !tbaa !5
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %205

199:                                              ; preds = %194
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = call double @atof(ptr noundef %200) #6
  %202 = fptrunc double %201 to float
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %203, i32 0, i32 8
  store float %202, ptr %204, align 4, !tbaa !25
  br label %208

205:                                              ; preds = %194
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %206, i32 0, i32 8
  store float 0x3F847AE140000000, ptr %207, align 4, !tbaa !25
  br label %208

208:                                              ; preds = %205, %199
  br label %209

209:                                              ; preds = %208, %188
  br label %210

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %211, i32 0, i32 8
  %213 = load float, ptr %212, align 4, !tbaa !25
  %214 = fcmp olt float %213, 0.000000e+00
  br i1 %214, label %220, label %215

215:                                              ; preds = %210
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %216, i32 0, i32 8
  %218 = load float, ptr %217, align 4, !tbaa !25
  %219 = fcmp oge float %218, 1.000000e+00
  br label %220

220:                                              ; preds = %215, %210
  %221 = phi i1 [ true, %210 ], [ %219, %215 ]
  %222 = zext i1 %221 to i32
  store i32 %222, ptr %8, align 4, !tbaa !13
  %223 = load i32, ptr %8, align 4, !tbaa !13
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %227

225:                                              ; preds = %220
  %226 = load i32, ptr %8, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %226, i32 noundef -1, ptr noundef @.str.1, i32 noundef 577, ptr noundef @__FUNCTION__.mTensorGroupConvPara, ptr noundef @.str.15)
  br label %227

227:                                              ; preds = %225, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = ptrtoint ptr %231 to i64
  %233 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %230, i64 noundef %232, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %233, ptr %6, align 8, !tbaa !5
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = icmp ne ptr %234, null
  br i1 %235, label %236, label %242

236:                                              ; preds = %229
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = call double @atof(ptr noundef %237) #6
  %239 = fptrunc double %238 to float
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %240, i32 0, i32 9
  store float %239, ptr %241, align 8, !tbaa !26
  br label %257

242:                                              ; preds = %229
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %243, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %244, ptr %6, align 8, !tbaa !5
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %253

247:                                              ; preds = %242
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = call double @atof(ptr noundef %248) #6
  %250 = fptrunc double %249 to float
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %251, i32 0, i32 9
  store float %250, ptr %252, align 8, !tbaa !26
  br label %256

253:                                              ; preds = %242
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.TensorGroupConvPara, ptr %254, i32 0, i32 9
  store float 0x3FECCCCCC0000000, ptr %255, align 8, !tbaa !26
  br label %256

256:                                              ; preds = %253, %247
  br label %257

257:                                              ; preds = %256, %236
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %258
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef 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 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !6, i64 0}
!10 = !{!"TensorGroupConvPara", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !11, i64 44, !11, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 32}
!15 = !{!"MLayer", !7, i64 0, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64}
!16 = !{!10, !11, i64 28}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !11, i64 44}
!19 = !{!10, !11, i64 12}
!20 = !{!10, !11, i64 16}
!21 = !{!10, !11, i64 48}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !11, i64 24}
!24 = !{!10, !12, i64 32}
!25 = !{!10, !12, i64 36}
!26 = !{!10, !12, i64 40}


; 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 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@__FUNCTION__.mTensorGroupConvPara = external hidden unnamed_addr constant [21 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #0

declare ptr @mNetworkLayer(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #0

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
define dso_local ptr @mTensorGroupConvPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = tail call ptr @m_Malloc(i32 noundef 48) #4
  %4 = ptrtoint ptr %1 to i64
  %5 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %6 = tail call ptr @mNetworkLayer(ptr noundef %0, ptr noundef %5) #4
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 535, ptr noundef nonnull @__FUNCTION__.mTensorGroupConvPara, ptr noundef nonnull @.str.2) #4
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  br label %9

9:                                                ; preds = %8, %2
  %10 = phi ptr [ %.pre, %8 ], [ %6, %2 ]
  %11 = getelementptr inbounds i8, ptr %10, i64 32
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %13
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull dereferenceable(1) %14) #5
  %16 = icmp ne i32 %15, 0
  %17 = zext i1 %16 to i32
  %18 = getelementptr inbounds i8, ptr %3, i64 28
  store i32 %17, ptr %18, align 4, !tbaa !14
  %19 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.4 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %22, label %20

20:                                               ; preds = %9
  %21 = tail call i32 @atoi(ptr nocapture noundef %19) #5
  br label %22

22:                                               ; preds = %9, %20
  %.sink = phi i32 [ %21, %20 ], [ 1, %9 ]
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.sink, ptr %23, align 8
  %24 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.21 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not100 = icmp eq ptr %24, null
  br i1 %.not100, label %27, label %25

25:                                               ; preds = %22
  %26 = tail call i32 @atoi(ptr nocapture noundef %24) #5
  br label %27

27:                                               ; preds = %22, %25
  %.sink112 = phi i32 [ %26, %25 ], [ -1, %22 ]
  %28 = getelementptr inbounds i8, ptr %3, i64 44
  store i32 %.sink112, ptr %28, align 4
  %29 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.6 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not101 = icmp eq ptr %29, null
  br i1 %.not101, label %32, label %30

30:                                               ; preds = %27
  %31 = tail call i32 @atoi(ptr nocapture noundef %29) #5
  br label %32

32:                                               ; preds = %27, %30
  %.sink113 = phi i32 [ %31, %30 ], [ 1, %27 ]
  %33 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 %.sink113, ptr %33, align 4
  %34 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.7 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not102 = icmp eq ptr %34, null
  br i1 %.not102, label %37, label %35

35:                                               ; preds = %32
  %36 = tail call i32 @atoi(ptr nocapture noundef %34) #5
  br label %37

37:                                               ; preds = %32, %35
  %.sink114 = phi i32 [ %36, %35 ], [ 1, %32 ]
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %.sink114, ptr %38, align 8
  %39 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.22 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not103 = icmp eq ptr %39, null
  br i1 %.not103, label %42, label %40

40:                                               ; preds = %37
  %41 = tail call i32 @atoi(ptr nocapture noundef %39) #5
  br label %44

42:                                               ; preds = %37
  %43 = load i32, ptr %28, align 4, !tbaa !15
  br label %44

44:                                               ; preds = %42, %40
  %.sink115 = phi i32 [ %43, %42 ], [ %41, %40 ]
  %45 = getelementptr inbounds i8, ptr %3, i64 48
  store i32 %.sink115, ptr %45, align 8
  %46 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.8 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not104 = icmp eq ptr %46, null
  br i1 %.not104, label %49, label %47

47:                                               ; preds = %44
  %48 = tail call i32 @atoi(ptr nocapture noundef %46) #5
  br label %49

49:                                               ; preds = %44, %47
  %.sink116 = phi i32 [ %48, %47 ], [ 1, %44 ]
  %50 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %.sink116, ptr %50, align 4
  %51 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not105 = icmp eq ptr %51, null
  br i1 %.not105, label %54, label %52

52:                                               ; preds = %49
  %53 = tail call i32 @atoi(ptr nocapture noundef %51) #5
  br label %54

54:                                               ; preds = %49, %52
  %.sink117 = phi i32 [ %53, %52 ], [ 1, %49 ]
  %55 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 %.sink117, ptr %55, align 8
  %56 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not106 = icmp eq ptr %56, null
  br i1 %.not106, label %57, label %.sink.split

57:                                               ; preds = %54
  %58 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not107 = icmp eq ptr %58, null
  br i1 %.not107, label %61, label %.sink.split

.sink.split:                                      ; preds = %57, %54
  %.sink125 = phi ptr [ %56, %54 ], [ %58, %57 ]
  %59 = tail call double @atof(ptr noundef %.sink125) #5
  %60 = fptrunc double %59 to float
  br label %61

61:                                               ; preds = %.sink.split, %57
  %.sink118 = phi float [ 0x3F50624DE0000000, %57 ], [ %60, %.sink.split ]
  %62 = getelementptr inbounds i8, ptr %3, i64 32
  store float %.sink118, ptr %62, align 8, !tbaa !16
  %63 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not108 = icmp eq ptr %63, null
  br i1 %.not108, label %64, label %.sink.split126

64:                                               ; preds = %61
  %65 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.14 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not109 = icmp eq ptr %65, null
  br i1 %.not109, label %68, label %.sink.split126

.sink.split126:                                   ; preds = %64, %61
  %.sink128 = phi ptr [ %63, %61 ], [ %65, %64 ]
  %66 = tail call double @atof(ptr noundef %.sink128) #5
  %67 = fptrunc double %66 to float
  br label %68

68:                                               ; preds = %.sink.split126, %64
  %.sink120 = phi float [ 0x3F847AE140000000, %64 ], [ %67, %.sink.split126 ]
  %69 = getelementptr inbounds i8, ptr %3, i64 36
  store float %.sink120, ptr %69, align 4, !tbaa !17
  %70 = fcmp olt float %.sink120, 0.000000e+00
  %71 = fcmp oge float %.sink120, 1.000000e+00
  %72 = or i1 %70, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 577, ptr noundef nonnull @__FUNCTION__.mTensorGroupConvPara, ptr noundef nonnull @.str.15) #4
  br label %74

74:                                               ; preds = %73, %68
  %75 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not110 = icmp eq ptr %75, null
  br i1 %.not110, label %76, label %.sink.split129

76:                                               ; preds = %74
  %77 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.12 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not111 = icmp eq ptr %77, null
  br i1 %.not111, label %80, label %.sink.split129

.sink.split129:                                   ; preds = %76, %74
  %.sink131 = phi ptr [ %75, %74 ], [ %77, %76 ]
  %78 = tail call double @atof(ptr noundef %.sink131) #5
  %79 = fptrunc double %78 to float
  br label %80

80:                                               ; preds = %.sink.split129, %76
  %.sink122 = phi float [ 0x3FECCCCCC0000000, %76 ], [ %79, %.sink.split129 ]
  %81 = getelementptr inbounds i8, ptr %3, i64 40
  store float %.sink122, ptr %81, align 8, !tbaa !18
  ret ptr %3
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"TensorGroupConvPara", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !10, i64 44, !10, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !10, i64 32}
!13 = !{!"MLayer", !8, i64 0, !10, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64}
!14 = !{!6, !10, i64 28}
!15 = !{!6, !10, i64 44}
!16 = !{!6, !11, i64 32}
!17 = !{!6, !11, i64 36}
!18 = !{!6, !11, i64 40}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass