; LLVM IR from jermp/2i_bench :: external/CRoaring/tests/cpp_unit.ll (Z11serial_testPPv)

; 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.Roaring = type { %struct.roaring_bitmap_s }
%struct.roaring_bitmap_s = type { %struct.roaring_array_s }
%struct.roaring_array_s = type { i32, i32, ptr, ptr, ptr, i8 }

@__const._Z11serial_testPPv.values = external hidden unnamed_addr constant [5 x i32], align 16
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11serial_testPPv(ptr noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca [5 x i32], align 16
  %4 = alloca %class.Roaring, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %class.Roaring, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Roaring, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._Z11serial_testPPv.values, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #7
  %12 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
  call void @_ZN7RoaringC2EmPKj(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef 5, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %13 = invoke noundef i64 @_ZNK7Roaring14getSizeInBytesEb(ptr noundef nonnull align 8 dereferenceable(40) %4, i1 noundef zeroext true)
          to label %14 unwind label %51

14:                                               ; preds = %1
  %15 = trunc i64 %13 to i32
  store i32 %15, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %17) #8
          to label %19 unwind label %55

19:                                               ; preds = %14
  store ptr %18, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = invoke noundef i64 @_ZNK7Roaring5writeEPcb(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef %20, i1 noundef zeroext true)
          to label %22 unwind label %55

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind writable sret(%class.Roaring) align 8 %9, ptr noundef %23, i1 noundef zeroext true)
          to label %24 unwind label %59

24:                                               ; preds = %22
  %25 = invoke noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %26 unwind label %63

26:                                               ; preds = %24
  %27 = zext i1 %25 to i64
  invoke void @_assert_true(i64 noundef %27, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 41)
          to label %28 unwind label %63

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %30) #8
          to label %32 unwind label %67

32:                                               ; preds = %28
  store ptr %31, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %33, ptr align 1 %34, i64 %36, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #7
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind writable sret(%class.Roaring) align 8 %11, ptr noundef %37, i1 noundef zeroext true)
          to label %38 unwind label %71

38:                                               ; preds = %32
  %39 = invoke noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %40 unwind label %75

40:                                               ; preds = %38
  %41 = zext i1 %39 to i64
  invoke void @_assert_true(i64 noundef %41, ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 45)
          to label %42 unwind label %75

42:                                               ; preds = %40
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @_ZdaPv(ptr noundef %43) #9
  br label %46

46:                                               ; preds = %45, %42
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  call void @_ZdaPv(ptr noundef %47) #9
  br label %50

50:                                               ; preds = %49, %46
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #7
  ret void

51:                                               ; preds = %1
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  br label %84

55:                                               ; preds = %19, %14
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  br label %83

59:                                               ; preds = %22
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  br label %82

63:                                               ; preds = %26, %24
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  br label %81

67:                                               ; preds = %28
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  br label %80

71:                                               ; preds = %32
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  br label %79

75:                                               ; preds = %40, %38
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %6, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %7, align 4
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  br label %79

79:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  br label %80

80:                                               ; preds = %79, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %81

81:                                               ; preds = %80, %63
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %82

82:                                               ; preds = %81, %59
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  br label %83

83:                                               ; preds = %82, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %84

84:                                               ; preds = %83, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #7
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %6, align 8
  %87 = load i32, ptr %7, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RoaringC2EmPKj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7Roaring14getSizeInBytesEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7Roaring5writeEPcb(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind noalias writable sret(%class.Roaring) align 8, ptr noundef, i1 noundef zeroext) #0 align 2

declare void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { "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 = { nobuiltin 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 #6 = { 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 }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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}


; 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.Roaring = type { %struct.roaring_bitmap_s }
%struct.roaring_bitmap_s = type { %struct.roaring_array_s }
%struct.roaring_array_s = type { i32, i32, ptr, ptr, ptr, i8 }

@__const._Z11serial_testPPv.values = external hidden unnamed_addr constant [5 x i32], align 16
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11serial_testPPv(ptr nocapture noundef readnone %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca [5 x i32], align 16
  %3 = alloca %class.Roaring, align 8
  %4 = alloca %class.Roaring, align 8
  %5 = alloca %class.Roaring, align 8
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %2, ptr noundef nonnull align 16 dereferenceable(20) @__const._Z11serial_testPPv.values, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @_ZN7RoaringC2EmPKj(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 5, ptr noundef nonnull %2)
  %6 = invoke noundef i64 @_ZNK7Roaring14getSizeInBytesEb(ptr noundef nonnull align 8 dereferenceable(40) %3, i1 noundef zeroext true)
          to label %7 unwind label %25

7:                                                ; preds = %1
  %8 = and i64 %6, 4294967295
  %9 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %8) #8
          to label %10 unwind label %27

10:                                               ; preds = %7
  %11 = invoke noundef i64 @_ZNK7Roaring5writeEPcb(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %9, i1 noundef zeroext true)
          to label %12 unwind label %27

12:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  invoke void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind nonnull writable sret(%class.Roaring) align 8 %4, ptr noundef nonnull %9, i1 noundef zeroext true)
          to label %13 unwind label %29

13:                                               ; preds = %12
  %14 = invoke noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %15 unwind label %31

15:                                               ; preds = %13
  %16 = zext i1 %14 to i64
  invoke void @_assert_true(i64 noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 41)
          to label %17 unwind label %31

17:                                               ; preds = %15
  %18 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %8) #8
          to label %19 unwind label %33

19:                                               ; preds = %17
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %18, ptr nonnull align 1 %9, i64 %8, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  invoke void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind nonnull writable sret(%class.Roaring) align 8 %5, ptr noundef nonnull %18, i1 noundef zeroext true)
          to label %20 unwind label %35

20:                                               ; preds = %19
  %21 = invoke noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %22 unwind label %37

22:                                               ; preds = %20
  %23 = zext i1 %21 to i64
  invoke void @_assert_true(i64 noundef %23, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 45)
          to label %24 unwind label %37

24:                                               ; preds = %22
  call void @_ZdaPv(ptr noundef nonnull %9) #9
  call void @_ZdaPv(ptr noundef nonnull %18) #9
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #7
  ret void

25:                                               ; preds = %1
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %42

27:                                               ; preds = %10, %7
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %42

29:                                               ; preds = %12
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %41

31:                                               ; preds = %15, %13
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %40

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %40

35:                                               ; preds = %19
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %22, %20
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %40

40:                                               ; preds = %33, %39, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %.pn, %39 ], [ %34, %33 ]
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %41

41:                                               ; preds = %40, %29
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %40 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  br label %42

42:                                               ; preds = %27, %41, %25
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %.pn.pn.pn.pn, %41 ], [ %28, %27 ]
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RoaringC2EmPKj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7Roaring14getSizeInBytesEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7Roaring5writeEPcb(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Roaring4readEPKcb(ptr dead_on_unwind noalias writable sret(%class.Roaring) align 8, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0 align 2

declare void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7RoaringeqERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { "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 = { nobuiltin 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 #6 = { 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 }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass