; LLVM IR from chriskiefer/libcccrt :: benchmarks/maximilian.ll (ZN10maxiSample8autoTrimEffbb)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.maxiLagExp = type { double, double, double }
%class.maxiLagExp.9 = type { float, float, float }
%"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.maxiSample = type { double, double, double, double, %class.maxiLagExp, i16, i32, i16, [6 x i8], %class.maxiTrigger, %"class.std::vector", %"class.std::__cxx11::basic_string", i32, i32, i32, i16, i32, i16, i8, double }
%class.maxiTrigger = type <{ double, i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10maxiSample8autoTrimEffbb(ptr noundef nonnull align 8 dereferenceable(176) %0, float noundef %1, float noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  %12 = alloca %class.maxiLagExp, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.maxiLagExp.9, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !9
  %23 = zext i1 %3 to i8
  store i8 %23, ptr %9, align 1, !tbaa !11
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %10, align 1, !tbaa !11
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !13
  %26 = load i8, ptr %9, align 1, !tbaa !11, !range !15, !noundef !16
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %51

28:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %29 = load float, ptr %7, align 4, !tbaa !9
  %30 = fpext float %29 to double
  call void @_ZN10maxiLagExpIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %30, double noundef 0.000000e+00)
  br label %31

31:                                               ; preds = %47, %28
  %32 = load i64, ptr %11, align 8, !tbaa !13
  %33 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %34 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %36, label %50

36:                                               ; preds = %31
  %37 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %38 = load i64, ptr %11, align 8, !tbaa !13
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %38) #7
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = call noundef double @_ZSt3absd(double noundef %40)
  call void @_ZN10maxiLagExpIdE9addSampleEd(ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %41)
  %42 = call noundef double @_ZNK10maxiLagExpIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %43 = load float, ptr %8, align 4, !tbaa !9
  %44 = fpext float %43 to double
  %45 = fcmp ogt double %42, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %36
  br label %50

47:                                               ; preds = %36
  %48 = load i64, ptr %11, align 8, !tbaa !13
  %49 = add i64 %48, 1
  store i64 %49, ptr %11, align 8, !tbaa !13
  br label %31, !llvm.loop !19

50:                                               ; preds = %46, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %51

51:                                               ; preds = %50, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %52 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %53 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = sub i64 %53, 1
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %13, align 4, !tbaa !21
  %56 = load i8, ptr %10, align 1, !tbaa !11, !range !15, !noundef !16
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %79

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  %59 = load float, ptr %7, align 4, !tbaa !9
  call void @_ZN10maxiLagExpIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %59, float noundef 0.000000e+00)
  br label %60

60:                                               ; preds = %75, %58
  %61 = load i32, ptr %13, align 4, !tbaa !21
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %78

63:                                               ; preds = %60
  %64 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %65 = load i32, ptr %13, align 4, !tbaa !21
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #7
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = call noundef double @_ZSt3absd(double noundef %68)
  %70 = fptrunc double %69 to float
  call void @_ZN10maxiLagExpIfE9addSampleEf(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %70)
  %71 = call noundef float @_ZNK10maxiLagExpIfE5valueEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  %72 = load float, ptr %8, align 4, !tbaa !9
  %73 = fcmp ogt float %71, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %63
  br label %78

75:                                               ; preds = %63
  %76 = load i32, ptr %13, align 4, !tbaa !21
  %77 = add nsw i32 %76, -1
  store i32 %77, ptr %13, align 4, !tbaa !21
  br label %60, !llvm.loop !23

78:                                               ; preds = %74, %60
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  br label %79

79:                                               ; preds = %78, %51
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %81 = load i64, ptr %11, align 8, !tbaa !13
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @.str.15)
  %84 = load i32, ptr %13, align 4, !tbaa !21
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef %84)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %87 = load i32, ptr %13, align 4, !tbaa !21
  %88 = sext i32 %87 to i64
  %89 = load i64, ptr %11, align 8, !tbaa !13
  %90 = sub i64 %88, %89
  store i64 %90, ptr %15, align 8, !tbaa !13
  %91 = load i64, ptr %15, align 8, !tbaa !13
  %92 = icmp ugt i64 %91, 0
  br i1 %92, label %93, label %183

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  %94 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %95 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %96 unwind label %103

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !21
  br label %97

97:                                               ; preds = %118, %96
  %98 = load i32, ptr %19, align 4, !tbaa !21
  %99 = sext i32 %98 to i64
  %100 = load i64, ptr %15, align 8, !tbaa !13
  %101 = icmp ult i64 %99, %100
  br i1 %101, label %107, label %102

102:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %121

103:                                              ; preds = %121, %93
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %17, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %18, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %184

107:                                              ; preds = %97
  %108 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %109 = load i32, ptr %19, align 4, !tbaa !21
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %11, align 8, !tbaa !13
  %112 = add i64 %110, %111
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %112) #7
  %114 = load double, ptr %113, align 8, !tbaa !17
  %115 = load i32, ptr %19, align 4, !tbaa !21
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %116) #7
  store double %114, ptr %117, align 8, !tbaa !17
  br label %118

118:                                              ; preds = %107
  %119 = load i32, ptr %19, align 4, !tbaa !21
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !21
  br label %97, !llvm.loop !24

121:                                              ; preds = %102
  %122 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %123 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %122)
          to label %124 unwind label %103

124:                                              ; preds = %121
  %125 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 0
  store double 0.000000e+00, ptr %125, align 8, !tbaa !25
  %126 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 1
  store double 0.000000e+00, ptr %126, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 100, ptr %20, align 8, !tbaa !13
  %127 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %128 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #7
  %129 = load i64, ptr %20, align 8, !tbaa !13
  %130 = icmp ugt i64 %128, %129
  br i1 %130, label %131, label %134

131:                                              ; preds = %124
  %132 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %133 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  store i64 %133, ptr %20, align 8, !tbaa !13
  br label %134

134:                                              ; preds = %131, %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !21
  br label %135

135:                                              ; preds = %179, %134
  %136 = load i32, ptr %21, align 4, !tbaa !21
  %137 = sext i32 %136 to i64
  %138 = load i64, ptr %20, align 8, !tbaa !13
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %182

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %142 = load i32, ptr %21, align 4, !tbaa !21
  %143 = sitofp i32 %142 to double
  %144 = load i64, ptr %20, align 8, !tbaa !13
  %145 = uitofp i64 %144 to double
  %146 = fdiv double %143, %145
  store double %146, ptr %22, align 8, !tbaa !17
  %147 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %148 = load i32, ptr %21, align 4, !tbaa !21
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #7
  %151 = load double, ptr %150, align 8, !tbaa !17
  %152 = load double, ptr %22, align 8, !tbaa !17
  %153 = fmul double %151, %152
  %154 = call double @llvm.round.f64(double %153)
  %155 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %156 = load i32, ptr %21, align 4, !tbaa !21
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #7
  store double %154, ptr %158, align 8, !tbaa !17
  %159 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %160 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %161 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #7
  %162 = sub i64 %161, 1
  %163 = load i32, ptr %21, align 4, !tbaa !21
  %164 = sext i32 %163 to i64
  %165 = sub i64 %162, %164
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %165) #7
  %167 = load double, ptr %166, align 8, !tbaa !17
  %168 = load double, ptr %22, align 8, !tbaa !17
  %169 = fmul double %167, %168
  %170 = call double @llvm.round.f64(double %169)
  %171 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %172 = getelementptr inbounds %class.maxiSample, ptr %25, i32 0, i32 10
  %173 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #7
  %174 = sub i64 %173, 1
  %175 = load i32, ptr %21, align 4, !tbaa !21
  %176 = sext i32 %175 to i64
  %177 = sub i64 %174, %176
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %177) #7
  store double %170, ptr %178, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %179

179:                                              ; preds = %141
  %180 = load i32, ptr %21, align 4, !tbaa !21
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %21, align 4, !tbaa !21
  br label %135, !llvm.loop !37

182:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %183

183:                                              ; preds = %182, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void

184:                                              ; preds = %103
  %185 = load ptr, ptr %17, align 8
  %186 = load i32, ptr %18, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10maxiLagExpIdE9addSampleEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10maxiLagExpIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10maxiLagExpIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10maxiLagExpIfE9addSampleEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK10maxiLagExpIfE5valueEv(ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = !{!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!26, !18, i64 0}
!26 = !{!"_ZTS10maxiSample", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !27, i64 32, !28, i64 56, !22, i64 60, !28, i64 64, !29, i64 72, !30, i64 88, !34, i64 112, !22, i64 144, !22, i64 148, !22, i64 152, !28, i64 156, !22, i64 160, !28, i64 164, !12, i64 166, !18, i64 168}
!27 = !{!"_ZTS10maxiLagExpIdE", !18, i64 0, !18, i64 8, !18, i64 16}
!28 = !{!"short", !7, i64 0}
!29 = !{!"_ZTS11maxiTrigger", !18, i64 0, !12, i64 8}
!30 = !{!"_ZTSSt6vectorIdSaIdEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !35, i64 0, !14, i64 8, !7, i64 16}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!36 = !{!26, !18, i64 8}
!37 = distinct !{!37, !20}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.maxiLagExp = type { double, double, double }
%class.maxiLagExp.9 = type { float, float, float }
%"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10maxiSample8autoTrimEffbb(ptr noundef nonnull align 8 dereferenceable(176) %0, float noundef %1, float noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.maxiLagExp, align 8
  %7 = alloca %class.maxiLagExp.9, align 4
  %8 = alloca %"class.std::vector", align 8
  br i1 %3, label %9, label %24

9:                                                ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  %10 = fpext float %1 to double
  call void @_ZN10maxiLagExpIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %10, double noundef 0.000000e+00)
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %.not62 = icmp eq i64 %12, 0
  br i1 %.not62, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %13 = fpext float %2 to double
  br label %14

14:                                               ; preds = %.lr.ph, %20
  %.045 = phi i64 [ 0, %.lr.ph ], [ %21, %20 ]
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.045) #8
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = call noundef double @_ZSt3absd(double noundef %16)
  call void @_ZN10maxiLagExpIdE9addSampleEd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %17)
  %18 = call noundef double @_ZNK10maxiLagExpIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %19 = fcmp ogt double %18, %13
  br i1 %19, label %._crit_edge, label %20

20:                                               ; preds = %14
  %21 = add nuw i64 %.045, 1
  %22 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %14, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %20, %14, %9
  %.0.lcssa = phi i64 [ 0, %9 ], [ %.045, %14 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %24

24:                                               ; preds = %._crit_edge, %5
  %.1 = phi i64 [ %.0.lcssa, %._crit_edge ], [ 0, %5 ]
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  %26 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %27 = trunc i64 %26 to i32
  %28 = add i32 %27, -1
  br i1 %4, label %29, label %41

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN10maxiLagExpIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %1, float noundef 0.000000e+00)
  %30 = icmp sgt i32 %28, 0
  br i1 %30, label %.lr.ph50.preheader, label %._crit_edge51

.lr.ph50.preheader:                               ; preds = %29
  %31 = zext nneg i32 %28 to i64
  br label %.lr.ph50

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %38
  %indvars.iv = phi i64 [ %31, %.lr.ph50.preheader ], [ %indvars.iv.next, %38 ]
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv) #8
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = call noundef double @_ZSt3absd(double noundef %33)
  %35 = fptrunc double %34 to float
  call void @_ZN10maxiLagExpIfE9addSampleEf(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %35)
  %36 = call noundef float @_ZNK10maxiLagExpIfE5valueEv(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %37 = fcmp ogt float %36, %2
  br i1 %37, label %._crit_edge51.loopexit.split.loop.exit, label %38

38:                                               ; preds = %.lr.ph50
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %39 = icmp sgt i64 %indvars.iv, 1
  br i1 %39, label %.lr.ph50, label %._crit_edge51, !llvm.loop !11

._crit_edge51.loopexit.split.loop.exit:           ; preds = %.lr.ph50
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge51

._crit_edge51:                                    ; preds = %38, %._crit_edge51.loopexit.split.loop.exit, %29
  %.040.lcssa = phi i32 [ %28, %29 ], [ %40, %._crit_edge51.loopexit.split.loop.exit ], [ 0, %38 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  br label %41

41:                                               ; preds = %._crit_edge51, %24
  %.141 = phi i32 [ %.040.lcssa, %._crit_edge51 ], [ %28, %24 ]
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %42, i64 noundef %.1)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.15)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %44, i32 noundef %.141)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %47 = sext i32 %.141 to i64
  %48 = sub i64 %47, %.1
  %.not = icmp eq i64 %.1, %47
  br i1 %.not, label %83, label %49

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %50 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %.lr.ph56 unwind label %52

._crit_edge57:                                    ; preds = %.lr.ph56
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %58 unwind label %52

52:                                               ; preds = %._crit_edge57, %49
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  resume { ptr, i32 } %53

.lr.ph56:                                         ; preds = %49, %.lr.ph56
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph56 ], [ 0, %49 ]
  %54 = add i64 %indvars.iv66, %.1
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %54) #8
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv66) #8
  store double %56, ptr %57, align 8, !tbaa !5
  %indvars.iv.next67 = add nuw i64 %indvars.iv66, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next67, %48
  br i1 %exitcond.not, label %._crit_edge57, label %.lr.ph56, !llvm.loop !12

58:                                               ; preds = %._crit_edge57
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
  %59 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %60 = icmp ugt i64 %59, 100
  br i1 %60, label %61, label %.lr.ph60

61:                                               ; preds = %58
  %62 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %.not64 = icmp eq i64 %62, 0
  br i1 %.not64, label %._crit_edge61, label %.lr.ph60

.lr.ph60:                                         ; preds = %58, %61
  %.03875 = phi i64 [ %62, %61 ], [ 100, %58 ]
  %63 = uitofp i64 %.03875 to double
  br label %64

._crit_edge61:                                    ; preds = %64, %61
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %83

64:                                               ; preds = %.lr.ph60, %64
  %indvars.iv69 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next70, %64 ]
  %65 = trunc nuw nsw i64 %indvars.iv69 to i32
  %66 = uitofp nneg i32 %65 to double
  %67 = fdiv double %66, %63
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv69) #8
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = fmul double %67, %69
  %71 = call double @llvm.round.f64(double %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %indvars.iv69) #8
  store double %71, ptr %72, align 8, !tbaa !5
  %73 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %74 = xor i64 %indvars.iv69, -1
  %75 = add i64 %73, %74
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %75) #8
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = fmul double %67, %77
  %79 = call double @llvm.round.f64(double %78)
  %80 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %81 = add i64 %80, %74
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %81) #8
  store double %79, ptr %82, align 8, !tbaa !5
  %indvars.iv.next70 = add nuw i64 %indvars.iv69, 1
  %exitcond72.not = icmp eq i64 %indvars.iv.next70, %.03875
  br i1 %exitcond72.not, label %._crit_edge61, label %64, !llvm.loop !13

83:                                               ; preds = %._crit_edge61, %41
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10maxiLagExpIdE9addSampleEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK10maxiLagExpIdE5valueEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10maxiLagExpIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10maxiLagExpIfE9addSampleEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK10maxiLagExpIfE5valueEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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