; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseResizerBilinear.ll (ZN4Simd4Base20ResizerFloatBilinearC2ERKNS_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::ResizerFloatBilinear" = 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 }

@_ZTVN4Simd4Base20ResizerFloatBilinearE = 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 uwtable
define dso_local void @_ZN4Simd4Base20ResizerFloatBilinearC2ERKNS_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 @_ZTVN4Simd4Base20ResizerFloatBilinearE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", 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 %144

11:                                               ; preds = %2
  %12 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", 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 %148

13:                                               ; preds = %11
  %14 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", 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 %152

15:                                               ; preds = %13
  %16 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", 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 %156

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", 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 %160

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 %39, 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 5
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.Simd::ResParam", ptr %35, i32 0, i32 3
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = icmp uge i64 %34, %37
  br label %39

39:                                               ; preds = %31, %26
  %40 = phi i1 [ true, %26 ], [ %38, %31 ]
  %41 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 1
  %42 = zext i1 %40 to i8
  store i8 %42, ptr %41, align 8, !tbaa !20
  %43 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 5
  %44 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %45 = getelementptr inbounds %"struct.Simd::ResParam", ptr %44, i32 0, i32 5
  %46 = load i64, ptr %45, align 8, !tbaa !18
  %47 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %48 = getelementptr inbounds %"struct.Simd::ResParam", ptr %47, i32 0, i32 7
  %49 = load i64, ptr %48, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %43, i64 noundef %46, i1 noundef zeroext false, i64 noundef %49)
          to label %50 unwind label %170

50:                                               ; preds = %39
  %51 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 3
  %52 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %53 = getelementptr inbounds %"struct.Simd::ResParam", ptr %52, i32 0, i32 5
  %54 = load i64, ptr %53, align 8, !tbaa !18
  %55 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.Simd::ResParam", ptr %55, i32 0, i32 7
  %57 = load i64, ptr %56, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %51, i64 noundef %54, i1 noundef zeroext false, i64 noundef %57)
          to label %58 unwind label %170

58:                                               ; preds = %50
  %59 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %60 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.Simd::ResParam", ptr %60, i32 0, i32 3
  %62 = load i64, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %64 = getelementptr inbounds %"struct.Simd::ResParam", ptr %63, i32 0, i32 5
  %65 = load i64, ptr %64, align 8, !tbaa !18
  %66 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 3
  %67 = getelementptr inbounds %"struct.Simd::Array", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  %69 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 5
  %70 = getelementptr inbounds %"struct.Simd::Array.0", ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  invoke void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %59, i64 noundef %62, i64 noundef %65, i64 noundef 1, i64 noundef 1, ptr noundef %68, ptr noundef %71)
          to label %72 unwind label %170

72:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %73 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.Simd::ResParam", ptr %73, i32 0, i32 4
  %75 = load i64, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 1
  %77 = load i8, ptr %76, align 8, !tbaa !20, !range !28, !noundef !29
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %83

79:                                               ; preds = %72
  %80 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %81 = getelementptr inbounds %"struct.Simd::ResParam", ptr %80, i32 0, i32 6
  %82 = load i64, ptr %81, align 8, !tbaa !30
  br label %84

83:                                               ; preds = %72
  br label %84

84:                                               ; preds = %83, %79
  %85 = phi i64 [ %82, %79 ], [ 1, %83 ]
  %86 = mul i64 %75, %85
  store i64 %86, ptr %7, align 8, !tbaa !31
  %87 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 4
  %88 = load i64, ptr %7, align 8, !tbaa !31
  %89 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %90 = getelementptr inbounds %"struct.Simd::ResParam", ptr %89, i32 0, i32 7
  %91 = load i64, ptr %90, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %87, i64 noundef %88, i1 noundef zeroext false, i64 noundef %91)
          to label %92 unwind label %174

92:                                               ; preds = %84
  %93 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 2
  %94 = load i64, ptr %7, align 8, !tbaa !31
  %95 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %96 = getelementptr inbounds %"struct.Simd::ResParam", ptr %95, i32 0, i32 7
  %97 = load i64, ptr %96, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %93, i64 noundef %94, i1 noundef zeroext false, i64 noundef %97)
          to label %98 unwind label %174

98:                                               ; preds = %92
  %99 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %100 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.Simd::ResParam", ptr %100, i32 0, i32 2
  %102 = load i64, ptr %101, align 8, !tbaa !32
  %103 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %104 = getelementptr inbounds %"struct.Simd::ResParam", ptr %103, i32 0, i32 4
  %105 = load i64, ptr %104, align 8, !tbaa !27
  %106 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %107 = getelementptr inbounds %"struct.Simd::ResParam", ptr %106, i32 0, i32 6
  %108 = load i64, ptr %107, align 8, !tbaa !30
  %109 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 1
  %110 = load i8, ptr %109, align 8, !tbaa !20, !range !28, !noundef !29
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %116

112:                                              ; preds = %98
  %113 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %114 = getelementptr inbounds %"struct.Simd::ResParam", ptr %113, i32 0, i32 6
  %115 = load i64, ptr %114, align 8, !tbaa !30
  br label %117

116:                                              ; preds = %98
  br label %117

117:                                              ; preds = %116, %112
  %118 = phi i64 [ %115, %112 ], [ 1, %116 ]
  %119 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 2
  %120 = getelementptr inbounds %"struct.Simd::Array", ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !33
  %122 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 4
  %123 = getelementptr inbounds %"struct.Simd::Array.0", ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !34
  invoke void @_ZN4Simd4BaseL18EstimateIndexAlphaERKNS_8ResParamEmmmmPiPf(ptr noundef nonnull align 8 dereferenceable(56) %99, i64 noundef %102, i64 noundef %105, i64 noundef %108, i64 noundef %118, ptr noundef %121, ptr noundef %124)
          to label %125 unwind label %174

125:                                              ; preds = %117
  %126 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 1
  %127 = load i8, ptr %126, align 8, !tbaa !20, !range !28, !noundef !29
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %178

129:                                              ; preds = %125
  %130 = getelementptr inbounds %"class.Simd::Base::ResizerFloatBilinear", ptr %8, i32 0, i32 6
  %131 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %130, i64 0, i64 0
  %132 = load i64, ptr %7, align 8, !tbaa !31
  %133 = getelementptr inbounds %"class.Simd::Resizer", ptr %8, i32 0, i32 1
  %134 = getelementptr inbounds %"struct.Simd::ResParam", ptr %133, i32 0, i32 7
  %135 = load i64, ptr %134, align 8, !tbaa !11
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %131, i64 noundef %132, i1 noundef zeroext false, i64 noundef %135)
          to label %136 unwind label %174

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

143:                                              ; preds = %136
  br label %178

144:                                              ; preds = %2
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %5, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %6, align 4
  br label %191

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

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

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

160:                                              ; preds = %21
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %5, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %6, align 4
  %164 = icmp eq ptr %19, %22
  br i1 %164, label %169, label %165

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

169:                                              ; preds = %165, %160
  br label %187

170:                                              ; preds = %58, %50, %39
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %5, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %6, align 4
  br label %179

174:                                              ; preds = %136, %129, %117, %92, %84
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %5, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %179

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

179:                                              ; preds = %174, %170
  %180 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %18, i32 0, i32 0
  %181 = getelementptr inbounds %"struct.Simd::Array.0", ptr %180, i64 2
  br label %182

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

186:                                              ; preds = %182
  br label %187

187:                                              ; preds = %186, %169
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %188

188:                                              ; preds = %187, %156
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %189

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

190:                                              ; preds = %189, %148
  call void @_ZN4Simd5ArrayIiED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %191

191:                                              ; preds = %190, %144
  call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #5
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %5, align 8
  %194 = load i32, ptr %6, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

; 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 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 40}
!19 = !{!12, !17, i64 24}
!20 = !{!21, !22, i64 64}
!21 = !{!"_ZTSN4Simd4Base20ResizerFloatBilinearE", !12, i64 0, !22, i64 64, !23, i64 72, !23, i64 88, !24, i64 104, !24, i64 120, !7, i64 136}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayIiEE", !6, i64 0, !17, i64 8}
!24 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !17, i64 8}
!25 = !{!21, !6, i64 88}
!26 = !{!21, !6, i64 120}
!27 = !{!12, !17, i64 32}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!12, !17, i64 48}
!31 = !{!17, !17, i64 0}
!32 = !{!12, !17, i64 16}
!33 = !{!21, !6, i64 72}
!34 = !{!21, !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"

@_ZTVN4Simd4Base20ResizerFloatBilinearE = 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 uwtable
define dso_local void @_ZN4Simd4Base20ResizerFloatBilinearC2ERKNS_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 @_ZTVN4Simd4Base20ResizerFloatBilinearE, 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 %59

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 %61

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 %63

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 %65

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 40
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i64, ptr %20, align 8
  %22 = icmp uge i64 %19, %21
  %narrow = select i1 %17, i1 true, i1 %22
  %23 = zext i1 %narrow to i8
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 %23, ptr %24, align 8, !tbaa !16
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %19, i1 noundef zeroext false, i64 noundef %16)
          to label %25 unwind label %68

25:                                               ; preds = %13
  %26 = load i64, ptr %18, align 8, !tbaa !22
  %27 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIiE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %26, i1 noundef zeroext false, i64 noundef %27)
          to label %28 unwind label %68

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

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

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

55:                                               ; preds = %44
  %56 = load i64, ptr %15, align 8, !tbaa !8
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %.ptr17, i64 noundef %40, i1 noundef zeroext false, i64 noundef %56)
          to label %57 unwind label %70

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

59:                                               ; preds = %2
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %76

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

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

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

.preheader.preheader:                             ; preds = %12
  %67 = 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

68:                                               ; preds = %25, %13
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

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

72:                                               ; preds = %57, %44
  ret void

.loopexit.loopexit:                               ; preds = %70, %68
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  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 ], [ %67, %.preheader.preheader ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %73

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

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

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

76:                                               ; preds = %75, %59
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %75 ], [ %60, %59 ]
  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 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 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 = !{!"_ZTSN4Simd4Base20ResizerFloatBilinearE", !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