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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13reductionTestiPPc8DataType(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.ReductionParamSpec, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.TensorDesc, align 4
  %16 = alloca %struct.TensorDesc, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca %struct.TensorDesc, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %class.Tensor, align 8
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %struct.TensorDesc, align 8
  %27 = alloca %class.Tensor, align 8
  %28 = alloca %class.Tensor, align 8
  %29 = alloca i32, align 4
  %30 = alloca %class.Tensor, align 8
  %31 = alloca %struct.ReductionParamSpec, align 8
  %32 = alloca i32, align 4
  %33 = alloca %struct.TensorDesc, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %class.Tensor, align 8
  %37 = alloca %struct.ReductionParamSpec, align 8
  %38 = alloca %class.Tensor, align 8
  %39 = alloca i32, align 4
  %40 = alloca %class.Tensor, align 8
  %41 = alloca %struct.TensorDesc, align 8
  %42 = alloca i32, align 4
  %43 = alloca %class.Tensor, align 8
  %44 = alloca %class.Tensor, align 8
  %45 = alloca %struct.ReductionParamSpec, align 8
  %46 = alloca %class.Tensor, align 8
  %47 = alloca %class.Tensor, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %class.Tensor, align 8
  %51 = alloca %class.Tensor, align 8
  %52 = alloca %struct.ReductionParamSpec, align 8
  %53 = alloca %class.Tensor, align 8
  %54 = alloca %class.Tensor, align 8
  %55 = alloca i32, align 4
  %56 = alloca %class.Tensor, align 8
  %57 = alloca %class.Tensor, align 8
  %58 = alloca double, align 8
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca %class.Tensor, align 8
  %62 = alloca %class.Tensor, align 8
  %63 = alloca %struct.ReductionParamSpec, align 8
  %64 = alloca %class.Tensor, align 8
  %65 = alloca %class.Tensor, align 8
  %66 = alloca i32, align 4
  %67 = alloca double, align 8
  %68 = alloca double, align 8
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  %74 = alloca %struct.TensorDesc, align 8
  %75 = alloca i32, align 4
  %76 = alloca [150 x i8], align 16
  %77 = alloca [120 x i8], align 16
  %78 = 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
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = icmp sge i32 %79, 6
  br i1 %80, label %91, label %81

81:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %82 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %7, align 4, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !9
  %87 = call i32 @fflush(ptr noundef %86)
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %89 = load ptr, ptr @stdout, align 8, !tbaa !9
  %90 = call i32 @fflush(ptr noundef %89)
  call void @exit(i32 noundef 1) #10
  unreachable

91:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 1
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call i32 @atoi(ptr noundef %94) #11
  store i32 %95, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 2
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = call i32 @atoi(ptr noundef %98) #11
  store i32 %99, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 3
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call i32 @atoi(ptr noundef %102) #11
  store i32 %103, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %104 = load ptr, ptr %5, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 4
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call i32 @atoi(ptr noundef %106) #11
  store i32 %107, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #9
  %108 = load ptr, ptr %5, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %108, i64 5
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = call i32 @atoi(ptr noundef %110) #11
  %112 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 1
  store i32 %111, ptr %112, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %131, %91
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = icmp slt i32 %114, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %134

119:                                              ; preds = %113
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = add nsw i32 6, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %120, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = call i32 @atoi(ptr noundef %125) #11
  %127 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 0
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [8 x i32], ptr %127, i64 0, i64 %129
  store i32 %126, ptr %130, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %119
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %13, align 4, !tbaa !5
  br label %113, !llvm.loop !18

134:                                              ; preds = %118
  %135 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 2
  store i32 1, ptr %135, align 4, !tbaa !20
  %136 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 3
  store float 1.000000e+00, ptr %136, align 4, !tbaa !21
  %137 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 4
  store i8 1, ptr %137, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 92, ptr %15) #9
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %15) #9
  %138 = getelementptr inbounds %struct.TensorDesc, ptr %15, i32 0, i32 2
  store i32 0, ptr %138, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 92, ptr %16) #9
  %139 = load i32, ptr %6, align 4, !tbaa !11
  %140 = load i32, ptr %14, align 4, !tbaa !23
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = load i32, ptr %10, align 4, !tbaa !5
  %144 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %16, i32 noundef %139, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !27
  %145 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %18)
  %146 = load i32, ptr %6, align 4, !tbaa !11
  %147 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %145, i32 noundef %146, i32 noundef 0)
  store ptr %147, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !27
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef byval(%struct.TensorDesc) align 8 %20)
          to label %148 unwind label %182

148:                                              ; preds = %134
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %149 unwind label %182

149:                                              ; preds = %148
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %150 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %23, i32 noundef 1)
          to label %151 unwind label %186

151:                                              ; preds = %149
  %152 = load ptr, ptr %17, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !27
  %153 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %24)
          to label %154 unwind label %186

154:                                              ; preds = %151
  %155 = zext i32 %153 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %150, ptr noundef %152, i64 noundef %155)
          to label %156 unwind label %186

156:                                              ; preds = %154
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 1)
          to label %157 unwind label %190

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

158:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 1)
          to label %159 unwind label %198

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef 1)
          to label %160 unwind label %202

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %12, i64 48, i1 false), !tbaa.struct !29
  %161 = invoke noundef i32 @_Z27reduction_infer_output_sizeP6TensorS_18ReductionParamSpecS0_P8ArchInfo(ptr noundef %19, ptr noundef %30, ptr noundef byval(%struct.ReductionParamSpec) align 8 %31, ptr noundef %27, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %162 unwind label %206

162:                                              ; preds = %160
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  store i32 %161, ptr %29, align 4, !tbaa !33
  %163 = load i32, ptr %29, align 4, !tbaa !33
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %214

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %166 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %32, align 4, !tbaa !5
  %168 = load i32, ptr %32, align 4, !tbaa !5
  %169 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %168)
          to label %170 unwind label %210

170:                                              ; preds = %165
  %171 = load ptr, ptr @stdout, align 8, !tbaa !9
  %172 = invoke i32 @fflush(ptr noundef %171)
          to label %173 unwind label %210

173:                                              ; preds = %170
  %174 = load i32, ptr %29, align 4, !tbaa !33
  %175 = invoke ptr @ee2str(i32 noundef %174)
          to label %176 unwind label %210

176:                                              ; preds = %173
  %177 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %175)
          to label %178 unwind label %210

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

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

182:                                              ; preds = %148, %134
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %21, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %22, align 4
  br label %484

186:                                              ; preds = %154, %151, %149
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %21, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  br label %484

190:                                              ; preds = %156
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %21, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %22, align 4
  br label %483

194:                                              ; preds = %157
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %21, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %22, align 4
  br label %482

198:                                              ; preds = %158
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %21, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %22, align 4
  br label %481

202:                                              ; preds = %159
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %21, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %22, align 4
  br label %480

206:                                              ; preds = %160
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %21, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %240

210:                                              ; preds = %178, %176, %173, %170, %165
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %21, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %240

214:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %215 unwind label %241

215:                                              ; preds = %214
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %33, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %216 unwind label %241

216:                                              ; preds = %215
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef byval(%struct.TensorDesc) align 8 %33)
          to label %217 unwind label %241

217:                                              ; preds = %216
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %218 unwind label %241

218:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #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
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %12, i64 48, i1 false), !tbaa.struct !29
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  %219 = invoke noundef i32 @_Z33reduction_infer_forward_tmp_bytes6Tensor18ReductionParamSpecS_PjP8ArchInfo(ptr noundef %36, ptr noundef byval(%struct.ReductionParamSpec) align 8 %37, ptr noundef %38, ptr noundef %34, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %220 unwind label %245

220:                                              ; preds = %218
  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 %219, ptr %35, align 4, !tbaa !33
  %221 = load i32, ptr %35, align 4, !tbaa !33
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %253

223:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %224 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %225 = trunc i64 %224 to i32
  store i32 %225, ptr %39, align 4, !tbaa !5
  %226 = load i32, ptr %39, align 4, !tbaa !5
  %227 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %226)
          to label %228 unwind label %249

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

231:                                              ; preds = %228
  %232 = load i32, ptr %35, align 4, !tbaa !33
  %233 = invoke ptr @ee2str(i32 noundef %232)
          to label %234 unwind label %249

234:                                              ; preds = %231
  %235 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %233)
          to label %236 unwind label %249

236:                                              ; preds = %234
  %237 = load ptr, ptr @stdout, align 8, !tbaa !9
  %238 = invoke i32 @fflush(ptr noundef %237)
          to label %239 unwind label %249

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

240:                                              ; preds = %210, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %479

241:                                              ; preds = %217, %216, %215, %214
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %21, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %22, align 4
  br label %479

245:                                              ; preds = %218
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %21, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %22, 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 %281

249:                                              ; preds = %236, %234, %231, %228, %223
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %21, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %281

253:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 1)
          to label %254 unwind label %282

254:                                              ; preds = %253
  %255 = load i32, ptr %6, align 4, !tbaa !11
  %256 = load i32, ptr %34, align 4, !tbaa !5
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %41, i32 noundef %255, i32 noundef %256)
          to label %257 unwind label %286

257:                                              ; preds = %254
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef byval(%struct.TensorDesc) align 8 %41)
          to label %258 unwind label %286

258:                                              ; preds = %257
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %259 unwind label %286

259:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %12, i64 48, i1 false), !tbaa.struct !29
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  %260 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef %43, ptr noundef %44, ptr noundef byval(%struct.ReductionParamSpec) align 8 %45, ptr noundef %46, ptr noundef %47, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %261 unwind label %290

261:                                              ; preds = %259
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  store i32 %260, ptr %42, align 4, !tbaa !33
  %262 = load i32, ptr %42, align 4, !tbaa !33
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %298

264:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  %265 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %266 = trunc i64 %265 to i32
  store i32 %266, ptr %48, align 4, !tbaa !5
  %267 = load i32, ptr %48, align 4, !tbaa !5
  %268 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %267)
          to label %269 unwind label %294

269:                                              ; preds = %264
  %270 = load ptr, ptr @stdout, align 8, !tbaa !9
  %271 = invoke i32 @fflush(ptr noundef %270)
          to label %272 unwind label %294

272:                                              ; preds = %269
  %273 = load i32, ptr %42, align 4, !tbaa !33
  %274 = invoke ptr @ee2str(i32 noundef %273)
          to label %275 unwind label %294

275:                                              ; preds = %272
  %276 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %274)
          to label %277 unwind label %294

277:                                              ; preds = %275
  %278 = load ptr, ptr @stdout, align 8, !tbaa !9
  %279 = invoke i32 @fflush(ptr noundef %278)
          to label %280 unwind label %294

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

281:                                              ; preds = %249, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %478

282:                                              ; preds = %253
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %21, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %22, align 4
  br label %477

286:                                              ; preds = %258, %257, %254
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %21, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %22, align 4
  br label %476

290:                                              ; preds = %259
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %21, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %320

294:                                              ; preds = %277, %275, %272, %269, %264
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %21, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %320

298:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %12, i64 48, i1 false), !tbaa.struct !29
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  %299 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef %50, ptr noundef %51, ptr noundef byval(%struct.ReductionParamSpec) align 8 %52, ptr noundef %53, ptr noundef %54, ptr noundef @_ZL18UT_SERIAL_ARCHINFO)
          to label %300 unwind label %321

300:                                              ; preds = %298
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  store i32 %299, ptr %49, align 4, !tbaa !33
  %301 = load i32, ptr %49, align 4, !tbaa !33
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %329

303:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  %304 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %305 = trunc i64 %304 to i32
  store i32 %305, ptr %55, align 4, !tbaa !5
  %306 = load i32, ptr %55, align 4, !tbaa !5
  %307 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %306)
          to label %308 unwind label %325

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

311:                                              ; preds = %308
  %312 = load i32, ptr %49, align 4, !tbaa !33
  %313 = invoke ptr @ee2str(i32 noundef %312)
          to label %314 unwind label %325

314:                                              ; preds = %311
  %315 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %313)
          to label %316 unwind label %325

316:                                              ; preds = %314
  %317 = load ptr, ptr @stdout, align 8, !tbaa !9
  %318 = invoke i32 @fflush(ptr noundef %317)
          to label %319 unwind label %325

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

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

321:                                              ; preds = %298
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %21, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  br label %344

325:                                              ; preds = %316, %314, %311, %308, %303
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %21, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  br label %344

329:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  %330 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %56, i32 noundef 1)
          to label %331 unwind label %345

331:                                              ; preds = %329
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  %332 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %57, i32 noundef 1)
          to label %333 unwind label %349

333:                                              ; preds = %331
  %334 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %335 unwind label %349

335:                                              ; preds = %333
  %336 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %330, ptr noundef %332, i32 noundef %334, i32 noundef %336, float noundef 1.000000e+00)
          to label %337 unwind label %349

337:                                              ; preds = %335
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %338 = invoke noundef double @_Z10ut_time_msv()
          to label %339 unwind label %354

339:                                              ; preds = %337
  store double %338, ptr %58, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  store i32 0, ptr %59, align 4, !tbaa !5
  br label %340

340:                                              ; preds = %389, %339
  %341 = load i32, ptr %59, align 4, !tbaa !5
  %342 = icmp slt i32 %341, 6
  br i1 %342, label %358, label %343

343:                                              ; preds = %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  br label %393

344:                                              ; preds = %325, %321
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %476

345:                                              ; preds = %329
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %21, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %22, align 4
  br label %353

349:                                              ; preds = %335, %333, %331
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %21, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #9
  br label %353

353:                                              ; preds = %349, %345
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #9
  br label %476

354:                                              ; preds = %337
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %21, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %22, align 4
  br label %475

358:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %12, i64 48, i1 false), !tbaa.struct !29
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  %359 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef %61, ptr noundef %62, ptr noundef byval(%struct.ReductionParamSpec) align 8 %63, ptr noundef %64, ptr noundef %65, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %360 unwind label %380

360:                                              ; preds = %358
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #9
  store i32 %359, ptr %60, align 4, !tbaa !33
  %361 = load i32, ptr %60, align 4, !tbaa !33
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %388

363:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #9
  %364 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %365 = trunc i64 %364 to i32
  store i32 %365, ptr %66, align 4, !tbaa !5
  %366 = load i32, ptr %66, align 4, !tbaa !5
  %367 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %366)
          to label %368 unwind label %384

368:                                              ; preds = %363
  %369 = load ptr, ptr @stdout, align 8, !tbaa !9
  %370 = invoke i32 @fflush(ptr noundef %369)
          to label %371 unwind label %384

371:                                              ; preds = %368
  %372 = load i32, ptr %60, align 4, !tbaa !33
  %373 = invoke ptr @ee2str(i32 noundef %372)
          to label %374 unwind label %384

374:                                              ; preds = %371
  %375 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %373)
          to label %376 unwind label %384

376:                                              ; preds = %374
  %377 = load ptr, ptr @stdout, align 8, !tbaa !9
  %378 = invoke i32 @fflush(ptr noundef %377)
          to label %379 unwind label %384

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

380:                                              ; preds = %358
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %21, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %22, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #9
  br label %392

384:                                              ; preds = %376, %374, %371, %368, %363
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %21, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #9
  br label %392

388:                                              ; preds = %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  br label %389

389:                                              ; preds = %388
  %390 = load i32, ptr %59, align 4, !tbaa !5
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %59, align 4, !tbaa !5
  br label %340, !llvm.loop !37

392:                                              ; preds = %384, %380
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  br label %475

393:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %394 = invoke noundef double @_Z10ut_time_msv()
          to label %395 unwind label %422

395:                                              ; preds = %393
  store double %394, ptr %67, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #9
  %396 = load double, ptr %67, align 8, !tbaa !35
  %397 = load double, ptr %58, align 8, !tbaa !35
  %398 = fsub double %396, %397
  %399 = fdiv double %398, 6.000000e+00
  store double %399, ptr %68, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #9
  store i32 1, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #9
  store i32 1, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #9
  store i32 1, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #9
  store i32 1, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %74, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %400 unwind label %426

400:                                              ; preds = %395
  %401 = invoke noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %74, ptr noundef %6, ptr noundef %14, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
          to label %402 unwind label %426

402:                                              ; preds = %400
  store i32 %401, ptr %73, align 4, !tbaa !33
  %403 = load i32, ptr %73, align 4, !tbaa !33
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %434

405:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #9
  %406 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %407 = trunc i64 %406 to i32
  store i32 %407, ptr %75, align 4, !tbaa !5
  %408 = load i32, ptr %75, align 4, !tbaa !5
  %409 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %408)
          to label %410 unwind label %430

410:                                              ; preds = %405
  %411 = load ptr, ptr @stdout, align 8, !tbaa !9
  %412 = invoke i32 @fflush(ptr noundef %411)
          to label %413 unwind label %430

413:                                              ; preds = %410
  %414 = load i32, ptr %73, align 4, !tbaa !33
  %415 = invoke ptr @ee2str(i32 noundef %414)
          to label %416 unwind label %430

416:                                              ; preds = %413
  %417 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %415)
          to label %418 unwind label %430

418:                                              ; preds = %416
  %419 = load ptr, ptr @stdout, align 8, !tbaa !9
  %420 = invoke i32 @fflush(ptr noundef %419)
          to label %421 unwind label %430

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

422:                                              ; preds = %393
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %21, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %22, align 4
  br label %474

426:                                              ; preds = %400, %395
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %21, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %22, align 4
  br label %468

430:                                              ; preds = %418, %416, %413, %410, %405
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %21, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #9
  br label %468

434:                                              ; preds = %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #9
  call void @llvm.lifetime.start.p0(i64 150, ptr %76) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %77) #9
  %435 = getelementptr inbounds [120 x i8], ptr %77, i64 0, i64 0
  %436 = load i32, ptr %8, align 4, !tbaa !5
  %437 = load i32, ptr %9, align 4, !tbaa !5
  %438 = load i32, ptr %10, align 4, !tbaa !5
  %439 = load i32, ptr %11, align 4, !tbaa !5
  %440 = getelementptr inbounds %struct.ReductionParamSpec, ptr %12, i32 0, i32 1
  %441 = load i32, ptr %440, align 4, !tbaa !13
  %442 = load i32, ptr %69, align 4, !tbaa !5
  %443 = load i32, ptr %70, align 4, !tbaa !5
  %444 = load i32, ptr %71, align 4, !tbaa !5
  %445 = load i32, ptr %72, align 4, !tbaa !5
  %446 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %435, ptr noundef @.str.3, i32 noundef %436, i32 noundef %437, i32 noundef %438, i32 noundef %439, i32 noundef %441, i32 noundef %442, i32 noundef %443, i32 noundef %444, i32 noundef %445) #9
  %447 = getelementptr inbounds [150 x i8], ptr %76, i64 0, i64 0
  %448 = getelementptr inbounds [120 x i8], ptr %77, i64 0, i64 0
  %449 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %447, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %448) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #9
  %450 = load i32, ptr %8, align 4, !tbaa !5
  %451 = uitofp i32 %450 to double
  %452 = fmul double 1.000000e+00, %451
  %453 = load i32, ptr %9, align 4, !tbaa !5
  %454 = uitofp i32 %453 to double
  %455 = fmul double %452, %454
  %456 = load i32, ptr %10, align 4, !tbaa !5
  %457 = uitofp i32 %456 to double
  %458 = fmul double %455, %457
  %459 = load i32, ptr %11, align 4, !tbaa !5
  %460 = uitofp i32 %459 to double
  %461 = fmul double %458, %460
  store double %461, ptr %78, align 8, !tbaa !35
  %462 = load i32, ptr %6, align 4, !tbaa !11
  %463 = getelementptr inbounds [150 x i8], ptr %76, i64 0, i64 0
  %464 = load double, ptr %78, align 8, !tbaa !35
  %465 = load double, ptr %68, align 8, !tbaa !35
  %466 = fdiv double %465, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %462, ptr noundef %463, double noundef %464, double noundef %466)
          to label %467 unwind label %469

467:                                              ; preds = %434
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #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 @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, 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

468:                                              ; preds = %430, %426
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #9
  br label %473

469:                                              ; preds = %434
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %21, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %77) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %76) #9
  br label %473

473:                                              ; preds = %469, %468
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  br label %474

474:                                              ; preds = %473, %422
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  br label %475

475:                                              ; preds = %474, %392, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  br label %476

476:                                              ; preds = %475, %353, %344, %320, %286
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  br label %477

477:                                              ; preds = %476, %282
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #9
  br label %478

478:                                              ; preds = %477, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %479

479:                                              ; preds = %478, %241, %240
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  br label %480

480:                                              ; preds = %479, %202
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #9
  br label %481

481:                                              ; preds = %480, %198
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #9
  br label %482

482:                                              ; preds = %481, %194
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #9
  br label %483

483:                                              ; preds = %482, %190
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #9
  br label %484

484:                                              ; preds = %483, %186, %182
  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 @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, 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 %485

485:                                              ; preds = %484
  %486 = load ptr, ptr %21, align 8
  %487 = load i32, ptr %22, align 4
  %488 = insertvalue { ptr, i32 } poison, ptr %486, 0
  %489 = insertvalue { ptr, i32 } %488, i32 %487, 1
  resume { ptr, i32 } %489
}

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) unnamed_addr #6 align 2

; 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 uwtable
declare dso_local noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef, i32 noundef, i32 noundef) #7

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) #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 #6 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 #6 align 2

declare noundef i32 @_Z27reduction_infer_output_sizeP6TensorS_18ReductionParamSpecS0_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, ptr noundef) #3

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

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

declare noundef i32 @_Z33reduction_infer_forward_tmp_bytes6Tensor18ReductionParamSpecS_PjP8ArchInfo(ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, ptr noundef, ptr noundef) #3

; 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 noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, ptr noundef, ptr noundef) #3

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

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

declare noundef double @_Z10ut_time_msv() #3

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

; 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

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 = { 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 = { 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 32}
!14 = !{!"_ZTS18ReductionParamSpec", !7, i64 0, !6, i64 32, !15, i64 36, !16, i64 40, !17, i64 44}
!15 = !{!"_ZTS13ReductionMode", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!14, !15, i64 36}
!21 = !{!14, !16, i64 40}
!22 = !{!14, !17, i64 44}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS10DataFormat", !7, i64 0}
!25 = !{!26, !6, i64 8}
!26 = !{!"_ZTS10TensorDesc", !12, i64 0, !24, i64 4, !6, i64 8, !7, i64 12}
!27 = !{i64 0, i64 4, !11, i64 4, i64 4, !23, i64 8, i64 4, !5, i64 12, i64 80, !28}
!28 = !{!7, !7, i64 0}
!29 = !{i64 0, i64 32, !28, i64 32, i64 4, !5, i64 36, i64 4, !30, i64 40, i64 4, !31, i64 44, i64 1, !32}
!30 = !{!15, !15, i64 0}
!31 = !{!16, !16, i64 0}
!32 = !{!17, !17, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTS2EE", !7, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = distinct !{!37, !19}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13reductionTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %struct.ReductionParamSpec, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.TensorDesc, align 8
  %8 = alloca %struct.TensorDesc, 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 %struct.TensorDesc, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.Tensor, align 8
  %18 = alloca %struct.ReductionParamSpec, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca %class.Tensor, align 8
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca %class.Tensor, align 8
  %23 = alloca %class.Tensor, align 8
  %24 = alloca %struct.ReductionParamSpec, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %class.Tensor, align 8
  %27 = alloca %class.Tensor, align 8
  %28 = alloca %class.Tensor, align 8
  %29 = alloca %struct.ReductionParamSpec, align 8
  %30 = alloca %class.Tensor, align 8
  %31 = alloca %class.Tensor, align 8
  %32 = alloca %class.Tensor, align 8
  %33 = alloca %class.Tensor, align 8
  %34 = alloca %class.Tensor, align 8
  %35 = alloca %class.Tensor, align 8
  %36 = alloca %struct.ReductionParamSpec, align 8
  %37 = alloca %class.Tensor, align 8
  %38 = alloca %class.Tensor, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %struct.TensorDesc, align 8
  %44 = alloca [150 x i8], align 16
  %45 = alloca [120 x i8], align 16
  store i32 %2, ptr %4, align 4, !tbaa !5
  %46 = icmp sgt i32 %0, 5
  br i1 %46, label %56, label %47

47:                                               ; preds = %3
  %48 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %49 = trunc i64 %48 to i32
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %49)
  %51 = load ptr, ptr @stdout, align 8, !tbaa !9
  %52 = tail call i32 @fflush(ptr noundef %51)
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !9
  %55 = tail call i32 @fflush(ptr noundef %54)
  tail call void @exit(i32 noundef 1) #11
  unreachable

56:                                               ; preds = %3
  %57 = getelementptr inbounds i8, ptr %1, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = tail call i32 @atoi(ptr nocapture noundef %58) #12
  %60 = getelementptr inbounds i8, ptr %1, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = tail call i32 @atoi(ptr nocapture noundef %61) #12
  %63 = getelementptr inbounds i8, ptr %1, i64 24
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = tail call i32 @atoi(ptr nocapture noundef %64) #12
  %66 = getelementptr inbounds i8, ptr %1, i64 32
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = tail call i32 @atoi(ptr nocapture noundef %67) #12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #10
  %69 = getelementptr inbounds i8, ptr %1, i64 40
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = tail call i32 @atoi(ptr nocapture noundef %70) #12
  %72 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 %71, ptr %72, align 8, !tbaa !11
  %invariant.gep = getelementptr inbounds i8, ptr %1, i64 48
  %73 = icmp sgt i32 %71, 0
  br i1 %73, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %56
  %74 = phi i32 [ %71, %56 ], [ %84, %.lr.ph ]
  %75 = getelementptr inbounds i8, ptr %5, i64 36
  store i32 1, ptr %75, align 4, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %5, i64 40
  store float 1.000000e+00, ptr %76, align 8, !tbaa !18
  %77 = getelementptr inbounds i8, ptr %5, i64 44
  store i8 1, ptr %77, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  store i32 0, ptr %6, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %7) #10
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %7) #10
  %78 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 0, ptr %78, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %8) #10
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %8, i32 noundef %2, i32 noundef 0, i32 noundef %59, i32 noundef %62, i32 noundef %65, i32 noundef %68)
  %79 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8)
  %80 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %79, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8)
          to label %87 unwind label %111

.lr.ph:                                           ; preds = %56, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %56 ]
  %gep = getelementptr inbounds ptr, ptr %invariant.gep, i64 %indvars.iv
  %81 = load ptr, ptr %gep, align 8, !tbaa !9
  %82 = tail call i32 @atoi(ptr nocapture noundef %81) #12
  %83 = getelementptr inbounds [8 x i32], ptr %5, i64 0, i64 %indvars.iv
  store i32 %82, ptr %83, align 4, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = load i32, ptr %72, align 8, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next, %85
  br i1 %86, label %.lr.ph, label %._crit_edge, !llvm.loop !25

87:                                               ; preds = %._crit_edge
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %88 unwind label %111

88:                                               ; preds = %87
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  %89 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %10, i32 noundef 1)
          to label %90 unwind label %113

90:                                               ; preds = %88
  %91 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8)
          to label %92 unwind label %113

92:                                               ; preds = %90
  %93 = zext i32 %91 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %89, ptr noundef %80, i64 noundef %93)
          to label %94 unwind label %113

94:                                               ; preds = %92
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1)
          to label %95 unwind label %115

95:                                               ; preds = %94
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %7)
          to label %96 unwind label %117

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 1)
          to label %97 unwind label %119

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %98 unwind label %121

98:                                               ; preds = %97
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  %99 = invoke noundef i32 @_Z27reduction_infer_output_sizeP6TensorS_18ReductionParamSpecS0_P8ArchInfo(ptr noundef nonnull %9, ptr noundef nonnull %14, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %5, ptr noundef nonnull %12, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %100 unwind label %123

100:                                              ; preds = %98
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not = icmp eq i32 %99, 0
  br i1 %.not, label %125, label %101

101:                                              ; preds = %100
  %102 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %103 = trunc i64 %102 to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %103)
  %105 = load ptr, ptr @stdout, align 8, !tbaa !9
  %106 = call i32 @fflush(ptr noundef %105)
  %107 = call ptr @ee2str(i32 noundef %99)
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %107)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !9
  %110 = call i32 @fflush(ptr noundef %109)
  call void @exit(i32 noundef 1) #11
  unreachable

111:                                              ; preds = %87, %._crit_edge
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %274

113:                                              ; preds = %92, %90, %88
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %274

115:                                              ; preds = %94
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %273

117:                                              ; preds = %95
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %272

119:                                              ; preds = %96
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %271

121:                                              ; preds = %97
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %270

123:                                              ; preds = %98
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %269

125:                                              ; preds = %100
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %126 unwind label %142

126:                                              ; preds = %125
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %15, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %127 unwind label %142

127:                                              ; preds = %126
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %15)
          to label %128 unwind label %142

128:                                              ; preds = %127
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %129 unwind label %142

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %130 = invoke noundef i32 @_Z33reduction_infer_forward_tmp_bytes6Tensor18ReductionParamSpecS_PjP8ArchInfo(ptr noundef nonnull %17, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %18, ptr noundef nonnull %19, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %131 unwind label %144

131:                                              ; preds = %129
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  %.not71 = icmp eq i32 %130, 0
  br i1 %.not71, label %146, label %132

132:                                              ; preds = %131
  %133 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %134 = trunc i64 %133 to i32
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %134)
  %136 = load ptr, ptr @stdout, align 8, !tbaa !9
  %137 = call i32 @fflush(ptr noundef %136)
  %138 = call ptr @ee2str(i32 noundef %130)
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %138)
  %140 = load ptr, ptr @stdout, align 8, !tbaa !9
  %141 = call i32 @fflush(ptr noundef %140)
  call void @exit(i32 noundef 1) #11
  unreachable

142:                                              ; preds = %128, %127, %126, %125
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %269

144:                                              ; preds = %129
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  br label %268

146:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 1)
          to label %147 unwind label %164

147:                                              ; preds = %146
  %148 = load i32, ptr %16, align 4, !tbaa !24
  invoke void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %21, i32 noundef %2, i32 noundef %148)
          to label %149 unwind label %166

149:                                              ; preds = %147
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %21)
          to label %150 unwind label %166

150:                                              ; preds = %149
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %151 unwind label %166

151:                                              ; preds = %150
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %152 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %153 unwind label %168

153:                                              ; preds = %151
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  %.not72 = icmp eq i32 %152, 0
  br i1 %.not72, label %170, label %154

154:                                              ; preds = %153
  %155 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %156 = trunc i64 %155 to i32
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %156)
  %158 = load ptr, ptr @stdout, align 8, !tbaa !9
  %159 = call i32 @fflush(ptr noundef %158)
  %160 = call ptr @ee2str(i32 noundef %152)
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %160)
  %162 = load ptr, ptr @stdout, align 8, !tbaa !9
  %163 = call i32 @fflush(ptr noundef %162)
  call void @exit(i32 noundef 1) #11
  unreachable

164:                                              ; preds = %146
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %267

166:                                              ; preds = %150, %149, %147
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %266

168:                                              ; preds = %151
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  br label %266

170:                                              ; preds = %153
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  %171 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %29, ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef nonnull @_ZL18UT_SERIAL_ARCHINFO)
          to label %172 unwind label %183

172:                                              ; preds = %170
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  %.not73 = icmp eq i32 %171, 0
  br i1 %.not73, label %185, label %173

173:                                              ; preds = %172
  %174 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %175 = trunc i64 %174 to i32
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %175)
  %177 = load ptr, ptr @stdout, align 8, !tbaa !9
  %178 = call i32 @fflush(ptr noundef %177)
  %179 = call ptr @ee2str(i32 noundef %171)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %179)
  %181 = load ptr, ptr @stdout, align 8, !tbaa !9
  %182 = call i32 @fflush(ptr noundef %181)
  call void @exit(i32 noundef 1) #11
  unreachable

183:                                              ; preds = %170
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %266

185:                                              ; preds = %172
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %186 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %32, i32 noundef 1)
          to label %187 unwind label %207

187:                                              ; preds = %185
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  %188 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %33, i32 noundef 1)
          to label %189 unwind label %209

189:                                              ; preds = %187
  %190 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %191 unwind label %209

191:                                              ; preds = %189
  invoke void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %186, ptr noundef %188, i32 noundef %190, i32 noundef %2, float noundef 1.000000e+00)
          to label %192 unwind label %209

192:                                              ; preds = %191
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  %193 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %212

.preheader.preheader:                             ; preds = %192
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %194 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %214 unwind label %225

.preheader.1:                                     ; preds = %214
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %195 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %196 unwind label %225

196:                                              ; preds = %.preheader.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90.1 = icmp eq i32 %195, 0
  br i1 %.not90.1, label %.preheader.2, label %215

.preheader.2:                                     ; preds = %196
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %197 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %198 unwind label %225

198:                                              ; preds = %.preheader.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90.2 = icmp eq i32 %197, 0
  br i1 %.not90.2, label %.preheader.3, label %215

.preheader.3:                                     ; preds = %198
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %199 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %200 unwind label %225

200:                                              ; preds = %.preheader.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90.3 = icmp eq i32 %199, 0
  br i1 %.not90.3, label %.preheader.4, label %215

.preheader.4:                                     ; preds = %200
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %201 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %202 unwind label %225

202:                                              ; preds = %.preheader.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90.4 = icmp eq i32 %201, 0
  br i1 %.not90.4, label %.preheader.5, label %215

.preheader.5:                                     ; preds = %202
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %36, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !27
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %203 = invoke noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull byval(%struct.ReductionParamSpec) align 8 %36, ptr noundef nonnull %37, ptr noundef nonnull %38, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %204 unwind label %225

204:                                              ; preds = %.preheader.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90.5 = icmp eq i32 %203, 0
  br i1 %.not90.5, label %205, label %215

205:                                              ; preds = %204
  %206 = invoke noundef double @_Z10ut_time_msv()
          to label %227 unwind label %242

207:                                              ; preds = %185
  %208 = landingpad { ptr, i32 }
          cleanup
  br label %211

209:                                              ; preds = %191, %189, %187
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %211

211:                                              ; preds = %209, %207
  %.pn = phi { ptr, i32 } [ %210, %209 ], [ %208, %207 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #10
  br label %266

212:                                              ; preds = %192
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %266

214:                                              ; preds = %.preheader.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  %.not90 = icmp eq i32 %194, 0
  br i1 %.not90, label %.preheader.1, label %215

215:                                              ; preds = %204, %202, %200, %198, %196, %214
  %.lcssa = phi i32 [ %194, %214 ], [ %195, %196 ], [ %197, %198 ], [ %199, %200 ], [ %201, %202 ], [ %203, %204 ]
  %216 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %217 = trunc i64 %216 to i32
  %218 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %217)
  %219 = load ptr, ptr @stdout, align 8, !tbaa !9
  %220 = call i32 @fflush(ptr noundef %219)
  %221 = call ptr @ee2str(i32 noundef %.lcssa)
  %222 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %221)
  %223 = load ptr, ptr @stdout, align 8, !tbaa !9
  %224 = call i32 @fflush(ptr noundef %223)
  call void @exit(i32 noundef 1) #11
  unreachable

225:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #10
  br label %266

227:                                              ; preds = %205
  %228 = fsub double %206, %193
  %229 = fdiv double %228, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #10
  store i32 1, ptr %39, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #10
  store i32 1, ptr %40, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #10
  store i32 1, ptr %41, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #10
  store i32 1, ptr %42, align 4, !tbaa !24
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %43, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %230 unwind label %244

230:                                              ; preds = %227
  %231 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %43, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull %42)
  %.not75 = icmp eq i32 %231, 0
  br i1 %.not75, label %246, label %232

232:                                              ; preds = %230
  %233 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %234 = trunc i64 %233 to i32
  %235 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %234)
  %236 = load ptr, ptr @stdout, align 8, !tbaa !9
  %237 = call i32 @fflush(ptr noundef %236)
  %238 = call ptr @ee2str(i32 noundef %231)
  %239 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %238)
  %240 = load ptr, ptr @stdout, align 8, !tbaa !9
  %241 = call i32 @fflush(ptr noundef %240)
  call void @exit(i32 noundef 1) #11
  unreachable

242:                                              ; preds = %205
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %266

244:                                              ; preds = %227
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %265

246:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %44) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %45) #10
  %247 = load i32, ptr %39, align 4, !tbaa !24
  %248 = load i32, ptr %40, align 4, !tbaa !24
  %249 = load i32, ptr %41, align 4, !tbaa !24
  %250 = load i32, ptr %42, align 4, !tbaa !24
  %251 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %45, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %59, i32 noundef %62, i32 noundef %65, i32 noundef %68, i32 noundef %74, i32 noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250) #10
  %252 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %45) #10
  %253 = uitofp i32 %59 to double
  %254 = uitofp i32 %62 to double
  %255 = fmul double %253, %254
  %256 = uitofp i32 %65 to double
  %257 = fmul double %255, %256
  %258 = uitofp i32 %68 to double
  %259 = fmul double %257, %258
  %260 = load i32, ptr %4, align 4, !tbaa !5
  %261 = fdiv double %229, 6.000000e+00
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %260, ptr noundef nonnull %44, double noundef %259, double noundef %261)
          to label %262 unwind label %263

262:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %45) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #10
  ret i32 0

263:                                              ; preds = %246
  %264 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %45) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %44) #10
  br label %265

265:                                              ; preds = %263, %244
  %.pn76 = phi { ptr, i32 } [ %264, %263 ], [ %245, %244 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #10
  br label %266

266:                                              ; preds = %212, %225, %265, %242, %211, %183, %168, %166
  %.pn79.pn = phi { ptr, i32 } [ %.pn, %211 ], [ %184, %183 ], [ %169, %168 ], [ %167, %166 ], [ %226, %225 ], [ %213, %212 ], [ %.pn76, %265 ], [ %243, %242 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br label %267

267:                                              ; preds = %266, %164
  %.pn79.pn.pn = phi { ptr, i32 } [ %.pn79.pn, %266 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  br label %268

268:                                              ; preds = %267, %144
  %.pn79.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn, %267 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  br label %269

269:                                              ; preds = %268, %142, %123
  %.pn79.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn, %268 ], [ %143, %142 ], [ %124, %123 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  br label %270

270:                                              ; preds = %269, %121
  %.pn79.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn.pn, %269 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %271

271:                                              ; preds = %270, %119
  %.pn79.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn.pn.pn, %270 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  br label %272

272:                                              ; preds = %271, %117
  %.pn79.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn.pn.pn.pn, %271 ], [ %118, %117 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %273

273:                                              ; preds = %272, %115
  %.pn79.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn.pn.pn.pn.pn, %272 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  br label %274

274:                                              ; preds = %273, %113, %111
  %.pn79.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn79.pn.pn.pn.pn.pn.pn.pn.pn, %273 ], [ %114, %113 ], [ %112, %111 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #10
  resume { ptr, i32 } %.pn79.pn.pn.pn.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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) unnamed_addr #6 align 2

; 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 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 nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #6

; Function Attrs: mustprogress 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 @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #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 @_Z27reduction_infer_output_sizeP6TensorS_18ReductionParamSpecS0_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, ptr noundef) local_unnamed_addr #9

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

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

declare noundef i32 @_Z33reduction_infer_forward_tmp_bytes6Tensor18ReductionParamSpecS_PjP8ArchInfo(ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #9

; 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 noundef i32 @_Z9reduction6TensorS_18ReductionParamSpecS_S_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef byval(%struct.ReductionParamSpec) align 8, ptr noundef, 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

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

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #9

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

; 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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"_ZTS8DataType", !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, !13, i64 32}
!12 = !{!"_ZTS18ReductionParamSpec", !7, i64 0, !13, i64 32, !14, i64 36, !15, i64 40, !16, i64 44}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS13ReductionMode", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!12, !14, i64 36}
!18 = !{!12, !15, i64 40}
!19 = !{!12, !16, i64 44}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS10DataFormat", !7, i64 0}
!22 = !{!23, !13, i64 8}
!23 = !{!"_ZTS10TensorDesc", !6, i64 0, !21, i64 4, !13, i64 8, !7, i64 12}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{i64 0, i64 32, !28, i64 32, i64 4, !24, i64 36, i64 4, !29, i64 40, i64 4, !30, i64 44, i64 1, !31}
!28 = !{!7, !7, i64 0}
!29 = !{!14, !14, i64 0}
!30 = !{!15, !15, i64 0}
!31 = !{!16, !16, i64 0}


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