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

; 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.PowerParamSpec = type { float, float, float }
%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" }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.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 [10 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 @_Z9powerTestiPPc8DataType(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 %struct.PowerParamSpec, align 4
  %10 = alloca %class.Tensor, align 8
  %11 = alloca %struct.TensorDesc, align 4
  %12 = alloca ptr, align 8
  %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 %class.Tensor, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.PowerParamSpec, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.TensorDesc, align 4
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca i32, align 4
  %27 = alloca %class.Tensor, align 8
  %28 = alloca %struct.PowerParamSpec, align 4
  %29 = alloca %class.Tensor, align 8
  %30 = alloca { <2 x float>, float }, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %class.Tensor, align 8
  %34 = alloca %struct.PowerParamSpec, align 4
  %35 = alloca %class.Tensor, align 8
  %36 = alloca { <2 x float>, float }, align 4
  %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 %struct.PowerParamSpec, align 4
  %45 = alloca %class.Tensor, align 8
  %46 = alloca { <2 x float>, float }, align 4
  %47 = alloca i32, align 4
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca [150 x i8], align 16
  %51 = alloca [120 x i8], align 16
  %52 = 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
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 5
  br i1 %54, label %65, label %55

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

65:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 1
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call i32 @atoi(ptr noundef %68) #12
  store i32 %69, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #10
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 2
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = call double @atof(ptr noundef %72) #12
  %74 = fptrunc double %73 to float
  %75 = getelementptr inbounds %struct.PowerParamSpec, ptr %9, i32 0, i32 0
  store float %74, ptr %75, align 4, !tbaa !13
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 3
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call double @atof(ptr noundef %78) #12
  %80 = fptrunc double %79 to float
  %81 = getelementptr inbounds %struct.PowerParamSpec, ptr %9, i32 0, i32 1
  store float %80, ptr %81, align 4, !tbaa !16
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i64 4
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = call double @atof(ptr noundef %84) #12
  %86 = fptrunc double %85 to float
  %87 = getelementptr inbounds %struct.PowerParamSpec, ptr %9, i32 0, i32 2
  store float %86, ptr %87, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 92, ptr %11) #10
  %88 = load i32, ptr %6, align 4, !tbaa !11
  %89 = load i32, ptr %8, align 4, !tbaa !5
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %11, i32 noundef %88, i32 noundef %89)
          to label %90 unwind label %132

90:                                               ; preds = %65
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %11, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef byval(%struct.TensorDesc) align 8 %14)
          to label %91 unwind label %132

91:                                               ; preds = %90
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %92 unwind label %132

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !11
  %95 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %93, i32 noundef %94, i32 noundef 0)
          to label %96 unwind label %136

96:                                               ; preds = %92
  store ptr %95, ptr %15, align 8, !tbaa !9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  %97 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %16, i32 noundef 1)
          to label %98 unwind label %140

98:                                               ; preds = %96
  %99 = load ptr, ptr %15, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %11, i64 92, i1 false), !tbaa.struct !18
  %100 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %17)
          to label %101 unwind label %140

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

103:                                              ; preds = %101
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 1)
          to label %104 unwind label %144

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 1)
          to label %105 unwind label %148

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !22
  %106 = load i32, ptr %6, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %21, i64 12, i1 false)
  %107 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %108 = load <2 x float>, ptr %107, align 4
  %109 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = invoke noundef i32 @_Z23power_infer_output_sizeP6Tensor14PowerParamSpec8DataTypeS0_P8ArchInfo(ptr noundef %10, <2 x float> %108, float %110, i32 noundef %106, ptr noundef %18, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %112 unwind label %152

112:                                              ; preds = %105
  store i32 %111, ptr %20, align 4, !tbaa !24
  %113 = load i32, ptr %20, align 4, !tbaa !24
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %160

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %116 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %117 = trunc i64 %116 to i32
  store i32 %117, ptr %23, align 4, !tbaa !5
  %118 = load i32, ptr %23, align 4, !tbaa !5
  %119 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %118)
          to label %120 unwind label %156

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

123:                                              ; preds = %120
  %124 = load i32, ptr %20, align 4, !tbaa !24
  %125 = invoke ptr @ee2str(i32 noundef %124)
          to label %126 unwind label %156

126:                                              ; preds = %123
  %127 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %125)
          to label %128 unwind label %156

128:                                              ; preds = %126
  %129 = load ptr, ptr @stdout, align 8, !tbaa !9
  %130 = invoke i32 @fflush(ptr noundef %129)
          to label %131 unwind label %156

131:                                              ; preds = %128
  call void @exit(i32 noundef 1) #11
  unreachable

132:                                              ; preds = %91, %90, %65
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %12, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %13, align 4
  br label %348

136:                                              ; preds = %92
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %12, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %13, align 4
  br label %347

140:                                              ; preds = %101, %98, %96
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %12, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %13, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  br label %347

144:                                              ; preds = %103
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %12, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %13, align 4
  br label %346

148:                                              ; preds = %104
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %12, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %13, align 4
  br label %345

152:                                              ; preds = %105
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %12, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %13, align 4
  br label %190

156:                                              ; preds = %128, %126, %123, %120, %115
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %12, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %190

160:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %161 unwind label %191

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 92, ptr %24) #10
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %24, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %162 unwind label %195

162:                                              ; preds = %161
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %24, i64 92, i1 false), !tbaa.struct !18
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef byval(%struct.TensorDesc) align 8 %25)
          to label %163 unwind label %195

163:                                              ; preds = %162
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %164 unwind label %195

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !22
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %28, i64 12, i1 false)
  %165 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %166 = load <2 x float>, ptr %165, align 4
  %167 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %168 = load float, ptr %167, align 4
  %169 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef %27, <2 x float> %166, float %168, ptr noundef %29, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %170 unwind label %199

170:                                              ; preds = %164
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  store i32 %169, ptr %26, align 4, !tbaa !24
  %171 = load i32, ptr %26, align 4, !tbaa !24
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %207

173:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  %174 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %175 = trunc i64 %174 to i32
  store i32 %175, ptr %31, align 4, !tbaa !5
  %176 = load i32, ptr %31, align 4, !tbaa !5
  %177 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %176)
          to label %178 unwind label %203

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

181:                                              ; preds = %178
  %182 = load i32, ptr %26, align 4, !tbaa !24
  %183 = invoke ptr @ee2str(i32 noundef %182)
          to label %184 unwind label %203

184:                                              ; preds = %181
  %185 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %183)
          to label %186 unwind label %203

186:                                              ; preds = %184
  %187 = load ptr, ptr @stdout, align 8, !tbaa !9
  %188 = invoke i32 @fflush(ptr noundef %187)
          to label %189 unwind label %203

189:                                              ; preds = %186
  call void @exit(i32 noundef 1) #11
  unreachable

190:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %344

191:                                              ; preds = %160
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %12, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %13, align 4
  br label %344

195:                                              ; preds = %163, %162, %161
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %12, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %13, align 4
  br label %343

199:                                              ; preds = %164
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %12, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %13, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %233

203:                                              ; preds = %186, %184, %181, %178, %173
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %12, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %233

207:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !22
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %34, i64 12, i1 false)
  %208 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 0
  %209 = load <2 x float>, ptr %208, align 4
  %210 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 1
  %211 = load float, ptr %210, align 4
  %212 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef %33, <2 x float> %209, float %211, ptr noundef %35, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %213 unwind label %234

213:                                              ; preds = %207
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  store i32 %212, ptr %32, align 4, !tbaa !24
  %214 = load i32, ptr %32, align 4, !tbaa !24
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %242

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  %217 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %218 = trunc i64 %217 to i32
  store i32 %218, ptr %37, align 4, !tbaa !5
  %219 = load i32, ptr %37, align 4, !tbaa !5
  %220 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %219)
          to label %221 unwind label %238

221:                                              ; preds = %216
  %222 = load ptr, ptr @stdout, align 8, !tbaa !9
  %223 = invoke i32 @fflush(ptr noundef %222)
          to label %224 unwind label %238

224:                                              ; preds = %221
  %225 = load i32, ptr %32, align 4, !tbaa !24
  %226 = invoke ptr @ee2str(i32 noundef %225)
          to label %227 unwind label %238

227:                                              ; preds = %224
  %228 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %226)
          to label %229 unwind label %238

229:                                              ; preds = %227
  %230 = load ptr, ptr @stdout, align 8, !tbaa !9
  %231 = invoke i32 @fflush(ptr noundef %230)
          to label %232 unwind label %238

232:                                              ; preds = %229
  call void @exit(i32 noundef 1) #11
  unreachable

233:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %343

234:                                              ; preds = %207
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %12, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %13, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %256

238:                                              ; preds = %229, %227, %224, %221, %216
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %12, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %256

242:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  %243 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %38, i32 noundef 1)
          to label %244 unwind label %257

244:                                              ; preds = %242
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  %245 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %39, i32 noundef 1)
          to label %246 unwind label %261

246:                                              ; preds = %244
  %247 = load i32, ptr %8, align 4, !tbaa !5
  %248 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %243, ptr noundef %245, i32 noundef %247, i32 noundef %248, float noundef 0x3FB99999A0000000)
          to label %249 unwind label %261

249:                                              ; preds = %246
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  %250 = invoke noundef double @_Z10ut_time_msv()
          to label %251 unwind label %266

251:                                              ; preds = %249
  store double %250, ptr %40, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %305, %251
  %253 = load i32, ptr %41, align 4, !tbaa !5
  %254 = icmp slt i32 %253, 6
  br i1 %254, label %270, label %255

255:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %309

256:                                              ; preds = %238, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %343

257:                                              ; preds = %242
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %12, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %13, align 4
  br label %265

261:                                              ; preds = %246, %244
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %12, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %13, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %265

265:                                              ; preds = %261, %257
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  br label %343

266:                                              ; preds = %249
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %12, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %13, align 4
  br label %342

270:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !22
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %44, i64 12, i1 false)
  %271 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 0
  %272 = load <2 x float>, ptr %271, align 4
  %273 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 1
  %274 = load float, ptr %273, align 4
  %275 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef %43, <2 x float> %272, float %274, ptr noundef %45, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %276 unwind label %296

276:                                              ; preds = %270
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  store i32 %275, ptr %42, align 4, !tbaa !24
  %277 = load i32, ptr %42, align 4, !tbaa !24
  %278 = icmp ne i32 %277, 0
  br i1 %278, label %279, label %304

279:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #10
  %280 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %281 = trunc i64 %280 to i32
  store i32 %281, ptr %47, align 4, !tbaa !5
  %282 = load i32, ptr %47, align 4, !tbaa !5
  %283 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %282)
          to label %284 unwind label %300

284:                                              ; preds = %279
  %285 = load ptr, ptr @stdout, align 8, !tbaa !9
  %286 = invoke i32 @fflush(ptr noundef %285)
          to label %287 unwind label %300

287:                                              ; preds = %284
  %288 = load i32, ptr %42, align 4, !tbaa !24
  %289 = invoke ptr @ee2str(i32 noundef %288)
          to label %290 unwind label %300

290:                                              ; preds = %287
  %291 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %289)
          to label %292 unwind label %300

292:                                              ; preds = %290
  %293 = load ptr, ptr @stdout, align 8, !tbaa !9
  %294 = invoke i32 @fflush(ptr noundef %293)
          to label %295 unwind label %300

295:                                              ; preds = %292
  call void @exit(i32 noundef 1) #11
  unreachable

296:                                              ; preds = %270
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %12, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %13, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  br label %308

300:                                              ; preds = %292, %290, %287, %284, %279
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %12, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  br label %308

304:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %41, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %41, align 4, !tbaa !5
  br label %252, !llvm.loop !28

308:                                              ; preds = %300, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %342

309:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %310 = invoke noundef double @_Z10ut_time_msv()
          to label %311 unwind label %333

311:                                              ; preds = %309
  store double %310, ptr %48, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %312 = load double, ptr %48, align 8, !tbaa !26
  %313 = load double, ptr %40, align 8, !tbaa !26
  %314 = fsub double %312, %313
  %315 = fdiv double %314, 6.000000e+00
  store double %315, ptr %49, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 150, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr %51) #10
  %316 = getelementptr inbounds [120 x i8], ptr %51, i64 0, i64 0
  %317 = load i32, ptr %8, align 4, !tbaa !5
  %318 = load i32, ptr %8, align 4, !tbaa !5
  %319 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %316, ptr noundef @.str.3, i32 noundef %317, i32 noundef %318) #10
  %320 = getelementptr inbounds [150 x i8], ptr %50, i64 0, i64 0
  %321 = getelementptr inbounds [120 x i8], ptr %51, i64 0, i64 0
  %322 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %320, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %321) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %323 = load i32, ptr %8, align 4, !tbaa !5
  %324 = uitofp i32 %323 to double
  %325 = fmul double 2.000000e+00, %324
  store double %325, ptr %52, align 8, !tbaa !26
  %326 = load i32, ptr %6, align 4, !tbaa !11
  %327 = getelementptr inbounds [150 x i8], ptr %50, i64 0, i64 0
  %328 = load double, ptr %52, align 8, !tbaa !26
  %329 = load double, ptr %49, align 8, !tbaa !26
  %330 = fdiv double %329, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %326, ptr noundef %327, double noundef %328, double noundef %330)
          to label %331 unwind label %337

331:                                              ; preds = %311
  %332 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %332) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %24) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %11) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  ret i32 0

333:                                              ; preds = %309
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %12, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %13, align 4
  br label %341

337:                                              ; preds = %311
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %12, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  br label %341

341:                                              ; preds = %337, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %342

342:                                              ; preds = %341, %308, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %343

343:                                              ; preds = %342, %265, %256, %233, %195
  call void @llvm.lifetime.end.p0(i64 92, ptr %24) #10
  br label %344

344:                                              ; preds = %343, %191, %190
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  br label %345

345:                                              ; preds = %344, %148
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %346

346:                                              ; preds = %345, %144
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  br label %347

347:                                              ; preds = %346, %140, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %348

348:                                              ; preds = %347, %132
  call void @llvm.lifetime.end.p0(i64 92, ptr %11) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %349

349:                                              ; preds = %348
  %350 = load ptr, ptr %12, align 8
  %351 = load i32, ptr %13, align 4
  %352 = insertvalue { ptr, i32 } poison, ptr %350, 0
  %353 = insertvalue { ptr, i32 } %352, i32 %351, 1
  resume { ptr, i32 } %353
}

; 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 willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef, i32 noundef) #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 #9 align 2

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

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

declare noundef i32 @_Z23power_infer_output_sizeP6Tensor14PowerParamSpec8DataTypeS0_P8ArchInfo(ptr noundef, <2 x float>, float, i32 noundef, ptr noundef, ptr noundef) #3

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

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

declare noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef, <2 x float>, float, 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) #7

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 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 = { 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 #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 = !{!"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, !15, i64 0}
!14 = !{!"_ZTS14PowerParamSpec", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{!14, !15, i64 8}
!18 = !{i64 0, i64 4, !11, i64 4, i64 4, !19, i64 8, i64 4, !5, i64 12, i64 80, !21}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS10DataFormat", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !23}
!23 = !{!15, !15, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS2EE", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"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 }
%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" }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.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 [10 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 @_Z9powerTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Tensor, align 8
  %5 = alloca %struct.TensorDesc, 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 [150 x i8], align 16
  %19 = alloca [120 x i8], align 16
  %20 = icmp eq i32 %0, 5
  br i1 %20, label %30, label %21

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

30:                                               ; preds = %3
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = tail call i32 @atoi(ptr nocapture noundef %32) #13
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = tail call double @atof(ptr noundef %35) #13
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = tail call double @atof(ptr noundef %38) #13
  %40 = insertelement <2 x double> poison, double %36, i64 0
  %41 = insertelement <2 x double> %40, double %39, i64 1
  %42 = fptrunc <2 x double> %41 to <2 x float>
  %43 = getelementptr inbounds i8, ptr %1, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = tail call double @atof(ptr noundef %44) #13
  %46 = fptrunc double %45 to float
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #11
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %5) #11
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %5, i32 noundef %2, i32 noundef %33)
          to label %47 unwind label %72

47:                                               ; preds = %30
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %48 unwind label %72

48:                                               ; preds = %47
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %49 unwind label %72

49:                                               ; preds = %48
  %50 = invoke noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %33, i32 noundef %2, i32 noundef 0)
          to label %51 unwind label %74

51:                                               ; preds = %49
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  %52 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %6, i32 noundef 1)
          to label %53 unwind label %76

53:                                               ; preds = %51
  %54 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %55 unwind label %76

55:                                               ; preds = %53
  %56 = zext i32 %54 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %52, ptr noundef %50, i64 noundef %56)
          to label %57 unwind label %76

57:                                               ; preds = %55
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #11
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 1)
          to label %58 unwind label %78

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %59 unwind label %80

59:                                               ; preds = %58
  %60 = invoke noundef i32 @_Z23power_infer_output_sizeP6Tensor14PowerParamSpec8DataTypeS0_P8ArchInfo(ptr noundef nonnull %4, <2 x float> %42, float %46, i32 noundef %2, ptr noundef nonnull %7, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %61 unwind label %82

61:                                               ; preds = %59
  %.not = icmp eq i32 %60, 0
  br i1 %.not, label %84, label %62

62:                                               ; preds = %61
  %63 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %64 = trunc i64 %63 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 @fflush(ptr noundef %66)
  %68 = call ptr @ee2str(i32 noundef %60)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = call i32 @fflush(ptr noundef %70)
  call void @exit(i32 noundef 1) #12
  unreachable

72:                                               ; preds = %48, %47, %30
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %179

74:                                               ; preds = %49
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %179

76:                                               ; preds = %55, %53, %51
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  br label %179

78:                                               ; preds = %57
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %178

80:                                               ; preds = %58
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %177

82:                                               ; preds = %59
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %176

84:                                               ; preds = %61
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %85 unwind label %101

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #11
  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 %86 unwind label %103

86:                                               ; preds = %85
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
          to label %87 unwind label %103

87:                                               ; preds = %86
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %88 unwind label %103

88:                                               ; preds = %87
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %89 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %10, <2 x float> %42, float %46, ptr noundef nonnull %11, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %90 unwind label %105

90:                                               ; preds = %88
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  %.not71 = icmp eq i32 %89, 0
  br i1 %.not71, label %107, label %91

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

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

103:                                              ; preds = %87, %86, %85
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %175

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

107:                                              ; preds = %90
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  %108 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %12, <2 x float> %42, float %46, ptr noundef nonnull %13, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %109 unwind label %120

109:                                              ; preds = %107
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  %.not72 = icmp eq i32 %108, 0
  br i1 %.not72, label %122, label %110

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

120:                                              ; preds = %107
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %175

122:                                              ; preds = %109
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %123 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %14, i32 noundef 1)
          to label %124 unwind label %142

124:                                              ; preds = %122
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  %125 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %15, i32 noundef 1)
          to label %126 unwind label %144

126:                                              ; preds = %124
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %123, ptr noundef %125, i32 noundef %33, i32 noundef %2, float noundef 0x3FB99999A0000000)
          to label %127 unwind label %144

127:                                              ; preds = %126
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  %128 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %147

.preheader.preheader:                             ; preds = %127
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %129 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %149 unwind label %160

.preheader.1:                                     ; preds = %149
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %130 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %131 unwind label %160

131:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84.1 = icmp eq i32 %130, 0
  br i1 %.not84.1, label %.preheader.2, label %150

.preheader.2:                                     ; preds = %131
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %132 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %133 unwind label %160

133:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84.2 = icmp eq i32 %132, 0
  br i1 %.not84.2, label %.preheader.3, label %150

.preheader.3:                                     ; preds = %133
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %134 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %135 unwind label %160

135:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84.3 = icmp eq i32 %134, 0
  br i1 %.not84.3, label %.preheader.4, label %150

.preheader.4:                                     ; preds = %135
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %136 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %137 unwind label %160

137:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84.4 = icmp eq i32 %136, 0
  br i1 %.not84.4, label %.preheader.5, label %150

.preheader.5:                                     ; preds = %137
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  %138 = invoke noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef nonnull %16, <2 x float> %42, float %46, ptr noundef nonnull %17, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %139 unwind label %160

139:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84.5 = icmp eq i32 %138, 0
  br i1 %.not84.5, label %140, label %150

140:                                              ; preds = %139
  %141 = invoke noundef double @_Z10ut_time_msv()
          to label %162 unwind label %171

142:                                              ; preds = %122
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %146

144:                                              ; preds = %126, %124
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  br label %146

146:                                              ; preds = %144, %142
  %.pn = phi { ptr, i32 } [ %145, %144 ], [ %143, %142 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  br label %175

147:                                              ; preds = %127
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %175

149:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not84 = icmp eq i32 %129, 0
  br i1 %.not84, label %.preheader.1, label %150

150:                                              ; preds = %139, %137, %135, %133, %131, %149
  %.lcssa = phi i32 [ %129, %149 ], [ %130, %131 ], [ %132, %133 ], [ %134, %135 ], [ %136, %137 ], [ %138, %139 ]
  %151 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %152 = trunc i64 %151 to i32
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %152)
  %154 = load ptr, ptr @stdout, align 8, !tbaa !5
  %155 = call i32 @fflush(ptr noundef %154)
  %156 = call ptr @ee2str(i32 noundef %.lcssa)
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %156)
  %158 = load ptr, ptr @stdout, align 8, !tbaa !5
  %159 = call i32 @fflush(ptr noundef %158)
  call void @exit(i32 noundef 1) #12
  unreachable

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

162:                                              ; preds = %140
  %163 = fsub double %141, %128
  %164 = fdiv double %163, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #11
  %165 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %33, i32 noundef %33) #11
  %166 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %19) #11
  %167 = uitofp i32 %33 to double
  %168 = fmul double %167, 2.000000e+00
  %169 = fdiv double %164, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %18, double noundef %168, double noundef %169)
          to label %170 unwind label %173

170:                                              ; preds = %162
  call void @free(ptr noundef %50) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  ret i32 0

171:                                              ; preds = %140
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %162
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %18) #11
  br label %175

175:                                              ; preds = %147, %160, %173, %171, %146, %120, %105, %103
  %.pn76.pn = phi { ptr, i32 } [ %.pn, %146 ], [ %121, %120 ], [ %106, %105 ], [ %104, %103 ], [ %161, %160 ], [ %148, %147 ], [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #11
  br label %176

176:                                              ; preds = %175, %101, %82
  %.pn76.pn.pn = phi { ptr, i32 } [ %.pn76.pn, %175 ], [ %102, %101 ], [ %83, %82 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %177

177:                                              ; preds = %176, %80
  %.pn76.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn, %176 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  br label %178

178:                                              ; preds = %177, %78
  %.pn76.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn.pn, %177 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  br label %179

179:                                              ; preds = %74, %76, %178, %72
  %.pn76.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %73, %72 ], [ %.pn76.pn.pn.pn.pn, %178 ], [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  resume { ptr, i32 } %.pn76.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 nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

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

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

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

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

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

declare noundef i32 @_Z23power_infer_output_sizeP6Tensor14PowerParamSpec8DataTypeS0_P8ArchInfo(ptr noundef, <2 x float>, float, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #9

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

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

declare noundef i32 @_Z5power6Tensor14PowerParamSpecS_P8ArchInfo(ptr noundef, <2 x float>, float, ptr noundef, ptr noundef) local_unnamed_addr #9

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 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 = { 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 #9 = { "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 = { 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 #11 = { nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { 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,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass