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

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.test_rand_flips = external hidden unnamed_addr constant [23 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [53 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

declare void @roaring_bitmap_free(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 ptr @roaring_bitmap_create() #1

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

; Function Attrs: inlinehint nounwind uwtable
declare zeroext i1 @roaring_bitmap_contains(ptr noundef, i32 noundef) #2

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

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

declare void @roaring_bitmap_add(ptr noundef, i32 noundef) #1

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

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

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

declare ptr @roaring_bitmap_flip(ptr noundef, i64 noundef, i64 noundef) #1

declare zeroext i1 @roaring_bitmap_run_optimize(ptr 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) #7

; Function Attrs: nounwind uwtable
define dso_local void @test_rand_flips() #8 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  call void @srand(i32 noundef 1234) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #9
  store i32 1, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 5, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 2000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %23 = call noalias ptr @malloc(i64 noundef 2000000) #10
  store ptr %23, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %24 = call noalias ptr @malloc(i64 noundef 2000000) #10
  store ptr %24, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %191, %0
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 1000000
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %194

29:                                               ; preds = %25
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.121, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %32 = call ptr @roaring_bitmap_create()
  store ptr %32, ptr %8, align 8, !tbaa !9
  %33 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %33, i8 0, i64 2000000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %72, %29
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %75

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %40 = call i32 @our_rand()
  %41 = uitofp i32 %40 to double
  %42 = fdiv double %41, 0x41CFFFFFFF800000
  store double %42, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %43 = call i32 @our_rand()
  %44 = uitofp i32 %43 to double
  %45 = fdiv double %44, 0x41CFFFFFFF800000
  store double %45, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %46 = call i32 @our_rand()
  %47 = uitofp i32 %46 to double
  %48 = fdiv double %47, 0x41CFFFFFFF800000
  store double %48, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %49 = load double, ptr %10, align 8, !tbaa !11
  %50 = load double, ptr %11, align 8, !tbaa !11
  %51 = fmul double %49, %50
  %52 = load double, ptr %12, align 8, !tbaa !11
  %53 = fmul double %51, %52
  %54 = fmul double %53, 2.000000e+06
  %55 = fptosi double %54 to i32
  store i32 %55, ptr %13, align 4, !tbaa !5
  %56 = load i32, ptr %13, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 2000000
  br i1 %57, label %58, label %59

58:                                               ; preds = %39
  br label %60

59:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.122, ptr noundef @.str.2, i32 noundef 2958, ptr noundef @__PRETTY_FUNCTION__.test_rand_flips) #11
  unreachable

60:                                               ; preds = %58
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  br label %65

64:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.123, ptr noundef @.str.2, i32 noundef 2959, ptr noundef @__PRETTY_FUNCTION__.test_rand_flips) #11
  unreachable

65:                                               ; preds = %63
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !5
  call void @roaring_bitmap_add(ptr noundef %66, i32 noundef %67)
  %68 = load ptr, ptr %4, align 8, !tbaa !9
  %69 = load i32, ptr %13, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %68, i64 %70
  store i8 1, ptr %71, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %72

72:                                               ; preds = %65
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %9, align 4, !tbaa !5
  br label %34, !llvm.loop !14

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

76:                                               ; preds = %106, %75
  %77 = load i32, ptr %14, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 1
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %109

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %81 = call i32 @our_rand()
  %82 = urem i32 %81, 1000000
  store i32 %82, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %83 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %83, ptr %16, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %102, %80
  %85 = load i32, ptr %16, align 4, !tbaa !5
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = add nsw i32 %86, 131072
  %88 = icmp slt i32 %85, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %105

90:                                               ; preds = %84
  %91 = load i32, ptr %16, align 4, !tbaa !5
  %92 = srem i32 %91, 147
  %93 = icmp slt i32 %92, 100
  br i1 %93, label %94, label %101

94:                                               ; preds = %90
  %95 = load ptr, ptr %8, align 8, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !5
  call void @roaring_bitmap_add(ptr noundef %95, i32 noundef %96)
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %97, i64 %99
  store i8 1, ptr %100, align 1, !tbaa !13
  br label %101

101:                                              ; preds = %94, %90
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %16, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %16, align 4, !tbaa !5
  br label %84, !llvm.loop !16

105:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %14, align 4, !tbaa !5
  br label %76, !llvm.loop !17

109:                                              ; preds = %79
  %110 = load ptr, ptr %8, align 8, !tbaa !9
  %111 = call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %110)
  %112 = load ptr, ptr %8, align 8, !tbaa !9
  %113 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %112)
  %114 = trunc i64 %113 to i32
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.124, i32 noundef %114)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %186, %109
  %117 = load i32, ptr %17, align 4, !tbaa !5
  %118 = icmp slt i32 %117, 5
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %189

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %121 = call i32 @our_rand()
  %122 = urem i32 %121, 1999999
  store i32 %122, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %123 = call i32 @our_rand()
  %124 = load i32, ptr %18, align 4, !tbaa !5
  %125 = sub nsw i32 2000000, %124
  %126 = urem i32 %123, %125
  store i32 %126, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %127 = load ptr, ptr %8, align 8, !tbaa !9
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = add nsw i32 %130, %131
  %133 = sext i32 %132 to i64
  %134 = call ptr @roaring_bitmap_flip(ptr noundef %127, i64 noundef %129, i64 noundef %133)
  store ptr %134, ptr %20, align 8, !tbaa !9
  %135 = load ptr, ptr %5, align 8, !tbaa !9
  %136 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %135, ptr align 1 %136, i64 2000000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %137 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %137, ptr %21, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %158, %120
  %139 = load i32, ptr %21, align 4, !tbaa !5
  %140 = load i32, ptr %18, align 4, !tbaa !5
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = add nsw i32 %140, %141
  %143 = icmp slt i32 %139, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %138
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %161

145:                                              ; preds = %138
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  %147 = load i32, ptr %21, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i8, ptr %146, i64 %148
  %150 = load i8, ptr %149, align 1, !tbaa !13
  %151 = sext i8 %150 to i32
  %152 = sub nsw i32 1, %151
  %153 = trunc i32 %152 to i8
  %154 = load ptr, ptr %5, align 8, !tbaa !9
  %155 = load i32, ptr %21, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i8, ptr %154, i64 %156
  store i8 %153, ptr %157, align 1, !tbaa !13
  br label %158

158:                                              ; preds = %145
  %159 = load i32, ptr %21, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %21, align 4, !tbaa !5
  br label %138, !llvm.loop !18

161:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %181, %161
  %163 = load i32, ptr %22, align 4, !tbaa !5
  %164 = icmp slt i32 %163, 2000000
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %184

166:                                              ; preds = %162
  %167 = load ptr, ptr %5, align 8, !tbaa !9
  %168 = load i32, ptr %22, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i8, ptr %167, i64 %169
  %171 = load i8, ptr %170, align 1, !tbaa !13
  %172 = icmp ne i8 %171, 0
  %173 = zext i1 %172 to i32
  %174 = load ptr, ptr %20, align 8, !tbaa !9
  %175 = load i32, ptr %22, align 4, !tbaa !5
  %176 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %174, i32 noundef %175)
  %177 = zext i1 %176 to i32
  %178 = icmp eq i32 %173, %177
  %179 = zext i1 %178 to i32
  %180 = sext i32 %179 to i64
  call void @_assert_true(i64 noundef %180, ptr noundef @.str.125, ptr noundef @.str.2, i32 noundef 2985)
  br label %181

181:                                              ; preds = %166
  %182 = load i32, ptr %22, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %22, align 4, !tbaa !5
  br label %162, !llvm.loop !19

184:                                              ; preds = %165
  %185 = load ptr, ptr %20, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %185)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %186

186:                                              ; preds = %184
  %187 = load i32, ptr %17, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %17, align 4, !tbaa !5
  br label %116, !llvm.loop !20

189:                                              ; preds = %119
  %190 = load ptr, ptr %8, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %190)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %191

191:                                              ; preds = %189
  %192 = load i32, ptr %6, align 4, !tbaa !5
  %193 = mul nsw i32 %192, 8
  store i32 %193, ptr %6, align 4, !tbaa !5
  br label %25, !llvm.loop !21

194:                                              ; preds = %28
  %195 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %195) #9
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %196) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #9
  ret void
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @our_rand() #2

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 = { 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 = { 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 #4 = { 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; 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.121 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.test_rand_flips = external hidden unnamed_addr constant [23 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [53 x i8], align 1

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

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #1

declare ptr @roaring_bitmap_create() local_unnamed_addr #1

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

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

declare ptr @roaring_bitmap_flip(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

declare zeroext i1 @roaring_bitmap_run_optimize(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @test_rand_flips() local_unnamed_addr #8 {
  tail call void @srand(i32 noundef 1234) #11
  %1 = tail call noalias dereferenceable_or_null(2000000) ptr @malloc(i64 noundef 2000000) #12
  %2 = tail call noalias dereferenceable_or_null(2000000) ptr @malloc(i64 noundef 2000000) #12
  br label %4

3:                                                ; preds = %253
  tail call void @free(ptr noundef nonnull %2) #11
  tail call void @free(ptr noundef %1) #11
  ret void

4:                                                ; preds = %0, %253
  %.05768 = phi i32 [ 2, %0 ], [ %254, %253 ]
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.121, i32 noundef %.05768)
  %6 = tail call ptr @roaring_bitmap_create() #11
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %1, i8 0, i64 2000000, i1 false)
  br label %7

7:                                                ; preds = %4, %28
  %.05863 = phi i32 [ 0, %4 ], [ %31, %28 ]
  %8 = tail call i32 @our_rand()
  %9 = tail call i32 @our_rand()
  %10 = uitofp i32 %9 to double
  %11 = fdiv double %10, 0x41CFFFFFFF800000
  %12 = tail call i32 @our_rand()
  %13 = insertelement <2 x i32> poison, i32 %8, i64 0
  %14 = insertelement <2 x i32> %13, i32 %12, i64 1
  %15 = uitofp <2 x i32> %14 to <2 x double>
  %16 = fdiv <2 x double> %15, <double 0x41CFFFFFFF800000, double 0x41CFFFFFFF800000>
  %17 = extractelement <2 x double> %16, i64 0
  %18 = fmul double %17, %11
  %19 = extractelement <2 x double> %16, i64 1
  %20 = fmul double %18, %19
  %21 = fmul double %20, 2.000000e+06
  %22 = fptosi double %21 to i32
  %23 = icmp slt i32 %22, 2000000
  br i1 %23, label %25, label %24

24:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.122, ptr noundef nonnull @.str.2, i32 noundef 2958, ptr noundef nonnull @__PRETTY_FUNCTION__.test_rand_flips) #13
  unreachable

25:                                               ; preds = %7
  %26 = icmp sgt i32 %22, -1
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.123, ptr noundef nonnull @.str.2, i32 noundef 2959, ptr noundef nonnull @__PRETTY_FUNCTION__.test_rand_flips) #13
  unreachable

28:                                               ; preds = %25
  tail call void @roaring_bitmap_add(ptr noundef %6, i32 noundef %22) #11
  %29 = zext nneg i32 %22 to i64
  %30 = getelementptr inbounds i8, ptr %1, i64 %29
  store i8 1, ptr %30, align 1, !tbaa !5
  %31 = add nuw nsw i32 %.05863, 1
  %exitcond.not = icmp eq i32 %31, %.05768
  br i1 %exitcond.not, label %32, label %7, !llvm.loop !8

32:                                               ; preds = %28
  %33 = tail call i32 @our_rand()
  %.fr76 = freeze i32 %33
  %34 = urem i32 %.fr76, 1000000
  %35 = add nuw nsw i32 %34, 131072
  %36 = urem i32 %.fr76, 1000000
  %37 = zext nneg i32 %36 to i64
  %38 = zext nneg i32 %35 to i64
  br label %52

.critedge:                                        ; preds = %58
  %39 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %6) #11
  %40 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %6) #11
  %41 = trunc i64 %40 to i32
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.124, i32 noundef %41)
  %43 = tail call i32 @our_rand()
  %.fr77 = freeze i32 %43
  %44 = urem i32 %.fr77, 1999999
  %45 = tail call i32 @our_rand()
  %46 = sub nuw nsw i32 2000000, %44
  %47 = urem i32 %45, %46
  %48 = zext nneg i32 %44 to i64
  %49 = add nuw nsw i32 %47, %44
  %50 = zext nneg i32 %49 to i64
  %51 = tail call ptr @roaring_bitmap_flip(ptr noundef %6, i64 noundef %48, i64 noundef %50) #11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %2, ptr noundef nonnull align 1 dereferenceable(2000000) %1, i64 2000000, i1 false)
  %.not = icmp eq i32 %47, 0
  br i1 %.not, label %.preheader.preheader, label %iter.check201

.preheader.preheader:                             ; preds = %.lr.ph, %middle.block198, %vec.epilog.middle.block214, %.critedge
  br label %.preheader

52:                                               ; preds = %32, %58
  %indvars.iv = phi i64 [ %37, %32 ], [ %indvars.iv.next, %58 ]
  %53 = trunc nuw i64 %indvars.iv to i32
  %54 = urem i32 %53, 147
  %55 = icmp ult i32 %54, 100
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  tail call void @roaring_bitmap_add(ptr noundef %6, i32 noundef %53) #11
  %57 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 1, ptr %57, align 1, !tbaa !5
  br label %58

58:                                               ; preds = %52, %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = icmp ult i64 %indvars.iv.next, %38
  br i1 %59, label %52, label %.critedge, !llvm.loop !10

iter.check201:                                    ; preds = %.critedge
  %60 = urem i32 %.fr77, 1999999
  %61 = zext nneg i32 %60 to i64
  %62 = zext i32 %.fr77 to i64
  %63 = add nuw nsw i64 %62, 1
  %64 = urem i64 %62, 1999999
  %65 = sub nuw nsw i64 %62, %64
  %66 = sub nsw i64 %63, %65
  %umax197 = tail call i64 @llvm.umax.i64(i64 %66, i64 %50)
  %67 = add i64 %umax197, %65
  %68 = sub i64 %67, %62
  %min.iters.check199 = icmp ult i64 %68, 8
  br i1 %min.iters.check199, label %.lr.ph.preheader, label %vector.main.loop.iter.check203

vector.main.loop.iter.check203:                   ; preds = %iter.check201
  %min.iters.check202 = icmp ult i64 %68, 32
  br i1 %min.iters.check202, label %vec.epilog.ph216, label %vector.ph204

vector.ph204:                                     ; preds = %vector.main.loop.iter.check203
  %n.vec206 = and i64 %68, -32
  br label %vector.body207

vector.body207:                                   ; preds = %vector.body207, %vector.ph204
  %index208 = phi i64 [ 0, %vector.ph204 ], [ %index.next212, %vector.body207 ]
  %offset.idx209 = add i64 %index208, %61
  %69 = getelementptr inbounds i8, ptr %1, i64 %offset.idx209
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load210 = load <16 x i8>, ptr %69, align 1, !tbaa !5
  %wide.load211 = load <16 x i8>, ptr %70, align 1, !tbaa !5
  %71 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load210
  %72 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load211
  %73 = getelementptr inbounds i8, ptr %2, i64 %offset.idx209
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  store <16 x i8> %71, ptr %73, align 1, !tbaa !5
  store <16 x i8> %72, ptr %74, align 1, !tbaa !5
  %index.next212 = add nuw i64 %index208, 32
  %75 = icmp eq i64 %index.next212, %n.vec206
  br i1 %75, label %middle.block198, label %vector.body207, !llvm.loop !11

middle.block198:                                  ; preds = %vector.body207
  %cmp.n213 = icmp eq i64 %68, %n.vec206
  br i1 %cmp.n213, label %.preheader.preheader, label %vec.epilog.iter.check217

vec.epilog.iter.check217:                         ; preds = %middle.block198
  %ind.end224 = add i64 %n.vec206, %61
  %n.vec.remaining218 = and i64 %68, 24
  %min.epilog.iters.check219 = icmp eq i64 %n.vec.remaining218, 0
  br i1 %min.epilog.iters.check219, label %.lr.ph.preheader, label %vec.epilog.ph216

vec.epilog.ph216:                                 ; preds = %vector.main.loop.iter.check203, %vec.epilog.iter.check217
  %vec.epilog.resume.val220 = phi i64 [ %n.vec206, %vec.epilog.iter.check217 ], [ 0, %vector.main.loop.iter.check203 ]
  %n.vec222 = and i64 %68, -8
  %ind.end223 = add i64 %n.vec222, %61
  br label %vec.epilog.vector.body226

vec.epilog.vector.body226:                        ; preds = %vec.epilog.vector.body226, %vec.epilog.ph216
  %index227 = phi i64 [ %vec.epilog.resume.val220, %vec.epilog.ph216 ], [ %index.next230, %vec.epilog.vector.body226 ]
  %offset.idx228 = add i64 %index227, %61
  %76 = getelementptr inbounds i8, ptr %1, i64 %offset.idx228
  %wide.load229 = load <8 x i8>, ptr %76, align 1, !tbaa !5
  %77 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load229
  %78 = getelementptr inbounds i8, ptr %2, i64 %offset.idx228
  store <8 x i8> %77, ptr %78, align 1, !tbaa !5
  %index.next230 = add nuw i64 %index227, 8
  %79 = icmp eq i64 %index.next230, %n.vec222
  br i1 %79, label %vec.epilog.middle.block214, label %vec.epilog.vector.body226, !llvm.loop !14

vec.epilog.middle.block214:                       ; preds = %vec.epilog.vector.body226
  %cmp.n231 = icmp eq i64 %68, %n.vec222
  br i1 %cmp.n231, label %.preheader.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block214, %iter.check201, %vec.epilog.iter.check217
  %indvars.iv69.ph = phi i64 [ %61, %iter.check201 ], [ %ind.end224, %vec.epilog.iter.check217 ], [ %ind.end223, %vec.epilog.middle.block214 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv69 = phi i64 [ %indvars.iv.next70, %.lr.ph ], [ %indvars.iv69.ph, %.lr.ph.preheader ]
  %80 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv69
  %81 = load i8, ptr %80, align 1, !tbaa !5
  %82 = sub i8 1, %81
  %83 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv69
  store i8 %82, ptr %83, align 1, !tbaa !5
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %84 = icmp ult i64 %indvars.iv.next70, %50
  br i1 %84, label %.lr.ph, label %.preheader.preheader, !llvm.loop !15

85:                                               ; preds = %.preheader
  tail call void @roaring_bitmap_free(ptr noundef %51) #11
  %86 = tail call i32 @our_rand()
  %.fr78 = freeze i32 %86
  %87 = urem i32 %.fr78, 1999999
  %88 = tail call i32 @our_rand()
  %89 = sub nuw nsw i32 2000000, %87
  %90 = urem i32 %88, %89
  %91 = zext nneg i32 %87 to i64
  %92 = add nuw nsw i32 %90, %87
  %93 = zext nneg i32 %92 to i64
  %94 = tail call ptr @roaring_bitmap_flip(ptr noundef %6, i64 noundef %91, i64 noundef %93) #11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %2, ptr noundef nonnull align 1 dereferenceable(2000000) %1, i64 2000000, i1 false)
  %.not.1 = icmp eq i32 %90, 0
  br i1 %.not.1, label %.preheader.1.preheader, label %iter.check166

iter.check166:                                    ; preds = %85
  %95 = urem i32 %.fr78, 1999999
  %96 = zext nneg i32 %95 to i64
  %97 = zext i32 %.fr78 to i64
  %98 = add nuw nsw i64 %97, 1
  %99 = urem i64 %97, 1999999
  %100 = sub nuw nsw i64 %97, %99
  %101 = sub nsw i64 %98, %100
  %umax162 = tail call i64 @llvm.umax.i64(i64 %101, i64 %93)
  %102 = add i64 %umax162, %100
  %103 = sub i64 %102, %97
  %min.iters.check164 = icmp ult i64 %103, 8
  br i1 %min.iters.check164, label %.lr.ph.1.preheader, label %vector.main.loop.iter.check168

vector.main.loop.iter.check168:                   ; preds = %iter.check166
  %min.iters.check167 = icmp ult i64 %103, 32
  br i1 %min.iters.check167, label %vec.epilog.ph181, label %vector.ph169

vector.ph169:                                     ; preds = %vector.main.loop.iter.check168
  %n.vec171 = and i64 %103, -32
  br label %vector.body172

vector.body172:                                   ; preds = %vector.body172, %vector.ph169
  %index173 = phi i64 [ 0, %vector.ph169 ], [ %index.next177, %vector.body172 ]
  %offset.idx174 = add i64 %index173, %96
  %104 = getelementptr inbounds i8, ptr %1, i64 %offset.idx174
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  %wide.load175 = load <16 x i8>, ptr %104, align 1, !tbaa !5
  %wide.load176 = load <16 x i8>, ptr %105, align 1, !tbaa !5
  %106 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load175
  %107 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load176
  %108 = getelementptr inbounds i8, ptr %2, i64 %offset.idx174
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  store <16 x i8> %106, ptr %108, align 1, !tbaa !5
  store <16 x i8> %107, ptr %109, align 1, !tbaa !5
  %index.next177 = add nuw i64 %index173, 32
  %110 = icmp eq i64 %index.next177, %n.vec171
  br i1 %110, label %middle.block163, label %vector.body172, !llvm.loop !16

middle.block163:                                  ; preds = %vector.body172
  %cmp.n178 = icmp eq i64 %103, %n.vec171
  br i1 %cmp.n178, label %.preheader.1.preheader, label %vec.epilog.iter.check182

vec.epilog.iter.check182:                         ; preds = %middle.block163
  %ind.end189 = add i64 %n.vec171, %96
  %n.vec.remaining183 = and i64 %103, 24
  %min.epilog.iters.check184 = icmp eq i64 %n.vec.remaining183, 0
  br i1 %min.epilog.iters.check184, label %.lr.ph.1.preheader, label %vec.epilog.ph181

vec.epilog.ph181:                                 ; preds = %vector.main.loop.iter.check168, %vec.epilog.iter.check182
  %vec.epilog.resume.val185 = phi i64 [ %n.vec171, %vec.epilog.iter.check182 ], [ 0, %vector.main.loop.iter.check168 ]
  %n.vec187 = and i64 %103, -8
  %ind.end188 = add i64 %n.vec187, %96
  br label %vec.epilog.vector.body191

vec.epilog.vector.body191:                        ; preds = %vec.epilog.vector.body191, %vec.epilog.ph181
  %index192 = phi i64 [ %vec.epilog.resume.val185, %vec.epilog.ph181 ], [ %index.next195, %vec.epilog.vector.body191 ]
  %offset.idx193 = add i64 %index192, %96
  %111 = getelementptr inbounds i8, ptr %1, i64 %offset.idx193
  %wide.load194 = load <8 x i8>, ptr %111, align 1, !tbaa !5
  %112 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load194
  %113 = getelementptr inbounds i8, ptr %2, i64 %offset.idx193
  store <8 x i8> %112, ptr %113, align 1, !tbaa !5
  %index.next195 = add nuw i64 %index192, 8
  %114 = icmp eq i64 %index.next195, %n.vec187
  br i1 %114, label %vec.epilog.middle.block179, label %vec.epilog.vector.body191, !llvm.loop !17

vec.epilog.middle.block179:                       ; preds = %vec.epilog.vector.body191
  %cmp.n196 = icmp eq i64 %103, %n.vec187
  br i1 %cmp.n196, label %.preheader.1.preheader, label %.lr.ph.1.preheader

.lr.ph.1.preheader:                               ; preds = %vec.epilog.middle.block179, %iter.check166, %vec.epilog.iter.check182
  %indvars.iv69.1.ph = phi i64 [ %96, %iter.check166 ], [ %ind.end189, %vec.epilog.iter.check182 ], [ %ind.end188, %vec.epilog.middle.block179 ]
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1.preheader, %.lr.ph.1
  %indvars.iv69.1 = phi i64 [ %indvars.iv.next70.1, %.lr.ph.1 ], [ %indvars.iv69.1.ph, %.lr.ph.1.preheader ]
  %115 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv69.1
  %116 = load i8, ptr %115, align 1, !tbaa !5
  %117 = sub i8 1, %116
  %118 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv69.1
  store i8 %117, ptr %118, align 1, !tbaa !5
  %indvars.iv.next70.1 = add nuw nsw i64 %indvars.iv69.1, 1
  %119 = icmp ult i64 %indvars.iv.next70.1, %93
  br i1 %119, label %.lr.ph.1, label %.preheader.1.preheader, !llvm.loop !18

.preheader.1.preheader:                           ; preds = %.lr.ph.1, %middle.block163, %vec.epilog.middle.block179, %85
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.1.preheader, %.preheader.1
  %indvars.iv71.1 = phi i64 [ %indvars.iv.next72.1, %.preheader.1 ], [ 0, %.preheader.1.preheader ]
  %120 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv71.1
  %121 = load i8, ptr %120, align 1, !tbaa !5
  %122 = trunc nuw nsw i64 %indvars.iv71.1 to i32
  %123 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %94, i32 noundef %122)
  %124 = icmp eq i8 %121, 0
  %125 = xor i1 %124, %123
  %126 = zext i1 %125 to i64
  tail call void @_assert_true(i64 noundef %126, ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.2, i32 noundef 2985) #11
  %indvars.iv.next72.1 = add nuw nsw i64 %indvars.iv71.1, 1
  %exitcond74.1.not = icmp eq i64 %indvars.iv.next72.1, 2000000
  br i1 %exitcond74.1.not, label %127, label %.preheader.1, !llvm.loop !19

127:                                              ; preds = %.preheader.1
  tail call void @roaring_bitmap_free(ptr noundef %94) #11
  %128 = tail call i32 @our_rand()
  %.fr79 = freeze i32 %128
  %129 = urem i32 %.fr79, 1999999
  %130 = tail call i32 @our_rand()
  %131 = sub nuw nsw i32 2000000, %129
  %132 = urem i32 %130, %131
  %133 = zext nneg i32 %129 to i64
  %134 = add nuw nsw i32 %132, %129
  %135 = zext nneg i32 %134 to i64
  %136 = tail call ptr @roaring_bitmap_flip(ptr noundef %6, i64 noundef %133, i64 noundef %135) #11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %2, ptr noundef nonnull align 1 dereferenceable(2000000) %1, i64 2000000, i1 false)
  %.not.2 = icmp eq i32 %132, 0
  br i1 %.not.2, label %.preheader.2.preheader, label %iter.check131

iter.check131:                                    ; preds = %127
  %137 = urem i32 %.fr79, 1999999
  %138 = zext nneg i32 %137 to i64
  %139 = zext i32 %.fr79 to i64
  %140 = add nuw nsw i64 %139, 1
  %141 = urem i64 %139, 1999999
  %142 = sub nuw nsw i64 %139, %141
  %143 = sub nsw i64 %140, %142
  %umax127 = tail call i64 @llvm.umax.i64(i64 %143, i64 %135)
  %144 = add i64 %umax127, %142
  %145 = sub i64 %144, %139
  %min.iters.check129 = icmp ult i64 %145, 8
  br i1 %min.iters.check129, label %.lr.ph.2.preheader, label %vector.main.loop.iter.check133

vector.main.loop.iter.check133:                   ; preds = %iter.check131
  %min.iters.check132 = icmp ult i64 %145, 32
  br i1 %min.iters.check132, label %vec.epilog.ph146, label %vector.ph134

vector.ph134:                                     ; preds = %vector.main.loop.iter.check133
  %n.vec136 = and i64 %145, -32
  br label %vector.body137

vector.body137:                                   ; preds = %vector.body137, %vector.ph134
  %index138 = phi i64 [ 0, %vector.ph134 ], [ %index.next142, %vector.body137 ]
  %offset.idx139 = add i64 %index138, %138
  %146 = getelementptr inbounds i8, ptr %1, i64 %offset.idx139
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  %wide.load140 = load <16 x i8>, ptr %146, align 1, !tbaa !5
  %wide.load141 = load <16 x i8>, ptr %147, align 1, !tbaa !5
  %148 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load140
  %149 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load141
  %150 = getelementptr inbounds i8, ptr %2, i64 %offset.idx139
  %151 = getelementptr inbounds i8, ptr %150, i64 16
  store <16 x i8> %148, ptr %150, align 1, !tbaa !5
  store <16 x i8> %149, ptr %151, align 1, !tbaa !5
  %index.next142 = add nuw i64 %index138, 32
  %152 = icmp eq i64 %index.next142, %n.vec136
  br i1 %152, label %middle.block128, label %vector.body137, !llvm.loop !20

middle.block128:                                  ; preds = %vector.body137
  %cmp.n143 = icmp eq i64 %145, %n.vec136
  br i1 %cmp.n143, label %.preheader.2.preheader, label %vec.epilog.iter.check147

vec.epilog.iter.check147:                         ; preds = %middle.block128
  %ind.end154 = add i64 %n.vec136, %138
  %n.vec.remaining148 = and i64 %145, 24
  %min.epilog.iters.check149 = icmp eq i64 %n.vec.remaining148, 0
  br i1 %min.epilog.iters.check149, label %.lr.ph.2.preheader, label %vec.epilog.ph146

vec.epilog.ph146:                                 ; preds = %vector.main.loop.iter.check133, %vec.epilog.iter.check147
  %vec.epilog.resume.val150 = phi i64 [ %n.vec136, %vec.epilog.iter.check147 ], [ 0, %vector.main.loop.iter.check133 ]
  %n.vec152 = and i64 %145, -8
  %ind.end153 = add i64 %n.vec152, %138
  br label %vec.epilog.vector.body156

vec.epilog.vector.body156:                        ; preds = %vec.epilog.vector.body156, %vec.epilog.ph146
  %index157 = phi i64 [ %vec.epilog.resume.val150, %vec.epilog.ph146 ], [ %index.next160, %vec.epilog.vector.body156 ]
  %offset.idx158 = add i64 %index157, %138
  %153 = getelementptr inbounds i8, ptr %1, i64 %offset.idx158
  %wide.load159 = load <8 x i8>, ptr %153, align 1, !tbaa !5
  %154 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load159
  %155 = getelementptr inbounds i8, ptr %2, i64 %offset.idx158
  store <8 x i8> %154, ptr %155, align 1, !tbaa !5
  %index.next160 = add nuw i64 %index157, 8
  %156 = icmp eq i64 %index.next160, %n.vec152
  br i1 %156, label %vec.epilog.middle.block144, label %vec.epilog.vector.body156, !llvm.loop !21

vec.epilog.middle.block144:                       ; preds = %vec.epilog.vector.body156
  %cmp.n161 = icmp eq i64 %145, %n.vec152
  br i1 %cmp.n161, label %.preheader.2.preheader, label %.lr.ph.2.preheader

.lr.ph.2.preheader:                               ; preds = %vec.epilog.middle.block144, %iter.check131, %vec.epilog.iter.check147
  %indvars.iv69.2.ph = phi i64 [ %138, %iter.check131 ], [ %ind.end154, %vec.epilog.iter.check147 ], [ %ind.end153, %vec.epilog.middle.block144 ]
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.lr.ph.2.preheader, %.lr.ph.2
  %indvars.iv69.2 = phi i64 [ %indvars.iv.next70.2, %.lr.ph.2 ], [ %indvars.iv69.2.ph, %.lr.ph.2.preheader ]
  %157 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv69.2
  %158 = load i8, ptr %157, align 1, !tbaa !5
  %159 = sub i8 1, %158
  %160 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv69.2
  store i8 %159, ptr %160, align 1, !tbaa !5
  %indvars.iv.next70.2 = add nuw nsw i64 %indvars.iv69.2, 1
  %161 = icmp ult i64 %indvars.iv.next70.2, %135
  br i1 %161, label %.lr.ph.2, label %.preheader.2.preheader, !llvm.loop !22

.preheader.2.preheader:                           ; preds = %.lr.ph.2, %middle.block128, %vec.epilog.middle.block144, %127
  br label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.2.preheader, %.preheader.2
  %indvars.iv71.2 = phi i64 [ %indvars.iv.next72.2, %.preheader.2 ], [ 0, %.preheader.2.preheader ]
  %162 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv71.2
  %163 = load i8, ptr %162, align 1, !tbaa !5
  %164 = trunc nuw nsw i64 %indvars.iv71.2 to i32
  %165 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %136, i32 noundef %164)
  %166 = icmp eq i8 %163, 0
  %167 = xor i1 %166, %165
  %168 = zext i1 %167 to i64
  tail call void @_assert_true(i64 noundef %168, ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.2, i32 noundef 2985) #11
  %indvars.iv.next72.2 = add nuw nsw i64 %indvars.iv71.2, 1
  %exitcond74.2.not = icmp eq i64 %indvars.iv.next72.2, 2000000
  br i1 %exitcond74.2.not, label %169, label %.preheader.2, !llvm.loop !19

169:                                              ; preds = %.preheader.2
  tail call void @roaring_bitmap_free(ptr noundef %136) #11
  %170 = tail call i32 @our_rand()
  %.fr80 = freeze i32 %170
  %171 = urem i32 %.fr80, 1999999
  %172 = tail call i32 @our_rand()
  %173 = sub nuw nsw i32 2000000, %171
  %174 = urem i32 %172, %173
  %175 = zext nneg i32 %171 to i64
  %176 = add nuw nsw i32 %174, %171
  %177 = zext nneg i32 %176 to i64
  %178 = tail call ptr @roaring_bitmap_flip(ptr noundef %6, i64 noundef %175, i64 noundef %177) #11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %2, ptr noundef nonnull align 1 dereferenceable(2000000) %1, i64 2000000, i1 false)
  %.not.3 = icmp eq i32 %174, 0
  br i1 %.not.3, label %.preheader.3.preheader, label %iter.check96

iter.check96:                                     ; preds = %169
  %179 = urem i32 %.fr80, 1999999
  %180 = zext nneg i32 %179 to i64
  %181 = zext i32 %.fr80 to i64
  %182 = add nuw nsw i64 %181, 1
  %183 = urem i64 %181, 1999999
  %184 = sub nuw nsw i64 %181, %183
  %185 = sub nsw i64 %182, %184
  %umax92 = tail call i64 @llvm.umax.i64(i64 %185, i64 %177)
  %186 = add i64 %umax92, %184
  %187 = sub i64 %186, %181
  %min.iters.check94 = icmp ult i64 %187, 8
  br i1 %min.iters.check94, label %.lr.ph.3.preheader, label %vector.main.loop.iter.check98

vector.main.loop.iter.check98:                    ; preds = %iter.check96
  %min.iters.check97 = icmp ult i64 %187, 32
  br i1 %min.iters.check97, label %vec.epilog.ph111, label %vector.ph99

vector.ph99:                                      ; preds = %vector.main.loop.iter.check98
  %n.vec101 = and i64 %187, -32
  br label %vector.body102

vector.body102:                                   ; preds = %vector.body102, %vector.ph99
  %index103 = phi i64 [ 0, %vector.ph99 ], [ %index.next107, %vector.body102 ]
  %offset.idx104 = add i64 %index103, %180
  %188 = getelementptr inbounds i8, ptr %1, i64 %offset.idx104
  %189 = getelementptr inbounds i8, ptr %188, i64 16
  %wide.load105 = load <16 x i8>, ptr %188, align 1, !tbaa !5
  %wide.load106 = load <16 x i8>, ptr %189, align 1, !tbaa !5
  %190 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load105
  %191 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load106
  %192 = getelementptr inbounds i8, ptr %2, i64 %offset.idx104
  %193 = getelementptr inbounds i8, ptr %192, i64 16
  store <16 x i8> %190, ptr %192, align 1, !tbaa !5
  store <16 x i8> %191, ptr %193, align 1, !tbaa !5
  %index.next107 = add nuw i64 %index103, 32
  %194 = icmp eq i64 %index.next107, %n.vec101
  br i1 %194, label %middle.block93, label %vector.body102, !llvm.loop !23

middle.block93:                                   ; preds = %vector.body102
  %cmp.n108 = icmp eq i64 %187, %n.vec101
  br i1 %cmp.n108, label %.preheader.3.preheader, label %vec.epilog.iter.check112

vec.epilog.iter.check112:                         ; preds = %middle.block93
  %ind.end119 = add i64 %n.vec101, %180
  %n.vec.remaining113 = and i64 %187, 24
  %min.epilog.iters.check114 = icmp eq i64 %n.vec.remaining113, 0
  br i1 %min.epilog.iters.check114, label %.lr.ph.3.preheader, label %vec.epilog.ph111

vec.epilog.ph111:                                 ; preds = %vector.main.loop.iter.check98, %vec.epilog.iter.check112
  %vec.epilog.resume.val115 = phi i64 [ %n.vec101, %vec.epilog.iter.check112 ], [ 0, %vector.main.loop.iter.check98 ]
  %n.vec117 = and i64 %187, -8
  %ind.end118 = add i64 %n.vec117, %180
  br label %vec.epilog.vector.body121

vec.epilog.vector.body121:                        ; preds = %vec.epilog.vector.body121, %vec.epilog.ph111
  %index122 = phi i64 [ %vec.epilog.resume.val115, %vec.epilog.ph111 ], [ %index.next125, %vec.epilog.vector.body121 ]
  %offset.idx123 = add i64 %index122, %180
  %195 = getelementptr inbounds i8, ptr %1, i64 %offset.idx123
  %wide.load124 = load <8 x i8>, ptr %195, align 1, !tbaa !5
  %196 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load124
  %197 = getelementptr inbounds i8, ptr %2, i64 %offset.idx123
  store <8 x i8> %196, ptr %197, align 1, !tbaa !5
  %index.next125 = add nuw i64 %index122, 8
  %198 = icmp eq i64 %index.next125, %n.vec117
  br i1 %198, label %vec.epilog.middle.block109, label %vec.epilog.vector.body121, !llvm.loop !24

vec.epilog.middle.block109:                       ; preds = %vec.epilog.vector.body121
  %cmp.n126 = icmp eq i64 %187, %n.vec117
  br i1 %cmp.n126, label %.preheader.3.preheader, label %.lr.ph.3.preheader

.lr.ph.3.preheader:                               ; preds = %vec.epilog.middle.block109, %iter.check96, %vec.epilog.iter.check112
  %indvars.iv69.3.ph = phi i64 [ %180, %iter.check96 ], [ %ind.end119, %vec.epilog.iter.check112 ], [ %ind.end118, %vec.epilog.middle.block109 ]
  br label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.lr.ph.3.preheader, %.lr.ph.3
  %indvars.iv69.3 = phi i64 [ %indvars.iv.next70.3, %.lr.ph.3 ], [ %indvars.iv69.3.ph, %.lr.ph.3.preheader ]
  %199 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv69.3
  %200 = load i8, ptr %199, align 1, !tbaa !5
  %201 = sub i8 1, %200
  %202 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv69.3
  store i8 %201, ptr %202, align 1, !tbaa !5
  %indvars.iv.next70.3 = add nuw nsw i64 %indvars.iv69.3, 1
  %203 = icmp ult i64 %indvars.iv.next70.3, %177
  br i1 %203, label %.lr.ph.3, label %.preheader.3.preheader, !llvm.loop !25

.preheader.3.preheader:                           ; preds = %.lr.ph.3, %middle.block93, %vec.epilog.middle.block109, %169
  br label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.3.preheader, %.preheader.3
  %indvars.iv71.3 = phi i64 [ %indvars.iv.next72.3, %.preheader.3 ], [ 0, %.preheader.3.preheader ]
  %204 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv71.3
  %205 = load i8, ptr %204, align 1, !tbaa !5
  %206 = trunc nuw nsw i64 %indvars.iv71.3 to i32
  %207 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %178, i32 noundef %206)
  %208 = icmp eq i8 %205, 0
  %209 = xor i1 %208, %207
  %210 = zext i1 %209 to i64
  tail call void @_assert_true(i64 noundef %210, ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.2, i32 noundef 2985) #11
  %indvars.iv.next72.3 = add nuw nsw i64 %indvars.iv71.3, 1
  %exitcond74.3.not = icmp eq i64 %indvars.iv.next72.3, 2000000
  br i1 %exitcond74.3.not, label %211, label %.preheader.3, !llvm.loop !19

211:                                              ; preds = %.preheader.3
  tail call void @roaring_bitmap_free(ptr noundef %178) #11
  %212 = tail call i32 @our_rand()
  %.fr81 = freeze i32 %212
  %213 = urem i32 %.fr81, 1999999
  %214 = tail call i32 @our_rand()
  %215 = sub nuw nsw i32 2000000, %213
  %216 = urem i32 %214, %215
  %217 = zext nneg i32 %213 to i64
  %218 = add nuw nsw i32 %216, %213
  %219 = zext nneg i32 %218 to i64
  %220 = tail call ptr @roaring_bitmap_flip(ptr noundef %6, i64 noundef %217, i64 noundef %219) #11
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %2, ptr noundef nonnull align 1 dereferenceable(2000000) %1, i64 2000000, i1 false)
  %.not.4 = icmp eq i32 %216, 0
  br i1 %.not.4, label %.preheader.4.preheader, label %iter.check

iter.check:                                       ; preds = %211
  %221 = urem i32 %.fr81, 1999999
  %222 = zext nneg i32 %221 to i64
  %223 = zext i32 %.fr81 to i64
  %224 = add nuw nsw i64 %223, 1
  %225 = urem i64 %223, 1999999
  %226 = sub nuw nsw i64 %223, %225
  %227 = sub nsw i64 %224, %226
  %umax = tail call i64 @llvm.umax.i64(i64 %227, i64 %219)
  %228 = add i64 %umax, %226
  %229 = sub i64 %228, %223
  %min.iters.check = icmp ult i64 %229, 8
  br i1 %min.iters.check, label %.lr.ph.4.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check82 = icmp ult i64 %229, 32
  br i1 %min.iters.check82, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %229, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %222
  %230 = getelementptr inbounds i8, ptr %1, i64 %offset.idx
  %231 = getelementptr inbounds i8, ptr %230, i64 16
  %wide.load = load <16 x i8>, ptr %230, align 1, !tbaa !5
  %wide.load83 = load <16 x i8>, ptr %231, align 1, !tbaa !5
  %232 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load
  %233 = sub <16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load83
  %234 = getelementptr inbounds i8, ptr %2, i64 %offset.idx
  %235 = getelementptr inbounds i8, ptr %234, i64 16
  store <16 x i8> %232, ptr %234, align 1, !tbaa !5
  store <16 x i8> %233, ptr %235, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %236 = icmp eq i64 %index.next, %n.vec
  br i1 %236, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %229, %n.vec
  br i1 %cmp.n, label %.preheader.4.preheader, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end86 = add i64 %n.vec, %222
  %n.vec.remaining = and i64 %229, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.4.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec85 = and i64 %229, -8
  %ind.end = add i64 %n.vec85, %222
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index87 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next90, %vec.epilog.vector.body ]
  %offset.idx88 = add i64 %index87, %222
  %237 = getelementptr inbounds i8, ptr %1, i64 %offset.idx88
  %wide.load89 = load <8 x i8>, ptr %237, align 1, !tbaa !5
  %238 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load89
  %239 = getelementptr inbounds i8, ptr %2, i64 %offset.idx88
  store <8 x i8> %238, ptr %239, align 1, !tbaa !5
  %index.next90 = add nuw i64 %index87, 8
  %240 = icmp eq i64 %index.next90, %n.vec85
  br i1 %240, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !27

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n91 = icmp eq i64 %229, %n.vec85
  br i1 %cmp.n91, label %.preheader.4.preheader, label %.lr.ph.4.preheader

.lr.ph.4.preheader:                               ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv69.4.ph = phi i64 [ %222, %iter.check ], [ %ind.end86, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  br label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.lr.ph.4.preheader, %.lr.ph.4
  %indvars.iv69.4 = phi i64 [ %indvars.iv.next70.4, %.lr.ph.4 ], [ %indvars.iv69.4.ph, %.lr.ph.4.preheader ]
  %241 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv69.4
  %242 = load i8, ptr %241, align 1, !tbaa !5
  %243 = sub i8 1, %242
  %244 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv69.4
  store i8 %243, ptr %244, align 1, !tbaa !5
  %indvars.iv.next70.4 = add nuw nsw i64 %indvars.iv69.4, 1
  %245 = icmp ult i64 %indvars.iv.next70.4, %219
  br i1 %245, label %.lr.ph.4, label %.preheader.4.preheader, !llvm.loop !28

.preheader.4.preheader:                           ; preds = %.lr.ph.4, %middle.block, %vec.epilog.middle.block, %211
  br label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.4.preheader, %.preheader.4
  %indvars.iv71.4 = phi i64 [ %indvars.iv.next72.4, %.preheader.4 ], [ 0, %.preheader.4.preheader ]
  %246 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv71.4
  %247 = load i8, ptr %246, align 1, !tbaa !5
  %248 = trunc nuw nsw i64 %indvars.iv71.4 to i32
  %249 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %220, i32 noundef %248)
  %250 = icmp eq i8 %247, 0
  %251 = xor i1 %250, %249
  %252 = zext i1 %251 to i64
  tail call void @_assert_true(i64 noundef %252, ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.2, i32 noundef 2985) #11
  %indvars.iv.next72.4 = add nuw nsw i64 %indvars.iv71.4, 1
  %exitcond74.4.not = icmp eq i64 %indvars.iv.next72.4, 2000000
  br i1 %exitcond74.4.not, label %253, label %.preheader.4, !llvm.loop !19

253:                                              ; preds = %.preheader.4
  tail call void @roaring_bitmap_free(ptr noundef %220) #11
  tail call void @roaring_bitmap_free(ptr noundef %6) #11
  %254 = shl nuw nsw i32 %.05768, 3
  %255 = icmp ult i32 %.05768, 125000
  br i1 %255, label %4, label %3, !llvm.loop !29

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %.preheader ], [ 0, %.preheader.preheader ]
  %256 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv71
  %257 = load i8, ptr %256, align 1, !tbaa !5
  %258 = trunc nuw nsw i64 %indvars.iv71 to i32
  %259 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %51, i32 noundef %258)
  %260 = icmp eq i8 %257, 0
  %261 = xor i1 %260, %259
  %262 = zext i1 %261 to i64
  tail call void @_assert_true(i64 noundef %262, ptr noundef nonnull @.str.125, ptr noundef nonnull @.str.2, i32 noundef 2985) #11
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next72, 2000000
  br i1 %exitcond74.not, label %85, label %.preheader, !llvm.loop !19
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #9

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #10

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 = { 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 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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 #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !9, !12, !13}
!15 = distinct !{!15, !9, !13, !12}
!16 = distinct !{!16, !9, !12, !13}
!17 = distinct !{!17, !9, !12, !13}
!18 = distinct !{!18, !9, !13, !12}
!19 = distinct !{!19, !9}
!20 = distinct !{!20, !9, !12, !13}
!21 = distinct !{!21, !9, !12, !13}
!22 = distinct !{!22, !9, !13, !12}
!23 = distinct !{!23, !9, !12, !13}
!24 = distinct !{!24, !9, !12, !13}
!25 = distinct !{!25, !9, !13, !12}
!26 = distinct !{!26, !9, !12, !13}
!27 = distinct !{!27, !9, !12, !13}
!28 = distinct !{!28, !9, !13, !12}
!29 = distinct !{!29, !9}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass