; 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.122 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.test_inplace_rand_flips = external hidden unnamed_addr constant [31 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [51 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 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 ptr @roaring_bitmap_copy(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 void @roaring_bitmap_flip_inplace(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
declare void @srand(i32 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @test_inplace_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 ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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 = %189, %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 %192

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %30 = call ptr @roaring_bitmap_create()
  store ptr %30, ptr %8, align 8, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %31, 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 %32

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

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

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

56:                                               ; preds = %37
  br label %58

57:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.122, ptr noundef @.str.2, i32 noundef 3014, ptr noundef @__PRETTY_FUNCTION__.test_inplace_rand_flips) #11
  unreachable

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

61:                                               ; preds = %58
  br label %63

62:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.123, ptr noundef @.str.2, i32 noundef 3015, ptr noundef @__PRETTY_FUNCTION__.test_inplace_rand_flips) #11
  unreachable

63:                                               ; preds = %61
  %64 = load ptr, ptr %8, align 8, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !5
  call void @roaring_bitmap_add(ptr noundef %64, i32 noundef %65)
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %66, i64 %68
  store i8 1, ptr %69, 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 %70

70:                                               ; preds = %63
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %9, align 4, !tbaa !5
  br label %32, !llvm.loop !14

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

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

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

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

82:                                               ; preds = %100, %78
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = add nsw i32 %84, 131072
  %86 = icmp slt i32 %83, %85
  br i1 %86, label %88, label %87

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

88:                                               ; preds = %82
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = srem i32 %89, 147
  %91 = icmp slt i32 %90, 100
  br i1 %91, label %92, label %99

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

99:                                               ; preds = %92, %88
  br label %100

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

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

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

107:                                              ; preds = %77
  %108 = load ptr, ptr %8, align 8, !tbaa !9
  %109 = call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %108)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %110 = load ptr, ptr %8, align 8, !tbaa !9
  %111 = call ptr @roaring_bitmap_copy(ptr noundef %110)
  store ptr %111, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %183, %107
  %113 = load i32, ptr %18, align 4, !tbaa !5
  %114 = icmp slt i32 %113, 5
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %186

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

133:                                              ; preds = %153, %116
  %134 = load i32, ptr %21, align 4, !tbaa !5
  %135 = load i32, ptr %19, align 4, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = add nsw i32 %135, %136
  %138 = icmp slt i32 %134, %137
  br i1 %138, label %140, label %139

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

140:                                              ; preds = %133
  %141 = load ptr, ptr %4, align 8, !tbaa !9
  %142 = load i32, ptr %21, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %141, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !13
  %146 = sext i8 %145 to i32
  %147 = sub nsw i32 1, %146
  %148 = trunc i32 %147 to i8
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = load i32, ptr %21, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i8, ptr %149, i64 %151
  store i8 %148, ptr %152, align 1, !tbaa !13
  br label %153

153:                                              ; preds = %140
  %154 = load i32, ptr %21, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %21, align 4, !tbaa !5
  br label %133, !llvm.loop !18

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

157:                                              ; preds = %176, %156
  %158 = load i32, ptr %22, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 2000000
  br i1 %159, label %161, label %160

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

161:                                              ; preds = %157
  %162 = load ptr, ptr %5, align 8, !tbaa !9
  %163 = load i32, ptr %22, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %162, i64 %164
  %166 = load i8, ptr %165, align 1, !tbaa !13
  %167 = icmp ne i8 %166, 0
  %168 = zext i1 %167 to i32
  %169 = load ptr, ptr %8, align 8, !tbaa !9
  %170 = load i32, ptr %22, align 4, !tbaa !5
  %171 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %169, i32 noundef %170)
  %172 = zext i1 %171 to i32
  %173 = icmp eq i32 %168, %172
  %174 = zext i1 %173 to i32
  %175 = sext i32 %174 to i64
  call void @_assert_true(i64 noundef %175, ptr noundef @.str.126, ptr noundef @.str.2, i32 noundef 3041)
  br label %176

176:                                              ; preds = %161
  %177 = load i32, ptr %22, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %22, align 4, !tbaa !5
  br label %157, !llvm.loop !19

179:                                              ; preds = %160
  %180 = load ptr, ptr %8, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %180)
  %181 = load ptr, ptr %17, align 8, !tbaa !9
  %182 = call ptr @roaring_bitmap_copy(ptr noundef %181)
  store ptr %182, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %183

183:                                              ; preds = %179
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %18, align 4, !tbaa !5
  br label %112, !llvm.loop !20

186:                                              ; preds = %115
  %187 = load ptr, ptr %17, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %187)
  %188 = load ptr, ptr %8, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %188)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %189

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

192:                                              ; preds = %28
  %193 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %193) #9
  %194 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %194) #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: 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.122 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.test_inplace_rand_flips = external hidden unnamed_addr constant [31 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [51 x i8], align 1

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #0

declare ptr @roaring_bitmap_create() local_unnamed_addr #0

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

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

declare ptr @roaring_bitmap_copy(ptr noundef) local_unnamed_addr #0

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

declare void @roaring_bitmap_add(ptr noundef, i32 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 #3

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

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

declare void @roaring_bitmap_flip_inplace(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; 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) #6

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

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

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

4:                                                ; preds = %0, %249
  %.05871 = phi i32 [ 2, %0 ], [ %251, %249 ]
  %5 = tail call ptr @roaring_bitmap_create() #10
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(2000000) %1, i8 0, i64 2000000, i1 false)
  br label %6

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

23:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.122, ptr noundef nonnull @.str.2, i32 noundef 3014, ptr noundef nonnull @__PRETTY_FUNCTION__.test_inplace_rand_flips) #12
  unreachable

24:                                               ; preds = %6
  %25 = icmp sgt i32 %21, -1
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.123, ptr noundef nonnull @.str.2, i32 noundef 3015, ptr noundef nonnull @__PRETTY_FUNCTION__.test_inplace_rand_flips) #12
  unreachable

27:                                               ; preds = %24
  tail call void @roaring_bitmap_add(ptr noundef %5, i32 noundef %21) #10
  %28 = zext nneg i32 %21 to i64
  %29 = getelementptr inbounds i8, ptr %1, i64 %28
  store i8 1, ptr %29, align 1, !tbaa !5
  %30 = add nuw nsw i32 %.06265, 1
  %exitcond.not = icmp eq i32 %30, %.05871
  br i1 %exitcond.not, label %31, label %6, !llvm.loop !8

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

.critedge:                                        ; preds = %54
  %38 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %5) #10
  %39 = tail call ptr @roaring_bitmap_copy(ptr noundef %5) #10
  %40 = tail call i32 @our_rand()
  %.fr80 = freeze i32 %40
  %41 = urem i32 %.fr80, 1999999
  %42 = tail call i32 @our_rand()
  %43 = sub nuw nsw i32 2000000, %41
  %44 = urem i32 %42, %43
  %45 = zext nneg i32 %41 to i64
  %46 = add nuw nsw i32 %44, %41
  %47 = zext nneg i32 %46 to i64
  tail call void @roaring_bitmap_flip_inplace(ptr noundef %5, i64 noundef %45, i64 noundef %47) #10
  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 %44, 0
  br i1 %.not, label %.preheader.preheader, label %iter.check204

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

48:                                               ; preds = %31, %54
  %indvars.iv = phi i64 [ %36, %31 ], [ %indvars.iv.next, %54 ]
  %49 = trunc nuw i64 %indvars.iv to i32
  %50 = urem i32 %49, 147
  %51 = icmp ult i32 %50, 100
  br i1 %51, label %52, label %54

52:                                               ; preds = %48
  tail call void @roaring_bitmap_add(ptr noundef %5, i32 noundef %49) #10
  %53 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  store i8 1, ptr %53, align 1, !tbaa !5
  br label %54

54:                                               ; preds = %48, %52
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = icmp ult i64 %indvars.iv.next, %37
  br i1 %55, label %48, label %.critedge, !llvm.loop !10

iter.check204:                                    ; preds = %.critedge
  %56 = urem i32 %.fr80, 1999999
  %57 = zext nneg i32 %56 to i64
  %58 = zext i32 %.fr80 to i64
  %59 = add nuw nsw i64 %58, 1
  %60 = urem i64 %58, 1999999
  %61 = sub nuw nsw i64 %58, %60
  %62 = sub nsw i64 %59, %61
  %umax200 = tail call i64 @llvm.umax.i64(i64 %62, i64 %47)
  %63 = add i64 %umax200, %61
  %64 = sub i64 %63, %58
  %min.iters.check202 = icmp ult i64 %64, 8
  br i1 %min.iters.check202, label %.lr.ph.preheader, label %vector.main.loop.iter.check206

vector.main.loop.iter.check206:                   ; preds = %iter.check204
  %min.iters.check205 = icmp ult i64 %64, 32
  br i1 %min.iters.check205, label %vec.epilog.ph219, label %vector.ph207

vector.ph207:                                     ; preds = %vector.main.loop.iter.check206
  %n.vec209 = and i64 %64, -32
  br label %vector.body210

vector.body210:                                   ; preds = %vector.body210, %vector.ph207
  %index211 = phi i64 [ 0, %vector.ph207 ], [ %index.next215, %vector.body210 ]
  %offset.idx212 = add i64 %index211, %57
  %65 = getelementptr inbounds i8, ptr %1, i64 %offset.idx212
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load213 = load <16 x i8>, ptr %65, align 1, !tbaa !5
  %wide.load214 = load <16 x i8>, ptr %66, align 1, !tbaa !5
  %67 = 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.load213
  %68 = 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.load214
  %69 = getelementptr inbounds i8, ptr %2, i64 %offset.idx212
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <16 x i8> %67, ptr %69, align 1, !tbaa !5
  store <16 x i8> %68, ptr %70, align 1, !tbaa !5
  %index.next215 = add nuw i64 %index211, 32
  %71 = icmp eq i64 %index.next215, %n.vec209
  br i1 %71, label %middle.block201, label %vector.body210, !llvm.loop !11

middle.block201:                                  ; preds = %vector.body210
  %cmp.n216 = icmp eq i64 %64, %n.vec209
  br i1 %cmp.n216, label %.preheader.preheader, label %vec.epilog.iter.check220

vec.epilog.iter.check220:                         ; preds = %middle.block201
  %ind.end227 = add i64 %n.vec209, %57
  %n.vec.remaining221 = and i64 %64, 24
  %min.epilog.iters.check222 = icmp eq i64 %n.vec.remaining221, 0
  br i1 %min.epilog.iters.check222, label %.lr.ph.preheader, label %vec.epilog.ph219

vec.epilog.ph219:                                 ; preds = %vector.main.loop.iter.check206, %vec.epilog.iter.check220
  %vec.epilog.resume.val223 = phi i64 [ %n.vec209, %vec.epilog.iter.check220 ], [ 0, %vector.main.loop.iter.check206 ]
  %n.vec225 = and i64 %64, -8
  %ind.end226 = add i64 %n.vec225, %57
  br label %vec.epilog.vector.body229

vec.epilog.vector.body229:                        ; preds = %vec.epilog.vector.body229, %vec.epilog.ph219
  %index230 = phi i64 [ %vec.epilog.resume.val223, %vec.epilog.ph219 ], [ %index.next233, %vec.epilog.vector.body229 ]
  %offset.idx231 = add i64 %index230, %57
  %72 = getelementptr inbounds i8, ptr %1, i64 %offset.idx231
  %wide.load232 = load <8 x i8>, ptr %72, align 1, !tbaa !5
  %73 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load232
  %74 = getelementptr inbounds i8, ptr %2, i64 %offset.idx231
  store <8 x i8> %73, ptr %74, align 1, !tbaa !5
  %index.next233 = add nuw i64 %index230, 8
  %75 = icmp eq i64 %index.next233, %n.vec225
  br i1 %75, label %vec.epilog.middle.block217, label %vec.epilog.vector.body229, !llvm.loop !14

vec.epilog.middle.block217:                       ; preds = %vec.epilog.vector.body229
  %cmp.n234 = icmp eq i64 %64, %n.vec225
  br i1 %cmp.n234, label %.preheader.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block217, %iter.check204, %vec.epilog.iter.check220
  %indvars.iv72.ph = phi i64 [ %57, %iter.check204 ], [ %ind.end227, %vec.epilog.iter.check220 ], [ %ind.end226, %vec.epilog.middle.block217 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv72 = phi i64 [ %indvars.iv.next73, %.lr.ph ], [ %indvars.iv72.ph, %.lr.ph.preheader ]
  %76 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv72
  %77 = load i8, ptr %76, align 1, !tbaa !5
  %78 = sub i8 1, %77
  %79 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv72
  store i8 %78, ptr %79, align 1, !tbaa !5
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %80 = icmp ult i64 %indvars.iv.next73, %47
  br i1 %80, label %.lr.ph, label %.preheader.preheader, !llvm.loop !15

81:                                               ; preds = %.preheader
  tail call void @roaring_bitmap_free(ptr noundef %5) #10
  %82 = tail call ptr @roaring_bitmap_copy(ptr noundef %39) #10
  %83 = tail call i32 @our_rand()
  %.fr81 = freeze i32 %83
  %84 = urem i32 %.fr81, 1999999
  %85 = tail call i32 @our_rand()
  %86 = sub nuw nsw i32 2000000, %84
  %87 = urem i32 %85, %86
  %88 = zext nneg i32 %84 to i64
  %89 = add nuw nsw i32 %87, %84
  %90 = zext nneg i32 %89 to i64
  tail call void @roaring_bitmap_flip_inplace(ptr noundef %82, i64 noundef %88, i64 noundef %90) #10
  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 %87, 0
  br i1 %.not.1, label %.preheader.1.preheader, label %iter.check169

iter.check169:                                    ; preds = %81
  %91 = urem i32 %.fr81, 1999999
  %92 = zext nneg i32 %91 to i64
  %93 = zext i32 %.fr81 to i64
  %94 = add nuw nsw i64 %93, 1
  %95 = urem i64 %93, 1999999
  %96 = sub nuw nsw i64 %93, %95
  %97 = sub nsw i64 %94, %96
  %umax165 = tail call i64 @llvm.umax.i64(i64 %97, i64 %90)
  %98 = add i64 %umax165, %96
  %99 = sub i64 %98, %93
  %min.iters.check167 = icmp ult i64 %99, 8
  br i1 %min.iters.check167, label %.lr.ph.1.preheader, label %vector.main.loop.iter.check171

vector.main.loop.iter.check171:                   ; preds = %iter.check169
  %min.iters.check170 = icmp ult i64 %99, 32
  br i1 %min.iters.check170, label %vec.epilog.ph184, label %vector.ph172

vector.ph172:                                     ; preds = %vector.main.loop.iter.check171
  %n.vec174 = and i64 %99, -32
  br label %vector.body175

vector.body175:                                   ; preds = %vector.body175, %vector.ph172
  %index176 = phi i64 [ 0, %vector.ph172 ], [ %index.next180, %vector.body175 ]
  %offset.idx177 = add i64 %index176, %92
  %100 = getelementptr inbounds i8, ptr %1, i64 %offset.idx177
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %wide.load178 = load <16 x i8>, ptr %100, align 1, !tbaa !5
  %wide.load179 = load <16 x i8>, ptr %101, align 1, !tbaa !5
  %102 = 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.load178
  %103 = 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.load179
  %104 = getelementptr inbounds i8, ptr %2, i64 %offset.idx177
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  store <16 x i8> %102, ptr %104, align 1, !tbaa !5
  store <16 x i8> %103, ptr %105, align 1, !tbaa !5
  %index.next180 = add nuw i64 %index176, 32
  %106 = icmp eq i64 %index.next180, %n.vec174
  br i1 %106, label %middle.block166, label %vector.body175, !llvm.loop !16

middle.block166:                                  ; preds = %vector.body175
  %cmp.n181 = icmp eq i64 %99, %n.vec174
  br i1 %cmp.n181, label %.preheader.1.preheader, label %vec.epilog.iter.check185

vec.epilog.iter.check185:                         ; preds = %middle.block166
  %ind.end192 = add i64 %n.vec174, %92
  %n.vec.remaining186 = and i64 %99, 24
  %min.epilog.iters.check187 = icmp eq i64 %n.vec.remaining186, 0
  br i1 %min.epilog.iters.check187, label %.lr.ph.1.preheader, label %vec.epilog.ph184

vec.epilog.ph184:                                 ; preds = %vector.main.loop.iter.check171, %vec.epilog.iter.check185
  %vec.epilog.resume.val188 = phi i64 [ %n.vec174, %vec.epilog.iter.check185 ], [ 0, %vector.main.loop.iter.check171 ]
  %n.vec190 = and i64 %99, -8
  %ind.end191 = add i64 %n.vec190, %92
  br label %vec.epilog.vector.body194

vec.epilog.vector.body194:                        ; preds = %vec.epilog.vector.body194, %vec.epilog.ph184
  %index195 = phi i64 [ %vec.epilog.resume.val188, %vec.epilog.ph184 ], [ %index.next198, %vec.epilog.vector.body194 ]
  %offset.idx196 = add i64 %index195, %92
  %107 = getelementptr inbounds i8, ptr %1, i64 %offset.idx196
  %wide.load197 = load <8 x i8>, ptr %107, align 1, !tbaa !5
  %108 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load197
  %109 = getelementptr inbounds i8, ptr %2, i64 %offset.idx196
  store <8 x i8> %108, ptr %109, align 1, !tbaa !5
  %index.next198 = add nuw i64 %index195, 8
  %110 = icmp eq i64 %index.next198, %n.vec190
  br i1 %110, label %vec.epilog.middle.block182, label %vec.epilog.vector.body194, !llvm.loop !17

vec.epilog.middle.block182:                       ; preds = %vec.epilog.vector.body194
  %cmp.n199 = icmp eq i64 %99, %n.vec190
  br i1 %cmp.n199, label %.preheader.1.preheader, label %.lr.ph.1.preheader

.lr.ph.1.preheader:                               ; preds = %vec.epilog.middle.block182, %iter.check169, %vec.epilog.iter.check185
  %indvars.iv72.1.ph = phi i64 [ %92, %iter.check169 ], [ %ind.end192, %vec.epilog.iter.check185 ], [ %ind.end191, %vec.epilog.middle.block182 ]
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1.preheader, %.lr.ph.1
  %indvars.iv72.1 = phi i64 [ %indvars.iv.next73.1, %.lr.ph.1 ], [ %indvars.iv72.1.ph, %.lr.ph.1.preheader ]
  %111 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv72.1
  %112 = load i8, ptr %111, align 1, !tbaa !5
  %113 = sub i8 1, %112
  %114 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv72.1
  store i8 %113, ptr %114, align 1, !tbaa !5
  %indvars.iv.next73.1 = add nuw nsw i64 %indvars.iv72.1, 1
  %115 = icmp ult i64 %indvars.iv.next73.1, %90
  br i1 %115, label %.lr.ph.1, label %.preheader.1.preheader, !llvm.loop !18

.preheader.1.preheader:                           ; preds = %.lr.ph.1, %middle.block166, %vec.epilog.middle.block182, %81
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.1.preheader, %.preheader.1
  %indvars.iv74.1 = phi i64 [ %indvars.iv.next75.1, %.preheader.1 ], [ 0, %.preheader.1.preheader ]
  %116 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv74.1
  %117 = load i8, ptr %116, align 1, !tbaa !5
  %118 = trunc nuw nsw i64 %indvars.iv74.1 to i32
  %119 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %82, i32 noundef %118)
  %120 = icmp eq i8 %117, 0
  %121 = xor i1 %120, %119
  %122 = zext i1 %121 to i64
  tail call void @_assert_true(i64 noundef %122, ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.2, i32 noundef 3041) #10
  %indvars.iv.next75.1 = add nuw nsw i64 %indvars.iv74.1, 1
  %exitcond77.1.not = icmp eq i64 %indvars.iv.next75.1, 2000000
  br i1 %exitcond77.1.not, label %123, label %.preheader.1, !llvm.loop !19

123:                                              ; preds = %.preheader.1
  tail call void @roaring_bitmap_free(ptr noundef %82) #10
  %124 = tail call ptr @roaring_bitmap_copy(ptr noundef %39) #10
  %125 = tail call i32 @our_rand()
  %.fr82 = freeze i32 %125
  %126 = urem i32 %.fr82, 1999999
  %127 = tail call i32 @our_rand()
  %128 = sub nuw nsw i32 2000000, %126
  %129 = urem i32 %127, %128
  %130 = zext nneg i32 %126 to i64
  %131 = add nuw nsw i32 %129, %126
  %132 = zext nneg i32 %131 to i64
  tail call void @roaring_bitmap_flip_inplace(ptr noundef %124, i64 noundef %130, i64 noundef %132) #10
  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 %129, 0
  br i1 %.not.2, label %.preheader.2.preheader, label %iter.check134

iter.check134:                                    ; preds = %123
  %133 = urem i32 %.fr82, 1999999
  %134 = zext nneg i32 %133 to i64
  %135 = zext i32 %.fr82 to i64
  %136 = add nuw nsw i64 %135, 1
  %137 = urem i64 %135, 1999999
  %138 = sub nuw nsw i64 %135, %137
  %139 = sub nsw i64 %136, %138
  %umax130 = tail call i64 @llvm.umax.i64(i64 %139, i64 %132)
  %140 = add i64 %umax130, %138
  %141 = sub i64 %140, %135
  %min.iters.check132 = icmp ult i64 %141, 8
  br i1 %min.iters.check132, label %.lr.ph.2.preheader, label %vector.main.loop.iter.check136

vector.main.loop.iter.check136:                   ; preds = %iter.check134
  %min.iters.check135 = icmp ult i64 %141, 32
  br i1 %min.iters.check135, label %vec.epilog.ph149, label %vector.ph137

vector.ph137:                                     ; preds = %vector.main.loop.iter.check136
  %n.vec139 = and i64 %141, -32
  br label %vector.body140

vector.body140:                                   ; preds = %vector.body140, %vector.ph137
  %index141 = phi i64 [ 0, %vector.ph137 ], [ %index.next145, %vector.body140 ]
  %offset.idx142 = add i64 %index141, %134
  %142 = getelementptr inbounds i8, ptr %1, i64 %offset.idx142
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  %wide.load143 = load <16 x i8>, ptr %142, align 1, !tbaa !5
  %wide.load144 = load <16 x i8>, ptr %143, align 1, !tbaa !5
  %144 = 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.load143
  %145 = 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.load144
  %146 = getelementptr inbounds i8, ptr %2, i64 %offset.idx142
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  store <16 x i8> %144, ptr %146, align 1, !tbaa !5
  store <16 x i8> %145, ptr %147, align 1, !tbaa !5
  %index.next145 = add nuw i64 %index141, 32
  %148 = icmp eq i64 %index.next145, %n.vec139
  br i1 %148, label %middle.block131, label %vector.body140, !llvm.loop !20

middle.block131:                                  ; preds = %vector.body140
  %cmp.n146 = icmp eq i64 %141, %n.vec139
  br i1 %cmp.n146, label %.preheader.2.preheader, label %vec.epilog.iter.check150

vec.epilog.iter.check150:                         ; preds = %middle.block131
  %ind.end157 = add i64 %n.vec139, %134
  %n.vec.remaining151 = and i64 %141, 24
  %min.epilog.iters.check152 = icmp eq i64 %n.vec.remaining151, 0
  br i1 %min.epilog.iters.check152, label %.lr.ph.2.preheader, label %vec.epilog.ph149

vec.epilog.ph149:                                 ; preds = %vector.main.loop.iter.check136, %vec.epilog.iter.check150
  %vec.epilog.resume.val153 = phi i64 [ %n.vec139, %vec.epilog.iter.check150 ], [ 0, %vector.main.loop.iter.check136 ]
  %n.vec155 = and i64 %141, -8
  %ind.end156 = add i64 %n.vec155, %134
  br label %vec.epilog.vector.body159

vec.epilog.vector.body159:                        ; preds = %vec.epilog.vector.body159, %vec.epilog.ph149
  %index160 = phi i64 [ %vec.epilog.resume.val153, %vec.epilog.ph149 ], [ %index.next163, %vec.epilog.vector.body159 ]
  %offset.idx161 = add i64 %index160, %134
  %149 = getelementptr inbounds i8, ptr %1, i64 %offset.idx161
  %wide.load162 = load <8 x i8>, ptr %149, align 1, !tbaa !5
  %150 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load162
  %151 = getelementptr inbounds i8, ptr %2, i64 %offset.idx161
  store <8 x i8> %150, ptr %151, align 1, !tbaa !5
  %index.next163 = add nuw i64 %index160, 8
  %152 = icmp eq i64 %index.next163, %n.vec155
  br i1 %152, label %vec.epilog.middle.block147, label %vec.epilog.vector.body159, !llvm.loop !21

vec.epilog.middle.block147:                       ; preds = %vec.epilog.vector.body159
  %cmp.n164 = icmp eq i64 %141, %n.vec155
  br i1 %cmp.n164, label %.preheader.2.preheader, label %.lr.ph.2.preheader

.lr.ph.2.preheader:                               ; preds = %vec.epilog.middle.block147, %iter.check134, %vec.epilog.iter.check150
  %indvars.iv72.2.ph = phi i64 [ %134, %iter.check134 ], [ %ind.end157, %vec.epilog.iter.check150 ], [ %ind.end156, %vec.epilog.middle.block147 ]
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.lr.ph.2.preheader, %.lr.ph.2
  %indvars.iv72.2 = phi i64 [ %indvars.iv.next73.2, %.lr.ph.2 ], [ %indvars.iv72.2.ph, %.lr.ph.2.preheader ]
  %153 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv72.2
  %154 = load i8, ptr %153, align 1, !tbaa !5
  %155 = sub i8 1, %154
  %156 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv72.2
  store i8 %155, ptr %156, align 1, !tbaa !5
  %indvars.iv.next73.2 = add nuw nsw i64 %indvars.iv72.2, 1
  %157 = icmp ult i64 %indvars.iv.next73.2, %132
  br i1 %157, label %.lr.ph.2, label %.preheader.2.preheader, !llvm.loop !22

.preheader.2.preheader:                           ; preds = %.lr.ph.2, %middle.block131, %vec.epilog.middle.block147, %123
  br label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.2.preheader, %.preheader.2
  %indvars.iv74.2 = phi i64 [ %indvars.iv.next75.2, %.preheader.2 ], [ 0, %.preheader.2.preheader ]
  %158 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv74.2
  %159 = load i8, ptr %158, align 1, !tbaa !5
  %160 = trunc nuw nsw i64 %indvars.iv74.2 to i32
  %161 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %124, i32 noundef %160)
  %162 = icmp eq i8 %159, 0
  %163 = xor i1 %162, %161
  %164 = zext i1 %163 to i64
  tail call void @_assert_true(i64 noundef %164, ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.2, i32 noundef 3041) #10
  %indvars.iv.next75.2 = add nuw nsw i64 %indvars.iv74.2, 1
  %exitcond77.2.not = icmp eq i64 %indvars.iv.next75.2, 2000000
  br i1 %exitcond77.2.not, label %165, label %.preheader.2, !llvm.loop !19

165:                                              ; preds = %.preheader.2
  tail call void @roaring_bitmap_free(ptr noundef %124) #10
  %166 = tail call ptr @roaring_bitmap_copy(ptr noundef %39) #10
  %167 = tail call i32 @our_rand()
  %.fr83 = freeze i32 %167
  %168 = urem i32 %.fr83, 1999999
  %169 = tail call i32 @our_rand()
  %170 = sub nuw nsw i32 2000000, %168
  %171 = urem i32 %169, %170
  %172 = zext nneg i32 %168 to i64
  %173 = add nuw nsw i32 %171, %168
  %174 = zext nneg i32 %173 to i64
  tail call void @roaring_bitmap_flip_inplace(ptr noundef %166, i64 noundef %172, i64 noundef %174) #10
  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 %171, 0
  br i1 %.not.3, label %.preheader.3.preheader, label %iter.check99

iter.check99:                                     ; preds = %165
  %175 = urem i32 %.fr83, 1999999
  %176 = zext nneg i32 %175 to i64
  %177 = zext i32 %.fr83 to i64
  %178 = add nuw nsw i64 %177, 1
  %179 = urem i64 %177, 1999999
  %180 = sub nuw nsw i64 %177, %179
  %181 = sub nsw i64 %178, %180
  %umax95 = tail call i64 @llvm.umax.i64(i64 %181, i64 %174)
  %182 = add i64 %umax95, %180
  %183 = sub i64 %182, %177
  %min.iters.check97 = icmp ult i64 %183, 8
  br i1 %min.iters.check97, label %.lr.ph.3.preheader, label %vector.main.loop.iter.check101

vector.main.loop.iter.check101:                   ; preds = %iter.check99
  %min.iters.check100 = icmp ult i64 %183, 32
  br i1 %min.iters.check100, label %vec.epilog.ph114, label %vector.ph102

vector.ph102:                                     ; preds = %vector.main.loop.iter.check101
  %n.vec104 = and i64 %183, -32
  br label %vector.body105

vector.body105:                                   ; preds = %vector.body105, %vector.ph102
  %index106 = phi i64 [ 0, %vector.ph102 ], [ %index.next110, %vector.body105 ]
  %offset.idx107 = add i64 %index106, %176
  %184 = getelementptr inbounds i8, ptr %1, i64 %offset.idx107
  %185 = getelementptr inbounds i8, ptr %184, i64 16
  %wide.load108 = load <16 x i8>, ptr %184, align 1, !tbaa !5
  %wide.load109 = load <16 x i8>, ptr %185, align 1, !tbaa !5
  %186 = 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.load108
  %187 = 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.load109
  %188 = getelementptr inbounds i8, ptr %2, i64 %offset.idx107
  %189 = getelementptr inbounds i8, ptr %188, i64 16
  store <16 x i8> %186, ptr %188, align 1, !tbaa !5
  store <16 x i8> %187, ptr %189, align 1, !tbaa !5
  %index.next110 = add nuw i64 %index106, 32
  %190 = icmp eq i64 %index.next110, %n.vec104
  br i1 %190, label %middle.block96, label %vector.body105, !llvm.loop !23

middle.block96:                                   ; preds = %vector.body105
  %cmp.n111 = icmp eq i64 %183, %n.vec104
  br i1 %cmp.n111, label %.preheader.3.preheader, label %vec.epilog.iter.check115

vec.epilog.iter.check115:                         ; preds = %middle.block96
  %ind.end122 = add i64 %n.vec104, %176
  %n.vec.remaining116 = and i64 %183, 24
  %min.epilog.iters.check117 = icmp eq i64 %n.vec.remaining116, 0
  br i1 %min.epilog.iters.check117, label %.lr.ph.3.preheader, label %vec.epilog.ph114

vec.epilog.ph114:                                 ; preds = %vector.main.loop.iter.check101, %vec.epilog.iter.check115
  %vec.epilog.resume.val118 = phi i64 [ %n.vec104, %vec.epilog.iter.check115 ], [ 0, %vector.main.loop.iter.check101 ]
  %n.vec120 = and i64 %183, -8
  %ind.end121 = add i64 %n.vec120, %176
  br label %vec.epilog.vector.body124

vec.epilog.vector.body124:                        ; preds = %vec.epilog.vector.body124, %vec.epilog.ph114
  %index125 = phi i64 [ %vec.epilog.resume.val118, %vec.epilog.ph114 ], [ %index.next128, %vec.epilog.vector.body124 ]
  %offset.idx126 = add i64 %index125, %176
  %191 = getelementptr inbounds i8, ptr %1, i64 %offset.idx126
  %wide.load127 = load <8 x i8>, ptr %191, align 1, !tbaa !5
  %192 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load127
  %193 = getelementptr inbounds i8, ptr %2, i64 %offset.idx126
  store <8 x i8> %192, ptr %193, align 1, !tbaa !5
  %index.next128 = add nuw i64 %index125, 8
  %194 = icmp eq i64 %index.next128, %n.vec120
  br i1 %194, label %vec.epilog.middle.block112, label %vec.epilog.vector.body124, !llvm.loop !24

vec.epilog.middle.block112:                       ; preds = %vec.epilog.vector.body124
  %cmp.n129 = icmp eq i64 %183, %n.vec120
  br i1 %cmp.n129, label %.preheader.3.preheader, label %.lr.ph.3.preheader

.lr.ph.3.preheader:                               ; preds = %vec.epilog.middle.block112, %iter.check99, %vec.epilog.iter.check115
  %indvars.iv72.3.ph = phi i64 [ %176, %iter.check99 ], [ %ind.end122, %vec.epilog.iter.check115 ], [ %ind.end121, %vec.epilog.middle.block112 ]
  br label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.lr.ph.3.preheader, %.lr.ph.3
  %indvars.iv72.3 = phi i64 [ %indvars.iv.next73.3, %.lr.ph.3 ], [ %indvars.iv72.3.ph, %.lr.ph.3.preheader ]
  %195 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv72.3
  %196 = load i8, ptr %195, align 1, !tbaa !5
  %197 = sub i8 1, %196
  %198 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv72.3
  store i8 %197, ptr %198, align 1, !tbaa !5
  %indvars.iv.next73.3 = add nuw nsw i64 %indvars.iv72.3, 1
  %199 = icmp ult i64 %indvars.iv.next73.3, %174
  br i1 %199, label %.lr.ph.3, label %.preheader.3.preheader, !llvm.loop !25

.preheader.3.preheader:                           ; preds = %.lr.ph.3, %middle.block96, %vec.epilog.middle.block112, %165
  br label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.3.preheader, %.preheader.3
  %indvars.iv74.3 = phi i64 [ %indvars.iv.next75.3, %.preheader.3 ], [ 0, %.preheader.3.preheader ]
  %200 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv74.3
  %201 = load i8, ptr %200, align 1, !tbaa !5
  %202 = trunc nuw nsw i64 %indvars.iv74.3 to i32
  %203 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %166, i32 noundef %202)
  %204 = icmp eq i8 %201, 0
  %205 = xor i1 %204, %203
  %206 = zext i1 %205 to i64
  tail call void @_assert_true(i64 noundef %206, ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.2, i32 noundef 3041) #10
  %indvars.iv.next75.3 = add nuw nsw i64 %indvars.iv74.3, 1
  %exitcond77.3.not = icmp eq i64 %indvars.iv.next75.3, 2000000
  br i1 %exitcond77.3.not, label %207, label %.preheader.3, !llvm.loop !19

207:                                              ; preds = %.preheader.3
  tail call void @roaring_bitmap_free(ptr noundef %166) #10
  %208 = tail call ptr @roaring_bitmap_copy(ptr noundef %39) #10
  %209 = tail call i32 @our_rand()
  %.fr84 = freeze i32 %209
  %210 = urem i32 %.fr84, 1999999
  %211 = tail call i32 @our_rand()
  %212 = sub nuw nsw i32 2000000, %210
  %213 = urem i32 %211, %212
  %214 = zext nneg i32 %210 to i64
  %215 = add nuw nsw i32 %213, %210
  %216 = zext nneg i32 %215 to i64
  tail call void @roaring_bitmap_flip_inplace(ptr noundef %208, i64 noundef %214, i64 noundef %216) #10
  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 %213, 0
  br i1 %.not.4, label %.preheader.4.preheader, label %iter.check

iter.check:                                       ; preds = %207
  %217 = urem i32 %.fr84, 1999999
  %218 = zext nneg i32 %217 to i64
  %219 = zext i32 %.fr84 to i64
  %220 = add nuw nsw i64 %219, 1
  %221 = urem i64 %219, 1999999
  %222 = sub nuw nsw i64 %219, %221
  %223 = sub nsw i64 %220, %222
  %umax = tail call i64 @llvm.umax.i64(i64 %223, i64 %216)
  %224 = add i64 %umax, %222
  %225 = sub i64 %224, %219
  %min.iters.check = icmp ult i64 %225, 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.check85 = icmp ult i64 %225, 32
  br i1 %min.iters.check85, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %225, -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, %218
  %226 = getelementptr inbounds i8, ptr %1, i64 %offset.idx
  %227 = getelementptr inbounds i8, ptr %226, i64 16
  %wide.load = load <16 x i8>, ptr %226, align 1, !tbaa !5
  %wide.load86 = load <16 x i8>, ptr %227, align 1, !tbaa !5
  %228 = 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
  %229 = 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.load86
  %230 = getelementptr inbounds i8, ptr %2, i64 %offset.idx
  %231 = getelementptr inbounds i8, ptr %230, i64 16
  store <16 x i8> %228, ptr %230, align 1, !tbaa !5
  store <16 x i8> %229, ptr %231, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 32
  %232 = icmp eq i64 %index.next, %n.vec
  br i1 %232, label %middle.block, label %vector.body, !llvm.loop !26

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end89 = add i64 %n.vec, %218
  %n.vec.remaining = and i64 %225, 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.vec88 = and i64 %225, -8
  %ind.end = add i64 %n.vec88, %218
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index90 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next93, %vec.epilog.vector.body ]
  %offset.idx91 = add i64 %index90, %218
  %233 = getelementptr inbounds i8, ptr %1, i64 %offset.idx91
  %wide.load92 = load <8 x i8>, ptr %233, align 1, !tbaa !5
  %234 = sub <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>, %wide.load92
  %235 = getelementptr inbounds i8, ptr %2, i64 %offset.idx91
  store <8 x i8> %234, ptr %235, align 1, !tbaa !5
  %index.next93 = add nuw i64 %index90, 8
  %236 = icmp eq i64 %index.next93, %n.vec88
  br i1 %236, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !27

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n94 = icmp eq i64 %225, %n.vec88
  br i1 %cmp.n94, 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.iv72.4.ph = phi i64 [ %218, %iter.check ], [ %ind.end89, %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.iv72.4 = phi i64 [ %indvars.iv.next73.4, %.lr.ph.4 ], [ %indvars.iv72.4.ph, %.lr.ph.4.preheader ]
  %237 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv72.4
  %238 = load i8, ptr %237, align 1, !tbaa !5
  %239 = sub i8 1, %238
  %240 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv72.4
  store i8 %239, ptr %240, align 1, !tbaa !5
  %indvars.iv.next73.4 = add nuw nsw i64 %indvars.iv72.4, 1
  %241 = icmp ult i64 %indvars.iv.next73.4, %216
  br i1 %241, label %.lr.ph.4, label %.preheader.4.preheader, !llvm.loop !28

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

.preheader.4:                                     ; preds = %.preheader.4.preheader, %.preheader.4
  %indvars.iv74.4 = phi i64 [ %indvars.iv.next75.4, %.preheader.4 ], [ 0, %.preheader.4.preheader ]
  %242 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv74.4
  %243 = load i8, ptr %242, align 1, !tbaa !5
  %244 = trunc nuw nsw i64 %indvars.iv74.4 to i32
  %245 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %208, i32 noundef %244)
  %246 = icmp eq i8 %243, 0
  %247 = xor i1 %246, %245
  %248 = zext i1 %247 to i64
  tail call void @_assert_true(i64 noundef %248, ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.2, i32 noundef 3041) #10
  %indvars.iv.next75.4 = add nuw nsw i64 %indvars.iv74.4, 1
  %exitcond77.4.not = icmp eq i64 %indvars.iv.next75.4, 2000000
  br i1 %exitcond77.4.not, label %249, label %.preheader.4, !llvm.loop !19

249:                                              ; preds = %.preheader.4
  tail call void @roaring_bitmap_free(ptr noundef %208) #10
  %250 = tail call ptr @roaring_bitmap_copy(ptr noundef %39) #10
  tail call void @roaring_bitmap_free(ptr noundef %39) #10
  tail call void @roaring_bitmap_free(ptr noundef %250) #10
  %251 = shl nuw nsw i32 %.05871, 3
  %252 = icmp ult i32 %.05871, 125000
  br i1 %252, label %4, label %3, !llvm.loop !29

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %.preheader ], [ 0, %.preheader.preheader ]
  %253 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv74
  %254 = load i8, ptr %253, align 1, !tbaa !5
  %255 = trunc nuw nsw i64 %indvars.iv74 to i32
  %256 = tail call zeroext i1 @roaring_bitmap_contains(ptr noundef %5, i32 noundef %255)
  %257 = icmp eq i8 %254, 0
  %258 = xor i1 %257, %256
  %259 = zext i1 %258 to i64
  tail call void @_assert_true(i64 noundef %259, ptr noundef nonnull @.str.126, ptr noundef nonnull @.str.2, i32 noundef 3041) #10
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next75, 2000000
  br i1 %exitcond77.not, label %81, label %.preheader, !llvm.loop !19
}

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { 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,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass