; LLVM IR from jermp/2i_bench :: external/CRoaring/benchmarks (real_bitmaps_benchmark)

; 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.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external global ptr, align 8
@optind = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [77 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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr @.str.1, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %30

30:                                               ; preds = %44, %2
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = call i32 @getopt(i32 noundef %31, ptr noundef %32, ptr noundef @.str.2) #6
  store i32 %33, ptr %6, align 4, !tbaa !5
  %34 = icmp ne i32 %33, -1
  br i1 %34, label %35, label %45

35:                                               ; preds = %30
  %36 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %36, label %43 [
    i32 101, label %37
    i32 104, label %39
  ]

37:                                               ; preds = %35
  %38 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %38, ptr %7, align 8, !tbaa !9
  br label %44

39:                                               ; preds = %35
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @printusage(ptr noundef %42)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %200

43:                                               ; preds = %35
  call void @abort() #7
  unreachable

44:                                               ; preds = %37
  br label %30, !llvm.loop !13

45:                                               ; preds = %30
  %46 = load i32, ptr @optind, align 4, !tbaa !5
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = icmp sge i32 %46, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 0
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  call void @printusage(ptr noundef %52)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %200

53:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = load i32, ptr @optind, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  store ptr %58, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %59 = load ptr, ptr %11, align 8, !tbaa !9
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = call ptr @read_all_integer_files(ptr noundef %59, ptr noundef %60, ptr noundef %13, ptr noundef %12)
  store ptr %61, ptr %14, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !9
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %68

64:                                               ; preds = %53
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %11, align 8, !tbaa !9
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %65, ptr noundef %66)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %199

68:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !15
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %70 = call { i32, i32 } asm sideeffect "cpuid\0A\09rdtsc\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !17
  %71 = extractvalue { i32, i32 } %70, 0
  %72 = extractvalue { i32, i32 } %70, 1
  store i32 %71, ptr %17, align 4, !tbaa !5
  store i32 %72, ptr %18, align 4, !tbaa !5
  %73 = load i32, ptr %17, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = shl i64 %74, 32
  %76 = load i32, ptr %18, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = or i64 %75, %77
  store i64 %78, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %79

79:                                               ; preds = %69
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !9
  %83 = load i64, ptr %12, align 8, !tbaa !15
  %84 = load i8, ptr %9, align 1, !tbaa !11, !range !18, !noundef !19
  %85 = trunc i8 %84 to i1
  %86 = load i8, ptr %8, align 1, !tbaa !11, !range !18, !noundef !19
  %87 = trunc i8 %86 to i1
  %88 = call ptr @create_all_bitmaps(ptr noundef %81, ptr noundef %82, i64 noundef %83, i1 noundef zeroext %85, i1 noundef zeroext %87)
  store ptr %88, ptr %19, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %90 = call { i32, i32 } asm sideeffect "rdtscp\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09cpuid\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !20
  %91 = extractvalue { i32, i32 } %90, 0
  %92 = extractvalue { i32, i32 } %90, 1
  store i32 %91, ptr %20, align 4, !tbaa !5
  store i32 %92, ptr %21, align 4, !tbaa !5
  %93 = load i32, ptr %20, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = shl i64 %94, 32
  %96 = load i32, ptr %21, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = or i64 %95, %97
  store i64 %98, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %99

99:                                               ; preds = %89
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %19, align 8, !tbaa !9
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %104

103:                                              ; preds = %100
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %198

104:                                              ; preds = %100
  %105 = load i64, ptr %12, align 8, !tbaa !15
  %106 = trunc i64 %105 to i32
  %107 = load ptr, ptr %11, align 8, !tbaa !9
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %106, ptr noundef %107)
  %109 = load i64, ptr %12, align 8, !tbaa !15
  %110 = load i64, ptr %16, align 8, !tbaa !15
  %111 = load i64, ptr %15, align 8, !tbaa !15
  %112 = sub i64 %110, %111
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %109, i64 noundef %112)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store double 0.000000e+00, ptr %22, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr null, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %156, %104
  %115 = load i32, ptr %24, align 4, !tbaa !5
  %116 = icmp ne i32 %115, 11
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %159

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %119 = call double @get_time_usecs()
  store double %119, ptr %25, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %141, %118
  %121 = load i32, ptr %26, align 4, !tbaa !5
  %122 = load i64, ptr %12, align 8, !tbaa !15
  %123 = trunc i64 %122 to i32
  %124 = sub nsw i32 %123, 1
  %125 = icmp slt i32 %121, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %120
  store i32 12, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %144

127:                                              ; preds = %120
  %128 = load ptr, ptr %19, align 8, !tbaa !9
  %129 = load i32, ptr %26, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load ptr, ptr %19, align 8, !tbaa !9
  %134 = load i32, ptr %26, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %133, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = call ptr @roaring_bitmap_and(ptr noundef %132, ptr noundef %138)
  store ptr %139, ptr %23, align 8, !tbaa !9
  %140 = load ptr, ptr %23, align 8, !tbaa !9
  call void @do_not_optimize_away(ptr noundef %140)
  br label %141

141:                                              ; preds = %127
  %142 = load i32, ptr %26, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %26, align 4, !tbaa !5
  br label %120, !llvm.loop !23

144:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %145 = call double @get_time_usecs()
  store double %145, ptr %27, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %146 = load double, ptr %27, align 8, !tbaa !21
  %147 = load double, ptr %25, align 8, !tbaa !21
  %148 = fsub double %146, %147
  store double %148, ptr %28, align 8, !tbaa !21
  %149 = load i32, ptr %24, align 4, !tbaa !5
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %155

151:                                              ; preds = %144
  %152 = load double, ptr %28, align 8, !tbaa !21
  %153 = load double, ptr %22, align 8, !tbaa !21
  %154 = fadd double %153, %152
  store double %154, ptr %22, align 8, !tbaa !21
  br label %155

155:                                              ; preds = %151, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %24, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %24, align 4, !tbaa !5
  br label %114, !llvm.loop !24

159:                                              ; preds = %117
  %160 = load ptr, ptr %23, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %160)
  %161 = load i64, ptr %12, align 8, !tbaa !15
  %162 = sub i64 %161, 1
  %163 = load double, ptr %22, align 8, !tbaa !21
  %164 = fdiv double %163, 1.000000e+01
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %162, double noundef %164, i32 noundef 10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %191, %159
  %167 = load i32, ptr %29, align 4, !tbaa !5
  %168 = load i64, ptr %12, align 8, !tbaa !15
  %169 = trunc i64 %168 to i32
  %170 = icmp slt i32 %167, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %166
  store i32 15, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %194

172:                                              ; preds = %166
  %173 = load ptr, ptr %14, align 8, !tbaa !9
  %174 = load i32, ptr %29, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %173, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  call void @free(ptr noundef %177) #6
  %178 = load ptr, ptr %14, align 8, !tbaa !9
  %179 = load i32, ptr %29, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  store ptr null, ptr %181, align 8, !tbaa !9
  %182 = load ptr, ptr %19, align 8, !tbaa !9
  %183 = load i32, ptr %29, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %186)
  %187 = load ptr, ptr %19, align 8, !tbaa !9
  %188 = load i32, ptr %29, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds ptr, ptr %187, i64 %189
  store ptr null, ptr %190, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %172
  %192 = load i32, ptr %29, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %29, align 4, !tbaa !5
  br label %166, !llvm.loop !25

194:                                              ; preds = %171
  %195 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %195) #6
  %196 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %196) #6
  %197 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %197) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %198

198:                                              ; preds = %194, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %199

199:                                              ; preds = %198, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %200

200:                                              ; preds = %199, %49, %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %201 = load i32, ptr %3, align 4
  ret i32 %201
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @printusage(ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @abort() #3

; Function Attrs: nounwind uwtable
declare hidden ptr @read_all_integer_files(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @create_all_bitmaps(ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) #1

declare ptr @roaring_bitmap_and(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare void @do_not_optimize_away(ptr noundef) #5

declare void @roaring_bitmap_free(ptr noundef) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare double @get_time_usecs() #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"int", !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 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{i64 2152236459, i64 2152236467, i64 2152236547, i64 2152236635, i64 2152236715}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{i64 2152237204, i64 2152237213, i64 2152237300, i64 2152237380, i64 2152237452}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@optind = external local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [77 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  br label %5

5:                                                ; preds = %7, %2
  %.052 = phi ptr [ @.str.1, %2 ], [ %8, %7 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.2) #8
  switch i32 %6, label %11 [
    i32 -1, label %12
    i32 101, label %7
    i32 104, label %9
  ]

7:                                                ; preds = %5
  %8 = load ptr, ptr @optarg, align 8, !tbaa !5
  br label %5, !llvm.loop !9

9:                                                ; preds = %5
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @printusage(ptr noundef %10)
  br label %237

11:                                               ; preds = %5
  tail call void @abort() #9
  unreachable

12:                                               ; preds = %5
  %13 = load i32, ptr @optind, align 4, !tbaa !11
  %.not63 = icmp slt i32 %13, %0
  br i1 %.not63, label %16, label %14

14:                                               ; preds = %12
  %15 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @printusage(ptr noundef %15)
  br label %237

16:                                               ; preds = %12
  %17 = sext i32 %13 to i64
  %18 = getelementptr inbounds ptr, ptr %1, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr null, ptr %4, align 8, !tbaa !5
  %20 = call ptr @read_all_integer_files(ptr noundef %19, ptr noundef %.052, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

22:                                               ; preds = %16
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %.052, ptr noundef %19)
  br label %236

24:                                               ; preds = %16
  %25 = call { i32, i32 } asm sideeffect "cpuid\0A\09rdtsc\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !13
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i64, ptr %3, align 8, !tbaa !14
  %28 = call ptr @create_all_bitmaps(ptr noundef %26, ptr noundef nonnull %20, i64 noundef %27, i1 noundef zeroext false, i1 noundef zeroext false)
  %29 = call { i32, i32 } asm sideeffect "rdtscp\0A\09mov %edx, $0\0A\09mov %eax, $1\0A\09cpuid\0A\09", "=r,=r,~{rax},~{rbx},~{rcx},~{rdx},~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !16
  %30 = icmp eq ptr %28, null
  br i1 %30, label %236, label %31

31:                                               ; preds = %24
  %32 = extractvalue { i32, i32 } %29, 0
  %33 = zext i32 %32 to i64
  %34 = shl nuw i64 %33, 32
  %35 = extractvalue { i32, i32 } %29, 1
  %36 = zext i32 %35 to i64
  %37 = extractvalue { i32, i32 } %25, 0
  %.neg79 = sub i32 0, %37
  %.neg79.z = zext i32 %.neg79 to i64
  %.neg78 = shl nuw i64 %.neg79.z, 32
  %38 = extractvalue { i32, i32 } %25, 1
  %39 = zext i32 %38 to i64
  %40 = load i64, ptr %3, align 8, !tbaa !14
  %41 = trunc i64 %40 to i32
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %41, ptr noundef %19)
  %43 = load i64, ptr %3, align 8, !tbaa !14
  %.neg67 = sub i64 %.neg78, %39
  %44 = add i64 %.neg67, %36
  %45 = add i64 %44, %34
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %43, i64 noundef %45)
  %47 = call double @get_time_usecs()
  %48 = load i64, ptr %3, align 8, !tbaa !14
  %49 = trunc i64 %48 to i32
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %31
  %.156.lcssa = phi ptr [ null, %31 ], [ %223, %.lr.ph ]
  %51 = call double @get_time_usecs()
  %52 = call double @get_time_usecs()
  %53 = load i64, ptr %3, align 8, !tbaa !14
  %54 = trunc i64 %53 to i32
  %55 = icmp sgt i32 %54, 1
  br i1 %55, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph.1 ], [ 0, %._crit_edge ]
  %56 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.1
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %58 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.1
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call ptr @roaring_bitmap_and(ptr noundef %57, ptr noundef %59) #8
  call void @do_not_optimize_away(ptr noundef %60)
  %61 = load i64, ptr %3, align 8, !tbaa !14
  %62 = shl i64 %61, 32
  %sext86 = add i64 %62, -4294967296
  %63 = ashr exact i64 %sext86, 32
  %64 = icmp slt i64 %indvars.iv.next.1, %63
  br i1 %64, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !17

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %.156.lcssa.1 = phi ptr [ %.156.lcssa, %._crit_edge ], [ %60, %.lr.ph.1 ]
  %65 = call double @get_time_usecs()
  %66 = fsub double %65, %52
  %67 = fadd double %66, 0.000000e+00
  %68 = call double @get_time_usecs()
  %69 = load i64, ptr %3, align 8, !tbaa !14
  %70 = trunc i64 %69 to i32
  %71 = icmp sgt i32 %70, 1
  br i1 %71, label %.lr.ph.2, label %._crit_edge.2

.lr.ph.2:                                         ; preds = %._crit_edge.1, %.lr.ph.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph.2 ], [ 0, %._crit_edge.1 ]
  %72 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.2
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %74 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.2
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = call ptr @roaring_bitmap_and(ptr noundef %73, ptr noundef %75) #8
  call void @do_not_optimize_away(ptr noundef %76)
  %77 = load i64, ptr %3, align 8, !tbaa !14
  %78 = shl i64 %77, 32
  %sext87 = add i64 %78, -4294967296
  %79 = ashr exact i64 %sext87, 32
  %80 = icmp slt i64 %indvars.iv.next.2, %79
  br i1 %80, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !17

._crit_edge.2:                                    ; preds = %.lr.ph.2, %._crit_edge.1
  %.156.lcssa.2 = phi ptr [ %.156.lcssa.1, %._crit_edge.1 ], [ %76, %.lr.ph.2 ]
  %81 = call double @get_time_usecs()
  %82 = fsub double %81, %68
  %83 = fadd double %67, %82
  %84 = call double @get_time_usecs()
  %85 = load i64, ptr %3, align 8, !tbaa !14
  %86 = trunc i64 %85 to i32
  %87 = icmp sgt i32 %86, 1
  br i1 %87, label %.lr.ph.3, label %._crit_edge.3

.lr.ph.3:                                         ; preds = %._crit_edge.2, %.lr.ph.3
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %.lr.ph.3 ], [ 0, %._crit_edge.2 ]
  %88 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.3
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %90 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.3
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = call ptr @roaring_bitmap_and(ptr noundef %89, ptr noundef %91) #8
  call void @do_not_optimize_away(ptr noundef %92)
  %93 = load i64, ptr %3, align 8, !tbaa !14
  %94 = shl i64 %93, 32
  %sext88 = add i64 %94, -4294967296
  %95 = ashr exact i64 %sext88, 32
  %96 = icmp slt i64 %indvars.iv.next.3, %95
  br i1 %96, label %.lr.ph.3, label %._crit_edge.3, !llvm.loop !17

._crit_edge.3:                                    ; preds = %.lr.ph.3, %._crit_edge.2
  %.156.lcssa.3 = phi ptr [ %.156.lcssa.2, %._crit_edge.2 ], [ %92, %.lr.ph.3 ]
  %97 = call double @get_time_usecs()
  %98 = fsub double %97, %84
  %99 = fadd double %83, %98
  %100 = call double @get_time_usecs()
  %101 = load i64, ptr %3, align 8, !tbaa !14
  %102 = trunc i64 %101 to i32
  %103 = icmp sgt i32 %102, 1
  br i1 %103, label %.lr.ph.4, label %._crit_edge.4

.lr.ph.4:                                         ; preds = %._crit_edge.3, %.lr.ph.4
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %.lr.ph.4 ], [ 0, %._crit_edge.3 ]
  %104 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.4
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %106 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.4
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = call ptr @roaring_bitmap_and(ptr noundef %105, ptr noundef %107) #8
  call void @do_not_optimize_away(ptr noundef %108)
  %109 = load i64, ptr %3, align 8, !tbaa !14
  %110 = shl i64 %109, 32
  %sext89 = add i64 %110, -4294967296
  %111 = ashr exact i64 %sext89, 32
  %112 = icmp slt i64 %indvars.iv.next.4, %111
  br i1 %112, label %.lr.ph.4, label %._crit_edge.4, !llvm.loop !17

._crit_edge.4:                                    ; preds = %.lr.ph.4, %._crit_edge.3
  %.156.lcssa.4 = phi ptr [ %.156.lcssa.3, %._crit_edge.3 ], [ %108, %.lr.ph.4 ]
  %113 = call double @get_time_usecs()
  %114 = fsub double %113, %100
  %115 = fadd double %99, %114
  %116 = call double @get_time_usecs()
  %117 = load i64, ptr %3, align 8, !tbaa !14
  %118 = trunc i64 %117 to i32
  %119 = icmp sgt i32 %118, 1
  br i1 %119, label %.lr.ph.5, label %._crit_edge.5

.lr.ph.5:                                         ; preds = %._crit_edge.4, %.lr.ph.5
  %indvars.iv.5 = phi i64 [ %indvars.iv.next.5, %.lr.ph.5 ], [ 0, %._crit_edge.4 ]
  %120 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.5
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %122 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.5
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = call ptr @roaring_bitmap_and(ptr noundef %121, ptr noundef %123) #8
  call void @do_not_optimize_away(ptr noundef %124)
  %125 = load i64, ptr %3, align 8, !tbaa !14
  %126 = shl i64 %125, 32
  %sext90 = add i64 %126, -4294967296
  %127 = ashr exact i64 %sext90, 32
  %128 = icmp slt i64 %indvars.iv.next.5, %127
  br i1 %128, label %.lr.ph.5, label %._crit_edge.5, !llvm.loop !17

._crit_edge.5:                                    ; preds = %.lr.ph.5, %._crit_edge.4
  %.156.lcssa.5 = phi ptr [ %.156.lcssa.4, %._crit_edge.4 ], [ %124, %.lr.ph.5 ]
  %129 = call double @get_time_usecs()
  %130 = fsub double %129, %116
  %131 = fadd double %115, %130
  %132 = call double @get_time_usecs()
  %133 = load i64, ptr %3, align 8, !tbaa !14
  %134 = trunc i64 %133 to i32
  %135 = icmp sgt i32 %134, 1
  br i1 %135, label %.lr.ph.6, label %._crit_edge.6

.lr.ph.6:                                         ; preds = %._crit_edge.5, %.lr.ph.6
  %indvars.iv.6 = phi i64 [ %indvars.iv.next.6, %.lr.ph.6 ], [ 0, %._crit_edge.5 ]
  %136 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.6
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %138 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.6
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = call ptr @roaring_bitmap_and(ptr noundef %137, ptr noundef %139) #8
  call void @do_not_optimize_away(ptr noundef %140)
  %141 = load i64, ptr %3, align 8, !tbaa !14
  %142 = shl i64 %141, 32
  %sext91 = add i64 %142, -4294967296
  %143 = ashr exact i64 %sext91, 32
  %144 = icmp slt i64 %indvars.iv.next.6, %143
  br i1 %144, label %.lr.ph.6, label %._crit_edge.6, !llvm.loop !17

._crit_edge.6:                                    ; preds = %.lr.ph.6, %._crit_edge.5
  %.156.lcssa.6 = phi ptr [ %.156.lcssa.5, %._crit_edge.5 ], [ %140, %.lr.ph.6 ]
  %145 = call double @get_time_usecs()
  %146 = fsub double %145, %132
  %147 = fadd double %131, %146
  %148 = call double @get_time_usecs()
  %149 = load i64, ptr %3, align 8, !tbaa !14
  %150 = trunc i64 %149 to i32
  %151 = icmp sgt i32 %150, 1
  br i1 %151, label %.lr.ph.7, label %._crit_edge.7

.lr.ph.7:                                         ; preds = %._crit_edge.6, %.lr.ph.7
  %indvars.iv.7 = phi i64 [ %indvars.iv.next.7, %.lr.ph.7 ], [ 0, %._crit_edge.6 ]
  %152 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.7
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %154 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.7
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = call ptr @roaring_bitmap_and(ptr noundef %153, ptr noundef %155) #8
  call void @do_not_optimize_away(ptr noundef %156)
  %157 = load i64, ptr %3, align 8, !tbaa !14
  %158 = shl i64 %157, 32
  %sext92 = add i64 %158, -4294967296
  %159 = ashr exact i64 %sext92, 32
  %160 = icmp slt i64 %indvars.iv.next.7, %159
  br i1 %160, label %.lr.ph.7, label %._crit_edge.7, !llvm.loop !17

._crit_edge.7:                                    ; preds = %.lr.ph.7, %._crit_edge.6
  %.156.lcssa.7 = phi ptr [ %.156.lcssa.6, %._crit_edge.6 ], [ %156, %.lr.ph.7 ]
  %161 = call double @get_time_usecs()
  %162 = fsub double %161, %148
  %163 = fadd double %147, %162
  %164 = call double @get_time_usecs()
  %165 = load i64, ptr %3, align 8, !tbaa !14
  %166 = trunc i64 %165 to i32
  %167 = icmp sgt i32 %166, 1
  br i1 %167, label %.lr.ph.8, label %._crit_edge.8

.lr.ph.8:                                         ; preds = %._crit_edge.7, %.lr.ph.8
  %indvars.iv.8 = phi i64 [ %indvars.iv.next.8, %.lr.ph.8 ], [ 0, %._crit_edge.7 ]
  %168 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.8
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %indvars.iv.next.8 = add nuw nsw i64 %indvars.iv.8, 1
  %170 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.8
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = call ptr @roaring_bitmap_and(ptr noundef %169, ptr noundef %171) #8
  call void @do_not_optimize_away(ptr noundef %172)
  %173 = load i64, ptr %3, align 8, !tbaa !14
  %174 = shl i64 %173, 32
  %sext93 = add i64 %174, -4294967296
  %175 = ashr exact i64 %sext93, 32
  %176 = icmp slt i64 %indvars.iv.next.8, %175
  br i1 %176, label %.lr.ph.8, label %._crit_edge.8, !llvm.loop !17

._crit_edge.8:                                    ; preds = %.lr.ph.8, %._crit_edge.7
  %.156.lcssa.8 = phi ptr [ %.156.lcssa.7, %._crit_edge.7 ], [ %172, %.lr.ph.8 ]
  %177 = call double @get_time_usecs()
  %178 = fsub double %177, %164
  %179 = fadd double %163, %178
  %180 = call double @get_time_usecs()
  %181 = load i64, ptr %3, align 8, !tbaa !14
  %182 = trunc i64 %181 to i32
  %183 = icmp sgt i32 %182, 1
  br i1 %183, label %.lr.ph.9, label %._crit_edge.9

.lr.ph.9:                                         ; preds = %._crit_edge.8, %.lr.ph.9
  %indvars.iv.9 = phi i64 [ %indvars.iv.next.9, %.lr.ph.9 ], [ 0, %._crit_edge.8 ]
  %184 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.9
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %indvars.iv.next.9 = add nuw nsw i64 %indvars.iv.9, 1
  %186 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.9
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = call ptr @roaring_bitmap_and(ptr noundef %185, ptr noundef %187) #8
  call void @do_not_optimize_away(ptr noundef %188)
  %189 = load i64, ptr %3, align 8, !tbaa !14
  %190 = shl i64 %189, 32
  %sext94 = add i64 %190, -4294967296
  %191 = ashr exact i64 %sext94, 32
  %192 = icmp slt i64 %indvars.iv.next.9, %191
  br i1 %192, label %.lr.ph.9, label %._crit_edge.9, !llvm.loop !17

._crit_edge.9:                                    ; preds = %.lr.ph.9, %._crit_edge.8
  %.156.lcssa.9 = phi ptr [ %.156.lcssa.8, %._crit_edge.8 ], [ %188, %.lr.ph.9 ]
  %193 = call double @get_time_usecs()
  %194 = fsub double %193, %180
  %195 = fadd double %179, %194
  %196 = call double @get_time_usecs()
  %197 = load i64, ptr %3, align 8, !tbaa !14
  %198 = trunc i64 %197 to i32
  %199 = icmp sgt i32 %198, 1
  br i1 %199, label %.lr.ph.10, label %._crit_edge.10

.lr.ph.10:                                        ; preds = %._crit_edge.9, %.lr.ph.10
  %indvars.iv.10 = phi i64 [ %indvars.iv.next.10, %.lr.ph.10 ], [ 0, %._crit_edge.9 ]
  %200 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.10
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %indvars.iv.next.10 = add nuw nsw i64 %indvars.iv.10, 1
  %202 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next.10
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = call ptr @roaring_bitmap_and(ptr noundef %201, ptr noundef %203) #8
  call void @do_not_optimize_away(ptr noundef %204)
  %205 = load i64, ptr %3, align 8, !tbaa !14
  %206 = shl i64 %205, 32
  %sext95 = add i64 %206, -4294967296
  %207 = ashr exact i64 %sext95, 32
  %208 = icmp slt i64 %indvars.iv.next.10, %207
  br i1 %208, label %.lr.ph.10, label %._crit_edge.10, !llvm.loop !17

._crit_edge.10:                                   ; preds = %.lr.ph.10, %._crit_edge.9
  %.156.lcssa.10 = phi ptr [ %.156.lcssa.9, %._crit_edge.9 ], [ %204, %.lr.ph.10 ]
  %209 = call double @get_time_usecs()
  %210 = fsub double %209, %196
  %211 = fadd double %195, %210
  call void @roaring_bitmap_free(ptr noundef %.156.lcssa.10) #8
  %212 = load i64, ptr %3, align 8, !tbaa !14
  %213 = add i64 %212, -1
  %214 = fdiv double %211, 1.000000e+01
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %213, double noundef %214, i32 noundef 10)
  %216 = load i64, ptr %3, align 8, !tbaa !14
  %217 = trunc i64 %216 to i32
  %218 = icmp sgt i32 %217, 0
  br i1 %218, label %.lr.ph76, label %._crit_edge77

.lr.ph:                                           ; preds = %31, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %31 ]
  %219 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv
  %220 = load ptr, ptr %219, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %221 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.next
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  %223 = call ptr @roaring_bitmap_and(ptr noundef %220, ptr noundef %222) #8
  call void @do_not_optimize_away(ptr noundef %223)
  %224 = load i64, ptr %3, align 8, !tbaa !14
  %225 = shl i64 %224, 32
  %sext = add i64 %225, -4294967296
  %226 = ashr exact i64 %sext, 32
  %227 = icmp slt i64 %indvars.iv.next, %226
  br i1 %227, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge77:                                    ; preds = %.lr.ph76, %._crit_edge.10
  call void @free(ptr noundef nonnull %28) #8
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %228) #8
  call void @free(ptr noundef %20) #8
  br label %236

.lr.ph76:                                         ; preds = %._crit_edge.10, %.lr.ph76
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.lr.ph76 ], [ 0, %._crit_edge.10 ]
  %229 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv83
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  call void @free(ptr noundef %230) #8
  store ptr null, ptr %229, align 8, !tbaa !5
  %231 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv83
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %232) #8
  store ptr null, ptr %231, align 8, !tbaa !5
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %233 = load i64, ptr %3, align 8, !tbaa !14
  %sext96 = shl i64 %233, 32
  %234 = ashr exact i64 %sext96, 32
  %235 = icmp slt i64 %indvars.iv.next84, %234
  br i1 %235, label %.lr.ph76, label %._crit_edge77, !llvm.loop !18

236:                                              ; preds = %._crit_edge77, %24, %22
  %.1 = phi i32 [ -1, %22 ], [ 0, %._crit_edge77 ], [ -1, %24 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %237

237:                                              ; preds = %236, %14, %9
  %.2 = phi i32 [ 0, %9 ], [ -1, %14 ], [ %.1, %236 ]
  ret i32 %.2
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @create_all_bitmaps(ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #1

declare ptr @roaring_bitmap_and(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare void @do_not_optimize_away(ptr noundef) local_unnamed_addr #6

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint nounwind uwtable
declare double @get_time_usecs() local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 = { 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 #7 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 2152236459, i64 2152236467, i64 2152236547, i64 2152236635, i64 2152236715}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{i64 2152237204, i64 2152237213, i64 2152237300, i64 2152237380, i64 2152237452}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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