; 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.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [109 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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

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

declare void @run_container_free(ptr noundef) #1

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

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

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

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

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

declare ptr @roaring_bitmap_of(i64 noundef, ...) #1

declare zeroext i1 @roaring_bitmap_run_optimize(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @test_serialize() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %21 = call ptr (i64, ...) @roaring_bitmap_of(i64 noundef 8, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 100, i32 noundef 1000, i32 noundef 10000, i32 noundef 1000000, i32 noundef 20000000)
  store ptr %21, ptr %1, align 8, !tbaa !5
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = ptrtoint ptr %22 to i64
  call void @_assert_true(i64 noundef %23, ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 1112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 384000, ptr %6, align 4, !tbaa !9
  br label %24

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

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %36

29:                                               ; preds = %24
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = mul nsw i32 3, %31
  call void @roaring_bitmap_add(ptr noundef %30, i32 noundef %32)
  br label %33

33:                                               ; preds = %29
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !9
  br label %24, !llvm.loop !11

36:                                               ; preds = %28
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %37)
  %39 = call noalias ptr @malloc(i64 noundef %38) #6
  store ptr %39, ptr %3, align 8, !tbaa !5
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call i64 @roaring_bitmap_serialize(ptr noundef %40, ptr noundef %41)
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %2, align 4, !tbaa !9
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = load ptr, ptr %1, align 8, !tbaa !5
  %47 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %46)
  call void @_assert_int_equal(i64 noundef %45, i64 noundef %47, ptr noundef @.str.2, i32 noundef 1123)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call ptr @roaring_bitmap_deserialize(ptr noundef %48)
  store ptr %49, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = ptrtoint ptr %50 to i64
  call void @_assert_true(i64 noundef %51, ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 1125)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %52)
  store i64 %53, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %54 = load i64, ptr %7, align 8, !tbaa !13
  %55 = mul i64 %54, 4
  %56 = call noalias ptr @malloc(i64 noundef %55) #6
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %1, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %57, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %59)
  store i64 %60, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %61 = load i64, ptr %9, align 8, !tbaa !13
  %62 = mul i64 %61, 4
  %63 = call noalias ptr @malloc(i64 noundef %62) #6
  store ptr %63, ptr %10, align 8, !tbaa !5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %64, ptr noundef %65)
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i64, ptr %7, align 8, !tbaa !13
  %68 = trunc i64 %67 to i32
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !13
  %71 = trunc i64 %70 to i32
  %72 = call i32 @array_equals(ptr noundef %66, i32 noundef %68, ptr noundef %69, i32 noundef %71)
  %73 = sext i32 %72 to i64
  call void @_assert_true(i64 noundef %73, ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 1135)
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %74, ptr noundef %75)
  %77 = zext i1 %76 to i64
  call void @_assert_true(i64 noundef %77, ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 1136)
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %78) #5
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %79) #5
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %80) #5
  %81 = load ptr, ptr %1, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %81)
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %83 = call ptr @run_container_create_given_capacity(i32 noundef 1024)
  store ptr %83, ptr %11, align 8, !tbaa !5
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = ptrtoint ptr %84 to i64
  call void @_assert_true(i64 noundef %85, ptr noundef @.str.81, ptr noundef @.str.2, i32 noundef 1144)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %96, %36
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 768
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %99

90:                                               ; preds = %86
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = mul nsw i32 3, %92
  %94 = trunc i32 %93 to i16
  %95 = call zeroext i1 @run_container_add(ptr noundef %91, i16 noundef zeroext %94)
  br label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %12, align 4, !tbaa !9
  br label %86, !llvm.loop !15

99:                                               ; preds = %89
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = call i32 @run_container_serialization_len(ptr noundef %100)
  store i32 %101, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %102 = load i32, ptr %2, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = call noalias ptr @malloc(i64 noundef %103) #6
  store ptr %104, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %2, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = call i32 @run_container_serialize(ptr noundef %107, ptr noundef %108)
  %110 = sext i32 %109 to i64
  call void @_assert_int_equal(i64 noundef %106, i64 noundef %110, ptr noundef @.str.2, i32 noundef 1150)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = load i32, ptr %2, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = call ptr @run_container_deserialize(ptr noundef %111, i64 noundef %113)
  store ptr %114, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %115) #5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %116)
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %117)
  %118 = call ptr (i64, ...) @roaring_bitmap_of(i64 noundef 6, i32 noundef 2946000, i32 noundef 2997491, i32 noundef 10478289, i32 noundef 10490227, i32 noundef 10502444, i32 noundef 19866827)
  store ptr %118, ptr %1, align 8, !tbaa !5
  %119 = load ptr, ptr %1, align 8, !tbaa !5
  %120 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %119)
  %121 = call noalias ptr @malloc(i64 noundef %120) #6
  store ptr %121, ptr %3, align 8, !tbaa !5
  %122 = load ptr, ptr %1, align 8, !tbaa !5
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = call i64 @roaring_bitmap_serialize(ptr noundef %122, ptr noundef %123)
  %125 = trunc i64 %124 to i32
  store i32 %125, ptr %2, align 4, !tbaa !9
  %126 = load i32, ptr %2, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load ptr, ptr %1, align 8, !tbaa !5
  %129 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %128)
  call void @_assert_int_equal(i64 noundef %127, i64 noundef %129, ptr noundef @.str.2, i32 noundef 1162)
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = call ptr @roaring_bitmap_deserialize(ptr noundef %130)
  store ptr %131, ptr %4, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = ptrtoint ptr %132 to i64
  call void @_assert_true(i64 noundef %133, ptr noundef @.str.48, ptr noundef @.str.2, i32 noundef 1164)
  %134 = load ptr, ptr %1, align 8, !tbaa !5
  %135 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %134)
  store i64 %135, ptr %7, align 8, !tbaa !13
  %136 = load i64, ptr %7, align 8, !tbaa !13
  %137 = mul i64 %136, 4
  %138 = call noalias ptr @malloc(i64 noundef %137) #6
  store ptr %138, ptr %8, align 8, !tbaa !5
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = ptrtoint ptr %139 to i64
  call void @_assert_true(i64 noundef %140, ptr noundef @.str.82, ptr noundef @.str.2, i32 noundef 1168)
  %141 = load ptr, ptr %1, align 8, !tbaa !5
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %141, ptr noundef %142)
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %143)
  store i64 %144, ptr %9, align 8, !tbaa !13
  %145 = load i64, ptr %9, align 8, !tbaa !13
  %146 = mul i64 %145, 4
  %147 = call noalias ptr @malloc(i64 noundef %146) #6
  store ptr %147, ptr %10, align 8, !tbaa !5
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = ptrtoint ptr %148 to i64
  call void @_assert_true(i64 noundef %149, ptr noundef @.str.83, ptr noundef @.str.2, i32 noundef 1173)
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %150, ptr noundef %151)
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load i64, ptr %7, align 8, !tbaa !13
  %154 = trunc i64 %153 to i32
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load i64, ptr %9, align 8, !tbaa !13
  %157 = trunc i64 %156 to i32
  %158 = call i32 @array_equals(ptr noundef %152, i32 noundef %154, ptr noundef %155, i32 noundef %157)
  %159 = sext i32 %158 to i64
  call void @_assert_true(i64 noundef %159, ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 1176)
  %160 = load ptr, ptr %1, align 8, !tbaa !5
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %160, ptr noundef %161)
  %163 = zext i1 %162 to i64
  call void @_assert_true(i64 noundef %163, ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 1177)
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %164) #5
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %165) #5
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %166) #5
  %167 = load ptr, ptr %1, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %167)
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %168)
  %169 = call ptr @roaring_bitmap_create()
  store ptr %169, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 100, ptr %15, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %177, %99
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = icmp ult i32 %171, 100000
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %180

174:                                              ; preds = %170
  %175 = load ptr, ptr %1, align 8, !tbaa !5
  %176 = load i32, ptr %15, align 4, !tbaa !9
  call void @roaring_bitmap_add(ptr noundef %175, i32 noundef %176)
  br label %177

177:                                              ; preds = %174
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = add i32 %178, 1
  store i32 %179, ptr %15, align 4, !tbaa !9
  br label %170, !llvm.loop !16

180:                                              ; preds = %173
  %181 = load ptr, ptr %1, align 8, !tbaa !5
  %182 = call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %181)
  %183 = load ptr, ptr %1, align 8, !tbaa !5
  %184 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %183)
  %185 = call noalias ptr @malloc(i64 noundef %184) #6
  store ptr %185, ptr %3, align 8, !tbaa !5
  %186 = load ptr, ptr %1, align 8, !tbaa !5
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = call i64 @roaring_bitmap_serialize(ptr noundef %186, ptr noundef %187)
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %2, align 4, !tbaa !9
  %190 = load i32, ptr %2, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = load ptr, ptr %1, align 8, !tbaa !5
  %193 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %192)
  call void @_assert_int_equal(i64 noundef %191, i64 noundef %193, ptr noundef @.str.2, i32 noundef 1191)
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = call ptr @roaring_bitmap_deserialize(ptr noundef %194)
  store ptr %195, ptr %4, align 8, !tbaa !5
  %196 = load ptr, ptr %1, align 8, !tbaa !5
  %197 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %196)
  store i64 %197, ptr %7, align 8, !tbaa !13
  %198 = load i64, ptr %7, align 8, !tbaa !13
  %199 = mul i64 %198, 4
  %200 = call noalias ptr @malloc(i64 noundef %199) #6
  store ptr %200, ptr %8, align 8, !tbaa !5
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = ptrtoint ptr %201 to i64
  call void @_assert_true(i64 noundef %202, ptr noundef @.str.82, ptr noundef @.str.2, i32 noundef 1196)
  %203 = load ptr, ptr %1, align 8, !tbaa !5
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %203, ptr noundef %204)
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %205)
  store i64 %206, ptr %9, align 8, !tbaa !13
  %207 = load i64, ptr %9, align 8, !tbaa !13
  %208 = mul i64 %207, 4
  %209 = call noalias ptr @malloc(i64 noundef %208) #6
  store ptr %209, ptr %10, align 8, !tbaa !5
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = ptrtoint ptr %210 to i64
  call void @_assert_true(i64 noundef %211, ptr noundef @.str.83, ptr noundef @.str.2, i32 noundef 1201)
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  call void @roaring_bitmap_to_uint32_array(ptr noundef %212, ptr noundef %213)
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i64, ptr %7, align 8, !tbaa !13
  %216 = trunc i64 %215 to i32
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i64, ptr %9, align 8, !tbaa !13
  %219 = trunc i64 %218 to i32
  %220 = call i32 @array_equals(ptr noundef %214, i32 noundef %216, ptr noundef %217, i32 noundef %219)
  %221 = sext i32 %220 to i64
  call void @_assert_true(i64 noundef %221, ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 1204)
  %222 = load ptr, ptr %1, align 8, !tbaa !5
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %222, ptr noundef %223)
  %225 = zext i1 %224 to i64
  call void @_assert_true(i64 noundef %225, ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 1205)
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %226) #5
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %227) #5
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %228) #5
  %229 = load ptr, ptr %1, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %229)
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %230)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %231 = call ptr @roaring_bitmap_create()
  store ptr %231, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %239, %180
  %233 = load i32, ptr %17, align 4, !tbaa !9
  %234 = icmp ult i32 %233, 102
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %242

236:                                              ; preds = %232
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load i32, ptr %17, align 4, !tbaa !9
  call void @roaring_bitmap_add(ptr noundef %237, i32 noundef %238)
  br label %239

239:                                              ; preds = %236
  %240 = load i32, ptr %17, align 4, !tbaa !9
  %241 = add i32 %240, 1
  store i32 %241, ptr %17, align 4, !tbaa !9
  br label %232, !llvm.loop !17

242:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %243 = load ptr, ptr %16, align 8, !tbaa !5
  %244 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %243)
  %245 = call noalias ptr @malloc(i64 noundef %244) #6
  store ptr %245, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %246 = load ptr, ptr %16, align 8, !tbaa !5
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = call i64 @roaring_bitmap_serialize(ptr noundef %246, ptr noundef %247)
  %249 = trunc i64 %248 to i32
  store i32 %249, ptr %19, align 4, !tbaa !9
  %250 = load i32, ptr %19, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = load ptr, ptr %16, align 8, !tbaa !5
  %253 = call i64 @roaring_bitmap_size_in_bytes(ptr noundef %252)
  call void @_assert_int_equal(i64 noundef %251, i64 noundef %253, ptr noundef @.str.2, i32 noundef 1217)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %254 = load ptr, ptr %18, align 8, !tbaa !5
  %255 = call ptr @roaring_bitmap_deserialize(ptr noundef %254)
  store ptr %255, ptr %20, align 8, !tbaa !5
  %256 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %256) #5
  %257 = load ptr, ptr %16, align 8, !tbaa !5
  %258 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %257)
  %259 = trunc i64 %258 to i32
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %260)
  %262 = trunc i64 %261 to i32
  %263 = icmp eq i32 %259, %262
  %264 = zext i1 %263 to i32
  %265 = sext i32 %264 to i64
  call void @_assert_true(i64 noundef %265, ptr noundef @.str.84, ptr noundef @.str.2, i32 noundef 1221)
  %266 = load ptr, ptr %16, align 8, !tbaa !5
  %267 = load ptr, ptr %20, align 8, !tbaa !5
  %268 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %266, ptr noundef %267)
  %269 = zext i1 %268 to i64
  call void @_assert_true(i64 noundef %269, ptr noundef @.str.74, ptr noundef @.str.2, i32 noundef 1222)
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %270)
  %271 = load ptr, ptr %20, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %271)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

declare i64 @roaring_bitmap_size_in_bytes(ptr noundef) #1

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

declare ptr @roaring_bitmap_deserialize(ptr noundef) #1

declare ptr @run_container_create_given_capacity(i32 noundef) #1

declare zeroext i1 @run_container_add(ptr noundef, i16 noundef zeroext) #1

declare i32 @run_container_serialization_len(ptr noundef) #1

declare i32 @run_container_serialize(ptr noundef, ptr noundef) #1

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

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

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

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


; 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.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [109 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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) local_unnamed_addr #0

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

declare void @run_container_free(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

declare ptr @roaring_bitmap_of(i64 noundef, ...) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_serialize() local_unnamed_addr #3 {
  %1 = tail call ptr (i64, ...) @roaring_bitmap_of(i64 noundef 8, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 100, i32 noundef 1000, i32 noundef 10000, i32 noundef 1000000, i32 noundef 20000000) #4
  %2 = ptrtoint ptr %1 to i64
  tail call void @_assert_true(i64 noundef %2, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 1112) #4
  br label %25

3:                                                ; preds = %25
  %4 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %1) #4
  %5 = tail call noalias ptr @malloc(i64 noundef %4) #5
  %6 = tail call i64 @roaring_bitmap_serialize(ptr noundef %1, ptr noundef %5) #4
  %7 = and i64 %6, 4294967295
  %8 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %1) #4
  tail call void @_assert_int_equal(i64 noundef %7, i64 noundef %8, ptr noundef nonnull @.str.2, i32 noundef 1123) #4
  %9 = tail call ptr @roaring_bitmap_deserialize(ptr noundef %5) #4
  %10 = ptrtoint ptr %9 to i64
  tail call void @_assert_true(i64 noundef %10, ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 1125) #4
  %11 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %1) #4
  %12 = shl i64 %11, 2
  %13 = tail call noalias ptr @malloc(i64 noundef %12) #5
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %1, ptr noundef %13) #4
  %14 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %9) #4
  %15 = shl i64 %14, 2
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #5
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %9, ptr noundef %16) #4
  %17 = trunc i64 %11 to i32
  %18 = trunc i64 %14 to i32
  %19 = tail call i32 @array_equals(ptr noundef %13, i32 noundef %17, ptr noundef %16, i32 noundef %18)
  %20 = sext i32 %19 to i64
  tail call void @_assert_true(i64 noundef %20, ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 1135) #4
  %21 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %1, ptr noundef %9) #4
  %22 = zext i1 %21 to i64
  tail call void @_assert_true(i64 noundef %22, ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 1136) #4
  tail call void @free(ptr noundef %13) #4
  tail call void @free(ptr noundef %16) #4
  tail call void @free(ptr noundef %5) #4
  tail call void @roaring_bitmap_free(ptr noundef %1) #4
  tail call void @roaring_bitmap_free(ptr noundef %9) #4
  %23 = tail call ptr @run_container_create_given_capacity(i32 noundef 1024) #4
  %24 = ptrtoint ptr %23 to i64
  tail call void @_assert_true(i64 noundef %24, ptr noundef nonnull @.str.81, ptr noundef nonnull @.str.2, i32 noundef 1144) #4
  br label %59

25:                                               ; preds = %0, %25
  %.0124126 = phi i32 [ 0, %0 ], [ %27, %25 ]
  %26 = mul nuw nsw i32 %.0124126, 3
  tail call void @roaring_bitmap_add(ptr noundef %1, i32 noundef %26) #4
  %27 = add nuw nsw i32 %.0124126, 1
  %exitcond.not = icmp eq i32 %27, 384000
  br i1 %exitcond.not, label %3, label %25, !llvm.loop !5

28:                                               ; preds = %59
  %29 = tail call i32 @run_container_serialization_len(ptr noundef %23) #4
  %30 = zext i32 %29 to i64
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #5
  %32 = sext i32 %29 to i64
  %33 = tail call i32 @run_container_serialize(ptr noundef %23, ptr noundef %31) #4
  %34 = sext i32 %33 to i64
  tail call void @_assert_int_equal(i64 noundef %32, i64 noundef %34, ptr noundef nonnull @.str.2, i32 noundef 1150) #4
  %35 = tail call ptr @run_container_deserialize(ptr noundef %31, i64 noundef %30) #4
  tail call void @free(ptr noundef %31) #4
  tail call void @run_container_free(ptr noundef %23) #4
  tail call void @run_container_free(ptr noundef %35) #4
  %36 = tail call ptr (i64, ...) @roaring_bitmap_of(i64 noundef 6, i32 noundef 2946000, i32 noundef 2997491, i32 noundef 10478289, i32 noundef 10490227, i32 noundef 10502444, i32 noundef 19866827) #4
  %37 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %36) #4
  %38 = tail call noalias ptr @malloc(i64 noundef %37) #5
  %39 = tail call i64 @roaring_bitmap_serialize(ptr noundef %36, ptr noundef %38) #4
  %40 = and i64 %39, 4294967295
  %41 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %36) #4
  tail call void @_assert_int_equal(i64 noundef %40, i64 noundef %41, ptr noundef nonnull @.str.2, i32 noundef 1162) #4
  %42 = tail call ptr @roaring_bitmap_deserialize(ptr noundef %38) #4
  %43 = ptrtoint ptr %42 to i64
  tail call void @_assert_true(i64 noundef %43, ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.2, i32 noundef 1164) #4
  %44 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %36) #4
  %45 = shl i64 %44, 2
  %46 = tail call noalias ptr @malloc(i64 noundef %45) #5
  %47 = ptrtoint ptr %46 to i64
  tail call void @_assert_true(i64 noundef %47, ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.2, i32 noundef 1168) #4
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %36, ptr noundef %46) #4
  %48 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %42) #4
  %49 = shl i64 %48, 2
  %50 = tail call noalias ptr @malloc(i64 noundef %49) #5
  %51 = ptrtoint ptr %50 to i64
  tail call void @_assert_true(i64 noundef %51, ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.2, i32 noundef 1173) #4
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %42, ptr noundef %50) #4
  %52 = trunc i64 %44 to i32
  %53 = trunc i64 %48 to i32
  %54 = tail call i32 @array_equals(ptr noundef %46, i32 noundef %52, ptr noundef %50, i32 noundef %53)
  %55 = sext i32 %54 to i64
  tail call void @_assert_true(i64 noundef %55, ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 1176) #4
  %56 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %36, ptr noundef %42) #4
  %57 = zext i1 %56 to i64
  tail call void @_assert_true(i64 noundef %57, ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 1177) #4
  tail call void @free(ptr noundef %46) #4
  tail call void @free(ptr noundef %50) #4
  tail call void @free(ptr noundef %38) #4
  tail call void @roaring_bitmap_free(ptr noundef %36) #4
  tail call void @roaring_bitmap_free(ptr noundef %42) #4
  %58 = tail call ptr @roaring_bitmap_create() #4
  br label %87

59:                                               ; preds = %3, %59
  %.0125127 = phi i32 [ 0, %3 ], [ %63, %59 ]
  %60 = trunc nuw i32 %.0125127 to i16
  %61 = mul nuw nsw i16 %60, 3
  %62 = tail call zeroext i1 @run_container_add(ptr noundef %23, i16 noundef zeroext %61) #4
  %63 = add nuw nsw i32 %.0125127, 1
  %exitcond130.not = icmp eq i32 %63, 768
  br i1 %exitcond130.not, label %28, label %59, !llvm.loop !7

64:                                               ; preds = %87
  %65 = tail call zeroext i1 @roaring_bitmap_run_optimize(ptr noundef %58) #4
  %66 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %58) #4
  %67 = tail call noalias ptr @malloc(i64 noundef %66) #5
  %68 = tail call i64 @roaring_bitmap_serialize(ptr noundef %58, ptr noundef %67) #4
  %69 = and i64 %68, 4294967295
  %70 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %58) #4
  tail call void @_assert_int_equal(i64 noundef %69, i64 noundef %70, ptr noundef nonnull @.str.2, i32 noundef 1191) #4
  %71 = tail call ptr @roaring_bitmap_deserialize(ptr noundef %67) #4
  %72 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %58) #4
  %73 = shl i64 %72, 2
  %74 = tail call noalias ptr @malloc(i64 noundef %73) #5
  %75 = ptrtoint ptr %74 to i64
  tail call void @_assert_true(i64 noundef %75, ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.2, i32 noundef 1196) #4
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %58, ptr noundef %74) #4
  %76 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %71) #4
  %77 = shl i64 %76, 2
  %78 = tail call noalias ptr @malloc(i64 noundef %77) #5
  %79 = ptrtoint ptr %78 to i64
  tail call void @_assert_true(i64 noundef %79, ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.2, i32 noundef 1201) #4
  tail call void @roaring_bitmap_to_uint32_array(ptr noundef %71, ptr noundef %78) #4
  %80 = trunc i64 %72 to i32
  %81 = trunc i64 %76 to i32
  %82 = tail call i32 @array_equals(ptr noundef %74, i32 noundef %80, ptr noundef %78, i32 noundef %81)
  %83 = sext i32 %82 to i64
  tail call void @_assert_true(i64 noundef %83, ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 1204) #4
  %84 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %58, ptr noundef %71) #4
  %85 = zext i1 %84 to i64
  tail call void @_assert_true(i64 noundef %85, ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 1205) #4
  tail call void @free(ptr noundef %74) #4
  tail call void @free(ptr noundef %78) #4
  tail call void @free(ptr noundef %67) #4
  tail call void @roaring_bitmap_free(ptr noundef %58) #4
  tail call void @roaring_bitmap_free(ptr noundef %71) #4
  %86 = tail call ptr @roaring_bitmap_create() #4
  br label %104

87:                                               ; preds = %28, %87
  %.0123128 = phi i32 [ 100, %28 ], [ %88, %87 ]
  tail call void @roaring_bitmap_add(ptr noundef %58, i32 noundef %.0123128) #4
  %88 = add nuw nsw i32 %.0123128, 1
  %exitcond131.not = icmp eq i32 %88, 100000
  br i1 %exitcond131.not, label %64, label %87, !llvm.loop !8

89:                                               ; preds = %104
  %90 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %86) #4
  %91 = tail call noalias ptr @malloc(i64 noundef %90) #5
  %92 = tail call i64 @roaring_bitmap_serialize(ptr noundef %86, ptr noundef %91) #4
  %93 = and i64 %92, 4294967295
  %94 = tail call i64 @roaring_bitmap_size_in_bytes(ptr noundef %86) #4
  tail call void @_assert_int_equal(i64 noundef %93, i64 noundef %94, ptr noundef nonnull @.str.2, i32 noundef 1217) #4
  %95 = tail call ptr @roaring_bitmap_deserialize(ptr noundef %91) #4
  tail call void @free(ptr noundef %91) #4
  %96 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %86) #4
  %97 = trunc i64 %96 to i32
  %98 = tail call i64 @roaring_bitmap_get_cardinality(ptr noundef %95) #4
  %99 = trunc i64 %98 to i32
  %100 = icmp eq i32 %97, %99
  %101 = zext i1 %100 to i64
  tail call void @_assert_true(i64 noundef %101, ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.2, i32 noundef 1221) #4
  %102 = tail call zeroext i1 @roaring_bitmap_equals(ptr noundef %86, ptr noundef %95) #4
  %103 = zext i1 %102 to i64
  tail call void @_assert_true(i64 noundef %103, ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.2, i32 noundef 1222) #4
  tail call void @roaring_bitmap_free(ptr noundef %86) #4
  tail call void @roaring_bitmap_free(ptr noundef %95) #4
  ret void

104:                                              ; preds = %64, %104
  %.0129 = phi i32 [ 0, %64 ], [ %105, %104 ]
  tail call void @roaring_bitmap_add(ptr noundef %86, i32 noundef %.0129) #4
  %105 = add nuw nsw i32 %.0129, 1
  %exitcond132.not = icmp eq i32 %105, 102
  br i1 %exitcond132.not, label %89, label %104, !llvm.loop !9
}

declare i64 @roaring_bitmap_size_in_bytes(ptr noundef) local_unnamed_addr #0

declare i64 @roaring_bitmap_serialize(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @roaring_bitmap_deserialize(ptr noundef) local_unnamed_addr #0

declare ptr @run_container_create_given_capacity(i32 noundef) local_unnamed_addr #0

declare zeroext i1 @run_container_add(ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

declare i32 @run_container_serialization_len(ptr noundef) local_unnamed_addr #0

declare i32 @run_container_serialize(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @run_container_deserialize(ptr noundef, i64 noundef) local_unnamed_addr #0

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 }
attributes #5 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass