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

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__.read_compare = external hidden unnamed_addr constant [76 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [54 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

declare ptr @roaring_create_iterator(ptr noundef) #4

declare void @roaring_free_uint32_iterator(ptr noundef) #4

declare i32 @roaring_read_uint32_iterator(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @read_compare(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call ptr @roaring_create_iterator(ptr noundef %16)
  store ptr %17, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %20, label %21

20:                                               ; preds = %4
  br label %23

21:                                               ; preds = %4
  %22 = load i32, ptr %8, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %21, %20
  %24 = phi i32 [ 65536, %20 ], [ %22, %21 ]
  %25 = zext i32 %24 to i64
  %26 = mul i64 4, %25
  %27 = call noalias ptr @malloc(i64 noundef %26) #8
  store ptr %27, ptr %10, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %118, %23
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp ugt i32 %29, 0
  br i1 %30, label %31, label %126

31:                                               ; preds = %28
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %32, i32 0, i32 5
  %34 = load i8, ptr %33, align 8, !tbaa !11, !range !14, !noundef !15
  %35 = trunc i8 %34 to i1
  %36 = zext i1 %35 to i32
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %39

38:                                               ; preds = %31
  br label %40

39:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.139, ptr noundef @.str.2, i32 noundef 3399, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

40:                                               ; preds = %38
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds i32, ptr %44, i64 0
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = icmp eq i32 %43, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %40
  br label %50

49:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.140, ptr noundef @.str.2, i32 noundef 3400, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %51 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %54, label %82

54:                                               ; preds = %50
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %77, %54
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 4, ptr %13, align 4
  br label %80

60:                                               ; preds = %55
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %61, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = lshr i32 %65, 16
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i64 0
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = lshr i32 %69, 16
  %71 = icmp eq i32 %66, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %60
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %11, align 4, !tbaa !9
  br label %76

75:                                               ; preds = %60
  store i32 4, ptr %13, align 4
  br label %80

76:                                               ; preds = %72
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %12, align 4, !tbaa !9
  br label %55, !llvm.loop !17

80:                                               ; preds = %75, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = call i32 @roaring_read_uint32_iterator(ptr noundef %83, ptr noundef %84, i32 noundef %85)
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = call i32 @minimum_uint32(i32 noundef %88, i32 noundef %89)
  %91 = icmp eq i32 %87, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %82
  br label %94

93:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.141, ptr noundef @.str.2, i32 noundef 3415, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %115, %94
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = icmp ult i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %118

100:                                              ; preds = %95
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %105, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %100
  br label %114

113:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.142, ptr noundef @.str.2, i32 noundef 3417, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = add i32 %116, 1
  store i32 %117, ptr %15, align 4, !tbaa !9
  br label %95, !llvm.loop !19

118:                                              ; preds = %99
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = zext i32 %119 to i64
  %122 = getelementptr inbounds i32, ptr %120, i64 %121
  store ptr %122, ptr %6, align 8, !tbaa !5
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = sub i32 %124, %123
  store i32 %125, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %28, !llvm.loop !20

126:                                              ; preds = %28
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %127, i32 0, i32 5
  %129 = load i8, ptr %128, align 8, !tbaa !11, !range !14, !noundef !15
  %130 = trunc i8 %129 to i1
  %131 = zext i1 %130 to i32
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %126
  br label %135

134:                                              ; preds = %126
  call void @__assert_fail(ptr noundef @.str.143, ptr noundef @.str.2, i32 noundef 3423, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

135:                                              ; preds = %133
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %136, i32 0, i32 4
  %138 = load i32, ptr %137, align 4, !tbaa !16
  %139 = icmp eq i32 %138, -1
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  br label %142

141:                                              ; preds = %135
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.2, i32 noundef 3424, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

142:                                              ; preds = %140
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = call i32 @roaring_read_uint32_iterator(ptr noundef %143, ptr noundef %144, i32 noundef %145)
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %142
  br label %150

149:                                              ; preds = %142
  call void @__assert_fail(ptr noundef @.str.145, ptr noundef @.str.2, i32 noundef 3426, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

150:                                              ; preds = %148
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %151, i32 0, i32 5
  %153 = load i8, ptr %152, align 8, !tbaa !11, !range !14, !noundef !15
  %154 = trunc i8 %153 to i1
  %155 = zext i1 %154 to i32
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %150
  br label %159

158:                                              ; preds = %150
  call void @__assert_fail(ptr noundef @.str.143, ptr noundef @.str.2, i32 noundef 3427, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

159:                                              ; preds = %157
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %160, i32 0, i32 4
  %162 = load i32, ptr %161, align 4, !tbaa !16
  %163 = icmp eq i32 %162, -1
  br i1 %163, label %164, label %165

164:                                              ; preds = %159
  br label %166

165:                                              ; preds = %159
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.2, i32 noundef 3428, ptr noundef @__PRETTY_FUNCTION__.read_compare) #9
  unreachable

166:                                              ; preds = %164
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %167) #7
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  call void @roaring_free_uint32_iterator(ptr noundef %168)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @minimum_uint32(i32 noundef, i32 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #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 = { "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 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn 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, !13, i64 24}
!12 = !{!"roaring_uint32_iterator_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !6, i64 32, !7, i64 40, !10, i64 44}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!12, !10, i64 20}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__.read_compare = external hidden unnamed_addr constant [76 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [54 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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

declare ptr @roaring_create_iterator(ptr noundef) local_unnamed_addr #3

declare void @roaring_free_uint32_iterator(ptr noundef) local_unnamed_addr #3

declare i32 @roaring_read_uint32_iterator(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @read_compare(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = tail call ptr @roaring_create_iterator(ptr noundef %0) #6
  %6 = icmp eq i32 %3, -1
  %7 = select i1 %6, i32 65536, i32 %3
  %8 = zext i32 %7 to i64
  %9 = shl nuw nsw i64 %8, 2
  %10 = tail call noalias ptr @malloc(i64 noundef %9) #7
  %.not51 = icmp eq i32 %2, 0
  br i1 %.not51, label %._crit_edge57, label %.lr.ph56

.lr.ph56:                                         ; preds = %4
  %11 = getelementptr inbounds i8, ptr %5, i64 24
  %12 = getelementptr inbounds i8, ptr %5, i64 20
  br i1 %6, label %.lr.ph56.split.us, label %.lr.ph56.split

.lr.ph56.split.us:                                ; preds = %.lr.ph56, %._crit_edge.us
  %.04154.us = phi ptr [ %23, %._crit_edge.us ], [ %1, %.lr.ph56 ]
  %.04452.us = phi i32 [ %24, %._crit_edge.us ], [ %2, %.lr.ph56 ]
  %13 = load i8, ptr %11, align 8, !tbaa !5, !range !12, !noundef !13
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %15, label %.split.us

15:                                               ; preds = %.lr.ph56.split.us
  %16 = load i32, ptr %12, align 4, !tbaa !14
  %17 = load i32, ptr %.04154.us, align 4, !tbaa !15
  %18 = icmp eq i32 %16, %17
  br i1 %18, label %.preheader47.us.preheader, label %.split59.us

.preheader47.us.preheader:                        ; preds = %15
  %umax77 = zext i32 %.04452.us to i64
  br label %.preheader47.us

.preheader47.us:                                  ; preds = %.preheader47.us.preheader, %30
  %indvars.iv72 = phi i64 [ 0, %.preheader47.us.preheader ], [ %indvars.iv.next73, %30 ]
  %19 = getelementptr inbounds i32, ptr %.04154.us, i64 %indvars.iv72
  %20 = load i32, ptr %19, align 4, !tbaa !15
  %.unshifted.us = xor i32 %20, %16
  %21 = icmp ult i32 %.unshifted.us, 65536
  br i1 %21, label %30, label %.loopexit.us.split.loop.exit91

22:                                               ; preds = %.lr.ph.us
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %._crit_edge.us, label %.lr.ph.us, !llvm.loop !16

._crit_edge.us:                                   ; preds = %22, %.preheader.us
  %.pre-phi = phi i64 [ 0, %.preheader.us ], [ %wide.trip.count82, %22 ]
  %23 = getelementptr inbounds i32, ptr %.04154.us, i64 %.pre-phi
  %24 = sub i32 %.04452.us, %31
  %.not.us = icmp eq i32 %24, 0
  br i1 %.not.us, label %._crit_edge57, label %.lr.ph56.split.us, !llvm.loop !18

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %22
  %indvars.iv79 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next80, %22 ]
  %25 = getelementptr inbounds i32, ptr %.04154.us, i64 %indvars.iv79
  %26 = load i32, ptr %25, align 4, !tbaa !15
  %27 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv79
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = icmp eq i32 %26, %28
  br i1 %29, label %22, label %.split63.us

30:                                               ; preds = %.preheader47.us
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next73, %umax77
  br i1 %exitcond78.not, label %.loopexit.us, label %.preheader47.us, !llvm.loop !19

.preheader.us:                                    ; preds = %.loopexit.us
  %.not65 = icmp eq i32 %31, 0
  br i1 %.not65, label %._crit_edge.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.preheader.us
  %wide.trip.count82 = zext i32 %31 to i64
  br label %.lr.ph.us

.loopexit.us.split.loop.exit91:                   ; preds = %.preheader47.us
  %indvars76.le = trunc i64 %indvars.iv72 to i32
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %30, %.loopexit.us.split.loop.exit91
  %.043.lcssa.us = phi i32 [ %indvars76.le, %.loopexit.us.split.loop.exit91 ], [ %.04452.us, %30 ]
  %31 = tail call i32 @roaring_read_uint32_iterator(ptr noundef %5, ptr noundef %10, i32 noundef %.043.lcssa.us) #6
  %32 = tail call i32 @minimum_uint32(i32 noundef %.043.lcssa.us, i32 noundef %.04452.us)
  %33 = icmp eq i32 %31, %32
  br i1 %33, label %.preheader.us, label %.split61.us

.lr.ph56.split:                                   ; preds = %.lr.ph56, %._crit_edge
  %.04154 = phi ptr [ %45, %._crit_edge ], [ %1, %.lr.ph56 ]
  %.04452 = phi i32 [ %46, %._crit_edge ], [ %2, %.lr.ph56 ]
  %34 = load i8, ptr %11, align 8, !tbaa !5, !range !12, !noundef !13
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %.split.us

.split.us:                                        ; preds = %.lr.ph56.split, %.lr.ph56.split.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.139, ptr noundef nonnull @.str.2, i32 noundef 3399, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

36:                                               ; preds = %.lr.ph56.split
  %37 = load i32, ptr %12, align 4, !tbaa !14
  %38 = load i32, ptr %.04154, align 4, !tbaa !15
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %.split59.us

.split59.us:                                      ; preds = %36, %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.140, ptr noundef nonnull @.str.2, i32 noundef 3400, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

40:                                               ; preds = %36
  %41 = tail call i32 @roaring_read_uint32_iterator(ptr noundef nonnull %5, ptr noundef %10, i32 noundef %3) #6
  %42 = tail call i32 @minimum_uint32(i32 noundef %3, i32 noundef %.04452)
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %.preheader, label %.split61.us

.preheader:                                       ; preds = %40
  %.not64 = icmp eq i32 %41, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %41 to i64
  br label %.lr.ph

.split61.us:                                      ; preds = %40, %.loopexit.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.141, ptr noundef nonnull @.str.2, i32 noundef 3415, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

44:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %44, %.preheader
  %.pre-phi85 = phi i64 [ 0, %.preheader ], [ %wide.trip.count, %44 ]
  %45 = getelementptr inbounds i32, ptr %.04154, i64 %.pre-phi85
  %46 = sub i32 %.04452, %41
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %._crit_edge57, label %.lr.ph56.split, !llvm.loop !18

.lr.ph:                                           ; preds = %.lr.ph.preheader, %44
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %44 ]
  %47 = getelementptr inbounds i32, ptr %.04154, i64 %indvars.iv
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = icmp eq i32 %48, %50
  br i1 %51, label %44, label %.split63.us

.split63.us:                                      ; preds = %.lr.ph, %.lr.ph.us
  tail call void @__assert_fail(ptr noundef nonnull @.str.142, ptr noundef nonnull @.str.2, i32 noundef 3417, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

._crit_edge57:                                    ; preds = %._crit_edge, %._crit_edge.us, %4
  %52 = getelementptr inbounds i8, ptr %5, i64 24
  %53 = load i8, ptr %52, align 8, !tbaa !5, !range !12, !noundef !13
  %54 = icmp eq i8 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %._crit_edge57
  tail call void @__assert_fail(ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.2, i32 noundef 3423, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

56:                                               ; preds = %._crit_edge57
  %57 = getelementptr inbounds i8, ptr %5, i64 20
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = icmp eq i32 %58, -1
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  tail call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.2, i32 noundef 3424, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

61:                                               ; preds = %56
  %62 = tail call i32 @roaring_read_uint32_iterator(ptr noundef nonnull %5, ptr noundef %10, i32 noundef %3) #6
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  tail call void @__assert_fail(ptr noundef nonnull @.str.145, ptr noundef nonnull @.str.2, i32 noundef 3426, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

65:                                               ; preds = %61
  %66 = load i8, ptr %52, align 8, !tbaa !5, !range !12, !noundef !13
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  tail call void @__assert_fail(ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.2, i32 noundef 3427, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

69:                                               ; preds = %65
  %70 = load i32, ptr %57, align 4, !tbaa !14
  %71 = icmp eq i32 %70, -1
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  tail call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.2, i32 noundef 3428, ptr noundef nonnull @__PRETTY_FUNCTION__.read_compare) #8
  unreachable

73:                                               ; preds = %69
  tail call void @free(ptr noundef %10) #6
  tail call void @roaring_free_uint32_iterator(ptr noundef nonnull %5) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @minimum_uint32(i32 noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { noreturn 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #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 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"roaring_uint32_iterator_s", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !7, i64 32, !8, i64 40, !10, i64 44}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !10, i64 20}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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