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

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

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__const._Z27test_cpp_add_remove_checkedPPv.values = external hidden unnamed_addr constant [4 x i32], align 16
@.str.41 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [18 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z27test_cpp_add_remove_checkedPPv(ptr noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Roaring, align 8
  %4 = alloca [4 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #5
  call void @_ZN7RoaringC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const._Z27test_cpp_add_remove_checkedPPv.values, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %31, %1
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 4
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %38

13:                                               ; preds = %9
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef %17)
          to label %19 unwind label %34

19:                                               ; preds = %13
  %20 = zext i1 %18 to i64
  invoke void @_assert_true(i64 noundef %20, ptr noundef @.str.41, ptr noundef @.str.1, i32 noundef 456)
          to label %21 unwind label %34

21:                                               ; preds = %19
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef %25)
          to label %27 unwind label %34

27:                                               ; preds = %21
  %28 = xor i1 %26, true
  %29 = zext i1 %28 to i64
  invoke void @_assert_true(i64 noundef %29, ptr noundef @.str.41, ptr noundef @.str.1, i32 noundef 457)
          to label %30 unwind label %34

30:                                               ; preds = %27
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !9
  br label %9, !llvm.loop !11

34:                                               ; preds = %27, %21, %19, %13
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %77

38:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %61, %38
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp slt i32 %40, 4
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %68

43:                                               ; preds = %39
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef %47)
          to label %49 unwind label %64

49:                                               ; preds = %43
  %50 = zext i1 %48 to i64
  invoke void @_assert_true(i64 noundef %50, ptr noundef @.str.42, ptr noundef @.str.1, i32 noundef 460)
          to label %51 unwind label %64

51:                                               ; preds = %49
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef %55)
          to label %57 unwind label %64

57:                                               ; preds = %51
  %58 = xor i1 %56, true
  %59 = zext i1 %58 to i64
  invoke void @_assert_true(i64 noundef %59, ptr noundef @.str.42, ptr noundef @.str.1, i32 noundef 461)
          to label %60 unwind label %64

60:                                               ; preds = %57
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %8, align 4, !tbaa !9
  br label %39, !llvm.loop !13

64:                                               ; preds = %57, %51, %49, %43
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %77

68:                                               ; preds = %42
  %69 = invoke noundef zeroext i1 @_ZNK7Roaring7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %70 unwind label %73

70:                                               ; preds = %68
  %71 = zext i1 %69 to i64
  invoke void @_assert_true(i64 noundef %71, ptr noundef @.str.43, ptr noundef @.str.1, i32 noundef 463)
          to label %72 unwind label %73

72:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #5
  ret void

73:                                               ; preds = %70, %68
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  br label %77

77:                                               ; preds = %73, %64, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #5
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %6, align 8
  %80 = load i32, ptr %7, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@__const._Z27test_cpp_add_remove_checkedPPv.values = external hidden unnamed_addr constant [4 x i32], align 16
@.str.41 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [18 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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 uwtable
declare dso_local void @_ZN7RoaringC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z27test_cpp_add_remove_checkedPPv(ptr nocapture noundef readnone %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Roaring, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
  call void @_ZN7RoaringC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2)
  %3 = load i32, ptr @__const._Z27test_cpp_add_remove_checkedPPv.values, align 16, !tbaa !5
  %4 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3)
          to label %5 unwind label %43

5:                                                ; preds = %1
  %6 = zext i1 %4 to i64
  invoke void @_assert_true(i64 noundef %6, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 456)
          to label %7 unwind label %43

7:                                                ; preds = %5
  %8 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3)
          to label %9 unwind label %43

9:                                                ; preds = %7
  %10 = xor i1 %8, true
  %11 = zext i1 %10 to i64
  invoke void @_assert_true(i64 noundef %11, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 457)
          to label %12 unwind label %43

12:                                               ; preds = %9
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z27test_cpp_add_remove_checkedPPv.values, i64 4), align 4, !tbaa !5
  %14 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %13)
          to label %15 unwind label %43

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

17:                                               ; preds = %15
  %18 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %13)
          to label %19 unwind label %43

19:                                               ; preds = %17
  %20 = xor i1 %18, true
  %21 = zext i1 %20 to i64
  invoke void @_assert_true(i64 noundef %21, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 457)
          to label %22 unwind label %43

22:                                               ; preds = %19
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z27test_cpp_add_remove_checkedPPv.values, i64 8), align 8, !tbaa !5
  %24 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %23)
          to label %25 unwind label %43

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

27:                                               ; preds = %25
  %28 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %23)
          to label %29 unwind label %43

29:                                               ; preds = %27
  %30 = xor i1 %28, true
  %31 = zext i1 %30 to i64
  invoke void @_assert_true(i64 noundef %31, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 457)
          to label %32 unwind label %43

32:                                               ; preds = %29
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z27test_cpp_add_remove_checkedPPv.values, i64 12), align 4, !tbaa !5
  %34 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %33)
          to label %35 unwind label %43

35:                                               ; preds = %32
  %36 = zext i1 %34 to i64
  invoke void @_assert_true(i64 noundef %36, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 456)
          to label %37 unwind label %43

37:                                               ; preds = %35
  %38 = invoke noundef zeroext i1 @_ZN7Roaring10addCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %33)
          to label %39 unwind label %43

39:                                               ; preds = %37
  %40 = xor i1 %38, true
  %41 = zext i1 %40 to i64
  invoke void @_assert_true(i64 noundef %41, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.1, i32 noundef 457)
          to label %.preheader.preheader unwind label %43

.preheader.preheader:                             ; preds = %39
  %42 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3)
          to label %45 unwind label %78

43:                                               ; preds = %39, %37, %35, %32, %29, %27, %25, %22, %19, %17, %15, %12, %9, %7, %5, %1
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %85

45:                                               ; preds = %.preheader.preheader
  %46 = zext i1 %42 to i64
  invoke void @_assert_true(i64 noundef %46, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 460)
          to label %47 unwind label %78

47:                                               ; preds = %45
  %48 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %3)
          to label %49 unwind label %78

49:                                               ; preds = %47
  %50 = xor i1 %48, true
  %51 = zext i1 %50 to i64
  invoke void @_assert_true(i64 noundef %51, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 461)
          to label %.preheader.1 unwind label %78

.preheader.1:                                     ; preds = %49
  %52 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %13)
          to label %53 unwind label %78

53:                                               ; preds = %.preheader.1
  %54 = zext i1 %52 to i64
  invoke void @_assert_true(i64 noundef %54, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 460)
          to label %55 unwind label %78

55:                                               ; preds = %53
  %56 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %13)
          to label %57 unwind label %78

57:                                               ; preds = %55
  %58 = xor i1 %56, true
  %59 = zext i1 %58 to i64
  invoke void @_assert_true(i64 noundef %59, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 461)
          to label %.preheader.2 unwind label %78

.preheader.2:                                     ; preds = %57
  %60 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %23)
          to label %61 unwind label %78

61:                                               ; preds = %.preheader.2
  %62 = zext i1 %60 to i64
  invoke void @_assert_true(i64 noundef %62, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 460)
          to label %63 unwind label %78

63:                                               ; preds = %61
  %64 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %23)
          to label %65 unwind label %78

65:                                               ; preds = %63
  %66 = xor i1 %64, true
  %67 = zext i1 %66 to i64
  invoke void @_assert_true(i64 noundef %67, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 461)
          to label %.preheader.3 unwind label %78

.preheader.3:                                     ; preds = %65
  %68 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %33)
          to label %69 unwind label %78

69:                                               ; preds = %.preheader.3
  %70 = zext i1 %68 to i64
  invoke void @_assert_true(i64 noundef %70, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 460)
          to label %71 unwind label %78

71:                                               ; preds = %69
  %72 = invoke noundef zeroext i1 @_ZN7Roaring13removeCheckedEj(ptr noundef nonnull align 8 dereferenceable(40) %2, i32 noundef %33)
          to label %73 unwind label %78

73:                                               ; preds = %71
  %74 = xor i1 %72, true
  %75 = zext i1 %74 to i64
  invoke void @_assert_true(i64 noundef %75, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.1, i32 noundef 461)
          to label %76 unwind label %78

76:                                               ; preds = %73
  %77 = invoke noundef zeroext i1 @_ZNK7Roaring7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %80 unwind label %83

78:                                               ; preds = %73, %71, %69, %.preheader.3, %65, %63, %61, %.preheader.2, %57, %55, %53, %.preheader.1, %49, %47, %45, %.preheader.preheader
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %85

80:                                               ; preds = %76
  %81 = zext i1 %77 to i64
  invoke void @_assert_true(i64 noundef %81, ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.1, i32 noundef 463)
          to label %82 unwind label %83

82:                                               ; preds = %80
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
  ret void

83:                                               ; preds = %80, %76
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %85

85:                                               ; preds = %83, %78, %43
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %79, %78 ], [ %84, %83 ]
  call void @_ZN7RoaringD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass