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

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

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

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

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

76:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 1
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = call i32 @atoi(ptr noundef %79) #11
  store i32 %80, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 2
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = call i32 @atoi(ptr noundef %83) #11
  store i32 %84, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 3
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 @atoi(ptr noundef %87) #11
  store i32 %88, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 4
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i32 @atoi(ptr noundef %91) #11
  store i32 %92, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  %94 = getelementptr inbounds ptr, ptr %93, i64 5
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = call i32 @atoi(ptr noundef %95) #11
  store i32 %96, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %97 = load ptr, ptr %5, align 8, !tbaa !9
  %98 = getelementptr inbounds ptr, ptr %97, i64 6
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = call i32 @atoi(ptr noundef %99) #11
  store i32 %100, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = getelementptr inbounds ptr, ptr %101, i64 7
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = call i32 @atoi(ptr noundef %103) #11
  store i32 %104, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 8
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = call i32 @atoi(ptr noundef %107) #11
  store i32 %108, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #9
  %109 = getelementptr inbounds %struct.ExpandParamSpec, ptr %16, i32 0, i32 1
  store i32 4, ptr %109, align 4, !tbaa !13
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = getelementptr inbounds %struct.ExpandParamSpec, ptr %16, i32 0, i32 0
  %112 = getelementptr inbounds [8 x i32], ptr %111, i64 0, i64 0
  store i32 %110, ptr %112, align 4, !tbaa !5
  %113 = load i32, ptr %13, align 4, !tbaa !5
  %114 = getelementptr inbounds %struct.ExpandParamSpec, ptr %16, i32 0, i32 0
  %115 = getelementptr inbounds [8 x i32], ptr %114, i64 0, i64 1
  store i32 %113, ptr %115, align 4, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = getelementptr inbounds %struct.ExpandParamSpec, ptr %16, i32 0, i32 0
  %118 = getelementptr inbounds [8 x i32], ptr %117, i64 0, i64 2
  store i32 %116, ptr %118, align 4, !tbaa !5
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = getelementptr inbounds %struct.ExpandParamSpec, ptr %16, i32 0, i32 0
  %121 = getelementptr inbounds [8 x i32], ptr %120, i64 0, i64 3
  store i32 %119, ptr %121, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 92, ptr %18) #9
  %122 = load i32, ptr %6, align 4, !tbaa !11
  %123 = load i32, ptr %17, align 4, !tbaa !15
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %18, i32 noundef %122, i32 noundef %123, i32 noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef %127)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %18, i64 92, i1 false), !tbaa.struct !17
  %128 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %20)
  store i32 %128, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = load i32, ptr %6, align 4, !tbaa !11
  %131 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %129, i32 noundef %130, i32 noundef 0)
  store ptr %131, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %18, i64 92, i1 false), !tbaa.struct !17
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef byval(%struct.TensorDesc) align 8 %23)
          to label %132 unwind label %163

132:                                              ; preds = %76
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %133 unwind label %163

133:                                              ; preds = %132
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %134 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %26, i32 noundef 1)
          to label %135 unwind label %167

135:                                              ; preds = %133
  %136 = load ptr, ptr %21, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %18, i64 92, i1 false), !tbaa.struct !17
  %137 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %27)
          to label %138 unwind label %167

138:                                              ; preds = %135
  %139 = zext i32 %137 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %134, ptr noundef %136, i64 noundef %139)
          to label %140 unwind label %167

140:                                              ; preds = %138
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  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 %141 unwind label %171

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %16, i64 36, i1 false), !tbaa.struct !19
  %142 = invoke noundef i32 @_Z24expand_infer_output_sizeP6Tensor15ExpandParamSpecS0_P8ArchInfo(ptr noundef %22, ptr noundef byval(%struct.ExpandParamSpec) align 8 %30, ptr noundef %28, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %143 unwind label %175

143:                                              ; preds = %141
  store i32 %142, ptr %29, align 4, !tbaa !20
  %144 = load i32, ptr %29, align 4, !tbaa !20
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %183

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %147 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %148 = trunc i64 %147 to i32
  store i32 %148, ptr %31, align 4, !tbaa !5
  %149 = load i32, ptr %31, align 4, !tbaa !5
  %150 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %149)
          to label %151 unwind label %179

151:                                              ; preds = %146
  %152 = load ptr, ptr @stdout, align 8, !tbaa !9
  %153 = invoke i32 @fflush(ptr noundef %152)
          to label %154 unwind label %179

154:                                              ; preds = %151
  %155 = load i32, ptr %29, align 4, !tbaa !20
  %156 = invoke ptr @ee2str(i32 noundef %155)
          to label %157 unwind label %179

157:                                              ; preds = %154
  %158 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %156)
          to label %159 unwind label %179

159:                                              ; preds = %157
  %160 = load ptr, ptr @stdout, align 8, !tbaa !9
  %161 = invoke i32 @fflush(ptr noundef %160)
          to label %162 unwind label %179

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

163:                                              ; preds = %132, %76
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %24, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %25, align 4
  br label %410

167:                                              ; preds = %138, %135, %133
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %24, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %25, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %410

171:                                              ; preds = %140
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %24, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %25, align 4
  br label %409

175:                                              ; preds = %141
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %24, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %25, align 4
  br label %207

179:                                              ; preds = %159, %157, %154, %151, %146
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %24, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %207

183:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %184 unwind label %208

184:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %32, i32 noundef 1)
          to label %185 unwind label %212

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %16, i64 36, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  %186 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef %34, ptr noundef byval(%struct.ExpandParamSpec) align 8 %35, ptr noundef %36, ptr noundef %37, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %187 unwind label %216

187:                                              ; preds = %185
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  store i32 %186, ptr %33, align 4, !tbaa !20
  %188 = load i32, ptr %33, align 4, !tbaa !20
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %224

190:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %191 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %192 = trunc i64 %191 to i32
  store i32 %192, ptr %38, align 4, !tbaa !5
  %193 = load i32, ptr %38, align 4, !tbaa !5
  %194 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %193)
          to label %195 unwind label %220

195:                                              ; preds = %190
  %196 = load ptr, ptr @stdout, align 8, !tbaa !9
  %197 = invoke i32 @fflush(ptr noundef %196)
          to label %198 unwind label %220

198:                                              ; preds = %195
  %199 = load i32, ptr %33, align 4, !tbaa !20
  %200 = invoke ptr @ee2str(i32 noundef %199)
          to label %201 unwind label %220

201:                                              ; preds = %198
  %202 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %200)
          to label %203 unwind label %220

203:                                              ; preds = %201
  %204 = load ptr, ptr @stdout, align 8, !tbaa !9
  %205 = invoke i32 @fflush(ptr noundef %204)
          to label %206 unwind label %220

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

207:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %408

208:                                              ; preds = %183
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %24, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %25, align 4
  br label %408

212:                                              ; preds = %184
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %24, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %25, align 4
  br label %407

216:                                              ; preds = %185
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %24, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %25, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  br label %231

220:                                              ; preds = %203, %201, %198, %195, %190
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %24, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %231

224:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  store double 0.000000e+00, ptr %39, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %225 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %225, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %241, %224
  %227 = load i32, ptr %41, align 4, !tbaa !5
  %228 = load i32, ptr %19, align 4, !tbaa !5
  %229 = icmp ult i32 %227, %228
  br i1 %229, label %232, label %230

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

231:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %406

232:                                              ; preds = %226
  %233 = load ptr, ptr %40, align 8, !tbaa !9
  %234 = load i32, ptr %41, align 4, !tbaa !5
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds float, ptr %233, i64 %235
  %237 = load float, ptr %236, align 4, !tbaa !24
  %238 = fpext float %237 to double
  %239 = load double, ptr %39, align 8, !tbaa !22
  %240 = fadd double %239, %238
  store double %240, ptr %39, align 8, !tbaa !22
  br label %241

241:                                              ; preds = %232
  %242 = load i32, ptr %41, align 4, !tbaa !5
  %243 = add i32 %242, 1
  store i32 %243, ptr %41, align 4, !tbaa !5
  br label %226, !llvm.loop !26

244:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  store double 0.000000e+00, ptr %42, align 8, !tbaa !22
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  %245 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %43, i32 noundef 1)
          to label %246 unwind label %255

246:                                              ; preds = %244
  store ptr %245, ptr %40, align 8, !tbaa !9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %45, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %247 unwind label %259

247:                                              ; preds = %246
  %248 = invoke noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %45)
          to label %249 unwind label %259

249:                                              ; preds = %247
  store i32 %248, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %272, %249
  %251 = load i32, ptr %46, align 4, !tbaa !5
  %252 = load i32, ptr %44, align 4, !tbaa !5
  %253 = icmp ult i32 %251, %252
  br i1 %253, label %263, label %254

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

255:                                              ; preds = %244
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %24, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %25, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %293

259:                                              ; preds = %275, %247, %246
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %24, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  br label %293

263:                                              ; preds = %250
  %264 = load ptr, ptr %40, align 8, !tbaa !9
  %265 = load i32, ptr %46, align 4, !tbaa !5
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds float, ptr %264, i64 %266
  %268 = load float, ptr %267, align 4, !tbaa !24
  %269 = fpext float %268 to double
  %270 = load double, ptr %42, align 8, !tbaa !22
  %271 = fadd double %270, %269
  store double %271, ptr %42, align 8, !tbaa !22
  br label %272

272:                                              ; preds = %263
  %273 = load i32, ptr %46, align 4, !tbaa !5
  %274 = add i32 %273, 1
  store i32 %274, ptr %46, align 4, !tbaa !5
  br label %250, !llvm.loop !28

275:                                              ; preds = %254
  %276 = load double, ptr %39, align 8, !tbaa !22
  %277 = load i32, ptr %44, align 4, !tbaa !5
  %278 = uitofp i32 %277 to double
  %279 = fmul double %276, %278
  %280 = load i32, ptr %19, align 4, !tbaa !5
  %281 = uitofp i32 %280 to double
  %282 = fdiv double %279, %281
  %283 = fptrunc double %282 to float
  %284 = load double, ptr %42, align 8, !tbaa !22
  %285 = fptrunc double %284 to float
  invoke void @_Z10ut_check_sfffi(float noundef %283, float noundef %285, float noundef 0.000000e+00, i32 noundef 0)
          to label %286 unwind label %259

286:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %287 = invoke noundef double @_Z10ut_time_msv()
          to label %288 unwind label %294

288:                                              ; preds = %286
  store double %287, ptr %47, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %329, %288
  %290 = load i32, ptr %48, align 4, !tbaa !5
  %291 = icmp slt i32 %290, 6
  br i1 %291, label %298, label %292

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

293:                                              ; preds = %259, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %406

294:                                              ; preds = %286
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %24, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %25, align 4
  br label %405

298:                                              ; preds = %289
  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) %22) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %16, i64 36, i1 false), !tbaa.struct !19
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  %299 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef %50, ptr noundef byval(%struct.ExpandParamSpec) align 8 %51, ptr noundef %52, ptr noundef %53, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %300 unwind label %320

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

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

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

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

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

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

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

320:                                              ; preds = %298
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %24, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %25, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #9
  br label %332

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

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

329:                                              ; preds = %328
  %330 = load i32, ptr %48, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %48, align 4, !tbaa !5
  br label %289, !llvm.loop !29

332:                                              ; preds = %324, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %405

333:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  %334 = invoke noundef double @_Z10ut_time_msv()
          to label %335 unwind label %362

335:                                              ; preds = %333
  store double %334, ptr %55, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #9
  %336 = load double, ptr %55, align 8, !tbaa !22
  %337 = load double, ptr %47, align 8, !tbaa !22
  %338 = fsub double %336, %337
  %339 = fdiv double %338, 6.000000e+00
  store double %339, ptr %56, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %58, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %340 unwind label %366

340:                                              ; preds = %335
  %341 = invoke noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %58, ptr noundef %6, ptr noundef %17, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15)
          to label %342 unwind label %366

342:                                              ; preds = %340
  store i32 %341, ptr %57, align 4, !tbaa !20
  %343 = load i32, ptr %57, align 4, !tbaa !20
  %344 = icmp ne i32 %343, 0
  br i1 %344, label %345, label %374

345:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  %346 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %347 = trunc i64 %346 to i32
  store i32 %347, ptr %59, align 4, !tbaa !5
  %348 = load i32, ptr %59, align 4, !tbaa !5
  %349 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %348)
          to label %350 unwind label %370

350:                                              ; preds = %345
  %351 = load ptr, ptr @stdout, align 8, !tbaa !9
  %352 = invoke i32 @fflush(ptr noundef %351)
          to label %353 unwind label %370

353:                                              ; preds = %350
  %354 = load i32, ptr %57, align 4, !tbaa !20
  %355 = invoke ptr @ee2str(i32 noundef %354)
          to label %356 unwind label %370

356:                                              ; preds = %353
  %357 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %355)
          to label %358 unwind label %370

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

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

362:                                              ; preds = %333
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %24, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %25, align 4
  br label %404

366:                                              ; preds = %340, %335
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %24, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %25, align 4
  br label %398

370:                                              ; preds = %358, %356, %353, %350, %345
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %24, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  br label %398

374:                                              ; preds = %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 150, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %61) #9
  %375 = getelementptr inbounds [120 x i8], ptr %61, i64 0, i64 0
  %376 = load i32, ptr %8, align 4, !tbaa !5
  %377 = load i32, ptr %9, align 4, !tbaa !5
  %378 = load i32, ptr %10, align 4, !tbaa !5
  %379 = load i32, ptr %11, align 4, !tbaa !5
  %380 = load i32, ptr %12, align 4, !tbaa !5
  %381 = load i32, ptr %13, align 4, !tbaa !5
  %382 = load i32, ptr %14, align 4, !tbaa !5
  %383 = load i32, ptr %15, align 4, !tbaa !5
  %384 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %375, ptr noundef @.str.3, i32 noundef %376, i32 noundef %377, i32 noundef %378, i32 noundef %379, i32 noundef %380, i32 noundef %381, i32 noundef %382, i32 noundef %383) #9
  %385 = getelementptr inbounds [150 x i8], ptr %60, i64 0, i64 0
  %386 = getelementptr inbounds [120 x i8], ptr %61, i64 0, i64 0
  %387 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %385, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %386) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %63, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %388 unwind label %399

388:                                              ; preds = %374
  %389 = invoke noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %63)
          to label %390 unwind label %399

390:                                              ; preds = %388
  %391 = uitofp i32 %389 to double
  store double %391, ptr %62, align 8, !tbaa !22
  %392 = load i32, ptr %6, align 4, !tbaa !11
  %393 = getelementptr inbounds [150 x i8], ptr %60, i64 0, i64 0
  %394 = load double, ptr %62, align 8, !tbaa !22
  %395 = load double, ptr %56, align 8, !tbaa !22
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %392, ptr noundef %393, double noundef %394, double noundef %395)
          to label %396 unwind label %399

396:                                              ; preds = %390
  %397 = load ptr, ptr %21, align 8, !tbaa !9
  call void @free(ptr noundef %397) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #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) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, 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

398:                                              ; preds = %370, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  br label %403

399:                                              ; preds = %390, %388, %374
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %24, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %60) #9
  br label %403

403:                                              ; preds = %399, %398
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  br label %404

404:                                              ; preds = %403, %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  br label %405

405:                                              ; preds = %404, %332, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  br label %406

406:                                              ; preds = %405, %293, %231
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %407

407:                                              ; preds = %406, %212
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #9
  br label %408

408:                                              ; preds = %407, %208, %207
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  br label %409

409:                                              ; preds = %408, %171
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  br label %410

410:                                              ; preds = %409, %167, %163
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, 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 %411

411:                                              ; preds = %410
  %412 = load ptr, ptr %24, align 8
  %413 = load i32, ptr %25, align 4
  %414 = insertvalue { ptr, i32 } poison, ptr %412, 0
  %415 = insertvalue { ptr, i32 } %414, i32 %413, 1
  resume { ptr, i32 } %415
}

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

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

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

declare i32 @fflush(ptr noundef) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS15ExpandParamSpec", !7, i64 0, !6, i64 32}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS10DataFormat", !7, i64 0}
!17 = !{i64 0, i64 4, !11, i64 4, i64 4, !15, i64 8, i64 4, !5, i64 12, i64 80, !18}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 32, !18, i64 32, i64 4, !5}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS2EE", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ArchInfo = type { i32, ptr }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%class.Tensor = type { %"class.std::shared_ptr", %"class.std::shared_ptr.0" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%struct.ExpandParamSpec = type { [8 x i32], i32 }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10expandTestiPPc8DataType(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 i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %.sroa.10 = alloca [4 x i32], align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.TensorDesc, align 8
  %11 = alloca %class.Tensor, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %class.Tensor, align 8
  %14 = alloca %struct.ExpandParamSpec, align 8
  %15 = alloca %class.Tensor, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca %struct.ExpandParamSpec, align 8
  %18 = alloca %class.Tensor, 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 %struct.ExpandParamSpec, align 8
  %24 = alloca %class.Tensor, align 8
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %struct.TensorDesc, align 8
  %27 = alloca [150 x i8], align 16
  %28 = alloca [120 x i8], align 16
  %29 = alloca %struct.TensorDesc, align 8
  store i32 %2, ptr %4, align 4, !tbaa !5
  %30 = icmp eq i32 %0, 9
  br i1 %30, label %40, label %31

31:                                               ; preds = %3
  %32 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %33 = trunc i64 %32 to i32
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !9
  %36 = tail call i32 @fflush(ptr noundef %35)
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %38 = load ptr, ptr @stdout, align 8, !tbaa !9
  %39 = tail call i32 @fflush(ptr noundef %38)
  tail call void @exit(i32 noundef 1) #12
  unreachable

40:                                               ; preds = %3
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = tail call i32 @atoi(ptr nocapture noundef %42) #13
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = tail call i32 @atoi(ptr nocapture noundef %45) #13
  %47 = getelementptr inbounds i8, ptr %1, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = tail call i32 @atoi(ptr nocapture noundef %48) #13
  %50 = getelementptr inbounds i8, ptr %1, i64 32
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = tail call i32 @atoi(ptr nocapture noundef %51) #13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  %53 = getelementptr inbounds i8, ptr %1, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = tail call i32 @atoi(ptr nocapture noundef %54) #13
  store i32 %55, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  %56 = getelementptr inbounds i8, ptr %1, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = tail call i32 @atoi(ptr nocapture noundef %57) #13
  store i32 %58, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #11
  %59 = getelementptr inbounds i8, ptr %1, i64 56
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = tail call i32 @atoi(ptr nocapture noundef %60) #13
  store i32 %61, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  %62 = getelementptr inbounds i8, ptr %1, i64 64
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = tail call i32 @atoi(ptr nocapture noundef %63) #13
  store i32 %64, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 0, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #11
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, i32 noundef %2, i32 noundef 0, i32 noundef %43, i32 noundef %46, i32 noundef %49, i32 noundef %52)
  %65 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
  %66 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %65, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #11
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
          to label %67 unwind label %88

67:                                               ; preds = %40
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %68 unwind label %88

68:                                               ; preds = %67
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  %69 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %12, i32 noundef 1)
          to label %70 unwind label %90

70:                                               ; preds = %68
  %71 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10)
          to label %72 unwind label %90

72:                                               ; preds = %70
  %73 = zext i32 %71 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %69, ptr noundef %66, i64 noundef %73)
          to label %74 unwind label %90

74:                                               ; preds = %72
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #11
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
          to label %75 unwind label %92

75:                                               ; preds = %74
  store i32 %55, ptr %14, align 8
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 4
  store i32 %58, ptr %.sroa.7.0..sroa_idx, align 4
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %61, ptr %.sroa.8.0..sroa_idx, align 8
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 12
  store i32 %64, ptr %.sroa.9.0..sroa_idx, align 4
  %.sroa.1055.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 32
  store i32 4, ptr %.sroa.1055.0..sroa_idx, align 8, !tbaa !11
  %76 = invoke noundef i32 @_Z24expand_infer_output_sizeP6Tensor15ExpandParamSpecS0_P8ArchInfo(ptr noundef nonnull %11, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %14, ptr noundef nonnull %13, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %77 unwind label %94

77:                                               ; preds = %75
  %.not = icmp eq i32 %76, 0
  br i1 %.not, label %96, label %78

78:                                               ; preds = %77
  %79 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %80 = trunc i64 %79 to i32
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %80)
  %82 = load ptr, ptr @stdout, align 8, !tbaa !9
  %83 = call i32 @fflush(ptr noundef %82)
  %84 = call ptr @ee2str(i32 noundef %76)
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !9
  %87 = call i32 @fflush(ptr noundef %86)
  call void @exit(i32 noundef 1) #12
  unreachable

88:                                               ; preds = %67, %40
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %245

90:                                               ; preds = %72, %70, %68
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %245

92:                                               ; preds = %74
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %244

94:                                               ; preds = %75
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %243

96:                                               ; preds = %77
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %97 unwind label %112

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

98:                                               ; preds = %97
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %17, align 8
  %.sroa.7.0..sroa_idx41 = getelementptr inbounds i8, ptr %17, i64 4
  store i32 %58, ptr %.sroa.7.0..sroa_idx41, align 4
  %.sroa.8.0..sroa_idx45 = getelementptr inbounds i8, ptr %17, i64 8
  store i32 %61, ptr %.sroa.8.0..sroa_idx45, align 8
  %.sroa.9.0..sroa_idx49 = getelementptr inbounds i8, ptr %17, i64 12
  store i32 %64, ptr %.sroa.9.0..sroa_idx49, align 4
  %.sroa.1055.0..sroa_idx56 = getelementptr inbounds i8, ptr %17, i64 32
  store i32 4, ptr %.sroa.1055.0..sroa_idx56, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %99 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %16, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %100 unwind label %116

100:                                              ; preds = %98
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  %.not98 = icmp eq i32 %99, 0
  br i1 %.not98, label %.preheader112, label %102

.preheader112:                                    ; preds = %100
  %.not122 = icmp eq i32 %65, 0
  br i1 %.not122, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader112
  %wide.trip.count = zext i32 %65 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %101 = icmp ult i32 %65, 4
  br i1 %101, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

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

112:                                              ; preds = %96
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %243

114:                                              ; preds = %97
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %242

116:                                              ; preds = %98
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %241

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa139.ph = phi double [ poison, %.lr.ph.preheader ], [ %138, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.087114.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %138, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.087114.epil = phi double [ %121, %.lr.ph.epil ], [ %.087114.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %118 = getelementptr inbounds float, ptr %66, i64 %indvars.iv.epil
  %119 = load float, ptr %118, align 4, !tbaa !15
  %120 = fpext float %119 to double
  %121 = fadd double %.087114.epil, %120
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !17

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader112
  %.087.lcssa = phi double [ 0.000000e+00, %.preheader112 ], [ %.lcssa139.ph, %._crit_edge.loopexit.unr-lcssa ], [ %121, %.lr.ph.epil ]
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %122 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %20, i32 noundef 1)
          to label %139 unwind label %153

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.087114 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %138, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %123 = getelementptr inbounds float, ptr %66, i64 %indvars.iv
  %124 = load float, ptr %123, align 4, !tbaa !15
  %125 = fpext float %124 to double
  %126 = fadd double %.087114, %125
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %127 = getelementptr inbounds float, ptr %66, i64 %indvars.iv.next
  %128 = load float, ptr %127, align 4, !tbaa !15
  %129 = fpext float %128 to double
  %130 = fadd double %126, %129
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %131 = getelementptr inbounds float, ptr %66, i64 %indvars.iv.next.1
  %132 = load float, ptr %131, align 4, !tbaa !15
  %133 = fpext float %132 to double
  %134 = fadd double %130, %133
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %135 = getelementptr inbounds float, ptr %66, i64 %indvars.iv.next.2
  %136 = load float, ptr %135, align 4, !tbaa !15
  %137 = fpext float %136 to double
  %138 = fadd double %134, %137
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !19

139:                                              ; preds = %._crit_edge
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %21, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %140 unwind label %155

140:                                              ; preds = %139
  %141 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %21)
  %.not123 = icmp eq i32 %141, 0
  br i1 %.not123, label %._crit_edge119, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %140
  %wide.trip.count131 = zext i32 %141 to i64
  %xtraiter141 = and i64 %wide.trip.count131, 3
  %142 = icmp ult i32 %141, 4
  br i1 %142, label %._crit_edge119.loopexit.unr-lcssa, label %.lr.ph118.preheader.new

.lr.ph118.preheader.new:                          ; preds = %.lr.ph118.preheader
  %unroll_iter145 = and i64 %wide.trip.count131, 4294967292
  br label %.lr.ph118

._crit_edge119.loopexit.unr-lcssa:                ; preds = %.lr.ph118, %.lr.ph118.preheader
  %.lcssa138.ph = phi double [ poison, %.lr.ph118.preheader ], [ %172, %.lr.ph118 ]
  %indvars.iv128.unr = phi i64 [ 0, %.lr.ph118.preheader ], [ %indvars.iv.next129.3, %.lr.ph118 ]
  %.089116.unr = phi double [ 0.000000e+00, %.lr.ph118.preheader ], [ %172, %.lr.ph118 ]
  %lcmp.mod143.not = icmp eq i64 %xtraiter141, 0
  br i1 %lcmp.mod143.not, label %._crit_edge119, label %.lr.ph118.epil

.lr.ph118.epil:                                   ; preds = %._crit_edge119.loopexit.unr-lcssa, %.lr.ph118.epil
  %indvars.iv128.epil = phi i64 [ %indvars.iv.next129.epil, %.lr.ph118.epil ], [ %indvars.iv128.unr, %._crit_edge119.loopexit.unr-lcssa ]
  %.089116.epil = phi double [ %146, %.lr.ph118.epil ], [ %.089116.unr, %._crit_edge119.loopexit.unr-lcssa ]
  %epil.iter142 = phi i64 [ %epil.iter142.next, %.lr.ph118.epil ], [ 0, %._crit_edge119.loopexit.unr-lcssa ]
  %143 = getelementptr inbounds float, ptr %122, i64 %indvars.iv128.epil
  %144 = load float, ptr %143, align 4, !tbaa !15
  %145 = fpext float %144 to double
  %146 = fadd double %.089116.epil, %145
  %indvars.iv.next129.epil = add nuw nsw i64 %indvars.iv128.epil, 1
  %epil.iter142.next = add i64 %epil.iter142, 1
  %epil.iter142.cmp.not = icmp eq i64 %epil.iter142.next, %xtraiter141
  br i1 %epil.iter142.cmp.not, label %._crit_edge119, label %.lr.ph118.epil, !llvm.loop !21

._crit_edge119:                                   ; preds = %._crit_edge119.loopexit.unr-lcssa, %.lr.ph118.epil, %140
  %.089.lcssa = phi double [ 0.000000e+00, %140 ], [ %.lcssa138.ph, %._crit_edge119.loopexit.unr-lcssa ], [ %146, %.lr.ph118.epil ]
  %147 = uitofp i32 %141 to double
  %148 = fmul double %.087.lcssa, %147
  %149 = uitofp i32 %65 to double
  %150 = fdiv double %148, %149
  %151 = fptrunc double %150 to float
  %152 = fptrunc double %.089.lcssa to float
  invoke void @_Z10ut_check_sfffi(float noundef %151, float noundef %152, float noundef 0.000000e+00, i32 noundef 0)
          to label %173 unwind label %155

153:                                              ; preds = %._crit_edge
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  br label %241

155:                                              ; preds = %._crit_edge119, %139
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %241

.lr.ph118:                                        ; preds = %.lr.ph118, %.lr.ph118.preheader.new
  %indvars.iv128 = phi i64 [ 0, %.lr.ph118.preheader.new ], [ %indvars.iv.next129.3, %.lr.ph118 ]
  %.089116 = phi double [ 0.000000e+00, %.lr.ph118.preheader.new ], [ %172, %.lr.ph118 ]
  %niter146 = phi i64 [ 0, %.lr.ph118.preheader.new ], [ %niter146.next.3, %.lr.ph118 ]
  %157 = getelementptr inbounds float, ptr %122, i64 %indvars.iv128
  %158 = load float, ptr %157, align 4, !tbaa !15
  %159 = fpext float %158 to double
  %160 = fadd double %.089116, %159
  %indvars.iv.next129 = or disjoint i64 %indvars.iv128, 1
  %161 = getelementptr inbounds float, ptr %122, i64 %indvars.iv.next129
  %162 = load float, ptr %161, align 4, !tbaa !15
  %163 = fpext float %162 to double
  %164 = fadd double %160, %163
  %indvars.iv.next129.1 = or disjoint i64 %indvars.iv128, 2
  %165 = getelementptr inbounds float, ptr %122, i64 %indvars.iv.next129.1
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = fpext float %166 to double
  %168 = fadd double %164, %167
  %indvars.iv.next129.2 = or disjoint i64 %indvars.iv128, 3
  %169 = getelementptr inbounds float, ptr %122, i64 %indvars.iv.next129.2
  %170 = load float, ptr %169, align 4, !tbaa !15
  %171 = fpext float %170 to double
  %172 = fadd double %168, %171
  %indvars.iv.next129.3 = add nuw nsw i64 %indvars.iv128, 4
  %niter146.next.3 = add i64 %niter146, 4
  %niter146.ncmp.3 = icmp eq i64 %niter146.next.3, %unroll_iter145
  br i1 %niter146.ncmp.3, label %._crit_edge119.loopexit.unr-lcssa, label %.lr.ph118, !llvm.loop !22

173:                                              ; preds = %._crit_edge119
  %174 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader unwind label %193

.preheader:                                       ; preds = %173
  %.sroa.7.0..sroa_idx43 = getelementptr inbounds i8, ptr %23, i64 4
  %.sroa.8.0..sroa_idx47 = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.9.0..sroa_idx51 = getelementptr inbounds i8, ptr %23, i64 12
  %.sroa.10.0..sroa_idx54 = getelementptr inbounds i8, ptr %23, i64 16
  %.sroa.1055.0..sroa_idx58 = getelementptr inbounds i8, ptr %23, i64 32
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %175 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %195 unwind label %206

176:                                              ; preds = %195
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %177 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %178 unwind label %206

178:                                              ; preds = %176
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111.1 = icmp eq i32 %177, 0
  br i1 %.not111.1, label %179, label %196

179:                                              ; preds = %178
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %180 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %181 unwind label %206

181:                                              ; preds = %179
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111.2 = icmp eq i32 %180, 0
  br i1 %.not111.2, label %182, label %196

182:                                              ; preds = %181
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %183 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %184 unwind label %206

184:                                              ; preds = %182
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111.3 = icmp eq i32 %183, 0
  br i1 %.not111.3, label %185, label %196

185:                                              ; preds = %184
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.10.0..sroa_idx54, ptr noundef nonnull align 4 dereferenceable(16) %.sroa.10, i64 16, i1 false), !tbaa.struct !23
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %186 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %187 unwind label %206

187:                                              ; preds = %185
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111.4 = icmp eq i32 %186, 0
  br i1 %.not111.4, label %188, label %196

188:                                              ; preds = %187
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  store i32 %55, ptr %23, align 8
  store i32 %58, ptr %.sroa.7.0..sroa_idx43, align 4
  store i32 %61, ptr %.sroa.8.0..sroa_idx47, align 8
  store i32 %64, ptr %.sroa.9.0..sroa_idx51, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.10.0..sroa_idx54, ptr noundef nonnull align 4 dereferenceable(16) %.sroa.10, i64 16, i1 false), !tbaa.struct !23
  store i32 4, ptr %.sroa.1055.0..sroa_idx58, align 8, !tbaa !11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  %189 = invoke noundef i32 @_Z6expand6Tensor15ExpandParamSpecS_S_P8ArchInfo(ptr noundef nonnull %22, ptr noundef nonnull byval(%struct.ExpandParamSpec) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %190 unwind label %206

190:                                              ; preds = %188
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111.5 = icmp eq i32 %189, 0
  br i1 %.not111.5, label %191, label %196

191:                                              ; preds = %190
  %192 = invoke noundef double @_Z10ut_time_msv()
          to label %208 unwind label %223

193:                                              ; preds = %173
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %241

195:                                              ; preds = %.preheader
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  %.not111 = icmp eq i32 %175, 0
  br i1 %.not111, label %176, label %196

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

206:                                              ; preds = %188, %185, %182, %179, %176, %.preheader
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #11
  br label %241

208:                                              ; preds = %191
  %209 = fsub double %192, %174
  %210 = fdiv double %209, 6.000000e+00
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %26, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %211 unwind label %225

211:                                              ; preds = %208
  %212 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %26, ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not100 = icmp eq i32 %212, 0
  br i1 %.not100, label %227, label %213

213:                                              ; preds = %211
  %214 = call i64 (i64, ...) @syscall(i64 noundef 186) #11
  %215 = trunc i64 %214 to i32
  %216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %215)
  %217 = load ptr, ptr @stdout, align 8, !tbaa !9
  %218 = call i32 @fflush(ptr noundef %217)
  %219 = call ptr @ee2str(i32 noundef %212)
  %220 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %219)
  %221 = load ptr, ptr @stdout, align 8, !tbaa !9
  %222 = call i32 @fflush(ptr noundef %221)
  call void @exit(i32 noundef 1) #12
  unreachable

223:                                              ; preds = %191
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %241

225:                                              ; preds = %208
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %241

227:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %28) #11
  %228 = load i32, ptr %5, align 4, !tbaa !11
  %229 = load i32, ptr %6, align 4, !tbaa !11
  %230 = load i32, ptr %7, align 4, !tbaa !11
  %231 = load i32, ptr %8, align 4, !tbaa !11
  %232 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %43, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %231) #11
  %233 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %27, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %28) #11
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %29, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %234 unwind label %239

234:                                              ; preds = %227
  %235 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %29)
  %236 = uitofp i32 %235 to double
  %237 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %237, ptr noundef nonnull %27, double noundef %236, double noundef %210)
          to label %238 unwind label %239

238:                                              ; preds = %234
  call void @free(ptr noundef %66) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %27) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #11
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  ret i32 0

239:                                              ; preds = %234, %227
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %27) #11
  br label %241

241:                                              ; preds = %193, %206, %225, %239, %223, %153, %155, %116
  %.pn104.pn = phi { ptr, i32 } [ %117, %116 ], [ %156, %155 ], [ %154, %153 ], [ %207, %206 ], [ %194, %193 ], [ %224, %223 ], [ %240, %239 ], [ %226, %225 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  br label %242

242:                                              ; preds = %241, %114
  %.pn104.pn.pn = phi { ptr, i32 } [ %.pn104.pn, %241 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #11
  br label %243

243:                                              ; preds = %242, %112, %94
  %.pn104.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn, %242 ], [ %113, %112 ], [ %95, %94 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #11
  br label %244

244:                                              ; preds = %243, %92
  %.pn104.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn.pn, %243 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #11
  br label %245

245:                                              ; preds = %244, %90, %88
  %.pn104.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn.pn.pn, %244 ], [ %91, %90 ], [ %89, %88 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  resume { ptr, i32 } %.pn104.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: 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) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 #8

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

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

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

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

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

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

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS10DataFormat", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !20}
!23 = !{i64 0, i64 16, !24, i64 16, i64 4, !11}
!24 = !{!7, !7, i64 0}


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