; LLVM IR from tangjz/acm-icpc :: hdu (4769)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Bitset = type { i32, [10 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@rcnt = external dso_local global i32, align 4
@lbt = external dso_local global [65537 x i32], align 16
@tim = external dso_local global [601 x i32], align 16
@per = external dso_local global [601 x i32], align 16
@lim = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@vis = external dso_local global [11 x [7 x i8]], align 16
@curC = external dso_local global [61 x %struct.Bitset], align 16
@a = external dso_local global [11 x [7 x %struct.Bitset]], align 16
@row = external dso_local global [601 x %struct.Bitset], align 16
@col = external dso_local global [201 x %struct.Bitset], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checkb(i1 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bitset4testEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #2 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %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 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 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.Bitset, align 8
  %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) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %20

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

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %44

24:                                               ; preds = %20
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = and i32 %25, 1
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  br label %36

29:                                               ; preds = %24
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = ashr i32 %30, 1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [65537 x i32], ptr @lbt, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  br label %36

36:                                               ; preds = %29, %28
  %37 = phi i32 [ 0, %28 ], [ %35, %29 ]
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [65537 x i32], ptr @lbt, i64 0, i64 %39
  store i32 %37, ptr %40, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %36
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !9

44:                                               ; preds = %23
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %46

46:                                               ; preds = %339, %44
  %47 = load i32, ptr @t, align 4, !tbaa !5
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr @t, align 4, !tbaa !5
  %49 = icmp ne i32 %47, 0
  br i1 %49, label %50, label %340

50:                                               ; preds = %46
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %171, %50
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %174

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %69, %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 7
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %72

62:                                               ; preds = %58
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %64
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [7 x i8], ptr %65, i64 0, i64 %67
  store i8 0, ptr %68, align 1, !tbaa !11
  br label %69

69:                                               ; preds = %62
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !5
  br label %58, !llvm.loop !13

72:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %73 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %7)
  br label %74

74:                                               ; preds = %136, %72
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %7, align 4, !tbaa !5
  %77 = icmp ne i32 %75, 0
  br i1 %77, label %78, label %137

78:                                               ; preds = %74
  %79 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %8)
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %81 = load i32, ptr %80, align 4, !tbaa !5
  store i32 %81, ptr %3, align 4, !tbaa !5
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %83
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [7 x i8], ptr %84, i64 0, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !11, !range !14, !noundef !15
  %89 = trunc i8 %88 to i1
  br i1 %89, label %114, label %90

90:                                               ; preds = %78
  %91 = load i32, ptr %4, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %92
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [7 x i8], ptr %93, i64 0, i64 %95
  store i8 1, ptr %96, align 1, !tbaa !11
  %97 = load i32, ptr @m, align 4, !tbaa !5
  %98 = sub nsw i32 %97, 1
  %99 = ashr i32 %98, 6
  %100 = add nsw i32 %99, 1
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %102
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [7 x %struct.Bitset], ptr %103, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.Bitset, ptr %106, i32 0, i32 0
  store i32 %100, ptr %107, align 8, !tbaa !16
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %109
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [7 x %struct.Bitset], ptr %110, i64 0, i64 %112
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %113)
  br label %114

114:                                              ; preds = %90, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %133, %114
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = load i32, ptr @m, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 15, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %136

120:                                              ; preds = %115
  %121 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %9)
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %132

124:                                              ; preds = %120
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %126
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [7 x %struct.Bitset], ptr %127, i64 0, i64 %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) %130, i32 noundef %131)
  br label %132

132:                                              ; preds = %124, %120
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !5
  br label %115, !llvm.loop !18

136:                                              ; preds = %119
  br label %74, !llvm.loop !19

137:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %167, %137
  %139 = load i32, ptr %11, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 7
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  store i32 18, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %170

142:                                              ; preds = %138
  %143 = load i32, ptr %4, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %144
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [7 x i8], ptr %145, i64 0, i64 %147
  %149 = load i8, ptr %148, align 1, !tbaa !11, !range !14, !noundef !15
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %166

151:                                              ; preds = %142
  %152 = load i32, ptr %4, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %153
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [7 x %struct.Bitset], ptr %154, i64 0, i64 %156
  %158 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %157)
  br i1 %158, label %159, label %166

159:                                              ; preds = %151
  %160 = load i32, ptr %4, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %161
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [7 x i8], ptr %162, i64 0, i64 %164
  store i8 0, ptr %165, align 1, !tbaa !11
  br label %166

166:                                              ; preds = %159, %151, %142
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %11, align 4, !tbaa !5
  br label %138, !llvm.loop !20

170:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %4, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %4, align 4, !tbaa !5
  br label %52, !llvm.loop !21

174:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = load i32, ptr %3, align 4, !tbaa !5
  %178 = mul nsw i32 %176, %177
  store i32 %178, ptr %13, align 4, !tbaa !5
  store i32 0, ptr @rcnt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %258, %174
  %180 = load i32, ptr %14, align 4, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = icmp sle i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 21, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %261

184:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %254, %184
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = load i32, ptr @n, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 24, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %257

190:                                              ; preds = %185
  %191 = load i32, ptr @m, align 4, !tbaa !5
  %192 = sub nsw i32 %191, 1
  %193 = ashr i32 %192, 6
  %194 = add nsw i32 %193, 1
  %195 = load i32, ptr @rcnt, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %196
  %198 = getelementptr inbounds %struct.Bitset, ptr %197, i32 0, i32 0
  store i32 %194, ptr %198, align 8, !tbaa !16
  %199 = load i32, ptr @rcnt, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %200
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %201)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %234, %190
  %203 = load i32, ptr %16, align 4, !tbaa !5
  %204 = icmp slt i32 %203, 7
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  store i32 27, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %237

206:                                              ; preds = %202
  %207 = load i32, ptr %14, align 4, !tbaa !5
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = srem i32 %207, %208
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %233

211:                                              ; preds = %206
  %212 = load i32, ptr %15, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %213
  %215 = load i32, ptr %16, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [7 x i8], ptr %214, i64 0, i64 %216
  %218 = load i8, ptr %217, align 1, !tbaa !11, !range !14, !noundef !15
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %233

220:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 88, ptr %17) #7
  %221 = load i32, ptr @rcnt, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %222
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %225
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [7 x %struct.Bitset], ptr %226, i64 0, i64 %228
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind writable sret(%struct.Bitset) align 8 %17, ptr noundef nonnull align 8 dereferenceable(88) %223, ptr noundef nonnull align 8 dereferenceable(88) %229)
  %230 = load i32, ptr @rcnt, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %231
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %232, ptr align 8 %17, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #7
  br label %233

233:                                              ; preds = %220, %211, %206
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %16, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %16, align 4, !tbaa !5
  br label %202, !llvm.loop !24

237:                                              ; preds = %205
  %238 = load i32, ptr @rcnt, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %239
  %241 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %240)
  br i1 %241, label %253, label %242

242:                                              ; preds = %237
  %243 = load i32, ptr %14, align 4, !tbaa !5
  %244 = load i32, ptr @rcnt, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [601 x i32], ptr @tim, i64 0, i64 %245
  store i32 %243, ptr %246, align 4, !tbaa !5
  %247 = load i32, ptr %15, align 4, !tbaa !5
  %248 = load i32, ptr @rcnt, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [601 x i32], ptr @per, i64 0, i64 %249
  store i32 %247, ptr %250, align 4, !tbaa !5
  %251 = load i32, ptr @rcnt, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr @rcnt, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %242, %237
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %15, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %15, align 4, !tbaa !5
  br label %185, !llvm.loop !25

257:                                              ; preds = %189
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %14, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %14, align 4, !tbaa !5
  br label %179, !llvm.loop !26

261:                                              ; preds = %183
  %262 = load i32, ptr %13, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  %264 = load i32, ptr @rcnt, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [601 x i32], ptr @tim, i64 0, i64 %265
  store i32 %263, ptr %266, align 4, !tbaa !5
  %267 = load i32, ptr @m, align 4, !tbaa !5
  %268 = sub nsw i32 %267, 1
  %269 = ashr i32 %268, 6
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr @curC, align 16, !tbaa !16
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) @curC)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %310, %261
  %272 = load i32, ptr %18, align 4, !tbaa !5
  %273 = load i32, ptr @m, align 4, !tbaa !5
  %274 = icmp slt i32 %272, %273
  br i1 %274, label %276, label %275

275:                                              ; preds = %271
  store i32 30, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %313

276:                                              ; preds = %271
  %277 = load i32, ptr %18, align 4, !tbaa !5
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) @curC, i32 noundef %277)
  %278 = load i32, ptr @rcnt, align 4, !tbaa !5
  %279 = sub nsw i32 %278, 1
  %280 = ashr i32 %279, 6
  %281 = add nsw i32 %280, 1
  %282 = load i32, ptr %18, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [201 x %struct.Bitset], ptr @col, i64 0, i64 %283
  %285 = getelementptr inbounds %struct.Bitset, ptr %284, i32 0, i32 0
  store i32 %281, ptr %285, align 8, !tbaa !16
  %286 = load i32, ptr %18, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [201 x %struct.Bitset], ptr @col, i64 0, i64 %287
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %288)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %306, %276
  %290 = load i32, ptr %19, align 4, !tbaa !5
  %291 = load i32, ptr @rcnt, align 4, !tbaa !5
  %292 = icmp slt i32 %290, %291
  br i1 %292, label %294, label %293

293:                                              ; preds = %289
  store i32 33, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %309

294:                                              ; preds = %289
  %295 = load i32, ptr %19, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %296
  %298 = load i32, ptr %18, align 4, !tbaa !5
  %299 = call noundef zeroext i1 @_ZNK6Bitset4testEi(ptr noundef nonnull align 8 dereferenceable(88) %297, i32 noundef %298)
  br i1 %299, label %300, label %305

300:                                              ; preds = %294
  %301 = load i32, ptr %18, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [201 x %struct.Bitset], ptr @col, i64 0, i64 %302
  %304 = load i32, ptr %19, align 4, !tbaa !5
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) %303, i32 noundef %304)
  br label %305

305:                                              ; preds = %300, %294
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %19, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %19, align 4, !tbaa !5
  br label %289, !llvm.loop !27

309:                                              ; preds = %293
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %18, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %18, align 4, !tbaa !5
  br label %271, !llvm.loop !28

313:                                              ; preds = %275
  br label %314

314:                                              ; preds = %329, %313
  %315 = load i32, ptr %12, align 4, !tbaa !5
  %316 = load i32, ptr %13, align 4, !tbaa !5
  %317 = icmp slt i32 %315, %316
  br i1 %317, label %318, label %330

318:                                              ; preds = %314
  %319 = load i32, ptr %12, align 4, !tbaa !5
  %320 = load i32, ptr %13, align 4, !tbaa !5
  %321 = add nsw i32 %319, %320
  %322 = ashr i32 %321, 1
  store i32 %322, ptr @lim, align 4, !tbaa !5
  %323 = call noundef zeroext i1 @_Z5checkb(i1 noundef zeroext false)
  br i1 %323, label %324, label %326

324:                                              ; preds = %318
  %325 = load i32, ptr @lim, align 4, !tbaa !5
  store i32 %325, ptr %13, align 4, !tbaa !5
  br label %329

326:                                              ; preds = %318
  %327 = load i32, ptr @lim, align 4, !tbaa !5
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %12, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %326, %324
  br label %314, !llvm.loop !29

330:                                              ; preds = %314
  %331 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %331, ptr @lim, align 4, !tbaa !5
  %332 = call noundef zeroext i1 @_Z5checkb(i1 noundef zeroext true)
  br i1 %332, label %333, label %337

333:                                              ; preds = %330
  %334 = load i32, ptr @lim, align 4, !tbaa !5
  %335 = load i32, ptr @ans, align 4, !tbaa !5
  %336 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %334, i32 noundef %335)
  br label %339

337:                                              ; preds = %330
  %338 = call i32 @puts(ptr noundef @.str.3)
  br label %339

339:                                              ; preds = %337, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %46, !llvm.loop !30

340:                                              ; preds = %46
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BitsetorERKS_(ptr dead_on_unwind noalias writable sret(%struct.Bitset) align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

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

declare i32 @puts(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS6Bitset", !6, i64 0, !7, i64 8}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{i64 0, i64 4, !5, i64 8, i64 80, !23}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !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"

%struct.Bitset = type { i32, [10 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@rcnt = external dso_local local_unnamed_addr global i32, align 4
@lbt = external dso_local local_unnamed_addr global [65537 x i32], align 16
@tim = external dso_local local_unnamed_addr global [601 x i32], align 16
@per = external dso_local local_unnamed_addr global [601 x i32], align 16
@lim = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@vis = external dso_local local_unnamed_addr global [11 x [7 x i8]], align 16
@curC = external dso_local global [61 x %struct.Bitset], align 16
@a = external dso_local global [11 x [7 x %struct.Bitset]], align 16
@row = external dso_local global [601 x %struct.Bitset], align 16
@col = external dso_local global [201 x %struct.Bitset], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checkb(i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6Bitset4testEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Bitset, align 8
  br label %10

6:                                                ; preds = %10
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %8 = load i32, ptr @t, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  store i32 %9, ptr @t, align 4, !tbaa !5
  %.not104 = icmp eq i32 %8, 0
  br i1 %.not104, label %._crit_edge107, label %.lr.ph106

10:                                               ; preds = %10, %0
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next.1, %10 ]
  %11 = getelementptr inbounds [65537 x i32], ptr @lbt, i64 0, i64 %indvars.iv
  store i32 0, ptr %11, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %12 = lshr exact i64 %indvars.iv.next, 1
  %13 = getelementptr inbounds [65537 x i32], ptr @lbt, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  %16 = getelementptr inbounds [65537 x i32], ptr @lbt, i64 0, i64 %indvars.iv.next
  store i32 %15, ptr %16, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 65537
  br i1 %exitcond.not.1, label %6, label %10, !llvm.loop !9

.lr.ph106:                                        ; preds = %6, %266
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader77, label %._crit_edge

.preheader77:                                     ; preds = %.lr.ph106, %106
  %indvar = phi i64 [ %indvar.next, %106 ], [ 0, %.lr.ph106 ]
  %20 = mul nuw nsw i64 %indvar, 7
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @vis, i64 1), i64 %20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %gep, i8 0, i64 6, i1 false), !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr %2, align 4, !tbaa !5
  %.not7382 = icmp eq i32 %22, 0
  br i1 %.not7382, label %.preheader76, label %.lr.ph83

._crit_edge:                                      ; preds = %106, %.lr.ph106
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = mul nsw i32 %26, %25
  store i32 0, ptr @rcnt, align 4, !tbaa !5
  %.not7290 = icmp sgt i32 %27, 0
  %28 = load i32, ptr @n, align 4
  %29 = icmp sgt i32 %28, 0
  %or.cond = select i1 %.not7290, i1 %29, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge92

.loopexit:                                        ; preds = %58, %49
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %2, align 4, !tbaa !5
  %.not73 = icmp eq i32 %30, 0
  br i1 %.not73, label %.preheader76, label %.lr.ph83, !llvm.loop !13

.preheader76:                                     ; preds = %.loopexit, %.preheader77
  %32 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 1
  %33 = load i8, ptr %32, align 1, !tbaa !11, !range !14, !noundef !15
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %62, label %66

.lr.ph83:                                         ; preds = %.preheader77, %.loopexit
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %37 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %37, ptr %1, align 4, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !11, !range !14, !noundef !15
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %49, label %43

43:                                               ; preds = %.lr.ph83
  store i8 1, ptr %40, align 1, !tbaa !11
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  %46 = ashr i32 %45, 6
  %47 = add nsw i32 %46, 1
  %48 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 %39
  store i32 %47, ptr %48, align 8, !tbaa !16
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %48)
  br label %49

49:                                               ; preds = %43, %.lr.ph83
  %50 = load i32, ptr @m, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %49, %58
  %.06781 = phi i32 [ %59, %58 ], [ 0, %49 ]
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %.not74 = icmp eq i32 %53, 0
  br i1 %.not74, label %58, label %54

54:                                               ; preds = %.lr.ph
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 %56
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) %57, i32 noundef %.06781)
  br label %58

58:                                               ; preds = %.lr.ph, %54
  %59 = add nuw nsw i32 %.06781, 1
  %60 = load i32, ptr @m, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %.lr.ph, label %.loopexit, !llvm.loop !18

62:                                               ; preds = %.preheader76
  %63 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 1
  %64 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %63)
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  store i8 0, ptr %32, align 1, !tbaa !11
  br label %66

66:                                               ; preds = %.preheader76, %62, %65
  %67 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 2
  %68 = load i8, ptr %67, align 1, !tbaa !11, !range !14, !noundef !15
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %70, label %74

70:                                               ; preds = %66
  %71 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 2
  %72 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %71)
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i8 0, ptr %67, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %73, %70, %66
  %75 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 3
  %76 = load i8, ptr %75, align 1, !tbaa !11, !range !14, !noundef !15
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %78, label %82

78:                                               ; preds = %74
  %79 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 3
  %80 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %79)
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i8 0, ptr %75, align 1, !tbaa !11
  br label %82

82:                                               ; preds = %81, %78, %74
  %83 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 4
  %84 = load i8, ptr %83, align 1, !tbaa !11, !range !14, !noundef !15
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %86, label %90

86:                                               ; preds = %82
  %87 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 4
  %88 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %87)
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  store i8 0, ptr %83, align 1, !tbaa !11
  br label %90

90:                                               ; preds = %89, %86, %82
  %91 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 5
  %92 = load i8, ptr %91, align 1, !tbaa !11, !range !14, !noundef !15
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %94, label %98

94:                                               ; preds = %90
  %95 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 5
  %96 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %95)
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i8 0, ptr %91, align 1, !tbaa !11
  br label %98

98:                                               ; preds = %97, %94, %90
  %99 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvar, i64 6
  %100 = load i8, ptr %99, align 1, !tbaa !11, !range !14, !noundef !15
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %102, label %106

102:                                              ; preds = %98
  %103 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvar, i64 6
  %104 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %103)
  br i1 %104, label %105, label %106

105:                                              ; preds = %102
  store i8 0, ptr %99, align 1, !tbaa !11
  br label %106

106:                                              ; preds = %105, %102, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %indvar.next = add nuw nsw i64 %indvar, 1
  %107 = load i32, ptr @n, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = icmp slt i64 %indvar.next, %108
  br i1 %109, label %.preheader77, label %._crit_edge, !llvm.loop !19

.preheader:                                       ; preds = %._crit_edge, %._crit_edge89
  %110 = phi i32 [ %132, %._crit_edge89 ], [ %28, %._crit_edge ]
  %.06291 = phi i32 [ %133, %._crit_edge89 ], [ 1, %._crit_edge ]
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %.lr.ph88.preheader, label %._crit_edge89

.lr.ph88.preheader:                               ; preds = %.preheader
  %112 = and i32 %.06291, 1
  %113 = icmp eq i32 %112, 0
  %114 = urem i32 %.06291, 3
  %115 = icmp eq i32 %114, 0
  %116 = and i32 %.06291, 3
  %117 = icmp eq i32 %116, 0
  %118 = urem i32 %.06291, 5
  %119 = icmp eq i32 %118, 0
  %120 = urem i32 %.06291, 6
  %121 = icmp eq i32 %120, 0
  br label %134

._crit_edge92.loopexit:                           ; preds = %._crit_edge89
  %.pre134 = load i32, ptr @rcnt, align 4, !tbaa !5
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %._crit_edge92.loopexit, %._crit_edge
  %122 = phi i32 [ %.pre134, %._crit_edge92.loopexit ], [ 0, %._crit_edge ]
  %123 = add nsw i32 %27, 1
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds [601 x i32], ptr @tim, i64 0, i64 %124
  store i32 %123, ptr %125, align 4, !tbaa !5
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = add nsw i32 %126, -1
  %128 = ashr i32 %127, 6
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr @curC, align 16, !tbaa !16
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) @curC)
  %130 = load i32, ptr @m, align 4, !tbaa !5
  %131 = icmp sgt i32 %130, 0
  br i1 %131, label %.lr.ph99, label %.preheader78

._crit_edge89:                                    ; preds = %229, %.preheader
  %132 = phi i32 [ %110, %.preheader ], [ %230, %229 ]
  %133 = add nuw i32 %.06291, 1
  %exitcond125.not = icmp eq i32 %.06291, %27
  br i1 %exitcond125.not, label %._crit_edge92.loopexit, label %.preheader, !llvm.loop !20

134:                                              ; preds = %229, %.lr.ph88.preheader
  %indvars.iv122 = phi i64 [ 0, %.lr.ph88.preheader ], [ %indvars.iv.next123, %229 ]
  %135 = load i32, ptr @m, align 4, !tbaa !5
  %136 = add nsw i32 %135, -1
  %137 = ashr i32 %136, 6
  %138 = add nsw i32 %137, 1
  %139 = load i32, ptr @rcnt, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %140
  store i32 %138, ptr %141, align 8, !tbaa !16
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %141)
  %142 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 1
  %143 = load i8, ptr %142, align 1, !tbaa !11, !range !14, !noundef !15
  %144 = trunc nuw i8 %143 to i1
  br i1 %144, label %145, label %153

145:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %146 = load i32, ptr @rcnt, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %147
  %149 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 1
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %148, ptr noundef nonnull align 8 dereferenceable(88) %149)
  %150 = load i32, ptr @rcnt, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %152, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %153

153:                                              ; preds = %134, %145
  br i1 %113, label %154, label %166

154:                                              ; preds = %153
  %155 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 2
  %156 = load i8, ptr %155, align 1, !tbaa !11, !range !14, !noundef !15
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %158, label %166

158:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %159 = load i32, ptr @rcnt, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %160
  %162 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 2
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %161, ptr noundef nonnull align 8 dereferenceable(88) %162)
  %163 = load i32, ptr @rcnt, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %164
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %165, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %166

166:                                              ; preds = %158, %154, %153
  br i1 %115, label %167, label %179

167:                                              ; preds = %166
  %168 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 3
  %169 = load i8, ptr %168, align 1, !tbaa !11, !range !14, !noundef !15
  %170 = trunc nuw i8 %169 to i1
  br i1 %170, label %171, label %179

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %172 = load i32, ptr @rcnt, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %173
  %175 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 3
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %174, ptr noundef nonnull align 8 dereferenceable(88) %175)
  %176 = load i32, ptr @rcnt, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %177
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %178, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %179

179:                                              ; preds = %171, %167, %166
  br i1 %117, label %180, label %192

180:                                              ; preds = %179
  %181 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 4
  %182 = load i8, ptr %181, align 1, !tbaa !11, !range !14, !noundef !15
  %183 = trunc nuw i8 %182 to i1
  br i1 %183, label %184, label %192

184:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %185 = load i32, ptr @rcnt, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %186
  %188 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 4
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %187, ptr noundef nonnull align 8 dereferenceable(88) %188)
  %189 = load i32, ptr @rcnt, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %190
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %191, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %192

192:                                              ; preds = %184, %180, %179
  br i1 %119, label %193, label %205

193:                                              ; preds = %192
  %194 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 5
  %195 = load i8, ptr %194, align 1, !tbaa !11, !range !14, !noundef !15
  %196 = trunc nuw i8 %195 to i1
  br i1 %196, label %197, label %205

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %198 = load i32, ptr @rcnt, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %199
  %201 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 5
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %200, ptr noundef nonnull align 8 dereferenceable(88) %201)
  %202 = load i32, ptr @rcnt, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %204, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %205

205:                                              ; preds = %197, %193, %192
  br i1 %121, label %206, label %._crit_edge132

._crit_edge132:                                   ; preds = %205
  %.pre = load i32, ptr @rcnt, align 4, !tbaa !5
  br label %217

206:                                              ; preds = %205
  %207 = getelementptr inbounds [11 x [7 x i8]], ptr @vis, i64 0, i64 %indvars.iv122, i64 6
  %208 = load i8, ptr %207, align 1, !tbaa !11, !range !14, !noundef !15
  %209 = trunc nuw i8 %208 to i1
  %.pre133 = load i32, ptr @rcnt, align 4, !tbaa !5
  br i1 %209, label %210, label %217

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #8
  %211 = sext i32 %.pre133 to i64
  %212 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %211
  %213 = getelementptr inbounds [11 x [7 x %struct.Bitset]], ptr @a, i64 0, i64 %indvars.iv122, i64 6
  call void @_ZNK6BitsetorERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Bitset) align 8 %5, ptr noundef nonnull align 8 dereferenceable(88) %212, ptr noundef nonnull align 8 dereferenceable(88) %213)
  %214 = load i32, ptr @rcnt, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %215
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %216, ptr noundef nonnull align 8 dereferenceable(88) %5, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #8
  br label %217

217:                                              ; preds = %._crit_edge132, %210, %206
  %218 = phi i32 [ %.pre, %._crit_edge132 ], [ %214, %210 ], [ %.pre133, %206 ]
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %219
  %221 = call noundef zeroext i1 @_ZNK6Bitset4noneEv(ptr noundef nonnull align 8 dereferenceable(88) %220)
  br i1 %221, label %229, label %222

222:                                              ; preds = %217
  %223 = load i32, ptr @rcnt, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [601 x i32], ptr @tim, i64 0, i64 %224
  store i32 %.06291, ptr %225, align 4, !tbaa !5
  %226 = getelementptr inbounds [601 x i32], ptr @per, i64 0, i64 %224
  %227 = trunc nuw nsw i64 %indvars.iv122 to i32
  store i32 %227, ptr %226, align 4, !tbaa !5
  %228 = add nsw i32 %223, 1
  store i32 %228, ptr @rcnt, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %217, %222
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %230 = load i32, ptr @n, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = icmp slt i64 %indvars.iv.next123, %231
  br i1 %232, label %134, label %._crit_edge89, !llvm.loop !24

.preheader78:                                     ; preds = %._crit_edge96, %._crit_edge92
  %233 = icmp sgt i32 %27, 1
  br i1 %233, label %.lr.ph102, label %._crit_edge103

.lr.ph99:                                         ; preds = %._crit_edge92, %._crit_edge96
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge96 ], [ 0, %._crit_edge92 ]
  %234 = trunc nuw nsw i64 %indvars.iv129 to i32
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) @curC, i32 noundef %234)
  %235 = load i32, ptr @rcnt, align 4, !tbaa !5
  %236 = add nsw i32 %235, -1
  %237 = ashr i32 %236, 6
  %238 = add nsw i32 %237, 1
  %239 = getelementptr inbounds [201 x %struct.Bitset], ptr @col, i64 0, i64 %indvars.iv129
  store i32 %238, ptr %239, align 8, !tbaa !16
  call void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88) %239)
  %240 = load i32, ptr @rcnt, align 4, !tbaa !5
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %.lr.ph95, label %._crit_edge96

._crit_edge96:                                    ; preds = %249, %.lr.ph99
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %242 = load i32, ptr @m, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = icmp slt i64 %indvars.iv.next130, %243
  br i1 %244, label %.lr.ph99, label %.preheader78, !llvm.loop !25

.lr.ph95:                                         ; preds = %.lr.ph99, %249
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %249 ], [ 0, %.lr.ph99 ]
  %245 = getelementptr inbounds [601 x %struct.Bitset], ptr @row, i64 0, i64 %indvars.iv126
  %246 = call noundef zeroext i1 @_ZNK6Bitset4testEi(ptr noundef nonnull align 8 dereferenceable(88) %245, i32 noundef %234)
  br i1 %246, label %247, label %249

247:                                              ; preds = %.lr.ph95
  %248 = trunc nuw nsw i64 %indvars.iv126 to i32
  call void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88) %239, i32 noundef %248)
  br label %249

249:                                              ; preds = %.lr.ph95, %247
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %250 = load i32, ptr @rcnt, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = icmp slt i64 %indvars.iv.next127, %251
  br i1 %252, label %.lr.ph95, label %._crit_edge96, !llvm.loop !26

.lr.ph102:                                        ; preds = %.preheader78, %.lr.ph102
  %.063101 = phi i32 [ %.1, %.lr.ph102 ], [ %27, %.preheader78 ]
  %.064100 = phi i32 [ %.165, %.lr.ph102 ], [ 1, %.preheader78 ]
  %253 = add nsw i32 %.063101, %.064100
  %254 = ashr i32 %253, 1
  store i32 %254, ptr @lim, align 4, !tbaa !5
  %255 = call noundef zeroext i1 @_Z5checkb(i1 noundef zeroext false)
  %256 = load i32, ptr @lim, align 4
  %257 = add nsw i32 %256, 1
  %.165 = select i1 %255, i32 %.064100, i32 %257
  %.1 = select i1 %255, i32 %256, i32 %.063101
  %258 = icmp slt i32 %.165, %.1
  br i1 %258, label %.lr.ph102, label %._crit_edge103, !llvm.loop !27

._crit_edge103:                                   ; preds = %.lr.ph102, %.preheader78
  %.064.lcssa = phi i32 [ 1, %.preheader78 ], [ %.165, %.lr.ph102 ]
  store i32 %.064.lcssa, ptr @lim, align 4, !tbaa !5
  %259 = call noundef zeroext i1 @_Z5checkb(i1 noundef zeroext true)
  br i1 %259, label %260, label %264

260:                                              ; preds = %._crit_edge103
  %261 = load i32, ptr @lim, align 4, !tbaa !5
  %262 = load i32, ptr @ans, align 4, !tbaa !5
  %263 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %261, i32 noundef %262)
  br label %266

264:                                              ; preds = %._crit_edge103
  %265 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %266

266:                                              ; preds = %264, %260
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %267 = load i32, ptr @t, align 4, !tbaa !5
  %268 = add nsw i32 %267, -1
  store i32 %268, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %267, 0
  br i1 %.not, label %._crit_edge107, label %.lr.ph106, !llvm.loop !28

._crit_edge107:                                   ; preds = %266, %6
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Bitset5resetEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Bitset3setEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6BitsetorERKS_(ptr dead_on_unwind noalias writable sret(%struct.Bitset) align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 #5 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS6Bitset", !6, i64 0, !7, i64 8}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}
!22 = !{i64 0, i64 4, !5, i64 8, i64 80, !23}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


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