; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/common (polyphase_resampler)

; 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.al::span" = type { ptr, i64 }
%"class.al::span.2" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.al::ptr_wrapper.3" = type { ptr }
%"class.al::ptr_wrapper" = type { ptr }
%struct.PPhaseResampler = type { i32, i32, i32, i32, %"class.std::vector" }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPhaseResampler7processEN2al4spanIKdLm18446744073709551615EEENS1_IdLm18446744073709551615EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr %1, i64 %2, ptr %3, i64 %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.al::span", align 8
  %7 = alloca %"class.al::span.2", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.al::span.2", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.al::span.2", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.al::span", align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"class.al::ptr_wrapper.3", align 8
  %29 = alloca %"class.al::ptr_wrapper.3", align 8
  %30 = alloca %"class.al::ptr_wrapper", align 8
  %31 = alloca %"class.al::ptr_wrapper", align 8
  %32 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  store ptr %1, ptr %32, align 8
  %33 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  store i64 %2, ptr %33, align 8
  %34 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  store ptr %3, ptr %34, align 8
  %35 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  store i64 %4, ptr %35, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8
  %37 = call noundef zeroext i1 @_ZNK2al4spanIdLm18446744073709551615EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %38 = call i1 @llvm.expect.i1(i1 %37, i1 false)
  br i1 %38, label %39, label %40

39:                                               ; preds = %5
  br label %215

40:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !9
  %41 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  %42 = call noundef ptr @_ZNK2al4spanIKdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  %43 = icmp eq ptr %41, %42
  %44 = call i1 @llvm.expect.i1(i1 %43, i1 false)
  br i1 %44, label %45, label %57

45:                                               ; preds = %40
  %46 = call noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %46)
          to label %47 unwind label %49

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  invoke void @_ZN2al4spanIdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_dEEbE4typeELb1EEEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %48 unwind label %53

48:                                               ; preds = %47
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %57

49:                                               ; preds = %45
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %11, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %12, align 4
  br label %217

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %217

57:                                               ; preds = %48, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %58 = getelementptr inbounds %struct.PPhaseResampler, ptr %36, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !12
  store i32 %59, ptr %14, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %60 = getelementptr inbounds %struct.PPhaseResampler, ptr %36, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !20
  store i32 %61, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %62 = getelementptr inbounds %struct.PPhaseResampler, ptr %36, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !21
  store i32 %63, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %64 = getelementptr inbounds %struct.PPhaseResampler, ptr %36, i32 0, i32 3
  %65 = load i32, ptr %64, align 4, !tbaa !22
  store i32 %65, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %66 = getelementptr inbounds %struct.PPhaseResampler, ptr %36, i32 0, i32 4
  invoke void @_ZN2al4spanIKdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S1_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %67 unwind label %74

67:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !19
  br label %68

68:                                               ; preds = %186, %67
  %69 = load i32, ptr %19, align 4, !tbaa !19
  %70 = zext i32 %69 to i64
  %71 = call noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %78, label %73

73:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %194

74:                                               ; preds = %198, %57
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  br label %216

78:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %79 = load i32, ptr %17, align 4, !tbaa !19
  %80 = load i32, ptr %15, align 4, !tbaa !19
  %81 = load i32, ptr %19, align 4, !tbaa !19
  %82 = mul i32 %80, %81
  %83 = add i32 %79, %82
  %84 = load i32, ptr %14, align 4, !tbaa !19
  %85 = urem i32 %83, %84
  %86 = zext i32 %85 to i64
  store i64 %86, ptr %20, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %87 = load i32, ptr %17, align 4, !tbaa !19
  %88 = load i32, ptr %15, align 4, !tbaa !19
  %89 = load i32, ptr %19, align 4, !tbaa !19
  %90 = mul i32 %88, %89
  %91 = add i32 %87, %90
  %92 = load i32, ptr %14, align 4, !tbaa !19
  %93 = udiv i32 %91, %92
  %94 = zext i32 %93 to i64
  store i64 %94, ptr %21, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store double 0.000000e+00, ptr %22, align 8, !tbaa !23
  %95 = load i64, ptr %20, align 8, !tbaa !10
  %96 = load i32, ptr %16, align 4, !tbaa !19
  %97 = zext i32 %96 to i64
  %98 = icmp ult i64 %95, %97
  %99 = call i1 @llvm.expect.i1(i1 %98, i1 true)
  br i1 %99, label %100, label %180

100:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %101 = load i32, ptr %16, align 4, !tbaa !19
  %102 = zext i32 %101 to i64
  %103 = load i64, ptr %20, align 8, !tbaa !10
  %104 = sub i64 %102, %103
  %105 = load i32, ptr %14, align 4, !tbaa !19
  %106 = zext i32 %105 to i64
  %107 = add i64 %104, %106
  %108 = sub i64 %107, 1
  %109 = load i32, ptr %14, align 4, !tbaa !19
  %110 = zext i32 %109 to i64
  %111 = udiv i64 %108, %110
  store i64 %111, ptr %23, align 8, !tbaa !10
  %112 = load i64, ptr %21, align 8, !tbaa !10
  %113 = add i64 %112, 1
  %114 = call noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  %115 = icmp ugt i64 %113, %114
  %116 = call i1 @llvm.expect.i1(i1 %115, i1 true)
  br i1 %116, label %117, label %141

117:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %118 = load i64, ptr %21, align 8, !tbaa !10
  %119 = add i64 %118, 1
  %120 = call noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  %121 = sub i64 %119, %120
  store i64 %121, ptr %25, align 8, !tbaa !10
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %123 unwind label %137

123:                                              ; preds = %117
  %124 = load i64, ptr %122, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  store i64 %124, ptr %24, align 8, !tbaa !10
  %125 = load i32, ptr %14, align 4, !tbaa !19
  %126 = zext i32 %125 to i64
  %127 = load i64, ptr %24, align 8, !tbaa !10
  %128 = mul i64 %126, %127
  %129 = load i64, ptr %20, align 8, !tbaa !10
  %130 = add i64 %129, %128
  store i64 %130, ptr %20, align 8, !tbaa !10
  %131 = load i64, ptr %24, align 8, !tbaa !10
  %132 = load i64, ptr %21, align 8, !tbaa !10
  %133 = sub i64 %132, %131
  store i64 %133, ptr %21, align 8, !tbaa !10
  %134 = load i64, ptr %24, align 8, !tbaa !10
  %135 = load i64, ptr %23, align 8, !tbaa !10
  %136 = sub i64 %135, %134
  store i64 %136, ptr %23, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %141

137:                                              ; preds = %117
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %11, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %179

141:                                              ; preds = %123, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %142 = load i64, ptr %21, align 8, !tbaa !10
  %143 = add i64 %142, 1
  store i64 %143, ptr %27, align 8, !tbaa !10
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %145 unwind label %169

145:                                              ; preds = %141
  %146 = load i64, ptr %144, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  store i64 %146, ptr %26, align 8, !tbaa !10
  br label %147

147:                                              ; preds = %157, %145
  %148 = load i64, ptr %26, align 8, !tbaa !10
  %149 = icmp ne i64 %148, 0
  br i1 %149, label %150, label %177

150:                                              ; preds = %147
  %151 = load i64, ptr %20, align 8, !tbaa !10
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %151)
          to label %153 unwind label %173

153:                                              ; preds = %150
  %154 = load double, ptr %152, align 8, !tbaa !23
  %155 = load i64, ptr %21, align 8, !tbaa !10
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %155)
          to label %157 unwind label %173

157:                                              ; preds = %153
  %158 = load double, ptr %156, align 8, !tbaa !23
  %159 = load double, ptr %22, align 8, !tbaa !23
  %160 = call double @llvm.fmuladd.f64(double %154, double %158, double %159)
  store double %160, ptr %22, align 8, !tbaa !23
  %161 = load i32, ptr %14, align 4, !tbaa !19
  %162 = zext i32 %161 to i64
  %163 = load i64, ptr %20, align 8, !tbaa !10
  %164 = add i64 %163, %162
  store i64 %164, ptr %20, align 8, !tbaa !10
  %165 = load i64, ptr %21, align 8, !tbaa !10
  %166 = add i64 %165, -1
  store i64 %166, ptr %21, align 8, !tbaa !10
  %167 = load i64, ptr %26, align 8, !tbaa !10
  %168 = add i64 %167, -1
  store i64 %168, ptr %26, align 8, !tbaa !10
  br label %147, !llvm.loop !25

169:                                              ; preds = %141
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %11, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %178

173:                                              ; preds = %153, %150
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %11, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %12, align 4
  br label %178

177:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %180

178:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %179

179:                                              ; preds = %178, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %193

180:                                              ; preds = %177, %78
  %181 = load double, ptr %22, align 8, !tbaa !23
  %182 = load i32, ptr %19, align 4, !tbaa !19
  %183 = zext i32 %182 to i64
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %183)
          to label %185 unwind label %189

185:                                              ; preds = %180
  store double %181, ptr %184, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %19, align 4, !tbaa !19
  %188 = add i32 %187, 1
  store i32 %188, ptr %19, align 4, !tbaa !19
  br label %68, !llvm.loop !27

189:                                              ; preds = %180
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %11, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %12, align 4
  br label %193

193:                                              ; preds = %189, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %216

194:                                              ; preds = %73
  %195 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  %196 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %197 = icmp ne ptr %195, %196
  br i1 %197, label %198, label %214

198:                                              ; preds = %194
  %199 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  %200 = getelementptr inbounds %"class.al::ptr_wrapper.3", ptr %28, i32 0, i32 0
  store ptr %199, ptr %200, align 8
  %201 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE4cendEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  %202 = getelementptr inbounds %"class.al::ptr_wrapper.3", ptr %29, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  %203 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %204 = getelementptr inbounds %"class.al::ptr_wrapper", ptr %30, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  %205 = getelementptr inbounds %"class.al::ptr_wrapper.3", ptr %28, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8
  %207 = getelementptr inbounds %"class.al::ptr_wrapper.3", ptr %29, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8
  %209 = getelementptr inbounds %"class.al::ptr_wrapper", ptr %30, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8
  %211 = invoke ptr @_ZSt4copyIN2al11ptr_wrapperIPKdEENS1_IPdEEET0_T_S8_S7_(ptr %206, ptr %208, ptr %210)
          to label %212 unwind label %74

212:                                              ; preds = %198
  %213 = getelementptr inbounds %"class.al::ptr_wrapper", ptr %31, i32 0, i32 0
  store ptr %211, ptr %213, align 8
  br label %214

214:                                              ; preds = %212, %194
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %215

215:                                              ; preds = %214, %39
  ret void

216:                                              ; preds = %193, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %217

217:                                              ; preds = %216, %53, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %11, align 8
  %220 = load i32, ptr %12, align 4
  %221 = insertvalue { ptr, i32 } poison, ptr %219, 0
  %222 = insertvalue { ptr, i32 } %221, i32 %220, 1
  resume { ptr, i32 } %222
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2al4spanIdLm18446744073709551615EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.expect.i1(i1, i1) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2al4spanIdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_dEEbE4typeELb1EEEOS8_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2al4spanIKdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S1_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{i64 0, i64 8, !5, i64 8, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS15PPhaseResampler", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!14, !14, i64 0}
!20 = !{!13, !14, i64 4}
!21 = !{!13, !14, i64 8}
!22 = !{!13, !14, i64 12}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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

%"class.al::span" = type { ptr, i64 }
%"class.al::span.2" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15PPhaseResampler7processEN2al4spanIKdLm18446744073709551615EEENS1_IdLm18446744073709551615EEE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr %1, i64 %2, ptr %3, i64 %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.al::span", align 8
  %7 = alloca %"class.al::span.2", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.al::span.2", align 8
  %10 = alloca %"class.al::span.2", align 8
  %11 = alloca %"class.al::span", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %1, ptr %6, align 8
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %2, ptr %15, align 8
  store ptr %3, ptr %7, align 8
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %4, ptr %16, align 8
  %17 = call noundef zeroext i1 @_ZNK2al4spanIdLm18446744073709551615EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br i1 %17, label %96, label %18, !prof !5

18:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !6
  %19 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %20 = call noundef ptr @_ZNK2al4spanIKdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %21 = icmp eq ptr %19, %20
  br i1 %21, label %22, label %30, !prof !5

22:                                               ; preds = %18
  %23 = call noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %23)
          to label %24 unwind label %26

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  invoke void @_ZN2al4spanIdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_dEEbE4typeELb1EEEOS8_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %30

26:                                               ; preds = %22
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %97

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %97

30:                                               ; preds = %25, %18
  %31 = load i32, ptr %0, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %0, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %36 = getelementptr inbounds i8, ptr %0, i64 12
  %37 = load i32, ptr %36, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN2al4spanIKdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S1_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %.preheader unwind label %46

.preheader:                                       ; preds = %30
  %39 = call noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %.not64 = icmp eq i64 %39, 0
  br i1 %.not64, label %._crit_edge63, label %.lr.ph62

.lr.ph62:                                         ; preds = %.preheader
  %40 = zext i32 %35 to i64
  %41 = zext i32 %31 to i64
  %42 = add nsw i64 %41, -1
  %43 = add nsw i64 %42, %40
  br label %48

._crit_edge63:                                    ; preds = %84, %.preheader
  %44 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %45 = call noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %.not = icmp eq ptr %44, %45
  br i1 %.not, label %95, label %90

46:                                               ; preds = %90, %30
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %97

48:                                               ; preds = %.lr.ph62, %84
  %49 = phi i64 [ 0, %.lr.ph62 ], [ %87, %84 ]
  %.04161 = phi i32 [ 0, %.lr.ph62 ], [ %86, %84 ]
  %50 = mul i32 %.04161, %33
  %51 = add i32 %50, %37
  %52 = urem i32 %51, %31
  %53 = zext i32 %52 to i64
  %54 = udiv i32 %51, %31
  %55 = zext i32 %54 to i64
  %56 = icmp ult i32 %52, %35
  br i1 %56, label %57, label %84, !prof !23

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %58 = sub nsw i64 %43, %53
  %59 = udiv i64 %58, %41
  store i64 %59, ptr %12, align 8, !tbaa !11
  %60 = call noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %.not53 = icmp ugt i64 %60, %55
  br i1 %.not53, label %72, label %61, !prof !5

61:                                               ; preds = %57
  %62 = add nuw nsw i64 %55, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %63 = call noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %64 = sub i64 %62, %63
  store i64 %64, ptr %13, align 8, !tbaa !11
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %66 = load i64, ptr %65, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %67 = mul i64 %66, %41
  %68 = add i64 %67, %53
  %69 = sub i64 %55, %66
  %70 = load i64, ptr %12, align 8, !tbaa !11
  %71 = sub i64 %70, %66
  store i64 %71, ptr %12, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %61, %57
  %.044 = phi i64 [ %69, %61 ], [ %55, %57 ]
  %.042 = phi i64 [ %68, %61 ], [ %53, %57 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %73 = add i64 %.044, 1
  store i64 %73, ptr %14, align 8, !tbaa !11
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %75 = load i64, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %.not5456 = icmp eq i64 %75, 0
  br i1 %.not5456, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %72, %.lr.ph
  %.160 = phi i64 [ %81, %.lr.ph ], [ %.042, %72 ]
  %.04359 = phi i64 [ %83, %.lr.ph ], [ %75, %72 ]
  %.14558 = phi i64 [ %82, %.lr.ph ], [ %.044, %72 ]
  %.04657 = phi double [ %80, %.lr.ph ], [ 0.000000e+00, %72 ]
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %.160)
  %77 = load double, ptr %76, align 8, !tbaa !24
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %.14558)
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = call double @llvm.fmuladd.f64(double %77, double %79, double %.04657)
  %81 = add i64 %.160, %41
  %82 = add i64 %.14558, -1
  %83 = add i64 %.04359, -1
  %.not54 = icmp eq i64 %83, 0
  br i1 %.not54, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %72
  %.046.lcssa = phi double [ 0.000000e+00, %72 ], [ %80, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %84

84:                                               ; preds = %._crit_edge, %48
  %.147 = phi double [ %.046.lcssa, %._crit_edge ], [ 0.000000e+00, %48 ]
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %49)
  store double %.147, ptr %85, align 8, !tbaa !24
  %86 = add i32 %.04161, 1
  %87 = zext i32 %86 to i64
  %88 = call noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %89 = icmp ugt i64 %88, %87
  br i1 %89, label %48, label %._crit_edge63, !llvm.loop !28

90:                                               ; preds = %._crit_edge63
  %91 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %92 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE4cendEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %93 = call ptr @_ZNK2al4spanIdLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %94 = invoke ptr @_ZSt4copyIN2al11ptr_wrapperIPKdEENS1_IPdEEET0_T_S8_S7_(ptr %91, ptr %92, ptr %93)
          to label %95 unwind label %46

95:                                               ; preds = %90, %._crit_edge63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %96

96:                                               ; preds = %5, %95
  ret void

97:                                               ; preds = %46, %28, %26
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK2al4spanIdLm18446744073709551615EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanIdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2al4spanIKdLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2al4spanIdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_dEEbE4typeELb1EEEOS8_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2al4spanIKdLm18446744073709551615EEC2IRSt6vectorIdSaIdEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S1_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIKdLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIKdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK2al4spanIdLm18446744073709551615EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2al4spanIdLm18446744073709551615EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2al4spanIdLm18446744073709551615EE4cendEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK2al4spanIdLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{i64 0, i64 8, !7, i64 8, i64 8, !11}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS15PPhaseResampler", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !16, i64 16}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!20 = !{!14, !15, i64 4}
!21 = !{!14, !15, i64 8}
!22 = !{!14, !15, i64 12}
!23 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !9, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass