; LLVM IR from jermp/2i_bench :: external/CRoaring/src/containers (mixed_andnot)

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

%struct.rle16_s = type { i16, i16 }
%struct.array_container_s = type { i32, i32, ptr }
%struct.run_container_s = type { i32, i32, ptr }
%struct.bitset_container_s = type { i32, 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

declare ptr @array_container_from_bitset(ptr noundef) #1

declare void @bitset_container_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @run_bitset_container_andnot(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.rle16_s, align 2
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.rle16_s, align 2
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call i32 @run_container_cardinality(ptr noundef %20)
  store i32 %21, ptr %8, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp sle i32 %22, 4096
  br i1 %23, label %24, label %85

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = call ptr @array_container_create_given_capacity(i32 noundef %25)
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.array_container_s, ptr %27, i32 0, i32 0
  store i32 0, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %79, %24
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.run_container_s, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %82

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.run_container_s, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.rle16_s, ptr %39, i64 %41
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %12, ptr align 2 %42, i64 4, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %43 = getelementptr inbounds %struct.rle16_s, ptr %12, i32 0, i32 0
  %44 = load i16, ptr %43, align 2, !tbaa !19
  %45 = zext i16 %44 to i32
  store i32 %45, ptr %13, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %75, %36
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = getelementptr inbounds %struct.rle16_s, ptr %12, i32 0, i32 0
  %49 = load i16, ptr %48, align 2, !tbaa !19
  %50 = zext i16 %49 to i32
  %51 = getelementptr inbounds %struct.rle16_s, ptr %12, i32 0, i32 1
  %52 = load i16, ptr %51, align 2, !tbaa !21
  %53 = zext i16 %52 to i32
  %54 = add nsw i32 %50, %53
  %55 = icmp sle i32 %47, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %46
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %78

57:                                               ; preds = %46
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = trunc i32 %59 to i16
  %61 = call zeroext i1 @bitset_container_get(ptr noundef %58, i16 noundef zeroext %60)
  br i1 %61, label %74, label %62

62:                                               ; preds = %57
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = trunc i32 %63 to i16
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.array_container_s, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !22
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.array_container_s, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 8, !tbaa !11
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds i16, ptr %67, i64 %72
  store i16 %64, ptr %73, align 2, !tbaa !17
  br label %74

74:                                               ; preds = %62, %57
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %13, align 4, !tbaa !9
  br label %46, !llvm.loop !23

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

79:                                               ; preds = %78
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !9
  br label %29, !llvm.loop !25

82:                                               ; preds = %35
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %83, ptr %84, align 8, !tbaa !5
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %147

85:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call ptr @bitset_container_clone(ptr noundef %86)
  store ptr %87, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %122, %85
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.run_container_s, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = icmp slt i32 %89, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %88
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %125

95:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.run_container_s, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.rle16_s, ptr %98, i64 %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %17, ptr align 2 %101, i64 4, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %102 = getelementptr inbounds %struct.rle16_s, ptr %17, i32 0, i32 0
  %103 = load i16, ptr %102, align 2, !tbaa !19
  %104 = zext i16 %103 to i32
  store i32 %104, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = getelementptr inbounds %struct.rle16_s, ptr %17, i32 0, i32 1
  %107 = load i16, ptr %106, align 2, !tbaa !21
  %108 = zext i16 %107 to i32
  %109 = add i32 %105, %108
  %110 = add i32 %109, 1
  store i32 %110, ptr %19, align 4, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.bitset_container_s, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !26
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %18, align 4, !tbaa !9
  call void @bitset_reset_range(ptr noundef %113, i32 noundef %114, i32 noundef %115)
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.bitset_container_s, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !26
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  call void @bitset_flip_range(ptr noundef %118, i32 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %121, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %122

122:                                              ; preds = %95
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %16, align 4, !tbaa !9
  br label %88, !llvm.loop !28

125:                                              ; preds = %94
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.bitset_container_s, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = load i32, ptr %15, align 4, !tbaa !9
  call void @bitset_reset_range(ptr noundef %128, i32 noundef %129, i32 noundef 65536)
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = call i32 @bitset_container_compute_cardinality(ptr noundef %130)
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.bitset_container_s, ptr %132, i32 0, i32 0
  store i32 %131, ptr %133, align 8, !tbaa !29
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.bitset_container_s, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !29
  %137 = icmp sle i32 %136, 4096
  br i1 %137, label %138, label %143

138:                                              ; preds = %125
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = call ptr @array_container_from_bitset(ptr noundef %139)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %140, ptr %141, align 8, !tbaa !5
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %142)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %146

143:                                              ; preds = %125
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %144, ptr %145, align 8, !tbaa !5
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %146

146:                                              ; preds = %143, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %147

147:                                              ; preds = %146, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %148 = load i1, ptr %4, align 1
  ret i1 %148
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @run_container_cardinality(ptr noundef) #3

declare ptr @array_container_create_given_capacity(i32 noundef) #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) #4

; Function Attrs: inlinehint nounwind uwtable
declare zeroext i1 @bitset_container_get(ptr noundef, i16 noundef zeroext) #3

declare ptr @bitset_container_clone(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bitset_reset_range(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bitset_flip_range(ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @bitset_container_compute_cardinality(ptr noundef) #1

attributes #0 = { 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 = { 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 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"array_container_s", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!14, !10, i64 0}
!14 = !{!"run_container_s", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{i64 0, i64 2, !17, i64 2, i64 2, !17}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!20, !18, i64 0}
!20 = !{!"rle16_s", !18, i64 0, !18, i64 2}
!21 = !{!20, !18, i64 2}
!22 = !{!12, !6, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!27, !6, i64 8}
!27 = !{!"bitset_container_s", !10, i64 0, !6, i64 8}
!28 = distinct !{!28, !24}
!29 = !{!27, !10, 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"

%struct.rle16_s = type { i16, i16 }

declare ptr @array_container_from_bitset(ptr noundef) local_unnamed_addr #0

declare void @bitset_container_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @run_bitset_container_andnot(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = tail call i32 @run_container_cardinality(ptr noundef %0)
  %5 = icmp slt i32 %4, 4097
  br i1 %5, label %6, label %33

6:                                                ; preds = %3
  %7 = tail call ptr @array_container_create_given_capacity(i32 noundef %4) #3
  store i32 0, ptr %7, align 8, !tbaa !5
  %8 = load i32, ptr %0, align 8, !tbaa !11
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  br label %12

._crit_edge55:                                    ; preds = %18, %6
  store ptr %7, ptr %2, align 8, !tbaa !13
  br label %58

12:                                               ; preds = %.lr.ph54, %18
  %indvars.iv57 = phi i64 [ 0, %.lr.ph54 ], [ %indvars.iv.next58, %18 ]
  %13 = load ptr, ptr %10, align 8, !tbaa !14
  %14 = getelementptr inbounds %struct.rle16_s, ptr %13, i64 %indvars.iv57
  %.sroa.022.0.copyload = load i16, ptr %14, align 2, !tbaa !15
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 2
  %.sroa.5.0.copyload = load i16, ptr %.sroa.5.0..sroa_idx, align 2, !tbaa !15
  %15 = zext i16 %.sroa.022.0.copyload to i32
  %16 = zext i16 %.sroa.5.0.copyload to i32
  %17 = add nuw nsw i32 %16, %15
  br label %22

18:                                               ; preds = %31
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %19 = load i32, ptr %0, align 8, !tbaa !11
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next58, %20
  br i1 %21, label %12, label %._crit_edge55, !llvm.loop !17

22:                                               ; preds = %12, %31
  %.04551 = phi i32 [ %15, %12 ], [ %32, %31 ]
  %23 = trunc i32 %.04551 to i16
  %24 = tail call zeroext i1 @bitset_container_get(ptr noundef %1, i16 noundef zeroext %23)
  br i1 %24, label %31, label %25

25:                                               ; preds = %22
  %26 = load ptr, ptr %11, align 8, !tbaa !19
  %27 = load i32, ptr %7, align 8, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %7, align 8, !tbaa !5
  %29 = sext i32 %27 to i64
  %30 = getelementptr inbounds i16, ptr %26, i64 %29
  store i16 %23, ptr %30, align 2, !tbaa !15
  br label %31

31:                                               ; preds = %22, %25
  %32 = add nuw nsw i32 %.04551, 1
  %exitcond.not = icmp eq i32 %.04551, %17
  br i1 %exitcond.not, label %18, label %22, !llvm.loop !20

33:                                               ; preds = %3
  %34 = tail call ptr @bitset_container_clone(ptr noundef %1) #3
  %35 = load i32, ptr %0, align 8, !tbaa !11
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = getelementptr inbounds i8, ptr %34, i64 8
  br label %43

._crit_edge:                                      ; preds = %43, %33
  %.047.lcssa = phi i32 [ 0, %33 ], [ %49, %43 ]
  %39 = getelementptr inbounds i8, ptr %34, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  tail call void @bitset_reset_range(ptr noundef %40, i32 noundef %.047.lcssa, i32 noundef 65536)
  %41 = tail call i32 @bitset_container_compute_cardinality(ptr noundef %34) #3
  store i32 %41, ptr %34, align 8, !tbaa !23
  %42 = icmp sgt i32 %41, 4096
  br i1 %42, label %57, label %55

43:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %.04749 = phi i32 [ 0, %.lr.ph ], [ %49, %43 ]
  %44 = load ptr, ptr %37, align 8, !tbaa !14
  %45 = getelementptr inbounds %struct.rle16_s, ptr %44, i64 %indvars.iv
  %.sroa.0.0.copyload = load i16, ptr %45, align 2, !tbaa !15
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 2
  %.sroa.4.0.copyload = load i16, ptr %.sroa.4.0..sroa_idx, align 2, !tbaa !15
  %46 = zext i16 %.sroa.0.0.copyload to i32
  %47 = zext i16 %.sroa.4.0.copyload to i32
  %48 = add nuw nsw i32 %46, 1
  %49 = add nuw nsw i32 %48, %47
  %50 = load ptr, ptr %38, align 8, !tbaa !21
  tail call void @bitset_reset_range(ptr noundef %50, i32 noundef %.04749, i32 noundef %46)
  %51 = load ptr, ptr %38, align 8, !tbaa !21
  tail call void @bitset_flip_range(ptr noundef %51, i32 noundef %46, i32 noundef %49)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr %0, align 8, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %43, label %._crit_edge, !llvm.loop !24

55:                                               ; preds = %._crit_edge
  %56 = tail call ptr @array_container_from_bitset(ptr noundef nonnull %34) #3
  store ptr %56, ptr %2, align 8, !tbaa !13
  tail call void @bitset_container_free(ptr noundef nonnull %34) #3
  br label %58

57:                                               ; preds = %._crit_edge
  store ptr %34, ptr %2, align 8, !tbaa !13
  br label %58

58:                                               ; preds = %55, %57, %._crit_edge55
  %.1 = phi i1 [ false, %._crit_edge55 ], [ true, %57 ], [ false, %55 ]
  ret i1 %.1
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @run_container_cardinality(ptr noundef) local_unnamed_addr #2

declare ptr @array_container_create_given_capacity(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare zeroext i1 @bitset_container_get(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare ptr @bitset_container_clone(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bitset_reset_range(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @bitset_flip_range(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @bitset_container_compute_cardinality(ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 = { inlinehint 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 = { 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, !7, i64 0}
!6 = !{!"array_container_s", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"run_container_s", !7, i64 0, !7, i64 4, !10, i64 8}
!13 = !{!10, !10, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !10, i64 8}
!20 = distinct !{!20, !18}
!21 = !{!22, !10, i64 8}
!22 = !{!"bitset_container_s", !7, i64 0, !10, i64 8}
!23 = !{!22, !7, i64 0}
!24 = distinct !{!24, !18}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass