; LLVM IR from kimwalisch/primesieve :: src/EratBig.ll (ZN10primesieve7EratBig8crossOffERNS_6VectorIhSaIhEEE)

; 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.primesieve::EratBig" = type { %"class.primesieve::Wheel", i64, i64, i64, ptr, %"class.primesieve::Vector" }
%"class.primesieve::Wheel" = type { ptr, i64 }
%"class.primesieve::Vector" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN10primesieve7EratBig8crossOffERNS_6VectorIhSaIhEEE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  br label %9

9:                                                ; preds = %41, %2
  %10 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #5
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %42

14:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %15 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #5
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = call noundef ptr @_ZN10primesieve6Bucket3getEPNS_12SievingPrimeE(ptr noundef %17)
  store ptr %18, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #5
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN10primesieve6Bucket6setEndEPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(8192) %19, ptr noundef %22)
  %23 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #5
  store ptr null, ptr %24, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %28, %14
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %41

28:                                               ; preds = %25
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call noundef ptr @_ZN10primesieve6VectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef ptr @_ZN10primesieve6Bucket5beginEv(ptr noundef nonnull align 8 dereferenceable(8192) %31)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef ptr @_ZN10primesieve6Bucket3endEv(ptr noundef nonnull align 8 dereferenceable(8192) %33)
  call void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef %30, ptr noundef %32, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %35, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN10primesieve6Bucket4nextEv(ptr noundef nonnull align 8 dereferenceable(8192) %36)
  store ptr %37, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN10primesieve10MemoryPool10freeBucketEPNS_6BucketE(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef %40)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %25, !llvm.loop !14

41:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %9, !llvm.loop !16

42:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %43 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0) #5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %45, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %47 = call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %48 = getelementptr inbounds ptr, ptr %47, i64 1
  %49 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %50 = call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %51 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %52 = call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #5
  %53 = call noundef ptr @_ZSt4copyIPPN10primesieve12SievingPrimeES3_ET0_T_S5_S4_(ptr noundef %48, ptr noundef %50, ptr noundef %52)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.primesieve::EratBig", ptr %8, i32 0, i32 5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  store ptr %54, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10primesieve6Bucket3getEPNS_12SievingPrimeE(ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10primesieve6Bucket6setEndEPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(8192), ptr noundef) #1 align 2

; Function Attrs: mustprogress noinline uwtable
declare dso_local void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef, ptr noundef) #2 align 2

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

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

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

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

declare void @_ZN10primesieve10MemoryPool10freeBucketEPNS_6BucketE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPPN10primesieve12SievingPrimeES3_ET0_T_S5_S4_(ptr noundef, ptr noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 = { mustprogress noinline 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 = { "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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 40}
!10 = !{!"_ZTSN10primesieve7EratBigE", !11, i64 0, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !13, i64 48}
!11 = !{!"_ZTSN10primesieve5WheelILi210ELi48ELi10EXadsoKNS_9WheelInitEL_ZNS_12wheel210InitEEEEEE", !12, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEE", !6, i64 0, !6, i64 8, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN10primesieve7EratBig8crossOffERNS_6VectorIhSaIhEEE(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not12 = icmp eq ptr %5, null
  br i1 %.not12, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  br label %9

.loopexit:                                        ; preds = %16
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %._crit_edge, label %9, !llvm.loop !9

9:                                                ; preds = %.lr.ph, %.loopexit
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = tail call noundef ptr @_ZN10primesieve6Bucket3getEPNS_12SievingPrimeE(ptr noundef %11)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  tail call void @_ZN10primesieve6Bucket6setEndEPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(8192) %12, ptr noundef %14)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  store ptr null, ptr %15, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %9, %16
  %.011 = phi ptr [ %12, %9 ], [ %20, %16 ]
  %17 = tail call noundef ptr @_ZN10primesieve6VectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %18 = tail call noundef ptr @_ZN10primesieve6Bucket5beginEv(ptr noundef nonnull align 8 dereferenceable(8192) %.011)
  %19 = tail call noundef ptr @_ZN10primesieve6Bucket3endEv(ptr noundef nonnull align 8 dereferenceable(8192) %.011)
  tail call void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef %17, ptr noundef %18, ptr noundef %19)
  %20 = tail call noundef ptr @_ZN10primesieve6Bucket4nextEv(ptr noundef nonnull align 8 dereferenceable(8192) %.011)
  %21 = load ptr, ptr %6, align 8, !tbaa !11
  tail call void @_ZN10primesieve10MemoryPool10freeBucketEPNS_6BucketE(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull %.011)
  %.not10 = icmp eq ptr %20, null
  br i1 %.not10, label %.loopexit, label %16, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit, %2
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #4
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = tail call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = tail call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %27 = tail call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %28 = tail call noundef ptr @_ZSt4copyIPPN10primesieve12SievingPrimeES3_ET0_T_S5_S4_(ptr noundef nonnull %25, ptr noundef %26, ptr noundef %27)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  store ptr %23, ptr %29, align 8, !tbaa !5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10primesieve6Bucket3getEPNS_12SievingPrimeE(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10primesieve6Bucket6setEndEPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(8192), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress noinline uwtable
declare dso_local void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

declare void @_ZN10primesieve10MemoryPool10freeBucketEPNS_6BucketE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPPN10primesieve12SievingPrimeES3_ET0_T_S5_S4_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress noinline 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 = { "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 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 40}
!12 = !{!"_ZTSN10primesieve7EratBigE", !13, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !15, i64 48}
!13 = !{!"_ZTSN10primesieve5WheelILi210ELi48ELi10EXadsoKNS_9WheelInitEL_ZNS_12wheel210InitEEEEEE", !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = distinct !{!16, !10}


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