; 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.157 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [18 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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @sbs_create() #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_convert(ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_add_value(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_add_range(ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_remove_range(ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @sbs_check_type(ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @sbs_is_empty(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_compare(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @test_remove_range() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %16 = call ptr @sbs_create()
  store ptr %16, ptr %1, align 8, !tbaa !5
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %17, i64 noundef 100, i64 noundef 200)
  %18 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_convert(ptr noundef %18, i8 noundef zeroext 2)
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %19, i64 noundef 100, i64 noundef 105)
  %20 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %20, i64 noundef 195, i64 noundef 200)
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %21, i64 noundef 150, i64 noundef 155)
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = call zeroext i1 @sbs_check_type(ptr noundef %22, i8 noundef zeroext 2)
  %24 = zext i1 %23 to i64
  call void @_assert_true(i64 noundef %24, ptr noundef @.str.159, ptr noundef @.str.2, i32 noundef 3761)
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %25)
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %26, i64 noundef 102, i64 noundef 198)
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = call zeroext i1 @sbs_is_empty(ptr noundef %27)
  %29 = zext i1 %28 to i64
  call void @_assert_true(i64 noundef %29, ptr noundef @.str.162, ptr noundef @.str.2, i32 noundef 3764)
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %31 = call ptr @sbs_create()
  store ptr %31, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %32, i64 noundef 0, i64 noundef 40000)
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_convert(ptr noundef %33, i8 noundef zeroext 1)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %34, i64 noundef 100, i64 noundef 200)
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = call zeroext i1 @sbs_check_type(ptr noundef %35, i8 noundef zeroext 1)
  %37 = zext i1 %36 to i64
  call void @_assert_true(i64 noundef %37, ptr noundef @.str.157, ptr noundef @.str.2, i32 noundef 3774)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %38, i64 noundef 200, i64 noundef 39900)
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = call zeroext i1 @sbs_check_type(ptr noundef %39, i8 noundef zeroext 2)
  %41 = zext i1 %40 to i64
  call void @_assert_true(i64 noundef %41, ptr noundef @.str.159, ptr noundef @.str.2, i32 noundef 3776)
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %42)
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %44 = call ptr @sbs_create()
  store ptr %44, ptr %3, align 8, !tbaa !5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %45, i64 noundef 100, i64 noundef 200)
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sbs_convert(ptr noundef %46, i8 noundef zeroext 1)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %47, i64 noundef 50, i64 noundef 250)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call zeroext i1 @sbs_is_empty(ptr noundef %48)
  %50 = zext i1 %49 to i64
  call void @_assert_true(i64 noundef %50, ptr noundef @.str.162, ptr noundef @.str.2, i32 noundef 3787)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %51)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %52 = call ptr @sbs_create()
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %53, i64 noundef 0, i64 noundef 40000)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %54, i64 noundef 50000, i64 noundef 60000)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_convert(ptr noundef %55, i8 noundef zeroext 3)
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %56, i64 noundef 100, i64 noundef 200)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %57, i64 noundef 40000, i64 noundef 50000)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call zeroext i1 @sbs_check_type(ptr noundef %58, i8 noundef zeroext 3)
  %60 = zext i1 %59 to i64
  call void @_assert_true(i64 noundef %60, ptr noundef @.str.158, ptr noundef @.str.2, i32 noundef 3799)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %76, %0
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = icmp slt i32 %62, 65535
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %79

65:                                               ; preds = %61
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = srem i32 %66, 2
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %75

69:                                               ; preds = %65
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  call void @sbs_remove_range(ptr noundef %70, i64 noundef %72, i64 noundef %74)
  br label %75

75:                                               ; preds = %69, %65
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %5, align 4, !tbaa !9
  br label %61, !llvm.loop !11

79:                                               ; preds = %64
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call zeroext i1 @sbs_check_type(ptr noundef %80, i8 noundef zeroext 1)
  %82 = zext i1 %81 to i64
  call void @_assert_true(i64 noundef %82, ptr noundef @.str.157, ptr noundef @.str.2, i32 noundef 3805)
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %83)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %84)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %85 = call ptr @sbs_create()
  store ptr %85, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %86, i64 noundef 100, i64 noundef 200)
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sbs_add_range(ptr noundef %87, i64 noundef 300, i64 noundef 400)
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sbs_convert(ptr noundef %88, i8 noundef zeroext 3)
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %89, i64 noundef 50, i64 noundef 450)
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = call zeroext i1 @sbs_is_empty(ptr noundef %90)
  %92 = zext i1 %91 to i64
  call void @_assert_true(i64 noundef %92, ptr noundef @.str.162, ptr noundef @.str.2, i32 noundef 3817)
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %93)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %94 = call ptr @sbs_create()
  store ptr %94, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_add_value(ptr noundef %95, i32 noundef 65636)
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_add_value(ptr noundef %96, i32 noundef 196708)
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_add_value(ptr noundef %97, i32 noundef 327780)
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_add_value(ptr noundef %98, i32 noundef 458852)
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %99, i64 noundef 196608, i64 noundef 262143)
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %100)
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %101, i64 noundef 65536, i64 noundef 131071)
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %102)
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %103, i64 noundef 458752, i64 noundef 524287)
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %104)
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %105, i64 noundef 327680, i64 noundef 393215)
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %106)
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_remove_range(ptr noundef %107, i64 noundef 589824, i64 noundef 655359)
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %108)
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %109)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1048576, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 3, ptr %9, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %160, %79
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = icmp ule i32 %111, 16384
  br i1 %112, label %114, label %113

113:                                              ; preds = %110
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %163

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %115 = call ptr @sbs_create()
  store ptr %115, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %133, %114
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 50
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %136

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %121 = call i32 @our_rand()
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = sub i32 1048576, %122
  %124 = urem i32 %121, %123
  %125 = zext i32 %124 to i64
  store i64 %125, ptr %13, align 8, !tbaa !13
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i64, ptr %13, align 8, !tbaa !13
  %128 = load i64, ptr %13, align 8, !tbaa !13
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %128, %130
  %132 = sub i64 %131, 1
  call void @sbs_add_range(ptr noundef %126, i64 noundef %127, i64 noundef %132)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %133

133:                                              ; preds = %120
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %12, align 4, !tbaa !9
  br label %116, !llvm.loop !15

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

137:                                              ; preds = %154, %136
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 50
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %157

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %142 = call i32 @our_rand()
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = sub i32 1048576, %143
  %145 = urem i32 %142, %144
  %146 = zext i32 %145 to i64
  store i64 %146, ptr %15, align 8, !tbaa !13
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load i64, ptr %15, align 8, !tbaa !13
  %149 = load i64, ptr %15, align 8, !tbaa !13
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %149, %151
  %153 = sub i64 %152, 1
  call void @sbs_remove_range(ptr noundef %147, i64 noundef %148, i64 noundef %153)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %154

154:                                              ; preds = %141
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %14, align 4, !tbaa !9
  br label %137, !llvm.loop !16

157:                                              ; preds = %140
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  call void @sbs_compare(ptr noundef %158)
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  call void @sbs_free(ptr noundef %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %160

160:                                              ; preds = %157
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = mul i32 %161, 3
  store i32 %162, ptr %9, align 4, !tbaa !9
  br label %110, !llvm.loop !17

163:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  ret void
}

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

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

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

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


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

@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [18 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @sbs_create() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_convert(ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_add_value(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_add_range(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_remove_range(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @sbs_check_type(ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @sbs_is_empty(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @sbs_compare(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_remove_range() local_unnamed_addr #1 {
  %1 = tail call ptr @sbs_create()
  tail call void @sbs_add_range(ptr noundef %1, i64 noundef 100, i64 noundef 200)
  tail call void @sbs_convert(ptr noundef %1, i8 noundef zeroext 2)
  tail call void @sbs_remove_range(ptr noundef %1, i64 noundef 100, i64 noundef 105)
  tail call void @sbs_remove_range(ptr noundef %1, i64 noundef 195, i64 noundef 200)
  tail call void @sbs_remove_range(ptr noundef %1, i64 noundef 150, i64 noundef 155)
  %2 = tail call zeroext i1 @sbs_check_type(ptr noundef %1, i8 noundef zeroext 2)
  %3 = zext i1 %2 to i64
  tail call void @_assert_true(i64 noundef %3, ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.2, i32 noundef 3761) #3
  tail call void @sbs_compare(ptr noundef %1)
  tail call void @sbs_remove_range(ptr noundef %1, i64 noundef 102, i64 noundef 198)
  %4 = tail call zeroext i1 @sbs_is_empty(ptr noundef %1)
  %5 = zext i1 %4 to i64
  tail call void @_assert_true(i64 noundef %5, ptr noundef nonnull @.str.162, ptr noundef nonnull @.str.2, i32 noundef 3764) #3
  tail call void @sbs_free(ptr noundef %1)
  %6 = tail call ptr @sbs_create()
  tail call void @sbs_add_range(ptr noundef %6, i64 noundef 0, i64 noundef 40000)
  tail call void @sbs_convert(ptr noundef %6, i8 noundef zeroext 1)
  tail call void @sbs_remove_range(ptr noundef %6, i64 noundef 100, i64 noundef 200)
  %7 = tail call zeroext i1 @sbs_check_type(ptr noundef %6, i8 noundef zeroext 1)
  %8 = zext i1 %7 to i64
  tail call void @_assert_true(i64 noundef %8, ptr noundef nonnull @.str.157, ptr noundef nonnull @.str.2, i32 noundef 3774) #3
  tail call void @sbs_remove_range(ptr noundef %6, i64 noundef 200, i64 noundef 39900)
  %9 = tail call zeroext i1 @sbs_check_type(ptr noundef %6, i8 noundef zeroext 2)
  %10 = zext i1 %9 to i64
  tail call void @_assert_true(i64 noundef %10, ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.2, i32 noundef 3776) #3
  tail call void @sbs_compare(ptr noundef %6)
  tail call void @sbs_free(ptr noundef %6)
  %11 = tail call ptr @sbs_create()
  tail call void @sbs_add_range(ptr noundef %11, i64 noundef 100, i64 noundef 200)
  tail call void @sbs_convert(ptr noundef %11, i8 noundef zeroext 1)
  tail call void @sbs_remove_range(ptr noundef %11, i64 noundef 50, i64 noundef 250)
  %12 = tail call zeroext i1 @sbs_is_empty(ptr noundef %11)
  %13 = zext i1 %12 to i64
  tail call void @_assert_true(i64 noundef %13, ptr noundef nonnull @.str.162, ptr noundef nonnull @.str.2, i32 noundef 3787) #3
  tail call void @sbs_free(ptr noundef %11)
  %14 = tail call ptr @sbs_create()
  tail call void @sbs_add_range(ptr noundef %14, i64 noundef 0, i64 noundef 40000)
  tail call void @sbs_add_range(ptr noundef %14, i64 noundef 50000, i64 noundef 60000)
  tail call void @sbs_convert(ptr noundef %14, i8 noundef zeroext 3)
  tail call void @sbs_remove_range(ptr noundef %14, i64 noundef 100, i64 noundef 200)
  tail call void @sbs_remove_range(ptr noundef %14, i64 noundef 40000, i64 noundef 50000)
  %15 = tail call zeroext i1 @sbs_check_type(ptr noundef %14, i8 noundef zeroext 3)
  %16 = zext i1 %15 to i64
  tail call void @_assert_true(i64 noundef %16, ptr noundef nonnull @.str.158, ptr noundef nonnull @.str.2, i32 noundef 3799) #3
  br label %25

17:                                               ; preds = %29
  %18 = tail call zeroext i1 @sbs_check_type(ptr noundef %14, i8 noundef zeroext 1)
  %19 = zext i1 %18 to i64
  tail call void @_assert_true(i64 noundef %19, ptr noundef nonnull @.str.157, ptr noundef nonnull @.str.2, i32 noundef 3805) #3
  tail call void @sbs_compare(ptr noundef %14)
  tail call void @sbs_free(ptr noundef %14)
  %20 = tail call ptr @sbs_create()
  tail call void @sbs_add_range(ptr noundef %20, i64 noundef 100, i64 noundef 200)
  tail call void @sbs_add_range(ptr noundef %20, i64 noundef 300, i64 noundef 400)
  tail call void @sbs_convert(ptr noundef %20, i8 noundef zeroext 3)
  tail call void @sbs_remove_range(ptr noundef %20, i64 noundef 50, i64 noundef 450)
  %21 = tail call zeroext i1 @sbs_is_empty(ptr noundef %20)
  %22 = zext i1 %21 to i64
  tail call void @_assert_true(i64 noundef %22, ptr noundef nonnull @.str.162, ptr noundef nonnull @.str.2, i32 noundef 3817) #3
  tail call void @sbs_free(ptr noundef %20)
  %23 = tail call ptr @sbs_create()
  tail call void @sbs_add_value(ptr noundef %23, i32 noundef 65636)
  tail call void @sbs_add_value(ptr noundef %23, i32 noundef 196708)
  tail call void @sbs_add_value(ptr noundef %23, i32 noundef 327780)
  tail call void @sbs_add_value(ptr noundef %23, i32 noundef 458852)
  tail call void @sbs_remove_range(ptr noundef %23, i64 noundef 196608, i64 noundef 262143)
  tail call void @sbs_compare(ptr noundef %23)
  tail call void @sbs_remove_range(ptr noundef %23, i64 noundef 65536, i64 noundef 131071)
  tail call void @sbs_compare(ptr noundef %23)
  tail call void @sbs_remove_range(ptr noundef %23, i64 noundef 458752, i64 noundef 524287)
  tail call void @sbs_compare(ptr noundef %23)
  tail call void @sbs_remove_range(ptr noundef %23, i64 noundef 327680, i64 noundef 393215)
  tail call void @sbs_compare(ptr noundef %23)
  tail call void @sbs_remove_range(ptr noundef %23, i64 noundef 589824, i64 noundef 655359)
  tail call void @sbs_compare(ptr noundef %23)
  tail call void @sbs_free(ptr noundef %23)
  %24 = tail call ptr @sbs_create()
  br label %30

25:                                               ; preds = %0, %29
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %29 ]
  %26 = and i64 %indvars.iv, 1
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  tail call void @sbs_remove_range(ptr noundef %14, i64 noundef %indvars.iv, i64 noundef %indvars.iv)
  br label %29

29:                                               ; preds = %25, %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 65535
  br i1 %exitcond.not, label %17, label %25, !llvm.loop !5

30:                                               ; preds = %17, %30
  %.07881 = phi i32 [ 0, %17 ], [ %36, %30 ]
  %31 = tail call i32 @our_rand()
  %32 = urem i32 %31, 1048573
  %33 = zext nneg i32 %32 to i64
  %34 = add nuw nsw i32 %32, 2
  %35 = zext nneg i32 %34 to i64
  tail call void @sbs_add_range(ptr noundef %24, i64 noundef %33, i64 noundef %35)
  %36 = add nuw nsw i32 %.07881, 1
  %exitcond85.not = icmp eq i32 %36, 50
  br i1 %exitcond85.not, label %.preheader, label %30, !llvm.loop !7

37:                                               ; preds = %.preheader
  tail call void @sbs_compare(ptr noundef %24)
  tail call void @sbs_free(ptr noundef %24)
  %38 = tail call ptr @sbs_create()
  br label %39

39:                                               ; preds = %39, %37
  %.07881.1 = phi i32 [ 0, %37 ], [ %45, %39 ]
  %40 = tail call i32 @our_rand()
  %41 = urem i32 %40, 1048567
  %42 = zext nneg i32 %41 to i64
  %43 = add nuw nsw i32 %41, 8
  %44 = zext nneg i32 %43 to i64
  tail call void @sbs_add_range(ptr noundef %38, i64 noundef %42, i64 noundef %44)
  %45 = add nuw nsw i32 %.07881.1, 1
  %exitcond85.not.1 = icmp eq i32 %45, 50
  br i1 %exitcond85.not.1, label %.preheader.1, label %39, !llvm.loop !7

.preheader.1:                                     ; preds = %39, %.preheader.1
  %.07682.1 = phi i32 [ %51, %.preheader.1 ], [ 0, %39 ]
  %46 = tail call i32 @our_rand()
  %47 = urem i32 %46, 1048567
  %48 = zext nneg i32 %47 to i64
  %49 = add nuw nsw i32 %47, 8
  %50 = zext nneg i32 %49 to i64
  tail call void @sbs_remove_range(ptr noundef %38, i64 noundef %48, i64 noundef %50)
  %51 = add nuw nsw i32 %.07682.1, 1
  %exitcond86.not.1 = icmp eq i32 %51, 50
  br i1 %exitcond86.not.1, label %52, label %.preheader.1, !llvm.loop !8

52:                                               ; preds = %.preheader.1
  tail call void @sbs_compare(ptr noundef %38)
  tail call void @sbs_free(ptr noundef %38)
  %53 = tail call ptr @sbs_create()
  br label %54

54:                                               ; preds = %54, %52
  %.07881.2 = phi i32 [ 0, %52 ], [ %60, %54 ]
  %55 = tail call i32 @our_rand()
  %56 = urem i32 %55, 1048549
  %57 = zext nneg i32 %56 to i64
  %58 = add nuw nsw i32 %56, 26
  %59 = zext nneg i32 %58 to i64
  tail call void @sbs_add_range(ptr noundef %53, i64 noundef %57, i64 noundef %59)
  %60 = add nuw nsw i32 %.07881.2, 1
  %exitcond85.not.2 = icmp eq i32 %60, 50
  br i1 %exitcond85.not.2, label %.preheader.2, label %54, !llvm.loop !7

.preheader.2:                                     ; preds = %54, %.preheader.2
  %.07682.2 = phi i32 [ %66, %.preheader.2 ], [ 0, %54 ]
  %61 = tail call i32 @our_rand()
  %62 = urem i32 %61, 1048549
  %63 = zext nneg i32 %62 to i64
  %64 = add nuw nsw i32 %62, 26
  %65 = zext nneg i32 %64 to i64
  tail call void @sbs_remove_range(ptr noundef %53, i64 noundef %63, i64 noundef %65)
  %66 = add nuw nsw i32 %.07682.2, 1
  %exitcond86.not.2 = icmp eq i32 %66, 50
  br i1 %exitcond86.not.2, label %67, label %.preheader.2, !llvm.loop !8

67:                                               ; preds = %.preheader.2
  tail call void @sbs_compare(ptr noundef %53)
  tail call void @sbs_free(ptr noundef %53)
  %68 = tail call ptr @sbs_create()
  br label %69

69:                                               ; preds = %69, %67
  %.07881.3 = phi i32 [ 0, %67 ], [ %75, %69 ]
  %70 = tail call i32 @our_rand()
  %71 = urem i32 %70, 1048495
  %72 = zext nneg i32 %71 to i64
  %73 = add nuw nsw i32 %71, 80
  %74 = zext nneg i32 %73 to i64
  tail call void @sbs_add_range(ptr noundef %68, i64 noundef %72, i64 noundef %74)
  %75 = add nuw nsw i32 %.07881.3, 1
  %exitcond85.not.3 = icmp eq i32 %75, 50
  br i1 %exitcond85.not.3, label %.preheader.3, label %69, !llvm.loop !7

.preheader.3:                                     ; preds = %69, %.preheader.3
  %.07682.3 = phi i32 [ %81, %.preheader.3 ], [ 0, %69 ]
  %76 = tail call i32 @our_rand()
  %77 = urem i32 %76, 1048495
  %78 = zext nneg i32 %77 to i64
  %79 = add nuw nsw i32 %77, 80
  %80 = zext nneg i32 %79 to i64
  tail call void @sbs_remove_range(ptr noundef %68, i64 noundef %78, i64 noundef %80)
  %81 = add nuw nsw i32 %.07682.3, 1
  %exitcond86.not.3 = icmp eq i32 %81, 50
  br i1 %exitcond86.not.3, label %82, label %.preheader.3, !llvm.loop !8

82:                                               ; preds = %.preheader.3
  tail call void @sbs_compare(ptr noundef %68)
  tail call void @sbs_free(ptr noundef %68)
  %83 = tail call ptr @sbs_create()
  br label %84

84:                                               ; preds = %84, %82
  %.07881.4 = phi i32 [ 0, %82 ], [ %90, %84 ]
  %85 = tail call i32 @our_rand()
  %86 = urem i32 %85, 1048333
  %87 = zext nneg i32 %86 to i64
  %88 = add nuw nsw i32 %86, 242
  %89 = zext nneg i32 %88 to i64
  tail call void @sbs_add_range(ptr noundef %83, i64 noundef %87, i64 noundef %89)
  %90 = add nuw nsw i32 %.07881.4, 1
  %exitcond85.not.4 = icmp eq i32 %90, 50
  br i1 %exitcond85.not.4, label %.preheader.4, label %84, !llvm.loop !7

.preheader.4:                                     ; preds = %84, %.preheader.4
  %.07682.4 = phi i32 [ %96, %.preheader.4 ], [ 0, %84 ]
  %91 = tail call i32 @our_rand()
  %92 = urem i32 %91, 1048333
  %93 = zext nneg i32 %92 to i64
  %94 = add nuw nsw i32 %92, 242
  %95 = zext nneg i32 %94 to i64
  tail call void @sbs_remove_range(ptr noundef %83, i64 noundef %93, i64 noundef %95)
  %96 = add nuw nsw i32 %.07682.4, 1
  %exitcond86.not.4 = icmp eq i32 %96, 50
  br i1 %exitcond86.not.4, label %97, label %.preheader.4, !llvm.loop !8

97:                                               ; preds = %.preheader.4
  tail call void @sbs_compare(ptr noundef %83)
  tail call void @sbs_free(ptr noundef %83)
  %98 = tail call ptr @sbs_create()
  br label %99

99:                                               ; preds = %99, %97
  %.07881.5 = phi i32 [ 0, %97 ], [ %105, %99 ]
  %100 = tail call i32 @our_rand()
  %101 = urem i32 %100, 1047847
  %102 = zext nneg i32 %101 to i64
  %103 = add nuw nsw i32 %101, 728
  %104 = zext nneg i32 %103 to i64
  tail call void @sbs_add_range(ptr noundef %98, i64 noundef %102, i64 noundef %104)
  %105 = add nuw nsw i32 %.07881.5, 1
  %exitcond85.not.5 = icmp eq i32 %105, 50
  br i1 %exitcond85.not.5, label %.preheader.5, label %99, !llvm.loop !7

.preheader.5:                                     ; preds = %99, %.preheader.5
  %.07682.5 = phi i32 [ %111, %.preheader.5 ], [ 0, %99 ]
  %106 = tail call i32 @our_rand()
  %107 = urem i32 %106, 1047847
  %108 = zext nneg i32 %107 to i64
  %109 = add nuw nsw i32 %107, 728
  %110 = zext nneg i32 %109 to i64
  tail call void @sbs_remove_range(ptr noundef %98, i64 noundef %108, i64 noundef %110)
  %111 = add nuw nsw i32 %.07682.5, 1
  %exitcond86.not.5 = icmp eq i32 %111, 50
  br i1 %exitcond86.not.5, label %112, label %.preheader.5, !llvm.loop !8

112:                                              ; preds = %.preheader.5
  tail call void @sbs_compare(ptr noundef %98)
  tail call void @sbs_free(ptr noundef %98)
  %113 = tail call ptr @sbs_create()
  br label %114

114:                                              ; preds = %114, %112
  %.07881.6 = phi i32 [ 0, %112 ], [ %120, %114 ]
  %115 = tail call i32 @our_rand()
  %116 = urem i32 %115, 1046389
  %117 = zext nneg i32 %116 to i64
  %118 = add nuw nsw i32 %116, 2186
  %119 = zext nneg i32 %118 to i64
  tail call void @sbs_add_range(ptr noundef %113, i64 noundef %117, i64 noundef %119)
  %120 = add nuw nsw i32 %.07881.6, 1
  %exitcond85.not.6 = icmp eq i32 %120, 50
  br i1 %exitcond85.not.6, label %.preheader.6, label %114, !llvm.loop !7

.preheader.6:                                     ; preds = %114, %.preheader.6
  %.07682.6 = phi i32 [ %126, %.preheader.6 ], [ 0, %114 ]
  %121 = tail call i32 @our_rand()
  %122 = urem i32 %121, 1046389
  %123 = zext nneg i32 %122 to i64
  %124 = add nuw nsw i32 %122, 2186
  %125 = zext nneg i32 %124 to i64
  tail call void @sbs_remove_range(ptr noundef %113, i64 noundef %123, i64 noundef %125)
  %126 = add nuw nsw i32 %.07682.6, 1
  %exitcond86.not.6 = icmp eq i32 %126, 50
  br i1 %exitcond86.not.6, label %127, label %.preheader.6, !llvm.loop !8

127:                                              ; preds = %.preheader.6
  tail call void @sbs_compare(ptr noundef %113)
  tail call void @sbs_free(ptr noundef %113)
  %128 = tail call ptr @sbs_create()
  br label %129

129:                                              ; preds = %129, %127
  %.07881.7 = phi i32 [ 0, %127 ], [ %135, %129 ]
  %130 = tail call i32 @our_rand()
  %131 = urem i32 %130, 1042015
  %132 = zext nneg i32 %131 to i64
  %133 = add nuw nsw i32 %131, 6560
  %134 = zext nneg i32 %133 to i64
  tail call void @sbs_add_range(ptr noundef %128, i64 noundef %132, i64 noundef %134)
  %135 = add nuw nsw i32 %.07881.7, 1
  %exitcond85.not.7 = icmp eq i32 %135, 50
  br i1 %exitcond85.not.7, label %.preheader.7, label %129, !llvm.loop !7

.preheader.7:                                     ; preds = %129, %.preheader.7
  %.07682.7 = phi i32 [ %141, %.preheader.7 ], [ 0, %129 ]
  %136 = tail call i32 @our_rand()
  %137 = urem i32 %136, 1042015
  %138 = zext nneg i32 %137 to i64
  %139 = add nuw nsw i32 %137, 6560
  %140 = zext nneg i32 %139 to i64
  tail call void @sbs_remove_range(ptr noundef %128, i64 noundef %138, i64 noundef %140)
  %141 = add nuw nsw i32 %.07682.7, 1
  %exitcond86.not.7 = icmp eq i32 %141, 50
  br i1 %exitcond86.not.7, label %142, label %.preheader.7, !llvm.loop !8

142:                                              ; preds = %.preheader.7
  tail call void @sbs_compare(ptr noundef %128)
  tail call void @sbs_free(ptr noundef %128)
  ret void

.preheader:                                       ; preds = %30, %.preheader
  %.07682 = phi i32 [ %148, %.preheader ], [ 0, %30 ]
  %143 = tail call i32 @our_rand()
  %144 = urem i32 %143, 1048573
  %145 = zext nneg i32 %144 to i64
  %146 = add nuw nsw i32 %144, 2
  %147 = zext nneg i32 %146 to i64
  tail call void @sbs_remove_range(ptr noundef %24, i64 noundef %145, i64 noundef %147)
  %148 = add nuw nsw i32 %.07682, 1
  %exitcond86.not = icmp eq i32 %148, 50
  br i1 %exitcond86.not, label %37, label %.preheader, !llvm.loop !8
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


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