; LLVM IR from tangjz/acm-icpc :: hackerrank (iterate-it)

; 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.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [782 x i64] }

@sz = external dso_local global [2 x i32], align 4
@seq = external dso_local global [2 x [50001 x i32]], align 16
@cur = external dso_local global i32, align 4
@nxt = external dso_local global i32, align 4
@msk = external dso_local global [2 x %"class.std::bitset"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #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 i32, align 4
  %8 = alloca i8, align 1
  %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 = alloca i32, align 4
  %16 = alloca %"class.std::bitset", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %56, %0
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %59

26:                                               ; preds = %21
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %28 = load i32, ptr @cur, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %29
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %30, i64 noundef %32)
  br i1 %33, label %34, label %35

34:                                               ; preds = %26
  br label %56

35:                                               ; preds = %26
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = load i32, ptr @cur, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %38
  %40 = load i32, ptr @cur, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 4, !tbaa !5
  %45 = sext i32 %43 to i64
  %46 = getelementptr inbounds [50001 x i32], ptr %39, i64 0, i64 %45
  store i32 %36, ptr %46, align 4, !tbaa !5
  %47 = load i32, ptr @cur, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %48
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %49, i64 noundef %51, i1 noundef zeroext true)
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %53, i32 noundef %54)
  store i32 %55, ptr %4, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %35, %34
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %5, align 4, !tbaa !5
  br label %21, !llvm.loop !9

59:                                               ; preds = %25
  %60 = load i32, ptr @cur, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %61
  %63 = getelementptr inbounds [50001 x i32], ptr %62, i64 0, i64 0
  %64 = load i32, ptr @cur, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65
  %67 = getelementptr inbounds [50001 x i32], ptr %66, i64 0, i64 0
  %68 = load i32, ptr @cur, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %67, i64 %72
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef %63, ptr noundef %73)
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 1
  br i1 %75, label %76, label %108

76:                                               ; preds = %59
  %77 = load i32, ptr @cur, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %78
  %80 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %79) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %104, %76
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i32, ptr @cur, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp slt i32 %82, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %107

89:                                               ; preds = %81
  %90 = load i32, ptr @cur, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %91
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = load i32, ptr @cur, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %95
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [50001 x i32], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sdiv i32 %100, %93
  store i32 %101, ptr %99, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %92, i64 noundef %102, i1 noundef zeroext true)
  br label %104

104:                                              ; preds = %89
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !5
  br label %81, !llvm.loop !11

107:                                              ; preds = %88
  br label %108

108:                                              ; preds = %107, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %436, %108
  %110 = load i32, ptr @cur, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %115, label %437

115:                                              ; preds = %109
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %118, label %139

118:                                              ; preds = %115
  %119 = load i32, ptr @cur, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %120
  %122 = getelementptr inbounds [50001 x i32], ptr %121, i64 0, i64 0
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = icmp eq i32 %123, 1
  br i1 %124, label %125, label %139

125:                                              ; preds = %118
  %126 = load i32, ptr @cur, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %127
  %129 = load i32, ptr @cur, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [50001 x i32], ptr %128, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = add nsw i32 %137, %136
  store i32 %138, ptr %7, align 4, !tbaa !5
  br label %437

139:                                              ; preds = %118, %115
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %168, %139
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = load i32, ptr @cur, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = icmp slt i32 %141, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %140
  store i32 10, ptr %10, align 4
  br label %171

148:                                              ; preds = %140
  %149 = load i32, ptr @cur, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %150
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [50001 x i32], ptr %151, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = load i32, ptr @cur, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %157
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = sub nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [50001 x i32], ptr %158, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = sub nsw i32 %155, %163
  %165 = icmp eq i32 %164, 1
  br i1 %165, label %166, label %167

166:                                              ; preds = %148
  store i8 1, ptr %8, align 1, !tbaa !12
  store i32 10, ptr %10, align 4
  br label %171

167:                                              ; preds = %148
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %9, align 4, !tbaa !5
  br label %140, !llvm.loop !14

171:                                              ; preds = %166, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %172

172:                                              ; preds = %171
  %173 = load i8, ptr %8, align 1, !tbaa !12, !range !15, !noundef !16
  %174 = trunc i8 %173 to i1
  br i1 %174, label %175, label %196

175:                                              ; preds = %172
  %176 = load i32, ptr @cur, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %177
  %179 = load i32, ptr @cur, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sub nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [50001 x i32], ptr %178, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = load i32, ptr @cur, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %188
  %190 = getelementptr inbounds [50001 x i32], ptr %189, i64 0, i64 0
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = sub nsw i32 %186, %191
  %193 = add nsw i32 %192, 1
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = add nsw i32 %194, %193
  store i32 %195, ptr %7, align 4, !tbaa !5
  store i32 9, ptr %10, align 4
  br label %434

196:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  %197 = load i32, ptr @nxt, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %198
  store i32 0, ptr %199, align 4, !tbaa !5
  %200 = load i32, ptr @nxt, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %201
  %203 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %202) #6
  %204 = load i32, ptr @cur, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = shl i32 %207, 5
  %209 = load i32, ptr @cur, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %210
  %212 = load i32, ptr @cur, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = sub nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [50001 x i32], ptr %211, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = icmp slt i32 %208, %219
  br i1 %220, label %221, label %310

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

222:                                              ; preds = %292, %221
  %223 = load i32, ptr %12, align 4, !tbaa !5
  %224 = load i32, ptr @cur, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = icmp slt i32 %223, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %222
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %295

230:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %231 = load i32, ptr %12, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %13, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %288, %230
  %234 = load i32, ptr %13, align 4, !tbaa !5
  %235 = load i32, ptr @cur, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = icmp slt i32 %234, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %233
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %291

241:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %242 = load i32, ptr @cur, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %243
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [50001 x i32], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = load i32, ptr @cur, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %250
  %252 = load i32, ptr %12, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [50001 x i32], ptr %251, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = sub nsw i32 %248, %255
  store i32 %256, ptr %14, align 4, !tbaa !5
  %257 = load i32, ptr @nxt, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %258
  %260 = load i32, ptr %14, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %259, i64 noundef %261)
  br i1 %262, label %263, label %264

263:                                              ; preds = %241
  store i32 18, ptr %10, align 4
  br label %285

264:                                              ; preds = %241
  %265 = load i32, ptr %14, align 4, !tbaa !5
  %266 = load i32, ptr @nxt, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %267
  %269 = load i32, ptr @nxt, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %271, align 4, !tbaa !5
  %274 = sext i32 %272 to i64
  %275 = getelementptr inbounds [50001 x i32], ptr %268, i64 0, i64 %274
  store i32 %265, ptr %275, align 4, !tbaa !5
  %276 = load i32, ptr @nxt, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %277
  %279 = load i32, ptr %14, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %278, i64 noundef %280, i1 noundef zeroext true)
  %282 = load i32, ptr %11, align 4, !tbaa !5
  %283 = load i32, ptr %14, align 4, !tbaa !5
  %284 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %282, i32 noundef %283)
  store i32 %284, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %285

285:                                              ; preds = %264, %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %286 = load i32, ptr %10, align 4
  switch i32 %286, label %441 [
    i32 0, label %287
    i32 18, label %288
  ]

287:                                              ; preds = %285
  br label %288

288:                                              ; preds = %287, %285
  %289 = load i32, ptr %13, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %13, align 4, !tbaa !5
  br label %233, !llvm.loop !17

291:                                              ; preds = %240
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %12, align 4, !tbaa !5
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %12, align 4, !tbaa !5
  br label %222, !llvm.loop !18

295:                                              ; preds = %229
  %296 = load i32, ptr @nxt, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %297
  %299 = getelementptr inbounds [50001 x i32], ptr %298, i64 0, i64 0
  %300 = load i32, ptr @nxt, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %301
  %303 = getelementptr inbounds [50001 x i32], ptr %302, i64 0, i64 0
  %304 = load i32, ptr @nxt, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds i32, ptr %303, i64 %308
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef %299, ptr noundef %309)
  br label %392

310:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %335, %310
  %312 = load i32, ptr %15, align 4, !tbaa !5
  %313 = load i32, ptr @cur, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %314
  %316 = load i32, ptr %315, align 4, !tbaa !5
  %317 = icmp slt i32 %312, %316
  br i1 %317, label %319, label %318

318:                                              ; preds = %311
  store i32 19, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %338

319:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 6256, ptr %16) #6
  %320 = load i32, ptr @cur, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %321
  %323 = load i32, ptr @cur, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %324
  %326 = load i32, ptr %15, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [50001 x i32], ptr %325, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  call void @_ZNKSt6bitsetILm50001EErsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %16, ptr noundef nonnull align 8 dereferenceable(6256) %322, i64 noundef %330) #6
  %331 = load i32, ptr @nxt, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %332
  %334 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(6256) %333, ptr noundef nonnull align 8 dereferenceable(6256) %16) #6
  call void @llvm.lifetime.end.p0(i64 6256, ptr %16) #6
  br label %335

335:                                              ; preds = %319
  %336 = load i32, ptr %15, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %15, align 4, !tbaa !5
  br label %311, !llvm.loop !19

338:                                              ; preds = %318
  %339 = load i32, ptr @nxt, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %340
  %342 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEm(ptr noundef nonnull align 8 dereferenceable(6256) %341, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 1, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %343 = load i32, ptr @cur, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %344
  %346 = load i32, ptr @cur, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %350 = sub nsw i32 %349, 1
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [50001 x i32], ptr %345, i64 0, i64 %351
  %353 = load i32, ptr %352, align 4, !tbaa !5
  %354 = load i32, ptr @cur, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %355
  %357 = getelementptr inbounds [50001 x i32], ptr %356, i64 0, i64 0
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = sub nsw i32 %353, %358
  store i32 %359, ptr %18, align 4, !tbaa !5
  br label %360

360:                                              ; preds = %388, %338
  %361 = load i32, ptr %17, align 4, !tbaa !5
  %362 = load i32, ptr %18, align 4, !tbaa !5
  %363 = icmp sle i32 %361, %362
  br i1 %363, label %365, label %364

364:                                              ; preds = %360
  store i32 22, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %391

365:                                              ; preds = %360
  %366 = load i32, ptr @nxt, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %367
  %369 = load i32, ptr %17, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %368, i64 noundef %370)
  br i1 %371, label %372, label %387

372:                                              ; preds = %365
  %373 = load i32, ptr %17, align 4, !tbaa !5
  %374 = load i32, ptr @nxt, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %375
  %377 = load i32, ptr @nxt, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %378
  %380 = load i32, ptr %379, align 4, !tbaa !5
  %381 = add nsw i32 %380, 1
  store i32 %381, ptr %379, align 4, !tbaa !5
  %382 = sext i32 %380 to i64
  %383 = getelementptr inbounds [50001 x i32], ptr %376, i64 0, i64 %382
  store i32 %373, ptr %383, align 4, !tbaa !5
  %384 = load i32, ptr %11, align 4, !tbaa !5
  %385 = load i32, ptr %17, align 4, !tbaa !5
  %386 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %384, i32 noundef %385)
  store i32 %386, ptr %11, align 4, !tbaa !5
  br label %387

387:                                              ; preds = %372, %365
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %17, align 4, !tbaa !5
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %17, align 4, !tbaa !5
  br label %360, !llvm.loop !20

391:                                              ; preds = %364
  br label %392

392:                                              ; preds = %391, %295
  %393 = load i32, ptr %11, align 4, !tbaa !5
  %394 = icmp sgt i32 %393, 1
  br i1 %394, label %395, label %427

395:                                              ; preds = %392
  %396 = load i32, ptr @nxt, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %397
  %399 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %398) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %400

400:                                              ; preds = %423, %395
  %401 = load i32, ptr %19, align 4, !tbaa !5
  %402 = load i32, ptr @nxt, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !5
  %406 = icmp slt i32 %401, %405
  br i1 %406, label %408, label %407

407:                                              ; preds = %400
  store i32 25, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %426

408:                                              ; preds = %400
  %409 = load i32, ptr @nxt, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %410
  %412 = load i32, ptr %11, align 4, !tbaa !5
  %413 = load i32, ptr @nxt, align 4, !tbaa !5
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %414
  %416 = load i32, ptr %19, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds [50001 x i32], ptr %415, i64 0, i64 %417
  %419 = load i32, ptr %418, align 4, !tbaa !5
  %420 = sdiv i32 %419, %412
  store i32 %420, ptr %418, align 4, !tbaa !5
  %421 = sext i32 %420 to i64
  %422 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %411, i64 noundef %421, i1 noundef zeroext true)
  br label %423

423:                                              ; preds = %408
  %424 = load i32, ptr %19, align 4, !tbaa !5
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr %19, align 4, !tbaa !5
  br label %400, !llvm.loop !21

426:                                              ; preds = %407
  br label %427

427:                                              ; preds = %426, %392
  %428 = load i32, ptr @cur, align 4, !tbaa !5
  %429 = xor i32 %428, 1
  store i32 %429, ptr @cur, align 4, !tbaa !5
  %430 = load i32, ptr @nxt, align 4, !tbaa !5
  %431 = xor i32 %430, 1
  store i32 %431, ptr @nxt, align 4, !tbaa !5
  %432 = load i32, ptr %7, align 4, !tbaa !5
  %433 = add nsw i32 %432, 1
  store i32 %433, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  store i32 0, ptr %10, align 4
  br label %434

434:                                              ; preds = %427, %175
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %435 = load i32, ptr %10, align 4
  switch i32 %435, label %441 [
    i32 0, label %436
    i32 9, label %437
  ]

436:                                              ; preds = %434
  br label %109, !llvm.loop !22

437:                                              ; preds = %434, %125, %109
  %438 = load i32, ptr %7, align 4, !tbaa !5
  %439 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %438)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %440 = load i32, ptr %1, align 4
  ret i32 %440

441:                                              ; preds = %434, %285
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm50001EErsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(6256), ptr noundef nonnull align 8 dereferenceable(6256)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEm(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) #3 align 2

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

attributes #0 = { mustprogress norecurse 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 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


; 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.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [782 x i64] }

@sz = external dso_local local_unnamed_addr global [2 x i32], align 4
@seq = external dso_local global [2 x [50001 x i32]], align 16
@cur = external dso_local local_unnamed_addr global i32, align 4
@nxt = external dso_local local_unnamed_addr global i32, align 4
@msk = external dso_local global [2 x %"class.std::bitset"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::bitset", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %0
  %.049.lcssa = phi i32 [ 0, %0 ], [ %.1, %37 ]
  %7 = load i32, ptr @cur, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %8
  %10 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %8
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds i32, ptr %9, i64 %12
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull %9, ptr noundef nonnull %13)
  %14 = icmp sgt i32 %.049.lcssa, 1
  %.pre = load i32, ptr @cur, align 4, !tbaa !5
  %15 = sext i32 %.pre to i64
  br i1 %14, label %41, label %._crit_edge..loopexit72_crit_edge

._crit_edge..loopexit72_crit_edge:                ; preds = %._crit_edge
  %.phi.trans.insert144 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %15
  %.pre145 = load i32, ptr %.phi.trans.insert144, align 4, !tbaa !5
  br label %.loopexit72

.lr.ph:                                           ; preds = %0, %37
  %.04981 = phi i32 [ %.1, %37 ], [ 0, %0 ]
  %.06180 = phi i32 [ %38, %37 ], [ 0, %0 ]
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %17 = load i32, ptr @cur, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %18
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %19, i64 noundef %21)
  br i1 %22, label %37, label %23

23:                                               ; preds = %.lr.ph
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr @cur, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %27, align 4, !tbaa !5
  %30 = sext i32 %28 to i64
  %31 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %26, i64 %30
  store i32 %24, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %26
  %33 = sext i32 %24 to i64
  %34 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %32, i64 noundef %33, i1 noundef zeroext true)
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %.04981, i32 noundef %35)
  br label %37

37:                                               ; preds = %.lr.ph, %23
  %.1 = phi i32 [ %.04981, %.lr.ph ], [ %36, %23 ]
  %38 = add nuw nsw i32 %.06180, 1
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !9

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %15
  %43 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %42) #6
  %44 = load i32, ptr @cur, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph84, label %.loopexit72.thread

.loopexit72.thread:                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  br label %.loopexit71

.lr.ph84:                                         ; preds = %41, %.lr.ph84
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph84 ], [ 0, %41 ]
  %49 = phi i64 [ %57, %.lr.ph84 ], [ %45, %41 ]
  %50 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %49
  %51 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %49, i64 %indvars.iv
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sdiv i32 %52, %.049.lcssa
  store i32 %53, ptr %51, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %50, i64 noundef %54, i1 noundef zeroext true)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = load i32, ptr @cur, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next, %60
  br i1 %61, label %.lr.ph84, label %.loopexit72, !llvm.loop !11

.loopexit72:                                      ; preds = %.lr.ph84, %._crit_edge..loopexit72_crit_edge
  %.pre-phi = phi i64 [ %15, %._crit_edge..loopexit72_crit_edge ], [ %57, %.lr.ph84 ]
  %62 = phi i32 [ %.pre145, %._crit_edge..loopexit72_crit_edge ], [ %59, %.lr.ph84 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.lr.ph112, label %.loopexit71

.lr.ph112:                                        ; preds = %.loopexit72, %.loopexit68
  %64 = phi i32 [ %224, %.loopexit68 ], [ %62, %.loopexit72 ]
  %65 = phi i64 [ %222, %.loopexit68 ], [ %.pre-phi, %.loopexit72 ]
  %.057110 = phi i32 [ %.158, %.loopexit68 ], [ 0, %.loopexit72 ]
  %.not67 = icmp eq i32 %.057110, 0
  br i1 %.not67, label %76, label %66

66:                                               ; preds = %.lr.ph112
  %67 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %76

70:                                               ; preds = %66
  %71 = add nsw i32 %64, -1
  %72 = zext nneg i32 %71 to i64
  %73 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = add nsw i32 %74, %.057110
  br label %.loopexit71

76:                                               ; preds = %66, %.lr.ph112
  %77 = icmp ugt i32 %64, 1
  br i1 %77, label %.lr.ph87.preheader, label %.critedge

.lr.ph87.preheader:                               ; preds = %76
  %wide.trip.count = zext nneg i32 %64 to i64
  %.phi.trans.insert146 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65, i64 0
  %.pre147 = load i32, ptr %.phi.trans.insert146, align 4, !tbaa !5
  br label %.lr.ph87

78:                                               ; preds = %.lr.ph87
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph87, !llvm.loop !12

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %78
  %79 = phi i32 [ %.pre147, %.lr.ph87.preheader ], [ %81, %78 ]
  %indvars.iv122 = phi i64 [ 1, %.lr.ph87.preheader ], [ %indvars.iv.next123, %78 ]
  %80 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65, i64 %indvars.iv122
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sub nsw i32 %81, %79
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %.thread, label %78

.thread:                                          ; preds = %.lr.ph87
  %84 = add nsw i32 %64, -1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %65, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = add nuw i32 %.057110, 1
  %89 = add i32 %88, %87
  %.15865 = sub i32 %89, %.pre147
  br label %.loopexit71

.critedge:                                        ; preds = %78, %76
  %90 = load i32, ptr @nxt, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %91
  store i32 0, ptr %92, align 4, !tbaa !5
  %93 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %91
  %94 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %93) #6
  %95 = load i32, ptr @cur, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = shl i32 %98, 5
  %100 = add nsw i32 %98, -1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %96, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp slt i32 %99, %103
  %105 = icmp sgt i32 %98, 0
  br i1 %104, label %.preheader, label %.preheader70

.preheader70:                                     ; preds = %.critedge
  br i1 %105, label %.lr.ph89, label %._crit_edge90

.preheader:                                       ; preds = %.critedge
  br i1 %105, label %.lr.ph104, label %._crit_edge105

.loopexit.loopexit:                               ; preds = %142
  %.pre155 = sext i32 %146 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph104, %.loopexit.loopexit
  %.pre-phi156 = phi i64 [ %.pre155, %.loopexit.loopexit ], [ %116, %.lr.ph104 ]
  %.pre150153 = phi i32 [ %146, %.loopexit.loopexit ], [ %.pre150, %.lr.ph104 ]
  %106 = phi i32 [ %143, %.loopexit.loopexit ], [ %115, %.lr.ph104 ]
  %.153.lcssa = phi i32 [ %.2, %.loopexit.loopexit ], [ %.052102, %.lr.ph104 ]
  %107 = icmp slt i64 %indvars.iv.next139, %.pre-phi156
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  br i1 %107, label %.lr.ph104, label %._crit_edge105, !llvm.loop !13

._crit_edge105:                                   ; preds = %.loopexit, %.preheader
  %.052.lcssa = phi i32 [ 0, %.preheader ], [ %.153.lcssa, %.loopexit ]
  %108 = load i32, ptr @nxt, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %109
  %111 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %109
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %110, i64 %113
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull %110, ptr noundef nonnull %114)
  br label %.loopexit69

.lr.ph104:                                        ; preds = %.preheader, %.loopexit
  %.pre150 = phi i32 [ %.pre150153, %.loopexit ], [ %98, %.preheader ]
  %115 = phi i32 [ %106, %.loopexit ], [ %95, %.preheader ]
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %.loopexit ], [ 0, %.preheader ]
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.loopexit ], [ 1, %.preheader ]
  %.052102 = phi i32 [ %.153.lcssa, %.loopexit ], [ 0, %.preheader ]
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %116 = sext i32 %.pre150 to i64
  %117 = icmp slt i64 %indvars.iv.next139, %116
  br i1 %117, label %.lr.ph100, label %.loopexit

.lr.ph100:                                        ; preds = %.lr.ph104
  %118 = sext i32 %115 to i64
  br label %119

119:                                              ; preds = %.lr.ph100, %142
  %indvars.iv135 = phi i64 [ %indvars.iv133, %.lr.ph100 ], [ %indvars.iv.next136, %142 ]
  %120 = phi i64 [ %118, %.lr.ph100 ], [ %144, %142 ]
  %.15397 = phi i32 [ %.052102, %.lr.ph100 ], [ %.2, %142 ]
  %121 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %120, i64 %indvars.iv135
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %120, i64 %indvars.iv138
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sub nsw i32 %122, %124
  %126 = load i32, ptr @nxt, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %127
  %129 = sext i32 %125 to i64
  %130 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %128, i64 noundef %129)
  br i1 %130, label %142, label %131

131:                                              ; preds = %119
  %132 = load i32, ptr @nxt, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [2 x i32], ptr @sz, 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
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %133, i64 %137
  store i32 %125, ptr %138, align 4, !tbaa !5
  %139 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %133
  %140 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %139, i64 noundef %129, i1 noundef zeroext true)
  %141 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %.15397, i32 noundef %125)
  br label %142

142:                                              ; preds = %119, %131
  %.2 = phi i32 [ %141, %131 ], [ %.15397, %119 ]
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %143 = load i32, ptr @cur, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = trunc nuw i64 %indvars.iv.next136 to i32
  %148 = icmp sgt i32 %146, %147
  br i1 %148, label %119, label %.loopexit.loopexit, !llvm.loop !14

._crit_edge90:                                    ; preds = %.lr.ph89, %.preheader70
  %149 = load i32, ptr @nxt, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %150
  %152 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEm(ptr noundef nonnull align 8 dereferenceable(6256) %151, i64 noundef 0)
  %153 = load i32, ptr @cur, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %154
  %156 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %154
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %154, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr %155, align 4, !tbaa !5
  %.not91.not = icmp sgt i32 %161, %162
  br i1 %.not91.not, label %.lr.ph95.preheader, label %.loopexit69.thread

.loopexit69.thread:                               ; preds = %._crit_edge90
  %.pre151159 = load i32, ptr @nxt, align 4, !tbaa !5
  br label %.loopexit68

.lr.ph95.preheader:                               ; preds = %._crit_edge90
  %163 = add i32 %161, 1
  %164 = sub i32 %163, %162
  %wide.trip.count131 = zext i32 %164 to i64
  br label %.lr.ph95

.lr.ph89:                                         ; preds = %.preheader70, %.lr.ph89
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph89 ], [ 0, %.preheader70 ]
  %165 = phi i64 [ %175, %.lr.ph89 ], [ %96, %.preheader70 ]
  call void @llvm.lifetime.start.p0(i64 6256, ptr nonnull %3) #6
  %166 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %165
  %167 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %165, i64 %indvars.iv125
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  call void @_ZNKSt6bitsetILm50001EErsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %3, ptr noundef nonnull align 8 dereferenceable(6256) %166, i64 noundef %169) #6
  %170 = load i32, ptr @nxt, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %171
  %173 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(6256) %172, ptr noundef nonnull align 8 dereferenceable(6256) %3) #6
  call void @llvm.lifetime.end.p0(i64 6256, ptr nonnull %3) #6
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %174 = load i32, ptr @cur, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = icmp slt i64 %indvars.iv.next126, %178
  br i1 %179, label %.lr.ph89, label %._crit_edge90, !llvm.loop !15

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %194
  %indvars.iv128 = phi i64 [ 1, %.lr.ph95.preheader ], [ %indvars.iv.next129, %194 ]
  %.392 = phi i32 [ 0, %.lr.ph95.preheader ], [ %.4, %194 ]
  %180 = load i32, ptr @nxt, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %181
  %183 = call noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256) %182, i64 noundef %indvars.iv128)
  br i1 %183, label %184, label %194

184:                                              ; preds = %.lr.ph95
  %185 = load i32, ptr @nxt, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %187, align 4, !tbaa !5
  %190 = sext i32 %188 to i64
  %191 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %186, i64 %190
  %192 = trunc nuw nsw i64 %indvars.iv128 to i32
  store i32 %192, ptr %191, align 4, !tbaa !5
  %193 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %.392, i32 noundef %192)
  br label %194

194:                                              ; preds = %.lr.ph95, %184
  %.4 = phi i32 [ %193, %184 ], [ %.392, %.lr.ph95 ]
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next129, %wide.trip.count131
  br i1 %exitcond132.not, label %.loopexit69, label %.lr.ph95, !llvm.loop !16

.loopexit69:                                      ; preds = %194, %._crit_edge105
  %.5 = phi i32 [ %.052.lcssa, %._crit_edge105 ], [ %.4, %194 ]
  %195 = icmp sgt i32 %.5, 1
  %.pre151 = load i32, ptr @nxt, align 4, !tbaa !5
  br i1 %195, label %196, label %.loopexit68

196:                                              ; preds = %.loopexit69
  %197 = sext i32 %.pre151 to i64
  %198 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %197
  %199 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256) %198) #6
  %200 = load i32, ptr @nxt, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %.lr.ph109, label %.loopexit68

.lr.ph109:                                        ; preds = %196, %.lr.ph109
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %.lr.ph109 ], [ 0, %196 ]
  %205 = phi i64 [ %213, %.lr.ph109 ], [ %201, %196 ]
  %206 = getelementptr inbounds [2 x %"class.std::bitset"], ptr @msk, i64 0, i64 %205
  %207 = getelementptr inbounds [2 x [50001 x i32]], ptr @seq, i64 0, i64 %205, i64 %indvars.iv141
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = sdiv i32 %208, %.5
  store i32 %209, ptr %207, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256) %206, i64 noundef %210, i1 noundef zeroext true)
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %212 = load i32, ptr @nxt, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = icmp slt i64 %indvars.iv.next142, %216
  br i1 %217, label %.lr.ph109, label %.loopexit68, !llvm.loop !17

.loopexit68:                                      ; preds = %.lr.ph109, %.loopexit69.thread, %196, %.loopexit69
  %218 = phi i32 [ %200, %196 ], [ %.pre151, %.loopexit69 ], [ %.pre151159, %.loopexit69.thread ], [ %212, %.lr.ph109 ]
  %219 = load i32, ptr @cur, align 4, !tbaa !5
  %220 = xor i32 %219, 1
  store i32 %220, ptr @cur, align 4, !tbaa !5
  %221 = xor i32 %218, 1
  store i32 %221, ptr @nxt, align 4, !tbaa !5
  %.158 = add nuw nsw i32 %.057110, 1
  %222 = sext i32 %220 to i64
  %223 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = icmp sgt i32 %224, 0
  br i1 %225, label %.lr.ph112, label %.loopexit71

.loopexit71:                                      ; preds = %.loopexit68, %.loopexit72.thread, %.loopexit72, %.thread, %70
  %.259 = phi i32 [ %75, %70 ], [ %.15865, %.thread ], [ 0, %.loopexit72 ], [ 0, %.loopexit72.thread ], [ %.158, %.loopexit68 ]
  %226 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.259)
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm50001EE4testEm(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE3setEmb(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEv(ptr noundef nonnull align 8 dereferenceable(6256)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm50001EErsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(6256), ptr noundef nonnull align 8 dereferenceable(6256)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(6256) ptr @_ZNSt6bitsetILm50001EE5resetEm(ptr noundef nonnull align 8 dereferenceable(6256), i64 noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress norecurse 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 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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