; LLVM IR from tangjz/acm-icpc :: codeforces/gym/102012F.ll (Z7rebuildv)

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

%class.HashTable = type { [200001 x i32], [200001 x i32], [200001 x i32], [200001 x i32], %"class.std::unordered_map", i32, [200001 x i32] }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Event = type { i32, i32, i32, i32 }

@n = external dso_local global i32, align 4
@ctr = external dso_local global [200001 x i32], align 16
@ht = external dso_local global %class.HashTable, align 8
@ptot = external dso_local global i32, align 4
@sz = external dso_local global [200001 x i32], align 16
@lnk = external dso_local global [200001 x i32], align 16
@etot = external dso_local global i32, align 4
@ord = external dso_local global [1600009 x i32], align 16
@ord2 = external dso_local global ptr, align 8
@eve = external dso_local global [800005 x %struct.Event], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7rebuildv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = mul i64 %16, 4
  call void @llvm.memset.p0.i64(ptr align 16 @ctr, i8 0, i64 %17, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %42, %0
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = load i32, ptr @etot, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %45

23:                                               ; preds = %18
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.Event, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !5
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.Event, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %39, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %23
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %1, align 4, !tbaa !5
  br label %18, !llvm.loop !12

45:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %62, %45
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %65

51:                                               ; preds = %46
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sub nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %56
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %51
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %46, !llvm.loop !14

65:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %99, %65
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = load i32, ptr @etot, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %102

71:                                               ; preds = %66
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = shl i32 %72, 1
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.Event, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %80, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %83
  store i32 %73, ptr %84, align 4, !tbaa !5
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = shl i32 %85, 1
  %87 = or i32 %86, 1
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.Event, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %95, -1
  store i32 %96, ptr %94, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %97
  store i32 %87, ptr %98, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %71
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %3, align 4, !tbaa !5
  br label %66, !llvm.loop !15

102:                                              ; preds = %70
  store i32 0, ptr @ptot, align 4, !tbaa !5
  %103 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %104 = sext i32 %103 to i64
  %105 = mul i64 %104, 4
  call void @llvm.memset.p0.i64(ptr align 16 @sz, i8 0, i64 %105, i1 false)
  %106 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %107 = sext i32 %106 to i64
  %108 = mul i64 %107, 4
  call void @llvm.memset.p0.i64(ptr align 16 @lnk, i8 -1, i64 %108, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %117, %102
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %120

114:                                              ; preds = %109
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = call noundef i32 @_Z9addPointsii(i32 noundef %115, i32 noundef 0)
  br label %117

117:                                              ; preds = %114
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %4, align 4, !tbaa !5
  br label %109, !llvm.loop !25

120:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %160, %120
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = load i32, ptr @etot, align 4, !tbaa !5
  %124 = shl i32 %123, 1
  %125 = icmp slt i32 %122, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %163

127:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = ashr i32 %131, 1
  store i32 %132, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = and i32 %136, 1
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %144

139:                                              ; preds = %127
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %141
  %143 = getelementptr inbounds %struct.Event, ptr %142, i32 0, i32 2
  br label %149

144:                                              ; preds = %127
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.Event, ptr %147, i32 0, i32 1
  br label %149

149:                                              ; preds = %144, %139
  %150 = phi ptr [ %143, %139 ], [ %148, %144 ]
  store ptr %150, ptr %7, align 8, !tbaa !26
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.Event, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 16, !tbaa !27
  %156 = load ptr, ptr %7, align 8, !tbaa !26
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = call noundef i32 @_Z9addPointsii(i32 noundef %155, i32 noundef %157)
  %159 = load ptr, ptr %7, align 8, !tbaa !26
  store i32 %158, ptr %159, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %160

160:                                              ; preds = %149
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %5, align 4, !tbaa !5
  br label %121, !llvm.loop !28

163:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %176, %163
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

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

169:                                              ; preds = %164
  %170 = load i32, ptr %8, align 4, !tbaa !5
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [200001 x i32], ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 6), i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = call noundef i32 @_Z9addPointsii(i32 noundef %170, i32 noundef %174)
  br label %176

176:                                              ; preds = %169
  %177 = load i32, ptr %8, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %8, align 4, !tbaa !5
  br label %164, !llvm.loop !29

179:                                              ; preds = %168
  %180 = load i32, ptr @n, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = mul i64 %181, 4
  call void @llvm.memset.p0.i64(ptr align 16 @ctr, i8 0, i64 %182, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %198, %179
  %184 = load i32, ptr %9, align 4, !tbaa !5
  %185 = load i32, ptr @etot, align 4, !tbaa !5
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %201

188:                                              ; preds = %183
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %190
  %192 = getelementptr inbounds %struct.Event, ptr %191, i32 0, i32 3
  %193 = load i32, ptr %192, align 4, !tbaa !30
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %195, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %188
  %199 = load i32, ptr %9, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %9, align 4, !tbaa !5
  br label %183, !llvm.loop !31

201:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %218, %201
  %203 = load i32, ptr %10, align 4, !tbaa !5
  %204 = load i32, ptr @n, align 4, !tbaa !5
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %221

207:                                              ; preds = %202
  %208 = load i32, ptr %10, align 4, !tbaa !5
  %209 = sub nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = add nsw i32 %216, %212
  store i32 %217, ptr %215, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %207
  %219 = load i32, ptr %10, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %10, align 4, !tbaa !5
  br label %202, !llvm.loop !32

221:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %241, %221
  %223 = load i32, ptr %11, align 4, !tbaa !5
  %224 = load i32, ptr @etot, align 4, !tbaa !5
  %225 = icmp slt i32 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %244

227:                                              ; preds = %222
  %228 = load i32, ptr %11, align 4, !tbaa !5
  %229 = load ptr, ptr @ord2, align 8, !tbaa !26
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %231
  %233 = getelementptr inbounds %struct.Event, ptr %232, i32 0, i32 3
  %234 = load i32, ptr %233, align 4, !tbaa !30
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = add nsw i32 %237, -1
  store i32 %238, ptr %236, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %229, i64 %239
  store i32 %228, ptr %240, align 4, !tbaa !5
  br label %241

241:                                              ; preds = %227
  %242 = load i32, ptr %11, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %11, align 4, !tbaa !5
  br label %222, !llvm.loop !33

244:                                              ; preds = %226
  %245 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %246 = sext i32 %245 to i64
  %247 = mul i64 %246, 4
  call void @llvm.memset.p0.i64(ptr align 16 @ctr, i8 0, i64 %247, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %263, %244
  %249 = load i32, ptr %12, align 4, !tbaa !5
  %250 = load i32, ptr @etot, align 4, !tbaa !5
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %266

253:                                              ; preds = %248
  %254 = load i32, ptr %12, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %255
  %257 = getelementptr inbounds %struct.Event, ptr %256, i32 0, i32 0
  %258 = load i32, ptr %257, align 16, !tbaa !27
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %260, align 4, !tbaa !5
  br label %263

263:                                              ; preds = %253
  %264 = load i32, ptr %12, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %12, align 4, !tbaa !5
  br label %248, !llvm.loop !34

266:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %283, %266
  %268 = load i32, ptr %13, align 4, !tbaa !5
  %269 = load i32, ptr getelementptr inbounds (%class.HashTable, ptr @ht, i32 0, i32 5), align 8, !tbaa !16
  %270 = icmp slt i32 %268, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %286

272:                                              ; preds = %267
  %273 = load i32, ptr %13, align 4, !tbaa !5
  %274 = sub nsw i32 %273, 1
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !5
  %282 = add nsw i32 %281, %277
  store i32 %282, ptr %280, align 4, !tbaa !5
  br label %283

283:                                              ; preds = %272
  %284 = load i32, ptr %13, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %13, align 4, !tbaa !5
  br label %267, !llvm.loop !35

286:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %287

287:                                              ; preds = %313, %286
  %288 = load i32, ptr %14, align 4, !tbaa !5
  %289 = load i32, ptr @etot, align 4, !tbaa !5
  %290 = icmp slt i32 %288, %289
  br i1 %290, label %292, label %291

291:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %316

292:                                              ; preds = %287
  %293 = load ptr, ptr @ord2, align 8, !tbaa !26
  %294 = load i32, ptr %14, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds i32, ptr %293, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !5
  %298 = load ptr, ptr @ord2, align 8, !tbaa !26
  %299 = load i32, ptr %14, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds i32, ptr %298, i64 %300
  %302 = load i32, ptr %301, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %303
  %305 = getelementptr inbounds %struct.Event, ptr %304, i32 0, i32 0
  %306 = load i32, ptr %305, align 16, !tbaa !27
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = add nsw i32 %309, -1
  store i32 %310, ptr %308, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %311
  store i32 %297, ptr %312, align 4, !tbaa !5
  br label %313

313:                                              ; preds = %292
  %314 = load i32, ptr %14, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %14, align 4, !tbaa !5
  br label %287, !llvm.loop !36

316:                                              ; preds = %291
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9addPointsii(i32 noundef, i32 noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"_ZTS5Event", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !6, i64 3200072}
!17 = !{!"_ZTS9HashTable", !7, i64 0, !7, i64 800004, !7, i64 1600008, !7, i64 2400012, !18, i64 3200016, !6, i64 3200072, !7, i64 3200076}
!18 = !{!"_ZTSSt13unordered_mapIxiSt4hashIxESt8equal_toIxESaISt4pairIKxiEEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIxSt4pairIKxiESaIS2_ENSt8__detail10_Select1stESt8equal_toIxESt4hashIxENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !20, i64 0, !21, i64 8, !22, i64 16, !21, i64 24, !23, i64 32, !20, i64 48}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !20, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !21, i64 8}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !13}
!26 = !{!20, !20, i64 0}
!27 = !{!10, !6, i64 0}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = !{!10, !6, i64 12}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !13}
!34 = distinct !{!34, !13}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}


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

%class.HashTable = type { [200001 x i32], [200001 x i32], [200001 x i32], [200001 x i32], %"class.std::unordered_map", i32, [200001 x i32] }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Event = type { i32, i32, i32, i32 }

@n = external dso_local local_unnamed_addr global i32, align 4
@ctr = external dso_local local_unnamed_addr global [200001 x i32], align 16
@ht = external dso_local local_unnamed_addr global %class.HashTable, align 8
@ptot = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local local_unnamed_addr global [200001 x i32], align 16
@lnk = external dso_local local_unnamed_addr global [200001 x i32], align 16
@etot = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local local_unnamed_addr global [1600009 x i32], align 16
@ord2 = external dso_local local_unnamed_addr global ptr, align 8
@eve = external dso_local local_unnamed_addr global [800005 x %struct.Event], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7rebuildv() local_unnamed_addr #0 {
  %1 = load i32, ptr @n, align 4, !tbaa !5
  %2 = sext i32 %1 to i64
  %3 = shl nsw i64 %2, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @ctr, i8 0, i64 %3, i1 false)
  %4 = load i32, ptr @etot, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph.preheader, label %.preheader68

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %4 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %6 = icmp eq i32 %4, 1
  br i1 %6, label %.preheader68.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

.preheader68.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader68, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader68.loopexit.unr-lcssa
  %7 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv.unr
  %8 = getelementptr inbounds i8, ptr %7, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %10
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr %11, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %17, align 4, !tbaa !5
  br label %.preheader68

.preheader68:                                     ; preds = %.lr.ph.epil, %.preheader68.loopexit.unr-lcssa, %0
  %20 = icmp sgt i32 %1, 1
  br i1 %20, label %.lr.ph72.preheader, label %.preheader67

.lr.ph72.preheader:                               ; preds = %.preheader68
  %wide.trip.count105 = zext nneg i32 %1 to i64
  %.pre = load i32, ptr @ctr, align 16, !tbaa !5
  %21 = add nsw i64 %wide.trip.count105, -1
  %22 = add nsw i64 %wide.trip.count105, -2
  %xtraiter163 = and i64 %21, 3
  %23 = icmp ult i64 %22, 3
  br i1 %23, label %.preheader67.loopexit.unr-lcssa, label %.lr.ph72.preheader.new

.lr.ph72.preheader.new:                           ; preds = %.lr.ph72.preheader
  %unroll_iter165 = and i64 %21, -4
  br label %.lr.ph72

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %24 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %24, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %37 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv.next
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %37, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader68.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !12

.preheader67.loopexit.unr-lcssa:                  ; preds = %.lr.ph72, %.lr.ph72.preheader
  %.unr = phi i32 [ %.pre, %.lr.ph72.preheader ], [ %66, %.lr.ph72 ]
  %indvars.iv102.unr = phi i64 [ 1, %.lr.ph72.preheader ], [ %indvars.iv.next103.3, %.lr.ph72 ]
  %lcmp.mod164.not = icmp eq i64 %xtraiter163, 0
  br i1 %lcmp.mod164.not, label %.preheader67, label %.lr.ph72.epil

.lr.ph72.epil:                                    ; preds = %.preheader67.loopexit.unr-lcssa, %.lr.ph72.epil
  %50 = phi i32 [ %53, %.lr.ph72.epil ], [ %.unr, %.preheader67.loopexit.unr-lcssa ]
  %indvars.iv102.epil = phi i64 [ %indvars.iv.next103.epil, %.lr.ph72.epil ], [ %indvars.iv102.unr, %.preheader67.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph72.epil ], [ 0, %.preheader67.loopexit.unr-lcssa ]
  %51 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv102.epil
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, %50
  store i32 %53, ptr %51, align 4, !tbaa !5
  %indvars.iv.next103.epil = add nuw nsw i64 %indvars.iv102.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter163
  br i1 %epil.iter.cmp.not, label %.preheader67, label %.lr.ph72.epil, !llvm.loop !14

.preheader67:                                     ; preds = %.preheader67.loopexit.unr-lcssa, %.lr.ph72.epil, %.preheader68
  br i1 %5, label %.lr.ph74.preheader, label %._crit_edge

.lr.ph74.preheader:                               ; preds = %.preheader67
  %wide.trip.count110 = zext nneg i32 %4 to i64
  br label %.lr.ph74

.lr.ph72:                                         ; preds = %.lr.ph72, %.lr.ph72.preheader.new
  %54 = phi i32 [ %.pre, %.lr.ph72.preheader.new ], [ %66, %.lr.ph72 ]
  %indvars.iv102 = phi i64 [ 1, %.lr.ph72.preheader.new ], [ %indvars.iv.next103.3, %.lr.ph72 ]
  %niter166 = phi i64 [ 0, %.lr.ph72.preheader.new ], [ %niter166.next.3, %.lr.ph72 ]
  %55 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv102
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, %54
  store i32 %57, ptr %55, align 4, !tbaa !5
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %58 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next103
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, %57
  store i32 %60, ptr %58, align 4, !tbaa !5
  %indvars.iv.next103.1 = add nuw nsw i64 %indvars.iv102, 2
  %61 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next103.1
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, %60
  store i32 %63, ptr %61, align 4, !tbaa !5
  %indvars.iv.next103.2 = add nuw nsw i64 %indvars.iv102, 3
  %64 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next103.2
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, %63
  store i32 %66, ptr %64, align 4, !tbaa !5
  %indvars.iv.next103.3 = add nuw nsw i64 %indvars.iv102, 4
  %niter166.next.3 = add i64 %niter166, 4
  %niter166.ncmp.3 = icmp eq i64 %niter166.next.3, %unroll_iter165
  br i1 %niter166.ncmp.3, label %.preheader67.loopexit.unr-lcssa, label %.lr.ph72, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph74, %.preheader67
  store i32 0, ptr @ptot, align 4, !tbaa !5
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @ht, i64 3200072), align 8, !tbaa !17
  %68 = sext i32 %67 to i64
  %69 = shl nsw i64 %68, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @sz, i8 0, i64 %69, i1 false)
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @lnk, i8 -1, i64 %69, i1 false)
  %70 = icmp sgt i32 %67, 0
  br i1 %70, label %.lr.ph77, label %.preheader66

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %.lr.ph74
  %indvars.iv107 = phi i64 [ 0, %.lr.ph74.preheader ], [ %indvars.iv.next108, %.lr.ph74 ]
  %71 = shl nuw i64 %indvars.iv107, 1
  %72 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv107
  %73 = getelementptr inbounds i8, ptr %72, i64 4
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %76, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %79
  %81 = trunc nuw i64 %71 to i32
  store i32 %81, ptr %80, align 4, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %72, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %85, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %88
  %90 = trunc i64 %71 to i32
  %91 = or disjoint i32 %90, 1
  store i32 %91, ptr %89, align 4, !tbaa !5
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next108, %wide.trip.count110
  br i1 %exitcond111.not, label %._crit_edge, label %.lr.ph74, !llvm.loop !26

.preheader66.loopexit:                            ; preds = %.lr.ph77
  %.pre146 = load i32, ptr @etot, align 4, !tbaa !5
  br label %.preheader66

.preheader66:                                     ; preds = %.preheader66.loopexit, %._crit_edge
  %92 = phi i32 [ %98, %.preheader66.loopexit ], [ %67, %._crit_edge ]
  %93 = phi i32 [ %.pre146, %.preheader66.loopexit ], [ %4, %._crit_edge ]
  %94 = shl i32 %93, 1
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph79, label %.preheader65

.lr.ph77:                                         ; preds = %._crit_edge, %.lr.ph77
  %.06075 = phi i32 [ %97, %.lr.ph77 ], [ 0, %._crit_edge ]
  %96 = tail call noundef i32 @_Z9addPointsii(i32 noundef %.06075, i32 noundef 0)
  %97 = add nuw nsw i32 %.06075, 1
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @ht, i64 3200072), align 8, !tbaa !17
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %.lr.ph77, label %.preheader66.loopexit, !llvm.loop !27

.preheader65.loopexit:                            ; preds = %.lr.ph79
  %.pre147 = load i32, ptr getelementptr inbounds (i8, ptr @ht, i64 3200072), align 8, !tbaa !17
  br label %.preheader65

.preheader65:                                     ; preds = %.preheader65.loopexit, %.preheader66
  %100 = phi i32 [ %113, %.preheader65.loopexit ], [ %93, %.preheader66 ]
  %101 = phi i32 [ %.pre147, %.preheader65.loopexit ], [ %92, %.preheader66 ]
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph81, label %._crit_edge82

.lr.ph79:                                         ; preds = %.preheader66, %.lr.ph79
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.lr.ph79 ], [ 0, %.preheader66 ]
  %103 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %indvars.iv112
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = ashr i32 %104, 1
  %106 = and i32 %104, 1
  %.not = icmp eq i32 %106, 0
  %107 = sext i32 %105 to i64
  %108 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %107
  %.v = select i1 %.not, i64 4, i64 8
  %109 = getelementptr inbounds i8, ptr %108, i64 %.v
  %110 = load i32, ptr %108, align 16, !tbaa !28
  %111 = load i32, ptr %109, align 4, !tbaa !5
  %112 = tail call noundef i32 @_Z9addPointsii(i32 noundef %110, i32 noundef %111)
  store i32 %112, ptr %109, align 4, !tbaa !5
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %113 = load i32, ptr @etot, align 4, !tbaa !5
  %114 = shl i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next113, %115
  br i1 %116, label %.lr.ph79, label %.preheader65.loopexit, !llvm.loop !29

._crit_edge82.loopexit:                           ; preds = %.lr.ph81
  %.pre148 = load i32, ptr @etot, align 4, !tbaa !5
  br label %._crit_edge82

._crit_edge82:                                    ; preds = %._crit_edge82.loopexit, %.preheader65
  %117 = phi i32 [ %128, %._crit_edge82.loopexit ], [ %101, %.preheader65 ]
  %118 = phi i32 [ %.pre148, %._crit_edge82.loopexit ], [ %100, %.preheader65 ]
  %119 = load i32, ptr @n, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = shl nsw i64 %120, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @ctr, i8 0, i64 %121, i1 false)
  %122 = icmp sgt i32 %118, 0
  br i1 %122, label %.lr.ph85.preheader, label %.preheader64

.lr.ph85.preheader:                               ; preds = %._crit_edge82
  %wide.trip.count121 = zext nneg i32 %118 to i64
  %xtraiter167 = and i64 %wide.trip.count121, 1
  %123 = icmp eq i32 %118, 1
  br i1 %123, label %.preheader64.loopexit.unr-lcssa, label %.lr.ph85.preheader.new

.lr.ph85.preheader.new:                           ; preds = %.lr.ph85.preheader
  %unroll_iter170 = and i64 %wide.trip.count121, 2147483646
  br label %.lr.ph85

.lr.ph81:                                         ; preds = %.preheader65, %.lr.ph81
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %.lr.ph81 ], [ 0, %.preheader65 ]
  %124 = getelementptr inbounds [200001 x i32], ptr getelementptr inbounds (i8, ptr @ht, i64 3200076), i64 0, i64 %indvars.iv115
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = trunc nuw nsw i64 %indvars.iv115 to i32
  %127 = tail call noundef i32 @_Z9addPointsii(i32 noundef %126, i32 noundef %125)
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @ht, i64 3200072), align 8, !tbaa !17
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next116, %129
  br i1 %130, label %.lr.ph81, label %._crit_edge82.loopexit, !llvm.loop !30

.preheader64.loopexit.unr-lcssa:                  ; preds = %.lr.ph85, %.lr.ph85.preheader
  %indvars.iv118.unr = phi i64 [ 0, %.lr.ph85.preheader ], [ %indvars.iv.next119.1, %.lr.ph85 ]
  %lcmp.mod169.not = icmp eq i64 %xtraiter167, 0
  br i1 %lcmp.mod169.not, label %.preheader64, label %.lr.ph85.epil

.lr.ph85.epil:                                    ; preds = %.preheader64.loopexit.unr-lcssa
  %131 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv118.unr, i32 3
  %132 = load i32, ptr %131, align 4, !tbaa !31
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %134, align 4, !tbaa !5
  br label %.preheader64

.preheader64:                                     ; preds = %.lr.ph85.epil, %.preheader64.loopexit.unr-lcssa, %._crit_edge82
  %137 = icmp sgt i32 %119, 1
  br i1 %137, label %.lr.ph87.preheader, label %.preheader63

.lr.ph87.preheader:                               ; preds = %.preheader64
  %wide.trip.count126 = zext nneg i32 %119 to i64
  %.pre149 = load i32, ptr @ctr, align 16, !tbaa !5
  %138 = add nsw i64 %wide.trip.count126, -1
  %139 = add nsw i64 %wide.trip.count126, -2
  %xtraiter172 = and i64 %138, 3
  %140 = icmp ult i64 %139, 3
  br i1 %140, label %.preheader63.loopexit.unr-lcssa, label %.lr.ph87.preheader.new

.lr.ph87.preheader.new:                           ; preds = %.lr.ph87.preheader
  %unroll_iter176 = and i64 %138, -4
  br label %.lr.ph87

.lr.ph85:                                         ; preds = %.lr.ph85, %.lr.ph85.preheader.new
  %indvars.iv118 = phi i64 [ 0, %.lr.ph85.preheader.new ], [ %indvars.iv.next119.1, %.lr.ph85 ]
  %niter171 = phi i64 [ 0, %.lr.ph85.preheader.new ], [ %niter171.next.1, %.lr.ph85 ]
  %141 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv118, i32 3
  %142 = load i32, ptr %141, align 4, !tbaa !31
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %144, align 4, !tbaa !5
  %indvars.iv.next119 = or disjoint i64 %indvars.iv118, 1
  %147 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv.next119, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !31
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %150, align 4, !tbaa !5
  %indvars.iv.next119.1 = add nuw nsw i64 %indvars.iv118, 2
  %niter171.next.1 = add i64 %niter171, 2
  %niter171.ncmp.1 = icmp eq i64 %niter171.next.1, %unroll_iter170
  br i1 %niter171.ncmp.1, label %.preheader64.loopexit.unr-lcssa, label %.lr.ph85, !llvm.loop !32

.preheader63.loopexit.unr-lcssa:                  ; preds = %.lr.ph87, %.lr.ph87.preheader
  %.unr174 = phi i32 [ %.pre149, %.lr.ph87.preheader ], [ %172, %.lr.ph87 ]
  %indvars.iv123.unr = phi i64 [ 1, %.lr.ph87.preheader ], [ %indvars.iv.next124.3, %.lr.ph87 ]
  %lcmp.mod175.not = icmp eq i64 %xtraiter172, 0
  br i1 %lcmp.mod175.not, label %.preheader63, label %.lr.ph87.epil

.lr.ph87.epil:                                    ; preds = %.preheader63.loopexit.unr-lcssa, %.lr.ph87.epil
  %153 = phi i32 [ %156, %.lr.ph87.epil ], [ %.unr174, %.preheader63.loopexit.unr-lcssa ]
  %indvars.iv123.epil = phi i64 [ %indvars.iv.next124.epil, %.lr.ph87.epil ], [ %indvars.iv123.unr, %.preheader63.loopexit.unr-lcssa ]
  %epil.iter173 = phi i64 [ %epil.iter173.next, %.lr.ph87.epil ], [ 0, %.preheader63.loopexit.unr-lcssa ]
  %154 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv123.epil
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = add nsw i32 %155, %153
  store i32 %156, ptr %154, align 4, !tbaa !5
  %indvars.iv.next124.epil = add nuw nsw i64 %indvars.iv123.epil, 1
  %epil.iter173.next = add i64 %epil.iter173, 1
  %epil.iter173.cmp.not = icmp eq i64 %epil.iter173.next, %xtraiter172
  br i1 %epil.iter173.cmp.not, label %.preheader63, label %.lr.ph87.epil, !llvm.loop !33

.preheader63:                                     ; preds = %.preheader63.loopexit.unr-lcssa, %.lr.ph87.epil, %.preheader64
  br i1 %122, label %.lr.ph89, label %._crit_edge90.thread

._crit_edge90.thread:                             ; preds = %.preheader63
  %157 = sext i32 %117 to i64
  %158 = shl nsw i64 %157, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @ctr, i8 0, i64 %158, i1 false)
  br label %.preheader62

.lr.ph89:                                         ; preds = %.preheader63
  %159 = load ptr, ptr @ord2, align 8, !tbaa !34
  br label %177

.lr.ph87:                                         ; preds = %.lr.ph87, %.lr.ph87.preheader.new
  %160 = phi i32 [ %.pre149, %.lr.ph87.preheader.new ], [ %172, %.lr.ph87 ]
  %indvars.iv123 = phi i64 [ 1, %.lr.ph87.preheader.new ], [ %indvars.iv.next124.3, %.lr.ph87 ]
  %niter177 = phi i64 [ 0, %.lr.ph87.preheader.new ], [ %niter177.next.3, %.lr.ph87 ]
  %161 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv123
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = add nsw i32 %162, %160
  store i32 %163, ptr %161, align 4, !tbaa !5
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %164 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next124
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = add nsw i32 %165, %163
  store i32 %166, ptr %164, align 4, !tbaa !5
  %indvars.iv.next124.1 = add nuw nsw i64 %indvars.iv123, 2
  %167 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next124.1
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = add nsw i32 %168, %166
  store i32 %169, ptr %167, align 4, !tbaa !5
  %indvars.iv.next124.2 = add nuw nsw i64 %indvars.iv123, 3
  %170 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next124.2
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = add nsw i32 %171, %169
  store i32 %172, ptr %170, align 4, !tbaa !5
  %indvars.iv.next124.3 = add nuw nsw i64 %indvars.iv123, 4
  %niter177.next.3 = add i64 %niter177, 4
  %niter177.ncmp.3 = icmp eq i64 %niter177.next.3, %unroll_iter176
  br i1 %niter177.ncmp.3, label %.preheader63.loopexit.unr-lcssa, label %.lr.ph87, !llvm.loop !35

._crit_edge90:                                    ; preds = %177
  %.pre150 = load i32, ptr getelementptr inbounds (i8, ptr @ht, i64 3200072), align 8, !tbaa !17
  %173 = sext i32 %.pre150 to i64
  %174 = shl nsw i64 %173, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @ctr, i8 0, i64 %174, i1 false)
  %175 = icmp sgt i32 %187, 0
  br i1 %175, label %.lr.ph94.preheader, label %.preheader62

.lr.ph94.preheader:                               ; preds = %._crit_edge90
  %wide.trip.count134 = zext nneg i32 %187 to i64
  %xtraiter178 = and i64 %wide.trip.count134, 1
  %176 = icmp eq i32 %187, 1
  br i1 %176, label %.preheader62.loopexit.unr-lcssa, label %.lr.ph94.preheader.new

.lr.ph94.preheader.new:                           ; preds = %.lr.ph94.preheader
  %unroll_iter181 = and i64 %wide.trip.count134, 2147483646
  br label %.lr.ph94

177:                                              ; preds = %.lr.ph89, %177
  %indvars.iv128 = phi i64 [ 0, %.lr.ph89 ], [ %indvars.iv.next129, %177 ]
  %178 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv128, i32 3
  %179 = load i32, ptr %178, align 4, !tbaa !31
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = add nsw i32 %182, -1
  store i32 %183, ptr %181, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds i32, ptr %159, i64 %184
  %186 = trunc nuw nsw i64 %indvars.iv128 to i32
  store i32 %186, ptr %185, align 4, !tbaa !5
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %187 = load i32, ptr @etot, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = icmp slt i64 %indvars.iv.next129, %188
  br i1 %189, label %177, label %._crit_edge90, !llvm.loop !36

.preheader62.loopexit.unr-lcssa:                  ; preds = %.lr.ph94, %.lr.ph94.preheader
  %indvars.iv131.unr = phi i64 [ 0, %.lr.ph94.preheader ], [ %indvars.iv.next132.1, %.lr.ph94 ]
  %lcmp.mod180.not = icmp eq i64 %xtraiter178, 0
  br i1 %lcmp.mod180.not, label %.preheader62, label %.lr.ph94.epil

.lr.ph94.epil:                                    ; preds = %.preheader62.loopexit.unr-lcssa
  %190 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv131.unr
  %191 = load i32, ptr %190, align 16, !tbaa !28
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %193, align 4, !tbaa !5
  br label %.preheader62

.preheader62:                                     ; preds = %.lr.ph94.epil, %.preheader62.loopexit.unr-lcssa, %._crit_edge90.thread, %._crit_edge90
  %196 = phi i1 [ false, %._crit_edge90.thread ], [ false, %._crit_edge90 ], [ %175, %.preheader62.loopexit.unr-lcssa ], [ %175, %.lr.ph94.epil ]
  %.lcssa153 = phi i32 [ %118, %._crit_edge90.thread ], [ %187, %._crit_edge90 ], [ %187, %.preheader62.loopexit.unr-lcssa ], [ %187, %.lr.ph94.epil ]
  %197 = phi i32 [ %117, %._crit_edge90.thread ], [ %.pre150, %._crit_edge90 ], [ %.pre150, %.preheader62.loopexit.unr-lcssa ], [ %.pre150, %.lr.ph94.epil ]
  %198 = icmp sgt i32 %197, 1
  br i1 %198, label %.lr.ph96.preheader, label %.preheader

.lr.ph96.preheader:                               ; preds = %.preheader62
  %wide.trip.count139 = zext nneg i32 %197 to i64
  %.pre151 = load i32, ptr @ctr, align 16, !tbaa !5
  %199 = add nsw i64 %wide.trip.count139, -1
  %200 = add nsw i64 %wide.trip.count139, -2
  %xtraiter183 = and i64 %199, 3
  %201 = icmp ult i64 %200, 3
  br i1 %201, label %.preheader.loopexit.unr-lcssa, label %.lr.ph96.preheader.new

.lr.ph96.preheader.new:                           ; preds = %.lr.ph96.preheader
  %unroll_iter187 = and i64 %199, -4
  br label %.lr.ph96

.lr.ph94:                                         ; preds = %.lr.ph94, %.lr.ph94.preheader.new
  %indvars.iv131 = phi i64 [ 0, %.lr.ph94.preheader.new ], [ %indvars.iv.next132.1, %.lr.ph94 ]
  %niter182 = phi i64 [ 0, %.lr.ph94.preheader.new ], [ %niter182.next.1, %.lr.ph94 ]
  %202 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv131
  %203 = load i32, ptr %202, align 16, !tbaa !28
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %205, align 4, !tbaa !5
  %indvars.iv.next132 = or disjoint i64 %indvars.iv131, 1
  %208 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %indvars.iv.next132
  %209 = load i32, ptr %208, align 16, !tbaa !28
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %211, align 4, !tbaa !5
  %indvars.iv.next132.1 = add nuw nsw i64 %indvars.iv131, 2
  %niter182.next.1 = add i64 %niter182, 2
  %niter182.ncmp.1 = icmp eq i64 %niter182.next.1, %unroll_iter181
  br i1 %niter182.ncmp.1, label %.preheader62.loopexit.unr-lcssa, label %.lr.ph94, !llvm.loop !37

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph96, %.lr.ph96.preheader
  %.unr185 = phi i32 [ %.pre151, %.lr.ph96.preheader ], [ %232, %.lr.ph96 ]
  %indvars.iv136.unr = phi i64 [ 1, %.lr.ph96.preheader ], [ %indvars.iv.next137.3, %.lr.ph96 ]
  %lcmp.mod186.not = icmp eq i64 %xtraiter183, 0
  br i1 %lcmp.mod186.not, label %.preheader, label %.lr.ph96.epil

.lr.ph96.epil:                                    ; preds = %.preheader.loopexit.unr-lcssa, %.lr.ph96.epil
  %214 = phi i32 [ %217, %.lr.ph96.epil ], [ %.unr185, %.preheader.loopexit.unr-lcssa ]
  %indvars.iv136.epil = phi i64 [ %indvars.iv.next137.epil, %.lr.ph96.epil ], [ %indvars.iv136.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter184 = phi i64 [ %epil.iter184.next, %.lr.ph96.epil ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %215 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv136.epil
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = add nsw i32 %216, %214
  store i32 %217, ptr %215, align 4, !tbaa !5
  %indvars.iv.next137.epil = add nuw nsw i64 %indvars.iv136.epil, 1
  %epil.iter184.next = add i64 %epil.iter184, 1
  %epil.iter184.cmp.not = icmp eq i64 %epil.iter184.next, %xtraiter183
  br i1 %epil.iter184.cmp.not, label %.preheader, label %.lr.ph96.epil, !llvm.loop !38

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.lr.ph96.epil, %.preheader62
  br i1 %196, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %.preheader
  %218 = load ptr, ptr @ord2, align 8, !tbaa !34
  %wide.trip.count144 = zext nneg i32 %.lcssa153 to i64
  %xtraiter189 = and i64 %wide.trip.count144, 1
  %219 = icmp eq i32 %.lcssa153, 1
  br i1 %219, label %._crit_edge99.loopexit.unr-lcssa, label %.lr.ph98.new

.lr.ph98.new:                                     ; preds = %.lr.ph98
  %unroll_iter192 = and i64 %wide.trip.count144, 2147483646
  br label %244

.lr.ph96:                                         ; preds = %.lr.ph96, %.lr.ph96.preheader.new
  %220 = phi i32 [ %.pre151, %.lr.ph96.preheader.new ], [ %232, %.lr.ph96 ]
  %indvars.iv136 = phi i64 [ 1, %.lr.ph96.preheader.new ], [ %indvars.iv.next137.3, %.lr.ph96 ]
  %niter188 = phi i64 [ 0, %.lr.ph96.preheader.new ], [ %niter188.next.3, %.lr.ph96 ]
  %221 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv136
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = add nsw i32 %222, %220
  store i32 %223, ptr %221, align 4, !tbaa !5
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %224 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next137
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = add nsw i32 %225, %223
  store i32 %226, ptr %224, align 4, !tbaa !5
  %indvars.iv.next137.1 = add nuw nsw i64 %indvars.iv136, 2
  %227 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next137.1
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = add nsw i32 %228, %226
  store i32 %229, ptr %227, align 4, !tbaa !5
  %indvars.iv.next137.2 = add nuw nsw i64 %indvars.iv136, 3
  %230 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %indvars.iv.next137.2
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = add nsw i32 %231, %229
  store i32 %232, ptr %230, align 4, !tbaa !5
  %indvars.iv.next137.3 = add nuw nsw i64 %indvars.iv136, 4
  %niter188.next.3 = add i64 %niter188, 4
  %niter188.ncmp.3 = icmp eq i64 %niter188.next.3, %unroll_iter187
  br i1 %niter188.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %.lr.ph96, !llvm.loop !39

._crit_edge99.loopexit.unr-lcssa:                 ; preds = %244, %.lr.ph98
  %indvars.iv141.unr = phi i64 [ 0, %.lr.ph98 ], [ %indvars.iv.next142.1, %244 ]
  %lcmp.mod191.not = icmp eq i64 %xtraiter189, 0
  br i1 %lcmp.mod191.not, label %._crit_edge99, label %._crit_edge99.loopexit.epilog-lcssa

._crit_edge99.loopexit.epilog-lcssa:              ; preds = %._crit_edge99.loopexit.unr-lcssa
  %233 = getelementptr inbounds i32, ptr %218, i64 %indvars.iv141.unr
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %235
  %237 = load i32, ptr %236, align 16, !tbaa !28
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = add nsw i32 %240, -1
  store i32 %241, ptr %239, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %242
  store i32 %234, ptr %243, align 4, !tbaa !5
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %._crit_edge99.loopexit.epilog-lcssa, %._crit_edge99.loopexit.unr-lcssa, %.preheader
  ret void

244:                                              ; preds = %244, %.lr.ph98.new
  %indvars.iv141 = phi i64 [ 0, %.lr.ph98.new ], [ %indvars.iv.next142.1, %244 ]
  %niter193 = phi i64 [ 0, %.lr.ph98.new ], [ %niter193.next.1, %244 ]
  %245 = getelementptr inbounds i32, ptr %218, i64 %indvars.iv141
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %247
  %249 = load i32, ptr %248, align 16, !tbaa !28
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = add nsw i32 %252, -1
  store i32 %253, ptr %251, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %254
  store i32 %246, ptr %255, align 4, !tbaa !5
  %indvars.iv.next142 = or disjoint i64 %indvars.iv141, 1
  %256 = getelementptr inbounds i32, ptr %218, i64 %indvars.iv.next142
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [800005 x %struct.Event], ptr @eve, i64 0, i64 %258
  %260 = load i32, ptr %259, align 16, !tbaa !28
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [200001 x i32], ptr @ctr, i64 0, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = add nsw i32 %263, -1
  store i32 %264, ptr %262, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [1600009 x i32], ptr @ord, i64 0, i64 %265
  store i32 %257, ptr %266, align 4, !tbaa !5
  %indvars.iv.next142.1 = add nuw nsw i64 %indvars.iv141, 2
  %niter193.next.1 = add i64 %niter193, 2
  %niter193.ncmp.1 = icmp eq i64 %niter193.next.1, %unroll_iter192
  br i1 %niter193.ncmp.1, label %._crit_edge99.loopexit.unr-lcssa, label %244, !llvm.loop !40
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9addPointsii(i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { inlinehint mustprogress 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" }

!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++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"_ZTS5Event", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13}
!17 = !{!18, !6, i64 3200072}
!18 = !{!"_ZTS9HashTable", !7, i64 0, !7, i64 800004, !7, i64 1600008, !7, i64 2400012, !19, i64 3200016, !6, i64 3200072, !7, i64 3200076}
!19 = !{!"_ZTSSt13unordered_mapIxiSt4hashIxESt8equal_toIxESaISt4pairIKxiEEE", !20, i64 0}
!20 = !{!"_ZTSSt10_HashtableIxSt4pairIKxiESaIS2_ENSt8__detail10_Select1stESt8equal_toIxESt4hashIxENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !21, i64 0, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !21, i64 48}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !21, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !22, i64 8}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = !{!10, !6, i64 0}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = !{!10, !6, i64 12}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !15}
!34 = !{!21, !21, i64 0}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}
!37 = distinct !{!37, !13}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !13}
!40 = distinct !{!40, !13}


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