; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (toplevel_unit)

; 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.sbs_s = type { ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 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

declare i32 @printf(ptr noundef, ...) #1

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

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @sbs_compare(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %41, %1
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.sbs_s, ptr %17, i32 0, i32 2
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp ult i32 %16, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %44

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.sbs_s, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds i64, ptr %25, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !14
  store i64 %29, ptr %5, align 8, !tbaa !14
  br label %30

30:                                               ; preds = %33, %22
  %31 = load i64, ptr %5, align 8, !tbaa !14
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %30
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = add i32 %34, 1
  store i32 %35, ptr %3, align 4, !tbaa !9
  %36 = load i64, ptr %5, align 8, !tbaa !14
  %37 = load i64, ptr %5, align 8, !tbaa !14
  %38 = sub i64 %37, 1
  %39 = and i64 %36, %38
  store i64 %39, ptr %5, align 8, !tbaa !14
  br label %30, !llvm.loop !16

40:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = add i32 %42, 1
  store i32 %43, ptr %4, align 4, !tbaa !9
  br label %15, !llvm.loop !18

44:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %45 = load i32, ptr %3, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = mul i64 %46, 4
  %48 = call noalias ptr @malloc(i64 noundef %47) #7
  store ptr %48, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = mul i64 %51, 4
  call void @llvm.memset.p0.i64(ptr align 4 %49, i8 0, i64 %52, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %93, %44
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.sbs_s, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !11
  %58 = icmp ult i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %96

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %89, %60
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = icmp ult i32 %62, 64
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %92

65:                                               ; preds = %61
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.sbs_s, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i64, ptr %68, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !14
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = shl i64 1, %74
  %76 = and i64 %72, %75
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %88

78:                                               ; preds = %65
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = mul i32 %79, 64
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = add i32 %80, %81
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = add i32 %84, 1
  store i32 %85, ptr %8, align 4, !tbaa !9
  %86 = zext i32 %84 to i64
  %87 = getelementptr inbounds i32, ptr %83, i64 %86
  store i32 %82, ptr %87, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %78, %65
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = add i32 %90, 1
  store i32 %91, ptr %10, align 4, !tbaa !9
  br label %61, !llvm.loop !19

92:                                               ; preds = %64
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = add i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !9
  br label %53, !llvm.loop !20

96:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.sbs_s, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %99)
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = mul i64 %103, 4
  %105 = call noalias ptr @malloc(i64 noundef %104) #7
  store ptr %105, ptr %12, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = mul i64 %108, 4
  call void @llvm.memset.p0.i64(ptr align 4 %106, i8 0, i64 %109, i1 false)
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.sbs_s, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %112, ptr noundef %113)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr %3, align 4, !tbaa !9
  %118 = call i32 @array_equals(ptr noundef %114, i32 noundef %115, ptr noundef %116, i32 noundef %117)
  %119 = icmp ne i32 %118, 0
  %120 = zext i1 %119 to i8
  store i8 %120, ptr %13, align 1, !tbaa !22
  %121 = load i8, ptr %13, align 1, !tbaa !22, !range !24, !noundef !25
  %122 = trunc i8 %121 to i1
  br i1 %122, label %147, label %123

123:                                              ; preds = %96
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %137, %123
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %3, align 4, !tbaa !9
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %140

130:                                              ; preds = %125
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %135)
  br label %137

137:                                              ; preds = %130
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = add i32 %138, 1
  store i32 %139, ptr %14, align 4, !tbaa !9
  br label %125, !llvm.loop !26

140:                                              ; preds = %129
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.sbs_s, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  call void @roaring_bitmap_printf(ptr noundef %145)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %147

147:                                              ; preds = %140, %96
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %148) #6
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %149) #6
  %150 = load i8, ptr %13, align 1, !tbaa !22, !range !24, !noundef !25
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i64
  call void @_assert_true(i64 noundef %152, ptr noundef @.str.22, ptr noundef @.str.2, i32 noundef 275)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare void @roaring_bitmap_to_uint32_array(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @array_equals(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare void @roaring_bitmap_printf(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 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 16}
!12 = !{!"sbs_s", !6, i64 0, !6, i64 8, !10, i64 16}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{!12, !6, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_Bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !17}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @sbs_compare(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %.not70 = icmp eq i32 %3, 0
  br i1 %.not70, label %._crit_edge58, label %.lr.ph57

.lr.ph57:                                         ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %wide.trip.count = zext i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %6 = icmp eq i32 %3, 1
  br i1 %6, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57.new

.lr.ph57.new:                                     ; preds = %.lr.ph57
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %16

._crit_edge58.loopexit.unr-lcssa:                 ; preds = %._crit_edge.1, %.lr.ph57
  %.1.lcssa.lcssa.ph = phi i32 [ poison, %.lr.ph57 ], [ %.1.lcssa.1, %._crit_edge.1 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph57 ], [ %indvars.iv.next.1, %._crit_edge.1 ]
  %.04355.unr = phi i32 [ 0, %.lr.ph57 ], [ %.1.lcssa.1, %._crit_edge.1 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge58, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge58.loopexit.unr-lcssa
  %7 = getelementptr inbounds i64, ptr %5, i64 %indvars.iv.unr
  %8 = load i64, ptr %7, align 8, !tbaa !12
  %.not5051.epil = icmp eq i64 %8, 0
  br i1 %.not5051.epil, label %._crit_edge58, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.epil.preheader, %.lr.ph.epil
  %.153.epil = phi i32 [ %9, %.lr.ph.epil ], [ %.04355.unr, %.epil.preheader ]
  %.04552.epil = phi i64 [ %11, %.lr.ph.epil ], [ %8, %.epil.preheader ]
  %9 = add i32 %.153.epil, 1
  %10 = add i64 %.04552.epil, -1
  %11 = and i64 %10, %.04552.epil
  %.not50.epil = icmp eq i64 %11, 0
  br i1 %.not50.epil, label %._crit_edge58, label %.lr.ph.epil, !llvm.loop !14

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa, %.lr.ph.epil, %.epil.preheader, %1
  %.043.lcssa = phi i32 [ 0, %1 ], [ %.1.lcssa.lcssa.ph, %._crit_edge58.loopexit.unr-lcssa ], [ %.04355.unr, %.epil.preheader ], [ %9, %.lr.ph.epil ]
  %12 = zext i32 %.043.lcssa to i64
  %13 = shl nuw nsw i64 %12, 2
  %calloc88 = tail call ptr @calloc(i64 1, i64 %13)
  br i1 %.not70, label %._crit_edge65, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge58
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %wide.trip.count81 = zext i32 %3 to i64
  br label %.preheader

16:                                               ; preds = %._crit_edge.1, %.lr.ph57.new
  %indvars.iv = phi i64 [ 0, %.lr.ph57.new ], [ %indvars.iv.next.1, %._crit_edge.1 ]
  %.04355 = phi i32 [ 0, %.lr.ph57.new ], [ %.1.lcssa.1, %._crit_edge.1 ]
  %niter = phi i64 [ 0, %.lr.ph57.new ], [ %niter.next.1, %._crit_edge.1 ]
  %17 = getelementptr inbounds i64, ptr %5, i64 %indvars.iv
  %18 = load i64, ptr %17, align 8, !tbaa !12
  %.not5051 = icmp eq i64 %18, 0
  br i1 %.not5051, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16, %.lr.ph
  %.153 = phi i32 [ %19, %.lr.ph ], [ %.04355, %16 ]
  %.04552 = phi i64 [ %21, %.lr.ph ], [ %18, %16 ]
  %19 = add i32 %.153, 1
  %20 = add i64 %.04552, -1
  %21 = and i64 %20, %.04552
  %.not50 = icmp eq i64 %21, 0
  br i1 %.not50, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %16
  %.1.lcssa = phi i32 [ %.04355, %16 ], [ %19, %.lr.ph ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %22 = getelementptr inbounds i64, ptr %5, i64 %indvars.iv.next
  %23 = load i64, ptr %22, align 8, !tbaa !12
  %.not5051.1 = icmp eq i64 %23, 0
  br i1 %.not5051.1, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %.153.1 = phi i32 [ %24, %.lr.ph.1 ], [ %.1.lcssa, %._crit_edge ]
  %.04552.1 = phi i64 [ %26, %.lr.ph.1 ], [ %23, %._crit_edge ]
  %24 = add i32 %.153.1, 1
  %25 = add i64 %.04552.1, -1
  %26 = and i64 %25, %.04552.1
  %.not50.1 = icmp eq i64 %26, 0
  br i1 %.not50.1, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !14

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %.1.lcssa.1 = phi i32 [ %.1.lcssa, %._crit_edge ], [ %24, %.lr.ph.1 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge58.loopexit.unr-lcssa, label %16, !llvm.loop !16

.preheader:                                       ; preds = %.preheader.lr.ph, %38
  %indvars.iv78 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next79, %38 ]
  %.04764 = phi i32 [ 0, %.preheader.lr.ph ], [ %.2.1, %38 ]
  %27 = getelementptr inbounds i64, ptr %15, i64 %indvars.iv78
  %28 = load i64, ptr %27, align 8, !tbaa !12
  %29 = shl i64 %indvars.iv78, 6
  br label %39

._crit_edge65:                                    ; preds = %38, %._crit_edge58
  %30 = load ptr, ptr %0, align 8, !tbaa !17
  %31 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %30) #5
  %32 = trunc i64 %31 to i32
  %33 = shl i64 %31, 2
  %34 = and i64 %33, 17179869180
  %calloc = tail call ptr @calloc(i64 1, i64 %34)
  %35 = load ptr, ptr %0, align 8, !tbaa !17
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %35, ptr noundef %calloc) #5
  %36 = tail call i32 @array_equals(ptr noundef %calloc, i32 noundef %32, ptr noundef %calloc88, i32 noundef %.043.lcssa)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %67, label %58

38:                                               ; preds = %57
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count81
  br i1 %exitcond82.not, label %._crit_edge65, label %.preheader, !llvm.loop !18

39:                                               ; preds = %57, %.preheader
  %indvars.iv74 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next75.1, %57 ]
  %.14861 = phi i32 [ %.04764, %.preheader ], [ %.2.1, %57 ]
  %40 = shl nuw i64 1, %indvars.iv74
  %41 = and i64 %28, %40
  %.not = icmp eq i64 %41, 0
  br i1 %.not, label %48, label %42

42:                                               ; preds = %39
  %43 = add nuw nsw i64 %indvars.iv74, %29
  %44 = add i32 %.14861, 1
  %45 = zext i32 %.14861 to i64
  %46 = getelementptr inbounds i32, ptr %calloc88, i64 %45
  %47 = trunc i64 %43 to i32
  store i32 %47, ptr %46, align 4, !tbaa !19
  br label %48

48:                                               ; preds = %39, %42
  %.2 = phi i32 [ %44, %42 ], [ %.14861, %39 ]
  %49 = shl nuw i64 2, %indvars.iv74
  %50 = and i64 %28, %49
  %.not.1 = icmp eq i64 %50, 0
  br i1 %.not.1, label %57, label %51

51:                                               ; preds = %48
  %indvars.iv.next75 = or disjoint i64 %indvars.iv74, 1
  %52 = add nuw nsw i64 %indvars.iv.next75, %29
  %53 = add i32 %.2, 1
  %54 = zext i32 %.2 to i64
  %55 = getelementptr inbounds i32, ptr %calloc88, i64 %54
  %56 = trunc i64 %52 to i32
  store i32 %56, ptr %55, align 4, !tbaa !19
  br label %57

57:                                               ; preds = %51, %48
  %.2.1 = phi i32 [ %53, %51 ], [ %.2, %48 ]
  %indvars.iv.next75.1 = add nuw nsw i64 %indvars.iv74, 2
  %exitcond77.not.1 = icmp eq i64 %indvars.iv.next75.1, 64
  br i1 %exitcond77.not.1, label %38, label %39, !llvm.loop !20

58:                                               ; preds = %._crit_edge65
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %.not72 = icmp eq i32 %.043.lcssa, 0
  br i1 %.not72, label %._crit_edge69, label %.lr.ph68

._crit_edge69:                                    ; preds = %.lr.ph68, %58
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  %62 = load ptr, ptr %0, align 8, !tbaa !17
  tail call void @roaring_bitmap_printf(ptr noundef %62) #5
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %67

.lr.ph68:                                         ; preds = %58, %.lr.ph68
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.lr.ph68 ], [ 0, %58 ]
  %64 = getelementptr inbounds i32, ptr %calloc88, i64 %indvars.iv83
  %65 = load i32, ptr %64, align 4, !tbaa !19
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %65)
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %12
  br i1 %exitcond87.not, label %._crit_edge69, label %.lr.ph68, !llvm.loop !21

67:                                               ; preds = %._crit_edge69, %._crit_edge65
  tail call void @free(ptr noundef %calloc) #5
  tail call void @free(ptr noundef %calloc88) #5
  %68 = zext i1 %37 to i64
  tail call void @_assert_true(i64 noundef %68, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.2, i32 noundef 275) #5
  ret void
}

declare void @roaring_bitmap_to_uint32_array(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @array_equals(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @roaring_bitmap_printf(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { nofree 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 #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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
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, !10, i64 16}
!6 = !{!"sbs_s", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!6, !7, i64 0}
!18 = distinct !{!18, !15}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


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