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

; 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.ScaleParamSpec = type { i32, i32 }
%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 [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9scaleTestiPPc8DataType(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.ScaleParamSpec, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.TensorDesc, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.TensorDesc, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %class.Tensor, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca %class.Tensor, align 8
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca %class.Tensor, align 8
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca %class.Tensor, align 8
  %32 = alloca %struct.ScaleParamSpec, align 4
  %33 = alloca %class.Tensor, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %class.Tensor, align 8
  %37 = alloca %struct.ScaleParamSpec, align 4
  %38 = alloca %class.Tensor, align 8
  %39 = alloca i32, align 4
  %40 = alloca %class.Tensor, align 8
  %41 = alloca %class.Tensor, align 8
  %42 = alloca double, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %class.Tensor, align 8
  %46 = alloca %struct.ScaleParamSpec, align 4
  %47 = alloca %class.Tensor, align 8
  %48 = alloca i32, align 4
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca [150 x i8], align 16
  %52 = alloca [120 x i8], align 16
  %53 = 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
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 5
  br i1 %55, label %66, label %56

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

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

94:                                               ; preds = %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef byval(%struct.TensorDesc) align 8 %22)
          to label %95 unwind label %149

95:                                               ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef byval(%struct.TensorDesc) align 8 %23)
          to label %96 unwind label %149

96:                                               ; preds = %95
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %97 unwind label %149

97:                                               ; preds = %96
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %98 unwind label %149

98:                                               ; preds = %97
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  %99 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %24, i32 noundef 1)
          to label %100 unwind label %153

100:                                              ; preds = %98
  %101 = load ptr, ptr %17, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  %102 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %25)
          to label %103 unwind label %153

103:                                              ; preds = %100
  %104 = zext i32 %102 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %99, ptr noundef %101, i64 noundef %104)
          to label %105 unwind label %153

105:                                              ; preds = %103
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %106 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %26, i32 noundef 1)
          to label %107 unwind label %157

107:                                              ; preds = %105
  %108 = load ptr, ptr %17, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %14, i64 92, i1 false), !tbaa.struct !17
  %109 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %27)
          to label %110 unwind label %157

110:                                              ; preds = %107
  %111 = zext i32 %109 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %106, ptr noundef %108, i64 noundef %111)
          to label %112 unwind label %157

112:                                              ; preds = %110
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = load i32, ptr %6, align 4, !tbaa !11
  %115 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %113, i32 noundef %114, i32 noundef 0)
          to label %116 unwind label %161

116:                                              ; preds = %112
  store ptr %115, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !11
  %119 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %117, i32 noundef %118, i32 noundef 0)
          to label %120 unwind label %165

120:                                              ; preds = %116
  store ptr %119, ptr %29, align 8, !tbaa !9
  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) %18) #9
  %121 = load ptr, ptr %28, align 8, !tbaa !9
  %122 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  %123 = load i64, ptr %32, align 4
  %124 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef %31, ptr noundef %121, ptr noundef %122, i64 %123, ptr noundef %33, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %125 unwind label %169

125:                                              ; preds = %120
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  store i32 %124, ptr %30, align 4, !tbaa !20
  %126 = load i32, ptr %30, align 4, !tbaa !20
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %177

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %129 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %34, align 4, !tbaa !5
  %131 = load i32, ptr %34, align 4, !tbaa !5
  %132 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %131)
          to label %133 unwind label %173

133:                                              ; preds = %128
  %134 = load ptr, ptr @stdout, align 8, !tbaa !9
  %135 = invoke i32 @fflush(ptr noundef %134)
          to label %136 unwind label %173

136:                                              ; preds = %133
  %137 = load i32, ptr %30, align 4, !tbaa !20
  %138 = invoke ptr @ee2str(i32 noundef %137)
          to label %139 unwind label %173

139:                                              ; preds = %136
  %140 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %138)
          to label %141 unwind label %173

141:                                              ; preds = %139
  %142 = load ptr, ptr @stdout, align 8, !tbaa !9
  %143 = invoke i32 @fflush(ptr noundef %142)
          to label %144 unwind label %173

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

145:                                              ; preds = %66
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %20, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %21, align 4
  br label %329

149:                                              ; preds = %97, %96, %95, %94
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %20, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %21, align 4
  br label %328

153:                                              ; preds = %103, %100, %98
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %20, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  br label %328

157:                                              ; preds = %110, %107, %105
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %20, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %328

161:                                              ; preds = %112
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %20, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %21, align 4
  br label %327

165:                                              ; preds = %116
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %20, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %21, align 4
  br label %326

169:                                              ; preds = %120
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %20, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %202

173:                                              ; preds = %141, %139, %136, %133, %128
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %20, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %202

177:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %178 = load ptr, ptr %28, align 8, !tbaa !9
  %179 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %180 = load i64, ptr %37, align 4
  %181 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef %36, ptr noundef %178, ptr noundef %179, i64 %180, ptr noundef %38, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %182 unwind label %203

182:                                              ; preds = %177
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  store i32 %181, ptr %35, align 4, !tbaa !20
  %183 = load i32, ptr %35, align 4, !tbaa !20
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %211

185:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %186 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %187 = trunc i64 %186 to i32
  store i32 %187, ptr %39, align 4, !tbaa !5
  %188 = load i32, ptr %39, align 4, !tbaa !5
  %189 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %188)
          to label %190 unwind label %207

190:                                              ; preds = %185
  %191 = load ptr, ptr @stdout, align 8, !tbaa !9
  %192 = invoke i32 @fflush(ptr noundef %191)
          to label %193 unwind label %207

193:                                              ; preds = %190
  %194 = load i32, ptr %35, align 4, !tbaa !20
  %195 = invoke ptr @ee2str(i32 noundef %194)
          to label %196 unwind label %207

196:                                              ; preds = %193
  %197 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %195)
          to label %198 unwind label %207

198:                                              ; preds = %196
  %199 = load ptr, ptr @stdout, align 8, !tbaa !9
  %200 = invoke i32 @fflush(ptr noundef %199)
          to label %201 unwind label %207

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

202:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %326

203:                                              ; preds = %177
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %20, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  br label %225

207:                                              ; preds = %198, %196, %193, %190, %185
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %20, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %225

211:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  %212 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %40, i32 noundef 1)
          to label %213 unwind label %226

213:                                              ; preds = %211
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %214 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %41, i32 noundef 1)
          to label %215 unwind label %230

215:                                              ; preds = %213
  %216 = load i32, ptr %15, align 4, !tbaa !5
  %217 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %212, ptr noundef %214, i32 noundef %216, i32 noundef %217, float noundef 1.000000e+00)
          to label %218 unwind label %230

218:                                              ; preds = %215
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %219 = invoke noundef double @_Z10ut_time_msv()
          to label %220 unwind label %235

220:                                              ; preds = %218
  store double %219, ptr %42, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %273, %220
  %222 = load i32, ptr %43, align 4, !tbaa !5
  %223 = icmp slt i32 %222, 6
  br i1 %223, label %239, label %224

224:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %277

225:                                              ; preds = %207, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %326

226:                                              ; preds = %211
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %20, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %21, align 4
  br label %234

230:                                              ; preds = %215, %213
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %20, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #9
  br label %234

234:                                              ; preds = %230, %226
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  br label %326

235:                                              ; preds = %218
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %20, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %21, align 4
  br label %325

239:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  %240 = load ptr, ptr %28, align 8, !tbaa !9
  %241 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  %242 = load i64, ptr %46, align 4
  %243 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef %45, ptr noundef %240, ptr noundef %241, i64 %242, ptr noundef %47, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %244 unwind label %264

244:                                              ; preds = %239
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #9
  store i32 %243, ptr %44, align 4, !tbaa !20
  %245 = load i32, ptr %44, align 4, !tbaa !20
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %272

247:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  %248 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %249 = trunc i64 %248 to i32
  store i32 %249, ptr %48, align 4, !tbaa !5
  %250 = load i32, ptr %48, align 4, !tbaa !5
  %251 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %250)
          to label %252 unwind label %268

252:                                              ; preds = %247
  %253 = load ptr, ptr @stdout, align 8, !tbaa !9
  %254 = invoke i32 @fflush(ptr noundef %253)
          to label %255 unwind label %268

255:                                              ; preds = %252
  %256 = load i32, ptr %44, align 4, !tbaa !20
  %257 = invoke ptr @ee2str(i32 noundef %256)
          to label %258 unwind label %268

258:                                              ; preds = %255
  %259 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %257)
          to label %260 unwind label %268

260:                                              ; preds = %258
  %261 = load ptr, ptr @stdout, align 8, !tbaa !9
  %262 = invoke i32 @fflush(ptr noundef %261)
          to label %263 unwind label %268

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

264:                                              ; preds = %239
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %20, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %21, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #9
  br label %276

268:                                              ; preds = %260, %258, %255, %252, %247
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %20, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %276

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

273:                                              ; preds = %272
  %274 = load i32, ptr %43, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %43, align 4, !tbaa !5
  br label %221, !llvm.loop !24

276:                                              ; preds = %268, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %325

277:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %278 = invoke noundef double @_Z10ut_time_msv()
          to label %279 unwind label %316

279:                                              ; preds = %277
  store double %278, ptr %49, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  %280 = load double, ptr %49, align 8, !tbaa !22
  %281 = load double, ptr %42, align 8, !tbaa !22
  %282 = fsub double %280, %281
  %283 = fdiv double %282, 6.000000e+00
  store double %283, ptr %50, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 150, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %52) #9
  %284 = getelementptr inbounds [120 x i8], ptr %52, i64 0, i64 0
  %285 = load i32, ptr %8, align 4, !tbaa !5
  %286 = load i32, ptr %9, align 4, !tbaa !5
  %287 = load i32, ptr %10, align 4, !tbaa !5
  %288 = load i32, ptr %11, align 4, !tbaa !5
  %289 = load i32, ptr %8, align 4, !tbaa !5
  %290 = load i32, ptr %9, align 4, !tbaa !5
  %291 = load i32, ptr %10, align 4, !tbaa !5
  %292 = load i32, ptr %11, align 4, !tbaa !5
  %293 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %284, ptr noundef @.str.3, i32 noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290, i32 noundef %291, i32 noundef %292) #9
  %294 = getelementptr inbounds [150 x i8], ptr %51, i64 0, i64 0
  %295 = getelementptr inbounds [120 x i8], ptr %52, i64 0, i64 0
  %296 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %294, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %295) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  %297 = load i32, ptr %8, align 4, !tbaa !5
  %298 = uitofp i32 %297 to double
  %299 = fmul double 2.000000e+00, %298
  %300 = load i32, ptr %9, align 4, !tbaa !5
  %301 = uitofp i32 %300 to double
  %302 = fmul double %299, %301
  %303 = load i32, ptr %10, align 4, !tbaa !5
  %304 = uitofp i32 %303 to double
  %305 = fmul double %302, %304
  %306 = load i32, ptr %11, align 4, !tbaa !5
  %307 = uitofp i32 %306 to double
  %308 = fmul double %305, %307
  store double %308, ptr %53, align 8, !tbaa !22
  %309 = load i32, ptr %6, align 4, !tbaa !11
  %310 = getelementptr inbounds [150 x i8], ptr %51, i64 0, i64 0
  %311 = load double, ptr %53, align 8, !tbaa !22
  %312 = load double, ptr %50, align 8, !tbaa !22
  %313 = fdiv double %312, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %309, ptr noundef %310, double noundef %311, double noundef %313)
          to label %314 unwind label %320

314:                                              ; preds = %279
  %315 = load ptr, ptr %17, align 8, !tbaa !9
  call void @free(ptr noundef %315) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, 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

316:                                              ; preds = %277
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %20, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %21, align 4
  br label %324

320:                                              ; preds = %279
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %20, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %324

324:                                              ; preds = %320, %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %325

325:                                              ; preds = %324, %276, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %326

326:                                              ; preds = %325, %234, %225, %202, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %327

327:                                              ; preds = %326, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %328

328:                                              ; preds = %327, %157, %153, %149
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %329

329:                                              ; preds = %328, %145
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 %330

330:                                              ; preds = %329
  %331 = load ptr, ptr %20, align 8
  %332 = load i32, ptr %21, align 4
  %333 = insertvalue { ptr, i32 } poison, ptr %331, 0
  %334 = insertvalue { ptr, i32 } %333, i32 %332, 1
  resume { ptr, i32 } %334
}

; 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 nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, 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) #6

; 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) #7

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

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

declare i32 @__gxx_personality_v0(...)

; 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

; 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) #8

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

; 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 #6 align 2

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

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

declare noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef, i64, ptr noundef, ptr noundef) #3

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

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

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

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) #8

; 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 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #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, !6, i64 0}
!14 = !{!"_ZTS14ScaleParamSpec", !6, i64 0, !6, i64 4}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS10DataFormat", !7, i64 0}
!17 = !{i64 0, i64 4, !11, i64 4, i64 4, !15, i64 8, i64 4, !5, i64 12, i64 80, !18}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS2EE", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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 [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9scaleTestiPPc8DataType(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 %class.Tensor, 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 [150 x i8], align 16
  %18 = alloca [120 x i8], align 16
  %19 = icmp eq i32 %0, 5
  br i1 %19, label %29, label %20

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

29:                                               ; preds = %3
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = tail call i32 @atoi(ptr nocapture noundef %31) #12
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = tail call i32 @atoi(ptr nocapture noundef %34) #12
  %36 = getelementptr inbounds i8, ptr %1, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = tail call i32 @atoi(ptr nocapture noundef %37) #12
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = tail call i32 @atoi(ptr nocapture noundef %40) #12
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %4) #10
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %4, i32 noundef %2, i32 noundef 2, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41)
  %42 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
  %43 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %42, 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)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 1)
          to label %44 unwind label %77

44:                                               ; preds = %29
  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 %79

45:                                               ; preds = %44
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %46 unwind label %79

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

47:                                               ; preds = %46
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %48 unwind label %79

48:                                               ; preds = %47
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %49 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef 1)
          to label %50 unwind label %81

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

52:                                               ; preds = %50
  %53 = zext i32 %51 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %49, ptr noundef %43, i64 noundef %53)
          to label %54 unwind label %81

54:                                               ; preds = %52
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  %55 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %8, i32 noundef 1)
          to label %56 unwind label %83

56:                                               ; preds = %54
  %57 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
          to label %58 unwind label %83

58:                                               ; preds = %56
  %59 = zext i32 %57 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %55, ptr noundef %43, i64 noundef %59)
          to label %60 unwind label %83

60:                                               ; preds = %58
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %61 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %35, i32 noundef %2, i32 noundef 0)
          to label %62 unwind label %85

62:                                               ; preds = %60
  %63 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %35, i32 noundef %2, i32 noundef 0)
          to label %64 unwind label %87

64:                                               ; preds = %62
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %65 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %9, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %10, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %66 unwind label %89

66:                                               ; preds = %64
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  %.not = icmp eq i32 %65, 0
  br i1 %.not, label %91, label %67

67:                                               ; preds = %66
  %68 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %69 = trunc i64 %68 to i32
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %69)
  %71 = load ptr, ptr @stdout, align 8, !tbaa !5
  %72 = call i32 @fflush(ptr noundef %71)
  %73 = call ptr @ee2str(i32 noundef %65)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %73)
  %75 = load ptr, ptr @stdout, align 8, !tbaa !5
  %76 = call i32 @fflush(ptr noundef %75)
  call void @exit(i32 noundef 1) #11
  unreachable

77:                                               ; preds = %29
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %166

79:                                               ; preds = %47, %46, %45, %44
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %165

81:                                               ; preds = %52, %50, %48
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %165

83:                                               ; preds = %58, %56, %54
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %165

85:                                               ; preds = %60
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %165

87:                                               ; preds = %62
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %165

89:                                               ; preds = %64
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %165

91:                                               ; preds = %66
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  %92 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %11, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %12, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %93 unwind label %104

93:                                               ; preds = %91
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  %.not86 = icmp eq i32 %92, 0
  br i1 %.not86, label %106, label %94

94:                                               ; preds = %93
  %95 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %96 = trunc i64 %95 to i32
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %96)
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = call i32 @fflush(ptr noundef %98)
  %100 = call ptr @ee2str(i32 noundef %92)
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %100)
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = call i32 @fflush(ptr noundef %102)
  call void @exit(i32 noundef 1) #11
  unreachable

104:                                              ; preds = %91
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %165

106:                                              ; preds = %93
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %107 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %13, i32 noundef 1)
          to label %108 unwind label %126

108:                                              ; preds = %106
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  %109 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %14, i32 noundef 1)
          to label %110 unwind label %128

110:                                              ; preds = %108
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %107, ptr noundef %109, i32 noundef %42, i32 noundef %2, float noundef 1.000000e+00)
          to label %111 unwind label %128

111:                                              ; preds = %110
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  %112 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %131

.preheader.preheader:                             ; preds = %111
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %113 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %133 unwind label %144

.preheader.1:                                     ; preds = %133
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %114 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %115 unwind label %144

115:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96.1 = icmp eq i32 %114, 0
  br i1 %.not96.1, label %.preheader.2, label %134

.preheader.2:                                     ; preds = %115
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %116 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %117 unwind label %144

117:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96.2 = icmp eq i32 %116, 0
  br i1 %.not96.2, label %.preheader.3, label %134

.preheader.3:                                     ; preds = %117
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %118 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %119 unwind label %144

119:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96.3 = icmp eq i32 %118, 0
  br i1 %.not96.3, label %.preheader.4, label %134

.preheader.4:                                     ; preds = %119
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %120 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %121 unwind label %144

121:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96.4 = icmp eq i32 %120, 0
  br i1 %.not96.4, label %.preheader.5, label %134

.preheader.5:                                     ; preds = %121
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %122 = invoke noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef nonnull %15, ptr noundef %61, ptr noundef %63, i64 1, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %123 unwind label %144

123:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96.5 = icmp eq i32 %122, 0
  br i1 %.not96.5, label %124, label %134

124:                                              ; preds = %123
  %125 = invoke noundef double @_Z10ut_time_msv()
          to label %146 unwind label %161

126:                                              ; preds = %106
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %130

128:                                              ; preds = %110, %108
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %130

130:                                              ; preds = %128, %126
  %.pn = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  br label %165

131:                                              ; preds = %111
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %165

133:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  %.not96 = icmp eq i32 %113, 0
  br i1 %.not96, label %.preheader.1, label %134

134:                                              ; preds = %123, %121, %119, %117, %115, %133
  %.lcssa = phi i32 [ %113, %133 ], [ %114, %115 ], [ %116, %117 ], [ %118, %119 ], [ %120, %121 ], [ %122, %123 ]
  %135 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %136 = trunc i64 %135 to i32
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %136)
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = call i32 @fflush(ptr noundef %138)
  %140 = call ptr @ee2str(i32 noundef %.lcssa)
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %140)
  %142 = load ptr, ptr @stdout, align 8, !tbaa !5
  %143 = call i32 @fflush(ptr noundef %142)
  call void @exit(i32 noundef 1) #11
  unreachable

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

146:                                              ; preds = %124
  %147 = fsub double %125, %112
  %148 = fdiv double %147, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %18) #10
  %149 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41) #10
  %150 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %18) #10
  %151 = uitofp i32 %32 to double
  %152 = fmul double %151, 2.000000e+00
  %153 = uitofp i32 %35 to double
  %154 = fmul double %152, %153
  %155 = uitofp i32 %38 to double
  %156 = fmul double %154, %155
  %157 = uitofp i32 %41 to double
  %158 = fmul double %156, %157
  %159 = fdiv double %148, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %17, double noundef %158, double noundef %159)
          to label %160 unwind label %163

160:                                              ; preds = %146
  call void @free(ptr noundef %43) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #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

161:                                              ; preds = %124
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %146
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %17) #10
  br label %165

165:                                              ; preds = %85, %131, %144, %163, %161, %130, %104, %89, %87, %83, %81, %79
  %.pn90.pn.pn.pn = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ], [ %80, %79 ], [ %86, %85 ], [ %.pn, %130 ], [ %105, %104 ], [ %90, %89 ], [ %88, %87 ], [ %145, %144 ], [ %132, %131 ], [ %164, %163 ], [ %162, %161 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  br label %166

166:                                              ; preds = %165, %77
  %.pn90.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn.pn, %165 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #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
  resume { ptr, i32 } %.pn90.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 nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, 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 #6

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

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

declare i32 @__gxx_personality_v0(...)

; 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

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

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

; 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 #6 align 2

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

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

declare noundef i32 @_Z5scale6TensorPvS0_14ScaleParamSpecS_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef, i64, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

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

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 #7

; 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 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 #7 = { 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 #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: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass