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

; 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"

%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [56 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_padding(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.stat, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = 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
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 3
  br i1 %36, label %37, label %42

37:                                               ; preds = %2
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %40)
  store i32 1, ptr %3, align 4
  br label %295

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 1
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  store ptr %45, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 @atoi(ptr noundef %48) #9
  store i32 %49, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %50 = load ptr, ptr %6, align 8, !tbaa !9
  %51 = call i32 (ptr, i32, ...) @open(ptr noundef %50, i32 noundef 0)
  store i32 %51, ptr %8, align 4, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %54, label %57

54:                                               ; preds = %42
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %55)
  call void @exit(i32 noundef 1) #10
  unreachable

57:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 144, ptr %9) #8
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = call i32 @fstat(i32 noundef %58, ptr noundef %9) #8
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %61, label %64

61:                                               ; preds = %57
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %62)
  call void @exit(i32 noundef 1) #10
  unreachable

64:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = call i64 @read(i32 noundef %65, ptr noundef %10, i64 noundef 4)
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = call i64 @read(i32 noundef %67, ptr noundef %11, i64 noundef 4)
  %69 = load i32, ptr %10, align 4, !tbaa !5
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %69)
  %71 = load i32, ptr %11, align 4, !tbaa !5
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %71)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = mul i64 %74, 4
  %76 = call noalias ptr @malloc(i64 noundef %75) #11
  store ptr %76, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %79 = mul i64 %78, 8
  %80 = call noalias ptr @malloc(i64 noundef %79) #11
  store ptr %80, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %81 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 8
  %82 = load i64, ptr %81, align 8, !tbaa !11
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = call ptr @mmap(ptr noundef null, i64 noundef %82, i32 noundef 1, i32 noundef 1, i32 noundef %83, i64 noundef 0) #8
  store ptr %84, ptr %14, align 8, !tbaa !9
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  %86 = icmp ne ptr %85, null
  br i1 %86, label %89, label %87

87:                                               ; preds = %64
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @exit(i32 noundef 1) #10
  unreachable

89:                                               ; preds = %64
  %90 = load ptr, ptr %14, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  store ptr %91, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %106, %89
  %93 = load i32, ptr %15, align 4, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = icmp ne i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %109

97:                                               ; preds = %92
  %98 = load ptr, ptr %14, align 8, !tbaa !9
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load ptr, ptr %12, align 8, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  store i32 %99, ptr %103, align 4, !tbaa !5
  %104 = load ptr, ptr %14, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %104, i64 4
  store ptr %105, ptr %14, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %97
  %107 = load i32, ptr %15, align 4, !tbaa !5
  %108 = add i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !5
  br label %92, !llvm.loop !15

109:                                              ; preds = %96
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %145, %109
  %112 = load i32, ptr %16, align 4, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = icmp ne i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %148

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %117 = load ptr, ptr %12, align 8, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  store i32 %121, ptr %17, align 4, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !9
  %123 = call ptr @read_padding(ptr noundef %122)
  store ptr %123, ptr %14, align 8, !tbaa !9
  %124 = load ptr, ptr %14, align 8, !tbaa !9
  %125 = load i32, ptr %17, align 4, !tbaa !5
  %126 = zext i32 %125 to i64
  %127 = call ptr @roaring_bitmap_frozen_view(ptr noundef %124, i64 noundef %126)
  %128 = load ptr, ptr %13, align 8, !tbaa !9
  %129 = load i32, ptr %16, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  store ptr %127, ptr %131, align 8, !tbaa !9
  %132 = load ptr, ptr %13, align 8, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !5
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = icmp eq ptr %136, null
  br i1 %137, label %138, label %140

138:                                              ; preds = %116
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @exit(i32 noundef 1) #10
  unreachable

140:                                              ; preds = %116
  %141 = load i32, ptr %17, align 4, !tbaa !5
  %142 = load ptr, ptr %14, align 8, !tbaa !9
  %143 = zext i32 %141 to i64
  %144 = getelementptr inbounds i8, ptr %142, i64 %143
  store ptr %144, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %145

145:                                              ; preds = %140
  %146 = load i32, ptr %16, align 4, !tbaa !5
  %147 = add i32 %146, 1
  store i32 %147, ptr %16, align 4, !tbaa !5
  br label %111, !llvm.loop !17

148:                                              ; preds = %115
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %149) #8
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = icmp eq i32 %150, 1
  br i1 %151, label %152, label %154

152:                                              ; preds = %148
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %294

154:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %155 = load i32, ptr %7, align 4, !tbaa !5
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = mul i32 %155, %156
  store i32 %157, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %158 = load i32, ptr %19, align 4, !tbaa !5
  %159 = zext i32 %158 to i64
  %160 = mul i64 %159, 4
  %161 = call noalias ptr @malloc(i64 noundef %160) #11
  store ptr %161, ptr %20, align 8, !tbaa !9
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %182, %154
  %164 = load i32, ptr %21, align 4, !tbaa !5
  %165 = load i32, ptr %19, align 4, !tbaa !5
  %166 = icmp ne i32 %164, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %163
  store i32 8, ptr %18, align 4
  br label %185

168:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %169 = load ptr, ptr %20, align 8, !tbaa !9
  %170 = load i32, ptr %21, align 4, !tbaa !5
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %169, i64 %171
  %173 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.10, ptr noundef %172)
  store i32 %173, ptr %22, align 4, !tbaa !5
  %174 = load i32, ptr %22, align 4, !tbaa !5
  %175 = icmp eq i32 %174, -1
  br i1 %175, label %176, label %178

176:                                              ; preds = %168
  %177 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %177, ptr %19, align 4, !tbaa !5
  store i32 8, ptr %18, align 4
  br label %179

178:                                              ; preds = %168
  store i32 0, ptr %18, align 4
  br label %179

179:                                              ; preds = %178, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %180 = load i32, ptr %18, align 4
  switch i32 %180, label %185 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %21, align 4, !tbaa !5
  %184 = add i32 %183, 1
  store i32 %184, ptr %21, align 4, !tbaa !5
  br label %163, !llvm.loop !18

185:                                              ; preds = %179, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %19, align 4, !tbaa !5
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %187)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store double 0.000000e+00, ptr %23, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %243, %186
  %190 = load i32, ptr %26, align 4, !tbaa !5
  %191 = icmp ne i32 %190, 4
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %246

193:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %194 = call double @get_time_usecs()
  store double %194, ptr %28, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %228, %193
  %196 = load i32, ptr %29, align 4, !tbaa !5
  %197 = load i32, ptr %10, align 4, !tbaa !5
  %198 = icmp ne i32 %196, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %195
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %231

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %201 = load ptr, ptr %13, align 8, !tbaa !9
  %202 = load i32, ptr %29, align 4, !tbaa !5
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  store ptr %205, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %224, %200
  %207 = load i32, ptr %31, align 4, !tbaa !5
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = icmp ne i32 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  store i32 17, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %227

211:                                              ; preds = %206
  %212 = load ptr, ptr %30, align 8, !tbaa !9
  %213 = load ptr, ptr %20, align 8, !tbaa !9
  %214 = load i32, ptr %27, align 4, !tbaa !5
  %215 = add i32 %214, 1
  store i32 %215, ptr %27, align 4, !tbaa !5
  %216 = zext i32 %214 to i64
  %217 = getelementptr inbounds i32, ptr %213, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = call zeroext i1 @roaring_bitmap_select(ptr noundef %212, i32 noundef %218, ptr noundef %25)
  %220 = load i32, ptr %25, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = load i64, ptr %24, align 8, !tbaa !21
  %223 = add i64 %222, %221
  store i64 %223, ptr %24, align 8, !tbaa !21
  br label %224

224:                                              ; preds = %211
  %225 = load i32, ptr %31, align 4, !tbaa !5
  %226 = add i32 %225, 1
  store i32 %226, ptr %31, align 4, !tbaa !5
  br label %206, !llvm.loop !22

227:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %29, align 4, !tbaa !5
  %230 = add i32 %229, 1
  store i32 %230, ptr %29, align 4, !tbaa !5
  br label %195, !llvm.loop !23

231:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %232 = call double @get_time_usecs()
  store double %232, ptr %32, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %233 = load double, ptr %32, align 8, !tbaa !19
  %234 = load double, ptr %28, align 8, !tbaa !19
  %235 = fsub double %233, %234
  store double %235, ptr %33, align 8, !tbaa !19
  %236 = load i32, ptr %26, align 4, !tbaa !5
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %242

238:                                              ; preds = %231
  %239 = load double, ptr %33, align 8, !tbaa !19
  %240 = load double, ptr %23, align 8, !tbaa !19
  %241 = fadd double %240, %239
  store double %241, ptr %23, align 8, !tbaa !19
  br label %242

242:                                              ; preds = %238, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %26, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %26, align 4, !tbaa !5
  br label %189, !llvm.loop !24

246:                                              ; preds = %192
  %247 = load i64, ptr %24, align 8, !tbaa !21
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %247)
  %249 = load i32, ptr %19, align 4, !tbaa !5
  %250 = load double, ptr %23, align 8, !tbaa !19
  %251 = fdiv double %250, 3.000000e+00
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %249, double noundef %251, i32 noundef 3)
  %253 = load double, ptr %23, align 8, !tbaa !19
  %254 = fdiv double %253, 3.000000e+00
  %255 = load i32, ptr %19, align 4, !tbaa !5
  %256 = uitofp i32 %255 to double
  %257 = fdiv double %254, %256
  %258 = load i32, ptr %19, align 4, !tbaa !5
  %259 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %257, i32 noundef %258)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %275, %246
  %261 = load i32, ptr %34, align 4, !tbaa !5
  %262 = load i32, ptr %10, align 4, !tbaa !5
  %263 = icmp ne i32 %261, %262
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 20, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %278

265:                                              ; preds = %260
  %266 = load ptr, ptr %13, align 8, !tbaa !9
  %267 = load i32, ptr %34, align 4, !tbaa !5
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds ptr, ptr %266, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %270)
  %271 = load ptr, ptr %13, align 8, !tbaa !9
  %272 = load i32, ptr %34, align 4, !tbaa !5
  %273 = zext i32 %272 to i64
  %274 = getelementptr inbounds ptr, ptr %271, i64 %273
  store ptr null, ptr %274, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %265
  %276 = load i32, ptr %34, align 4, !tbaa !5
  %277 = add i32 %276, 1
  store i32 %277, ptr %34, align 4, !tbaa !5
  br label %260, !llvm.loop !25

278:                                              ; preds = %264
  %279 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %279) #8
  %280 = load ptr, ptr %14, align 8, !tbaa !9
  %281 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 8
  %282 = load i64, ptr %281, align 8, !tbaa !11
  %283 = sub i64 0, %282
  %284 = getelementptr inbounds i8, ptr %280, i64 %283
  %285 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 8
  %286 = load i64, ptr %285, align 8, !tbaa !11
  %287 = call i32 @munmap(ptr noundef %284, i64 noundef %286) #8
  %288 = icmp eq i32 %287, -1
  br i1 %288, label %289, label %291

289:                                              ; preds = %278
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @exit(i32 noundef 1) #10
  unreachable

291:                                              ; preds = %278
  %292 = load i32, ptr %8, align 4, !tbaa !5
  %293 = call i32 @close(i32 noundef %292)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %294

294:                                              ; preds = %291, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %295

295:                                              ; preds = %294, %37
  %296 = load i32, ptr %3, align 4
  ret i32 %296
}

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

declare i32 @open(ptr noundef, i32 noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fstat(i32 noundef, ptr noundef) #5

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #5

declare ptr @roaring_bitmap_frozen_view(ptr noundef, i64 noundef) #2

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

declare zeroext i1 @roaring_bitmap_select(ptr noundef, i32 noundef, ptr noundef) #2

declare void @roaring_bitmap_free(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @munmap(ptr noundef, i64 noundef) #5

declare i32 @close(i32 noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 willreturn memory(read) 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 = { 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 #5 = { 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 #6 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 48}
!12 = !{!"stat", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 88, !14, i64 104, !7, i64 120}
!13 = !{!"long", !7, i64 0}
!14 = !{!"timespec", !13, i64 0, !13, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!13, !13, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !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"

%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@.str = external hidden unnamed_addr constant [56 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_padding(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.stat, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = icmp slt i32 %0, 3
  br i1 %7, label %8, label %11

8:                                                ; preds = %2
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %9)
  br label %176

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = tail call i32 @atoi(ptr nocapture noundef %15) #12
  %.fr169 = freeze i32 %16
  %17 = tail call i32 (ptr, i32, ...) @open(ptr noundef %13, i32 noundef 0) #13
  %18 = icmp eq i32 %17, -1
  br i1 %18, label %19, label %21

19:                                               ; preds = %11
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %13)
  tail call void @exit(i32 noundef 1) #14
  unreachable

21:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #13
  %22 = call i32 @fstat(i32 noundef %17, ptr noundef nonnull %3) #13
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %13)
  tail call void @exit(i32 noundef 1) #14
  unreachable

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #13
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #13
  store i32 0, ptr %5, align 4, !tbaa !9
  %27 = call i64 @read(i32 noundef %17, ptr noundef nonnull %4, i64 noundef 4) #13
  %28 = call i64 @read(i32 noundef %17, ptr noundef nonnull %5, i64 noundef 4) #13
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %29)
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %31)
  %33 = zext i32 %29 to i64
  %34 = shl nuw nsw i64 %33, 2
  %35 = tail call noalias ptr @malloc(i64 noundef %34) #15
  %36 = shl nuw nsw i64 %33, 3
  %37 = tail call noalias ptr @malloc(i64 noundef %36) #15
  %38 = getelementptr inbounds i8, ptr %3, i64 48
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = tail call ptr @mmap(ptr noundef null, i64 noundef %39, i32 noundef 1, i32 noundef 1, i32 noundef %17, i64 noundef 0) #13
  %.not = icmp eq ptr %40, null
  br i1 %.not, label %41, label %43

41:                                               ; preds = %26
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  tail call void @exit(i32 noundef 1) #14
  unreachable

43:                                               ; preds = %26
  %44 = getelementptr i8, ptr %40, i64 8
  %.not100111 = icmp eq i32 %29, 0
  br i1 %.not100111, label %._crit_edge119.thread, label %.lr.ph118.preheader

._crit_edge119.thread:                            ; preds = %43
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @free(ptr noundef %35) #13
  br label %65

.lr.ph118.preheader:                              ; preds = %43
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %44, i64 %34, i1 false), !tbaa !9
  %46 = add i32 %29, -1
  %47 = zext i32 %46 to i64
  %48 = shl nuw nsw i64 %47, 2
  %49 = getelementptr i8, ptr %40, i64 %48
  %scevgep = getelementptr i8, ptr %49, i64 12
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.lr.ph118

._crit_edge119:                                   ; preds = %61
  tail call void @free(ptr noundef nonnull %35) #13
  %51 = icmp eq i32 %29, 1
  br i1 %51, label %63, label %65

.lr.ph118:                                        ; preds = %.lr.ph118.preheader, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph118.preheader ], [ %indvars.iv.next, %61 ]
  %.180116 = phi ptr [ %scevgep, %.lr.ph118.preheader ], [ %62, %61 ]
  %52 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = tail call ptr @read_padding(ptr noundef %.180116)
  %55 = zext i32 %53 to i64
  %56 = tail call ptr @roaring_bitmap_frozen_view(ptr noundef %54, i64 noundef %55) #13
  %57 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv
  store ptr %56, ptr %57, align 8, !tbaa !5
  %58 = icmp eq ptr %56, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %.lr.ph118
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  tail call void @exit(i32 noundef 1) #14
  unreachable

61:                                               ; preds = %.lr.ph118
  %62 = getelementptr inbounds i8, ptr %54, i64 %55
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not101 = icmp eq i64 %indvars.iv.next, %33
  br i1 %.not101, label %._crit_edge119, label %.lr.ph118, !llvm.loop !15

63:                                               ; preds = %._crit_edge119
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %175

65:                                               ; preds = %._crit_edge119.thread, %._crit_edge119
  %.180.lcssa188 = phi ptr [ %44, %._crit_edge119.thread ], [ %62, %._crit_edge119 ]
  %66 = mul i32 %29, %.fr169
  %67 = zext i32 %66 to i64
  %68 = shl nuw nsw i64 %67, 2
  %69 = tail call noalias ptr @malloc(i64 noundef %68) #15
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %.not102122 = icmp eq i32 %66, 0
  br i1 %.not102122, label %._crit_edge126, label %.lr.ph125

.lr.ph125:                                        ; preds = %65, %73
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %73 ], [ 0, %65 ]
  %71 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv177
  %72 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.10, ptr noundef %71)
  %.not103 = icmp eq i32 %72, -1
  br i1 %.not103, label %._crit_edge126.loopexit.split.loop.exit197, label %73

73:                                               ; preds = %.lr.ph125
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %.not102 = icmp eq i64 %indvars.iv.next178, %67
  br i1 %.not102, label %._crit_edge126, label %.lr.ph125, !llvm.loop !17

._crit_edge126.loopexit.split.loop.exit197:       ; preds = %.lr.ph125
  %74 = trunc nuw i64 %indvars.iv177 to i32
  br label %._crit_edge126

._crit_edge126:                                   ; preds = %73, %._crit_edge126.loopexit.split.loop.exit197, %65
  %.296 = phi i32 [ 0, %65 ], [ %74, %._crit_edge126.loopexit.split.loop.exit197 ], [ %66, %73 ]
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %.296)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #13
  store i32 0, ptr %6, align 4, !tbaa !9
  br i1 %.not100111, label %.split.us.preheader, label %.split

.split.us.preheader:                              ; preds = %._crit_edge126
  %76 = tail call double @get_time_usecs()
  %77 = tail call double @get_time_usecs()
  %78 = tail call double @get_time_usecs()
  %79 = tail call double @get_time_usecs()
  %80 = fsub double %79, %78
  %81 = fadd double %80, 0.000000e+00
  %82 = tail call double @get_time_usecs()
  %83 = tail call double @get_time_usecs()
  %84 = fsub double %83, %82
  %85 = fadd double %81, %84
  %86 = tail call double @get_time_usecs()
  br label %.split151.us

.split:                                           ; preds = %._crit_edge126
  %.not108130 = icmp eq i32 %.fr169, 0
  %87 = tail call double @get_time_usecs()
  br i1 %.not108130, label %.lr.ph144.us.preheader, label %.lr.ph135

.lr.ph144.us.preheader:                           ; preds = %.split
  %88 = tail call double @get_time_usecs()
  %89 = tail call double @get_time_usecs()
  %90 = tail call double @get_time_usecs()
  %91 = fsub double %90, %89
  %92 = fadd double %91, 0.000000e+00
  %93 = tail call double @get_time_usecs()
  %94 = tail call double @get_time_usecs()
  %95 = fsub double %94, %93
  %96 = fadd double %92, %95
  %97 = tail call double @get_time_usecs()
  br label %.split151.us

.split151.us:                                     ; preds = %._crit_edge145.split.3, %.lr.ph144.us.preheader, %.split.us.preheader
  %.sink201 = phi double [ %139, %._crit_edge145.split.3 ], [ %97, %.lr.ph144.us.preheader ], [ %86, %.split.us.preheader ]
  %.sink = phi double [ %152, %._crit_edge145.split.3 ], [ %96, %.lr.ph144.us.preheader ], [ %85, %.split.us.preheader ]
  %.us-phi153 = phi i64 [ %150, %._crit_edge145.split.3 ], [ 0, %.lr.ph144.us.preheader ], [ 0, %.split.us.preheader ]
  %98 = call double @get_time_usecs()
  %99 = fsub double %98, %.sink201
  %100 = fadd double %.sink, %99
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %.us-phi153)
  %102 = fdiv double %100, 3.000000e+00
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %.296, double noundef %102, i32 noundef 3)
  %104 = uitofp i32 %.296 to double
  %105 = fdiv double %102, %104
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %105, i32 noundef %.296)
  br i1 %.not100111, label %._crit_edge168, label %.lr.ph167

._crit_edge145.split:                             ; preds = %._crit_edge136
  %107 = call double @get_time_usecs()
  %108 = call double @get_time_usecs()
  br label %.lr.ph135.1

.lr.ph135.1:                                      ; preds = %._crit_edge136.1, %._crit_edge145.split
  %indvars.iv180.1 = phi i64 [ 0, %._crit_edge145.split ], [ %indvars.iv.next181.1, %._crit_edge136.1 ]
  %.085141.1 = phi i32 [ 0, %._crit_edge145.split ], [ %112, %._crit_edge136.1 ]
  %.189140.1 = phi i64 [ %163, %._crit_edge145.split ], [ %119, %._crit_edge136.1 ]
  %109 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv180.1
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %111, %.lr.ph135.1
  %.081133.1 = phi i32 [ 0, %.lr.ph135.1 ], [ %120, %111 ]
  %.186132.1 = phi i32 [ %.085141.1, %.lr.ph135.1 ], [ %112, %111 ]
  %.2131.1 = phi i64 [ %.189140.1, %.lr.ph135.1 ], [ %119, %111 ]
  %112 = add i32 %.186132.1, 1
  %113 = zext i32 %.186132.1 to i64
  %114 = getelementptr inbounds i32, ptr %69, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = call zeroext i1 @roaring_bitmap_select(ptr noundef %110, i32 noundef %115, ptr noundef nonnull %6) #13
  %117 = load i32, ptr %6, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %.2131.1, %118
  %120 = add nuw i32 %.081133.1, 1
  %.not108.1 = icmp eq i32 %120, %.fr169
  br i1 %.not108.1, label %._crit_edge136.1, label %111, !llvm.loop !18

._crit_edge136.1:                                 ; preds = %111
  %indvars.iv.next181.1 = add nuw nsw i64 %indvars.iv180.1, 1
  %.not106.1 = icmp eq i64 %indvars.iv.next181.1, %33
  br i1 %.not106.1, label %._crit_edge145.split.1, label %.lr.ph135.1, !llvm.loop !19

._crit_edge145.split.1:                           ; preds = %._crit_edge136.1
  %121 = call double @get_time_usecs()
  %122 = fsub double %121, %108
  %123 = call double @get_time_usecs()
  br label %.lr.ph135.2

.lr.ph135.2:                                      ; preds = %._crit_edge136.2, %._crit_edge145.split.1
  %indvars.iv180.2 = phi i64 [ 0, %._crit_edge145.split.1 ], [ %indvars.iv.next181.2, %._crit_edge136.2 ]
  %.085141.2 = phi i32 [ 0, %._crit_edge145.split.1 ], [ %127, %._crit_edge136.2 ]
  %.189140.2 = phi i64 [ %119, %._crit_edge145.split.1 ], [ %134, %._crit_edge136.2 ]
  %124 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv180.2
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %126, %.lr.ph135.2
  %.081133.2 = phi i32 [ 0, %.lr.ph135.2 ], [ %135, %126 ]
  %.186132.2 = phi i32 [ %.085141.2, %.lr.ph135.2 ], [ %127, %126 ]
  %.2131.2 = phi i64 [ %.189140.2, %.lr.ph135.2 ], [ %134, %126 ]
  %127 = add i32 %.186132.2, 1
  %128 = zext i32 %.186132.2 to i64
  %129 = getelementptr inbounds i32, ptr %69, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = call zeroext i1 @roaring_bitmap_select(ptr noundef %125, i32 noundef %130, ptr noundef nonnull %6) #13
  %132 = load i32, ptr %6, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %.2131.2, %133
  %135 = add nuw i32 %.081133.2, 1
  %.not108.2 = icmp eq i32 %135, %.fr169
  br i1 %.not108.2, label %._crit_edge136.2, label %126, !llvm.loop !18

._crit_edge136.2:                                 ; preds = %126
  %indvars.iv.next181.2 = add nuw nsw i64 %indvars.iv180.2, 1
  %.not106.2 = icmp eq i64 %indvars.iv.next181.2, %33
  br i1 %.not106.2, label %._crit_edge145.split.2, label %.lr.ph135.2, !llvm.loop !19

._crit_edge145.split.2:                           ; preds = %._crit_edge136.2
  %136 = fadd double %122, 0.000000e+00
  %137 = call double @get_time_usecs()
  %138 = fsub double %137, %123
  %139 = call double @get_time_usecs()
  br label %.lr.ph135.3

.lr.ph135.3:                                      ; preds = %._crit_edge136.3, %._crit_edge145.split.2
  %indvars.iv180.3 = phi i64 [ 0, %._crit_edge145.split.2 ], [ %indvars.iv.next181.3, %._crit_edge136.3 ]
  %.085141.3 = phi i32 [ 0, %._crit_edge145.split.2 ], [ %143, %._crit_edge136.3 ]
  %.189140.3 = phi i64 [ %134, %._crit_edge145.split.2 ], [ %150, %._crit_edge136.3 ]
  %140 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv180.3
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  br label %142

142:                                              ; preds = %142, %.lr.ph135.3
  %.081133.3 = phi i32 [ 0, %.lr.ph135.3 ], [ %151, %142 ]
  %.186132.3 = phi i32 [ %.085141.3, %.lr.ph135.3 ], [ %143, %142 ]
  %.2131.3 = phi i64 [ %.189140.3, %.lr.ph135.3 ], [ %150, %142 ]
  %143 = add i32 %.186132.3, 1
  %144 = zext i32 %.186132.3 to i64
  %145 = getelementptr inbounds i32, ptr %69, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = call zeroext i1 @roaring_bitmap_select(ptr noundef %141, i32 noundef %146, ptr noundef nonnull %6) #13
  %148 = load i32, ptr %6, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %.2131.3, %149
  %151 = add nuw i32 %.081133.3, 1
  %.not108.3 = icmp eq i32 %151, %.fr169
  br i1 %.not108.3, label %._crit_edge136.3, label %142, !llvm.loop !18

._crit_edge136.3:                                 ; preds = %142
  %indvars.iv.next181.3 = add nuw nsw i64 %indvars.iv180.3, 1
  %.not106.3 = icmp eq i64 %indvars.iv.next181.3, %33
  br i1 %.not106.3, label %._crit_edge145.split.3, label %.lr.ph135.3, !llvm.loop !19

._crit_edge145.split.3:                           ; preds = %._crit_edge136.3
  %152 = fadd double %136, %138
  br label %.split151.us

.lr.ph135:                                        ; preds = %.split, %._crit_edge136
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %._crit_edge136 ], [ 0, %.split ]
  %.085141 = phi i32 [ %156, %._crit_edge136 ], [ 0, %.split ]
  %.189140 = phi i64 [ %163, %._crit_edge136 ], [ 0, %.split ]
  %153 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv180
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  br label %155

._crit_edge136:                                   ; preds = %155
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %.not106 = icmp eq i64 %indvars.iv.next181, %33
  br i1 %.not106, label %._crit_edge145.split, label %.lr.ph135, !llvm.loop !19

155:                                              ; preds = %.lr.ph135, %155
  %.081133 = phi i32 [ 0, %.lr.ph135 ], [ %164, %155 ]
  %.186132 = phi i32 [ %.085141, %.lr.ph135 ], [ %156, %155 ]
  %.2131 = phi i64 [ %.189140, %.lr.ph135 ], [ %163, %155 ]
  %156 = add i32 %.186132, 1
  %157 = zext i32 %.186132 to i64
  %158 = getelementptr inbounds i32, ptr %69, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = call zeroext i1 @roaring_bitmap_select(ptr noundef %154, i32 noundef %159, ptr noundef nonnull %6) #13
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %.2131, %162
  %164 = add nuw i32 %.081133, 1
  %.not108 = icmp eq i32 %164, %.fr169
  br i1 %.not108, label %._crit_edge136, label %155, !llvm.loop !18

._crit_edge168:                                   ; preds = %.lr.ph167, %.split151.us
  call void @free(ptr noundef %37) #13
  %165 = sub i64 0, %39
  %166 = getelementptr inbounds i8, ptr %.180.lcssa188, i64 %165
  %167 = call i32 @munmap(ptr noundef %166, i64 noundef %39) #13
  %168 = icmp eq i32 %167, -1
  br i1 %168, label %171, label %173

.lr.ph167:                                        ; preds = %.split151.us, %.lr.ph167
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %.lr.ph167 ], [ 0, %.split151.us ]
  %169 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv183
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  call void @roaring_bitmap_free(ptr noundef %170) #13
  store ptr null, ptr %169, align 8, !tbaa !5
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %.not105 = icmp eq i64 %indvars.iv.next184, %33
  br i1 %.not105, label %._crit_edge168, label %.lr.ph167, !llvm.loop !20

171:                                              ; preds = %._crit_edge168
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  call void @exit(i32 noundef 1) #14
  unreachable

173:                                              ; preds = %._crit_edge168
  %174 = call i32 @close(i32 noundef %17) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #13
  br label %175

175:                                              ; preds = %173, %63
  %.078 = phi i32 [ 1, %63 ], [ 0, %173 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #13
  br label %176

176:                                              ; preds = %175, %8
  %.1 = phi i32 [ 1, %8 ], [ %.078, %175 ]
  ret i32 %.1
}

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #7

declare ptr @roaring_bitmap_frozen_view(ptr noundef, i64 noundef) local_unnamed_addr #8

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

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

declare zeroext i1 @roaring_bitmap_select(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

declare void @roaring_bitmap_free(ptr noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @munmap(ptr noundef, i64 noundef) local_unnamed_addr #7

declare i32 @close(i32 noundef) local_unnamed_addr #8

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 mustprogress nofree nounwind willreturn memory(read) 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 = { nofree "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 = { 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { "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 #9 = { 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 #10 = { 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 #11 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { nounwind }
attributes #14 = { noreturn nounwind }
attributes #15 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 48}
!12 = !{!"stat", !13, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 88, !14, i64 104, !7, i64 120}
!13 = !{!"long", !7, i64 0}
!14 = !{!"timespec", !13, i64 0, !13, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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