; 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.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.test_andnot.data1 = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_andnot.data2 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot.data3 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot.d1_minus_d2 = external hidden unnamed_addr constant [10 x i32], align 16
@__const.test_andnot.d1_minus_d3 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.test_andnot.d2_minus_d1 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.test_andnot.d3_minus_d1 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.test_andnot.d3_minus_d2 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.103 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [43 x i8], align 1
@__const.test_andnot.d1_minus_largerun = external hidden unnamed_addr constant [6 x i32], align 16
@.str.108 = 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 ptr @roaring_bitmap_from_range(i64 noundef, i64 noundef, i32 noundef) #1

declare i32 @printf(ptr noundef, ...) #1

declare void @roaring_bitmap_free(ptr noundef) #1

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

declare ptr @roaring_bitmap_create() #1

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

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

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

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

declare ptr @roaring_bitmap_andnot(ptr noundef, ptr 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_andnot(i1 noundef zeroext %0) #4 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [13 x i32], align 16
  %6 = alloca ptr, align 8
  %7 = alloca [11 x i32], align 16
  %8 = alloca ptr, align 8
  %9 = alloca [11 x i32], align 16
  %10 = alloca ptr, align 8
  %11 = alloca [10 x i32], align 16
  %12 = alloca ptr, align 8
  %13 = alloca [9 x i32], align 16
  %14 = alloca ptr, align 8
  %15 = alloca [8 x i32], align 16
  %16 = alloca ptr, align 8
  %17 = alloca [7 x i32], align 16
  %18 = alloca ptr, align 8
  %19 = alloca [2 x i32], align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [6 x i32], align 16
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca [10 x ptr], align 16
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca i32, align 4
  %37 = zext i1 %0 to i8
  store i8 %37, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %38 = call ptr @roaring_bitmap_create()
  store ptr %38, ptr %3, align 8, !tbaa !9
  %39 = load ptr, ptr %3, align 8, !tbaa !9
  %40 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %41 = trunc i8 %40 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %39, i1 noundef zeroext %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %42 = call ptr @roaring_bitmap_create()
  store ptr %42, ptr %4, align 8, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %45 = trunc i8 %44 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %43, i1 noundef zeroext %45)
  call void @llvm.lifetime.start.p0(i64 52, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.test_andnot.data1, i64 52, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %46 = getelementptr inbounds [13 x i32], ptr %5, i64 0, i64 0
  %47 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %48 = trunc i8 %47 to i1
  %49 = call ptr @roaring_from_sentinel_array(ptr noundef %46, i1 noundef zeroext %48)
  store ptr %49, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 44, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.test_andnot.data2, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %50 = getelementptr inbounds [11 x i32], ptr %7, i64 0, i64 0
  %51 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %52 = trunc i8 %51 to i1
  %53 = call ptr @roaring_from_sentinel_array(ptr noundef %50, i1 noundef zeroext %52)
  store ptr %53, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 44, ptr %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.test_andnot.data3, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %54 = getelementptr inbounds [11 x i32], ptr %9, i64 0, i64 0
  %55 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %56 = trunc i8 %55 to i1
  %57 = call ptr @roaring_from_sentinel_array(ptr noundef %54, i1 noundef zeroext %56)
  store ptr %57, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.test_andnot.d1_minus_d2, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %58 = getelementptr inbounds [10 x i32], ptr %11, i64 0, i64 0
  %59 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  %61 = call ptr @roaring_from_sentinel_array(ptr noundef %58, i1 noundef zeroext %60)
  store ptr %61, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.test_andnot.d1_minus_d3, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %62 = getelementptr inbounds [9 x i32], ptr %13, i64 0, i64 0
  %63 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %64 = trunc i8 %63 to i1
  %65 = call ptr @roaring_from_sentinel_array(ptr noundef %62, i1 noundef zeroext %64)
  store ptr %65, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.test_andnot.d2_minus_d1, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %66 = getelementptr inbounds [8 x i32], ptr %15, i64 0, i64 0
  %67 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %68 = trunc i8 %67 to i1
  %69 = call ptr @roaring_from_sentinel_array(ptr noundef %66, i1 noundef zeroext %68)
  store ptr %69, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 28, ptr %17) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.test_andnot.d3_minus_d1, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %70 = getelementptr inbounds [7 x i32], ptr %17, i64 0, i64 0
  %71 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %72 = trunc i8 %71 to i1
  %73 = call ptr @roaring_from_sentinel_array(ptr noundef %70, i1 noundef zeroext %72)
  store ptr %73, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 @__const.test_andnot.d3_minus_d2, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %74 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 0
  %75 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %76 = trunc i8 %75 to i1
  %77 = call ptr @roaring_from_sentinel_array(ptr noundef %74, i1 noundef zeroext %76)
  store ptr %77, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = load ptr, ptr %8, align 8, !tbaa !9
  %80 = call ptr @roaring_bitmap_andnot(ptr noundef %78, ptr noundef %79)
  store ptr %80, ptr %21, align 8, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = load ptr, ptr %21, align 8, !tbaa !9
  %83 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %81, ptr noundef %82)
  %84 = zext i1 %83 to i64
  call void @_assert_true(i64 noundef %84, ptr noundef @.str.103, ptr noundef @.str.2, i32 noundef 1966)
  %85 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %85)
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = call ptr @roaring_bitmap_andnot(ptr noundef %86, ptr noundef %87)
  store ptr %88, ptr %21, align 8, !tbaa !9
  %89 = load ptr, ptr %14, align 8, !tbaa !9
  %90 = load ptr, ptr %21, align 8, !tbaa !9
  %91 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %89, ptr noundef %90)
  %92 = zext i1 %91 to i64
  call void @_assert_true(i64 noundef %92, ptr noundef @.str.104, ptr noundef @.str.2, i32 noundef 1970)
  %93 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %93)
  %94 = load ptr, ptr %8, align 8, !tbaa !9
  %95 = load ptr, ptr %6, align 8, !tbaa !9
  %96 = call ptr @roaring_bitmap_andnot(ptr noundef %94, ptr noundef %95)
  store ptr %96, ptr %21, align 8, !tbaa !9
  %97 = load ptr, ptr %16, align 8, !tbaa !9
  %98 = load ptr, ptr %21, align 8, !tbaa !9
  %99 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %97, ptr noundef %98)
  %100 = zext i1 %99 to i64
  call void @_assert_true(i64 noundef %100, ptr noundef @.str.105, ptr noundef @.str.2, i32 noundef 1974)
  %101 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %101)
  %102 = load ptr, ptr %10, align 8, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !9
  %104 = call ptr @roaring_bitmap_andnot(ptr noundef %102, ptr noundef %103)
  store ptr %104, ptr %21, align 8, !tbaa !9
  %105 = load ptr, ptr %18, align 8, !tbaa !9
  %106 = load ptr, ptr %21, align 8, !tbaa !9
  %107 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %105, ptr noundef %106)
  %108 = zext i1 %107 to i64
  call void @_assert_true(i64 noundef %108, ptr noundef @.str.106, ptr noundef @.str.2, i32 noundef 1978)
  %109 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %109)
  %110 = load ptr, ptr %10, align 8, !tbaa !9
  %111 = load ptr, ptr %8, align 8, !tbaa !9
  %112 = call ptr @roaring_bitmap_andnot(ptr noundef %110, ptr noundef %111)
  store ptr %112, ptr %21, align 8, !tbaa !9
  %113 = load ptr, ptr %20, align 8, !tbaa !9
  %114 = load ptr, ptr %21, align 8, !tbaa !9
  %115 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %113, ptr noundef %114)
  %116 = zext i1 %115 to i64
  call void @_assert_true(i64 noundef %116, ptr noundef @.str.107, ptr noundef @.str.2, i32 noundef 1982)
  %117 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %117)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %118 = call ptr @roaring_bitmap_from_range(i64 noundef 2, i64 noundef 720923, i32 noundef 1)
  store ptr %118, ptr %22, align 8, !tbaa !9
  %119 = load ptr, ptr %6, align 8, !tbaa !9
  %120 = load ptr, ptr %22, align 8, !tbaa !9
  %121 = call ptr @roaring_bitmap_andnot(ptr noundef %119, ptr noundef %120)
  store ptr %121, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.test_andnot.d1_minus_largerun, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %122 = getelementptr inbounds [6 x i32], ptr %23, i64 0, i64 0
  %123 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %124 = trunc i8 %123 to i1
  %125 = call ptr @roaring_from_sentinel_array(ptr noundef %122, i1 noundef zeroext %124)
  store ptr %125, ptr %24, align 8, !tbaa !9
  %126 = load ptr, ptr %24, align 8, !tbaa !9
  %127 = load ptr, ptr %21, align 8, !tbaa !9
  %128 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %126, ptr noundef %127)
  %129 = zext i1 %128 to i64
  call void @_assert_true(i64 noundef %129, ptr noundef @.str.108, ptr noundef @.str.2, i32 noundef 1993)
  %130 = load ptr, ptr %21, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %130)
  %131 = load ptr, ptr %6, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %131)
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %132)
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %133)
  %134 = load ptr, ptr %12, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %134)
  %135 = load ptr, ptr %14, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %135)
  %136 = load ptr, ptr %16, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %136)
  %137 = load ptr, ptr %18, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %137)
  %138 = load ptr, ptr %20, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %138)
  %139 = load ptr, ptr %24, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %139)
  %140 = load ptr, ptr %22, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %140)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !13
  br label %141

141:                                              ; preds = %160, %1
  %142 = load i32, ptr %25, align 4, !tbaa !13
  %143 = icmp ult i32 %142, 300
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %163

145:                                              ; preds = %141
  %146 = load i32, ptr %25, align 4, !tbaa !13
  %147 = urem i32 %146, 2
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %145
  %150 = load ptr, ptr %3, align 8, !tbaa !9
  %151 = load i32, ptr %25, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %150, i32 noundef %151)
  br label %152

152:                                              ; preds = %149, %145
  %153 = load i32, ptr %25, align 4, !tbaa !13
  %154 = urem i32 %153, 3
  %155 = icmp eq i32 %154, 0
  br i1 %155, label %156, label %159

156:                                              ; preds = %152
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  %158 = load i32, ptr %25, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %157, i32 noundef %158)
  br label %159

159:                                              ; preds = %156, %152
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %25, align 4, !tbaa !13
  %162 = add i32 %161, 1
  store i32 %162, ptr %25, align 4, !tbaa !13
  br label %141, !llvm.loop !15

163:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %164 = load ptr, ptr %3, align 8, !tbaa !9
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = call ptr @roaring_bitmap_andnot(ptr noundef %164, ptr noundef %165)
  store ptr %166, ptr %26, align 8, !tbaa !9
  %167 = load ptr, ptr %26, align 8, !tbaa !9
  %168 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %169 = trunc i8 %168 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %167, i1 noundef zeroext %169)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !13
  br label %170

170:                                              ; preds = %201, %163
  %171 = load i32, ptr %28, align 4, !tbaa !13
  %172 = icmp slt i32 %171, 300
  br i1 %172, label %174, label %173

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

174:                                              ; preds = %170
  %175 = load i32, ptr %28, align 4, !tbaa !13
  %176 = srem i32 %175, 2
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %192

178:                                              ; preds = %174
  %179 = load i32, ptr %28, align 4, !tbaa !13
  %180 = srem i32 %179, 3
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %192

182:                                              ; preds = %178
  %183 = load i32, ptr %27, align 4, !tbaa !13
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %27, align 4, !tbaa !13
  %185 = load ptr, ptr %26, align 8, !tbaa !9
  %186 = load i32, ptr %28, align 4, !tbaa !13
  %187 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %185, i32 noundef %186)
  br i1 %187, label %191, label %188

188:                                              ; preds = %182
  %189 = load i32, ptr %28, align 4, !tbaa !13
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.96, i32 noundef %189)
  br label %191

191:                                              ; preds = %188, %182
  br label %200

192:                                              ; preds = %178, %174
  %193 = load ptr, ptr %26, align 8, !tbaa !9
  %194 = load i32, ptr %28, align 4, !tbaa !13
  %195 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %193, i32 noundef %194)
  br i1 %195, label %196, label %199

196:                                              ; preds = %192
  %197 = load i32, ptr %28, align 4, !tbaa !13
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.97, i32 noundef %197)
  br label %199

199:                                              ; preds = %196, %192
  br label %200

200:                                              ; preds = %199, %191
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %28, align 4, !tbaa !13
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %28, align 4, !tbaa !13
  br label %170, !llvm.loop !17

204:                                              ; preds = %173
  %205 = load ptr, ptr %26, align 8, !tbaa !9
  %206 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %205)
  %207 = load i32, ptr %27, align 4, !tbaa !13
  %208 = sext i32 %207 to i64
  call void @_assert_int_equal(i64 noundef %206, i64 noundef %208, ptr noundef @.str.2, i32 noundef 2025)
  %209 = load ptr, ptr %26, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %209)
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %210)
  %211 = load ptr, ptr %3, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %211)
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #5
  %212 = 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 %212, ptr %29, align 8, !tbaa !9
  %213 = getelementptr inbounds ptr, ptr %29, i64 1
  %214 = 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 %214, ptr %213, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %29, i64 2
  %216 = 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 %216, ptr %215, align 8, !tbaa !9
  %217 = getelementptr inbounds ptr, ptr %29, i64 3
  %218 = 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 %218, ptr %217, align 8, !tbaa !9
  %219 = getelementptr inbounds ptr, ptr %29, i64 4
  %220 = 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 %220, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds ptr, ptr %29, i64 5
  %222 = 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 %222, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds ptr, ptr %29, i64 6
  %224 = 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 %224, ptr %223, align 8, !tbaa !9
  %225 = getelementptr inbounds ptr, ptr %29, i64 7
  %226 = 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 %226, ptr %225, align 8, !tbaa !9
  %227 = getelementptr inbounds ptr, ptr %29, i64 8
  %228 = 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 %228, ptr %227, align 8, !tbaa !9
  %229 = getelementptr inbounds ptr, ptr %29, i64 9
  store ptr null, ptr %229, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !13
  br label %230

230:                                              ; preds = %278, %204
  %231 = load i32, ptr %30, align 4, !tbaa !13
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !9
  %235 = icmp ne ptr %234, null
  br i1 %235, label %237, label %236

236:                                              ; preds = %230
  store i32 8, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %281

237:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %238 = load i32, ptr %30, align 4, !tbaa !13
  store i32 %238, ptr %32, align 4, !tbaa !13
  br label %239

239:                                              ; preds = %274, %237
  %240 = load i32, ptr %32, align 4, !tbaa !13
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %241
  %243 = load ptr, ptr %242, align 8, !tbaa !9
  %244 = icmp ne ptr %243, null
  br i1 %244, label %246, label %245

245:                                              ; preds = %239
  store i32 11, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %277

246:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %247 = load i32, ptr %30, align 4, !tbaa !13
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !9
  %251 = load i32, ptr %32, align 4, !tbaa !13
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !9
  %255 = call ptr @synthesized_andnot(ptr noundef %250, ptr noundef %254)
  store ptr %255, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %256 = load i32, ptr %30, align 4, !tbaa !13
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %257
  %259 = load ptr, ptr %258, align 8, !tbaa !9
  %260 = load i32, ptr %32, align 4, !tbaa !13
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %261
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = call ptr @roaring_bitmap_andnot(ptr noundef %259, ptr noundef %263)
  store ptr %264, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #5
  %265 = load ptr, ptr %33, align 8, !tbaa !9
  %266 = load ptr, ptr %34, align 8, !tbaa !9
  %267 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %265, ptr noundef %266)
  %268 = zext i1 %267 to i8
  store i8 %268, ptr %35, align 1, !tbaa !5
  %269 = load i8, ptr %35, align 1, !tbaa !5, !range !11, !noundef !12
  %270 = trunc i8 %269 to i1
  %271 = zext i1 %270 to i64
  call void @_assert_true(i64 noundef %271, ptr noundef @.str.99, ptr noundef @.str.2, i32 noundef 2061)
  %272 = load ptr, ptr %33, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %272)
  %273 = load ptr, ptr %34, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %273)
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %274

274:                                              ; preds = %246
  %275 = load i32, ptr %32, align 4, !tbaa !13
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %32, align 4, !tbaa !13
  br label %239, !llvm.loop !18

277:                                              ; preds = %245
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %30, align 4, !tbaa !13
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %30, align 4, !tbaa !13
  br label %230, !llvm.loop !19

281:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !13
  br label %282

282:                                              ; preds = %294, %281
  %283 = load i32, ptr %36, align 4, !tbaa !13
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %284
  %286 = load ptr, ptr %285, align 8, !tbaa !9
  %287 = icmp ne ptr %286, null
  br i1 %287, label %289, label %288

288:                                              ; preds = %282
  store i32 14, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %297

289:                                              ; preds = %282
  %290 = load i32, ptr %36, align 4, !tbaa !13
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [10 x ptr], ptr %29, i64 0, i64 %291
  %293 = load ptr, ptr %292, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %293)
  br label %294

294:                                              ; preds = %289
  %295 = load i32, ptr %36, align 4, !tbaa !13
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %36, align 4, !tbaa !13
  br label %282, !llvm.loop !20

297:                                              ; preds = %288
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 52, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden ptr @roaring_from_sentinel_array(ptr noundef, i1 noundef zeroext) #4

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_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}
!20 = distinct !{!20, !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.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@__const.test_andnot.data1 = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_andnot.data2 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot.data3 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot.d1_minus_d2 = external hidden unnamed_addr constant [10 x i32], align 16
@__const.test_andnot.d1_minus_d3 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.test_andnot.d2_minus_d1 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.test_andnot.d3_minus_d1 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.test_andnot.d3_minus_d2 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.103 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [43 x i8], align 1
@__const.test_andnot.d1_minus_largerun = external hidden unnamed_addr constant [6 x i32], align 16
@.str.108 = 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

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

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

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #1

; 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 #1

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

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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @roaring_bitmap_andnot(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_andnot(i1 noundef zeroext %0) local_unnamed_addr #5 {
  %2 = alloca [13 x i32], align 16
  %3 = alloca [11 x i32], align 16
  %4 = alloca [11 x i32], align 16
  %5 = alloca [10 x i32], align 16
  %6 = alloca [9 x i32], align 16
  %7 = alloca [8 x i32], align 16
  %8 = alloca [7 x i32], align 16
  %9 = alloca [2 x i32], align 8
  %10 = alloca [6 x i32], align 16
  %11 = alloca [10 x ptr], align 16
  %12 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %12, i1 noundef zeroext %0)
  %13 = tail call ptr @roaring_bitmap_create() #6
  tail call void @roaring_bitmap_set_copy_on_write(ptr noundef %13, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(52) %2, ptr noundef nonnull align 16 dereferenceable(52) @__const.test_andnot.data1, i64 52, i1 false)
  %14 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %2, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %3, ptr noundef nonnull align 16 dereferenceable(44) @__const.test_andnot.data2, i64 44, i1 false)
  %15 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %3, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %4, ptr noundef nonnull align 16 dereferenceable(44) @__const.test_andnot.data3, i64 44, i1 false)
  %16 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %4, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %5, ptr noundef nonnull align 16 dereferenceable(40) @__const.test_andnot.d1_minus_d2, i64 40, i1 false)
  %17 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %5, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %6, ptr noundef nonnull align 16 dereferenceable(36) @__const.test_andnot.d1_minus_d3, i64 36, i1 false)
  %18 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %6, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 16 dereferenceable(32) @__const.test_andnot.d2_minus_d1, i64 32, i1 false)
  %19 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %7, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(28) %8, ptr noundef nonnull align 16 dereferenceable(28) @__const.test_andnot.d3_minus_d1, i64 28, i1 false)
  %20 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %8, i1 noundef zeroext %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %21 = load i64, ptr @__const.test_andnot.d3_minus_d2, align 4
  store i64 %21, ptr %9, align 8
  %22 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %9, i1 noundef zeroext %0)
  %23 = call ptr @roaring_bitmap_andnot(ptr noundef %14, ptr noundef %15) #6
  %24 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %17, ptr noundef %23) #6
  %25 = zext i1 %24 to i64
  call void @_assert_true(i64 noundef %25, ptr noundef nonnull @.str.103, ptr noundef nonnull @.str.2, i32 noundef 1966) #6
  call void @roaring_bitmap_free(ptr noundef %23) #6
  %26 = call ptr @roaring_bitmap_andnot(ptr noundef %14, ptr noundef %16) #6
  %27 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %18, ptr noundef %26) #6
  %28 = zext i1 %27 to i64
  call void @_assert_true(i64 noundef %28, ptr noundef nonnull @.str.104, ptr noundef nonnull @.str.2, i32 noundef 1970) #6
  call void @roaring_bitmap_free(ptr noundef %26) #6
  %29 = call ptr @roaring_bitmap_andnot(ptr noundef %15, ptr noundef %14) #6
  %30 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %19, ptr noundef %29) #6
  %31 = zext i1 %30 to i64
  call void @_assert_true(i64 noundef %31, ptr noundef nonnull @.str.105, ptr noundef nonnull @.str.2, i32 noundef 1974) #6
  call void @roaring_bitmap_free(ptr noundef %29) #6
  %32 = call ptr @roaring_bitmap_andnot(ptr noundef %16, ptr noundef %14) #6
  %33 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %20, ptr noundef %32) #6
  %34 = zext i1 %33 to i64
  call void @_assert_true(i64 noundef %34, ptr noundef nonnull @.str.106, ptr noundef nonnull @.str.2, i32 noundef 1978) #6
  call void @roaring_bitmap_free(ptr noundef %32) #6
  %35 = call ptr @roaring_bitmap_andnot(ptr noundef %16, ptr noundef %15) #6
  %36 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %22, ptr noundef %35) #6
  %37 = zext i1 %36 to i64
  call void @_assert_true(i64 noundef %37, ptr noundef nonnull @.str.107, ptr noundef nonnull @.str.2, i32 noundef 1982) #6
  call void @roaring_bitmap_free(ptr noundef %35) #6
  %38 = call ptr @roaring_bitmap_from_range(i64 noundef 2, i64 noundef 720923, i32 noundef 1) #6
  %39 = call ptr @roaring_bitmap_andnot(ptr noundef %14, ptr noundef %38) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %10, ptr noundef nonnull align 16 dereferenceable(24) @__const.test_andnot.d1_minus_largerun, i64 24, i1 false)
  %40 = call ptr @roaring_from_sentinel_array(ptr noundef nonnull %10, i1 noundef zeroext %0)
  %41 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %40, ptr noundef %39) #6
  %42 = zext i1 %41 to i64
  call void @_assert_true(i64 noundef %42, ptr noundef nonnull @.str.108, ptr noundef nonnull @.str.2, i32 noundef 1993) #6
  call void @roaring_bitmap_free(ptr noundef %39) #6
  call void @roaring_bitmap_free(ptr noundef %14) #6
  call void @roaring_bitmap_free(ptr noundef %15) #6
  call void @roaring_bitmap_free(ptr noundef %16) #6
  call void @roaring_bitmap_free(ptr noundef %17) #6
  call void @roaring_bitmap_free(ptr noundef %18) #6
  call void @roaring_bitmap_free(ptr noundef %19) #6
  call void @roaring_bitmap_free(ptr noundef %20) #6
  call void @roaring_bitmap_free(ptr noundef %22) #6
  call void @roaring_bitmap_free(ptr noundef %40) #6
  call void @roaring_bitmap_free(ptr noundef %38) #6
  br label %45

43:                                               ; preds = %53
  %44 = call ptr @roaring_bitmap_andnot(ptr noundef %12, ptr noundef %13) #6
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %44, i1 noundef zeroext %0)
  br label %76

45:                                               ; preds = %1, %53
  %.097110 = phi i32 [ 0, %1 ], [ %54, %53 ]
  %46 = and i32 %.097110, 1
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  call void @roaring_bitmap_add(ptr noundef %12, i32 noundef %.097110) #6
  br label %49

49:                                               ; preds = %48, %45
  %.lhs.trunc = trunc nuw i32 %.097110 to i16
  %50 = urem i16 %.lhs.trunc, 3
  %51 = icmp eq i16 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  call void @roaring_bitmap_add(ptr noundef %13, i32 noundef %.097110) #6
  br label %53

53:                                               ; preds = %49, %52
  %54 = add nuw nsw i32 %.097110, 1
  %exitcond.not = icmp eq i32 %54, 300
  br i1 %exitcond.not, label %43, label %45, !llvm.loop !5

55:                                               ; preds = %86
  %56 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %44) #6
  %57 = sext i32 %.1 to i64
  call void @_assert_int_equal(i64 noundef %56, i64 noundef %57, ptr noundef nonnull @.str.2, i32 noundef 2025) #6
  call void @roaring_bitmap_free(ptr noundef %44) #6
  call void @roaring_bitmap_free(ptr noundef %13) #6
  call void @roaring_bitmap_free(ptr noundef %12) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #6
  %58 = 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 %58, ptr %11, align 16, !tbaa !7
  %59 = getelementptr inbounds i8, ptr %11, i64 8
  %60 = 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 %60, ptr %59, align 8, !tbaa !7
  %61 = getelementptr inbounds i8, ptr %11, i64 16
  %62 = 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 %62, ptr %61, align 16, !tbaa !7
  %63 = getelementptr inbounds i8, ptr %11, i64 24
  %64 = 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 %64, ptr %63, align 8, !tbaa !7
  %65 = getelementptr inbounds i8, ptr %11, i64 32
  %66 = 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 %66, ptr %65, align 16, !tbaa !7
  %67 = getelementptr inbounds i8, ptr %11, i64 40
  %68 = 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 %68, ptr %67, align 8, !tbaa !7
  %69 = getelementptr inbounds i8, ptr %11, i64 48
  %70 = 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 %70, ptr %69, align 16, !tbaa !7
  %71 = getelementptr inbounds i8, ptr %11, i64 56
  %72 = 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 %72, ptr %71, align 8, !tbaa !7
  %73 = getelementptr inbounds i8, ptr %11, i64 64
  %74 = 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 %74, ptr %73, align 16, !tbaa !7
  %75 = getelementptr inbounds i8, ptr %11, i64 72
  store ptr null, ptr %75, align 8, !tbaa !7
  %.not115 = icmp eq ptr %58, null
  br i1 %.not115, label %._crit_edge120, label %.lr.ph.preheader

76:                                               ; preds = %43, %86
  %.098112 = phi i32 [ 0, %43 ], [ %.1, %86 ]
  %.099111 = phi i32 [ 0, %43 ], [ %87, %86 ]
  %77 = and i32 %.099111, 1
  %78 = icmp ne i32 %77, 0
  %.lhs.trunc107 = trunc nuw i32 %.099111 to i16
  %79 = urem i16 %.lhs.trunc107, 3
  %.not106 = icmp eq i16 %79, 0
  %or.cond = or i1 %78, %.not106
  br i1 %or.cond, label %83, label %80

80:                                               ; preds = %76
  %81 = add nsw i32 %.098112, 1
  %82 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %44, i32 noundef %.099111)
  br i1 %82, label %86, label %.sink.split

83:                                               ; preds = %76
  %84 = call zeroext i1 @roaring_bitmap_contains(ptr noundef %44, i32 noundef %.099111)
  br i1 %84, label %.sink.split, label %86

.sink.split:                                      ; preds = %83, %80
  %.str.96.sink = phi ptr [ @.str.96, %80 ], [ @.str.97, %83 ]
  %.1.ph = phi i32 [ %81, %80 ], [ %.098112, %83 ]
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.96.sink, i32 noundef %.099111)
  br label %86

86:                                               ; preds = %.sink.split, %80, %83
  %.1 = phi i32 [ %81, %80 ], [ %.098112, %83 ], [ %.1.ph, %.sink.split ]
  %87 = add nuw nsw i32 %.099111, 1
  %exitcond121.not = icmp eq i32 %87, 300
  br i1 %exitcond121.not, label %55, label %76, !llvm.loop !11

.lr.ph.preheader:                                 ; preds = %55, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 0, %55 ]
  %88 = phi ptr [ %90, %._crit_edge ], [ %58, %55 ]
  br label %.lr.ph

.preheader:                                       ; preds = %._crit_edge
  %.pre = load ptr, ptr %11, align 16, !tbaa !7
  %.not104117 = icmp eq ptr %.pre, null
  br i1 %.not104117, label %._crit_edge120, label %.lr.ph119

._crit_edge:                                      ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next
  %90 = load ptr, ptr %89, align 8, !tbaa !7
  %.not = icmp eq ptr %90, null
  br i1 %.not, label %.preheader, label %.lr.ph.preheader, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv122 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next123, %.lr.ph ]
  %91 = phi ptr [ %88, %.lr.ph.preheader ], [ %97, %.lr.ph ]
  %92 = call ptr @synthesized_andnot(ptr noundef nonnull %88, ptr noundef nonnull %91)
  %93 = call ptr @roaring_bitmap_andnot(ptr noundef nonnull %88, ptr noundef nonnull %91) #6
  %94 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %92, ptr noundef %93) #6
  %95 = zext i1 %94 to i64
  call void @_assert_true(i64 noundef %95, ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.2, i32 noundef 2061) #6
  call void @roaring_bitmap_free(ptr noundef %92) #6
  call void @roaring_bitmap_free(ptr noundef %93) #6
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %96 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next123
  %97 = load ptr, ptr %96, align 8, !tbaa !7
  %.not105 = icmp eq ptr %97, null
  br i1 %.not105, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge120:                                   ; preds = %.lr.ph119, %55, %.preheader
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %2) #6
  ret void

.lr.ph119:                                        ; preds = %.preheader, %.lr.ph119
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.lr.ph119 ], [ 0, %.preheader ]
  %98 = phi ptr [ %100, %.lr.ph119 ], [ %.pre, %.preheader ]
  call void @roaring_bitmap_free(ptr noundef nonnull %98) #6
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %99 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next127
  %100 = load ptr, ptr %99, align 8, !tbaa !7
  %.not104 = icmp eq ptr %100, null
  br i1 %.not104, label %._crit_edge120, label %.lr.ph119, !llvm.loop !14
}

; Function Attrs: nounwind uwtable
declare hidden ptr @roaring_from_sentinel_array(ptr noundef, i1 noundef zeroext) local_unnamed_addr #5

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

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


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