; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseResizerBilinear.ll (ZN4Simd4Base20ResizerShortBilinearC2ERKNS_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::ResizerShortBilinear" = type { %"class.Simd::Resizer", %"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 }

@_ZTVN4Simd4Base20ResizerShortBilinearE = 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: mustprogress uwtable
define dso_local void @_ZN4Simd4Base20ResizerShortBilinearC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %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 @_ZTVN4Simd4Base20ResizerShortBilinearE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 1
  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 %109

11:                                               ; preds = %2
  %12 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 2
  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 %113

13:                                               ; preds = %11
  %14 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 3
  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 %117

15:                                               ; preds = %13
  %16 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 4
  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 %121

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 5
  %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 %125

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::Base::ResizerShortBilinear", ptr %8, i32 0, i32 4
  %28 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %29 = getelementptr inbounds %"struct.Simd::ResParam", ptr %28, i32 0, i32 5
  %30 = load i64, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.Simd::ResParam", ptr %31, i32 0, i32 7
  %33 = load i64, ptr %32, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %30, i1 noundef zeroext false, i64 noundef %33)
          to label %34 unwind label %135

34:                                               ; preds = %26
  %35 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 2
  %36 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %37 = getelementptr inbounds %"struct.Simd::ResParam", ptr %36, i32 0, i32 5
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.Simd::ResParam", ptr %39, i32 0, i32 7
  %41 = load i64, ptr %40, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %35, i64 noundef %38, i1 noundef zeroext false, i64 noundef %41)
          to label %42 unwind label %135

42:                                               ; preds = %34
  %43 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %44 = getelementptr inbounds %"struct.Simd::ResParam", ptr %43, i32 0, i32 3
  %45 = load i64, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.Simd::ResParam", ptr %46, i32 0, i32 5
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 2
  %50 = getelementptr inbounds %"struct.Simd::Array", ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 4
  %53 = getelementptr inbounds %"struct.Simd::Array.0", ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  invoke void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160) %8, i64 noundef %45, i64 noundef %48, i64 noundef 1, ptr noundef %51, ptr noundef %54)
          to label %55 unwind label %135

55:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %56 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.Simd::ResParam", ptr %56, i32 0, i32 4
  %58 = load i64, ptr %57, align 8, !tbaa !25
  %59 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.Simd::ResParam", ptr %59, i32 0, i32 6
  %61 = load i64, ptr %60, align 8, !tbaa !26
  %62 = mul i64 %58, %61
  %63 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %64 = getelementptr inbounds %"struct.Simd::ResParam", ptr %63, i32 0, i32 7
  %65 = load i64, ptr %64, align 8, !tbaa !18
  %66 = add i64 %62, %65
  store i64 %66, ptr %7, align 8, !tbaa !27
  %67 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 3
  %68 = load i64, ptr %7, align 8, !tbaa !27
  %69 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %70 = getelementptr inbounds %"struct.Simd::ResParam", ptr %69, i32 0, i32 7
  %71 = load i64, ptr %70, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %67, i64 noundef %68, i1 noundef zeroext false, i64 noundef %71)
          to label %72 unwind label %139

72:                                               ; preds = %55
  %73 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 1
  %74 = load i64, ptr %7, align 8, !tbaa !27
  %75 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %76 = getelementptr inbounds %"struct.Simd::ResParam", ptr %75, i32 0, i32 7
  %77 = load i64, ptr %76, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %73, i64 noundef %74, i1 noundef zeroext false, i64 noundef %77)
          to label %78 unwind label %139

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %80 = getelementptr inbounds %"struct.Simd::ResParam", ptr %79, i32 0, i32 2
  %81 = load i64, ptr %80, align 8, !tbaa !28
  %82 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %83 = getelementptr inbounds %"struct.Simd::ResParam", ptr %82, i32 0, i32 4
  %84 = load i64, ptr %83, align 8, !tbaa !25
  %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 !26
  %88 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 1
  %89 = getelementptr inbounds %"struct.Simd::Array", ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 3
  %92 = getelementptr inbounds %"struct.Simd::Array.0", ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !30
  invoke void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160) %8, i64 noundef %81, i64 noundef %84, i64 noundef %87, ptr noundef %90, ptr noundef %93)
          to label %94 unwind label %139

94:                                               ; preds = %78
  %95 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 5
  %96 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %95, i64 0, i64 0
  %97 = load i64, ptr %7, align 8, !tbaa !27
  %98 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %99 = getelementptr inbounds %"struct.Simd::ResParam", ptr %98, i32 0, i32 7
  %100 = load i64, ptr %99, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %96, i64 noundef %97, i1 noundef zeroext false, i64 noundef %100)
          to label %101 unwind label %139

101:                                              ; preds = %94
  %102 = getelementptr inbounds %"class.Simd::Base::ResizerShortBilinear", ptr %8, i32 0, i32 5
  %103 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %102, i64 0, i64 1
  %104 = load i64, ptr %7, align 8, !tbaa !27
  %105 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %106 = getelementptr inbounds %"struct.Simd::ResParam", ptr %105, i32 0, i32 7
  %107 = load i64, ptr %106, align 8, !tbaa !18
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %103, i64 noundef %104, i1 noundef zeroext false, i64 noundef %107)
          to label %108 unwind label %139

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

109:                                              ; preds = %2
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %5, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %6, align 4
  br label %155

113:                                              ; preds = %11
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  br label %154

117:                                              ; preds = %13
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  br label %153

121:                                              ; preds = %15
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %5, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %6, align 4
  br label %152

125:                                              ; preds = %21
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %5, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %6, align 4
  %129 = icmp eq ptr %19, %22
  br i1 %129, label %134, label %130

130:                                              ; preds = %130, %125
  %131 = phi ptr [ %22, %125 ], [ %132, %130 ]
  %132 = getelementptr inbounds %"struct.Simd::Array.0", ptr %131, i64 -1
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %132) #5
  %133 = icmp eq ptr %132, %19
  br i1 %133, label %134, label %130

134:                                              ; preds = %130, %125
  br label %151

135:                                              ; preds = %42, %34, %26
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %5, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %6, align 4
  br label %143

139:                                              ; preds = %101, %94, %78, %72, %55
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %5, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %143

143:                                              ; preds = %139, %135
  %144 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %18, i32 0, i32 0
  %145 = getelementptr inbounds %"struct.Simd::Array.0", ptr %144, i64 2
  br label %146

146:                                              ; preds = %146, %143
  %147 = phi ptr [ %145, %143 ], [ %148, %146 ]
  %148 = getelementptr inbounds %"struct.Simd::Array.0", ptr %147, i64 -1
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %148) #5
  %149 = icmp eq ptr %148, %144
  br i1 %149, label %150, label %146

150:                                              ; preds = %146
  br label %151

151:                                              ; preds = %150, %134
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %152

152:                                              ; preds = %151, %121
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %153

153:                                              ; preds = %152, %117
  call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %154

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

155:                                              ; preds = %154, %109
  call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #5
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %5, align 8
  %158 = load i32, ptr %6, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

; 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 uwtable
declare dso_local void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #4 align 2

; 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 40}
!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 56}
!19 = !{!12, !17, i64 24}
!20 = !{!21, !6, i64 80}
!21 = !{!"_ZTSN4Simd4Base20ResizerShortBilinearE", !12, i64 0, !22, i64 64, !22, i64 80, !23, i64 96, !23, i64 112, !7, i64 128}
!22 = !{!"_ZTSN4Simd5ArrayIiEE", !6, i64 0, !17, i64 8}
!23 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !17, i64 8}
!24 = !{!21, !6, i64 112}
!25 = !{!12, !17, i64 32}
!26 = !{!12, !17, i64 48}
!27 = !{!17, !17, i64 0}
!28 = !{!12, !17, i64 16}
!29 = !{!21, !6, i64 64}
!30 = !{!21, !6, i64 96}


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

@_ZTVN4Simd4Base20ResizerShortBilinearE = 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: mustprogress uwtable
define dso_local void @_ZN4Simd4Base20ResizerShortBilinearC2ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %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 @_ZTVN4Simd4Base20ResizerShortBilinearE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  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 %49

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  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 %51

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 96
  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 %53

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  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 %55

10:                                               ; preds = %8
  %.ptr17 = getelementptr inbounds i8, ptr %0, i64 128
  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 144
  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 40
  %15 = load i64, ptr %14, align 8, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load i64, ptr %16, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %15, i1 noundef zeroext false, i64 noundef %17)
          to label %18 unwind label %58

18:                                               ; preds = %13
  %19 = load i64, ptr %14, align 8, !tbaa !8
  %20 = load i64, ptr %16, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %19, i1 noundef zeroext false, i64 noundef %20)
          to label %21 unwind label %58

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  %23 = load i64, ptr %22, align 8, !tbaa !17
  %24 = load i64, ptr %14, align 8, !tbaa !8
  %25 = load ptr, ptr %5, align 8, !tbaa !18
  %26 = load ptr, ptr %9, align 8, !tbaa !23
  invoke void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160) %0, i64 noundef %23, i64 noundef %24, i64 noundef 1, ptr noundef %25, ptr noundef %26)
          to label %27 unwind label %58

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load i64, ptr %28, align 8, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = load i64, ptr %30, align 8, !tbaa !25
  %32 = mul i64 %31, %29
  %33 = load i64, ptr %16, align 8, !tbaa !16
  %34 = add i64 %32, %33
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %34, i1 noundef zeroext false, i64 noundef %33)
          to label %35 unwind label %60

35:                                               ; preds = %27
  %36 = load i64, ptr %16, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %34, i1 noundef zeroext false, i64 noundef %36)
          to label %37 unwind label %60

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = load i64, ptr %38, align 8, !tbaa !26
  %40 = load i64, ptr %28, align 8, !tbaa !24
  %41 = load i64, ptr %30, align 8, !tbaa !25
  %42 = load ptr, ptr %3, align 8, !tbaa !27
  %43 = load ptr, ptr %7, align 8, !tbaa !28
  invoke void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160) %0, i64 noundef %39, i64 noundef %40, i64 noundef %41, ptr noundef %42, ptr noundef %43)
          to label %44 unwind label %60

44:                                               ; preds = %37
  %45 = load i64, ptr %16, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr17, i64 noundef %34, i1 noundef zeroext false, i64 noundef %45)
          to label %46 unwind label %60

46:                                               ; preds = %44
  %47 = load i64, ptr %16, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr.ptr.1, i64 noundef %34, i1 noundef zeroext false, i64 noundef %47)
          to label %48 unwind label %60

48:                                               ; preds = %46
  ret void

49:                                               ; preds = %2
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %65

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

53:                                               ; preds = %6
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %63

55:                                               ; preds = %8
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %62

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

58:                                               ; preds = %21, %18, %13
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

60:                                               ; preds = %46, %44, %37, %35, %27
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  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 ], [ %57, %.preheader.preheader ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %62

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

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

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

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

; 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 uwtable
declare dso_local void @_ZN4Simd4Base20ResizerShortBilinear18EstimateIndexAlphaEmmmPiPf(ptr noundef nonnull align 8 dereferenceable(160), i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; 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 40}
!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 = !{!9, !15, i64 56}
!17 = !{!9, !15, i64 24}
!18 = !{!19, !21, i64 80}
!19 = !{!"_ZTSN4Simd4Base20ResizerShortBilinearE", !9, i64 0, !20, i64 64, !20, i64 80, !22, i64 96, !22, i64 112, !13, i64 128}
!20 = !{!"_ZTSN4Simd5ArrayIiEE", !21, i64 0, !15, i64 8}
!21 = !{!"any pointer", !13, i64 0}
!22 = !{!"_ZTSN4Simd5ArrayIfEE", !21, i64 0, !15, i64 8}
!23 = !{!19, !21, i64 112}
!24 = !{!9, !15, i64 32}
!25 = !{!9, !15, i64 48}
!26 = !{!9, !15, i64 16}
!27 = !{!19, !21, i64 64}
!28 = !{!19, !21, i64 96}


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