; LLVM IR from tangjz/acm-icpc :: 51nod (1318)

; 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.Limit = type { i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@tot = external dso_local global i32, align 4
@pr = external dso_local global [3609 x i32], align 16
@lim = external dso_local global [401 x %struct.Limit], align 16
@a = external dso_local global [401 x %struct.Limit], align 16
@e = external dso_local global [802 x %"class.std::vector"], align 16
@r = external dso_local global [802 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@seq = external dso_local global [802 x i32], align 16
@scnt = external dso_local global i32, align 4
@sno = external dso_local global [802 x i32], align 16
@vis = external dso_local global [802 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pfs1i(i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pfs2i(i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [2 x i8], align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Limit, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.Limit, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.Limit, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %"class.std::vector", align 8
  store i32 0, ptr %1, align 4
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %40

40:                                               ; preds = %614, %0
  %41 = load i32, ptr @t, align 4, !tbaa !5
  %42 = add nsw i32 %41, -1
  store i32 %42, ptr @t, align 4, !tbaa !5
  %43 = icmp ne i32 %41, 0
  br i1 %43, label %44, label %620

44:                                               ; preds = %40
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @n, ptr noundef @m)
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %46

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

50:                                               ; preds = %46
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %118

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 2, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %52 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %52, ptr noundef %5, ptr noundef %6, ptr noundef %7)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %54 = getelementptr inbounds %struct.Limit, ptr %8, i32 0, i32 0
  %55 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 71
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %54, align 4, !tbaa !10
  %60 = getelementptr inbounds %struct.Limit, ptr %8, i32 0, i32 1
  %61 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %61, ptr %60, align 4, !tbaa !12
  %62 = getelementptr inbounds %struct.Limit, ptr %8, i32 0, i32 2
  %63 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %63, ptr %62, align 4, !tbaa !13
  %64 = getelementptr inbounds %struct.Limit, ptr %8, i32 0, i32 3
  %65 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %65, ptr %64, align 4, !tbaa !14
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %68, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %102, %51
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = mul nsw i32 %70, %71
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %69
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %105

76:                                               ; preds = %69
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = srem i32 %77, %78
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %101

81:                                               ; preds = %76
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = sdiv i32 %83, %82
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %91, %81
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = srem i32 %86, %87
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %95

90:                                               ; preds = %85
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sdiv i32 %93, %92
  store i32 %94, ptr %7, align 4, !tbaa !5
  br label %85, !llvm.loop !16

95:                                               ; preds = %85
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = load i32, ptr @tot, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr @tot, align 4, !tbaa !5
  %99 = sext i32 %97 to i64
  %100 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %99
  store i32 %96, ptr %100, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %95, %76
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %9, align 4, !tbaa !5
  br label %69, !llvm.loop !18

105:                                              ; preds = %75
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = icmp sgt i32 %106, 1
  br i1 %107, label %108, label %114

108:                                              ; preds = %105
  %109 = load i32, ptr %7, align 4, !tbaa !5
  %110 = load i32, ptr @tot, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr @tot, align 4, !tbaa !5
  %112 = sext i32 %110 to i64
  %113 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %112
  store i32 %109, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %108, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #9
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %2, align 4, !tbaa !5
  br label %46, !llvm.loop !19

118:                                              ; preds = %50
  %119 = load i32, ptr @tot, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr @pr, i64 %120
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @pr, ptr noundef %121)
  %122 = load i32, ptr @tot, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr @pr, i64 %123
  %125 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef @pr, ptr noundef %124)
  %126 = ptrtoint ptr %125 to i64
  %127 = sub i64 %126, ptrtoint (ptr @pr to i64)
  %128 = sdiv exact i64 %127, 4
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #9
  store i8 1, ptr %10, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %611, %118
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = load i32, ptr @tot, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %137

134:                                              ; preds = %130
  %135 = load i8, ptr %10, align 1, !tbaa !20, !range !22, !noundef !23
  %136 = trunc i8 %135 to i1
  br label %137

137:                                              ; preds = %134, %130
  %138 = phi i1 [ false, %130 ], [ %136, %134 ]
  br i1 %138, label %140, label %139

139:                                              ; preds = %137
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %614

140:                                              ; preds = %137
  store i32 0, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %187, %140
  %142 = load i32, ptr %12, align 4, !tbaa !5
  %143 = load i32, ptr @m, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %190

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %147 = load i32, ptr %12, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %148
  %150 = getelementptr inbounds %struct.Limit, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 4, !tbaa !14
  store i32 %151, ptr %14, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %162, %146
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = srem i32 %153, %157
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %161, label %160

160:                                              ; preds = %152
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %171

161:                                              ; preds = %152
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = load i32, ptr %14, align 4, !tbaa !5
  %168 = sdiv i32 %167, %166
  store i32 %168, ptr %14, align 4, !tbaa !5
  %169 = load i32, ptr %13, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %13, align 4, !tbaa !5
  br label %152, !llvm.loop !24

171:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %172 = load i32, ptr %12, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 16 %174, i64 16, i1 false), !tbaa.struct !15
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = getelementptr inbounds %struct.Limit, ptr %15, i32 0, i32 3
  store i32 %175, ptr %176, align 4, !tbaa !14
  %177 = load i32, ptr @n, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr @n, align 4, !tbaa !5
  %179 = sext i32 %177 to i64
  %180 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %180, ptr align 4 %15, i64 16, i1 false), !tbaa.struct !15
  %181 = getelementptr inbounds %struct.Limit, ptr %15, i32 0, i32 1
  %182 = getelementptr inbounds %struct.Limit, ptr %15, i32 0, i32 2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %181, ptr noundef nonnull align 4 dereferenceable(4) %182) #9
  %183 = load i32, ptr @n, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr @n, align 4, !tbaa !5
  %185 = sext i32 %183 to i64
  %186 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %185
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %186, ptr align 4 %15, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %187

187:                                              ; preds = %171
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %12, align 4, !tbaa !5
  br label %141, !llvm.loop !25

190:                                              ; preds = %145
  %191 = load i32, ptr @n, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct.Limit, ptr @a, i64 %192
  call void @_ZSt4sortIP5LimitEvT_S2_(ptr noundef @a, ptr noundef %193)
  %194 = load i32, ptr @n, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.Limit, ptr @a, i64 %195
  %197 = call noundef ptr @_ZSt6uniqueIP5LimitET_S2_S2_(ptr noundef @a, ptr noundef %196)
  %198 = ptrtoint ptr %197 to i64
  %199 = sub i64 %198, ptrtoint (ptr @a to i64)
  %200 = sdiv exact i64 %199, 16
  %201 = trunc i64 %200 to i32
  store i32 %201, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %202

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

206:                                              ; preds = %202
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %281

207:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %209
  %211 = getelementptr inbounds %struct.Limit, ptr %210, i32 0, i32 3
  %212 = load i32, ptr %211, align 4, !tbaa !14
  store i32 %212, ptr %18, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %223, %207
  %214 = load i32, ptr %18, align 4, !tbaa !5
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = srem i32 %214, %218
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %222, label %221

221:                                              ; preds = %213
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %232

222:                                              ; preds = %213
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %11, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = load i32, ptr %18, align 4, !tbaa !5
  %229 = sdiv i32 %228, %227
  store i32 %229, ptr %18, align 4, !tbaa !5
  %230 = load i32, ptr %17, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %17, align 4, !tbaa !5
  br label %213, !llvm.loop !26

232:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %233 = load i32, ptr %16, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %234
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 16 %235, i64 16, i1 false), !tbaa.struct !15
  %236 = load i32, ptr %17, align 4, !tbaa !5
  %237 = getelementptr inbounds %struct.Limit, ptr %19, i32 0, i32 3
  store i32 %236, ptr %237, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %238 = load i32, ptr @n, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.Limit, ptr @a, i64 %239
  %241 = call noundef ptr @_ZSt11lower_boundIP5LimitS0_ET_S2_S2_RKT0_(ptr noundef @a, ptr noundef %240, ptr noundef nonnull align 4 dereferenceable(16) %19)
  %242 = ptrtoint ptr %241 to i64
  %243 = sub i64 %242, ptrtoint (ptr @a to i64)
  %244 = sdiv exact i64 %243, 16
  %245 = trunc i64 %244 to i32
  store i32 %245, ptr %20, align 4, !tbaa !5
  %246 = getelementptr inbounds %struct.Limit, ptr %19, i32 0, i32 1
  %247 = getelementptr inbounds %struct.Limit, ptr %19, i32 0, i32 2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %246, ptr noundef nonnull align 4 dereferenceable(4) %247) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %248 = load i32, ptr @n, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %struct.Limit, ptr @a, i64 %249
  %251 = call noundef ptr @_ZSt11lower_boundIP5LimitS0_ET_S2_S2_RKT0_(ptr noundef @a, ptr noundef %250, ptr noundef nonnull align 4 dereferenceable(16) %19)
  %252 = ptrtoint ptr %251 to i64
  %253 = sub i64 %252, ptrtoint (ptr @a to i64)
  %254 = sdiv exact i64 %253, 16
  %255 = trunc i64 %254 to i32
  store i32 %255, ptr %21, align 4, !tbaa !5
  %256 = load i32, ptr @n, align 4, !tbaa !5
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = add nsw i32 %256, %257
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %259
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %260, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %261 = load i32, ptr %21, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %264 = load i32, ptr @n, align 4, !tbaa !5
  %265 = load i32, ptr %20, align 4, !tbaa !5
  %266 = add nsw i32 %264, %265
  store i32 %266, ptr %22, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %263, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  %267 = load i32, ptr @n, align 4, !tbaa !5
  %268 = load i32, ptr %21, align 4, !tbaa !5
  %269 = add nsw i32 %267, %268
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %270
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %271, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %272 = load i32, ptr %20, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %275 = load i32, ptr @n, align 4, !tbaa !5
  %276 = load i32, ptr %21, align 4, !tbaa !5
  %277 = add nsw i32 %275, %276
  store i32 %277, ptr %23, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %274, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %278

278:                                              ; preds = %232
  %279 = load i32, ptr %16, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %16, align 4, !tbaa !5
  br label %202, !llvm.loop !27

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

282:                                              ; preds = %502, %281
  %283 = load i32, ptr %24, align 4, !tbaa !5
  %284 = load i32, ptr @n, align 4, !tbaa !5
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %282
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %505

287:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %288 = load i32, ptr %24, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %25, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %498, %287
  %291 = load i32, ptr %25, align 4, !tbaa !5
  %292 = load i32, ptr @n, align 4, !tbaa !5
  %293 = icmp slt i32 %291, %292
  br i1 %293, label %295, label %294

294:                                              ; preds = %290
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %501

295:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #9
  store i8 1, ptr %26, align 1, !tbaa !20
  %296 = load i8, ptr %26, align 1, !tbaa !20, !range !22, !noundef !23
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %373

298:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %299 = load i32, ptr %24, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %300
  %302 = getelementptr inbounds %struct.Limit, ptr %301, i32 0, i32 3
  %303 = load i32, ptr %302, align 4, !tbaa !14
  store i32 %303, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %304 = load i32, ptr %24, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %305
  %307 = getelementptr inbounds %struct.Limit, ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 4, !tbaa !14
  store i32 %308, ptr %28, align 4, !tbaa !5
  %309 = load i32, ptr %24, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %310
  %312 = getelementptr inbounds %struct.Limit, ptr %311, i32 0, i32 1
  %313 = load i32, ptr %312, align 4, !tbaa !12
  %314 = load i32, ptr %25, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %315
  %317 = getelementptr inbounds %struct.Limit, ptr %316, i32 0, i32 1
  %318 = load i32, ptr %317, align 4, !tbaa !12
  %319 = icmp eq i32 %313, %318
  br i1 %319, label %320, label %333

320:                                              ; preds = %298
  %321 = load i32, ptr %25, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %322
  %324 = getelementptr inbounds %struct.Limit, ptr %323, i32 0, i32 3
  %325 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %324)
  %326 = load i32, ptr %325, align 4, !tbaa !5
  store i32 %326, ptr %27, align 4, !tbaa !5
  %327 = load i32, ptr %25, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %328
  %330 = getelementptr inbounds %struct.Limit, ptr %329, i32 0, i32 3
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %330)
  %332 = load i32, ptr %331, align 4, !tbaa !5
  store i32 %332, ptr %28, align 4, !tbaa !5
  br label %333

333:                                              ; preds = %320, %298
  %334 = load i32, ptr %24, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %335
  %337 = getelementptr inbounds %struct.Limit, ptr %336, i32 0, i32 1
  %338 = load i32, ptr %337, align 4, !tbaa !12
  %339 = load i32, ptr %25, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %340
  %342 = getelementptr inbounds %struct.Limit, ptr %341, i32 0, i32 2
  %343 = load i32, ptr %342, align 8, !tbaa !13
  %344 = icmp eq i32 %338, %343
  br i1 %344, label %345, label %367

345:                                              ; preds = %333
  %346 = load i32, ptr %25, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %347
  %349 = getelementptr inbounds %struct.Limit, ptr %348, i32 0, i32 0
  %350 = load i32, ptr %349, align 16, !tbaa !10
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %352, label %359

352:                                              ; preds = %345
  %353 = load i32, ptr %25, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %354
  %356 = getelementptr inbounds %struct.Limit, ptr %355, i32 0, i32 3
  %357 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %356)
  %358 = load i32, ptr %357, align 4, !tbaa !5
  store i32 %358, ptr %27, align 4, !tbaa !5
  br label %366

359:                                              ; preds = %345
  %360 = load i32, ptr %25, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %361
  %363 = getelementptr inbounds %struct.Limit, ptr %362, i32 0, i32 3
  %364 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %363)
  %365 = load i32, ptr %364, align 4, !tbaa !5
  store i32 %365, ptr %28, align 4, !tbaa !5
  br label %366

366:                                              ; preds = %359, %352
  br label %367

367:                                              ; preds = %366, %333
  %368 = load i32, ptr %27, align 4, !tbaa !5
  %369 = load i32, ptr %28, align 4, !tbaa !5
  %370 = icmp sgt i32 %368, %369
  br i1 %370, label %371, label %372

371:                                              ; preds = %367
  store i8 0, ptr %26, align 1, !tbaa !20
  br label %372

372:                                              ; preds = %371, %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %373

373:                                              ; preds = %372, %295
  %374 = load i8, ptr %26, align 1, !tbaa !20, !range !22, !noundef !23
  %375 = trunc i8 %374 to i1
  br i1 %375, label %376, label %471

376:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %377 = load i32, ptr %24, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %378
  %380 = getelementptr inbounds %struct.Limit, ptr %379, i32 0, i32 0
  %381 = load i32, ptr %380, align 16, !tbaa !10
  %382 = icmp ne i32 %381, 0
  br i1 %382, label %383, label %389

383:                                              ; preds = %376
  %384 = load i32, ptr %24, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %385
  %387 = getelementptr inbounds %struct.Limit, ptr %386, i32 0, i32 3
  %388 = load i32, ptr %387, align 4, !tbaa !14
  br label %390

389:                                              ; preds = %376
  br label %390

390:                                              ; preds = %389, %383
  %391 = phi i32 [ %388, %383 ], [ 0, %389 ]
  store i32 %391, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %392 = load i32, ptr %24, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %393
  %395 = getelementptr inbounds %struct.Limit, ptr %394, i32 0, i32 0
  %396 = load i32, ptr %395, align 16, !tbaa !10
  %397 = icmp ne i32 %396, 0
  br i1 %397, label %398, label %399

398:                                              ; preds = %390
  br label %405

399:                                              ; preds = %390
  %400 = load i32, ptr %24, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %401
  %403 = getelementptr inbounds %struct.Limit, ptr %402, i32 0, i32 3
  %404 = load i32, ptr %403, align 4, !tbaa !14
  br label %405

405:                                              ; preds = %399, %398
  %406 = phi i32 [ 1061109567, %398 ], [ %404, %399 ]
  store i32 %406, ptr %30, align 4, !tbaa !5
  %407 = load i32, ptr %24, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %408
  %410 = getelementptr inbounds %struct.Limit, ptr %409, i32 0, i32 2
  %411 = load i32, ptr %410, align 8, !tbaa !13
  %412 = load i32, ptr %25, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %413
  %415 = getelementptr inbounds %struct.Limit, ptr %414, i32 0, i32 1
  %416 = load i32, ptr %415, align 4, !tbaa !12
  %417 = icmp eq i32 %411, %416
  br i1 %417, label %418, label %431

418:                                              ; preds = %405
  %419 = load i32, ptr %25, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %420
  %422 = getelementptr inbounds %struct.Limit, ptr %421, i32 0, i32 3
  %423 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %422)
  %424 = load i32, ptr %423, align 4, !tbaa !5
  store i32 %424, ptr %29, align 4, !tbaa !5
  %425 = load i32, ptr %25, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %426
  %428 = getelementptr inbounds %struct.Limit, ptr %427, i32 0, i32 3
  %429 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %428)
  %430 = load i32, ptr %429, align 4, !tbaa !5
  store i32 %430, ptr %30, align 4, !tbaa !5
  br label %431

431:                                              ; preds = %418, %405
  %432 = load i32, ptr %24, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %433
  %435 = getelementptr inbounds %struct.Limit, ptr %434, i32 0, i32 2
  %436 = load i32, ptr %435, align 8, !tbaa !13
  %437 = load i32, ptr %25, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %438
  %440 = getelementptr inbounds %struct.Limit, ptr %439, i32 0, i32 2
  %441 = load i32, ptr %440, align 8, !tbaa !13
  %442 = icmp eq i32 %436, %441
  br i1 %442, label %443, label %465

443:                                              ; preds = %431
  %444 = load i32, ptr %25, align 4, !tbaa !5
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %445
  %447 = getelementptr inbounds %struct.Limit, ptr %446, i32 0, i32 0
  %448 = load i32, ptr %447, align 16, !tbaa !10
  %449 = icmp ne i32 %448, 0
  br i1 %449, label %450, label %457

450:                                              ; preds = %443
  %451 = load i32, ptr %25, align 4, !tbaa !5
  %452 = sext i32 %451 to i64
  %453 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %452
  %454 = getelementptr inbounds %struct.Limit, ptr %453, i32 0, i32 3
  %455 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %454)
  %456 = load i32, ptr %455, align 4, !tbaa !5
  store i32 %456, ptr %29, align 4, !tbaa !5
  br label %464

457:                                              ; preds = %443
  %458 = load i32, ptr %25, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %459
  %461 = getelementptr inbounds %struct.Limit, ptr %460, i32 0, i32 3
  %462 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %461)
  %463 = load i32, ptr %462, align 4, !tbaa !5
  store i32 %463, ptr %30, align 4, !tbaa !5
  br label %464

464:                                              ; preds = %457, %450
  br label %465

465:                                              ; preds = %464, %431
  %466 = load i32, ptr %29, align 4, !tbaa !5
  %467 = load i32, ptr %30, align 4, !tbaa !5
  %468 = icmp sgt i32 %466, %467
  br i1 %468, label %469, label %470

469:                                              ; preds = %465
  store i8 0, ptr %26, align 1, !tbaa !20
  br label %470

470:                                              ; preds = %469, %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %471

471:                                              ; preds = %470, %373
  %472 = load i8, ptr %26, align 1, !tbaa !20, !range !22, !noundef !23
  %473 = trunc i8 %472 to i1
  br i1 %473, label %497, label %474

474:                                              ; preds = %471
  %475 = load i32, ptr %24, align 4, !tbaa !5
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %476
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %478 = load i32, ptr @n, align 4, !tbaa !5
  %479 = load i32, ptr %25, align 4, !tbaa !5
  %480 = add nsw i32 %478, %479
  store i32 %480, ptr %31, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %477, ptr noundef nonnull align 4 dereferenceable(4) %31)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  %481 = load i32, ptr @n, align 4, !tbaa !5
  %482 = load i32, ptr %25, align 4, !tbaa !5
  %483 = add nsw i32 %481, %482
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %484
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %485, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %486 = load i32, ptr %25, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %487
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %489 = load i32, ptr @n, align 4, !tbaa !5
  %490 = load i32, ptr %24, align 4, !tbaa !5
  %491 = add nsw i32 %489, %490
  store i32 %491, ptr %32, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %488, ptr noundef nonnull align 4 dereferenceable(4) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  %492 = load i32, ptr @n, align 4, !tbaa !5
  %493 = load i32, ptr %24, align 4, !tbaa !5
  %494 = add nsw i32 %492, %493
  %495 = sext i32 %494 to i64
  %496 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %495
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %496, ptr noundef nonnull align 4 dereferenceable(4) %25)
  br label %497

497:                                              ; preds = %474, %471
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #9
  br label %498

498:                                              ; preds = %497
  %499 = load i32, ptr %25, align 4, !tbaa !5
  %500 = add nsw i32 %499, 1
  store i32 %500, ptr %25, align 4, !tbaa !5
  br label %290, !llvm.loop !28

501:                                              ; preds = %294
  br label %502

502:                                              ; preds = %501
  %503 = load i32, ptr %24, align 4, !tbaa !5
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %24, align 4, !tbaa !5
  br label %282, !llvm.loop !29

505:                                              ; preds = %286
  store i32 0, ptr @scnt, align 4, !tbaa !5
  %506 = load i32, ptr @n, align 4, !tbaa !5
  %507 = shl i32 %506, 1
  %508 = sext i32 %507 to i64
  %509 = mul i64 %508, 1
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 %509, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %510

510:                                              ; preds = %525, %505
  %511 = load i32, ptr %33, align 4, !tbaa !5
  %512 = load i32, ptr @n, align 4, !tbaa !5
  %513 = shl i32 %512, 1
  %514 = icmp slt i32 %511, %513
  br i1 %514, label %516, label %515

515:                                              ; preds = %510
  store i32 34, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %528

516:                                              ; preds = %510
  %517 = load i32, ptr %33, align 4, !tbaa !5
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds [802 x i8], ptr @vis, i64 0, i64 %518
  %520 = load i8, ptr %519, align 1, !tbaa !20, !range !22, !noundef !23
  %521 = trunc i8 %520 to i1
  br i1 %521, label %524, label %522

522:                                              ; preds = %516
  %523 = load i32, ptr %33, align 4, !tbaa !5
  call void @_Z4pfs1i(i32 noundef %523)
  br label %524

524:                                              ; preds = %522, %516
  br label %525

525:                                              ; preds = %524
  %526 = load i32, ptr %33, align 4, !tbaa !5
  %527 = add nsw i32 %526, 1
  store i32 %527, ptr %33, align 4, !tbaa !5
  br label %510, !llvm.loop !30

528:                                              ; preds = %515
  store i32 0, ptr @scnt, align 4, !tbaa !5
  %529 = load i32, ptr @n, align 4, !tbaa !5
  %530 = shl i32 %529, 1
  %531 = sext i32 %530 to i64
  %532 = mul i64 %531, 1
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 %532, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %533 = load i32, ptr @n, align 4, !tbaa !5
  %534 = shl i32 %533, 1
  %535 = sub nsw i32 %534, 1
  store i32 %535, ptr %34, align 4, !tbaa !5
  br label %536

536:                                              ; preds = %557, %528
  %537 = load i32, ptr %34, align 4, !tbaa !5
  %538 = icmp sge i32 %537, 0
  br i1 %538, label %540, label %539

539:                                              ; preds = %536
  store i32 37, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %560

540:                                              ; preds = %536
  %541 = load i32, ptr %34, align 4, !tbaa !5
  %542 = sext i32 %541 to i64
  %543 = getelementptr inbounds [802 x i32], ptr @seq, i64 0, i64 %542
  %544 = load i32, ptr %543, align 4, !tbaa !5
  %545 = sext i32 %544 to i64
  %546 = getelementptr inbounds [802 x i8], ptr @vis, i64 0, i64 %545
  %547 = load i8, ptr %546, align 1, !tbaa !20, !range !22, !noundef !23
  %548 = trunc i8 %547 to i1
  br i1 %548, label %556, label %549

549:                                              ; preds = %540
  %550 = load i32, ptr %34, align 4, !tbaa !5
  %551 = sext i32 %550 to i64
  %552 = getelementptr inbounds [802 x i32], ptr @seq, i64 0, i64 %551
  %553 = load i32, ptr %552, align 4, !tbaa !5
  call void @_Z4pfs2i(i32 noundef %553)
  %554 = load i32, ptr @scnt, align 4, !tbaa !5
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr @scnt, align 4, !tbaa !5
  br label %556

556:                                              ; preds = %549, %540
  br label %557

557:                                              ; preds = %556
  %558 = load i32, ptr %34, align 4, !tbaa !5
  %559 = add nsw i32 %558, -1
  store i32 %559, ptr %34, align 4, !tbaa !5
  br label %536, !llvm.loop !31

560:                                              ; preds = %539
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %561

561:                                              ; preds = %590, %560
  %562 = load i32, ptr %35, align 4, !tbaa !5
  %563 = load i32, ptr @n, align 4, !tbaa !5
  %564 = icmp slt i32 %562, %563
  br i1 %564, label %565, label %568

565:                                              ; preds = %561
  %566 = load i8, ptr %10, align 1, !tbaa !20, !range !22, !noundef !23
  %567 = trunc i8 %566 to i1
  br label %568

568:                                              ; preds = %565, %561
  %569 = phi i1 [ false, %561 ], [ %567, %565 ]
  br i1 %569, label %571, label %570

570:                                              ; preds = %568
  store i32 40, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %593

571:                                              ; preds = %568
  %572 = load i32, ptr %35, align 4, !tbaa !5
  %573 = sext i32 %572 to i64
  %574 = getelementptr inbounds [802 x i32], ptr @sno, i64 0, i64 %573
  %575 = load i32, ptr %574, align 4, !tbaa !5
  %576 = load i32, ptr @n, align 4, !tbaa !5
  %577 = load i32, ptr %35, align 4, !tbaa !5
  %578 = add nsw i32 %576, %577
  %579 = sext i32 %578 to i64
  %580 = getelementptr inbounds [802 x i32], ptr @sno, i64 0, i64 %579
  %581 = load i32, ptr %580, align 4, !tbaa !5
  %582 = icmp ne i32 %575, %581
  %583 = zext i1 %582 to i32
  %584 = load i8, ptr %10, align 1, !tbaa !20, !range !22, !noundef !23
  %585 = trunc i8 %584 to i1
  %586 = zext i1 %585 to i32
  %587 = and i32 %586, %583
  %588 = icmp ne i32 %587, 0
  %589 = zext i1 %588 to i8
  store i8 %589, ptr %10, align 1, !tbaa !20
  br label %590

590:                                              ; preds = %571
  %591 = load i32, ptr %35, align 4, !tbaa !5
  %592 = add nsw i32 %591, 1
  store i32 %592, ptr %35, align 4, !tbaa !5
  br label %561, !llvm.loop !32

593:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %594

594:                                              ; preds = %607, %593
  %595 = load i32, ptr %36, align 4, !tbaa !5
  %596 = load i32, ptr @n, align 4, !tbaa !5
  %597 = shl i32 %596, 1
  %598 = icmp slt i32 %595, %597
  br i1 %598, label %600, label %599

599:                                              ; preds = %594
  store i32 43, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %610

600:                                              ; preds = %594
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  %601 = load i32, ptr %36, align 4, !tbaa !5
  %602 = sext i32 %601 to i64
  %603 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %602
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %603) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #9
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  %604 = load i32, ptr %36, align 4, !tbaa !5
  %605 = sext i32 %604 to i64
  %606 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %605
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %606) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #9
  br label %607

607:                                              ; preds = %600
  %608 = load i32, ptr %36, align 4, !tbaa !5
  %609 = add nsw i32 %608, 1
  store i32 %609, ptr %36, align 4, !tbaa !5
  br label %594, !llvm.loop !33

610:                                              ; preds = %599
  br label %611

611:                                              ; preds = %610
  %612 = load i32, ptr %11, align 4, !tbaa !5
  %613 = add nsw i32 %612, 1
  store i32 %613, ptr %11, align 4, !tbaa !5
  br label %130, !llvm.loop !34

614:                                              ; preds = %139
  %615 = load i8, ptr %10, align 1, !tbaa !20, !range !22, !noundef !23
  %616 = trunc i8 %615 to i1
  %617 = zext i1 %616 to i64
  %618 = select i1 %616, ptr @.str.5, ptr @.str.6
  %619 = call i32 @puts(ptr noundef %618)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  br label %40, !llvm.loop !35

620:                                              ; preds = %40
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIP5LimitET_S2_S2_(ptr noundef, ptr noundef) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

declare i32 @puts(ptr noundef) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTS5Limit", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!12 = !{!11, !6, i64 4}
!13 = !{!11, !6, i64 8}
!14 = !{!11, !6, i64 12}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}


; 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.Limit = type { i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local global [3609 x i32], align 16
@lim = external dso_local local_unnamed_addr global [401 x %struct.Limit], align 16
@a = external dso_local global [401 x %struct.Limit], align 16
@e = external dso_local global [802 x %"class.std::vector"], align 16
@r = external dso_local global [802 x %"class.std::vector"], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@seq = external dso_local local_unnamed_addr global [802 x i32], align 16
@scnt = external dso_local local_unnamed_addr global i32, align 4
@sno = external dso_local local_unnamed_addr global [802 x i32], align 16
@vis = external dso_local local_unnamed_addr global [802 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pfs1i(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4pfs2i(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca [2 x i8], align 1
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Limit, align 4
  %6 = alloca %struct.Limit, 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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::vector", align 8
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %22 = load i32, ptr @t, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr @t, align 4, !tbaa !5
  %.not147 = icmp eq i32 %22, 0
  br i1 %.not147, label %._crit_edge150, label %.lr.ph149

.lr.ph149:                                        ; preds = %0
  %24 = getelementptr inbounds i8, ptr %5, i64 12
  %25 = getelementptr inbounds i8, ptr %5, i64 4
  %26 = getelementptr inbounds i8, ptr %5, i64 8
  %27 = getelementptr inbounds i8, ptr %6, i64 12
  %28 = getelementptr inbounds i8, ptr %6, i64 4
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  br label %30

30:                                               ; preds = %.lr.ph149, %78
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @n, ptr noundef nonnull @m)
  store i32 0, ptr @tot, align 4, !tbaa !5
  %32 = load i32, ptr @m, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph94, label %._crit_edge95

._crit_edge95:                                    ; preds = %73, %30
  %34 = phi i32 [ 0, %30 ], [ %74, %73 ]
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr @pr, i64 %35
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @pr, ptr noundef nonnull %36)
  %37 = load i32, ptr @tot, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr @pr, i64 %38
  %40 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef nonnull @pr, ptr noundef nonnull %39)
  %41 = ptrtoint ptr %40 to i64
  %42 = sub i64 %41, ptrtoint (ptr @pr to i64)
  %43 = lshr exact i64 %42, 2
  %44 = trunc i64 %43 to i32
  store i32 %44, ptr @tot, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph144, label %._crit_edge145.thread

.lr.ph94:                                         ; preds = %30, %73
  %indvars.iv = phi i64 [ %indvars.iv.next, %73 ], [ 0, %30 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %47 = load i8, ptr %1, align 1, !tbaa !9
  %48 = icmp eq i8 %47, 71
  %49 = zext i1 %48 to i32
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %indvars.iv
  store i32 %49, ptr %53, align 16, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 4
  store i32 %50, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  store i32 %51, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 12
  store i32 %52, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  %.not7989 = icmp slt i32 %52, 4
  br i1 %.not7989, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %65, %.lr.ph94
  %54 = phi i32 [ %tot.promoted, %.lr.ph94 ], [ %66, %65 ]
  %.lcssa = phi i32 [ %52, %.lr.ph94 ], [ %storemerge80.lcssa87, %65 ]
  %55 = icmp sgt i32 %.lcssa, 1
  br i1 %55, label %69, label %73

.lr.ph:                                           ; preds = %.lr.ph94, %65
  %.06991 = phi i32 [ %67, %65 ], [ 2, %.lr.ph94 ]
  %storemerge80.lcssa8890 = phi i32 [ %storemerge80.lcssa87, %65 ], [ %52, %.lr.ph94 ]
  %56 = phi i32 [ %66, %65 ], [ %tot.promoted, %.lr.ph94 ]
  %57 = srem i32 %storemerge80.lcssa8890, %.06991
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %.preheader, label %65

.preheader:                                       ; preds = %.lr.ph, %.preheader
  %.pn = phi i32 [ %storemerge80, %.preheader ], [ %storemerge80.lcssa8890, %.lr.ph ]
  %storemerge80 = sdiv i32 %.pn, %.06991
  %59 = srem i32 %storemerge80, %.06991
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %.preheader, label %61, !llvm.loop !10

61:                                               ; preds = %.preheader
  %62 = add nsw i32 %56, 1
  store i32 %62, ptr @tot, align 4, !tbaa !5
  %63 = sext i32 %56 to i64
  %64 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %63
  store i32 %.06991, ptr %64, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %.lr.ph, %61
  %66 = phi i32 [ %56, %.lr.ph ], [ %62, %61 ]
  %storemerge80.lcssa87 = phi i32 [ %storemerge80.lcssa8890, %.lr.ph ], [ %storemerge80, %61 ]
  %67 = add nuw nsw i32 %.06991, 1
  %68 = mul nuw nsw i32 %67, %67
  %.not79 = icmp sgt i32 %68, %storemerge80.lcssa87
  br i1 %.not79, label %._crit_edge, label %.lr.ph, !llvm.loop !12

69:                                               ; preds = %._crit_edge
  %70 = add nsw i32 %54, 1
  store i32 %70, ptr @tot, align 4, !tbaa !5
  %71 = sext i32 %54 to i64
  %72 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %71
  store i32 %.lcssa, ptr %72, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %69, %._crit_edge
  %74 = phi i32 [ %70, %69 ], [ %54, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %1) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr @m, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next, %76
  br i1 %77, label %.lr.ph94, label %._crit_edge95, !llvm.loop !13

._crit_edge145:                                   ; preds = %._crit_edge140
  br i1 %340, label %._crit_edge145.thread, label %78

._crit_edge145.thread:                            ; preds = %._crit_edge95, %._crit_edge145
  br label %78

78:                                               ; preds = %._crit_edge145, %._crit_edge145.thread
  %79 = phi ptr [ @.str.5, %._crit_edge145.thread ], [ @.str.6, %._crit_edge145 ]
  %80 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %79)
  %81 = load i32, ptr @t, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %81, 0
  br i1 %.not, label %._crit_edge150, label %30, !llvm.loop !14

.lr.ph144:                                        ; preds = %._crit_edge95, %._crit_edge140
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %._crit_edge140 ], [ 0, %._crit_edge95 ]
  %.067141 = phi i8 [ %.168.lcssa.fr, %._crit_edge140 ], [ 1, %._crit_edge95 ]
  store i32 0, ptr @n, align 4, !tbaa !5
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph104, label %._crit_edge105

.lr.ph104:                                        ; preds = %.lr.ph144
  %85 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %indvars.iv176
  br label %100

._crit_edge105:                                   ; preds = %._crit_edge100, %.lr.ph144
  %86 = phi i32 [ 0, %.lr.ph144 ], [ %112, %._crit_edge100 ]
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.Limit, ptr @a, i64 %87
  call void @_ZSt4sortIP5LimitEvT_S2_(ptr noundef nonnull @a, ptr noundef nonnull %88)
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.Limit, ptr @a, i64 %90
  %92 = call noundef ptr @_ZSt6uniqueIP5LimitET_S2_S2_(ptr noundef nonnull @a, ptr noundef nonnull %91)
  %93 = ptrtoint ptr %92 to i64
  %94 = sub i64 %93, ptrtoint (ptr @a to i64)
  %95 = lshr exact i64 %94, 4
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr @n, align 4, !tbaa !5
  %97 = load i32, ptr @m, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.lr.ph114, label %._crit_edge115

.lr.ph114:                                        ; preds = %._crit_edge105
  %99 = getelementptr inbounds [3609 x i32], ptr @pr, i64 0, i64 %indvars.iv176
  br label %124

100:                                              ; preds = %.lr.ph104, %._crit_edge100
  %101 = phi i32 [ 0, %.lr.ph104 ], [ %112, %._crit_edge100 ]
  %indvars.iv158 = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next159, %._crit_edge100 ]
  %102 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %indvars.iv158
  %103 = getelementptr inbounds i8, ptr %102, i64 12
  %104 = load i32, ptr %103, align 4, !tbaa !15
  %105 = load i32, ptr %85, align 4, !tbaa !5
  %106 = srem i32 %104, %105
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %.lr.ph99, label %._crit_edge100

._crit_edge100:                                   ; preds = %.lr.ph99, %100
  %.064.lcssa = phi i32 [ 0, %100 ], [ %119, %.lr.ph99 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %102, i64 12, i1 false), !tbaa.struct !17
  store i32 %.064.lcssa, ptr %24, align 4, !tbaa !15
  %108 = add nsw i32 %101, 1
  store i32 %108, ptr @n, align 4, !tbaa !5
  %109 = sext i32 %101 to i64
  %110 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %109
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %110, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !17
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26) #9
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr @n, align 4, !tbaa !5
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %114, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %115 = load i32, ptr @m, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next159, %116
  br i1 %117, label %100, label %._crit_edge105, !llvm.loop !18

.lr.ph99:                                         ; preds = %100, %.lr.ph99
  %.06397 = phi i32 [ %118, %.lr.ph99 ], [ %104, %100 ]
  %.06496 = phi i32 [ %119, %.lr.ph99 ], [ 0, %100 ]
  %118 = sdiv i32 %.06397, %105
  %119 = add nuw nsw i32 %.06496, 1
  %120 = srem i32 %118, %105
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %.lr.ph99, label %._crit_edge100, !llvm.loop !19

._crit_edge115.loopexit:                          ; preds = %._crit_edge110
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge115

._crit_edge115:                                   ; preds = %._crit_edge115.loopexit, %._crit_edge105
  %122 = phi i32 [ %.pre, %._crit_edge115.loopexit ], [ %96, %._crit_edge105 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %.lr.ph123, label %._crit_edge124

124:                                              ; preds = %.lr.ph114, %._crit_edge110
  %indvars.iv161 = phi i64 [ 0, %.lr.ph114 ], [ %indvars.iv.next162, %._crit_edge110 ]
  %125 = getelementptr inbounds [401 x %struct.Limit], ptr @lim, i64 0, i64 %indvars.iv161
  %126 = getelementptr inbounds i8, ptr %125, i64 12
  %127 = load i32, ptr %126, align 4, !tbaa !15
  %128 = load i32, ptr %99, align 4, !tbaa !5
  %129 = srem i32 %127, %128
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %.lr.ph109, label %._crit_edge110

._crit_edge110:                                   ; preds = %.lr.ph109, %124
  %.061.lcssa = phi i32 [ 0, %124 ], [ %173, %.lr.ph109 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %125, i64 12, i1 false), !tbaa.struct !17
  store i32 %.061.lcssa, ptr %27, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.Limit, ptr @a, i64 %132
  %134 = call noundef ptr @_ZSt11lower_boundIP5LimitS0_ET_S2_S2_RKT0_(ptr noundef nonnull @a, ptr noundef nonnull %133, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %135 = ptrtoint ptr %134 to i64
  %136 = sub i64 %135, ptrtoint (ptr @a to i64)
  %137 = lshr exact i64 %136, 4
  %138 = trunc i64 %137 to i32
  store i32 %138, ptr %7, align 4, !tbaa !5
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  %139 = load i32, ptr @n, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.Limit, ptr @a, i64 %140
  %142 = call noundef ptr @_ZSt11lower_boundIP5LimitS0_ET_S2_S2_RKT0_(ptr noundef nonnull @a, ptr noundef nonnull %141, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %143 = ptrtoint ptr %142 to i64
  %144 = sub i64 %143, ptrtoint (ptr @a to i64)
  %145 = lshr exact i64 %144, 4
  %146 = trunc i64 %145 to i32
  store i32 %146, ptr %8, align 4, !tbaa !5
  %147 = load i32, ptr @n, align 4, !tbaa !5
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = add nsw i32 %148, %147
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %150
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  %155 = load i32, ptr @n, align 4, !tbaa !5
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %9, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  %158 = load i32, ptr @n, align 4, !tbaa !5
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = add nsw i32 %159, %158
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %161
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %163 = load i32, ptr %7, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %164
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  %166 = load i32, ptr @n, align 4, !tbaa !5
  %167 = load i32, ptr %8, align 4, !tbaa !5
  %168 = add nsw i32 %167, %166
  store i32 %168, ptr %10, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %169 = load i32, ptr @m, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = icmp slt i64 %indvars.iv.next162, %170
  br i1 %171, label %124, label %._crit_edge115.loopexit, !llvm.loop !20

.lr.ph109:                                        ; preds = %124, %.lr.ph109
  %.060107 = phi i32 [ %172, %.lr.ph109 ], [ %127, %124 ]
  %.061106 = phi i32 [ %173, %.lr.ph109 ], [ 0, %124 ]
  %172 = sdiv i32 %.060107, %128
  %173 = add nuw nsw i32 %.061106, 1
  %174 = srem i32 %172, %128
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %.lr.ph109, label %._crit_edge110, !llvm.loop !21

._crit_edge124:                                   ; preds = %._crit_edge121, %._crit_edge115
  %176 = phi i32 [ %122, %._crit_edge115 ], [ %182, %._crit_edge121 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  store i32 0, ptr @scnt, align 4, !tbaa !5
  %177 = shl i32 %176, 1
  %178 = sext i32 %177 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %178, i1 false)
  %179 = icmp sgt i32 %177, 0
  br i1 %179, label %.lr.ph128, label %._crit_edge129.thread

._crit_edge129.thread:                            ; preds = %._crit_edge124
  store i32 0, ptr @scnt, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %178, i1 false)
  br label %.preheader83

.lr.ph123:                                        ; preds = %._crit_edge115, %._crit_edge121
  %180 = phi i32 [ %182, %._crit_edge121 ], [ %122, %._crit_edge115 ]
  %storemerge74.in116 = phi i32 [ %.pre-phi203, %._crit_edge121 ], [ 0, %._crit_edge115 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  %storemerge74117 = add nsw i32 %storemerge74.in116, 1
  store i32 %storemerge74117, ptr %12, align 4, !tbaa !5
  %181 = icmp slt i32 %storemerge74117, %180
  br i1 %181, label %.lr.ph120, label %._crit_edge121

._crit_edge121.loopexit:                          ; preds = %293
  %.pre194 = load i32, ptr %11, align 4, !tbaa !5
  %.pre202 = add nsw i32 %.pre194, 1
  br label %._crit_edge121

._crit_edge121:                                   ; preds = %._crit_edge121.loopexit, %.lr.ph123
  %.pre-phi203 = phi i32 [ %.pre202, %._crit_edge121.loopexit ], [ %storemerge74117, %.lr.ph123 ]
  %182 = phi i32 [ %294, %._crit_edge121.loopexit ], [ %180, %.lr.ph123 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  store i32 %.pre-phi203, ptr %11, align 4, !tbaa !5
  %183 = icmp slt i32 %.pre-phi203, %182
  br i1 %183, label %.lr.ph123, label %._crit_edge124, !llvm.loop !22

.lr.ph120:                                        ; preds = %.lr.ph123, %293
  %storemerge74118 = phi i32 [ %storemerge74, %293 ], [ %storemerge74117, %.lr.ph123 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %185, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !15
  store i32 %187, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  store i32 %187, ptr %14, align 4, !tbaa !5
  %188 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %185, i32 1
  %189 = load i32, ptr %188, align 4, !tbaa !23
  %190 = sext i32 %storemerge74118 to i64
  %191 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %190
  %192 = getelementptr inbounds i8, ptr %191, i64 4
  %193 = load i32, ptr %192, align 4, !tbaa !23
  %194 = icmp eq i32 %189, %193
  br i1 %194, label %195, label %204

195:                                              ; preds = %.lr.ph120
  %196 = getelementptr inbounds i8, ptr %191, i64 12
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %196)
  %198 = load i32, ptr %197, align 4, !tbaa !5
  store i32 %198, ptr %13, align 4, !tbaa !5
  %199 = load i32, ptr %12, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %200, i32 3
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %201)
  %203 = load i32, ptr %202, align 4, !tbaa !5
  store i32 %203, ptr %14, align 4, !tbaa !5
  %.pre179 = load i32, ptr %11, align 4, !tbaa !5
  %.phi.trans.insert = sext i32 %.pre179 to i64
  %.phi.trans.insert180 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %.phi.trans.insert, i32 1
  %.pre181 = load i32, ptr %.phi.trans.insert180, align 4, !tbaa !23
  %.pre182 = load i32, ptr %12, align 4, !tbaa !5
  %.pre197 = sext i32 %.pre182 to i64
  br label %204

204:                                              ; preds = %195, %.lr.ph120
  %.pre-phi = phi i64 [ %.pre197, %195 ], [ %190, %.lr.ph120 ]
  %205 = phi i32 [ %203, %195 ], [ %187, %.lr.ph120 ]
  %206 = phi i32 [ %.pre181, %195 ], [ %189, %.lr.ph120 ]
  %207 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %.pre-phi
  %208 = getelementptr inbounds i8, ptr %207, i64 8
  %209 = load i32, ptr %208, align 8, !tbaa !24
  %210 = icmp eq i32 %206, %209
  br i1 %210, label %211, label %220

211:                                              ; preds = %204
  %212 = load i32, ptr %207, align 16, !tbaa !25
  %.not75 = icmp eq i32 %212, 0
  %213 = getelementptr inbounds i8, ptr %207, i64 12
  br i1 %.not75, label %217, label %214

214:                                              ; preds = %211
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %213)
  %216 = load i32, ptr %215, align 4, !tbaa !5
  store i32 %216, ptr %13, align 4, !tbaa !5
  %.pre183 = load i32, ptr %14, align 4, !tbaa !5
  br label %220

217:                                              ; preds = %211
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %213)
  %219 = load i32, ptr %218, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %214, %217, %204
  %221 = phi i32 [ %.pre183, %214 ], [ %219, %217 ], [ %205, %204 ]
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %.not205 = icmp sgt i32 %222, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  br i1 %.not205, label %.thread, label %223

.thread:                                          ; preds = %220
  %storemerge74.in.pre190209 = load i32, ptr %12, align 4, !tbaa !5
  %.pre193210 = load i32, ptr @n, align 4, !tbaa !5
  br label %272

223:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %224 = load i32, ptr %11, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %225
  %227 = load i32, ptr %226, align 16, !tbaa !25
  %.not76 = icmp eq i32 %227, 0
  br i1 %.not76, label %231, label %228

228:                                              ; preds = %223
  %229 = getelementptr inbounds i8, ptr %226, i64 12
  %230 = load i32, ptr %229, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  br label %234

231:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  %232 = getelementptr inbounds i8, ptr %226, i64 12
  %233 = load i32, ptr %232, align 4, !tbaa !15
  br label %234

234:                                              ; preds = %228, %231
  %.sink = phi i32 [ 0, %231 ], [ %230, %228 ]
  %235 = phi i32 [ %233, %231 ], [ 1061109567, %228 ]
  store i32 %.sink, ptr %15, align 4
  store i32 %235, ptr %16, align 4, !tbaa !5
  %236 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %225, i32 2
  %237 = load i32, ptr %236, align 8, !tbaa !24
  %238 = load i32, ptr %12, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %239
  %241 = getelementptr inbounds i8, ptr %240, i64 4
  %242 = load i32, ptr %241, align 4, !tbaa !23
  %243 = icmp eq i32 %237, %242
  br i1 %243, label %244, label %253

244:                                              ; preds = %234
  %245 = getelementptr inbounds i8, ptr %240, i64 12
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %245)
  %247 = load i32, ptr %246, align 4, !tbaa !5
  store i32 %247, ptr %15, align 4, !tbaa !5
  %248 = load i32, ptr %12, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %249, i32 3
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %250)
  %252 = load i32, ptr %251, align 4, !tbaa !5
  store i32 %252, ptr %16, align 4, !tbaa !5
  %.pre184 = load i32, ptr %11, align 4, !tbaa !5
  %.phi.trans.insert185 = sext i32 %.pre184 to i64
  %.phi.trans.insert186 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %.phi.trans.insert185, i32 2
  %.pre187 = load i32, ptr %.phi.trans.insert186, align 8, !tbaa !24
  %.pre188 = load i32, ptr %12, align 4, !tbaa !5
  %.pre198 = sext i32 %.pre188 to i64
  br label %253

253:                                              ; preds = %244, %234
  %.pre-phi199 = phi i64 [ %.pre198, %244 ], [ %239, %234 ]
  %254 = phi i32 [ %252, %244 ], [ %235, %234 ]
  %255 = phi i32 [ %.pre187, %244 ], [ %237, %234 ]
  %256 = getelementptr inbounds [401 x %struct.Limit], ptr @a, i64 0, i64 %.pre-phi199
  %257 = getelementptr inbounds i8, ptr %256, i64 8
  %258 = load i32, ptr %257, align 8, !tbaa !24
  %259 = icmp eq i32 %255, %258
  br i1 %259, label %260, label %269

260:                                              ; preds = %253
  %261 = load i32, ptr %256, align 16, !tbaa !25
  %.not78 = icmp eq i32 %261, 0
  %262 = getelementptr inbounds i8, ptr %256, i64 12
  br i1 %.not78, label %266, label %263

263:                                              ; preds = %260
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %262)
  %265 = load i32, ptr %264, align 4, !tbaa !5
  store i32 %265, ptr %15, align 4, !tbaa !5
  %.pre189 = load i32, ptr %16, align 4, !tbaa !5
  br label %269

266:                                              ; preds = %260
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %262)
  %268 = load i32, ptr %267, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %253, %266, %263
  %270 = phi i32 [ %.pre189, %263 ], [ %268, %266 ], [ %254, %253 ]
  %271 = load i32, ptr %15, align 4, !tbaa !5
  %.not227 = icmp sgt i32 %271, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  %storemerge74.in.pre190 = load i32, ptr %12, align 4, !tbaa !5
  %.pre193 = load i32, ptr @n, align 4, !tbaa !5
  br i1 %.not227, label %272, label %293

272:                                              ; preds = %.thread, %269
  %.pre193212 = phi i32 [ %.pre193210, %.thread ], [ %.pre193, %269 ]
  %storemerge74.in.pre190211 = phi i32 [ %storemerge74.in.pre190209, %.thread ], [ %storemerge74.in.pre190, %269 ]
  %273 = load i32, ptr %11, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %274
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  %276 = add nsw i32 %storemerge74.in.pre190211, %.pre193212
  store i32 %276, ptr %17, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %275, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  %277 = load i32, ptr @n, align 4, !tbaa !5
  %278 = load i32, ptr %12, align 4, !tbaa !5
  %279 = add nsw i32 %278, %277
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %280
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %281, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %282 = load i32, ptr %12, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %283
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %285 = load i32, ptr @n, align 4, !tbaa !5
  %286 = load i32, ptr %11, align 4, !tbaa !5
  %287 = add nsw i32 %286, %285
  store i32 %287, ptr %18, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %284, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  %288 = load i32, ptr @n, align 4, !tbaa !5
  %289 = load i32, ptr %11, align 4, !tbaa !5
  %290 = add nsw i32 %289, %288
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %291
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %292, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %storemerge74.in.pre = load i32, ptr %12, align 4, !tbaa !5
  %.pre192 = load i32, ptr @n, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %272, %269
  %294 = phi i32 [ %.pre192, %272 ], [ %.pre193, %269 ]
  %storemerge74.in = phi i32 [ %storemerge74.in.pre, %272 ], [ %storemerge74.in.pre190, %269 ]
  %storemerge74 = add nsw i32 %storemerge74.in, 1
  store i32 %storemerge74, ptr %12, align 4, !tbaa !5
  %295 = icmp slt i32 %storemerge74, %294
  br i1 %295, label %.lr.ph120, label %._crit_edge121.loopexit, !llvm.loop !26

._crit_edge129:                                   ; preds = %304
  store i32 0, ptr @scnt, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @vis, i8 0, i64 %307, i1 false)
  %296 = icmp sgt i32 %306, 0
  br i1 %296, label %.lr.ph134.preheader, label %.preheader83

.lr.ph134.preheader:                              ; preds = %._crit_edge129
  %297 = zext nneg i32 %306 to i64
  br label %.lr.ph134

.lr.ph128:                                        ; preds = %._crit_edge124, %304
  %298 = phi i32 [ %305, %304 ], [ %176, %._crit_edge124 ]
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %304 ], [ 0, %._crit_edge124 ]
  %299 = getelementptr inbounds [802 x i8], ptr @vis, i64 0, i64 %indvars.iv164
  %300 = load i8, ptr %299, align 1, !tbaa !27, !range !29, !noundef !30
  %301 = trunc nuw i8 %300 to i1
  br i1 %301, label %304, label %302

302:                                              ; preds = %.lr.ph128
  %303 = trunc nuw nsw i64 %indvars.iv164 to i32
  call void @_Z4pfs1i(i32 noundef %303)
  %.pre195 = load i32, ptr @n, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %.lr.ph128, %302
  %305 = phi i32 [ %298, %.lr.ph128 ], [ %.pre195, %302 ]
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %306 = shl i32 %305, 1
  %307 = sext i32 %306 to i64
  %308 = icmp slt i64 %indvars.iv.next165, %307
  br i1 %308, label %.lr.ph128, label %._crit_edge129, !llvm.loop !31

.preheader83.loopexit:                            ; preds = %324
  %.pre196 = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader83

.preheader83:                                     ; preds = %._crit_edge129.thread, %.preheader83.loopexit, %._crit_edge129
  %309 = phi i32 [ %.pre196, %.preheader83.loopexit ], [ %305, %._crit_edge129 ], [ %176, %._crit_edge129.thread ]
  %310 = icmp sgt i32 %309, 0
  %311 = trunc nuw i8 %.067141 to i1
  %312 = select i1 %310, i1 %311, i1 false
  br i1 %312, label %.lr.ph136.preheader, label %.preheader82

.lr.ph136.preheader:                              ; preds = %.preheader83
  %313 = zext nneg i32 %309 to i64
  %314 = zext nneg i32 %309 to i64
  br label %.lr.ph136

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %324
  %indvars.iv167 = phi i64 [ %297, %.lr.ph134.preheader ], [ %indvars.iv.next168, %324 ]
  %indvars.iv.next168 = add nsw i64 %indvars.iv167, -1
  %315 = getelementptr inbounds [802 x i32], ptr @seq, i64 0, i64 %indvars.iv.next168
  %316 = load i32, ptr %315, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [802 x i8], ptr @vis, i64 0, i64 %317
  %319 = load i8, ptr %318, align 1, !tbaa !27, !range !29, !noundef !30
  %320 = trunc nuw i8 %319 to i1
  br i1 %320, label %324, label %321

321:                                              ; preds = %.lr.ph134
  call void @_Z4pfs2i(i32 noundef %316)
  %322 = load i32, ptr @scnt, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr @scnt, align 4, !tbaa !5
  br label %324

324:                                              ; preds = %.lr.ph134, %321
  %325 = icmp ugt i64 %indvars.iv167, 1
  br i1 %325, label %.lr.ph134, label %.preheader83.loopexit, !llvm.loop !32

.preheader82.loopexit:                            ; preds = %.lr.ph136
  %326 = zext i1 %334 to i8
  br label %.preheader82

.preheader82:                                     ; preds = %.preheader82.loopexit, %.preheader83
  %.168.lcssa = phi i8 [ %.067141, %.preheader83 ], [ %326, %.preheader82.loopexit ]
  %.168.lcssa.fr = freeze i8 %.168.lcssa
  %327 = shl i32 %309, 1
  %328 = icmp sgt i32 %327, 0
  br i1 %328, label %.lr.ph139, label %._crit_edge140

.lr.ph136:                                        ; preds = %.lr.ph136.preheader, %.lr.ph136
  %indvars.iv170 = phi i64 [ 0, %.lr.ph136.preheader ], [ %indvars.iv.next171, %.lr.ph136 ]
  %329 = getelementptr inbounds [802 x i32], ptr @sno, i64 0, i64 %indvars.iv170
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = add nuw nsw i64 %indvars.iv170, %313
  %332 = getelementptr inbounds [802 x i32], ptr @sno, i64 0, i64 %331
  %333 = load i32, ptr %332, align 4, !tbaa !5
  %334 = icmp ne i32 %330, %333
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %335 = icmp ult i64 %indvars.iv.next171, %314
  %336 = select i1 %335, i1 %334, i1 false
  br i1 %336, label %.lr.ph136, label %.preheader82.loopexit, !llvm.loop !33

._crit_edge140:                                   ; preds = %.lr.ph139, %.preheader82
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %337 = load i32, ptr @tot, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = icmp slt i64 %indvars.iv.next177, %338
  %340 = trunc i8 %.168.lcssa.fr to i1
  %341 = and i1 %339, %340
  br i1 %341, label %.lr.ph144, label %._crit_edge145, !llvm.loop !34

.lr.ph139:                                        ; preds = %.preheader82, %.lr.ph139
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.lr.ph139 ], [ 0, %.preheader82 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %19, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  %342 = getelementptr inbounds [802 x %"class.std::vector"], ptr @e, i64 0, i64 %indvars.iv173
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %342) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %20, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %343 = getelementptr inbounds [802 x %"class.std::vector"], ptr @r, i64 0, i64 %indvars.iv173
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %343) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %344 = load i32, ptr @n, align 4, !tbaa !5
  %345 = shl i32 %344, 1
  %346 = sext i32 %345 to i64
  %347 = icmp slt i64 %indvars.iv.next174, %346
  br i1 %347, label %.lr.ph139, label %._crit_edge140, !llvm.loop !35

._crit_edge150:                                   ; preds = %78, %0
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIP5LimitET_S2_S2_(ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = !{!16, !6, i64 12}
!16 = !{!"_ZTS5Limit", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!17 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = !{!16, !6, i64 4}
!24 = !{!16, !6, i64 8}
!25 = !{!16, !6, i64 0}
!26 = distinct !{!26, !11}
!27 = !{!28, !28, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !11}
!32 = distinct !{!32, !11}
!33 = distinct !{!33, !11}
!34 = distinct !{!34, !11}
!35 = distinct !{!35, !11}


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