; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (toplevel_unit)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [48 x i8], align 1
@__const.test_andnot_inplace.data1 = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_andnot_inplace.data2 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot_inplace.data3 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot_inplace.d1_minus_d2 = external hidden unnamed_addr constant [10 x i32], align 16
@__const.test_andnot_inplace.d1_minus_d3 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.test_andnot_inplace.d2_minus_d1 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.test_andnot_inplace.d3_minus_d1 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.test_andnot_inplace.d3_minus_d2 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.109 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [42 x i8], align 1
@__const.test_andnot_inplace.d1_minus_largerun = external hidden unnamed_addr constant [6 x i32], align 16
@.str.114 = external hidden unnamed_addr constant [47 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

declare i64 @roaring_bitmap_get_cardinality(ptr noundef) #1

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

declare ptr @roaring_bitmap_copy(ptr noundef) #1

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

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

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

; 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
declare hidden void @show_difference(ptr noundef, ptr noundef) #4

; 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

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

145:                                              ; preds = %175, %1
  %146 = load i32, ptr %26, align 4, !tbaa !13
  %147 = icmp ult i32 %146, 300
  br i1 %147, label %149, label %148

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

149:                                              ; preds = %145
  %150 = load i32, ptr %26, align 4, !tbaa !13
  %151 = urem i32 %150, 2
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %149
  %154 = load ptr, ptr %3, align 8, !tbaa !9
  %155 = load i32, ptr %26, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %154, i32 noundef %155)
  br label %156

156:                                              ; preds = %153, %149
  %157 = load i32, ptr %26, align 4, !tbaa !13
  %158 = urem i32 %157, 3
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %163

160:                                              ; preds = %156
  %161 = load ptr, ptr %4, align 8, !tbaa !9
  %162 = load i32, ptr %26, align 4, !tbaa !13
  call void @roaring_bitmap_add(ptr noundef %161, i32 noundef %162)
  br label %163

163:                                              ; preds = %160, %156
  %164 = load i32, ptr %26, align 4, !tbaa !13
  %165 = urem i32 %164, 2
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %174

167:                                              ; preds = %163
  %168 = load i32, ptr %26, align 4, !tbaa !13
  %169 = urem i32 %168, 3
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %174

171:                                              ; preds = %167
  %172 = load i32, ptr %25, align 4, !tbaa !13
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %25, align 4, !tbaa !13
  br label %174

174:                                              ; preds = %171, %167, %163
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %26, align 4, !tbaa !13
  %177 = add i32 %176, 1
  store i32 %177, ptr %26, align 4, !tbaa !13
  br label %145, !llvm.loop !15

178:                                              ; preds = %148
  %179 = load ptr, ptr %3, align 8, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  call void @roaring_bitmap_andnot_inplace(ptr noundef %179, ptr noundef %180)
  %181 = load ptr, ptr %3, align 8, !tbaa !9
  %182 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %181)
  %183 = load i32, ptr %25, align 4, !tbaa !13
  %184 = sext i32 %183 to i64
  call void @_assert_int_equal(i64 noundef %182, i64 noundef %184, ptr noundef @.str.2, i32 noundef 2217)
  %185 = load ptr, ptr %4, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %185)
  %186 = load ptr, ptr %3, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %186)
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #5
  %187 = 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 %187, ptr %27, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %27, i64 1
  %189 = 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 %189, ptr %188, align 8, !tbaa !9
  %190 = getelementptr inbounds ptr, ptr %27, i64 2
  %191 = 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 %191, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds ptr, ptr %27, i64 3
  %193 = 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 %193, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds ptr, ptr %27, i64 4
  %195 = 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 %195, ptr %194, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %27, i64 5
  %197 = 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 %197, ptr %196, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %27, i64 6
  %199 = 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 %199, ptr %198, align 8, !tbaa !9
  %200 = getelementptr inbounds ptr, ptr %27, i64 7
  %201 = 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 %201, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds ptr, ptr %27, i64 8
  %203 = 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 %203, ptr %202, align 8, !tbaa !9
  %204 = getelementptr inbounds ptr, ptr %27, i64 9
  store ptr null, ptr %204, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !13
  br label %205

205:                                              ; preds = %274, %178
  %206 = load i32, ptr %28, align 4, !tbaa !13
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  %210 = icmp ne ptr %209, null
  br i1 %210, label %212, label %211

211:                                              ; preds = %205
  store i32 5, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %277

212:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %213 = load i32, ptr %28, align 4, !tbaa !13
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %30, align 4, !tbaa !13
  br label %215

215:                                              ; preds = %270, %212
  %216 = load i32, ptr %30, align 4, !tbaa !13
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !9
  %220 = icmp ne ptr %219, null
  br i1 %220, label %222, label %221

221:                                              ; preds = %215
  store i32 8, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %273

222:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %223 = load i32, ptr %28, align 4, !tbaa !13
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !9
  %227 = load i32, ptr %30, align 4, !tbaa !13
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !9
  %231 = call ptr @synthesized_andnot(ptr noundef %226, ptr noundef %230)
  store ptr %231, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %232 = load i32, ptr %28, align 4, !tbaa !13
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !9
  %236 = call ptr @roaring_bitmap_copy(ptr noundef %235)
  store ptr %236, ptr %32, align 8, !tbaa !9
  %237 = load ptr, ptr %32, align 8, !tbaa !9
  %238 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %239 = trunc i8 %238 to i1
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %237, i1 noundef zeroext %239)
  %240 = load ptr, ptr %32, align 8, !tbaa !9
  %241 = load i32, ptr %30, align 4, !tbaa !13
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !9
  call void @roaring_bitmap_andnot_inplace(ptr noundef %240, ptr noundef %244)
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  %245 = load ptr, ptr %31, align 8, !tbaa !9
  %246 = load ptr, ptr %32, align 8, !tbaa !9
  %247 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %245, ptr noundef %246)
  %248 = zext i1 %247 to i8
  store i8 %248, ptr %33, align 1, !tbaa !5
  %249 = load i8, ptr %33, align 1, !tbaa !5, !range !11, !noundef !12
  %250 = trunc i8 %249 to i1
  br i1 %250, label %264, label %251

251:                                              ; preds = %222
  %252 = load i32, ptr %28, align 4, !tbaa !13
  %253 = load i32, ptr %30, align 4, !tbaa !13
  %254 = call i32 (ptr, ...) @printf(ptr noundef @.str.100, i32 noundef %252, i32 noundef %253)
  %255 = load ptr, ptr %32, align 8, !tbaa !9
  %256 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %255)
  %257 = trunc i64 %256 to i32
  %258 = load ptr, ptr %31, align 8, !tbaa !9
  %259 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %258)
  %260 = trunc i64 %259 to i32
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.101, i32 noundef %257, i32 noundef %260)
  %262 = load ptr, ptr %32, align 8, !tbaa !9
  %263 = load ptr, ptr %31, align 8, !tbaa !9
  call void @show_difference(ptr noundef %262, ptr noundef %263)
  br label %264

264:                                              ; preds = %251, %222
  %265 = load i8, ptr %33, align 1, !tbaa !5, !range !11, !noundef !12
  %266 = trunc i8 %265 to i1
  %267 = zext i1 %266 to i64
  call void @_assert_true(i64 noundef %267, ptr noundef @.str.99, ptr noundef @.str.2, i32 noundef 2263)
  %268 = load ptr, ptr %31, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %268)
  %269 = load ptr, ptr %32, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %269)
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %270

270:                                              ; preds = %264
  %271 = load i32, ptr %30, align 4, !tbaa !13
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %30, align 4, !tbaa !13
  br label %215, !llvm.loop !17

273:                                              ; preds = %221
  br label %274

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

277:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  store i32 0, ptr %34, align 4, !tbaa !13
  br label %278

278:                                              ; preds = %290, %277
  %279 = load i32, ptr %34, align 4, !tbaa !13
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %280
  %282 = load ptr, ptr %281, align 8, !tbaa !9
  %283 = icmp ne ptr %282, null
  br i1 %283, label %285, label %284

284:                                              ; preds = %278
  store i32 11, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %293

285:                                              ; preds = %278
  %286 = load i32, ptr %34, align 4, !tbaa !13
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [10 x ptr], ptr %27, i64 0, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %289)
  br label %290

290:                                              ; preds = %285
  %291 = load i32, ptr %34, align 4, !tbaa !13
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %34, align 4, !tbaa !13
  br label %278, !llvm.loop !19

293:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #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
}

declare void @roaring_bitmap_andnot_inplace(ptr noundef, ptr 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 = { 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}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [48 x i8], align 1
@__const.test_andnot_inplace.data1 = external hidden unnamed_addr constant [13 x i32], align 16
@__const.test_andnot_inplace.data2 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot_inplace.data3 = external hidden unnamed_addr constant [11 x i32], align 16
@__const.test_andnot_inplace.d1_minus_d2 = external hidden unnamed_addr constant [10 x i32], align 16
@__const.test_andnot_inplace.d1_minus_d3 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.test_andnot_inplace.d2_minus_d1 = external hidden unnamed_addr constant [8 x i32], align 16
@__const.test_andnot_inplace.d3_minus_d1 = external hidden unnamed_addr constant [7 x i32], align 16
@__const.test_andnot_inplace.d3_minus_d2 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.109 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [42 x i8], align 1
@__const.test_andnot_inplace.d1_minus_largerun = external hidden unnamed_addr constant [6 x i32], align 16
@.str.114 = external hidden unnamed_addr constant [47 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

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 ptr @roaring_bitmap_copy(ptr noundef) local_unnamed_addr #1

declare void @roaring_bitmap_add(ptr noundef, i32 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
declare hidden void @show_difference(ptr noundef, ptr noundef) local_unnamed_addr #5

; 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

; Function Attrs: nounwind uwtable
define dso_local void @test_andnot_inplace(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_inplace.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_inplace.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_inplace.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_inplace.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_inplace.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_inplace.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_inplace.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_inplace.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_copy(ptr noundef %14) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %23, 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.109, ptr noundef nonnull @.str.2, i32 noundef 2163) #6
  call void @roaring_bitmap_free(ptr noundef %23) #6
  %26 = call ptr @roaring_bitmap_copy(ptr noundef %14) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %26, 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.110, ptr noundef nonnull @.str.2, i32 noundef 2168) #6
  call void @roaring_bitmap_free(ptr noundef %26) #6
  %29 = call ptr @roaring_bitmap_copy(ptr noundef %15) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %29, 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.111, ptr noundef nonnull @.str.2, i32 noundef 2173) #6
  call void @roaring_bitmap_free(ptr noundef %29) #6
  %32 = call ptr @roaring_bitmap_copy(ptr noundef %16) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %32, 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.112, ptr noundef nonnull @.str.2, i32 noundef 2178) #6
  call void @roaring_bitmap_free(ptr noundef %32) #6
  %35 = call ptr @roaring_bitmap_copy(ptr noundef %16) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %35, 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.113, ptr noundef nonnull @.str.2, i32 noundef 2183) #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_copy(ptr noundef %14) #6
  call void @roaring_bitmap_andnot_inplace(ptr noundef %39, 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_inplace.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.114, ptr noundef nonnull @.str.2, i32 noundef 2196) #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 %64

43:                                               ; preds = %72
  call void @roaring_bitmap_andnot_inplace(ptr noundef %12, ptr noundef %13) #6
  %44 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %12) #6
  %45 = zext nneg i32 %.1 to i64
  call void @_assert_int_equal(i64 noundef %44, i64 noundef %45, ptr noundef nonnull @.str.2, i32 noundef 2217) #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
  %46 = 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 %46, ptr %11, align 16, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %11, i64 8
  %48 = 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 %48, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %11, i64 16
  %50 = 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 %50, ptr %49, align 16, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %11, i64 24
  %52 = 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 %52, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %11, i64 32
  %54 = 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 %54, ptr %53, align 16, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %11, i64 40
  %56 = 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 %56, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %11, i64 48
  %58 = 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 %58, ptr %57, align 16, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %11, i64 56
  %60 = 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 %60, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %11, i64 64
  %62 = 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 %62, ptr %61, align 16, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %11, i64 72
  store ptr null, ptr %63, align 8, !tbaa !5
  %.not118 = icmp eq ptr %46, null
  br i1 %.not118, label %._crit_edge, label %.lr.ph120

64:                                               ; preds = %1, %72
  %.0102115 = phi i32 [ 0, %1 ], [ %.1, %72 ]
  %.0103114 = phi i32 [ 0, %1 ], [ %74, %72 ]
  %65 = and i32 %.0103114, 1
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  call void @roaring_bitmap_add(ptr noundef %12, i32 noundef %.0103114) #6
  br label %68

68:                                               ; preds = %67, %64
  %.lhs.trunc = trunc nuw i32 %.0103114 to i16
  %69 = urem i16 %.lhs.trunc, 3
  %70 = icmp ne i16 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  call void @roaring_bitmap_add(ptr noundef %13, i32 noundef %.0103114) #6
  br label %72

72:                                               ; preds = %71, %68
  %or.cond.not = and i1 %66, %70
  %73 = zext i1 %or.cond.not to i32
  %.1 = add nuw nsw i32 %.0102115, %73
  %74 = add nuw nsw i32 %.0103114, 1
  %exitcond.not = icmp eq i32 %74, 300
  br i1 %exitcond.not, label %43, label %64, !llvm.loop !9

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

.preheader:                                       ; preds = %.lr.ph120, %.loopexit
  br i1 %.not118, label %._crit_edge, label %.lr.ph123

.lr.ph120:                                        ; preds = %43, %.loopexit
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %.loopexit ], [ 0, %43 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 1, %43 ]
  %75 = phi ptr [ %77, %.loopexit ], [ %46, %43 ]
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %76 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next128
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %.not109116 = icmp eq ptr %77, null
  br i1 %.not109116, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph120
  %78 = trunc nuw nsw i64 %indvars.iv127 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %91
  %indvars.iv124 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next125, %91 ]
  %79 = phi ptr [ %77, %.lr.ph.preheader ], [ %94, %91 ]
  %80 = call ptr @synthesized_andnot(ptr noundef nonnull %75, ptr noundef nonnull %79)
  %81 = call ptr @roaring_bitmap_copy(ptr noundef nonnull %75) #6
  call void @roaring_bitmap_set_copy_on_write(ptr noundef %81, i1 noundef zeroext %0)
  call void @roaring_bitmap_andnot_inplace(ptr noundef %81, ptr noundef nonnull %79) #6
  %82 = call zeroext i1 @roaring_bitmap_equals(ptr noundef %80, ptr noundef %81) #6
  br i1 %82, label %91, label %83

83:                                               ; preds = %.lr.ph
  %84 = trunc nuw nsw i64 %indvars.iv124 to i32
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.100, i32 noundef %78, i32 noundef %84)
  %86 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %81) #6
  %87 = trunc i64 %86 to i32
  %88 = call i64 @roaring_bitmap_get_cardinality(ptr noundef %80) #6
  %89 = trunc i64 %88 to i32
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.101, i32 noundef %87, i32 noundef %89)
  call void @show_difference(ptr noundef %81, ptr noundef %80)
  br label %91

91:                                               ; preds = %83, %.lr.ph
  %92 = zext i1 %82 to i64
  call void @_assert_true(i64 noundef %92, ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.2, i32 noundef 2263) #6
  call void @roaring_bitmap_free(ptr noundef %80) #6
  call void @roaring_bitmap_free(ptr noundef %81) #6
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %93 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next125
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %.not109 = icmp eq ptr %94, null
  br i1 %.not109, label %.loopexit, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph123, %43, %.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.ph123:                                        ; preds = %.preheader, %.lr.ph123
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph123 ], [ 0, %.preheader ]
  %95 = phi ptr [ %97, %.lr.ph123 ], [ %46, %.preheader ]
  call void @roaring_bitmap_free(ptr noundef nonnull %95) #6
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %96 = getelementptr inbounds [10 x ptr], ptr %11, i64 0, i64 %indvars.iv.next131
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %.not108 = icmp eq ptr %97, null
  br i1 %.not108, label %._crit_edge, label %.lr.ph123, !llvm.loop !13
}

declare void @roaring_bitmap_andnot_inplace(ptr noundef, ptr noundef) local_unnamed_addr #1

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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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