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

; 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.ReshapeParamSpec = type { [8 x i32], 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" }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z11reshapeTestiPPc8DataType(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.ReshapeParamSpec, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.TensorDesc, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %class.Tensor, align 8
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.Tensor, align 8
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca %class.Tensor, align 8
  %27 = alloca i32, align 4
  %28 = alloca %struct.ReshapeParamSpec, align 8
  %29 = alloca i32, align 4
  %30 = alloca %struct.TensorDesc, align 4
  %31 = alloca %class.Tensor, align 8
  %32 = alloca i32, align 4
  %33 = alloca %class.Tensor, align 8
  %34 = alloca %class.Tensor, align 8
  %35 = alloca %class.Tensor, align 8
  %36 = alloca i32, align 4
  %37 = alloca %struct.TensorDesc, align 8
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %class.Tensor, align 8
  %43 = alloca %class.Tensor, align 8
  %44 = alloca %class.Tensor, align 8
  %45 = alloca i32, align 4
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca [150 x i8], align 16
  %49 = alloca [120 x i8], align 16
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 4
  br i1 %54, label %65, label %55

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

65:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 1
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = call i32 @atoi(ptr noundef %68) #11
  store i32 %69, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 2
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = call i32 @atoi(ptr noundef %72) #11
  store i32 %73, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %74 = load ptr, ptr %5, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i64 3
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = call i32 @atoi(ptr noundef %76) #11
  store i32 %77, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  %79 = getelementptr inbounds ptr, ptr %78, i64 4
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = call i32 @atoi(ptr noundef %80) #11
  store i32 %81, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 44, ptr %12) #9
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i64 5
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = call i32 @atoi(ptr noundef %84) #11
  %86 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 1
  store i32 %85, ptr %86, align 4, !tbaa !13
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !13
  %90 = add nsw i32 6, %89
  %91 = icmp eq i32 %87, %90
  br i1 %91, label %102, label %92

92:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %93 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %94 = trunc i64 %93 to i32
  store i32 %94, ptr %13, align 4, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %95)
  %97 = load ptr, ptr @stdout, align 8, !tbaa !9
  %98 = call i32 @fflush(ptr noundef %97)
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %100 = load ptr, ptr @stdout, align 8, !tbaa !9
  %101 = call i32 @fflush(ptr noundef %100)
  call void @exit(i32 noundef 1) #10
  unreachable

102:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %121, %102
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !13
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %124

109:                                              ; preds = %103
  %110 = load ptr, ptr %5, align 8, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add nsw i32 6, %111
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %110, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call i32 @atoi(ptr noundef %115) #11
  %117 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 0
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [8 x i32], ptr %117, i64 0, i64 %119
  store i32 %116, ptr %120, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %109
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !5
  br label %103, !llvm.loop !15

124:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 92, ptr %16) #9
  %125 = load i32, ptr %6, align 4, !tbaa !11
  %126 = load i32, ptr %15, align 4, !tbaa !17
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %16, i32 noundef %125, i32 noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef %130)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !19
  %131 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %18)
  store i32 %131, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %132 = load i32, ptr %17, align 4, !tbaa !5
  %133 = load i32, ptr %6, align 4, !tbaa !11
  %134 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %132, i32 noundef %133, i32 noundef 0)
  store ptr %134, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  call void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !19
  invoke void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef byval(%struct.TensorDesc) align 8 %21)
          to label %135 unwind label %166

135:                                              ; preds = %124
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %136 unwind label %166

136:                                              ; preds = %135
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  %137 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %24, i32 noundef 1)
          to label %138 unwind label %170

138:                                              ; preds = %136
  %139 = load ptr, ptr %19, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !19
  %140 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %25)
          to label %141 unwind label %170

141:                                              ; preds = %138
  %142 = zext i32 %140 to i64
  invoke void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %137, ptr noundef %139, i64 noundef %142)
          to label %143 unwind label %170

143:                                              ; preds = %141
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %26, i32 noundef 1)
          to label %144 unwind label %174

144:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %12, i64 44, i1 false), !tbaa.struct !21
  %145 = invoke noundef i32 @_Z25reshape_infer_output_sizeP6Tensor16ReshapeParamSpecS0_P8ArchInfo(ptr noundef %20, ptr noundef byval(%struct.ReshapeParamSpec) align 8 %28, ptr noundef %26, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %146 unwind label %178

146:                                              ; preds = %144
  store i32 %145, ptr %27, align 4, !tbaa !22
  %147 = load i32, ptr %27, align 4, !tbaa !22
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %186

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

154:                                              ; preds = %149
  %155 = load ptr, ptr @stdout, align 8, !tbaa !9
  %156 = invoke i32 @fflush(ptr noundef %155)
          to label %157 unwind label %182

157:                                              ; preds = %154
  %158 = load i32, ptr %27, align 4, !tbaa !22
  %159 = invoke ptr @ee2str(i32 noundef %158)
          to label %160 unwind label %182

160:                                              ; preds = %157
  %161 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %159)
          to label %162 unwind label %182

162:                                              ; preds = %160
  %163 = load ptr, ptr @stdout, align 8, !tbaa !9
  %164 = invoke i32 @fflush(ptr noundef %163)
          to label %165 unwind label %182

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

166:                                              ; preds = %135, %124
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %22, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %23, align 4
  br label %415

170:                                              ; preds = %141, %138, %136
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %22, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %23, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  br label %415

174:                                              ; preds = %143
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %22, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %23, align 4
  br label %414

178:                                              ; preds = %144
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %22, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %23, align 4
  br label %211

182:                                              ; preds = %162, %160, %157, %154, %149
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %22, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %211

186:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  invoke void @_ZN6Tensor5allocEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %187 unwind label %212

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 92, ptr %30) #9
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %30, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %188 unwind label %216

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #9
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %31, i32 noundef 1)
          to label %189 unwind label %220

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  %190 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %191 unwind label %224

191:                                              ; preds = %189
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  store i32 %190, ptr %32, align 4, !tbaa !22
  %192 = load i32, ptr %32, align 4, !tbaa !22
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %232

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  %195 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %196 = trunc i64 %195 to i32
  store i32 %196, ptr %36, align 4, !tbaa !5
  %197 = load i32, ptr %36, align 4, !tbaa !5
  %198 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %197)
          to label %199 unwind label %228

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

202:                                              ; preds = %199
  %203 = load i32, ptr %32, align 4, !tbaa !22
  %204 = invoke ptr @ee2str(i32 noundef %203)
          to label %205 unwind label %228

205:                                              ; preds = %202
  %206 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %204)
          to label %207 unwind label %228

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

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

211:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %413

212:                                              ; preds = %186
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %22, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %23, align 4
  br label %413

216:                                              ; preds = %187
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %22, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %23, align 4
  br label %412

220:                                              ; preds = %188
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %22, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %23, align 4
  br label %411

224:                                              ; preds = %189
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %22, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %23, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  br label %251

228:                                              ; preds = %207, %205, %202, %199, %194
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %22, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %251

232:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %30, i64 92, i1 false), !tbaa.struct !19
  %233 = invoke noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %37)
          to label %234 unwind label %252

234:                                              ; preds = %232
  %235 = load i32, ptr %17, align 4, !tbaa !5
  %236 = icmp eq i32 %233, %235
  br i1 %236, label %260, label %237

237:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %238 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %239 = trunc i64 %238 to i32
  store i32 %239, ptr %38, align 4, !tbaa !5
  %240 = load i32, ptr %38, align 4, !tbaa !5
  %241 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %240)
          to label %242 unwind label %256

242:                                              ; preds = %237
  %243 = load ptr, ptr @stdout, align 8, !tbaa !9
  %244 = invoke i32 @fflush(ptr noundef %243)
          to label %245 unwind label %256

245:                                              ; preds = %242
  %246 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %247 unwind label %256

247:                                              ; preds = %245
  %248 = load ptr, ptr @stdout, align 8, !tbaa !9
  %249 = invoke i32 @fflush(ptr noundef %248)
          to label %250 unwind label %256

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

251:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %410

252:                                              ; preds = %232
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %22, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %23, align 4
  br label %410

256:                                              ; preds = %247, %245, %242, %237
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %22, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %410

260:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %261 = invoke noundef double @_Z10ut_time_msv()
          to label %262 unwind label %267

262:                                              ; preds = %260
  store double %261, ptr %39, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %302, %262
  %264 = load i32, ptr %40, align 4, !tbaa !5
  %265 = icmp slt i32 %264, 6
  br i1 %265, label %271, label %266

266:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %306

267:                                              ; preds = %260
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %22, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %23, align 4
  br label %409

271:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  %272 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef @_ZL15UT_CPU_ARCHINFO)
          to label %273 unwind label %293

273:                                              ; preds = %271
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  store i32 %272, ptr %41, align 4, !tbaa !22
  %274 = load i32, ptr %41, align 4, !tbaa !22
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %301

276:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  %277 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %278 = trunc i64 %277 to i32
  store i32 %278, ptr %45, align 4, !tbaa !5
  %279 = load i32, ptr %45, align 4, !tbaa !5
  %280 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %279)
          to label %281 unwind label %297

281:                                              ; preds = %276
  %282 = load ptr, ptr @stdout, align 8, !tbaa !9
  %283 = invoke i32 @fflush(ptr noundef %282)
          to label %284 unwind label %297

284:                                              ; preds = %281
  %285 = load i32, ptr %41, align 4, !tbaa !22
  %286 = invoke ptr @ee2str(i32 noundef %285)
          to label %287 unwind label %297

287:                                              ; preds = %284
  %288 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %286)
          to label %289 unwind label %297

289:                                              ; preds = %287
  %290 = load ptr, ptr @stdout, align 8, !tbaa !9
  %291 = invoke i32 @fflush(ptr noundef %290)
          to label %292 unwind label %297

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

293:                                              ; preds = %271
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %22, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %23, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  br label %305

297:                                              ; preds = %289, %287, %284, %281, %276
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %22, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %305

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

302:                                              ; preds = %301
  %303 = load i32, ptr %40, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %40, align 4, !tbaa !5
  br label %263, !llvm.loop !26

305:                                              ; preds = %297, %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %409

306:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %307 = invoke noundef double @_Z10ut_time_msv()
          to label %308 unwind label %327

308:                                              ; preds = %306
  store double %307, ptr %46, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %309 = load double, ptr %46, align 8, !tbaa !24
  %310 = load double, ptr %39, align 8, !tbaa !24
  %311 = fsub double %309, %310
  %312 = fdiv double %311, 6.000000e+00
  store double %312, ptr %47, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 150, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %49) #9
  %313 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 0
  invoke void @_Z10UNI_MEMSETPvim(ptr noundef %313, i32 noundef 0, i64 noundef 120)
          to label %314 unwind label %331

314:                                              ; preds = %308
  %315 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 0
  %316 = load i32, ptr %8, align 4, !tbaa !5
  %317 = load i32, ptr %9, align 4, !tbaa !5
  %318 = load i32, ptr %10, align 4, !tbaa !5
  %319 = load i32, ptr %11, align 4, !tbaa !5
  %320 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %315, ptr noundef @.str.3, i32 noundef %316, i32 noundef %317, i32 noundef %318, i32 noundef %319) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  store i32 0, ptr %50, align 4, !tbaa !5
  br label %321

321:                                              ; preds = %388, %314
  %322 = load i32, ptr %50, align 4, !tbaa !5
  %323 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 1
  %324 = load i32, ptr %323, align 4, !tbaa !13
  %325 = icmp slt i32 %322, %324
  br i1 %325, label %335, label %326

326:                                              ; preds = %321
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  br label %391

327:                                              ; preds = %306
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %22, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %23, align 4
  br label %408

331:                                              ; preds = %308
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %22, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %23, align 4
  br label %407

335:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  store i32 0, ptr %51, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %348, %335
  %337 = load i32, ptr %51, align 4, !tbaa !5
  %338 = icmp slt i32 %337, 120
  br i1 %338, label %339, label %351

339:                                              ; preds = %336
  %340 = load i32, ptr %51, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 %341
  %343 = load i8, ptr %342, align 1, !tbaa !20
  %344 = sext i8 %343 to i32
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %346, label %347

346:                                              ; preds = %339
  br label %351

347:                                              ; preds = %339
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %51, align 4, !tbaa !5
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %51, align 4, !tbaa !5
  br label %336, !llvm.loop !27

351:                                              ; preds = %346, %336
  %352 = load i32, ptr %50, align 4, !tbaa !5
  %353 = getelementptr inbounds %struct.ReshapeParamSpec, ptr %12, i32 0, i32 1
  %354 = load i32, ptr %353, align 4, !tbaa !13
  %355 = sub nsw i32 %354, 1
  %356 = icmp ne i32 %352, %355
  br i1 %356, label %357, label %372

357:                                              ; preds = %351
  %358 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 0
  %359 = load i32, ptr %51, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds i8, ptr %358, i64 %360
  %362 = getelementptr inbounds %struct.TensorDesc, ptr %30, i32 0, i32 3
  %363 = getelementptr inbounds %struct.TensorDesc, ptr %30, i32 0, i32 2
  %364 = load i32, ptr %363, align 4, !tbaa !28
  %365 = sub i32 %364, 1
  %366 = load i32, ptr %50, align 4, !tbaa !5
  %367 = sub i32 %365, %366
  %368 = zext i32 %367 to i64
  %369 = getelementptr inbounds [20 x i32], ptr %362, i64 0, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !5
  %371 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %361, ptr noundef @.str.4, i32 noundef %370) #9
  br label %387

372:                                              ; preds = %351
  %373 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 0
  %374 = load i32, ptr %51, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds i8, ptr %373, i64 %375
  %377 = getelementptr inbounds %struct.TensorDesc, ptr %30, i32 0, i32 3
  %378 = getelementptr inbounds %struct.TensorDesc, ptr %30, i32 0, i32 2
  %379 = load i32, ptr %378, align 4, !tbaa !28
  %380 = sub i32 %379, 1
  %381 = load i32, ptr %50, align 4, !tbaa !5
  %382 = sub i32 %380, %381
  %383 = zext i32 %382 to i64
  %384 = getelementptr inbounds [20 x i32], ptr %377, i64 0, i64 %383
  %385 = load i32, ptr %384, align 4, !tbaa !5
  %386 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %376, ptr noundef @.str.5, i32 noundef %385) #9
  br label %387

387:                                              ; preds = %372, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %50, align 4, !tbaa !5
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %50, align 4, !tbaa !5
  br label %321, !llvm.loop !30

391:                                              ; preds = %326
  %392 = getelementptr inbounds [150 x i8], ptr %48, i64 0, i64 0
  %393 = getelementptr inbounds [120 x i8], ptr %49, i64 0, i64 0
  %394 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %392, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %393) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %395 = load i32, ptr %17, align 4, !tbaa !5
  %396 = uitofp i32 %395 to double
  store double %396, ptr %52, align 8, !tbaa !24
  %397 = load i32, ptr %6, align 4, !tbaa !11
  %398 = getelementptr inbounds [150 x i8], ptr %48, i64 0, i64 0
  %399 = load double, ptr %52, align 8, !tbaa !24
  %400 = load double, ptr %47, align 8, !tbaa !24
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %397, ptr noundef %398, double noundef %399, double noundef %400)
          to label %401 unwind label %403

401:                                              ; preds = %391
  %402 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %402) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %30) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 44, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret i32 0

403:                                              ; preds = %391
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %22, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %407

407:                                              ; preds = %403, %331
  call void @llvm.lifetime.end.p0(i64 120, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  br label %408

408:                                              ; preds = %407, %327
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %409

409:                                              ; preds = %408, %305, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %410

410:                                              ; preds = %409, %256, %252, %251
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %411

411:                                              ; preds = %410, %220
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  br label %412

412:                                              ; preds = %411, %216
  call void @llvm.lifetime.end.p0(i64 92, ptr %30) #9
  br label %413

413:                                              ; preds = %412, %212, %211
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %414

414:                                              ; preds = %413, %174
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  br label %415

415:                                              ; preds = %414, %170, %166
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 44, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %416

416:                                              ; preds = %415
  %417 = load ptr, ptr %22, align 8
  %418 = load i32, ptr %23, align 4
  %419 = insertvalue { ptr, i32 } poison, ptr %417, 0
  %420 = insertvalue { ptr, i32 } %419, i32 %418, 1
  resume { ptr, i32 } %420
}

; 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

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

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

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

declare noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef double @_Z10ut_time_msv() #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) #6

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

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

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

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

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


; 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.ReshapeParamSpec = type { [8 x i32], 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" }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z11reshapeTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.ReshapeParamSpec, align 8
  %5 = alloca %struct.TensorDesc, align 8
  %6 = alloca %class.Tensor, align 8
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %class.Tensor, align 8
  %9 = alloca %struct.TensorDesc, align 8
  %10 = alloca %class.Tensor, align 8
  %11 = alloca %class.Tensor, align 8
  %12 = alloca %class.Tensor, align 8
  %13 = alloca %class.Tensor, align 8
  %14 = alloca %class.Tensor, align 8
  %15 = alloca %class.Tensor, align 8
  %16 = alloca %class.Tensor, align 8
  %17 = alloca [150 x i8], align 16
  %18 = alloca [120 x i8], align 16
  %19 = icmp sgt i32 %0, 4
  br i1 %19, label %29, label %20

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

29:                                               ; preds = %3
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = tail call i32 @atoi(ptr nocapture noundef %31) #12
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = tail call i32 @atoi(ptr nocapture noundef %34) #12
  %36 = getelementptr inbounds i8, ptr %1, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = tail call i32 @atoi(ptr nocapture noundef %37) #12
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = tail call i32 @atoi(ptr nocapture noundef %40) #12
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %4) #10
  %42 = getelementptr inbounds i8, ptr %1, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = tail call i32 @atoi(ptr nocapture noundef %43) #12
  %45 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 %44, ptr %45, align 8, !tbaa !9
  %46 = add nsw i32 %44, 6
  %47 = icmp eq i32 %46, %0
  br i1 %47, label %.preheader88, label %49

.preheader88:                                     ; preds = %29
  %invariant.gep = getelementptr inbounds i8, ptr %1, i64 48
  %48 = icmp sgt i32 %44, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

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

._crit_edge:                                      ; preds = %.lr.ph, %.preheader88
  %.lcssa89 = phi i32 [ %44, %.preheader88 ], [ %63, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %5) #10
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %5, i32 noundef %2, i32 noundef 0, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41)
  %58 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
  %59 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %58, i32 noundef %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #10
  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 %66 unwind label %87

.lr.ph:                                           ; preds = %.preheader88, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader88 ]
  %gep = getelementptr inbounds ptr, ptr %invariant.gep, i64 %indvars.iv
  %60 = load ptr, ptr %gep, align 8, !tbaa !5
  %61 = tail call i32 @atoi(ptr nocapture noundef %60) #12
  %62 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %indvars.iv
  store i32 %61, ptr %62, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = load i32, ptr %45, align 8, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next, %64
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !13

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

67:                                               ; preds = %66
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  %68 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef 1)
          to label %69 unwind label %89

69:                                               ; preds = %67
  %70 = invoke noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
          to label %71 unwind label %89

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

73:                                               ; preds = %71
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  invoke void @_ZN6TensorC2E10MemoryType(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %74 unwind label %91

74:                                               ; preds = %73
  %75 = invoke noundef i32 @_Z25reshape_infer_output_sizeP6Tensor16ReshapeParamSpecS0_P8ArchInfo(ptr noundef nonnull %6, ptr noundef nonnull byval(%struct.ReshapeParamSpec) align 8 %4, ptr noundef nonnull %8, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %76 unwind label %93

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

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

87:                                               ; preds = %66, %._crit_edge
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %216

89:                                               ; preds = %71, %69, %67
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %216

91:                                               ; preds = %73
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %215

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

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

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #10
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %97 unwind label %113

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

98:                                               ; preds = %97
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %99 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %100 unwind label %117

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

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

111:                                              ; preds = %95
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %214

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

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

117:                                              ; preds = %98
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %211

119:                                              ; preds = %100
  %120 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9)
  %121 = icmp eq i32 %120, %58
  br i1 %121, label %131, label %122

122:                                              ; preds = %119
  %123 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %124 = trunc i64 %123 to i32
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %124)
  %126 = load ptr, ptr @stdout, align 8, !tbaa !5
  %127 = call i32 @fflush(ptr noundef %126)
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %129 = load ptr, ptr @stdout, align 8, !tbaa !5
  %130 = call i32 @fflush(ptr noundef %129)
  call void @exit(i32 noundef 1) #11
  unreachable

131:                                              ; preds = %119
  %132 = invoke noundef double @_Z10ut_time_msv()
          to label %.preheader87.preheader unwind label %146

.preheader87.preheader:                           ; preds = %131
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %133 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %148 unwind label %159

.preheader87.1:                                   ; preds = %148
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %134 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %135 unwind label %159

135:                                              ; preds = %.preheader87.1
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not86.1 = icmp eq i32 %134, 0
  br i1 %.not86.1, label %.preheader87.2, label %149

.preheader87.2:                                   ; preds = %135
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %136 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %137 unwind label %159

137:                                              ; preds = %.preheader87.2
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not86.2 = icmp eq i32 %136, 0
  br i1 %.not86.2, label %.preheader87.3, label %149

.preheader87.3:                                   ; preds = %137
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %138 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %139 unwind label %159

139:                                              ; preds = %.preheader87.3
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not86.3 = icmp eq i32 %138, 0
  br i1 %.not86.3, label %.preheader87.4, label %149

.preheader87.4:                                   ; preds = %139
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %140 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %141 unwind label %159

141:                                              ; preds = %.preheader87.4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not86.4 = icmp eq i32 %140, 0
  br i1 %.not86.4, label %.preheader87.5, label %149

.preheader87.5:                                   ; preds = %141
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %142 = invoke noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull @_ZL15UT_CPU_ARCHINFO)
          to label %143 unwind label %159

143:                                              ; preds = %.preheader87.5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  %.not86.5 = icmp eq i32 %142, 0
  br i1 %.not86.5, label %144, label %149

144:                                              ; preds = %143
  %145 = invoke noundef double @_Z10ut_time_msv()
          to label %161 unwind label %172

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %211

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

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

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

161:                                              ; preds = %144
  %162 = fsub double %145, %132
  %163 = fdiv double %162, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %18) #10
  call void @_Z10UNI_MEMSETPvim(ptr noundef nonnull %18, i32 noundef 0, i64 noundef 120)
  %164 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %18, ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41) #10
  %165 = icmp sgt i32 %.lcssa89, 0
  br i1 %165, label %.preheader.lr.ph, label %._crit_edge94

.preheader.lr.ph:                                 ; preds = %161
  %166 = add nsw i32 %.lcssa89, -1
  %167 = getelementptr inbounds i8, ptr %9, i64 12
  %168 = getelementptr inbounds i8, ptr %9, i64 8
  %169 = sub nsw i32 0, %.lcssa89
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.split.loop.exit103
  %.05993 = phi i32 [ 0, %.preheader.lr.ph ], [ %207, %.split.loop.exit103 ]
  br label %174

._crit_edge94:                                    ; preds = %.split.loop.exit103, %161
  %170 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull %18) #10
  %171 = uitofp i32 %58 to double
  invoke void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %17, double noundef %171, double noundef %163)
          to label %208 unwind label %209

172:                                              ; preds = %144
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %211

174:                                              ; preds = %198, %.preheader
  %indvars.iv98 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next99.5, %198 ]
  %175 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv98
  %176 = load i8, ptr %175, align 2, !tbaa !15
  %177 = icmp eq i8 %176, 0
  br i1 %177, label %.split.loop.exit103, label %178

178:                                              ; preds = %174
  %indvars.iv.next99 = or disjoint i64 %indvars.iv98, 1
  %179 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv.next99
  %180 = load i8, ptr %179, align 1, !tbaa !15
  %181 = icmp eq i8 %180, 0
  br i1 %181, label %.split.loop.exit103, label %182

182:                                              ; preds = %178
  %indvars.iv.next99.1 = add nuw nsw i64 %indvars.iv98, 2
  %183 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv.next99.1
  %184 = load i8, ptr %183, align 2, !tbaa !15
  %185 = icmp eq i8 %184, 0
  br i1 %185, label %.split.loop.exit103, label %186

186:                                              ; preds = %182
  %indvars.iv.next99.2 = add nuw nsw i64 %indvars.iv98, 3
  %187 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv.next99.2
  %188 = load i8, ptr %187, align 1, !tbaa !15
  %189 = icmp eq i8 %188, 0
  br i1 %189, label %.split.loop.exit103, label %190

190:                                              ; preds = %186
  %indvars.iv.next99.3 = add nuw nsw i64 %indvars.iv98, 4
  %191 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv.next99.3
  %192 = load i8, ptr %191, align 2, !tbaa !15
  %193 = icmp eq i8 %192, 0
  br i1 %193, label %.split.loop.exit103, label %194

194:                                              ; preds = %190
  %indvars.iv.next99.4 = add nuw nsw i64 %indvars.iv98, 5
  %195 = getelementptr inbounds [120 x i8], ptr %18, i64 0, i64 %indvars.iv.next99.4
  %196 = load i8, ptr %195, align 1, !tbaa !15
  %197 = icmp eq i8 %196, 0
  br i1 %197, label %.split.loop.exit103, label %198

198:                                              ; preds = %194
  %indvars.iv.next99.5 = add nuw nsw i64 %indvars.iv98, 6
  %exitcond.not.5 = icmp eq i64 %indvars.iv.next99.5, 120
  br i1 %exitcond.not.5, label %.split.loop.exit103, label %174, !llvm.loop !16

.split.loop.exit103:                              ; preds = %198, %194, %190, %186, %182, %178, %174
  %.058.lcssa = phi i64 [ %indvars.iv98, %174 ], [ %indvars.iv.next99, %178 ], [ %indvars.iv.next99.1, %182 ], [ %indvars.iv.next99.2, %186 ], [ %indvars.iv.next99.3, %190 ], [ %indvars.iv.next99.4, %194 ], [ 120, %198 ]
  %.not77 = icmp eq i32 %.05993, %166
  %199 = and i64 %.058.lcssa, 4294967295
  %200 = getelementptr inbounds i8, ptr %18, i64 %199
  %201 = load i32, ptr %168, align 8, !tbaa !17
  %202 = xor i32 %.05993, -1
  %.sink106.p = select i1 %.not77, i32 %169, i32 %202
  %.sink106 = add i32 %201, %.sink106.p
  %.str.5.sink = select i1 %.not77, ptr @.str.5, ptr @.str.4
  %203 = zext i32 %.sink106 to i64
  %204 = getelementptr inbounds [20 x i32], ptr %167, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !12
  %206 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %200, ptr noundef nonnull dereferenceable(1) %.str.5.sink, i32 noundef %205) #10
  %207 = add nuw nsw i32 %.05993, 1
  %exitcond101.not = icmp eq i32 %207, %.lcssa89
  br i1 %exitcond101.not, label %._crit_edge94, label %.preheader, !llvm.loop !21

208:                                              ; preds = %._crit_edge94
  call void @free(ptr noundef %59) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %17) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %4) #10
  ret i32 0

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

211:                                              ; preds = %146, %159, %209, %172, %117
  %.pn78.pn = phi { ptr, i32 } [ %118, %117 ], [ %160, %159 ], [ %147, %146 ], [ %210, %209 ], [ %173, %172 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %212

212:                                              ; preds = %211, %115
  %.pn78.pn.pn = phi { ptr, i32 } [ %.pn78.pn, %211 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  br label %213

213:                                              ; preds = %212, %113
  %.pn78.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn, %212 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #10
  br label %214

214:                                              ; preds = %213, %111, %93
  %.pn78.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn.pn, %213 ], [ %112, %111 ], [ %94, %93 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %215

215:                                              ; preds = %214, %91
  %.pn78.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn.pn.pn, %214 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  br label %216

216:                                              ; preds = %215, %89, %87
  %.pn78.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn.pn.pn.pn, %215 ], [ %90, %89 ], [ %88, %87 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %4) #10
  resume { ptr, i32 } %.pn78.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare noundef i32 @_Z25reshape_infer_output_sizeP6Tensor16ReshapeParamSpecS0_P8ArchInfo(ptr noundef, ptr noundef byval(%struct.ReshapeParamSpec) align 8, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

declare noundef i32 @_Z7reshape6TensorS_S_P8ArchInfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #6

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

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

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

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

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

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


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