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

; 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 }
%struct.roaring_uint32_iterator_s = type { ptr, i32, i32, i32, i32, i8, ptr, i8, i32 }

@.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 [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [53 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 ptr, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %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 %305

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 %304

154:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = load i32, ptr %7, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %187 = call noalias ptr @malloc(i64 noundef 48) #11
  store ptr %187, ptr %23, align 8, !tbaa !9
  %188 = load ptr, ptr %23, align 8, !tbaa !9
  %189 = icmp eq ptr %188, null
  br i1 %189, label %190, label %191

190:                                              ; preds = %186
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %303

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

194:                                              ; preds = %252, %191
  %195 = load i32, ptr %26, align 4, !tbaa !5
  %196 = icmp ne i32 %195, 4
  br i1 %196, label %198, label %197

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

198:                                              ; preds = %194
  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
  %199 = call double @get_time_usecs()
  store double %199, 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 %200

200:                                              ; preds = %237, %198
  %201 = load i32, ptr %29, align 4, !tbaa !5
  %202 = load i32, ptr %10, align 4, !tbaa !5
  %203 = icmp ne i32 %201, %202
  br i1 %203, label %205, label %204

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

205:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %206 = load ptr, ptr %13, align 8, !tbaa !9
  %207 = load i32, ptr %29, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  store ptr %210, 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 %211

211:                                              ; preds = %233, %205
  %212 = load i32, ptr %31, align 4, !tbaa !5
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = icmp ne i32 %212, %213
  br i1 %214, label %216, label %215

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

216:                                              ; preds = %211
  %217 = load ptr, ptr %30, align 8, !tbaa !9
  %218 = load ptr, ptr %23, align 8, !tbaa !9
  call void @roaring_init_iterator(ptr noundef %217, ptr noundef %218)
  %219 = load ptr, ptr %23, align 8, !tbaa !9
  %220 = load ptr, ptr %20, align 8, !tbaa !9
  %221 = load i32, ptr %27, align 4, !tbaa !5
  %222 = add i32 %221, 1
  store i32 %222, ptr %27, align 4, !tbaa !5
  %223 = zext i32 %221 to i64
  %224 = getelementptr inbounds i32, ptr %220, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = call zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef %219, i32 noundef %225)
  %227 = load ptr, ptr %23, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.roaring_uint32_iterator_s, ptr %227, i32 0, i32 4
  %229 = load i32, ptr %228, align 4, !tbaa !22
  %230 = zext i32 %229 to i64
  %231 = load i64, ptr %25, align 8, !tbaa !21
  %232 = add i64 %231, %230
  store i64 %232, ptr %25, align 8, !tbaa !21
  br label %233

233:                                              ; preds = %216
  %234 = load i32, ptr %31, align 4, !tbaa !5
  %235 = add i32 %234, 1
  store i32 %235, ptr %31, align 4, !tbaa !5
  br label %211, !llvm.loop !25

236:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %29, align 4, !tbaa !5
  %239 = add i32 %238, 1
  store i32 %239, ptr %29, align 4, !tbaa !5
  br label %200, !llvm.loop !26

240:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %241 = call double @get_time_usecs()
  store double %241, ptr %32, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %242 = load double, ptr %32, align 8, !tbaa !19
  %243 = load double, ptr %28, align 8, !tbaa !19
  %244 = fsub double %242, %243
  store double %244, ptr %33, align 8, !tbaa !19
  %245 = load i32, ptr %26, align 4, !tbaa !5
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %251

247:                                              ; preds = %240
  %248 = load double, ptr %33, align 8, !tbaa !19
  %249 = load double, ptr %24, align 8, !tbaa !19
  %250 = fadd double %249, %248
  store double %250, ptr %24, align 8, !tbaa !19
  br label %251

251:                                              ; preds = %247, %240
  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 %252

252:                                              ; preds = %251
  %253 = load i32, ptr %26, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %26, align 4, !tbaa !5
  br label %194, !llvm.loop !27

255:                                              ; preds = %197
  %256 = load i64, ptr %25, align 8, !tbaa !21
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %256)
  %258 = load i32, ptr %19, align 4, !tbaa !5
  %259 = load double, ptr %24, align 8, !tbaa !19
  %260 = fdiv double %259, 3.000000e+00
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %258, double noundef %260, i32 noundef 3)
  %262 = load double, ptr %24, align 8, !tbaa !19
  %263 = fdiv double %262, 3.000000e+00
  %264 = load i32, ptr %19, align 4, !tbaa !5
  %265 = uitofp i32 %264 to double
  %266 = fdiv double %263, %265
  %267 = load i32, ptr %19, align 4, !tbaa !5
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %266, i32 noundef %267)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %284, %255
  %270 = load i32, ptr %34, align 4, !tbaa !5
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = icmp ne i32 %270, %271
  br i1 %272, label %274, label %273

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

274:                                              ; preds = %269
  %275 = load ptr, ptr %13, align 8, !tbaa !9
  %276 = load i32, ptr %34, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = getelementptr inbounds ptr, ptr %275, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  call void @roaring_bitmap_free(ptr noundef %279)
  %280 = load ptr, ptr %13, align 8, !tbaa !9
  %281 = load i32, ptr %34, align 4, !tbaa !5
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds ptr, ptr %280, i64 %282
  store ptr null, ptr %283, align 8, !tbaa !9
  br label %284

284:                                              ; preds = %274
  %285 = load i32, ptr %34, align 4, !tbaa !5
  %286 = add i32 %285, 1
  store i32 %286, ptr %34, align 4, !tbaa !5
  br label %269, !llvm.loop !28

287:                                              ; preds = %273
  %288 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %288) #8
  %289 = load ptr, ptr %14, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 8
  %291 = load i64, ptr %290, align 8, !tbaa !11
  %292 = sub i64 0, %291
  %293 = getelementptr inbounds i8, ptr %289, i64 %292
  %294 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 8
  %295 = load i64, ptr %294, align 8, !tbaa !11
  %296 = call i32 @munmap(ptr noundef %293, i64 noundef %295) #8
  %297 = icmp eq i32 %296, -1
  br i1 %297, label %298, label %300

298:                                              ; preds = %287
  %299 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @exit(i32 noundef 1) #10
  unreachable

300:                                              ; preds = %287
  %301 = load i32, ptr %8, align 4, !tbaa !5
  %302 = call i32 @close(i32 noundef %301)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %303

303:                                              ; preds = %300, %190
  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 %304

304:                                              ; preds = %303, %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 %305

305:                                              ; preds = %304, %37
  %306 = load i32, ptr %3, align 4
  ret i32 %306
}

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 void @roaring_init_iterator(ptr noundef, ptr noundef) #2

declare zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef, i32 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 = !{!23, !6, i64 20}
!23 = !{!"roaring_uint32_iterator_s", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !24, i64 24, !10, i64 32, !7, i64 40, !6, i64 44}
!24 = !{!"_Bool", !7, i64 0}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !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 [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [53 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 = icmp slt i32 %0, 3
  br i1 %6, label %7, label %10

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

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

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

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

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

25:                                               ; preds = %20
  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
  %26 = call i64 @read(i32 noundef %16, ptr noundef nonnull %4, i64 noundef 4) #13
  %27 = call i64 @read(i32 noundef %16, ptr noundef nonnull %5, i64 noundef 4) #13
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %28)
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %30)
  %32 = zext i32 %28 to i64
  %33 = shl nuw nsw i64 %32, 2
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #15
  %35 = shl nuw nsw i64 %32, 3
  %36 = tail call noalias ptr @malloc(i64 noundef %35) #15
  %37 = getelementptr inbounds i8, ptr %3, i64 48
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = tail call ptr @mmap(ptr noundef null, i64 noundef %38, i32 noundef 1, i32 noundef 1, i32 noundef %16, i64 noundef 0) #13
  %.not = icmp eq ptr %39, null
  br i1 %.not, label %40, label %42

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

42:                                               ; preds = %25
  %43 = getelementptr i8, ptr %39, i64 8
  %.not106117 = icmp eq i32 %28, 0
  br i1 %.not106117, label %._crit_edge125.thread, label %.lr.ph124.preheader

._crit_edge125.thread:                            ; preds = %42
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @free(ptr noundef %34) #13
  br label %64

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

._crit_edge125:                                   ; preds = %60
  tail call void @free(ptr noundef nonnull %34) #13
  %50 = icmp eq i32 %28, 1
  br i1 %50, label %62, label %64

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

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

60:                                               ; preds = %.lr.ph124
  %61 = getelementptr inbounds i8, ptr %53, i64 %54
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not107 = icmp eq i64 %indvars.iv.next, %32
  br i1 %.not107, label %._crit_edge125, label %.lr.ph124, !llvm.loop !15

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

64:                                               ; preds = %._crit_edge125.thread, %._crit_edge125
  %.184.lcssa194 = phi ptr [ %43, %._crit_edge125.thread ], [ %61, %._crit_edge125 ]
  %65 = mul i32 %28, %.fr175
  %66 = zext i32 %65 to i64
  %67 = shl nuw nsw i64 %66, 2
  %68 = tail call noalias ptr @malloc(i64 noundef %67) #15
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %.not108128 = icmp eq i32 %65, 0
  br i1 %.not108128, label %._crit_edge132, label %.lr.ph131

.lr.ph131:                                        ; preds = %64, %72
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %72 ], [ 0, %64 ]
  %70 = getelementptr inbounds i32, ptr %68, i64 %indvars.iv183
  %71 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.10, ptr noundef %70)
  %.not109 = icmp eq i32 %71, -1
  br i1 %.not109, label %._crit_edge132.loopexit.split.loop.exit203, label %72

72:                                               ; preds = %.lr.ph131
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %.not108 = icmp eq i64 %indvars.iv.next184, %66
  br i1 %.not108, label %._crit_edge132, label %.lr.ph131, !llvm.loop !17

._crit_edge132.loopexit.split.loop.exit203:       ; preds = %.lr.ph131
  %73 = trunc nuw i64 %indvars.iv183 to i32
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %72, %._crit_edge132.loopexit.split.loop.exit203, %64
  %.2100 = phi i32 [ 0, %64 ], [ %73, %._crit_edge132.loopexit.split.loop.exit203 ], [ %65, %72 ]
  %74 = tail call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #15
  %75 = icmp eq ptr %74, null
  br i1 %75, label %178, label %76

76:                                               ; preds = %._crit_edge132
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %.2100)
  %78 = getelementptr inbounds i8, ptr %74, i64 20
  br i1 %.not106117, label %.split.us.preheader, label %.split

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

.split:                                           ; preds = %76
  %.not114136 = icmp eq i32 %.fr175, 0
  %90 = tail call double @get_time_usecs()
  br i1 %.not114136, label %.lr.ph150.us.preheader, label %.lr.ph141

.lr.ph150.us.preheader:                           ; preds = %.split
  %91 = tail call double @get_time_usecs()
  %92 = tail call double @get_time_usecs()
  %93 = tail call double @get_time_usecs()
  %94 = fsub double %93, %92
  %95 = fadd double %94, 0.000000e+00
  %96 = tail call double @get_time_usecs()
  %97 = tail call double @get_time_usecs()
  %98 = fsub double %97, %96
  %99 = fadd double %95, %98
  %100 = tail call double @get_time_usecs()
  br label %.split157.us

.split157.us:                                     ; preds = %._crit_edge151.split.3, %.lr.ph150.us.preheader, %.split.us.preheader
  %.sink207 = phi double [ %142, %._crit_edge151.split.3 ], [ %100, %.lr.ph150.us.preheader ], [ %89, %.split.us.preheader ]
  %.sink = phi double [ %155, %._crit_edge151.split.3 ], [ %99, %.lr.ph150.us.preheader ], [ %88, %.split.us.preheader ]
  %.us-phi159 = phi i64 [ %153, %._crit_edge151.split.3 ], [ 0, %.lr.ph150.us.preheader ], [ 0, %.split.us.preheader ]
  %101 = tail call double @get_time_usecs()
  %102 = fsub double %101, %.sink207
  %103 = fadd double %.sink, %102
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %.us-phi159)
  %105 = fdiv double %103, 3.000000e+00
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %.2100, double noundef %105, i32 noundef 3)
  %107 = uitofp i32 %.2100 to double
  %108 = fdiv double %105, %107
  %109 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %108, i32 noundef %.2100)
  br i1 %.not106117, label %._crit_edge174, label %.lr.ph173

._crit_edge151.split:                             ; preds = %._crit_edge142
  %110 = tail call double @get_time_usecs()
  %111 = tail call double @get_time_usecs()
  br label %.lr.ph141.1

.lr.ph141.1:                                      ; preds = %._crit_edge142.1, %._crit_edge151.split
  %indvars.iv186.1 = phi i64 [ 0, %._crit_edge151.split ], [ %indvars.iv.next187.1, %._crit_edge142.1 ]
  %.089147.1 = phi i32 [ 0, %._crit_edge151.split ], [ %115, %._crit_edge142.1 ]
  %.193146.1 = phi i64 [ %166, %._crit_edge151.split ], [ %122, %._crit_edge142.1 ]
  %112 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv186.1
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  br label %114

114:                                              ; preds = %114, %.lr.ph141.1
  %.085139.1 = phi i32 [ 0, %.lr.ph141.1 ], [ %123, %114 ]
  %.190138.1 = phi i32 [ %.089147.1, %.lr.ph141.1 ], [ %115, %114 ]
  %.294137.1 = phi i64 [ %.193146.1, %.lr.ph141.1 ], [ %122, %114 ]
  tail call void @roaring_init_iterator(ptr noundef %113, ptr noundef nonnull %74) #13
  %115 = add i32 %.190138.1, 1
  %116 = zext i32 %.190138.1 to i64
  %117 = getelementptr inbounds i32, ptr %68, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = tail call zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef nonnull %74, i32 noundef %118) #13
  %120 = load i32, ptr %78, align 4, !tbaa !18
  %121 = zext i32 %120 to i64
  %122 = add i64 %.294137.1, %121
  %123 = add nuw i32 %.085139.1, 1
  %.not114.1 = icmp eq i32 %123, %.fr175
  br i1 %.not114.1, label %._crit_edge142.1, label %114, !llvm.loop !21

._crit_edge142.1:                                 ; preds = %114
  %indvars.iv.next187.1 = add nuw nsw i64 %indvars.iv186.1, 1
  %.not112.1 = icmp eq i64 %indvars.iv.next187.1, %32
  br i1 %.not112.1, label %._crit_edge151.split.1, label %.lr.ph141.1, !llvm.loop !22

._crit_edge151.split.1:                           ; preds = %._crit_edge142.1
  %124 = tail call double @get_time_usecs()
  %125 = fsub double %124, %111
  %126 = tail call double @get_time_usecs()
  br label %.lr.ph141.2

.lr.ph141.2:                                      ; preds = %._crit_edge142.2, %._crit_edge151.split.1
  %indvars.iv186.2 = phi i64 [ 0, %._crit_edge151.split.1 ], [ %indvars.iv.next187.2, %._crit_edge142.2 ]
  %.089147.2 = phi i32 [ 0, %._crit_edge151.split.1 ], [ %130, %._crit_edge142.2 ]
  %.193146.2 = phi i64 [ %122, %._crit_edge151.split.1 ], [ %137, %._crit_edge142.2 ]
  %127 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv186.2
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %129, %.lr.ph141.2
  %.085139.2 = phi i32 [ 0, %.lr.ph141.2 ], [ %138, %129 ]
  %.190138.2 = phi i32 [ %.089147.2, %.lr.ph141.2 ], [ %130, %129 ]
  %.294137.2 = phi i64 [ %.193146.2, %.lr.ph141.2 ], [ %137, %129 ]
  tail call void @roaring_init_iterator(ptr noundef %128, ptr noundef nonnull %74) #13
  %130 = add i32 %.190138.2, 1
  %131 = zext i32 %.190138.2 to i64
  %132 = getelementptr inbounds i32, ptr %68, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = tail call zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef nonnull %74, i32 noundef %133) #13
  %135 = load i32, ptr %78, align 4, !tbaa !18
  %136 = zext i32 %135 to i64
  %137 = add i64 %.294137.2, %136
  %138 = add nuw i32 %.085139.2, 1
  %.not114.2 = icmp eq i32 %138, %.fr175
  br i1 %.not114.2, label %._crit_edge142.2, label %129, !llvm.loop !21

._crit_edge142.2:                                 ; preds = %129
  %indvars.iv.next187.2 = add nuw nsw i64 %indvars.iv186.2, 1
  %.not112.2 = icmp eq i64 %indvars.iv.next187.2, %32
  br i1 %.not112.2, label %._crit_edge151.split.2, label %.lr.ph141.2, !llvm.loop !22

._crit_edge151.split.2:                           ; preds = %._crit_edge142.2
  %139 = fadd double %125, 0.000000e+00
  %140 = tail call double @get_time_usecs()
  %141 = fsub double %140, %126
  %142 = tail call double @get_time_usecs()
  br label %.lr.ph141.3

.lr.ph141.3:                                      ; preds = %._crit_edge142.3, %._crit_edge151.split.2
  %indvars.iv186.3 = phi i64 [ 0, %._crit_edge151.split.2 ], [ %indvars.iv.next187.3, %._crit_edge142.3 ]
  %.089147.3 = phi i32 [ 0, %._crit_edge151.split.2 ], [ %146, %._crit_edge142.3 ]
  %.193146.3 = phi i64 [ %137, %._crit_edge151.split.2 ], [ %153, %._crit_edge142.3 ]
  %143 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv186.3
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %145, %.lr.ph141.3
  %.085139.3 = phi i32 [ 0, %.lr.ph141.3 ], [ %154, %145 ]
  %.190138.3 = phi i32 [ %.089147.3, %.lr.ph141.3 ], [ %146, %145 ]
  %.294137.3 = phi i64 [ %.193146.3, %.lr.ph141.3 ], [ %153, %145 ]
  tail call void @roaring_init_iterator(ptr noundef %144, ptr noundef nonnull %74) #13
  %146 = add i32 %.190138.3, 1
  %147 = zext i32 %.190138.3 to i64
  %148 = getelementptr inbounds i32, ptr %68, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = tail call zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef nonnull %74, i32 noundef %149) #13
  %151 = load i32, ptr %78, align 4, !tbaa !18
  %152 = zext i32 %151 to i64
  %153 = add i64 %.294137.3, %152
  %154 = add nuw i32 %.085139.3, 1
  %.not114.3 = icmp eq i32 %154, %.fr175
  br i1 %.not114.3, label %._crit_edge142.3, label %145, !llvm.loop !21

._crit_edge142.3:                                 ; preds = %145
  %indvars.iv.next187.3 = add nuw nsw i64 %indvars.iv186.3, 1
  %.not112.3 = icmp eq i64 %indvars.iv.next187.3, %32
  br i1 %.not112.3, label %._crit_edge151.split.3, label %.lr.ph141.3, !llvm.loop !22

._crit_edge151.split.3:                           ; preds = %._crit_edge142.3
  %155 = fadd double %139, %141
  br label %.split157.us

.lr.ph141:                                        ; preds = %.split, %._crit_edge142
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %._crit_edge142 ], [ 0, %.split ]
  %.089147 = phi i32 [ %159, %._crit_edge142 ], [ 0, %.split ]
  %.193146 = phi i64 [ %166, %._crit_edge142 ], [ 0, %.split ]
  %156 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv186
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  br label %158

._crit_edge142:                                   ; preds = %158
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %.not112 = icmp eq i64 %indvars.iv.next187, %32
  br i1 %.not112, label %._crit_edge151.split, label %.lr.ph141, !llvm.loop !22

158:                                              ; preds = %.lr.ph141, %158
  %.085139 = phi i32 [ 0, %.lr.ph141 ], [ %167, %158 ]
  %.190138 = phi i32 [ %.089147, %.lr.ph141 ], [ %159, %158 ]
  %.294137 = phi i64 [ %.193146, %.lr.ph141 ], [ %166, %158 ]
  tail call void @roaring_init_iterator(ptr noundef %157, ptr noundef nonnull %74) #13
  %159 = add i32 %.190138, 1
  %160 = zext i32 %.190138 to i64
  %161 = getelementptr inbounds i32, ptr %68, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !9
  %163 = tail call zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef nonnull %74, i32 noundef %162) #13
  %164 = load i32, ptr %78, align 4, !tbaa !18
  %165 = zext i32 %164 to i64
  %166 = add i64 %.294137, %165
  %167 = add nuw i32 %.085139, 1
  %.not114 = icmp eq i32 %167, %.fr175
  br i1 %.not114, label %._crit_edge142, label %158, !llvm.loop !21

._crit_edge174:                                   ; preds = %.lr.ph173, %.split157.us
  tail call void @free(ptr noundef %36) #13
  %168 = sub i64 0, %38
  %169 = getelementptr inbounds i8, ptr %.184.lcssa194, i64 %168
  %170 = tail call i32 @munmap(ptr noundef %169, i64 noundef %38) #13
  %171 = icmp eq i32 %170, -1
  br i1 %171, label %174, label %176

.lr.ph173:                                        ; preds = %.split157.us, %.lr.ph173
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %.lr.ph173 ], [ 0, %.split157.us ]
  %172 = getelementptr inbounds ptr, ptr %36, i64 %indvars.iv189
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  tail call void @roaring_bitmap_free(ptr noundef %173) #13
  store ptr null, ptr %172, align 8, !tbaa !5
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %.not111 = icmp eq i64 %indvars.iv.next190, %32
  br i1 %.not111, label %._crit_edge174, label %.lr.ph173, !llvm.loop !23

174:                                              ; preds = %._crit_edge174
  %175 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  tail call void @exit(i32 noundef 1) #14
  unreachable

176:                                              ; preds = %._crit_edge174
  %177 = tail call i32 @close(i32 noundef %16) #13
  br label %178

178:                                              ; preds = %176, %._crit_edge132, %62
  %.1 = phi i32 [ 1, %62 ], [ 0, %176 ], [ 1, %._crit_edge132 ]
  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 %179

179:                                              ; preds = %178, %7
  %.2 = phi i32 [ 1, %7 ], [ %.1, %178 ]
  ret i32 %.2
}

; 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 void @roaring_init_iterator(ptr noundef, ptr noundef) local_unnamed_addr #8

declare zeroext i1 @roaring_move_uint32_iterator_equalorlarger(ptr noundef, i32 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 = !{!19, !10, i64 20}
!19 = !{!"roaring_uint32_iterator_s", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !20, i64 24, !6, i64 32, !7, i64 40, !10, i64 44}
!20 = !{!"_Bool", !7, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !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