; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseResizerBilinear.ll (ZN4Simd4Base19ResizerBf16BilinearC2ERKNS_8ResParamE)

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

%"class.Simd::Base::ResizerBf16Bilinear" = type { %"class.Simd::Resizer", i8, %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.0", [2 x %"struct.Simd::Array.0"] }
%"class.Simd::Resizer" = type { %"struct.Simd::Deletable", %"struct.Simd::ResParam" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::ResParam" = type { i32, i32, i64, i64, i64, i64, i64, i64 }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }

@_ZTVN4Simd4Base19ResizerBf16BilinearE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd7ResizerC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #1 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19ResizerBf16BilinearC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Simd7ResizerC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull align 8 dereferenceable(56) %9)
  store ptr getelementptr inbounds inrange(-16, 32) ({ [6 x ptr] }, ptr @_ZTVN4Simd4Base19ResizerBf16BilinearE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 2
  invoke void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %11 unwind label %149

11:                                               ; preds = %2
  %12 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 3
  invoke void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %13 unwind label %153

13:                                               ; preds = %11
  %14 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 4
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %15 unwind label %157

15:                                               ; preds = %13
  %16 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 5
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %17 unwind label %161

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 6
  %19 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %"struct.Simd::Array.0", ptr %19, i64 2
  br label %21

21:                                               ; preds = %23, %17
  %22 = phi ptr [ %19, %17 ], [ %24, %23 ]
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %23 unwind label %165

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"struct.Simd::Array.0", ptr %22, i64 1
  %25 = icmp eq ptr %24, %20
  br i1 %25, label %26, label %21

26:                                               ; preds = %23
  %27 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %28 = getelementptr inbounds %"struct.Simd::ResParam", ptr %27, i32 0, i32 7
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = icmp ult i64 %29, 16
  br i1 %30, label %44, label %31

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %33 = getelementptr inbounds %"struct.Simd::ResParam", ptr %32, i32 0, i32 6
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = icmp ult i64 %34, 4
  br i1 %35, label %44, label %36

36:                                               ; preds = %31
  %37 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %38 = getelementptr inbounds %"struct.Simd::ResParam", ptr %37, i32 0, i32 5
  %39 = load i64, ptr %38, align 8, !tbaa !19
  %40 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %41 = getelementptr inbounds %"struct.Simd::ResParam", ptr %40, i32 0, i32 3
  %42 = load i64, ptr %41, align 8, !tbaa !20
  %43 = icmp uge i64 %39, %42
  br label %44

44:                                               ; preds = %36, %31, %26
  %45 = phi i1 [ true, %31 ], [ true, %26 ], [ %43, %36 ]
  %46 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 1
  %47 = zext i1 %45 to i8
  store i8 %47, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 5
  %49 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.Simd::ResParam", ptr %49, i32 0, i32 5
  %51 = load i64, ptr %50, align 8, !tbaa !19
  %52 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %53 = getelementptr inbounds %"struct.Simd::ResParam", ptr %52, i32 0, i32 7
  %54 = load i64, ptr %53, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %48, i64 noundef %51, i1 noundef zeroext false, i64 noundef %54)
          to label %55 unwind label %175

55:                                               ; preds = %44
  %56 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 3
  %57 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.Simd::ResParam", ptr %57, i32 0, i32 5
  %59 = load i64, ptr %58, align 8, !tbaa !19
  %60 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.Simd::ResParam", ptr %60, i32 0, i32 7
  %62 = load i64, ptr %61, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %56, i64 noundef %59, i1 noundef zeroext false, i64 noundef %62)
          to label %63 unwind label %175

63:                                               ; preds = %55
  %64 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %65 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %66 = getelementptr inbounds %"struct.Simd::ResParam", ptr %65, i32 0, i32 3
  %67 = load i64, ptr %66, align 8, !tbaa !20
  %68 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %69 = getelementptr inbounds %"struct.Simd::ResParam", ptr %68, i32 0, i32 5
  %70 = load i64, ptr %69, align 8, !tbaa !19
  %71 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 3
  %72 = getelementptr inbounds %"struct.Simd::Array", ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !26
  %74 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 5
  %75 = getelementptr inbounds %"struct.Simd::Array.0", ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !27
  invoke void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %64, i64 noundef %67, i64 noundef %70, i64 noundef 1, i64 noundef 1, ptr noundef %73, ptr noundef %76)
          to label %77 unwind label %175

77:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %78 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %79 = getelementptr inbounds %"struct.Simd::ResParam", ptr %78, i32 0, i32 4
  %80 = load i64, ptr %79, align 8, !tbaa !28
  %81 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 1
  %82 = load i8, ptr %81, align 8, !tbaa !21, !range !29, !noundef !30
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %88

84:                                               ; preds = %77
  %85 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %86 = getelementptr inbounds %"struct.Simd::ResParam", ptr %85, i32 0, i32 6
  %87 = load i64, ptr %86, align 8, !tbaa !18
  br label %89

88:                                               ; preds = %77
  br label %89

89:                                               ; preds = %88, %84
  %90 = phi i64 [ %87, %84 ], [ 1, %88 ]
  %91 = mul i64 %80, %90
  store i64 %91, ptr %7, align 8, !tbaa !31
  %92 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 4
  %93 = load i64, ptr %7, align 8, !tbaa !31
  %94 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %95 = getelementptr inbounds %"struct.Simd::ResParam", ptr %94, i32 0, i32 7
  %96 = load i64, ptr %95, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef %93, i1 noundef zeroext false, i64 noundef %96)
          to label %97 unwind label %179

97:                                               ; preds = %89
  %98 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 2
  %99 = load i64, ptr %7, align 8, !tbaa !31
  %100 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.Simd::ResParam", ptr %100, i32 0, i32 7
  %102 = load i64, ptr %101, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %99, i1 noundef zeroext false, i64 noundef %102)
          to label %103 unwind label %179

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %105 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %106 = getelementptr inbounds %"struct.Simd::ResParam", ptr %105, i32 0, i32 2
  %107 = load i64, ptr %106, align 8, !tbaa !32
  %108 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %109 = getelementptr inbounds %"struct.Simd::ResParam", ptr %108, i32 0, i32 4
  %110 = load i64, ptr %109, align 8, !tbaa !28
  %111 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %112 = getelementptr inbounds %"struct.Simd::ResParam", ptr %111, i32 0, i32 6
  %113 = load i64, ptr %112, align 8, !tbaa !18
  %114 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 1
  %115 = load i8, ptr %114, align 8, !tbaa !21, !range !29, !noundef !30
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %121

117:                                              ; preds = %103
  %118 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %119 = getelementptr inbounds %"struct.Simd::ResParam", ptr %118, i32 0, i32 6
  %120 = load i64, ptr %119, align 8, !tbaa !18
  br label %122

121:                                              ; preds = %103
  br label %122

122:                                              ; preds = %121, %117
  %123 = phi i64 [ %120, %117 ], [ 1, %121 ]
  %124 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 2
  %125 = getelementptr inbounds %"struct.Simd::Array", ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !33
  %127 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 4
  %128 = getelementptr inbounds %"struct.Simd::Array.0", ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !34
  invoke void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %104, i64 noundef %107, i64 noundef %110, i64 noundef %113, i64 noundef %123, ptr noundef %126, ptr noundef %129)
          to label %130 unwind label %179

130:                                              ; preds = %122
  %131 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 1
  %132 = load i8, ptr %131, align 8, !tbaa !21, !range !29, !noundef !30
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %183

134:                                              ; preds = %130
  %135 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 6
  %136 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %135, i64 0, i64 0
  %137 = load i64, ptr %7, align 8, !tbaa !31
  %138 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %139 = getelementptr inbounds %"struct.Simd::ResParam", ptr %138, i32 0, i32 7
  %140 = load i64, ptr %139, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %136, i64 noundef %137, i1 noundef zeroext false, i64 noundef %140)
          to label %141 unwind label %179

141:                                              ; preds = %134
  %142 = getelementptr inbounds %"class.Simd::Base::ResizerBf16Bilinear", ptr %8, i32 0, i32 6
  %143 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %142, i64 0, i64 1
  %144 = load i64, ptr %7, align 8, !tbaa !31
  %145 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %146 = getelementptr inbounds %"struct.Simd::ResParam", ptr %145, i32 0, i32 7
  %147 = load i64, ptr %146, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %144, i1 noundef zeroext false, i64 noundef %147)
          to label %148 unwind label %179

148:                                              ; preds = %141
  br label %183

149:                                              ; preds = %2
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  br label %196

153:                                              ; preds = %11
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %5, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %6, align 4
  br label %195

157:                                              ; preds = %13
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %5, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %6, align 4
  br label %194

161:                                              ; preds = %15
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  br label %193

165:                                              ; preds = %21
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  %169 = icmp eq ptr %19, %22
  br i1 %169, label %174, label %170

170:                                              ; preds = %170, %165
  %171 = phi ptr [ %22, %165 ], [ %172, %170 ]
  %172 = getelementptr inbounds %"struct.Simd::Array.0", ptr %171, i64 -1
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %172) #5
  %173 = icmp eq ptr %172, %19
  br i1 %173, label %174, label %170

174:                                              ; preds = %170, %165
  br label %192

175:                                              ; preds = %63, %55, %44
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %5, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %6, align 4
  br label %184

179:                                              ; preds = %141, %134, %122, %97, %89
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %5, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %184

183:                                              ; preds = %148, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void

184:                                              ; preds = %179, %175
  %185 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %18, i32 0, i32 0
  %186 = getelementptr inbounds %"struct.Simd::Array.0", ptr %185, i64 2
  br label %187

187:                                              ; preds = %187, %184
  %188 = phi ptr [ %186, %184 ], [ %189, %187 ]
  %189 = getelementptr inbounds %"struct.Simd::Array.0", ptr %188, i64 -1
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %189) #5
  %190 = icmp eq ptr %189, %185
  br i1 %190, label %191, label %187

191:                                              ; preds = %187
  br label %192

192:                                              ; preds = %191, %174
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %193

193:                                              ; preds = %192, %161
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %194

194:                                              ; preds = %193, %157
  call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %195

195:                                              ; preds = %194, %153
  call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %196

196:                                              ; preds = %195, %149
  call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #5
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr %5, align 8
  %199 = load i32, ptr %6, align 4
  %200 = insertvalue { ptr, i32 } poison, ptr %198, 0
  %201 = insertvalue { ptr, i32 } %200, i32 %199, 1
  resume { ptr, i32 } %201
}

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

attributes #0 = { 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 #1 = { alwaysinline 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 #2 = { alwaysinline 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !17, i64 56}
!12 = !{!"_ZTSN4Simd7ResizerE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd8ResParamE", !15, i64 0, !16, i64 4, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48}
!15 = !{!"_ZTS21SimdResizeChannelType", !7, i64 0}
!16 = !{!"_ZTS20SimdResizeMethodType", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!12, !17, i64 48}
!19 = !{!12, !17, i64 40}
!20 = !{!12, !17, i64 24}
!21 = !{!22, !23, i64 64}
!22 = !{!"_ZTSN4Simd4Base19ResizerBf16BilinearE", !12, i64 0, !23, i64 64, !24, i64 72, !24, i64 88, !25, i64 104, !25, i64 120, !7, i64 136}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN4Simd5ArrayIiEE", !6, i64 0, !17, i64 8}
!25 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !17, i64 8}
!26 = !{!22, !6, i64 88}
!27 = !{!22, !6, i64 120}
!28 = !{!12, !17, i64 32}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!17, !17, i64 0}
!32 = !{!12, !17, i64 16}
!33 = !{!22, !6, i64 72}
!34 = !{!22, !6, i64 104}


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

@_ZTVN4Simd4Base19ResizerBf16BilinearE = external dso_local unnamed_addr constant { [6 x ptr] }, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd7ResizerC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19ResizerBf16BilinearC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4Simd7ResizerC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(56) %1)
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN4Simd4Base19ResizerBf16BilinearE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %4 unwind label %61

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 88
  invoke void @_ZN4Simd5ArrayIiEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %6 unwind label %63

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %8 unwind label %65

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %10 unwind label %67

10:                                               ; preds = %8
  %.ptr17 = getelementptr inbounds i8, ptr %0, i64 136
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr17, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %12 unwind label %.thread

.thread:                                          ; preds = %10
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

12:                                               ; preds = %10
  %.ptr.ptr.1 = getelementptr inbounds i8, ptr %0, i64 152
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.ptr.1, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %13 unwind label %.preheader.preheader

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load i64, ptr %15, align 8, !tbaa !8
  %17 = icmp ult i64 %16, 16
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = load i64, ptr %18, align 8
  %20 = icmp ult i64 %19, 4
  %or.cond = select i1 %17, i1 true, i1 %20
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = load i64, ptr %23, align 8
  %25 = icmp uge i64 %22, %24
  %narrow = select i1 %or.cond, i1 true, i1 %25
  %26 = zext i1 %narrow to i8
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 %26, ptr %27, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %22, i1 noundef zeroext false, i64 noundef %16)
          to label %28 unwind label %70

28:                                               ; preds = %13
  %29 = load i64, ptr %21, align 8, !tbaa !22
  %30 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %29, i1 noundef zeroext false, i64 noundef %30)
          to label %31 unwind label %70

31:                                               ; preds = %28
  %32 = load i64, ptr %23, align 8, !tbaa !23
  %33 = load i64, ptr %21, align 8, !tbaa !22
  %34 = load ptr, ptr %5, align 8, !tbaa !24
  %35 = load ptr, ptr %9, align 8, !tbaa !25
  tail call void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %14, i64 noundef %32, i64 noundef %33, i64 noundef 1, i64 noundef 1, ptr noundef %34, ptr noundef %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load i64, ptr %36, align 8, !tbaa !26
  %38 = load i8, ptr %27, align 8, !tbaa !16, !range !27, !noundef !28
  %39 = trunc nuw i8 %38 to i1
  %40 = load i64, ptr %18, align 8
  %41 = select i1 %39, i64 %40, i64 1
  %42 = mul i64 %41, %37
  %43 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %42, i1 noundef zeroext false, i64 noundef %43)
          to label %44 unwind label %72

44:                                               ; preds = %31
  %45 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %42, i1 noundef zeroext false, i64 noundef %45)
          to label %46 unwind label %72

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load i64, ptr %47, align 8, !tbaa !29
  %49 = load i64, ptr %36, align 8, !tbaa !26
  %50 = load i64, ptr %18, align 8, !tbaa !30
  %51 = load i8, ptr %27, align 8, !tbaa !16, !range !27, !noundef !28
  %52 = trunc nuw i8 %51 to i1
  %spec.select = select i1 %52, i64 %50, i64 1
  %53 = load ptr, ptr %3, align 8, !tbaa !31
  %54 = load ptr, ptr %7, align 8, !tbaa !32
  tail call void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %14, i64 noundef %48, i64 noundef %49, i64 noundef %50, i64 noundef %spec.select, ptr noundef %53, ptr noundef %54)
  %55 = load i8, ptr %27, align 8, !tbaa !16, !range !27, !noundef !28
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %74

57:                                               ; preds = %46
  %58 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr17, i64 noundef %42, i1 noundef zeroext false, i64 noundef %58)
          to label %59 unwind label %72

59:                                               ; preds = %57
  %60 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.ptr.1, i64 noundef %42, i1 noundef zeroext false, i64 noundef %60)
          to label %74 unwind label %72

61:                                               ; preds = %2
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %78

63:                                               ; preds = %4
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %77

65:                                               ; preds = %6
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %76

67:                                               ; preds = %8
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %75

.preheader.preheader:                             ; preds = %12
  %69 = landingpad { ptr, i32 }
          cleanup
  %.ptr21 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr21) #4
  br label %.loopexit

70:                                               ; preds = %28, %13
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

72:                                               ; preds = %59, %57, %44, %31
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

74:                                               ; preds = %59, %46
  ret void

.loopexit.loopexit:                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.ptr.1) #4
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr17) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.preheader, %.thread, %.loopexit.loopexit
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.loopexit ], [ %11, %.thread ], [ %69, %.preheader.preheader ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %75

75:                                               ; preds = %.loopexit, %67
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %68, %67 ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br label %76

76:                                               ; preds = %75, %65
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %75 ], [ %66, %65 ]
  tail call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  br label %77

77:                                               ; preds = %76, %63
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %76 ], [ %64, %63 ]
  tail call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br label %78

78:                                               ; preds = %77, %61
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %77 ], [ %62, %61 ]
  tail call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

attributes #0 = { 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 #1 = { alwaysinline 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 #2 = { alwaysinline 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 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 56}
!9 = !{!"_ZTSN4Simd7ResizerE", !10, i64 0, !11, i64 8}
!10 = !{!"_ZTSN4Simd9DeletableE"}
!11 = !{!"_ZTSN4Simd8ResParamE", !12, i64 0, !14, i64 4, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48}
!12 = !{!"_ZTS21SimdResizeChannelType", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTS20SimdResizeMethodType", !13, i64 0}
!15 = !{!"long", !13, i64 0}
!16 = !{!17, !18, i64 64}
!17 = !{!"_ZTSN4Simd4Base19ResizerBf16BilinearE", !9, i64 0, !18, i64 64, !19, i64 72, !19, i64 88, !21, i64 104, !21, i64 120, !13, i64 136}
!18 = !{!"bool", !13, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIiEE", !20, i64 0, !15, i64 8}
!20 = !{!"any pointer", !13, i64 0}
!21 = !{!"_ZTSN4Simd5ArrayIfEE", !20, i64 0, !15, i64 8}
!22 = !{!9, !15, i64 40}
!23 = !{!9, !15, i64 24}
!24 = !{!17, !20, i64 88}
!25 = !{!17, !20, i64 120}
!26 = !{!9, !15, i64 32}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!9, !15, i64 16}
!30 = !{!9, !15, i64 48}
!31 = !{!17, !20, i64 72}
!32 = !{!17, !20, i64 104}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass