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

; 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::Array" = type { [384 x %"struct.(anonymous namespace)::WheelElement"] }
%"struct.(anonymous namespace)::WheelElement" = type { i8, i8, i8, i32 }
%"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 }
%"class.primesieve::SievingPrime" = type { i32, i32 }

@_ZN12_GLOBAL__N_18wheel210E = external hidden constant %"class.primesieve::Array", align 4

; 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 zeroext i1 @_ZN10primesieve6Bucket6isFullEPNS_12SievingPrimeE(ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %18 = getelementptr inbounds %"class.primesieve::EratBig", ptr %17, i32 0, i32 5
  %19 = call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  store ptr %19, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %20 = getelementptr inbounds %"class.primesieve::EratBig", ptr %17, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %22 = getelementptr inbounds %"class.primesieve::EratBig", ptr %17, i32 0, i32 3
  %23 = load i64, ptr %22, align 8, !tbaa !14
  store i64 %23, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %24 = getelementptr inbounds %"class.primesieve::EratBig", ptr %17, i32 0, i32 2
  %25 = load i64, ptr %24, align 8, !tbaa !16
  store i64 %25, ptr %12, align 8, !tbaa !15
  br label %26

26:                                               ; preds = %95, %4
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = icmp ne ptr %27, %28
  br i1 %29, label %30, label %98

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noundef i64 @_ZNK10primesieve12SievingPrime16getMultipleIndexEv(ptr noundef nonnull align 4 dereferenceable(8) %31)
  store i64 %32, ptr %13, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call noundef i64 @_ZNK10primesieve12SievingPrime13getWheelIndexEv(ptr noundef nonnull align 4 dereferenceable(8) %33)
  store i64 %34, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i64 @_ZNK10primesieve12SievingPrime15getSievingPrimeEv(ptr noundef nonnull align 4 dereferenceable(8) %35)
  store i64 %36, ptr %15, align 8, !tbaa !15
  %37 = load i64, ptr %14, align 8, !tbaa !15
  %38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %37) #4
  %39 = getelementptr inbounds %"struct.(anonymous namespace)::WheelElement", ptr %38, i32 0, i32 0
  %40 = load i8, ptr %39, align 4, !tbaa !17
  %41 = zext i8 %40 to i32
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %13, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %42, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !20
  %46 = zext i8 %45 to i32
  %47 = and i32 %46, %41
  %48 = trunc i32 %47 to i8
  store i8 %48, ptr %44, align 1, !tbaa !20
  %49 = load i64, ptr %14, align 8, !tbaa !15
  %50 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %49) #4
  %51 = getelementptr inbounds %"struct.(anonymous namespace)::WheelElement", ptr %50, i32 0, i32 1
  %52 = load i8, ptr %51, align 1, !tbaa !21
  %53 = zext i8 %52 to i64
  %54 = load i64, ptr %15, align 8, !tbaa !15
  %55 = mul i64 %53, %54
  %56 = load i64, ptr %13, align 8, !tbaa !15
  %57 = add i64 %56, %55
  store i64 %57, ptr %13, align 8, !tbaa !15
  %58 = load i64, ptr %14, align 8, !tbaa !15
  %59 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %58) #4
  %60 = getelementptr inbounds %"struct.(anonymous namespace)::WheelElement", ptr %59, i32 0, i32 2
  %61 = load i8, ptr %60, align 2, !tbaa !22
  %62 = zext i8 %61 to i64
  %63 = load i64, ptr %13, align 8, !tbaa !15
  %64 = add i64 %63, %62
  store i64 %64, ptr %13, align 8, !tbaa !15
  %65 = load i64, ptr %14, align 8, !tbaa !15
  %66 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %65) #4
  %67 = getelementptr inbounds %"struct.(anonymous namespace)::WheelElement", ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !23
  %69 = zext i32 %68 to i64
  store i64 %69, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %70 = load i64, ptr %13, align 8, !tbaa !15
  %71 = load i64, ptr %12, align 8, !tbaa !15
  %72 = lshr i64 %70, %71
  store i64 %72, ptr %16, align 8, !tbaa !15
  %73 = load i64, ptr %11, align 8, !tbaa !15
  %74 = load i64, ptr %13, align 8, !tbaa !15
  %75 = and i64 %74, %73
  store i64 %75, ptr %13, align 8, !tbaa !15
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i64, ptr %16, align 8, !tbaa !15
  %78 = getelementptr inbounds ptr, ptr %76, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN10primesieve6Bucket6isFullEPNS_12SievingPrimeE(ptr noundef %79)
  br i1 %80, label %81, label %86

81:                                               ; preds = %30
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i64, ptr %16, align 8, !tbaa !15
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  call void @_ZN10primesieve10MemoryPool9addBucketERPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(40) %82, ptr noundef nonnull align 8 dereferenceable(8) %85)
  br label %86

86:                                               ; preds = %81, %30
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %16, align 8, !tbaa !15
  %89 = getelementptr inbounds ptr, ptr %87, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.primesieve::SievingPrime", ptr %90, i32 1
  store ptr %91, ptr %89, align 8, !tbaa !5
  %92 = load i64, ptr %15, align 8, !tbaa !15
  %93 = load i64, ptr %13, align 8, !tbaa !15
  %94 = load i64, ptr %14, align 8, !tbaa !15
  call void @_ZN10primesieve12SievingPrime3setEmmm(ptr noundef nonnull align 4 dereferenceable(8) %90, i64 noundef %92, i64 noundef %93, i64 noundef %94)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %95

95:                                               ; preds = %86
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.primesieve::SievingPrime", ptr %96, i32 1
  store ptr %97, ptr %7, align 8, !tbaa !5
  br label %26, !llvm.loop !24

98:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072), i64 noundef) #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 = { "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 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 #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 = !{!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 = !{!10, !12, i64 32}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !12, i64 24}
!17 = !{!18, !7, i64 0}
!18 = !{!"_ZTSN12_GLOBAL__N_112WheelElementE", !7, i64 0, !7, i64 1, !7, i64 2, !19, i64 4}
!19 = !{!"int", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!18, !7, i64 1}
!22 = !{!18, !7, i64 2}
!23 = !{!18, !19, i64 4}
!24 = distinct !{!24, !25}
!25 = !{!"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"

%"class.primesieve::Array" = type { [384 x %"struct.(anonymous namespace)::WheelElement"] }
%"struct.(anonymous namespace)::WheelElement" = type { i8, i8, i8, i32 }

@_ZN12_GLOBAL__N_18wheel210E = external hidden constant %"class.primesieve::Array", align 4

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

declare void @_ZN10primesieve10MemoryPool9addBucketERPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN10primesieve7EratBig8crossOffEPhPNS_12SievingPrimeES3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr nocapture noundef %1, ptr noundef %2, ptr noundef readnone %3) local_unnamed_addr #2 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = tail call noundef ptr @_ZN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i64, ptr %11, align 8, !tbaa !14
  %.not29 = icmp eq ptr %2, %3
  br i1 %.not29, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4, %42
  %.030 = phi ptr [ %45, %42 ], [ %2, %4 ]
  %13 = tail call noundef i64 @_ZNK10primesieve12SievingPrime16getMultipleIndexEv(ptr noundef nonnull align 4 dereferenceable(8) %.030)
  %14 = tail call noundef i64 @_ZNK10primesieve12SievingPrime13getWheelIndexEv(ptr noundef nonnull align 4 dereferenceable(8) %.030)
  %15 = tail call noundef i64 @_ZNK10primesieve12SievingPrime15getSievingPrimeEv(ptr noundef nonnull align 4 dereferenceable(8) %.030)
  %16 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %14) #3
  %17 = load i8, ptr %16, align 4, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %1, i64 %13
  %19 = load i8, ptr %18, align 1, !tbaa !18
  %20 = and i8 %19, %17
  store i8 %20, ptr %18, align 1, !tbaa !18
  %21 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %14) #3
  %22 = getelementptr inbounds i8, ptr %21, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !19
  %24 = zext i8 %23 to i64
  %25 = mul i64 %15, %24
  %26 = add i64 %25, %13
  %27 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %14) #3
  %28 = getelementptr inbounds i8, ptr %27, i64 2
  %29 = load i8, ptr %28, align 2, !tbaa !20
  %30 = zext i8 %29 to i64
  %31 = add i64 %26, %30
  %32 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072) @_ZN12_GLOBAL__N_18wheel210E, i64 noundef %14) #3
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !21
  %35 = zext i32 %34 to i64
  %36 = lshr i64 %31, %12
  %37 = and i64 %31, %10
  %38 = getelementptr inbounds ptr, ptr %6, i64 %36
  %39 = load ptr, ptr %38, align 8, !tbaa !22
  %40 = tail call noundef zeroext i1 @_ZN10primesieve6Bucket6isFullEPNS_12SievingPrimeE(ptr noundef %39)
  br i1 %40, label %41, label %42

41:                                               ; preds = %.lr.ph
  tail call void @_ZN10primesieve10MemoryPool9addBucketERPNS_12SievingPrimeE(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(8) %38)
  br label %42

42:                                               ; preds = %41, %.lr.ph
  %43 = load ptr, ptr %38, align 8, !tbaa !22
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  store ptr %44, ptr %38, align 8, !tbaa !22
  tail call void @_ZN10primesieve12SievingPrime3setEmmm(ptr noundef nonnull align 4 dereferenceable(8) %43, i64 noundef %15, i64 noundef %37, i64 noundef %35)
  %45 = getelementptr inbounds i8, ptr %.030, i64 8
  %.not = icmp eq ptr %45, %3
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %42, %4
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(8) ptr @_ZNK10primesieve5ArrayIN12_GLOBAL__N_112WheelElementELm384EEixEm(ptr noundef nonnull align 4 dereferenceable(3072), i64 noundef) 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 = { "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 = { 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, !11, i64 40}
!6 = !{!"_ZTSN10primesieve7EratBigE", !7, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !12, i64 48}
!7 = !{!"_ZTSN10primesieve5WheelILi210ELi48ELi10EXadsoKNS_9WheelInitEL_ZNS_12wheel210InitEEEEEE", !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSN10primesieve6VectorIPNS_12SievingPrimeESaIS2_EEE", !11, i64 0, !11, i64 8, !11, i64 16}
!13 = !{!6, !8, i64 32}
!14 = !{!6, !8, i64 24}
!15 = !{!16, !9, i64 0}
!16 = !{!"_ZTSN12_GLOBAL__N_112WheelElementE", !9, i64 0, !9, i64 1, !9, i64 2, !17, i64 4}
!17 = !{!"int", !9, i64 0}
!18 = !{!9, !9, i64 0}
!19 = !{!16, !9, i64 1}
!20 = !{!16, !9, i64 2}
!21 = !{!16, !17, i64 4}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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