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

; 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 }

@.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.2 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z28resize_infer_output_size_cpu10TensorDesc15ResizeParamSpecPS_(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef byval(%struct.ResizeParamSpec) align 8 %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %struct.TensorDesc, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.TensorDesc, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.TensorDesc, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.TensorDesc, align 8
  %22 = alloca i32, align 4
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca %struct.TensorDesc, align 8
  %30 = alloca %struct.TensorDesc, align 4
  %31 = alloca %struct.TensorDesc, align 8
  %32 = alloca %struct.TensorDesc, align 4
  %33 = alloca %struct.TensorDesc, align 4
  store ptr %2, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #10
  store i8 0, ptr %14, align 1, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %34 = call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %15)
  %35 = icmp ne i8 %34, 0
  br i1 %35, label %36, label %53

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %37 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %17, ptr noundef %5, ptr noundef %6, ptr noundef %8, ptr noundef %9, ptr noundef %10)
  store i32 %37, ptr %16, align 4, !tbaa !19
  %38 = load i32, ptr %16, align 4, !tbaa !19
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %52

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %41 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %18, align 4, !tbaa !9
  %43 = load i32, ptr %18, align 4, !tbaa !9
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = call i32 @fflush(ptr noundef %45)
  %47 = load i32, ptr %16, align 4, !tbaa !19
  %48 = call ptr @ee2str(i32 noundef %47)
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %48)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !5
  %51 = call i32 @fflush(ptr noundef %50)
  call void @exit(i32 noundef 1) #11
  unreachable

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

53:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %54 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %19)
  %55 = icmp ne i8 %54, 0
  br i1 %55, label %56, label %83

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %57 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %21, ptr noundef %5, ptr noundef %6, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  store i32 %57, ptr %20, align 4, !tbaa !19
  %58 = load i32, ptr %20, align 4, !tbaa !19
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %72

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

72:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %73 = call noundef zeroext i1 @_ZL16is_implicit_nhwc10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %23)
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %14, align 1, !tbaa !11
  %75 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %82

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  %78 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %78, ptr %24, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %80, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %81, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %82

82:                                               ; preds = %77, %72
  br label %95

83:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  %84 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %25, align 4, !tbaa !9
  %86 = load i32, ptr %25, align 4, !tbaa !9
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %86)
  %88 = load ptr, ptr @stdout, align 8, !tbaa !5
  %89 = call i32 @fflush(ptr noundef %88)
  %90 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !23
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %91)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !5
  %94 = call i32 @fflush(ptr noundef %93)
  call void @exit(i32 noundef 1) #11
  unreachable

95:                                               ; preds = %82
  br label %96

96:                                               ; preds = %95, %52
  %97 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 7
  %98 = load float, ptr %97, align 4, !tbaa !25
  %99 = fcmp ogt float %98, 0.000000e+00
  br i1 %99, label %100, label %149

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 8
  %103 = load i32, ptr %102, align 8, !tbaa !31
  %104 = add i32 %101, %103
  %105 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 9
  %106 = load i32, ptr %105, align 4, !tbaa !32
  %107 = add i32 %104, %106
  store i32 %107, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 8
  %110 = load i32, ptr %109, align 8, !tbaa !31
  %111 = add i32 %108, %110
  %112 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 9
  %113 = load i32, ptr %112, align 4, !tbaa !32
  %114 = add i32 %111, %113
  store i32 %114, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store float 1.000000e+00, ptr %28, align 4, !tbaa !33
  %115 = load i32, ptr %26, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 1
  %117 = sitofp i32 %116 to float
  %118 = load float, ptr %28, align 4, !tbaa !33
  %119 = fdiv float %117, %118
  %120 = fadd float %119, 1.000000e+00
  %121 = fptoui float %120 to i32
  store i32 %121, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %27, align 4, !tbaa !9
  %123 = sub nsw i32 %122, 1
  %124 = sitofp i32 %123 to float
  %125 = load float, ptr %28, align 4, !tbaa !33
  %126 = fdiv float %124, %125
  %127 = fadd float %126, 1.000000e+00
  %128 = fptoui float %127 to i32
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = uitofp i32 %129 to float
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = sub i32 %131, 1
  %133 = uitofp i32 %132 to float
  %134 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 7
  %135 = load float, ptr %134, align 4, !tbaa !25
  %136 = fsub float %135, 1.000000e+00
  %137 = call float @llvm.fmuladd.f32(float %133, float %136, float %130)
  %138 = fptoui float %137 to i32
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = uitofp i32 %139 to float
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = sub i32 %141, 1
  %143 = uitofp i32 %142 to float
  %144 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 7
  %145 = load float, ptr %144, align 4, !tbaa !25
  %146 = fsub float %145, 1.000000e+00
  %147 = call float @llvm.fmuladd.f32(float %143, float %146, float %140)
  %148 = fptoui float %147 to i32
  store i32 %148, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %186

149:                                              ; preds = %96
  %150 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 2
  %151 = load i32, ptr %150, align 8, !tbaa !34
  %152 = icmp ugt i32 %151, 0
  br i1 %152, label %153, label %165

153:                                              ; preds = %149
  %154 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 0
  %155 = getelementptr inbounds [2 x i32], ptr %154, i64 0, i64 0
  %156 = load i32, ptr %155, align 8, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !34
  %159 = icmp ugt i32 %158, 1
  br i1 %159, label %160, label %164

160:                                              ; preds = %153
  %161 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 0
  %162 = getelementptr inbounds [2 x i32], ptr %161, i64 0, i64 1
  %163 = load i32, ptr %162, align 4, !tbaa !9
  store i32 %163, ptr %13, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %160, %153
  br label %185

165:                                              ; preds = %149
  %166 = load i32, ptr %10, align 4, !tbaa !9
  %167 = uitofp i32 %166 to float
  %168 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 1
  %169 = getelementptr inbounds [4 x float], ptr %168, i64 0, i64 2
  %170 = load float, ptr %169, align 8, !tbaa !33
  %171 = fmul float %167, %170
  %172 = fptoui float %171 to i32
  store i32 %172, ptr %12, align 4, !tbaa !9
  %173 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 3
  %174 = load i32, ptr %173, align 4, !tbaa !35
  %175 = icmp ugt i32 %174, 3
  br i1 %175, label %176, label %184

176:                                              ; preds = %165
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = uitofp i32 %177 to float
  %179 = getelementptr inbounds %struct.ResizeParamSpec, ptr %1, i32 0, i32 1
  %180 = getelementptr inbounds [4 x float], ptr %179, i64 0, i64 3
  %181 = load float, ptr %180, align 4, !tbaa !33
  %182 = fmul float %178, %181
  %183 = fptoui float %182 to i32
  store i32 %183, ptr %13, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %176, %165
  br label %185

185:                                              ; preds = %184, %164
  br label %186

186:                                              ; preds = %185, %100
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = urem i32 %187, 8
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %186
  store i32 2, ptr %7, align 4, !tbaa !16
  br label %193

191:                                              ; preds = %186
  %192 = load i32, ptr %6, align 4, !tbaa !16
  store i32 %192, ptr %7, align 4, !tbaa !16
  br label %193

193:                                              ; preds = %191, %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %194 = call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %29)
  %195 = icmp ne i8 %194, 0
  br i1 %195, label %196, label %203

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 92, ptr %30) #10
  %197 = load i32, ptr %5, align 4, !tbaa !14
  %198 = load i32, ptr %7, align 4, !tbaa !16
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = load i32, ptr %9, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  call void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %30, i32 noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201)
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %202, ptr align 4 %30, i64 92, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 92, ptr %30) #10
  br label %227

203:                                              ; preds = %193
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %204 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %31)
  %205 = icmp ne i8 %204, 0
  br i1 %205, label %206, label %226

206:                                              ; preds = %203
  %207 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %208 = trunc i8 %207 to i1
  br i1 %208, label %209, label %217

209:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 92, ptr %32) #10
  %210 = load i32, ptr %5, align 4, !tbaa !14
  %211 = load i32, ptr %7, align 4, !tbaa !16
  %212 = load i32, ptr %8, align 4, !tbaa !9
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %9, align 4, !tbaa !9
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %32, i32 noundef %210, i32 noundef %211, i32 noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215)
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %216, ptr align 4 %32, i64 92, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 92, ptr %32) #10
  br label %225

217:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 92, ptr %33) #10
  %218 = load i32, ptr %5, align 4, !tbaa !14
  %219 = load i32, ptr %7, align 4, !tbaa !16
  %220 = load i32, ptr %8, align 4, !tbaa !9
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %33, i32 noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223)
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %224, ptr align 4 %33, i64 92, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 92, ptr %33) #10
  br label %225

225:                                              ; preds = %217, %209
  br label %226

226:                                              ; preds = %225, %203
  br label %227

227:                                              ; preds = %226, %196
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #2

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

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

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

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

declare i32 @fflush(ptr noundef) #5

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

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

; 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 noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL16is_implicit_nhwc10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

; 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) #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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { "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 = { 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !16, i64 8, i64 4, !9, i64 12, i64 80, !18}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS8DataType", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS2EE", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !10, i64 8}
!24 = !{!"_ZTS10TensorDesc", !15, i64 0, !17, i64 4, !10, i64 8, !7, i64 12}
!25 = !{!26, !30, i64 44}
!26 = !{!"_ZTS15ResizeParamSpec", !7, i64 0, !7, i64 8, !10, i64 24, !10, i64 28, !27, i64 32, !28, i64 36, !29, i64 40, !30, i64 44, !10, i64 48, !10, i64 52}
!27 = !{!"_ZTS10ResizeMode", !7, i64 0}
!28 = !{!"_ZTS19CoordinateTransMode", !7, i64 0}
!29 = !{!"_ZTS9RoundMode", !7, i64 0}
!30 = !{!"float", !7, i64 0}
!31 = !{!26, !10, i64 48}
!32 = !{!26, !10, i64 52}
!33 = !{!30, !30, i64 0}
!34 = !{!26, !10, i64 24}
!35 = !{!26, !10, i64 28}


; 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 }

@.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.2 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z28resize_infer_output_size_cpu10TensorDesc15ResizeParamSpecPS_(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr nocapture noundef readonly byval(%struct.ResizeParamSpec) align 8 %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.TensorDesc, align 4
  %11 = alloca %struct.TensorDesc, align 4
  %12 = alloca %struct.TensorDesc, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  store i32 1, ptr %9, align 4, !tbaa !5
  %13 = tail call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not = icmp eq i8 %13, 0
  br i1 %.not, label %26, label %14

14:                                               ; preds = %3
  %15 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not37 = icmp eq i32 %15, 0
  br i1 %.not37, label %57, label %16

16:                                               ; preds = %14
  %17 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %18 = trunc i64 %17 to i32
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %18)
  %20 = load ptr, ptr @stdout, align 8, !tbaa !9
  %21 = call i32 @fflush(ptr noundef %20)
  %22 = call ptr @ee2str(i32 noundef %15)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22)
  %24 = load ptr, ptr @stdout, align 8, !tbaa !9
  %25 = call i32 @fflush(ptr noundef %24)
  call void @exit(i32 noundef 1) #11
  unreachable

26:                                               ; preds = %3
  %27 = tail call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not35 = icmp eq i8 %27, 0
  br i1 %.not35, label %46, label %28

28:                                               ; preds = %26
  %29 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %.not36 = icmp eq i32 %29, 0
  br i1 %.not36, label %40, label %30

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

40:                                               ; preds = %28
  %41 = call noundef zeroext i1 @_ZL16is_implicit_nhwc10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  br i1 %41, label %42, label %57

42:                                               ; preds = %40
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %44, ptr %9, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %45, ptr %8, align 4, !tbaa !5
  store i32 %43, ptr %7, align 4, !tbaa !5
  br label %57

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

57:                                               ; preds = %14, %42, %40
  %.030.shrunk = phi i1 [ true, %42 ], [ false, %40 ], [ false, %14 ]
  %58 = getelementptr inbounds i8, ptr %1, i64 44
  %59 = load float, ptr %58, align 4, !tbaa !15
  %60 = fcmp ogt float %59, 0.000000e+00
  br i1 %60, label %61, label %90

61:                                               ; preds = %57
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %1, i64 48
  %64 = load i32, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds i8, ptr %1, i64 52
  %66 = load i32, ptr %65, align 4, !tbaa !22
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = add i32 %64, -1
  %69 = add i32 %68, %62
  %70 = add i32 %69, %66
  %71 = sitofp i32 %70 to float
  %72 = fadd float %71, 1.000000e+00
  %73 = fptoui float %72 to i32
  %74 = add i32 %68, %66
  %75 = add i32 %74, %67
  %76 = sitofp i32 %75 to float
  %77 = fadd float %76, 1.000000e+00
  %78 = fptoui float %77 to i32
  %79 = uitofp i32 %73 to float
  %80 = add i32 %73, -1
  %81 = uitofp i32 %80 to float
  %82 = fadd float %59, -1.000000e+00
  %83 = call float @llvm.fmuladd.f32(float %81, float %82, float %79)
  %84 = fptoui float %83 to i32
  %85 = uitofp i32 %78 to float
  %86 = add i32 %78, -1
  %87 = uitofp i32 %86 to float
  %88 = call float @llvm.fmuladd.f32(float %87, float %82, float %85)
  %89 = fptoui float %88 to i32
  br label %115

90:                                               ; preds = %57
  %91 = getelementptr inbounds i8, ptr %1, i64 24
  %92 = load i32, ptr %91, align 8, !tbaa !23
  %.not38 = icmp eq i32 %92, 0
  br i1 %.not38, label %98, label %93

93:                                               ; preds = %90
  %94 = load i32, ptr %1, align 8, !tbaa !5
  %.not39 = icmp eq i32 %92, 1
  br i1 %.not39, label %115, label %95

95:                                               ; preds = %93
  %96 = getelementptr inbounds i8, ptr %1, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !5
  br label %115

98:                                               ; preds = %90
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = uitofp i32 %99 to float
  %101 = getelementptr inbounds i8, ptr %1, i64 16
  %102 = load float, ptr %101, align 8, !tbaa !24
  %103 = fmul float %102, %100
  %104 = fptoui float %103 to i32
  %105 = getelementptr inbounds i8, ptr %1, i64 28
  %106 = load i32, ptr %105, align 4, !tbaa !25
  %107 = icmp ugt i32 %106, 3
  br i1 %107, label %108, label %115

108:                                              ; preds = %98
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = uitofp i32 %109 to float
  %111 = getelementptr inbounds i8, ptr %1, i64 20
  %112 = load float, ptr %111, align 4, !tbaa !24
  %113 = fmul float %112, %110
  %114 = fptoui float %113 to i32
  br label %115

115:                                              ; preds = %95, %93, %108, %98, %61
  %.029 = phi i32 [ %89, %61 ], [ %97, %95 ], [ 1, %93 ], [ %114, %108 ], [ 1, %98 ]
  %.028 = phi i32 [ %84, %61 ], [ %94, %95 ], [ %94, %93 ], [ %104, %108 ], [ %104, %98 ]
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = and i32 %116, 7
  %118 = icmp eq i32 %117, 0
  %119 = load i32, ptr %5, align 4
  %.0 = select i1 %118, i32 2, i32 %119
  %120 = call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not40 = icmp eq i8 %120, 0
  br i1 %.not40, label %125, label %121

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #10
  %122 = load i32, ptr %4, align 4, !tbaa !26
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9tensor3df8DataType10DataFormatjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, i32 noundef %122, i32 noundef %.0, i32 noundef %123, i32 noundef %124, i32 noundef %.028)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %2, ptr noundef nonnull align 4 dereferenceable(92) %10, i64 92, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #10
  br label %136

125:                                              ; preds = %115
  %126 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not41 = icmp eq i8 %126, 0
  br i1 %.not41, label %136, label %127

127:                                              ; preds = %125
  br i1 %.030.shrunk, label %128, label %132

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %11) #10
  %129 = load i32, ptr %4, align 4, !tbaa !26
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %11, i32 noundef %129, i32 noundef %.0, i32 noundef %130, i32 noundef %.028, i32 noundef %.029, i32 noundef %131)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %2, ptr noundef nonnull align 4 dereferenceable(92) %11, i64 92, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %11) #10
  br label %136

132:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %12) #10
  %133 = load i32, ptr %4, align 4, !tbaa !26
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %12, i32 noundef %133, i32 noundef %.0, i32 noundef %134, i32 noundef %135, i32 noundef %.028, i32 noundef %.029)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(92) %2, ptr noundef nonnull align 4 dereferenceable(92) %12, i64 92, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %12) #10
  br label %136

136:                                              ; preds = %125, %132, %128, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL16is_implicit_nhwc10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 #6 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { 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 = !{!"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, !6, i64 8}
!12 = !{!"_ZTS10TensorDesc", !13, i64 0, !14, i64 4, !6, i64 8, !7, i64 12}
!13 = !{!"_ZTS8DataType", !7, i64 0}
!14 = !{!"_ZTS10DataFormat", !7, i64 0}
!15 = !{!16, !20, i64 44}
!16 = !{!"_ZTS15ResizeParamSpec", !7, i64 0, !7, i64 8, !6, i64 24, !6, i64 28, !17, i64 32, !18, i64 36, !19, i64 40, !20, i64 44, !6, i64 48, !6, i64 52}
!17 = !{!"_ZTS10ResizeMode", !7, i64 0}
!18 = !{!"_ZTS19CoordinateTransMode", !7, i64 0}
!19 = !{!"_ZTS9RoundMode", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!16, !6, i64 48}
!22 = !{!16, !6, i64 52}
!23 = !{!16, !6, i64 24}
!24 = !{!20, !20, i64 0}
!25 = !{!16, !6, i64 28}
!26 = !{!13, !13, i64 0}
!27 = !{i64 0, i64 4, !26, i64 4, i64 4, !28, i64 8, i64 4, !5, i64 12, i64 80, !29}
!28 = !{!14, !14, i64 0}
!29 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass