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

; 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.SliceParamSpec = type { [8 x i32], 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" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl" }
%"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl" }
%"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9sliceTestiPPc8DataType(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 %struct.SliceParamSpec, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.TensorDesc, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.TensorDesc, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %class.Tensor, align 8
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %class.Tensor, align 8
  %26 = alloca %struct.TensorDesc, align 8
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::vector.3", align 8
  %30 = alloca %"class.std::allocator.5", align 1
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.SliceParamSpec, align 8
  %34 = alloca %"class.std::vector.3", align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %class.Tensor, align 8
  %38 = alloca i32, align 4
  %39 = alloca %class.Tensor, align 8
  %40 = alloca %struct.SliceParamSpec, align 8
  %41 = alloca %class.Tensor, align 8
  %42 = alloca %"class.std::vector", align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %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.SliceParamSpec, align 8
  %52 = alloca %class.Tensor, align 8
  %53 = alloca %"class.std::vector", align 8
  %54 = alloca i32, align 4
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca [150 x i8], align 16
  %58 = alloca [120 x i8], align 16
  %59 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 2
  br i1 %61, label %72, label %62

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

72:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  %74 = getelementptr inbounds ptr, ptr %73, i64 1
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = call i32 @atoi(ptr noundef %75) #12
  store i32 %76, ptr %8, align 4, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = add nsw i32 7, %78
  %80 = sub nsw i32 %79, 1
  %81 = icmp eq i32 %77, %80
  br i1 %81, label %92, label %82

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

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

117:                                              ; preds = %135, %92
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = getelementptr inbounds %struct.SliceParamSpec, ptr %14, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !15
  %121 = icmp ult i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %138

123:                                              ; preds = %117
  %124 = load ptr, ptr %5, align 8, !tbaa !9
  %125 = load i32, ptr %15, align 4, !tbaa !5
  %126 = add i32 7, %125
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %124, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = call i32 @atoi(ptr noundef %129) #12
  %131 = getelementptr inbounds %struct.SliceParamSpec, ptr %14, i32 0, i32 0
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [8 x i32], ptr %131, i64 0, i64 %133
  store i32 %130, ptr %134, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %123
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = add i32 %136, 1
  store i32 %137, ptr %15, align 4, !tbaa !5
  br label %117, !llvm.loop !16

138:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 92, ptr %17) #10
  %139 = load i32, ptr %6, align 4, !tbaa !11
  %140 = load i32, ptr %16, align 4, !tbaa !18
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = load i32, ptr %13, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %17, i32 noundef %139, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !20
  %145 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %19)
  store i32 %145, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %146 = load i32, ptr %18, align 4, !tbaa !5
  %147 = load i32, ptr %6, align 4, !tbaa !11
  %148 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %146, i32 noundef %147, i32 noundef 0)
  store ptr %148, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #10
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !20
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef byval(%struct.TensorDesc) align 8 %22)
          to label %149 unwind label %169

149:                                              ; preds = %138
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %150 unwind label %169

150:                                              ; preds = %149
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  %151 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %25, i32 noundef 1)
          to label %152 unwind label %173

152:                                              ; preds = %150
  %153 = load ptr, ptr %20, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !20
  %154 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %26)
          to label %155 unwind label %173

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

157:                                              ; preds = %155
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #10
  %158 = load i32, ptr %8, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #10
  call void @_ZNSaI6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %159, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %160 unwind label %177

160:                                              ; preds = %157
  call void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #10
  %161 = load i32, ptr %8, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #10
  call void @_ZNSaIP6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  invoke void @_ZNSt6vectorIP6TensorSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %162, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %163 unwind label %181

163:                                              ; preds = %160
  call void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %192, %163
  %165 = load i32, ptr %31, align 4, !tbaa !5
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %185, label %168

168:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %195

169:                                              ; preds = %149, %138
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %23, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %24, align 4
  br label %433

173:                                              ; preds = %155, %152, %150
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %23, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %24, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %433

177:                                              ; preds = %157
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %23, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %24, align 4
  call void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  br label %432

181:                                              ; preds = %160
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %23, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %24, align 4
  call void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  br label %431

185:                                              ; preds = %164
  %186 = load i32, ptr %31, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %187) #10
  %189 = load i32, ptr %31, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6TensorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %190) #10
  store ptr %188, ptr %191, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %185
  %193 = load i32, ptr %31, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %31, align 4, !tbaa !5
  br label %164, !llvm.loop !22

195:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %14, i64 40, i1 false), !tbaa.struct !23
  invoke void @_ZNSt6vectorIP6TensorSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %196 unwind label %218

196:                                              ; preds = %195
  %197 = invoke noundef i32 @_Z23slice_infer_output_sizeP6Tensor14SliceParamSpecSt6vectorIS0_SaIS0_EEP8ArchInfo(ptr noundef %21, ptr noundef byval(%struct.SliceParamSpec) align 8 %33, ptr noundef %34, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %198 unwind label %222

198:                                              ; preds = %196
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #10
  store i32 %197, ptr %32, align 4, !tbaa !24
  %199 = load i32, ptr %32, align 4, !tbaa !24
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %230

201:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %202 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %203 = trunc i64 %202 to i32
  store i32 %203, ptr %35, align 4, !tbaa !5
  %204 = load i32, ptr %35, align 4, !tbaa !5
  %205 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %204)
          to label %206 unwind label %226

206:                                              ; preds = %201
  %207 = load ptr, ptr @stdout, align 8, !tbaa !9
  %208 = invoke i32 @fflush(ptr noundef %207)
          to label %209 unwind label %226

209:                                              ; preds = %206
  %210 = load i32, ptr %32, align 4, !tbaa !24
  %211 = invoke ptr @ee2str(i32 noundef %210)
          to label %212 unwind label %226

212:                                              ; preds = %209
  %213 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %211)
          to label %214 unwind label %226

214:                                              ; preds = %212
  %215 = load ptr, ptr @stdout, align 8, !tbaa !9
  %216 = invoke i32 @fflush(ptr noundef %215)
          to label %217 unwind label %226

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

218:                                              ; preds = %195
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %23, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %24, align 4
  br label %236

222:                                              ; preds = %196
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %23, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %24, align 4
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #10
  br label %236

226:                                              ; preds = %214, %212, %209, %206, %201
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %23, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %236

230:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %242, %230
  %232 = load i32, ptr %36, align 4, !tbaa !5
  %233 = load i32, ptr %8, align 4, !tbaa !5
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %237, label %235

235:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %249

236:                                              ; preds = %226, %222, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %430

237:                                              ; preds = %231
  %238 = load i32, ptr %36, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %239) #10
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %240)
          to label %241 unwind label %245

241:                                              ; preds = %237
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %36, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %36, align 4, !tbaa !5
  br label %231, !llvm.loop !26

245:                                              ; preds = %237
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %23, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %430

249:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %37, i32 noundef 1)
          to label %250 unwind label %273

250:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %14, i64 40, i1 false), !tbaa.struct !23
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %251 unwind label %277

251:                                              ; preds = %250
  %252 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef %39, ptr noundef byval(%struct.SliceParamSpec) align 8 %40, ptr noundef %41, ptr noundef %42, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %253 unwind label %281

253:                                              ; preds = %251
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  store i32 %252, ptr %38, align 4, !tbaa !24
  %254 = load i32, ptr %38, align 4, !tbaa !24
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %290

256:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  %257 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %258 = trunc i64 %257 to i32
  store i32 %258, ptr %43, align 4, !tbaa !5
  %259 = load i32, ptr %43, align 4, !tbaa !5
  %260 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %259)
          to label %261 unwind label %286

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

264:                                              ; preds = %261
  %265 = load i32, ptr %38, align 4, !tbaa !24
  %266 = invoke ptr @ee2str(i32 noundef %265)
          to label %267 unwind label %286

267:                                              ; preds = %264
  %268 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %266)
          to label %269 unwind label %286

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

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

273:                                              ; preds = %249
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %23, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %24, align 4
  br label %429

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

281:                                              ; preds = %251
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %23, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %24, align 4
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  br label %285

285:                                              ; preds = %281, %277
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %296

286:                                              ; preds = %269, %267, %264, %261, %256
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %23, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %296

290:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  store i32 0, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %305, %290
  %292 = load i32, ptr %45, align 4, !tbaa !5
  %293 = load i32, ptr %8, align 4, !tbaa !5
  %294 = icmp slt i32 %292, %293
  br i1 %294, label %297, label %295

295:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  br label %312

296:                                              ; preds = %286, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %428

297:                                              ; preds = %291
  %298 = load i32, ptr %45, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %299) #10
  %301 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %300)
          to label %302 unwind label %308

302:                                              ; preds = %297
  %303 = load i32, ptr %44, align 4, !tbaa !5
  %304 = add i32 %303, %301
  store i32 %304, ptr %44, align 4, !tbaa !5
  br label %305

305:                                              ; preds = %302
  %306 = load i32, ptr %45, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %45, align 4, !tbaa !5
  br label %291, !llvm.loop !27

308:                                              ; preds = %297
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %23, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  br label %341

312:                                              ; preds = %295
  %313 = load i32, ptr %44, align 4, !tbaa !5
  %314 = load i32, ptr %18, align 4, !tbaa !5
  %315 = icmp eq i32 %313, %314
  br i1 %315, label %334, label %316

316:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  %317 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %318 = trunc i64 %317 to i32
  store i32 %318, ptr %46, align 4, !tbaa !5
  %319 = load i32, ptr %46, align 4, !tbaa !5
  %320 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %319)
          to label %321 unwind label %330

321:                                              ; preds = %316
  %322 = load ptr, ptr @stdout, align 8, !tbaa !9
  %323 = invoke i32 @fflush(ptr noundef %322)
          to label %324 unwind label %330

324:                                              ; preds = %321
  %325 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %326 unwind label %330

326:                                              ; preds = %324
  %327 = load ptr, ptr @stdout, align 8, !tbaa !9
  %328 = invoke i32 @fflush(ptr noundef %327)
          to label %329 unwind label %330

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

330:                                              ; preds = %326, %324, %321, %316
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %23, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  br label %341

334:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %335 = invoke noundef double @_Z10ut_time_msv()
          to label %336 unwind label %342

336:                                              ; preds = %334
  store double %335, ptr %47, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %383, %336
  %338 = load i32, ptr %48, align 4, !tbaa !5
  %339 = icmp slt i32 %338, 6
  br i1 %339, label %346, label %340

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

341:                                              ; preds = %330, %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  br label %428

342:                                              ; preds = %334
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %23, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %24, align 4
  br label %427

346:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %14, i64 40, i1 false), !tbaa.struct !23
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %347 unwind label %369

347:                                              ; preds = %346
  %348 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef %50, ptr noundef byval(%struct.SliceParamSpec) align 8 %51, ptr noundef %52, ptr noundef %53, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %349 unwind label %373

349:                                              ; preds = %347
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #10
  store i32 %348, ptr %49, align 4, !tbaa !24
  %350 = load i32, ptr %49, align 4, !tbaa !24
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %352, label %382

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

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

360:                                              ; preds = %357
  %361 = load i32, ptr %49, align 4, !tbaa !24
  %362 = invoke ptr @ee2str(i32 noundef %361)
          to label %363 unwind label %378

363:                                              ; preds = %360
  %364 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %362)
          to label %365 unwind label %378

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

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

369:                                              ; preds = %346
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %23, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %24, align 4
  br label %377

373:                                              ; preds = %347
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %23, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %24, align 4
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #10
  br label %377

377:                                              ; preds = %373, %369
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #10
  br label %386

378:                                              ; preds = %365, %363, %360, %357, %352
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %23, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  br label %386

382:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  br label %383

383:                                              ; preds = %382
  %384 = load i32, ptr %48, align 4, !tbaa !5
  %385 = add nsw i32 %384, 1
  store i32 %385, ptr %48, align 4, !tbaa !5
  br label %337, !llvm.loop !30

386:                                              ; preds = %378, %377
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %427

387:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  %388 = invoke noundef double @_Z10ut_time_msv()
          to label %389 unwind label %418

389:                                              ; preds = %387
  store double %388, ptr %55, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %390 = load double, ptr %55, align 8, !tbaa !28
  %391 = load double, ptr %47, align 8, !tbaa !28
  %392 = fsub double %390, %391
  %393 = fdiv double %392, 6.000000e+00
  store double %393, ptr %56, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 150, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr %58) #10
  %394 = getelementptr inbounds [120 x i8], ptr %58, i64 0, i64 0
  %395 = load i32, ptr %10, align 4, !tbaa !5
  %396 = load i32, ptr %11, align 4, !tbaa !5
  %397 = load i32, ptr %12, align 4, !tbaa !5
  %398 = load i32, ptr %13, align 4, !tbaa !5
  %399 = load i32, ptr %10, align 4, !tbaa !5
  %400 = load i32, ptr %11, align 4, !tbaa !5
  %401 = load i32, ptr %12, align 4, !tbaa !5
  %402 = load i32, ptr %13, align 4, !tbaa !5
  %403 = load i32, ptr %8, align 4, !tbaa !5
  %404 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %394, ptr noundef @.str.3, i32 noundef %395, i32 noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399, i32 noundef %400, i32 noundef %401, i32 noundef %402, i32 noundef %403) #10
  %405 = getelementptr inbounds [150 x i8], ptr %57, i64 0, i64 0
  %406 = getelementptr inbounds [120 x i8], ptr %58, i64 0, i64 0
  %407 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %405, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %406) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  %408 = load i32, ptr %8, align 4, !tbaa !5
  %409 = load i32, ptr %18, align 4, !tbaa !5
  %410 = mul i32 %408, %409
  %411 = uitofp i32 %410 to double
  store double %411, ptr %59, align 8, !tbaa !28
  %412 = load i32, ptr %6, align 4, !tbaa !11
  %413 = getelementptr inbounds [150 x i8], ptr %57, i64 0, i64 0
  %414 = load double, ptr %59, align 8, !tbaa !28
  %415 = load double, ptr %56, align 8, !tbaa !28
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %412, ptr noundef %413, double noundef %414, double noundef %415)
          to label %416 unwind label %422

416:                                              ; preds = %389
  %417 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %417) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #10
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #10
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  ret i32 0

418:                                              ; preds = %387
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %23, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %24, align 4
  br label %426

422:                                              ; preds = %389
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %23, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %426

426:                                              ; preds = %422, %418
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  br label %427

427:                                              ; preds = %426, %386, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %428

428:                                              ; preds = %427, %341, %296
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  br label %429

429:                                              ; preds = %428, %273
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #10
  br label %430

430:                                              ; preds = %429, %245, %236
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  br label %431

431:                                              ; preds = %430, %181
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #10
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  br label %432

432:                                              ; preds = %431, %177
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  br label %433

433:                                              ; preds = %432, %173, %169
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %434

434:                                              ; preds = %433
  %435 = load ptr, ptr %23, align 8
  %436 = load i32, ptr %24, align 4
  %437 = insertvalue { ptr, i32 } poison, ptr %435, 0
  %438 = insertvalue { ptr, i32 } %437, i32 %436, 1
  resume { ptr, i32 } %438
}

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

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

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

declare i32 @fflush(ptr noundef) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6TensorSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIP6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP6TensorSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6TensorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #9 align 2

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

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

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

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

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

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

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

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

declare noundef double @_Z10ut_time_msv() #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { nounwind willreturn memory(read) }

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

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


; 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.SliceParamSpec = type { [8 x i32], 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" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl" }
%"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Tensor, std::allocator<Tensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl" }
%"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Tensor *, std::allocator<Tensor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.5" = type { i8 }

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

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

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

35:                                               ; preds = %3
  %36 = getelementptr inbounds i8, ptr %1, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = tail call i32 @atoi(ptr nocapture noundef %37) #14
  %39 = add nsw i32 %38, 6
  %40 = icmp eq i32 %39, %0
  br i1 %40, label %50, label %41

41:                                               ; preds = %35
  %42 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %43 = trunc i64 %42 to i32
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = tail call i32 @fflush(ptr noundef %45)
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %48 = load ptr, ptr @stdout, align 8, !tbaa !5
  %49 = tail call i32 @fflush(ptr noundef %48)
  tail call void @exit(i32 noundef 1) #13
  unreachable

50:                                               ; preds = %35
  %51 = getelementptr inbounds i8, ptr %1, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = tail call i32 @atoi(ptr nocapture noundef %52) #14
  %54 = getelementptr inbounds i8, ptr %1, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = tail call i32 @atoi(ptr nocapture noundef %55) #14
  %57 = getelementptr inbounds i8, ptr %1, i64 32
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = tail call i32 @atoi(ptr nocapture noundef %58) #14
  %60 = getelementptr inbounds i8, ptr %1, i64 40
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = tail call i32 @atoi(ptr nocapture noundef %61) #14
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #12
  %63 = getelementptr inbounds i8, ptr %1, i64 48
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = tail call i32 @atoi(ptr nocapture noundef %64) #14
  %66 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 %65, ptr %66, align 4, !tbaa !9
  %67 = add nsw i32 %38, -1
  %68 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 %67, ptr %68, align 4, !tbaa !12
  %.not131 = icmp eq i32 %67, 0
  br i1 %.not131, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %50
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %5) #12
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %5, i32 noundef %2, i32 noundef 0, i32 noundef %53, i32 noundef %56, i32 noundef %59, i32 noundef %62)
  %69 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
  %70 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %69, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #12
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 1)
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %80 unwind label %92

.lr.ph:                                           ; preds = %50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %50 ]
  %71 = add nuw nsw i64 %indvars.iv, 7
  %72 = and i64 %71, 4294967295
  %73 = getelementptr inbounds ptr, ptr %1, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = tail call i32 @atoi(ptr nocapture noundef %74) #14
  %76 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %indvars.iv
  store i32 %75, ptr %76, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %77 = load i32, ptr %68, align 4, !tbaa !12
  %78 = zext i32 %77 to i64
  %79 = icmp ult i64 %indvars.iv.next, %78
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !14

80:                                               ; preds = %._crit_edge
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %81 unwind label %92

81:                                               ; preds = %80
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  %82 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef 1)
          to label %83 unwind label %94

83:                                               ; preds = %81
  %84 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %85 unwind label %94

85:                                               ; preds = %83
  %86 = zext i32 %84 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %82, ptr noundef %70, i64 noundef %86)
          to label %87 unwind label %94

87:                                               ; preds = %85
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #12
  %88 = sext i32 %38 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #12
  call void @_ZNSaI6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %89 unwind label %96

89:                                               ; preds = %87
  call void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #12
  call void @_ZNSaIP6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #12
  invoke void @_ZNSt6vectorIP6TensorSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %90 unwind label %98

90:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  %91 = icmp sgt i32 %38, 0
  br i1 %91, label %.lr.ph121.preheader, label %._crit_edge122

.lr.ph121.preheader:                              ; preds = %90
  %wide.trip.count = zext nneg i32 %38 to i64
  br label %.lr.ph121

._crit_edge122:                                   ; preds = %.lr.ph121, %90
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  invoke void @_ZNSt6vectorIP6TensorSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %102 unwind label %115

92:                                               ; preds = %80, %._crit_edge
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %216

94:                                               ; preds = %85, %83, %81
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #12
  br label %216

96:                                               ; preds = %87
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #12
  br label %215

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  br label %214

.lr.ph121:                                        ; preds = %.lr.ph121.preheader, %.lr.ph121
  %indvars.iv135 = phi i64 [ 0, %.lr.ph121.preheader ], [ %indvars.iv.next136, %.lr.ph121 ]
  %100 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv135) #12
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6TensorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv135) #12
  store ptr %100, ptr %101, align 8, !tbaa !5
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge122, label %.lr.ph121, !llvm.loop !18

102:                                              ; preds = %._crit_edge122
  %103 = invoke noundef i32 @_Z23slice_infer_output_sizeP6Tensor14SliceParamSpecSt6vectorIS0_SaIS0_EEP8ArchInfo(ptr noundef nonnull %6, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %12, ptr noundef nonnull %13, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %104 unwind label %117

104:                                              ; preds = %102
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #12
  %.not = icmp eq i32 %103, 0
  br i1 %.not, label %.preheader116, label %105

.preheader116:                                    ; preds = %104
  br i1 %91, label %.lr.ph124.preheader, label %._crit_edge125

.lr.ph124.preheader:                              ; preds = %.preheader116
  %wide.trip.count141 = zext nneg i32 %38 to i64
  br label %.lr.ph124

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

115:                                              ; preds = %._crit_edge122
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %213

117:                                              ; preds = %102
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #12
  br label %213

._crit_edge125:                                   ; preds = %120, %.preheader116
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #12
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 1)
          to label %123 unwind label %137

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %120
  %indvars.iv138 = phi i64 [ 0, %.lr.ph124.preheader ], [ %indvars.iv.next139, %120 ]
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv138) #12
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %119)
          to label %120 unwind label %121

120:                                              ; preds = %.lr.ph124
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge125, label %.lr.ph124, !llvm.loop !19

121:                                              ; preds = %.lr.ph124
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %213

123:                                              ; preds = %._crit_edge125
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %124 unwind label %139

124:                                              ; preds = %123
  %125 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %15, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %126 unwind label %141

126:                                              ; preds = %124
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  %.not100 = icmp eq i32 %125, 0
  br i1 %.not100, label %.preheader115, label %127

.preheader115:                                    ; preds = %126
  br i1 %91, label %.lr.ph128.preheader, label %._crit_edge129

.lr.ph128.preheader:                              ; preds = %.preheader115
  %wide.trip.count146 = zext nneg i32 %38 to i64
  br label %.lr.ph128

127:                                              ; preds = %126
  %128 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %129 = trunc i64 %128 to i32
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %129)
  %131 = load ptr, ptr @stdout, align 8, !tbaa !5
  %132 = call i32 @fflush(ptr noundef %131)
  %133 = call ptr @ee2str(i32 noundef %125)
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %133)
  %135 = load ptr, ptr @stdout, align 8, !tbaa !5
  %136 = call i32 @fflush(ptr noundef %135)
  call void @exit(i32 noundef 1) #13
  unreachable

137:                                              ; preds = %._crit_edge125
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %212

139:                                              ; preds = %123
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %143

141:                                              ; preds = %124
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #12
  br label %143

143:                                              ; preds = %141, %139
  %.pn98 = phi { ptr, i32 } [ %142, %141 ], [ %140, %139 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #12
  br label %211

._crit_edge129:                                   ; preds = %147, %.preheader115
  %.089.lcssa = phi i32 [ 0, %.preheader115 ], [ %148, %147 ]
  %144 = icmp eq i32 %.089.lcssa, %69
  br i1 %144, label %160, label %151

.lr.ph128:                                        ; preds = %.lr.ph128.preheader, %147
  %indvars.iv143 = phi i64 [ 0, %.lr.ph128.preheader ], [ %indvars.iv.next144, %147 ]
  %.089127 = phi i32 [ 0, %.lr.ph128.preheader ], [ %148, %147 ]
  %145 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv143) #12
  %146 = invoke noundef i32 @_ZN6Tensor6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %145)
          to label %147 unwind label %149

147:                                              ; preds = %.lr.ph128
  %148 = add i32 %146, %.089127
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %._crit_edge129, label %.lr.ph128, !llvm.loop !20

149:                                              ; preds = %.lr.ph128
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %211

151:                                              ; preds = %._crit_edge129
  %152 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %153 = trunc i64 %152 to i32
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %153)
  %155 = load ptr, ptr @stdout, align 8, !tbaa !5
  %156 = call i32 @fflush(ptr noundef %155)
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %158 = load ptr, ptr @stdout, align 8, !tbaa !5
  %159 = call i32 @fflush(ptr noundef %158)
  call void @exit(i32 noundef 1) #13
  unreachable

160:                                              ; preds = %._crit_edge129
  %161 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader.preheader unwind label %179

.preheader.preheader:                             ; preds = %160
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %181 unwind label %194

.preheader.1:                                     ; preds = %183
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %162 unwind label %194

162:                                              ; preds = %.preheader.1
  %163 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %164 unwind label %196

164:                                              ; preds = %162
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106.1 = icmp eq i32 %163, 0
  br i1 %.not106.1, label %.preheader.2, label %184

.preheader.2:                                     ; preds = %164
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %165 unwind label %194

165:                                              ; preds = %.preheader.2
  %166 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %167 unwind label %196

167:                                              ; preds = %165
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106.2 = icmp eq i32 %166, 0
  br i1 %.not106.2, label %.preheader.3, label %184

.preheader.3:                                     ; preds = %167
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %168 unwind label %194

168:                                              ; preds = %.preheader.3
  %169 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %170 unwind label %196

170:                                              ; preds = %168
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106.3 = icmp eq i32 %169, 0
  br i1 %.not106.3, label %.preheader.4, label %184

.preheader.4:                                     ; preds = %170
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %171 unwind label %194

171:                                              ; preds = %.preheader.4
  %172 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %173 unwind label %196

173:                                              ; preds = %171
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106.4 = icmp eq i32 %172, 0
  br i1 %.not106.4, label %.preheader.5, label %184

.preheader.5:                                     ; preds = %173
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !16
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  invoke void @_ZNSt6vectorI6TensorSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %174 unwind label %194

174:                                              ; preds = %.preheader.5
  %175 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %176 unwind label %196

176:                                              ; preds = %174
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106.5 = icmp eq i32 %175, 0
  br i1 %.not106.5, label %177, label %184

177:                                              ; preds = %176
  %178 = invoke noundef double @_Z10ut_time_msv()
          to label %199 unwind label %207

179:                                              ; preds = %160
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %211

181:                                              ; preds = %.preheader.preheader
  %182 = invoke noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef nonnull %19, ptr noundef nonnull byval(%struct.SliceParamSpec) align 8 %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %183 unwind label %196

183:                                              ; preds = %181
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  %.not106 = icmp eq i32 %182, 0
  br i1 %.not106, label %.preheader.1, label %184

184:                                              ; preds = %176, %173, %170, %167, %164, %183
  %.lcssa = phi i32 [ %182, %183 ], [ %163, %164 ], [ %166, %167 ], [ %169, %170 ], [ %172, %173 ], [ %175, %176 ]
  %185 = call i64 (i64, ...) @syscall(i64 noundef 186) #12
  %186 = trunc i64 %185 to i32
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %186)
  %188 = load ptr, ptr @stdout, align 8, !tbaa !5
  %189 = call i32 @fflush(ptr noundef %188)
  %190 = call ptr @ee2str(i32 noundef %.lcssa)
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %190)
  %192 = load ptr, ptr @stdout, align 8, !tbaa !5
  %193 = call i32 @fflush(ptr noundef %192)
  call void @exit(i32 noundef 1) #13
  unreachable

194:                                              ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %198

196:                                              ; preds = %174, %171, %168, %165, %162, %181
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #12
  br label %198

198:                                              ; preds = %196, %194
  %.pn103 = phi { ptr, i32 } [ %197, %196 ], [ %195, %194 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #12
  br label %211

199:                                              ; preds = %177
  %200 = fsub double %178, %161
  %201 = fdiv double %200, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %23) #12
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %24) #12
  %202 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %53, i32 noundef %56, i32 noundef %59, i32 noundef %62, i32 noundef %53, i32 noundef %56, i32 noundef %59, i32 noundef %62, i32 noundef %38) #12
  %203 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %24) #12
  %204 = mul i32 %69, %38
  %205 = uitofp i32 %204 to double
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %23, double noundef %205, double noundef %201)
          to label %206 unwind label %209

206:                                              ; preds = %199
  call void @free(ptr noundef %70) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %24) #12
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %23) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #12
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #12
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #12
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #12
  ret i32 0

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

209:                                              ; preds = %199
  %210 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %24) #12
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %23) #12
  br label %211

211:                                              ; preds = %179, %198, %209, %207, %149, %143
  %.pn107 = phi { ptr, i32 } [ %150, %149 ], [ %.pn98, %143 ], [ %.pn103, %198 ], [ %180, %179 ], [ %210, %209 ], [ %208, %207 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  br label %212

212:                                              ; preds = %211, %137
  %.pn107.pn = phi { ptr, i32 } [ %.pn107, %211 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #12
  br label %213

213:                                              ; preds = %115, %117, %212, %121
  %.pn110 = phi { ptr, i32 } [ %122, %121 ], [ %.pn107.pn, %212 ], [ %118, %117 ], [ %116, %115 ]
  call void @_ZNSt6vectorIP6TensorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #12
  br label %214

214:                                              ; preds = %213, %98
  %.pn110.pn = phi { ptr, i32 } [ %.pn110, %213 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #12
  call void @_ZNSt6vectorI6TensorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  br label %215

215:                                              ; preds = %214, %96
  %.pn110.pn.pn = phi { ptr, i32 } [ %.pn110.pn, %214 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #12
  br label %216

216:                                              ; preds = %215, %94, %92
  %.pn110.pn.pn.pn = phi { ptr, i32 } [ %.pn110.pn.pn, %215 ], [ %95, %94 ], [ %93, %92 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #12
  resume { ptr, i32 } %.pn110.pn.pn.pn
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6TensorSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIP6TensorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP6TensorSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorI6TensorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6TensorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #9 align 2

declare noundef i32 @_Z23slice_infer_output_sizeP6Tensor14SliceParamSpecSt6vectorIS0_SaIS0_EEP8ArchInfo(ptr noundef, ptr noundef byval(%struct.SliceParamSpec) align 8, ptr noundef, ptr noundef) local_unnamed_addr #10

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

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

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

declare noundef i32 @_Z5slice6Tensor14SliceParamSpecS_St6vectorIS_SaIS_EEP8ArchInfo(ptr noundef, ptr noundef byval(%struct.SliceParamSpec) align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #10

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

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

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

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #10

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIP6TensorED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #9 align 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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { "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 = { 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 #12 = { nounwind }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 36}
!10 = !{!"_ZTS14SliceParamSpec", !7, i64 0, !11, i64 32, !11, i64 36}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i64 0, i64 32, !17, i64 32, i64 4, !13, i64 36, i64 4, !13}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


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