; LLVM IR from sp-nitech/SPTK :: src/window/kaiser_window.ll (ZN4sptk12KaiserWindowC2Eidb)

; 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.sptk::KaiserWindow" = type { %"class.sptk::WindowInterface", i32, double, i8, i8, %"class.std::vector" }
%"class.sptk::WindowInterface" = type { ptr }
%"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 }

@_ZTVN4sptk12KaiserWindowE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk12KaiserWindowC2Eidb(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, double noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !11
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %8, align 1, !tbaa !13
  %17 = load ptr, ptr %5, align 8
  call void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk12KaiserWindowE, i32 0, i32 0, i32 2), ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %19 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %19, ptr %18, align 8, !tbaa !17
  %20 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 2
  %21 = load double, ptr %7, align 8, !tbaa !11
  store double %21, ptr %20, align 8, !tbaa !24
  %22 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 3
  %23 = load i8, ptr %8, align 1, !tbaa !13, !range !25, !noundef !26
  %24 = trunc i8 %23 to i1
  %25 = zext i1 %24 to i8
  store i8 %25, ptr %22, align 8, !tbaa !27
  %26 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 4
  store i8 1, ptr %26, align 1, !tbaa !28
  %27 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 5
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %28 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = icmp sle i32 %29, 0
  br i1 %30, label %35, label %31

31:                                               ; preds = %4
  %32 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 2
  %33 = load double, ptr %32, align 8, !tbaa !24
  %34 = fcmp olt double %33, 0.000000e+00
  br i1 %34, label %35, label %37

35:                                               ; preds = %31, %4
  %36 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 4
  store i8 0, ptr %36, align 1, !tbaa !28
  br label %115

37:                                               ; preds = %31
  %38 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 5
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40)
          to label %41 unwind label %48

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %44 = icmp eq i32 1, %43
  br i1 %44, label %45, label %52

45:                                               ; preds = %41
  %46 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 0) #6
  store double 1.000000e+00, ptr %47, align 8, !tbaa !11
  br label %115

48:                                               ; preds = %37
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %117

52:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %53 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 3
  %54 = load i8, ptr %53, align 8, !tbaa !27, !range !25, !noundef !26
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !17
  br label %63

59:                                               ; preds = %52
  %60 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !17
  %62 = sub nsw i32 %61, 1
  br label %63

63:                                               ; preds = %59, %56
  %64 = phi i32 [ %58, %56 ], [ %62, %59 ]
  %65 = sitofp i32 %64 to double
  %66 = fmul double 5.000000e-01, %65
  store double %66, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %67 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 2
  %68 = load double, ptr %67, align 8, !tbaa !24
  %69 = invoke noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef %68, i32 noundef 500, double noundef 0x3EB0C6F7A0B5ED8D)
          to label %70 unwind label %80

70:                                               ; preds = %63
  %71 = fdiv double 1.000000e+00, %69
  store double %71, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %72 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 5
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef 0) #6
  store ptr %73, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %107, %70
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !17
  %78 = icmp slt i32 %75, %77
  br i1 %78, label %84, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %114

80:                                               ; preds = %63
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %116

84:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = sitofp i32 %85 to double
  %87 = load double, ptr %11, align 8, !tbaa !11
  %88 = fsub double %86, %87
  %89 = load double, ptr %11, align 8, !tbaa !11
  %90 = fdiv double %88, %89
  store double %90, ptr %15, align 8, !tbaa !11
  %91 = load double, ptr %12, align 8, !tbaa !11
  %92 = getelementptr inbounds %"class.sptk::KaiserWindow", ptr %17, i32 0, i32 2
  %93 = load double, ptr %92, align 8, !tbaa !24
  %94 = load double, ptr %15, align 8, !tbaa !11
  %95 = load double, ptr %15, align 8, !tbaa !11
  %96 = fneg double %94
  %97 = call double @llvm.fmuladd.f64(double %96, double %95, double 1.000000e+00)
  %98 = call double @sqrt(double noundef %97) #6
  %99 = fmul double %93, %98
  %100 = invoke noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef %99, i32 noundef 500, double noundef 0x3EB0C6F7A0B5ED8D)
          to label %101 unwind label %110

101:                                              ; preds = %84
  %102 = fmul double %91, %100
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  store double %102, ptr %106, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %107

107:                                              ; preds = %101
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %14, align 4, !tbaa !9
  br label %74, !llvm.loop !29

110:                                              ; preds = %84
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %116

114:                                              ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %115

115:                                              ; preds = %114, %45, %35
  ret void

116:                                              ; preds = %110, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %117

117:                                              ; preds = %116, %48
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  call void @_ZN4sptk15WindowInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %9, align 8
  %120 = load i32, ptr %10, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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) #2 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: mustprogress nounwind uwtable
declare hidden noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef, i32 noundef, double noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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(argmem: readwrite) }
attributes #4 = { nounwind "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4sptk12KaiserWindowE", !19, i64 0, !10, i64 8, !12, i64 16, !14, i64 24, !14, i64 25, !20, i64 32}
!19 = !{!"_ZTSN4sptk15WindowInterfaceE"}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!18, !12, i64 16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!18, !14, i64 24}
!28 = !{!18, !14, i64 25}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

@_ZTVN4sptk12KaiserWindowE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk12KaiserWindowC2Eidb(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, double noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = zext i1 %3 to i8
  tail call void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk12KaiserWindowE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  store double %2, ptr %7, align 8, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 %5, ptr %8, align 8, !tbaa !21
  %9 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 1, ptr %9, align 1, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %11 = load i32, ptr %6, align 8, !tbaa !8
  %12 = icmp slt i32 %11, 1
  %13 = load double, ptr %7, align 8
  %14 = fcmp olt double %13, 0.000000e+00
  %or.cond = select i1 %12, i1 true, i1 %14
  br i1 %or.cond, label %15, label %16

15:                                               ; preds = %4
  store i8 0, ptr %9, align 1, !tbaa !22
  br label %.loopexit

16:                                               ; preds = %4
  %17 = sext i32 %1 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %17)
          to label %18 unwind label %23

18:                                               ; preds = %16
  %19 = load i32, ptr %6, align 8, !tbaa !8
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #5
  store double 1.000000e+00, ptr %22, align 8, !tbaa !23
  br label %.loopexit

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  tail call void @_ZN4sptk15WindowInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %24

25:                                               ; preds = %18
  %26 = load i8, ptr %8, align 8, !tbaa !21, !range !24, !noundef !25
  %27 = xor i8 %26, 1
  %28 = zext nneg i8 %27 to i32
  %29 = sub i32 %19, %28
  %30 = sitofp i32 %29 to double
  %31 = fmul double %30, 5.000000e-01
  %32 = load double, ptr %7, align 8, !tbaa !20
  %33 = tail call noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef %32, i32 noundef 500, double noundef 0x3EB0C6F7A0B5ED8D)
  %34 = fdiv double 1.000000e+00, %33
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #5
  %36 = load i32, ptr %6, align 8, !tbaa !8
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %25, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %25 ]
  %38 = trunc nuw nsw i64 %indvars.iv to i32
  %39 = uitofp nneg i32 %38 to double
  %40 = fsub double %39, %31
  %41 = fdiv double %40, %31
  %42 = load double, ptr %7, align 8, !tbaa !20
  %43 = fneg double %41
  %44 = tail call double @llvm.fmuladd.f64(double %43, double %41, double 1.000000e+00)
  %45 = tail call double @sqrt(double noundef %44) #5
  %46 = fmul double %42, %45
  %47 = tail call noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef %46, i32 noundef 500, double noundef 0x3EB0C6F7A0B5ED8D)
  %48 = fmul double %34, %47
  %49 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  store double %48, ptr %49, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr %6, align 8, !tbaa !8
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %indvars.iv.next, %51
  br i1 %52, label %.lr.ph, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph, %25, %21, %15
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZN12_GLOBAL__N_12I0Edid(double noundef, i32 noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { 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 #1 = { 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 #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 nofree nounwind willreturn memory(write) "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 = { 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, !11, i64 8}
!9 = !{!"_ZTSN4sptk12KaiserWindowE", !10, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !14, i64 25, !15, i64 32}
!10 = !{!"_ZTSN4sptk15WindowInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"double", !12, i64 0}
!14 = !{!"bool", !12, 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", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !12, i64 0}
!20 = !{!9, !13, i64 16}
!21 = !{!9, !14, i64 24}
!22 = !{!9, !14, i64 25}
!23 = !{!13, !13, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass