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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.LossRegister = type { [32 x i8], ptr, ptr }
%struct.TensorOutputPara = type { ptr, i32, i32, i32, ptr, ptr, [4 x [128 x i8]], float, float, float }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.mTensorOutputPara = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@morn_network_flag = external global i32, align 4
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@morn_loss_register_num = external global i32, align 4
@morn_loss_register = external global [64 x %struct.LossRegister], align 16
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 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 ptr @m_Malloc(i32 noundef) #1

declare ptr @m_INIRead(ptr noundef, i64 noundef, i64 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

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 @mTensorOutputPara(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
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = call ptr @m_Malloc(i32 noundef 568)
  store ptr %18, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = ptrtoint ptr %21 to i64
  %23 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %20, i64 noundef %22, i64 noundef ptrtoint (ptr @.str.10 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  %24 = call ptr @mNetworkLayer(ptr noundef %19, ptr noundef %23)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.TensorOutputPara, ptr %25, i32 0, i32 0
  store ptr %24, ptr %26, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TensorOutputPara, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  %32 = zext i1 %31 to i32
  store i32 %32, ptr %7, align 4, !tbaa !13
  %33 = load i32, ptr %7, align 4, !tbaa !13
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %27
  %36 = load i32, ptr %7, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %36, i32 noundef -1, ptr noundef @.str.3, i32 noundef 56, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.11)
  br label %37

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

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.TensorOutputPara, ptr %40, i32 0, i32 1
  store i32 -1, ptr %41, align 8, !tbaa !14
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = ptrtoint ptr %43 to i64
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TensorOutputPara, ptr %45, i32 0, i32 1
  %47 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %42, i64 noundef %44, i64 noundef ptrtoint (ptr @.str to i64), ptr noundef @.str.12, ptr noundef %46, i32 noundef -1, i32 noundef -1)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TensorOutputPara, ptr %48, i32 0, i32 2
  store i32 -1, ptr %49, align 4, !tbaa !15
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = ptrtoint ptr %51 to i64
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TensorOutputPara, ptr %53, i32 0, i32 2
  %55 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %50, i64 noundef %52, i64 noundef ptrtoint (ptr @.str.1 to i64), ptr noundef @.str.12, ptr noundef %54, i32 noundef -1, i32 noundef -1)
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TensorOutputPara, ptr %56, i32 0, i32 3
  store i32 -1, ptr %57, align 8, !tbaa !16
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = ptrtoint ptr %59 to i64
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.TensorOutputPara, ptr %61, i32 0, i32 3
  %63 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %58, i64 noundef %60, i64 noundef ptrtoint (ptr @.str.2 to i64), ptr noundef @.str.12, ptr noundef %62, i32 noundef -1, i32 noundef -1)
  %64 = load i32, ptr @morn_network_flag, align 4, !tbaa !13
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %39
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %67, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %306

68:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = ptrtoint ptr %70 to i64
  %72 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %69, i64 noundef %71, i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %72, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %78

75:                                               ; preds = %68
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %76, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %77, ptr %9, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %75, %68
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %10, align 4, !tbaa !13
  %83 = load i32, ptr %10, align 4, !tbaa !13
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %79
  %86 = load i32, ptr %10, align 4, !tbaa !13
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %86, i32 noundef -1, ptr noundef @.str.3, i32 noundef 66, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.15, ptr noundef %87)
  br label %88

88:                                               ; preds = %85, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %91

91:                                               ; preds = %120, %90
  %92 = load i32, ptr %11, align 4, !tbaa !13
  %93 = load i32, ptr @morn_loss_register_num, align 4, !tbaa !13
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %123

95:                                               ; preds = %91
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !13
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [64 x %struct.LossRegister], ptr @morn_loss_register, i64 0, i64 %98
  %100 = getelementptr inbounds %struct.LossRegister, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds [32 x i8], ptr %100, i64 0, i64 0
  %102 = call i32 @strcmp(ptr noundef %96, ptr noundef %101) #6
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %119

104:                                              ; preds = %95
  %105 = load i32, ptr %11, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [64 x %struct.LossRegister], ptr @morn_loss_register, i64 0, i64 %106
  %108 = getelementptr inbounds %struct.LossRegister, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 16, !tbaa !17
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.TensorOutputPara, ptr %110, i32 0, i32 4
  store ptr %109, ptr %111, align 8, !tbaa !19
  %112 = load i32, ptr %11, align 4, !tbaa !13
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [64 x %struct.LossRegister], ptr @morn_loss_register, i64 0, i64 %113
  %115 = getelementptr inbounds %struct.LossRegister, ptr %114, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.TensorOutputPara, ptr %117, i32 0, i32 5
  store ptr %116, ptr %118, align 8, !tbaa !21
  br label %123

119:                                              ; preds = %95
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %11, align 4, !tbaa !13
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %11, align 4, !tbaa !13
  br label %91, !llvm.loop !22

123:                                              ; preds = %104, %91
  br label %124

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %125 = load i32, ptr %11, align 4, !tbaa !13
  %126 = load i32, ptr @morn_loss_register_num, align 4, !tbaa !13
  %127 = icmp eq i32 %125, %126
  %128 = zext i1 %127 to i32
  store i32 %128, ptr %12, align 4, !tbaa !13
  %129 = load i32, ptr %12, align 4, !tbaa !13
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %133

131:                                              ; preds = %124
  %132 = load i32, ptr %12, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %132, i32 noundef -1, ptr noundef @.str.3, i32 noundef 76, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.16)
  br label %133

133:                                              ; preds = %131, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = ptrtoint ptr %137 to i64
  %139 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %136, i64 noundef %138, i64 noundef ptrtoint (ptr @.str.17 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %139, ptr %9, align 8, !tbaa !5
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %161

142:                                              ; preds = %135
  br label %143

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = call i64 @strlen(ptr noundef %144) #6
  %146 = icmp uge i64 %145, 128
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %13, align 4, !tbaa !13
  %148 = load i32, ptr %13, align 4, !tbaa !13
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %152

150:                                              ; preds = %143
  %151 = load i32, ptr %13, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %151, i32 noundef -1, ptr noundef @.str.3, i32 noundef 78, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.18)
  br label %152

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

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.TensorOutputPara, ptr %155, i32 0, i32 6
  %157 = getelementptr inbounds [4 x [128 x i8]], ptr %156, i64 0, i64 0
  %158 = getelementptr inbounds [128 x i8], ptr %157, i64 0, i64 0
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = call ptr @strcpy(ptr noundef %158, ptr noundef %159) #5
  br label %161

161:                                              ; preds = %154, %135
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = ptrtoint ptr %163 to i64
  %165 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %162, i64 noundef %164, i64 noundef ptrtoint (ptr @.str.19 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %165, ptr %9, align 8, !tbaa !5
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %187

168:                                              ; preds = %161
  br label %169

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = call i64 @strlen(ptr noundef %170) #6
  %172 = icmp uge i64 %171, 128
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %14, align 4, !tbaa !13
  %174 = load i32, ptr %14, align 4, !tbaa !13
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %178

176:                                              ; preds = %169
  %177 = load i32, ptr %14, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %177, i32 noundef -1, ptr noundef @.str.3, i32 noundef 79, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.18)
  br label %178

178:                                              ; preds = %176, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.TensorOutputPara, ptr %181, i32 0, i32 6
  %183 = getelementptr inbounds [4 x [128 x i8]], ptr %182, i64 0, i64 1
  %184 = getelementptr inbounds [128 x i8], ptr %183, i64 0, i64 0
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = call ptr @strcpy(ptr noundef %184, ptr noundef %185) #5
  br label %187

187:                                              ; preds = %180, %161
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = ptrtoint ptr %189 to i64
  %191 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %188, i64 noundef %190, i64 noundef ptrtoint (ptr @.str.20 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %191, ptr %9, align 8, !tbaa !5
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %213

194:                                              ; preds = %187
  br label %195

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = call i64 @strlen(ptr noundef %196) #6
  %198 = icmp uge i64 %197, 128
  %199 = zext i1 %198 to i32
  store i32 %199, ptr %15, align 4, !tbaa !13
  %200 = load i32, ptr %15, align 4, !tbaa !13
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %204

202:                                              ; preds = %195
  %203 = load i32, ptr %15, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %203, i32 noundef -1, ptr noundef @.str.3, i32 noundef 80, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.18)
  br label %204

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

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.TensorOutputPara, ptr %207, i32 0, i32 6
  %209 = getelementptr inbounds [4 x [128 x i8]], ptr %208, i64 0, i64 2
  %210 = getelementptr inbounds [128 x i8], ptr %209, i64 0, i64 0
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = call ptr @strcpy(ptr noundef %210, ptr noundef %211) #5
  br label %213

213:                                              ; preds = %206, %187
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = ptrtoint ptr %215 to i64
  %217 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %214, i64 noundef %216, i64 noundef ptrtoint (ptr @.str.21 to i64), ptr noundef inttoptr (i64 -1 to ptr), i32 noundef -1)
  store ptr %217, ptr %9, align 8, !tbaa !5
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %239

220:                                              ; preds = %213
  br label %221

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = call i64 @strlen(ptr noundef %222) #6
  %224 = icmp uge i64 %223, 128
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %16, align 4, !tbaa !13
  %226 = load i32, ptr %16, align 4, !tbaa !13
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %221
  %229 = load i32, ptr %16, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %229, i32 noundef -1, ptr noundef @.str.3, i32 noundef 81, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.18)
  br label %230

230:                                              ; preds = %228, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.TensorOutputPara, ptr %233, i32 0, i32 6
  %235 = getelementptr inbounds [4 x [128 x i8]], ptr %234, i64 0, i64 3
  %236 = getelementptr inbounds [128 x i8], ptr %235, i64 0, i64 0
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = call ptr @strcpy(ptr noundef %236, ptr noundef %237) #5
  br label %239

239:                                              ; preds = %232, %213
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.TensorOutputPara, ptr %240, i32 0, i32 7
  store float 0x3F50624DE0000000, ptr %241, align 8, !tbaa !24
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = ptrtoint ptr %243 to i64
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.TensorOutputPara, ptr %245, i32 0, i32 7
  %247 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %242, i64 noundef %244, i64 noundef ptrtoint (ptr @.str.22 to i64), ptr noundef @.str.23, ptr noundef %246, i32 noundef -1, i32 noundef -1)
  %248 = icmp eq ptr %247, null
  br i1 %248, label %249, label %254

249:                                              ; preds = %239
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.TensorOutputPara, ptr %251, i32 0, i32 7
  %253 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %250, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.22 to i64), ptr noundef @.str.23, ptr noundef %252, i32 noundef -1, i32 noundef -1)
  br label %254

254:                                              ; preds = %249, %239
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.TensorOutputPara, ptr %255, i32 0, i32 9
  store float 0x3FECCCCCC0000000, ptr %256, align 8, !tbaa !25
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = ptrtoint ptr %258 to i64
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.TensorOutputPara, ptr %260, i32 0, i32 9
  %262 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %257, i64 noundef %259, i64 noundef ptrtoint (ptr @.str.24 to i64), ptr noundef @.str.23, ptr noundef %261, i32 noundef -1, i32 noundef -1)
  %263 = icmp eq ptr %262, null
  br i1 %263, label %264, label %269

264:                                              ; preds = %254
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.TensorOutputPara, ptr %266, i32 0, i32 9
  %268 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %265, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.24 to i64), ptr noundef @.str.23, ptr noundef %267, i32 noundef -1, i32 noundef -1)
  br label %269

269:                                              ; preds = %264, %254
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.TensorOutputPara, ptr %270, i32 0, i32 8
  store float 0x3F847AE140000000, ptr %271, align 4, !tbaa !26
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = ptrtoint ptr %273 to i64
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.TensorOutputPara, ptr %275, i32 0, i32 8
  %277 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %272, i64 noundef %274, i64 noundef ptrtoint (ptr @.str.25 to i64), ptr noundef @.str.23, ptr noundef %276, i32 noundef -1, i32 noundef -1)
  %278 = icmp eq ptr %277, null
  br i1 %278, label %279, label %284

279:                                              ; preds = %269
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.TensorOutputPara, ptr %281, i32 0, i32 8
  %283 = call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %280, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.25 to i64), ptr noundef @.str.23, ptr noundef %282, i32 noundef -1, i32 noundef -1)
  br label %284

284:                                              ; preds = %279, %269
  br label %285

285:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.TensorOutputPara, ptr %286, i32 0, i32 8
  %288 = load float, ptr %287, align 4, !tbaa !26
  %289 = fcmp olt float %288, 0.000000e+00
  br i1 %289, label %295, label %290

290:                                              ; preds = %285
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.TensorOutputPara, ptr %291, i32 0, i32 8
  %293 = load float, ptr %292, align 4, !tbaa !26
  %294 = fcmp oge float %293, 1.000000e+00
  br label %295

295:                                              ; preds = %290, %285
  %296 = phi i1 [ true, %285 ], [ %294, %290 ]
  %297 = zext i1 %296 to i32
  store i32 %297, ptr %17, align 4, !tbaa !13
  %298 = load i32, ptr %17, align 4, !tbaa !13
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %302

300:                                              ; preds = %295
  %301 = load i32, ptr %17, align 4, !tbaa !13
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %301, i32 noundef -1, ptr noundef @.str.3, i32 noundef 86, ptr noundef @__FUNCTION__.mTensorOutputPara, ptr noundef @.str.26)
  br label %302

302:                                              ; preds = %300, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %305, ptr %3, align 8
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %306

306:                                              ; preds = %304, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %307 = load ptr, ptr %3, align 8
  ret ptr %307
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #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 = { 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 = { 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 = !{!"TensorOutputPara", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !12, i64 552, !12, i64 556, !12, i64 560}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !11, i64 16}
!17 = !{!18, !6, i64 32}
!18 = !{!"LossRegister", !7, i64 0, !6, i64 32, !6, i64 40}
!19 = !{!10, !6, i64 24}
!20 = !{!18, !6, i64 40}
!21 = !{!10, !6, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !12, i64 552}
!25 = !{!10, !12, i64 560}
!26 = !{!10, !12, i64 556}


; 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.LossRegister = type { [32 x i8], ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.mTensorOutputPara = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@morn_network_flag = external local_unnamed_addr global i32, align 4
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@morn_loss_register_num = external local_unnamed_addr global i32, align 4
@morn_loss_register = external global [64 x %struct.LossRegister], align 16
@.str.16 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1

declare ptr @m_Malloc(i32 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 @mTensorOutputPara(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = tail call ptr @m_Malloc(i32 noundef 568) #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.10 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.3, i32 noundef 56, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.11) #4
  br label %9

9:                                                ; preds = %8, %2
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 -1, ptr %10, align 8, !tbaa !12
  %11 = 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 @.str.12, ptr noundef nonnull %10, i32 noundef -1, i32 noundef -1) #4
  %12 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 -1, ptr %12, align 4, !tbaa !13
  %13 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.1 to i64), ptr noundef nonnull @.str.12, ptr noundef nonnull %12, i32 noundef -1, i32 noundef -1) #4
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 -1, ptr %14, align 8, !tbaa !14
  %15 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.2 to i64), ptr noundef nonnull @.str.12, ptr noundef nonnull %14, i32 noundef -1, i32 noundef -1) #4
  %16 = load i32, ptr @morn_network_flag, align 4, !tbaa !15
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %97, label %18

18:                                               ; preds = %9
  %19 = 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
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %18
  %22 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.13 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %.thread

24:                                               ; preds = %21
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 66, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.15, ptr noundef %1) #4
  br label %.thread

.thread:                                          ; preds = %18, %24, %21
  %.094105 = phi ptr [ null, %24 ], [ %22, %21 ], [ %19, %18 ]
  %25 = load i32, ptr @morn_loss_register_num, align 4, !tbaa !15
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph.preheader, label %.loopexit

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %35 ]
  %27 = getelementptr inbounds [64 x %struct.LossRegister], ptr @morn_loss_register, i64 0, i64 %indvars.iv
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.094105, ptr noundef nonnull dereferenceable(1) %27) #5
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %.lr.ph
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  %32 = getelementptr inbounds i8, ptr %27, i64 32
  %33 = getelementptr inbounds i8, ptr %3, i64 24
  %34 = load <2 x ptr>, ptr %32, align 16, !tbaa !16
  store <2 x ptr> %34, ptr %33, align 8, !tbaa !16
  br label %.loopexit

35:                                               ; preds = %.lr.ph
  %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.thread, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %.thread, %30
  %.095108 = phi i32 [ %31, %30 ], [ 0, %.thread ]
  %36 = icmp eq i32 %.095108, %25
  br i1 %36, label %.loopexit.thread, label %37

.loopexit.thread:                                 ; preds = %35, %.loopexit
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 76, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.16) #4
  br label %37

37:                                               ; preds = %.loopexit.thread, %.loopexit
  %38 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.17 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not = icmp eq ptr %38, null
  br i1 %.not, label %46, label %39

39:                                               ; preds = %37
  %40 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #5
  %41 = icmp ugt i64 %40, 127
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 78, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.18) #4
  br label %43

43:                                               ; preds = %42, %39
  %44 = getelementptr inbounds i8, ptr %3, i64 40
  %45 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) %38) #4
  br label %46

46:                                               ; preds = %43, %37
  %47 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.19 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not101 = icmp eq ptr %47, null
  br i1 %.not101, label %55, label %48

48:                                               ; preds = %46
  %49 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %47) #5
  %50 = icmp ugt i64 %49, 127
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 79, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.18) #4
  br label %52

52:                                               ; preds = %51, %48
  %53 = getelementptr inbounds i8, ptr %3, i64 168
  %54 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %53, ptr noundef nonnull dereferenceable(1) %47) #4
  br label %55

55:                                               ; preds = %52, %46
  %56 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.20 to i64), ptr noundef nonnull inttoptr (i64 -1 to ptr), i32 noundef -1) #4
  %.not102 = icmp eq ptr %56, null
  br i1 %.not102, label %64, label %57

57:                                               ; preds = %55
  %58 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %56) #5
  %59 = icmp ugt i64 %58, 127
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 80, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.18) #4
  br label %61

61:                                               ; preds = %60, %57
  %62 = getelementptr inbounds i8, ptr %3, i64 296
  %63 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %62, ptr noundef nonnull dereferenceable(1) %56) #4
  br label %64

64:                                               ; preds = %61, %55
  %65 = 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
  %.not103 = icmp eq ptr %65, null
  br i1 %.not103, label %73, label %66

66:                                               ; preds = %64
  %67 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %65) #5
  %68 = icmp ugt i64 %67, 127
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 81, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.18) #4
  br label %70

70:                                               ; preds = %69, %66
  %71 = getelementptr inbounds i8, ptr %3, i64 424
  %72 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %71, ptr noundef nonnull dereferenceable(1) %65) #4
  br label %73

73:                                               ; preds = %70, %64
  %74 = getelementptr inbounds i8, ptr %3, i64 552
  store float 0x3F50624DE0000000, ptr %74, align 8, !tbaa !19
  %75 = 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 @.str.23, ptr noundef nonnull %74, i32 noundef -1, i32 noundef -1) #4
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.22 to i64), ptr noundef nonnull @.str.23, ptr noundef nonnull %74, i32 noundef -1, i32 noundef -1) #4
  br label %79

79:                                               ; preds = %77, %73
  %80 = getelementptr inbounds i8, ptr %3, i64 560
  store float 0x3FECCCCCC0000000, ptr %80, align 8, !tbaa !20
  %81 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.24 to i64), ptr noundef nonnull @.str.23, ptr noundef nonnull %80, i32 noundef -1, i32 noundef -1) #4
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.24 to i64), ptr noundef nonnull @.str.23, ptr noundef nonnull %80, i32 noundef -1, i32 noundef -1) #4
  br label %85

85:                                               ; preds = %83, %79
  %86 = getelementptr inbounds i8, ptr %3, i64 556
  store float 0x3F847AE140000000, ptr %86, align 4, !tbaa !21
  %87 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef %4, i64 noundef ptrtoint (ptr @.str.25 to i64), ptr noundef nonnull @.str.23, ptr noundef nonnull %86, i32 noundef -1, i32 noundef -1) #4
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = tail call ptr (ptr, i64, i64, ptr, ...) @m_INIRead(ptr noundef %0, i64 noundef ptrtoint (ptr @.str.14 to i64), i64 noundef ptrtoint (ptr @.str.25 to i64), ptr noundef nonnull @.str.23, ptr noundef nonnull %86, i32 noundef -1, i32 noundef -1) #4
  br label %91

91:                                               ; preds = %85, %89
  %92 = load float, ptr %86, align 4, !tbaa !21
  %93 = fcmp olt float %92, 0.000000e+00
  %94 = fcmp oge float %92, 1.000000e+00
  %95 = or i1 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.3, i32 noundef 86, ptr noundef nonnull @__FUNCTION__.mTensorOutputPara, ptr noundef nonnull @.str.26) #4
  br label %97

97:                                               ; preds = %91, %96, %9
  ret ptr %3
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = !{!"TensorOutputPara", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !8, i64 40, !11, i64 552, !11, i64 556, !11, i64 560}
!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 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 12}
!14 = !{!6, !10, i64 16}
!15 = !{!10, !10, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !11, i64 552}
!20 = !{!6, !11, i64 560}
!21 = !{!6, !11, i64 556}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass