; 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.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [48 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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

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

declare ptr @roaring_bitmap_copy(ptr noundef) #1

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

declare zeroext i1 @roaring_bitmap_equals(ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_xor_inplace(i1 noundef zeroext %0) #3 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [10 x ptr], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = zext i1 %0 to i8
  store i8 %14, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %15 = call ptr @roaring_bitmap_create()
  store ptr %15, ptr %3, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !9
  %17 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %18 = trunc i8 %17 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %16, i1 noundef zeroext %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %19 = call ptr @roaring_bitmap_create()
  store ptr %19, ptr %4, align 8, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  %21 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %22 = trunc i8 %21 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %20, i1 noundef zeroext %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %23

23:                                               ; preds = %42, %1
  %24 = load i32, ptr %5, align 4, !tbaa !13
  %25 = icmp ult i32 %24, 300
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %45

27:                                               ; preds = %23
  %28 = load i32, ptr %5, align 4, !tbaa !13
  %29 = urem i32 %28, 2
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  %32 = load ptr, ptr %3, align 8, !tbaa !9
  %33 = load i32, ptr %5, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %32, i32 noundef %33)
  br label %34

34:                                               ; preds = %31, %27
  %35 = load i32, ptr %5, align 4, !tbaa !13
  %36 = urem i32 %35, 3
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %34
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  %40 = load i32, ptr %5, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %39, i32 noundef %40)
  br label %41

41:                                               ; preds = %38, %34
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %5, align 4, !tbaa !13
  %44 = add i32 %43, 1
  store i32 %44, ptr %5, align 4, !tbaa !13
  br label %23, !llvm.loop !15

45:                                               ; preds = %26
  %46 = load ptr, ptr %3, align 8, !tbaa !9
  %47 = load ptr, ptr %4, align 8, !tbaa !9
  call void @roaring_bitmap_xor_inplace(ptr noundef %46, ptr noundef %47)
  %48 = load ptr, ptr %3, align 8, !tbaa !9
  %49 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %48)
  call void @_assert_int_equal(i64 noundef %49, i64 noundef 150, ptr noundef @.str.2, i32 noundef 1640)
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #4
  %52 = call ptr @gen_bitmap(double noundef 0.000000e+00, double noundef 0x3EB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %52, ptr %6, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %6, i64 1
  %54 = call ptr @gen_bitmap(double noundef 1.000000e+00, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %54, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %6, i64 2
  %56 = call ptr @gen_bitmap(double noundef 1.000000e-05, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %56, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %6, i64 3
  %58 = call ptr @gen_bitmap(double noundef 1.000000e-05, double noundef 0.000000e+00, i32 noundef 3, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %58, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %6, i64 4
  %60 = call ptr @gen_bitmap(double noundef 1.000000e-01, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %60, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %6, i64 5
  %62 = call ptr @gen_bitmap(double noundef 1.000000e-03, double noundef 0x3E7AD7F29ABCAF48, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %62, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %6, i64 6
  %64 = call ptr @gen_bitmap(double noundef 0.000000e+00, double noundef 1.000000e-10, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %64, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %6, i64 7
  %66 = call ptr @gen_bitmap(double noundef 5.000000e-01, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 600000, i32 noundef 800000, i32 noundef 1000000)
  store ptr %66, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %6, i64 8
  %68 = call ptr @gen_bitmap(double noundef 1.000000e+00, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 300000, i32 noundef 500000, i32 noundef 1000000)
  store ptr %68, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %6, i64 9
  store ptr null, ptr %69, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %70

70:                                               ; preds = %139, %45
  %71 = load i32, ptr %7, align 4, !tbaa !13
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = icmp ne ptr %74, null
  br i1 %75, label %77, label %76

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

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %78 = load i32, ptr %7, align 4, !tbaa !13
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %135, %77
  %81 = load i32, ptr %9, align 4, !tbaa !13
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = icmp ne ptr %84, null
  br i1 %85, label %87, label %86

86:                                               ; preds = %80
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %138

87:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %88 = load i32, ptr %7, align 4, !tbaa !13
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !13
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = call ptr @synthesized_xor(ptr noundef %91, ptr noundef %95)
  store ptr %96, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %97 = load i32, ptr %7, align 4, !tbaa !13
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = call ptr @roaring_bitmap_copy(ptr noundef %100)
  store ptr %101, ptr %11, align 8, !tbaa !9
  %102 = load ptr, ptr %11, align 8, !tbaa !9
  %103 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %104 = trunc i8 %103 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %102, i1 noundef zeroext %104)
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !13
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  call void @roaring_bitmap_xor_inplace(ptr noundef %105, ptr noundef %109)
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %110 = load ptr, ptr %10, align 8, !tbaa !9
  %111 = load ptr, ptr %11, align 8, !tbaa !9
  %112 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %110, ptr noundef %111)
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %12, align 1, !tbaa !5
  %114 = load i8, ptr %12, align 1, !tbaa !5, !range !11, !noundef !12
  %115 = trunc i8 %114 to i1
  br i1 %115, label %129, label %116

116:                                              ; preds = %87
  %117 = load i32, ptr %7, align 4, !tbaa !13
  %118 = load i32, ptr %9, align 4, !tbaa !13
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.100, i32 noundef %117, i32 noundef %118)
  %120 = load ptr, ptr %11, align 8, !tbaa !9
  %121 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %120)
  %122 = trunc i64 %121 to i32
  %123 = load ptr, ptr %10, align 8, !tbaa !9
  %124 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %123)
  %125 = trunc i64 %124 to i32
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.101, i32 noundef %122, i32 noundef %125)
  %127 = load ptr, ptr %11, align 8, !tbaa !9
  %128 = load ptr, ptr %10, align 8, !tbaa !9
  call void @show_difference(ptr noundef %127, ptr noundef %128)
  br label %129

129:                                              ; preds = %116, %87
  %130 = load i8, ptr %12, align 1, !tbaa !5, !range !11, !noundef !12
  %131 = trunc i8 %130 to i1
  %132 = zext i1 %131 to i64
  call void @_assert_true(i64 noundef %132, ptr noundef @.str.99, ptr noundef @.str.2, i32 noundef 1686)
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %133)
  %134 = load ptr, ptr %11, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %135

135:                                              ; preds = %129
  %136 = load i32, ptr %9, align 4, !tbaa !13
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !13
  br label %80, !llvm.loop !17

138:                                              ; preds = %86
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %7, align 4, !tbaa !13
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %7, align 4, !tbaa !13
  br label %70, !llvm.loop !18

142:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !13
  br label %143

143:                                              ; preds = %155, %142
  %144 = load i32, ptr %13, align 4, !tbaa !13
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = icmp ne ptr %147, null
  br i1 %148, label %150, label %149

149:                                              ; preds = %143
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %158

150:                                              ; preds = %143
  %151 = load i32, ptr %13, align 4, !tbaa !13
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %154)
  br label %155

155:                                              ; preds = %150
  %156 = load i32, ptr %13, align 4, !tbaa !13
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %13, align 4, !tbaa !13
  br label %143, !llvm.loop !19

158:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"_Bool", !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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #2

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

declare ptr @roaring_bitmap_create() local_unnamed_addr #2

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare void @roaring_bitmap_set_copy_on_write(ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare ptr @roaring_bitmap_copy(ptr noundef) local_unnamed_addr #2

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

declare zeroext i1 @roaring_bitmap_equals(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_assert_int_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @roaring_bitmap_xor_inplace(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_xor_inplace(i1 noundef zeroext %0) local_unnamed_addr #4 {
  %2 = alloca [10 x ptr], align 16
  %3 = tail call ptr @roaring_bitmap_create() #5
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %3, i1 noundef zeroext %0)
  %4 = tail call ptr @roaring_bitmap_create() #5
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %4, i1 noundef zeroext %0)
  br label %25

5:                                                ; preds = %33
  tail call void @roaring_bitmap_xor_inplace(ptr noundef %3, ptr noundef %4) #5
  %6 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %3) #5
  tail call void @_assert_int_equal(i64 noundef %6, i64 noundef 150, ptr noundef nonnull @.str.2, i32 noundef 1640) #5
  tail call void @roaring_bitmap_free(ptr noundef %4) #5
  tail call void @roaring_bitmap_free(ptr noundef %3) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #5
  %7 = tail call ptr @gen_bitmap(double noundef 0.000000e+00, double noundef 0x3EB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %7, ptr %2, align 16, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = tail call ptr @gen_bitmap(double noundef 1.000000e+00, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %9, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = tail call ptr @gen_bitmap(double noundef 1.000000e-05, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %11, ptr %10, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %2, i64 24
  %13 = tail call ptr @gen_bitmap(double noundef 1.000000e-05, double noundef 0.000000e+00, i32 noundef 3, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %13, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 32
  %15 = tail call ptr @gen_bitmap(double noundef 1.000000e-01, double noundef 0.000000e+00, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 2000000)
  store ptr %15, ptr %14, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %2, i64 40
  %17 = tail call ptr @gen_bitmap(double noundef 1.000000e-03, double noundef 0x3E7AD7F29ABCAF48, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %17, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %2, i64 48
  %19 = tail call ptr @gen_bitmap(double noundef 0.000000e+00, double noundef 1.000000e-10, i32 noundef 1, i32 noundef 0, i32 noundef 0, i32 noundef 1000000)
  store ptr %19, ptr %18, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %2, i64 56
  %21 = tail call ptr @gen_bitmap(double noundef 5.000000e-01, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 600000, i32 noundef 800000, i32 noundef 1000000)
  store ptr %21, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %2, i64 64
  %23 = tail call ptr @gen_bitmap(double noundef 1.000000e+00, double noundef 0xBEB0C6F7A0B5ED8D, i32 noundef 1, i32 noundef 300000, i32 noundef 500000, i32 noundef 1000000)
  store ptr %23, ptr %22, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr null, ptr %24, align 8, !tbaa !5
  %.not53 = icmp eq ptr %7, null
  br i1 %.not53, label %._crit_edge, label %.lr.ph55

25:                                               ; preds = %1, %33
  %.04350 = phi i32 [ 0, %1 ], [ %34, %33 ]
  %26 = and i32 %.04350, 1
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  tail call void @roaring_bitmap_add(ptr noundef %3, i32 noundef %.04350) #5
  br label %29

29:                                               ; preds = %28, %25
  %.lhs.trunc = trunc nuw i32 %.04350 to i16
  %30 = urem i16 %.lhs.trunc, 3
  %31 = icmp eq i16 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  tail call void @roaring_bitmap_add(ptr noundef %4, i32 noundef %.04350) #5
  br label %33

33:                                               ; preds = %29, %32
  %34 = add nuw nsw i32 %.04350, 1
  %exitcond.not = icmp eq i32 %34, 300
  br i1 %exitcond.not, label %5, label %25, !llvm.loop !9

.loopexit:                                        ; preds = %51
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  br i1 %.not4951, label %.preheader, label %.lr.ph55, !llvm.loop !11

.preheader:                                       ; preds = %.lr.ph55, %.loopexit
  br i1 %.not53, label %._crit_edge, label %.lr.ph58

.lr.ph55:                                         ; preds = %5, %.loopexit
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %.loopexit ], [ 0, %5 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 1, %5 ]
  %35 = phi ptr [ %37, %.loopexit ], [ %7, %5 ]
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %36 = getelementptr inbounds [10 x ptr], ptr %2, i64 0, i64 %indvars.iv.next63
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %.not4951 = icmp eq ptr %37, null
  br i1 %.not4951, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph55
  %38 = trunc nuw nsw i64 %indvars.iv62 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %51
  %indvars.iv59 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next60, %51 ]
  %39 = phi ptr [ %37, %.lr.ph.preheader ], [ %54, %51 ]
  %40 = tail call ptr @synthesized_xor(ptr noundef nonnull %35, ptr noundef nonnull %39)
  %41 = tail call ptr @roaring_bitmap_copy(ptr noundef nonnull %35) #5
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %41, i1 noundef zeroext %0)
  tail call void @roaring_bitmap_xor_inplace(ptr noundef %41, ptr noundef nonnull %39) #5
  %42 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %40, ptr noundef %41) #5
  br i1 %42, label %51, label %43

43:                                               ; preds = %.lr.ph
  %44 = trunc nuw nsw i64 %indvars.iv59 to i32
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.100, i32 noundef %38, i32 noundef %44)
  %46 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %41) #5
  %47 = trunc i64 %46 to i32
  %48 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %40) #5
  %49 = trunc i64 %48 to i32
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.101, i32 noundef %47, i32 noundef %49)
  tail call void @show_difference(ptr noundef %41, ptr noundef %40)
  br label %51

51:                                               ; preds = %43, %.lr.ph
  %52 = zext i1 %42 to i64
  tail call void @_assert_true(i64 noundef %52, ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.2, i32 noundef 1686) #5
  tail call void @roaring_bitmap_free(ptr noundef %40) #5
  tail call void @roaring_bitmap_free(ptr noundef %41) #5
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %53 = getelementptr inbounds [10 x ptr], ptr %2, i64 0, i64 %indvars.iv.next60
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %.not49 = icmp eq ptr %54, null
  br i1 %.not49, label %.loopexit, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph58, %5, %.preheader
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #5
  ret void

.lr.ph58:                                         ; preds = %.preheader, %.lr.ph58
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.lr.ph58 ], [ 0, %.preheader ]
  %55 = phi ptr [ %57, %.lr.ph58 ], [ %7, %.preheader ]
  tail call void @roaring_bitmap_free(ptr noundef nonnull %55) #5
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %56 = getelementptr inbounds [10 x ptr], ptr %2, i64 0, i64 %indvars.iv.next66
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %.not48 = icmp eq ptr %57, null
  br i1 %.not48, label %._crit_edge, label %.lr.ph58, !llvm.loop !13
}

; Function Attrs: nounwind uwtable
declare hidden void @show_difference(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass