; LLVM IR from huawei-noah/bolt :: compute/tensor/tests/test_l2norm.ll (Z10l2normTestiPPc8DataType)

; 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.ArchInfo = type { i32, ptr }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL15UT_CPU_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL18UT_SERIAL_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10l2normTestiPPc8DataType(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.TensorDesc, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.TensorDesc, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca %struct.TensorDesc, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %class.Tensor, align 8
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca %class.Tensor, align 8
  %23 = alloca %class.Tensor, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.TensorDesc, align 4
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %class.Tensor, align 8
  %32 = alloca %class.Tensor, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %class.Tensor, align 8
  %36 = alloca %class.Tensor, align 8
  %37 = alloca i32, align 4
  %38 = alloca %class.Tensor, align 8
  %39 = alloca %class.Tensor, align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %class.Tensor, align 8
  %44 = alloca %class.Tensor, align 8
  %45 = alloca i32, align 4
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %class.Tensor, align 8
  %51 = alloca %class.Tensor, align 8
  %52 = alloca i32, align 4
  %53 = alloca double, align 8
  %54 = alloca [150 x i8], align 16
  %55 = alloca [150 x i8], align 16
  %56 = alloca [120 x i8], align 16
  %57 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 4
  br i1 %59, label %70, label %60

60:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %61 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %63)
  %65 = load ptr, ptr @stdout, align 8, !tbaa !9
  %66 = call i32 @fflush(ptr noundef %65)
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %68 = load ptr, ptr @stdout, align 8, !tbaa !9
  %69 = call i32 @fflush(ptr noundef %68)
  call void @exit(i32 noundef 1) #10
  unreachable

70:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 1
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = call i32 @atoi(ptr noundef %73) #11
  store i32 %74, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 2
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = call i32 @atoi(ptr noundef %77) #11
  store i32 %78, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 3
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = call i32 @atoi(ptr noundef %81) #11
  store i32 %82, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 15, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #9
  %83 = load i32, ptr %6, align 4, !tbaa !11
  %84 = load i32, ptr %11, align 4, !tbaa !13
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %88 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %14)
  store i32 %88, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %89 = load i32, ptr %13, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !11
  %91 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %89, i32 noundef %90, i32 noundef 0)
  store ptr %91, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef byval(%struct.TensorDesc) align 8 %17)
          to label %92 unwind label %124

92:                                               ; preds = %70
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %93 unwind label %124

93:                                               ; preds = %92
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  %94 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %20, i32 noundef 1)
          to label %95 unwind label %128

95:                                               ; preds = %93
  %96 = load ptr, ptr %15, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %97 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %21)
          to label %98 unwind label %128

98:                                               ; preds = %95
  %99 = zext i32 %97 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %94, ptr noundef %96, i64 noundef %99)
          to label %100 unwind label %128

100:                                              ; preds = %98
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
          to label %101 unwind label %132

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef 1)
          to label %102 unwind label %136

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %103 = invoke noundef i32 @_Z24l2norm_infer_output_sizeP6TensorS0_P8ArchInfo(ptr noundef %16, ptr noundef %22, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %104 unwind label %140

104:                                              ; preds = %102
  store i32 %103, ptr %24, align 4, !tbaa !17
  %105 = load i32, ptr %24, align 4, !tbaa !17
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %148

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %108 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %25, align 4, !tbaa !5
  %110 = load i32, ptr %25, align 4, !tbaa !5
  %111 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %110)
          to label %112 unwind label %144

112:                                              ; preds = %107
  %113 = load ptr, ptr @stdout, align 8, !tbaa !9
  %114 = invoke i32 @fflush(ptr noundef %113)
          to label %115 unwind label %144

115:                                              ; preds = %112
  %116 = load i32, ptr %24, align 4, !tbaa !17
  %117 = invoke ptr @ee2str(i32 noundef %116)
          to label %118 unwind label %144

118:                                              ; preds = %115
  %119 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %117)
          to label %120 unwind label %144

120:                                              ; preds = %118
  %121 = load ptr, ptr @stdout, align 8, !tbaa !9
  %122 = invoke i32 @fflush(ptr noundef %121)
          to label %123 unwind label %144

123:                                              ; preds = %120
  call void @exit(i32 noundef 1) #10
  unreachable

124:                                              ; preds = %92, %70
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %18, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %19, align 4
  br label %427

128:                                              ; preds = %98, %95, %93
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %18, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %427

132:                                              ; preds = %100
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %18, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %19, align 4
  br label %426

136:                                              ; preds = %101
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %18, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %19, align 4
  br label %425

140:                                              ; preds = %102
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %18, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %19, align 4
  br label %184

144:                                              ; preds = %120, %118, %115, %112, %107
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %18, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %184

148:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %149 unwind label %185

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 92, ptr %26) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %26, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %150 unwind label %189

150:                                              ; preds = %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %26, i64 92, i1 false), !tbaa.struct !15
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef byval(%struct.TensorDesc) align 8 %27)
          to label %151 unwind label %189

151:                                              ; preds = %150
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %152 unwind label %189

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %153 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %154 unwind label %193

154:                                              ; preds = %152
  store i32 %153, ptr %28, align 4, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !5
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = load i32, ptr %9, align 4, !tbaa !5
  %158 = mul i32 %156, %157
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = mul i32 %158, %159
  %161 = icmp eq i32 %155, %160
  br i1 %161, label %162, label %170

162:                                              ; preds = %154
  %163 = load i32, ptr %28, align 4, !tbaa !5
  %164 = load i32, ptr %8, align 4, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = mul i32 %164, %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = mul i32 %166, %167
  %169 = icmp eq i32 %163, %168
  br i1 %169, label %201, label %170

170:                                              ; preds = %162, %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %171 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %172 = trunc i64 %171 to i32
  store i32 %172, ptr %29, align 4, !tbaa !5
  %173 = load i32, ptr %29, align 4, !tbaa !5
  %174 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %173)
          to label %175 unwind label %197

175:                                              ; preds = %170
  %176 = load ptr, ptr @stdout, align 8, !tbaa !9
  %177 = invoke i32 @fflush(ptr noundef %176)
          to label %178 unwind label %197

178:                                              ; preds = %175
  %179 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %180 unwind label %197

180:                                              ; preds = %178
  %181 = load ptr, ptr @stdout, align 8, !tbaa !9
  %182 = invoke i32 @fflush(ptr noundef %181)
          to label %183 unwind label %197

183:                                              ; preds = %180
  call void @exit(i32 noundef 1) #10
  unreachable

184:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %424

185:                                              ; preds = %148
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %18, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %19, align 4
  br label %424

189:                                              ; preds = %151, %150, %149
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %18, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %19, align 4
  br label %423

193:                                              ; preds = %152
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %18, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %19, align 4
  br label %422

197:                                              ; preds = %180, %178, %175, %170
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %18, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %422

201:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %202 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef %31, ptr noundef %32, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %203 unwind label %223

203:                                              ; preds = %201
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  store i32 %202, ptr %30, align 4, !tbaa !17
  %204 = load i32, ptr %30, align 4, !tbaa !17
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %231

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  %207 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %208 = trunc i64 %207 to i32
  store i32 %208, ptr %33, align 4, !tbaa !5
  %209 = load i32, ptr %33, align 4, !tbaa !5
  %210 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %209)
          to label %211 unwind label %227

211:                                              ; preds = %206
  %212 = load ptr, ptr @stdout, align 8, !tbaa !9
  %213 = invoke i32 @fflush(ptr noundef %212)
          to label %214 unwind label %227

214:                                              ; preds = %211
  %215 = load i32, ptr %30, align 4, !tbaa !17
  %216 = invoke ptr @ee2str(i32 noundef %215)
          to label %217 unwind label %227

217:                                              ; preds = %214
  %218 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %216)
          to label %219 unwind label %227

219:                                              ; preds = %217
  %220 = load ptr, ptr @stdout, align 8, !tbaa !9
  %221 = invoke i32 @fflush(ptr noundef %220)
          to label %222 unwind label %227

222:                                              ; preds = %219
  call void @exit(i32 noundef 1) #10
  unreachable

223:                                              ; preds = %201
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %18, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %253

227:                                              ; preds = %219, %217, %214, %211, %206
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %18, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %253

231:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %232 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef %35, ptr noundef %36, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %233 unwind label %254

233:                                              ; preds = %231
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  store i32 %232, ptr %34, align 4, !tbaa !17
  %234 = load i32, ptr %34, align 4, !tbaa !17
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %262

236:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %237 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %238 = trunc i64 %237 to i32
  store i32 %238, ptr %37, align 4, !tbaa !5
  %239 = load i32, ptr %37, align 4, !tbaa !5
  %240 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %239)
          to label %241 unwind label %258

241:                                              ; preds = %236
  %242 = load ptr, ptr @stdout, align 8, !tbaa !9
  %243 = invoke i32 @fflush(ptr noundef %242)
          to label %244 unwind label %258

244:                                              ; preds = %241
  %245 = load i32, ptr %34, align 4, !tbaa !17
  %246 = invoke ptr @ee2str(i32 noundef %245)
          to label %247 unwind label %258

247:                                              ; preds = %244
  %248 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %246)
          to label %249 unwind label %258

249:                                              ; preds = %247
  %250 = load ptr, ptr @stdout, align 8, !tbaa !9
  %251 = invoke i32 @fflush(ptr noundef %250)
          to label %252 unwind label %258

252:                                              ; preds = %249
  call void @exit(i32 noundef 1) #10
  unreachable

253:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %422

254:                                              ; preds = %231
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %18, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  br label %276

258:                                              ; preds = %249, %247, %244, %241, %236
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %18, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %276

262:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %263 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %38, i32 noundef 1)
          to label %264 unwind label %277

264:                                              ; preds = %262
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %265 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %39, i32 noundef 1)
          to label %266 unwind label %281

266:                                              ; preds = %264
  %267 = load i32, ptr %28, align 4, !tbaa !5
  %268 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %263, ptr noundef %265, i32 noundef %267, i32 noundef %268, float noundef 0x3FA99999A0000000)
          to label %269 unwind label %281

269:                                              ; preds = %266
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %270 = invoke noundef double @_Z10ut_time_msv()
          to label %271 unwind label %286

271:                                              ; preds = %269
  store double %270, ptr %40, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %272

272:                                              ; preds = %321, %271
  %273 = load i32, ptr %41, align 4, !tbaa !5
  %274 = icmp slt i32 %273, 6
  br i1 %274, label %290, label %275

275:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %325

276:                                              ; preds = %258, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %422

277:                                              ; preds = %262
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %18, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %19, align 4
  br label %285

281:                                              ; preds = %266, %264
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %18, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  br label %285

285:                                              ; preds = %281, %277
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  br label %422

286:                                              ; preds = %269
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %18, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %19, align 4
  br label %421

290:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %291 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef %43, ptr noundef %44, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %292 unwind label %312

292:                                              ; preds = %290
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  store i32 %291, ptr %42, align 4, !tbaa !17
  %293 = load i32, ptr %42, align 4, !tbaa !17
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %320

295:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  %296 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %297 = trunc i64 %296 to i32
  store i32 %297, ptr %45, align 4, !tbaa !5
  %298 = load i32, ptr %45, align 4, !tbaa !5
  %299 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %298)
          to label %300 unwind label %316

300:                                              ; preds = %295
  %301 = load ptr, ptr @stdout, align 8, !tbaa !9
  %302 = invoke i32 @fflush(ptr noundef %301)
          to label %303 unwind label %316

303:                                              ; preds = %300
  %304 = load i32, ptr %42, align 4, !tbaa !17
  %305 = invoke ptr @ee2str(i32 noundef %304)
          to label %306 unwind label %316

306:                                              ; preds = %303
  %307 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %305)
          to label %308 unwind label %316

308:                                              ; preds = %306
  %309 = load ptr, ptr @stdout, align 8, !tbaa !9
  %310 = invoke i32 @fflush(ptr noundef %309)
          to label %311 unwind label %316

311:                                              ; preds = %308
  call void @exit(i32 noundef 1) #10
  unreachable

312:                                              ; preds = %290
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %18, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %324

316:                                              ; preds = %308, %306, %303, %300, %295
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %18, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %324

320:                                              ; preds = %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %321

321:                                              ; preds = %320
  %322 = load i32, ptr %41, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %41, align 4, !tbaa !5
  br label %272, !llvm.loop !21

324:                                              ; preds = %316, %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %421

325:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %326 = invoke noundef double @_Z10ut_time_msv()
          to label %327 unwind label %338

327:                                              ; preds = %325
  store double %326, ptr %46, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %328 = load double, ptr %46, align 8, !tbaa !19
  %329 = load double, ptr %40, align 8, !tbaa !19
  %330 = fsub double %328, %329
  %331 = fdiv double %330, 6.000000e+00
  store double %331, ptr %47, align 8, !tbaa !19
  %332 = invoke noundef double @_Z10ut_time_msv()
          to label %333 unwind label %342

333:                                              ; preds = %327
  store double %332, ptr %40, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %334

334:                                              ; preds = %377, %333
  %335 = load i32, ptr %48, align 4, !tbaa !5
  %336 = icmp slt i32 %335, 6
  br i1 %336, label %346, label %337

337:                                              ; preds = %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %381

338:                                              ; preds = %325
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %18, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %19, align 4
  br label %420

342:                                              ; preds = %381, %327
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %18, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %19, align 4
  br label %419

346:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  %347 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef %50, ptr noundef %51, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %348 unwind label %368

348:                                              ; preds = %346
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  store i32 %347, ptr %49, align 4, !tbaa !17
  %349 = load i32, ptr %49, align 4, !tbaa !17
  %350 = icmp ne i32 %349, 0
  br i1 %350, label %351, label %376

351:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #9
  %352 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %353 = trunc i64 %352 to i32
  store i32 %353, ptr %52, align 4, !tbaa !5
  %354 = load i32, ptr %52, align 4, !tbaa !5
  %355 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %354)
          to label %356 unwind label %372

356:                                              ; preds = %351
  %357 = load ptr, ptr @stdout, align 8, !tbaa !9
  %358 = invoke i32 @fflush(ptr noundef %357)
          to label %359 unwind label %372

359:                                              ; preds = %356
  %360 = load i32, ptr %49, align 4, !tbaa !17
  %361 = invoke ptr @ee2str(i32 noundef %360)
          to label %362 unwind label %372

362:                                              ; preds = %359
  %363 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %361)
          to label %364 unwind label %372

364:                                              ; preds = %362
  %365 = load ptr, ptr @stdout, align 8, !tbaa !9
  %366 = invoke i32 @fflush(ptr noundef %365)
          to label %367 unwind label %372

367:                                              ; preds = %364
  call void @exit(i32 noundef 1) #10
  unreachable

368:                                              ; preds = %346
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %18, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %19, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  br label %380

372:                                              ; preds = %364, %362, %359, %356, %351
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %18, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  br label %380

376:                                              ; preds = %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %377

377:                                              ; preds = %376
  %378 = load i32, ptr %48, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %48, align 4, !tbaa !5
  br label %334, !llvm.loop !23

380:                                              ; preds = %372, %368
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %419

381:                                              ; preds = %337
  %382 = invoke noundef double @_Z10ut_time_msv()
          to label %383 unwind label %342

383:                                              ; preds = %381
  store double %382, ptr %46, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  %384 = load double, ptr %46, align 8, !tbaa !19
  %385 = load double, ptr %40, align 8, !tbaa !19
  %386 = fsub double %384, %385
  %387 = fdiv double %386, 6.000000e+00
  store double %387, ptr %53, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 150, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 150, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %56) #9
  %388 = getelementptr inbounds [120 x i8], ptr %56, i64 0, i64 0
  %389 = load i32, ptr %8, align 4, !tbaa !5
  %390 = load i32, ptr %9, align 4, !tbaa !5
  %391 = load i32, ptr %10, align 4, !tbaa !5
  %392 = load i32, ptr %8, align 4, !tbaa !5
  %393 = load i32, ptr %9, align 4, !tbaa !5
  %394 = load i32, ptr %10, align 4, !tbaa !5
  %395 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %388, ptr noundef @.str.3, i32 noundef %389, i32 noundef %390, i32 noundef %391, i32 noundef %392, i32 noundef %393, i32 noundef %394) #9
  %396 = getelementptr inbounds [150 x i8], ptr %54, i64 0, i64 0
  %397 = getelementptr inbounds [120 x i8], ptr %56, i64 0, i64 0
  %398 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %396, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %397) #9
  %399 = getelementptr inbounds [150 x i8], ptr %55, i64 0, i64 0
  %400 = getelementptr inbounds [120 x i8], ptr %56, i64 0, i64 0
  %401 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %399, ptr noundef @.str.4, ptr noundef @.str.6, ptr noundef %400) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  %402 = load i32, ptr %13, align 4, !tbaa !5
  %403 = uitofp i32 %402 to double
  store double %403, ptr %57, align 8, !tbaa !19
  %404 = load i32, ptr %6, align 4, !tbaa !11
  %405 = getelementptr inbounds [150 x i8], ptr %54, i64 0, i64 0
  %406 = load double, ptr %57, align 8, !tbaa !19
  %407 = load double, ptr %47, align 8, !tbaa !19
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %404, ptr noundef %405, double noundef %406, double noundef %407)
          to label %408 unwind label %415

408:                                              ; preds = %383
  %409 = load i32, ptr %6, align 4, !tbaa !11
  %410 = getelementptr inbounds [150 x i8], ptr %55, i64 0, i64 0
  %411 = load double, ptr %57, align 8, !tbaa !19
  %412 = load double, ptr %53, align 8, !tbaa !19
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %409, ptr noundef %410, double noundef %411, double noundef %412)
          to label %413 unwind label %415

413:                                              ; preds = %408
  %414 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %414) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %26) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret i32 0

415:                                              ; preds = %408, %383
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %18, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %419

419:                                              ; preds = %415, %380, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  br label %420

420:                                              ; preds = %419, %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %421

421:                                              ; preds = %420, %324, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %422

422:                                              ; preds = %421, %285, %276, %253, %197, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %423

423:                                              ; preds = %422, %189
  call void @llvm.lifetime.end.p0(i64 92, ptr %26) #9
  br label %424

424:                                              ; preds = %423, %185, %184
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  br label %425

425:                                              ; preds = %424, %136
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  br label %426

426:                                              ; preds = %425, %132
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  br label %427

427:                                              ; preds = %426, %128, %124
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %428

428:                                              ; preds = %427
  %429 = load ptr, ptr %18, align 8
  %430 = load i32, ptr %19, align 4
  %431 = insertvalue { ptr, i32 } poison, ptr %429, 0
  %432 = insertvalue { ptr, i32 } %431, i32 %430, 1
  resume { ptr, i32 } %432
}

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #2

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

declare i32 @fflush(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef, i32 noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

declare noundef i32 @_Z24l2norm_infer_output_sizeP6TensorS0_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

declare noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef) #6

declare noundef double @_Z10ut_time_msv() #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6ut_log8DataTypePcdd(i32 noundef, ptr noundef, double noundef, double noundef) #6

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { noreturn 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 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { inlinehint mustprogress 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS10DataFormat", !7, i64 0}
!15 = !{i64 0, i64 4, !11, i64 4, i64 4, !13, i64 8, i64 4, !5, i64 12, i64 80, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS2EE", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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.ArchInfo = type { i32, ptr }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL15UT_CPU_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL18UT_SERIAL_ARCHINFO = external hidden global %struct.ArchInfo, align 8
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10l2normTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.TensorDesc, align 8
  %5 = alloca %class.Tensor, align 8
  %6 = alloca %class.Tensor, align 8
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %class.Tensor, align 8
  %9 = alloca %struct.TensorDesc, align 8
  %10 = alloca %class.Tensor, align 8
  %11 = alloca %class.Tensor, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %class.Tensor, align 8
  %14 = alloca %class.Tensor, align 8
  %15 = alloca %class.Tensor, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca %class.Tensor, align 8
  %18 = alloca %class.Tensor, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca [150 x i8], align 16
  %21 = alloca [150 x i8], align 16
  %22 = alloca [120 x i8], align 16
  %23 = icmp eq i32 %0, 4
  br i1 %23, label %33, label %24

24:                                               ; preds = %3
  %25 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %26 = trunc i64 %25 to i32
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %26)
  %28 = load ptr, ptr @stdout, align 8, !tbaa !5
  %29 = tail call i32 @fflush(ptr noundef %28)
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = tail call i32 @fflush(ptr noundef %31)
  tail call void @exit(i32 noundef 1) #11
  unreachable

33:                                               ; preds = %3
  %34 = getelementptr inbounds i8, ptr %1, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = tail call i32 @atoi(ptr nocapture noundef %35) #12
  %37 = getelementptr inbounds i8, ptr %1, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = tail call i32 @atoi(ptr nocapture noundef %38) #12
  %40 = getelementptr inbounds i8, ptr %1, i64 24
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = tail call i32 @atoi(ptr nocapture noundef %41) #12
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %4) #10
  call void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %4, i32 noundef %2, i32 noundef 15, i32 noundef %36, i32 noundef %39, i32 noundef %42)
  %43 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
  %44 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %43, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %45 unwind label %67

45:                                               ; preds = %33
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %46 unwind label %67

46:                                               ; preds = %45
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %47 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %6, i32 noundef 1)
          to label %48 unwind label %69

48:                                               ; preds = %46
  %49 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %50 unwind label %69

50:                                               ; preds = %48
  %51 = zext i32 %49 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %47, ptr noundef %44, i64 noundef %51)
          to label %52 unwind label %69

52:                                               ; preds = %50
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1)
          to label %53 unwind label %71

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %54 unwind label %73

54:                                               ; preds = %53
  %55 = invoke noundef i32 @_Z24l2norm_infer_output_sizeP6TensorS0_P8ArchInfo(ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %56 unwind label %75

56:                                               ; preds = %54
  %.not = icmp eq i32 %55, 0
  br i1 %.not, label %77, label %57

57:                                               ; preds = %56
  %58 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %59 = trunc i64 %58 to i32
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %59)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = call i32 @fflush(ptr noundef %61)
  %63 = call ptr @ee2str(i32 noundef %55)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %63)
  %65 = load ptr, ptr @stdout, align 8, !tbaa !5
  %66 = call i32 @fflush(ptr noundef %65)
  call void @exit(i32 noundef 1) #11
  unreachable

67:                                               ; preds = %45, %33
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %222

69:                                               ; preds = %50, %48, %46
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  br label %222

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %221

73:                                               ; preds = %53
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %220

75:                                               ; preds = %54
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %219

77:                                               ; preds = %56
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %78 unwind label %97

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #10
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %79 unwind label %99

79:                                               ; preds = %78
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
          to label %80 unwind label %99

80:                                               ; preds = %79
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %81 unwind label %99

81:                                               ; preds = %80
  %82 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %83 unwind label %101

83:                                               ; preds = %81
  %84 = mul i32 %39, %36
  %85 = mul i32 %84, %42
  %86 = icmp eq i32 %43, %85
  %87 = icmp eq i32 %82, %85
  %or.cond = and i1 %86, %87
  br i1 %or.cond, label %103, label %88

88:                                               ; preds = %83
  %89 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %90 = trunc i64 %89 to i32
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %90)
  %92 = load ptr, ptr @stdout, align 8, !tbaa !5
  %93 = call i32 @fflush(ptr noundef %92)
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %95 = load ptr, ptr @stdout, align 8, !tbaa !5
  %96 = call i32 @fflush(ptr noundef %95)
  call void @exit(i32 noundef 1) #11
  unreachable

97:                                               ; preds = %77
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %219

99:                                               ; preds = %80, %79, %78
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %218

101:                                              ; preds = %81
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %218

103:                                              ; preds = %83
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %104 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %105 unwind label %116

105:                                              ; preds = %103
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  %.not82 = icmp eq i32 %104, 0
  br i1 %.not82, label %118, label %106

106:                                              ; preds = %105
  %107 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %108 = trunc i64 %107 to i32
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %108)
  %110 = load ptr, ptr @stdout, align 8, !tbaa !5
  %111 = call i32 @fflush(ptr noundef %110)
  %112 = call ptr @ee2str(i32 noundef %104)
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %112)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !5
  %115 = call i32 @fflush(ptr noundef %114)
  call void @exit(i32 noundef 1) #11
  unreachable

116:                                              ; preds = %103
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %218

118:                                              ; preds = %105
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %119 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %120 unwind label %131

120:                                              ; preds = %118
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %.not83 = icmp eq i32 %119, 0
  br i1 %.not83, label %133, label %121

121:                                              ; preds = %120
  %122 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %123 = trunc i64 %122 to i32
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %123)
  %125 = load ptr, ptr @stdout, align 8, !tbaa !5
  %126 = call i32 @fflush(ptr noundef %125)
  %127 = call ptr @ee2str(i32 noundef %119)
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %127)
  %129 = load ptr, ptr @stdout, align 8, !tbaa !5
  %130 = call i32 @fflush(ptr noundef %129)
  call void @exit(i32 noundef 1) #11
  unreachable

131:                                              ; preds = %118
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %218

133:                                              ; preds = %120
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %134 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %14, i32 noundef 1)
          to label %135 unwind label %153

135:                                              ; preds = %133
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %136 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %15, i32 noundef 1)
          to label %137 unwind label %155

137:                                              ; preds = %135
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %134, ptr noundef %136, i32 noundef %82, i32 noundef %2, float noundef 0x3FA99999A0000000)
          to label %138 unwind label %155

138:                                              ; preds = %137
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %139 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader98.preheader unwind label %158

.preheader98.preheader:                           ; preds = %138
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %140 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %160 unwind label %171

.preheader98.1:                                   ; preds = %160
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %141 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %142 unwind label %171

142:                                              ; preds = %.preheader98.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97.1 = icmp eq i32 %141, 0
  br i1 %.not97.1, label %.preheader98.2, label %161

.preheader98.2:                                   ; preds = %142
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %143 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %144 unwind label %171

144:                                              ; preds = %.preheader98.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97.2 = icmp eq i32 %143, 0
  br i1 %.not97.2, label %.preheader98.3, label %161

.preheader98.3:                                   ; preds = %144
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %145 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %146 unwind label %171

146:                                              ; preds = %.preheader98.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97.3 = icmp eq i32 %145, 0
  br i1 %.not97.3, label %.preheader98.4, label %161

.preheader98.4:                                   ; preds = %146
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %147 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %148 unwind label %171

148:                                              ; preds = %.preheader98.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97.4 = icmp eq i32 %147, 0
  br i1 %.not97.4, label %.preheader98.5, label %161

.preheader98.5:                                   ; preds = %148
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  %149 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %150 unwind label %171

150:                                              ; preds = %.preheader98.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97.5 = icmp eq i32 %149, 0
  br i1 %.not97.5, label %151, label %161

151:                                              ; preds = %150
  %152 = invoke noundef double @_Z10ut_time_msv()
          to label %173 unwind label %190

153:                                              ; preds = %133
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %137, %135
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  br label %157

157:                                              ; preds = %155, %153
  %.pn = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %218

158:                                              ; preds = %138
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %218

160:                                              ; preds = %.preheader98.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  %.not97 = icmp eq i32 %140, 0
  br i1 %.not97, label %.preheader98.1, label %161

161:                                              ; preds = %150, %148, %146, %144, %142, %160
  %.lcssa103 = phi i32 [ %140, %160 ], [ %141, %142 ], [ %143, %144 ], [ %145, %146 ], [ %147, %148 ], [ %149, %150 ]
  %162 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %163 = trunc i64 %162 to i32
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %163)
  %165 = load ptr, ptr @stdout, align 8, !tbaa !5
  %166 = call i32 @fflush(ptr noundef %165)
  %167 = call ptr @ee2str(i32 noundef %.lcssa103)
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %167)
  %169 = load ptr, ptr @stdout, align 8, !tbaa !5
  %170 = call i32 @fflush(ptr noundef %169)
  call void @exit(i32 noundef 1) #11
  unreachable

171:                                              ; preds = %.preheader98.5, %.preheader98.4, %.preheader98.3, %.preheader98.2, %.preheader98.1, %.preheader98.preheader
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  br label %218

173:                                              ; preds = %151
  %174 = fsub double %152, %139
  %175 = fdiv double %174, 6.000000e+00
  %176 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %192

.preheader.preheader:                             ; preds = %173
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %177 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %194 unwind label %205

.preheader.1:                                     ; preds = %194
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %178 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %179 unwind label %205

179:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88.1 = icmp eq i32 %178, 0
  br i1 %.not88.1, label %.preheader.2, label %195

.preheader.2:                                     ; preds = %179
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %180 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %181 unwind label %205

181:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88.2 = icmp eq i32 %180, 0
  br i1 %.not88.2, label %.preheader.3, label %195

.preheader.3:                                     ; preds = %181
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %182 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %183 unwind label %205

183:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88.3 = icmp eq i32 %182, 0
  br i1 %.not88.3, label %.preheader.4, label %195

.preheader.4:                                     ; preds = %183
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %184 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %185 unwind label %205

185:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88.4 = icmp eq i32 %184, 0
  br i1 %.not88.4, label %.preheader.5, label %195

.preheader.5:                                     ; preds = %185
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %186 = invoke noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %187 unwind label %205

187:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88.5 = icmp eq i32 %186, 0
  br i1 %.not88.5, label %188, label %195

188:                                              ; preds = %187
  %189 = invoke noundef double @_Z10ut_time_msv()
          to label %207 unwind label %192

190:                                              ; preds = %151
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %218

192:                                              ; preds = %188, %173
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %218

194:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %.not88 = icmp eq i32 %177, 0
  br i1 %.not88, label %.preheader.1, label %195

195:                                              ; preds = %187, %185, %183, %181, %179, %194
  %.lcssa = phi i32 [ %177, %194 ], [ %178, %179 ], [ %180, %181 ], [ %182, %183 ], [ %184, %185 ], [ %186, %187 ]
  %196 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %197 = trunc i64 %196 to i32
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %197)
  %199 = load ptr, ptr @stdout, align 8, !tbaa !5
  %200 = call i32 @fflush(ptr noundef %199)
  %201 = call ptr @ee2str(i32 noundef %.lcssa)
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %201)
  %203 = load ptr, ptr @stdout, align 8, !tbaa !5
  %204 = call i32 @fflush(ptr noundef %203)
  call void @exit(i32 noundef 1) #11
  unreachable

205:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %218

207:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #10
  %208 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %36, i32 noundef %39, i32 noundef %42, i32 noundef %36, i32 noundef %39, i32 noundef %42) #10
  %209 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %22) #10
  %210 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.6, ptr noundef nonnull %22) #10
  %211 = uitofp i32 %43 to double
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %20, double noundef %211, double noundef %175)
          to label %212 unwind label %216

212:                                              ; preds = %207
  %213 = fsub double %189, %176
  %214 = fdiv double %213, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %21, double noundef %211, double noundef %214)
          to label %215 unwind label %216

215:                                              ; preds = %212
  call void @free(ptr noundef %44) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #10
  ret i32 0

216:                                              ; preds = %212, %207
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %20) #10
  br label %218

218:                                              ; preds = %101, %116, %131, %157, %190, %216, %205, %192, %171, %158, %99
  %.pn89.pn.pn = phi { ptr, i32 } [ %100, %99 ], [ %.pn, %157 ], [ %132, %131 ], [ %117, %116 ], [ %102, %101 ], [ %172, %171 ], [ %159, %158 ], [ %191, %190 ], [ %206, %205 ], [ %217, %216 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  br label %219

219:                                              ; preds = %218, %97, %75
  %.pn89.pn.pn.pn = phi { ptr, i32 } [ %.pn89.pn.pn, %218 ], [ %98, %97 ], [ %76, %75 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %220

220:                                              ; preds = %219, %73
  %.pn89.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn89.pn.pn.pn, %219 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %221

221:                                              ; preds = %220, %71
  %.pn89.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn89.pn.pn.pn.pn, %220 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %222

222:                                              ; preds = %221, %69, %67
  %.pn89.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn89.pn.pn.pn.pn.pn, %221 ], [ %70, %69 ], [ %68, %67 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #10
  resume { ptr, i32 } %.pn89.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #7 align 2

declare noundef i32 @_Z24l2norm_infer_output_sizeP6TensorS0_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare noundef i32 @_Z6l2norm6TensorS_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #6

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #8

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6ut_log8DataTypePcdd(i32 noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #9

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 = { 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 #6 = { inlinehint mustprogress 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 #7 = { inlinehint mustprogress 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 #8 = { "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 #9 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { 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++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass