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

; 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.TensorDeconvPara = type { ptr, i32, i32, i32, i32, i32, i32, float, float, float }
%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 [94 x i8], align 1
@__FUNCTION__.mTensorDeconvPara = external hidden unnamed_addr constant [18 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.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = 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

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorDeconvPara(ptr noundef %0, ptr noundef %1) #1 {
  %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.TensorDeconvPara, 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.TensorDeconvPara, 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 102, ptr noundef @__FUNCTION__.mTensorDeconvPara, 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.TensorDeconvPara, 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.TensorDeconvPara, 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.TensorDeconvPara, 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.TensorDeconvPara, 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.5 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.TensorDeconvPara, ptr %70, i32 0, i32 2
  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.TensorDeconvPara, ptr %73, i32 0, i32 2
  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.TensorDeconvPara, ptr %85, i32 0, i32 3
  store i32 %84, ptr %86, align 8, !tbaa !19
  br label %90

87:                                               ; preds = %75
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TensorDeconvPara, ptr %88, i32 0, i32 3
  store i32 1, ptr %89, align 8, !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.TensorDeconvPara, ptr %100, i32 0, i32 4
  store i32 %99, ptr %101, align 4, !tbaa !20
  br label %105

102:                                              ; preds = %90
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TensorDeconvPara, ptr %103, i32 0, i32 4
  store i32 1, ptr %104, align 4, !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.8 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.TensorDeconvPara, ptr %115, i32 0, i32 5
  store i32 %114, ptr %116, align 8, !tbaa !21
  br label %120

117:                                              ; preds = %105
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.TensorDeconvPara, ptr %118, i32 0, i32 5
  store i32 1, ptr %119, align 8, !tbaa !21
  br label %120

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

127:                                              ; preds = %120
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call double @atof(ptr noundef %128) #6
  %130 = fptrunc double %129 to float
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.TensorDeconvPara, ptr %131, i32 0, i32 7
  store float %130, ptr %132, align 8, !tbaa !22
  br label %148

133:                                              ; preds = %120
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %134, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %135, ptr %6, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %144

138:                                              ; preds = %133
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = call double @atof(ptr noundef %139) #6
  %141 = fptrunc double %140 to float
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.TensorDeconvPara, ptr %142, i32 0, i32 7
  store float %141, ptr %143, align 8, !tbaa !22
  br label %147

144:                                              ; preds = %133
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.TensorDeconvPara, ptr %145, i32 0, i32 7
  store float 0x3F50624DE0000000, ptr %146, align 8, !tbaa !22
  br label %147

147:                                              ; preds = %144, %138
  br label %148

148:                                              ; preds = %147, %127
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = ptrtoint ptr %150 to i64
  %152 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %149, i64 noundef %151, i64 noundef ptrtoint (ptr @.str.11 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %152, ptr %6, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %161

155:                                              ; preds = %148
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = call double @atof(ptr noundef %156) #6
  %158 = fptrunc double %157 to float
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.TensorDeconvPara, ptr %159, i32 0, i32 8
  store float %158, ptr %160, align 4, !tbaa !23
  br label %176

161:                                              ; preds = %148
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %162, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.11 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %163, ptr %6, align 8, !tbaa !5
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %172

166:                                              ; preds = %161
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = call double @atof(ptr noundef %167) #6
  %169 = fptrunc double %168 to float
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.TensorDeconvPara, ptr %170, i32 0, i32 8
  store float %169, ptr %171, align 4, !tbaa !23
  br label %175

172:                                              ; preds = %161
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.TensorDeconvPara, ptr %173, i32 0, i32 8
  store float 0x3F847AE140000000, ptr %174, align 4, !tbaa !23
  br label %175

175:                                              ; preds = %172, %166
  br label %176

176:                                              ; preds = %175, %155
  br label %177

177:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.TensorDeconvPara, ptr %178, i32 0, i32 8
  %180 = load float, ptr %179, align 4, !tbaa !23
  %181 = fcmp olt float %180, 0.000000e+00
  br i1 %181, label %187, label %182

182:                                              ; preds = %177
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.TensorDeconvPara, ptr %183, i32 0, i32 8
  %185 = load float, ptr %184, align 4, !tbaa !23
  %186 = fcmp oge float %185, 1.000000e+00
  br label %187

187:                                              ; preds = %182, %177
  %188 = phi i1 [ true, %177 ], [ %186, %182 ]
  %189 = zext i1 %188 to i32
  store i32 %189, ptr %8, align 4, !tbaa !13
  %190 = load i32, ptr %8, align 4, !tbaa !13
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %194

192:                                              ; preds = %187
  %193 = load i32, ptr %8, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %193, i32 noundef -1, ptr noundef @.str.1, i32 noundef 138, ptr noundef @__FUNCTION__.mTensorDeconvPara, ptr noundef @.str.12)
  br label %194

194:                                              ; preds = %192, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = ptrtoint ptr %198 to i64
  %200 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %197, i64 noundef %199, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %200, ptr %6, align 8, !tbaa !5
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %209

203:                                              ; preds = %196
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = call double @atof(ptr noundef %204) #6
  %206 = fptrunc double %205 to float
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.TensorDeconvPara, ptr %207, i32 0, i32 9
  store float %206, ptr %208, align 8, !tbaa !24
  br label %224

209:                                              ; preds = %196
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %210, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %211, ptr %6, align 8, !tbaa !5
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %220

214:                                              ; preds = %209
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = call double @atof(ptr noundef %215) #6
  %217 = fptrunc double %216 to float
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.TensorDeconvPara, ptr %218, i32 0, i32 9
  store float %217, ptr %219, align 8, !tbaa !24
  br label %223

220:                                              ; preds = %209
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.TensorDeconvPara, ptr %221, i32 0, i32 9
  store float 0x3FECCCCCC0000000, ptr %222, align 8, !tbaa !24
  br label %223

223:                                              ; preds = %220, %214
  br label %224

224:                                              ; preds = %223, %203
  %225 = 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 %225
}

declare ptr @m_Malloc(i32 noundef) #2

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

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

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

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

; 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 = { 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 = { 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 #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 = !{!"TensorDeconvPara", !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 = !{!"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 12}
!19 = !{!10, !11, i64 16}
!20 = !{!10, !11, i64 20}
!21 = !{!10, !11, i64 24}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !12, i64 36}
!24 = !{!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 [94 x i8], align 1
@__FUNCTION__.mTensorDeconvPara = external hidden unnamed_addr constant [18 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.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @mTensorDeconvPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %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 102, ptr noundef nonnull @__FUNCTION__.mTensorDeconvPara, 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.5 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not85 = icmp eq ptr %24, null
  br i1 %.not85, label %27, label %25

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

27:                                               ; preds = %22, %25
  %.sink95 = phi i32 [ %26, %25 ], [ 1, %22 ]
  %28 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 %.sink95, 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
  %.not86 = icmp eq ptr %29, null
  br i1 %.not86, label %32, label %30

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

32:                                               ; preds = %27, %30
  %.sink96 = phi i32 [ %31, %30 ], [ 1, %27 ]
  %33 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %.sink96, ptr %33, align 8
  %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
  %.not87 = icmp eq ptr %34, null
  br i1 %.not87, label %37, label %35

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

37:                                               ; preds = %32, %35
  %.sink97 = phi i32 [ %36, %35 ], [ 1, %32 ]
  %38 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %.sink97, ptr %38, align 4
  %39 = 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
  %.not88 = icmp eq ptr %39, null
  br i1 %.not88, label %42, label %40

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

42:                                               ; preds = %37, %40
  %.sink98 = phi i32 [ %41, %40 ], [ 1, %37 ]
  %43 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 %.sink98, ptr %43, align 8
  %44 = 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
  %.not89 = icmp eq ptr %44, null
  br i1 %.not89, label %45, label %.sink.split

45:                                               ; preds = %42
  %46 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.9 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not90 = icmp eq ptr %46, null
  br i1 %.not90, label %49, label %.sink.split

.sink.split:                                      ; preds = %45, %42
  %.sink106 = phi ptr [ %44, %42 ], [ %46, %45 ]
  %47 = tail call double @atof(ptr noundef %.sink106) #5
  %48 = fptrunc double %47 to float
  br label %49

49:                                               ; preds = %.sink.split, %45
  %.sink99 = phi float [ 0x3F50624DE0000000, %45 ], [ %48, %.sink.split ]
  %50 = getelementptr inbounds i8, ptr %3, i64 32
  store float %.sink99, ptr %50, align 8, !tbaa !15
  %51 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.11 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not91 = icmp eq ptr %51, null
  br i1 %.not91, label %52, label %.sink.split107

52:                                               ; preds = %49
  %53 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.11 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not92 = icmp eq ptr %53, null
  br i1 %.not92, label %56, label %.sink.split107

.sink.split107:                                   ; preds = %52, %49
  %.sink109 = phi ptr [ %51, %49 ], [ %53, %52 ]
  %54 = tail call double @atof(ptr noundef %.sink109) #5
  %55 = fptrunc double %54 to float
  br label %56

56:                                               ; preds = %.sink.split107, %52
  %.sink101 = phi float [ 0x3F847AE140000000, %52 ], [ %55, %.sink.split107 ]
  %57 = getelementptr inbounds i8, ptr %3, i64 36
  store float %.sink101, ptr %57, align 4, !tbaa !16
  %58 = fcmp olt float %.sink101, 0.000000e+00
  %59 = fcmp oge float %.sink101, 1.000000e+00
  %60 = or i1 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 138, ptr noundef nonnull @__FUNCTION__.mTensorDeconvPara, ptr noundef nonnull @.str.12) #4
  br label %62

62:                                               ; preds = %61, %56
  %63 = 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
  %.not93 = icmp eq ptr %63, null
  br i1 %.not93, label %64, label %.sink.split110

64:                                               ; preds = %62
  %65 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.10 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not94 = icmp eq ptr %65, null
  br i1 %.not94, label %68, label %.sink.split110

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

68:                                               ; preds = %.sink.split110, %64
  %.sink103 = phi float [ 0x3FECCCCCC0000000, %64 ], [ %67, %.sink.split110 ]
  %69 = getelementptr inbounds i8, ptr %3, i64 40
  store float %.sink103, ptr %69, align 8, !tbaa !17
  ret ptr %3
}

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #1

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

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

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

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

; 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 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"TensorDeconvPara", !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}
!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, !11, i64 32}
!16 = !{!6, !11, i64 36}
!17 = !{!6, !11, i64 40}


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