; LLVM IR from huawei-noah/bolt :: compute/image/src/resize.ll (Z6resize6Tensor15ResizeParamSpecS_S_P8ArchInfo)

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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

declare i32 @fflush(ptr noundef) #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6resize6Tensor15ResizeParamSpecS_S_P8ArchInfo(ptr noundef %0, ptr noundef byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #6 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.TensorDesc, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %class.Tensor, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.TensorDesc, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %class.Tensor, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %class.Tensor, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.TensorDesc, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %struct.TensorDesc, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %struct.TensorDesc, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %struct.TensorDesc, align 8
  %46 = alloca %struct.ResizeParamSpec, align 8
  %47 = alloca %struct.TensorDesc, align 8
  %48 = alloca %struct.TensorDesc, align 8
  %49 = alloca %struct.ResizeParamSpec, align 8
  %50 = alloca %struct.TensorDesc, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ArchInfo, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !9
  store i32 %53, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #9
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  %54 = load i32, ptr %11, align 4, !tbaa !12
  %55 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %14, i32 noundef %54)
          to label %56 unwind label %74

56:                                               ; preds = %5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  store ptr %55, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr %17) #9
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %17, ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  %57 = load i32, ptr %11, align 4, !tbaa !12
  %58 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %19, i32 noundef %57)
          to label %59 unwind label %78

59:                                               ; preds = %56
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  store ptr %58, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  %60 = load i32, ptr %11, align 4, !tbaa !12
  %61 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef %21, i32 noundef %60)
          to label %62 unwind label %82

62:                                               ; preds = %59
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  store ptr %61, ptr %20, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZL6updateR10TensorDescS0_(ptr noundef nonnull align 4 dereferenceable(92) %12, ptr noundef nonnull align 4 dereferenceable(92) %17)
  %64 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !13
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %67, label %117

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %68 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !13
  store i32 %69, ptr %22, align 4, !tbaa !18
  br label %70

70:                                               ; preds = %107, %67
  %71 = load i32, ptr %22, align 4, !tbaa !18
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %86, label %73

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %110

74:                                               ; preds = %5
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %231

78:                                               ; preds = %56
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %15, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %230

82:                                               ; preds = %59
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %15, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %16, align 4
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %230

86:                                               ; preds = %70
  %87 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %88 = load i32, ptr %22, align 4, !tbaa !18
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [20 x i32], ptr %87, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !18
  %93 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 3
  %94 = load i32, ptr %22, align 4, !tbaa !18
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [20 x i32], ptr %93, i64 0, i64 %95
  store i32 %92, ptr %96, align 4, !tbaa !18
  %97 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %98 = load i32, ptr %22, align 4, !tbaa !18
  %99 = sub nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [20 x i32], ptr %97, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 3
  %104 = load i32, ptr %22, align 4, !tbaa !18
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [20 x i32], ptr %103, i64 0, i64 %105
  store i32 %102, ptr %106, align 4, !tbaa !18
  br label %107

107:                                              ; preds = %86
  %108 = load i32, ptr %22, align 4, !tbaa !18
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %22, align 4, !tbaa !18
  br label %70, !llvm.loop !19

110:                                              ; preds = %73
  %111 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !13
  %113 = add i32 %112, 1
  store i32 %113, ptr %111, align 4, !tbaa !13
  %114 = getelementptr inbounds %struct.TensorDesc, ptr %17, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !13
  %116 = add i32 %115, 1
  store i32 %116, ptr %114, align 4, !tbaa !13
  br label %117

117:                                              ; preds = %110, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %118 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %36, ptr noundef %23, ptr noundef %25, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30)
  store i32 %118, ptr %35, align 4, !tbaa !25
  %119 = load i32, ptr %35, align 4, !tbaa !25
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %133

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %122 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %123 = trunc i64 %122 to i32
  store i32 %123, ptr %37, align 4, !tbaa !18
  %124 = load i32, ptr %37, align 4, !tbaa !18
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %124)
  %126 = load ptr, ptr @stdout, align 8, !tbaa !5
  %127 = call i32 @fflush(ptr noundef %126)
  %128 = load i32, ptr %35, align 4, !tbaa !25
  %129 = call ptr @ee2str(i32 noundef %128)
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %129)
  %131 = load ptr, ptr @stdout, align 8, !tbaa !5
  %132 = call i32 @fflush(ptr noundef %131)
  call void @exit(i32 noundef 1) #10
  unreachable

133:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !21
  %134 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %39, ptr noundef %24, ptr noundef %26, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34)
  store i32 %134, ptr %38, align 4, !tbaa !25
  %135 = load i32, ptr %38, align 4, !tbaa !25
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %149

137:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %138 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %40, align 4, !tbaa !18
  %140 = load i32, ptr %40, align 4, !tbaa !18
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %140)
  %142 = load ptr, ptr @stdout, align 8, !tbaa !5
  %143 = call i32 @fflush(ptr noundef %142)
  %144 = load i32, ptr %38, align 4, !tbaa !25
  %145 = call ptr @ee2str(i32 noundef %144)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %145)
  %147 = load ptr, ptr @stdout, align 8, !tbaa !5
  %148 = call i32 @fflush(ptr noundef %147)
  call void @exit(i32 noundef 1) #10
  unreachable

149:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  %150 = load i32, ptr %27, align 4, !tbaa !18
  %151 = load i32, ptr %31, align 4, !tbaa !18
  %152 = icmp eq i32 %150, %151
  br i1 %152, label %153, label %157

153:                                              ; preds = %149
  %154 = load i32, ptr %28, align 4, !tbaa !18
  %155 = load i32, ptr %32, align 4, !tbaa !18
  %156 = icmp eq i32 %154, %155
  br i1 %156, label %167, label %157

157:                                              ; preds = %153, %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %158 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %159 = trunc i64 %158 to i32
  store i32 %159, ptr %41, align 4, !tbaa !18
  %160 = load i32, ptr %41, align 4, !tbaa !18
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %160)
  %162 = load ptr, ptr @stdout, align 8, !tbaa !5
  %163 = call i32 @fflush(ptr noundef %162)
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %165 = load ptr, ptr @stdout, align 8, !tbaa !5
  %166 = call i32 @fflush(ptr noundef %165)
  call void @exit(i32 noundef 1) #10
  unreachable

167:                                              ; preds = %153
  %168 = load i32, ptr %29, align 4, !tbaa !18
  %169 = load i32, ptr %33, align 4, !tbaa !18
  %170 = icmp eq i32 %168, %169
  br i1 %170, label %171, label %210

171:                                              ; preds = %167
  %172 = load i32, ptr %30, align 4, !tbaa !18
  %173 = load i32, ptr %34, align 4, !tbaa !18
  %174 = icmp eq i32 %172, %173
  br i1 %174, label %175, label %210

175:                                              ; preds = %171
  %176 = load i32, ptr %11, align 4, !tbaa !12
  %177 = icmp eq i32 %176, 1
  br i1 %177, label %205, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr %11, align 4, !tbaa !12
  %180 = icmp eq i32 %179, 8
  br i1 %180, label %205, label %181

181:                                              ; preds = %178
  %182 = load i32, ptr %11, align 4, !tbaa !12
  %183 = icmp eq i32 %182, 9
  br i1 %183, label %205, label %184

184:                                              ; preds = %181
  %185 = load i32, ptr %11, align 4, !tbaa !12
  %186 = icmp eq i32 %185, 10
  br i1 %186, label %205, label %187

187:                                              ; preds = %184
  %188 = load i32, ptr %11, align 4, !tbaa !12
  %189 = icmp eq i32 %188, 9
  br i1 %189, label %205, label %190

190:                                              ; preds = %187
  %191 = load i32, ptr %11, align 4, !tbaa !12
  %192 = icmp eq i32 %191, 10
  br i1 %192, label %205, label %193

193:                                              ; preds = %190
  %194 = load i32, ptr %11, align 4, !tbaa !12
  %195 = icmp eq i32 %194, 5
  br i1 %195, label %205, label %196

196:                                              ; preds = %193
  %197 = load i32, ptr %11, align 4, !tbaa !12
  %198 = icmp eq i32 %197, 6
  br i1 %198, label %205, label %199

199:                                              ; preds = %196
  %200 = load i32, ptr %11, align 4, !tbaa !12
  %201 = icmp eq i32 %200, 4
  br i1 %201, label %205, label %202

202:                                              ; preds = %199
  %203 = load i32, ptr %11, align 4, !tbaa !12
  %204 = icmp eq i32 %203, 3
  br i1 %204, label %205, label %210

205:                                              ; preds = %202, %199, %196, %193, %190, %187, %184, %181, %178, %175
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %208 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %42)
  %209 = zext i32 %208 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %206, ptr noundef %207, i64 noundef %209)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %43, align 4
  br label %228

210:                                              ; preds = %202, %171, %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  store i32 51, ptr %44, align 4, !tbaa !25
  %211 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 4
  %212 = load i32, ptr %211, align 8, !tbaa !27
  switch i32 %212, label %225 [
    i32 1, label %213
    i32 0, label %219
  ]

213:                                              ; preds = %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %1, i64 56, i1 false), !tbaa.struct !33
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !21
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = call noundef i32 @_Z14resize_nearest10TensorDescPv15ResizeParamSpecS0_S_S0_P8ArchInfo(ptr noundef byval(%struct.TensorDesc) align 8 %45, ptr noundef %214, ptr noundef byval(%struct.ResizeParamSpec) align 8 %46, ptr noundef %215, ptr noundef byval(%struct.TensorDesc) align 8 %47, ptr noundef %216, ptr noundef %217)
  store i32 %218, ptr %44, align 4, !tbaa !25
  br label %226

219:                                              ; preds = %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !21
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %1, i64 56, i1 false), !tbaa.struct !33
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !21
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = call noundef i32 @_Z15resize_bilinear10TensorDescPv15ResizeParamSpecS0_S_S0_P8ArchInfo(ptr noundef byval(%struct.TensorDesc) align 8 %48, ptr noundef %220, ptr noundef byval(%struct.ResizeParamSpec) align 8 %49, ptr noundef %221, ptr noundef byval(%struct.TensorDesc) align 8 %50, ptr noundef %222, ptr noundef %223)
  store i32 %224, ptr %44, align 4, !tbaa !25
  br label %226

225:                                              ; preds = %210
  br label %226

226:                                              ; preds = %225, %219, %213
  %227 = load i32, ptr %44, align 4, !tbaa !25
  store i32 %227, ptr %6, align 4
  store i32 1, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  br label %228

228:                                              ; preds = %226, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  %229 = load i32, ptr %6, align 4
  ret i32 %229

230:                                              ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #9
  br label %231

231:                                              ; preds = %230, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr %15, align 8
  %234 = load i32, ptr %16, align 4
  %235 = insertvalue { ptr, i32 } poison, ptr %233, 0
  %236 = insertvalue { ptr, i32 } %235, i32 %234, 1
  resume { ptr, i32 } %236
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL6updateR10TensorDescS0_(ptr noundef nonnull align 4 dereferenceable(92), ptr noundef nonnull align 4 dereferenceable(92)) #8

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

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

!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 0}
!10 = !{!"_ZTS8ArchInfo", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTS4Arch", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !17, i64 8}
!14 = !{!"_ZTS10TensorDesc", !15, i64 0, !16, i64 4, !17, i64 8, !7, i64 12}
!15 = !{!"_ZTS8DataType", !7, i64 0}
!16 = !{!"_ZTS10DataFormat", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !23, i64 8, i64 4, !18, i64 12, i64 80, !24}
!22 = !{!15, !15, i64 0}
!23 = !{!16, !16, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS2EE", !7, i64 0}
!27 = !{!28, !29, i64 32}
!28 = !{!"_ZTS15ResizeParamSpec", !7, i64 0, !7, i64 8, !17, i64 24, !17, i64 28, !29, i64 32, !30, i64 36, !31, i64 40, !32, i64 44, !17, i64 48, !17, i64 52}
!29 = !{!"_ZTS10ResizeMode", !7, i64 0}
!30 = !{!"_ZTS19CoordinateTransMode", !7, i64 0}
!31 = !{!"_ZTS9RoundMode", !7, i64 0}
!32 = !{!"float", !7, i64 0}
!33 = !{i64 0, i64 8, !24, i64 8, i64 16, !24, i64 24, i64 4, !18, i64 28, i64 4, !18, i64 32, i64 4, !34, i64 36, i64 4, !35, i64 40, i64 4, !36, i64 44, i64 4, !37, i64 48, i64 4, !18, i64 52, i64 4, !18}
!34 = !{!29, !29, i64 0}
!35 = !{!30, !30, i64 0}
!36 = !{!31, !31, i64 0}
!37 = !{!32, !32, i64 0}


; 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.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.ResizeParamSpec = type { [2 x i32], [4 x float], i32, i32, i32, i32, i32, float, i32, 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 [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6resize6Tensor15ResizeParamSpecS_S_P8ArchInfo(ptr noundef nonnull %0, ptr nocapture noundef readonly byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.TensorDesc, align 8
  %7 = alloca %class.Tensor, align 8
  %8 = alloca %struct.TensorDesc, align 8
  %9 = alloca %class.Tensor, align 8
  %10 = alloca %class.Tensor, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = load i32, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %6) #9
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %6, ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %0) #9
  %24 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %7, i32 noundef %23)
          to label %25 unwind label %39

25:                                               ; preds = %5
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %8) #9
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %8, ptr noundef nonnull align 8 dereferenceable(32) %3)
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  %26 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %9, i32 noundef %23)
          to label %27 unwind label %41

27:                                               ; preds = %25
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZN6TensorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  %28 = invoke noundef ptr @_Z19get_ptr_from_tensor6Tensor4Arch(ptr noundef nonnull %10, i32 noundef %23)
          to label %29 unwind label %43

29:                                               ; preds = %27
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  %30 = call noundef zeroext i1 @_ZL6updateR10TensorDescS0_(ptr noundef nonnull align 4 dereferenceable(92) %6, ptr noundef nonnull align 4 dereferenceable(92) %8)
  %31 = getelementptr inbounds i8, ptr %6, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp eq i32 %32, 3
  br i1 %33, label %.preheader, label %45

.preheader:                                       ; preds = %29
  %34 = getelementptr inbounds i8, ptr %6, i64 12
  %35 = getelementptr inbounds i8, ptr %8, i64 12
  %scevgep = getelementptr inbounds i8, ptr %6, i64 16
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %scevgep, ptr noundef nonnull align 4 dereferenceable(12) %34, i64 12, i1 false), !tbaa !16
  %scevgep69 = getelementptr inbounds i8, ptr %8, i64 16
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %scevgep69, ptr noundef nonnull align 4 dereferenceable(12) %35, i64 12, i1 false), !tbaa !16
  store i32 4, ptr %31, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %8, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = add i32 %37, 1
  store i32 %38, ptr %36, align 8, !tbaa !11
  br label %45

39:                                               ; preds = %5
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  br label %107

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %106

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %106

45:                                               ; preds = %.preheader, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  %46 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef nonnull %11, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %57, label %47

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

57:                                               ; preds = %45
  %58 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8, ptr noundef nonnull %12, ptr noundef nonnull %14, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %.not67 = icmp eq i32 %58, 0
  br i1 %.not67, label %69, label %59

59:                                               ; preds = %57
  %60 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %61 = trunc i64 %60 to i32
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %61)
  %63 = load ptr, ptr @stdout, align 8, !tbaa !17
  %64 = call i32 @fflush(ptr noundef %63)
  %65 = call ptr @ee2str(i32 noundef %58)
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %65)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !17
  %68 = call i32 @fflush(ptr noundef %67)
  call void @exit(i32 noundef 1) #10
  unreachable

69:                                               ; preds = %57
  %70 = load i32, ptr %15, align 4, !tbaa !16
  %71 = load i32, ptr %19, align 4, !tbaa !16
  %72 = icmp eq i32 %70, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %69
  %74 = load i32, ptr %16, align 4, !tbaa !16
  %75 = load i32, ptr %20, align 4, !tbaa !16
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %86, label %77

77:                                               ; preds = %73, %69
  %78 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %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 !17
  %82 = call i32 @fflush(ptr noundef %81)
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %84 = load ptr, ptr @stdout, align 8, !tbaa !17
  %85 = call i32 @fflush(ptr noundef %84)
  call void @exit(i32 noundef 1) #10
  unreachable

86:                                               ; preds = %73
  %87 = load i32, ptr %17, align 4, !tbaa !16
  %88 = load i32, ptr %21, align 4, !tbaa !16
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %98

90:                                               ; preds = %86
  %91 = load i32, ptr %18, align 4, !tbaa !16
  %92 = load i32, ptr %22, align 4, !tbaa !16
  %93 = icmp eq i32 %91, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %90
  switch i32 %23, label %98 [
    i32 10, label %95
    i32 9, label %95
    i32 8, label %95
    i32 6, label %95
    i32 5, label %95
    i32 4, label %95
    i32 3, label %95
    i32 1, label %95
  ]

95:                                               ; preds = %94, %94, %94, %94, %94, %94, %94, %94
  %96 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
  %97 = zext i32 %96 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %26, ptr noundef %24, i64 noundef %97)
  br label %105

98:                                               ; preds = %94, %90, %86
  %99 = getelementptr inbounds i8, ptr %1, i64 32
  %100 = load i32, ptr %99, align 8, !tbaa !18
  switch i32 %100, label %105 [
    i32 1, label %101
    i32 0, label %103
  ]

101:                                              ; preds = %98
  %102 = call noundef i32 @_Z14resize_nearest10TensorDescPv15ResizeParamSpecS0_S_S0_P8ArchInfo(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef %24, ptr noundef nonnull byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %28, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8, ptr noundef %26, ptr noundef nonnull %4)
  br label %105

103:                                              ; preds = %98
  %104 = call noundef i32 @_Z15resize_bilinear10TensorDescPv15ResizeParamSpecS0_S_S0_P8ArchInfo(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef %24, ptr noundef nonnull byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %28, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %8, ptr noundef %26, ptr noundef nonnull %4)
  br label %105

105:                                              ; preds = %101, %103, %98, %95
  %.057 = phi i32 [ 0, %95 ], [ 51, %98 ], [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #9
  ret i32 %.057

106:                                              ; preds = %43, %41
  %.sink = phi ptr [ %10, %43 ], [ %9, %41 ]
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZN6TensorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %8) #9
  br label %107

107:                                              ; preds = %106, %39
  %.pn.pn = phi { ptr, i32 } [ %.pn, %106 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #9
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL6updateR10TensorDescS0_(ptr noundef nonnull align 4 dereferenceable(92), ptr noundef nonnull align 4 dereferenceable(92)) local_unnamed_addr #7

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 = { 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 #6 = { 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 #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

!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, !7, i64 0}
!6 = !{!"_ZTS8ArchInfo", !7, i64 0, !10, i64 8}
!7 = !{!"_ZTS4Arch", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !15, i64 8}
!12 = !{!"_ZTS10TensorDesc", !13, i64 0, !14, i64 4, !15, i64 8, !8, i64 12}
!13 = !{!"_ZTS8DataType", !8, i64 0}
!14 = !{!"_ZTS10DataFormat", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !20, i64 32}
!19 = !{!"_ZTS15ResizeParamSpec", !8, i64 0, !8, i64 8, !15, i64 24, !15, i64 28, !20, i64 32, !21, i64 36, !22, i64 40, !23, i64 44, !15, i64 48, !15, i64 52}
!20 = !{!"_ZTS10ResizeMode", !8, i64 0}
!21 = !{!"_ZTS19CoordinateTransMode", !8, i64 0}
!22 = !{!"_ZTS9RoundMode", !8, i64 0}
!23 = !{!"float", !8, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass