; LLVM IR from tangjz/acm-icpc :: lydsy (2205)

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

%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@idx = external dso_local global [25 x i32], align 16
@dis = external dso_local global [25 x i32], align 16
@e = external dso_local global [25 x [5 x i32]], align 16
@nxt = external dso_local global [25 x [25 x i32]], align 16
@buf = external dso_local global [5 x [7 x i8]], align 16
@Q = external dso_local global %"class.std::queue", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@__const.main.pos = external hidden unnamed_addr constant [3 x i32], align 4
@.str.2 = 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 [5 x i8], align 1
@_ZZ4mainE3ref = external hidden global [25 x i32], align 16
@_ZL2dx = external hidden constant [4 x i32], align 16
@_ZL2dy = external hidden constant [4 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca [3 x i32], align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::map", align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %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 i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store ptr @.str, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.pos, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %108, %0
  %57 = load i32, ptr %4, align 4, !tbaa !9
  %58 = icmp slt i32 %57, 5
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %111

60:                                               ; preds = %56
  %61 = load i32, ptr %4, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %62
  %64 = getelementptr inbounds [7 x i8], ptr %63, i64 0, i64 0
  %65 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %104, %60
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = icmp slt i32 %67, 5
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %107

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %100, %70
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = icmp slt i32 %72, 3
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %103

75:                                               ; preds = %71
  %76 = load i32, ptr %4, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %77
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [7 x i8], ptr %78, i64 0, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %83 = sext i8 %82 to i32
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = icmp eq i32 %83, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %75
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = mul nsw i32 %92, 5
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = add nsw i32 %93, %94
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 %97
  store i32 %95, ptr %98, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %91, %75
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %7, align 4, !tbaa !9
  br label %71, !llvm.loop !12

103:                                              ; preds = %74
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !9
  br label %66, !llvm.loop !14

107:                                              ; preds = %69
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !9
  br label %56, !llvm.loop !15

111:                                              ; preds = %59
  %112 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @m, ptr noundef @p)
  %113 = load i32, ptr @p, align 4, !tbaa !9
  %114 = icmp sgt i32 %113, 17
  br i1 %114, label %115, label %117

115:                                              ; preds = %111
  %116 = call i32 @puts(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %836

117:                                              ; preds = %111
  call void @llvm.memset.p0.i64(ptr align 16 @idx, i8 -1, i64 100, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3ref, i8 -1, i64 100, i1 false)
  %118 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
  %119 = load i32, ptr %118, align 4, !tbaa !9
  store i32 %119, ptr @_ZZ4mainE3ref, align 16, !tbaa !9
  %120 = load i32, ptr @tot, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr @tot, align 4, !tbaa !9
  %122 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %124
  store i32 %120, ptr %125, align 4, !tbaa !9
  %126 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %126)
  br label %127

127:                                              ; preds = %233, %117
  %128 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %129 = xor i1 %128, true
  br i1 %129, label %130, label %234

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %132 = load i32, ptr %131, align 4, !tbaa !9
  store i32 %132, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = sdiv i32 %133, 5
  store i32 %134, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = srem i32 %135, 5
  store i32 %136, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %229, %130
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 4
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %232

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %142 = load i32, ptr %8, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = mul nsw i32 %146, 5
  %148 = add nsw i32 %142, %147
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = add nsw i32 %148, %152
  store i32 %153, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [4 x i32], ptr @_ZL2dx, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = add nsw i32 %154, %158
  store i32 %159, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [4 x i32], ptr @_ZL2dy, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = add nsw i32 %160, %164
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = icmp slt i32 %166, 0
  br i1 %167, label %187, label %168

168:                                              ; preds = %141
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = icmp sge i32 %169, 5
  br i1 %170, label %187, label %171

171:                                              ; preds = %168
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = icmp slt i32 %172, 0
  br i1 %173, label %187, label %174

174:                                              ; preds = %171
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = icmp sge i32 %175, 5
  br i1 %176, label %187, label %177

177:                                              ; preds = %174
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %179
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [7 x i8], ptr %180, i64 0, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !11
  %185 = sext i8 %184 to i32
  %186 = icmp eq i32 %185, 49
  br i1 %186, label %187, label %188

187:                                              ; preds = %177, %174, %171, %168, %141
  store i32 16, ptr %5, align 4
  br label %226

188:                                              ; preds = %177
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = icmp eq i32 %192, -1
  br i1 %193, label %194, label %204

194:                                              ; preds = %188
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr @tot, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [25 x i32], ptr @_ZZ4mainE3ref, i64 0, i64 %197
  store i32 %195, ptr %198, align 4, !tbaa !9
  %199 = load i32, ptr @tot, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr @tot, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %202
  store i32 %199, ptr %203, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br label %204

204:                                              ; preds = %194, %188
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = load i32, ptr %8, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %213
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %219
  %221 = getelementptr inbounds [5 x i32], ptr %220, i64 0, i64 0
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %221, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [5 x i32], ptr %214, i64 0, i64 %224
  store i32 %208, ptr %225, align 4, !tbaa !9
  store i32 0, ptr %5, align 4
  br label %226

226:                                              ; preds = %204, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %227 = load i32, ptr %5, align 4
  switch i32 %227, label %843 [
    i32 0, label %228
    i32 16, label %229
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228, %226
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %11, align 4, !tbaa !9
  br label %137, !llvm.loop !16

232:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %233

233:                                              ; preds = %232
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br label %127, !llvm.loop !17

234:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %235

235:                                              ; preds = %250, %234
  %236 = load i32, ptr %15, align 4, !tbaa !9
  %237 = icmp slt i32 %236, 3
  br i1 %237, label %239, label %238

238:                                              ; preds = %235
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %253

239:                                              ; preds = %235
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 %248
  store i32 %246, ptr %249, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %239
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %15, align 4, !tbaa !9
  br label %235, !llvm.loop !18

253:                                              ; preds = %238
  %254 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = icmp eq i32 %255, -1
  br i1 %256, label %257, label %265

257:                                              ; preds = %253
  %258 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 2
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = icmp eq i32 %259, -1
  br i1 %260, label %261, label %265

261:                                              ; preds = %257
  %262 = load i32, ptr @p, align 4, !tbaa !9
  %263 = shl i32 %262, 1
  %264 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %263)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %836

265:                                              ; preds = %257, %253
  %266 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 2
  %267 = load i32, ptr %266, align 4, !tbaa !9
  %268 = icmp eq i32 %267, -1
  br i1 %268, label %269, label %272

269:                                              ; preds = %265
  %270 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
  %271 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 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) %270, ptr noundef nonnull align 4 dereferenceable(4) %271) #8
  br label %272

272:                                              ; preds = %269, %265
  br label %273

273:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %274

274:                                              ; preds = %397, %273
  %275 = load i32, ptr %16, align 4, !tbaa !9
  %276 = load i32, ptr @tot, align 4, !tbaa !9
  %277 = icmp slt i32 %275, %276
  br i1 %277, label %279, label %278

278:                                              ; preds = %274
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %400

279:                                              ; preds = %274
  %280 = load i32, ptr @tot, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = mul i64 %281, 4
  call void @llvm.memset.p0.i64(ptr align 16 @dis, i8 0, i64 %282, i1 false)
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %284
  store i32 1, ptr %285, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br label %286

286:                                              ; preds = %328, %279
  %287 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %288 = xor i1 %287, true
  br i1 %288, label %289, label %329

289:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %290 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %291 = load i32, ptr %290, align 4, !tbaa !9
  store i32 %291, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %324, %289
  %293 = load i32, ptr %18, align 4, !tbaa !9
  %294 = load i32, ptr %17, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %295
  %297 = getelementptr inbounds [5 x i32], ptr %296, i64 0, i64 0
  %298 = load i32, ptr %297, align 4, !tbaa !9
  %299 = icmp sle i32 %293, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %292
  store i32 26, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %327

301:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %302 = load i32, ptr %17, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %303
  %305 = load i32, ptr %18, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [5 x i32], ptr %304, i64 0, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !9
  store i32 %308, ptr %19, align 4, !tbaa !9
  %309 = load i32, ptr %19, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !9
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %323, label %314

314:                                              ; preds = %301
  %315 = load i32, ptr %17, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  %320 = load i32, ptr %19, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %321
  store i32 %319, ptr %322, align 4, !tbaa !9
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %19)
  br label %323

323:                                              ; preds = %314, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %18, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %18, align 4, !tbaa !9
  br label %292, !llvm.loop !19

327:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %328

328:                                              ; preds = %327
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br label %286, !llvm.loop !20

329:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %393, %329
  %331 = load i32, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr @tot, align 4, !tbaa !9
  %333 = icmp slt i32 %331, %332
  br i1 %333, label %335, label %334

334:                                              ; preds = %330
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %396

335:                                              ; preds = %330
  %336 = load i32, ptr %20, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %337
  %339 = load i32, ptr %338, align 4, !tbaa !9
  %340 = icmp sle i32 %339, 2
  br i1 %340, label %341, label %348

341:                                              ; preds = %335
  %342 = load i32, ptr %16, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %343
  %345 = load i32, ptr %20, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [25 x i32], ptr %344, i64 0, i64 %346
  store i32 -1, ptr %347, align 4, !tbaa !9
  br label %393

348:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %349

349:                                              ; preds = %388, %348
  %350 = load i32, ptr %21, align 4, !tbaa !9
  %351 = load i32, ptr %20, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %352
  %354 = getelementptr inbounds [5 x i32], ptr %353, i64 0, i64 0
  %355 = load i32, ptr %354, align 4, !tbaa !9
  %356 = icmp sle i32 %350, %355
  br i1 %356, label %358, label %357

357:                                              ; preds = %349
  store i32 32, ptr %5, align 4
  br label %391

358:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %359 = load i32, ptr %20, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %360
  %362 = load i32, ptr %21, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [5 x i32], ptr %361, i64 0, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !9
  store i32 %365, ptr %22, align 4, !tbaa !9
  %366 = load i32, ptr %20, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !9
  %370 = load i32, ptr %22, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %371
  %373 = load i32, ptr %372, align 4, !tbaa !9
  %374 = add nsw i32 %373, 1
  %375 = icmp eq i32 %369, %374
  br i1 %375, label %376, label %384

376:                                              ; preds = %358
  %377 = load i32, ptr %22, align 4, !tbaa !9
  %378 = load i32, ptr %16, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %379
  %381 = load i32, ptr %20, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [25 x i32], ptr %380, i64 0, i64 %382
  store i32 %377, ptr %383, align 4, !tbaa !9
  store i32 32, ptr %5, align 4
  br label %385

384:                                              ; preds = %358
  store i32 0, ptr %5, align 4
  br label %385

385:                                              ; preds = %384, %376
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %386 = load i32, ptr %5, align 4
  switch i32 %386, label %391 [
    i32 0, label %387
  ]

387:                                              ; preds = %385
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %21, align 4, !tbaa !9
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %21, align 4, !tbaa !9
  br label %349, !llvm.loop !21

391:                                              ; preds = %385, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %392

392:                                              ; preds = %391
  br label %393

393:                                              ; preds = %392, %341
  %394 = load i32, ptr %20, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %20, align 4, !tbaa !9
  br label %330, !llvm.loop !22

396:                                              ; preds = %334
  br label %397

397:                                              ; preds = %396
  %398 = load i32, ptr %16, align 4, !tbaa !9
  %399 = add nsw i32 %398, 1
  store i32 %399, ptr %16, align 4, !tbaa !9
  br label %274, !llvm.loop !23

400:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #8
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  %401 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 2
  %402 = load i32, ptr %401, align 4, !tbaa !9
  %403 = icmp eq i32 %402, -1
  br i1 %403, label %404, label %584

404:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %405 = load i32, ptr @m, align 4, !tbaa !9
  %406 = load i32, ptr @p, align 4, !tbaa !9
  %407 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
  %408 = load i32, ptr %407, align 4, !tbaa !9
  %409 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
  %410 = load i32, ptr %409, align 4, !tbaa !9
  %411 = invoke noundef i32 @_Z5getIDiiii(i32 noundef %405, i32 noundef %406, i32 noundef %408, i32 noundef %410)
          to label %412 unwind label %432

412:                                              ; preds = %404
  store i32 %411, ptr %24, align 4, !tbaa !9
  %413 = load i32, ptr @p, align 4, !tbaa !9
  %414 = add nsw i32 %413, 1
  %415 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %416 unwind label %432

416:                                              ; preds = %412
  store i32 %414, ptr %415, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %417 unwind label %432

417:                                              ; preds = %416
  br label %418

418:                                              ; preds = %575, %417
  %419 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %420 unwind label %432

420:                                              ; preds = %418
  %421 = xor i1 %419, true
  br i1 %421, label %422, label %579

422:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %423 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %424 unwind label %436

424:                                              ; preds = %422
  %425 = load i32, ptr %423, align 4, !tbaa !9
  store i32 %425, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %426 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %427 unwind label %440

427:                                              ; preds = %424
  %428 = load i32, ptr %426, align 4, !tbaa !9
  store i32 %428, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %429 = load i32, ptr %28, align 4, !tbaa !9
  %430 = icmp sgt i32 %429, 34
  br i1 %430, label %431, label %444

431:                                              ; preds = %427
  store i32 37, ptr %5, align 4
  br label %571

432:                                              ; preds = %574, %418, %416, %412, %404
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %25, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %26, align 4
  br label %583

436:                                              ; preds = %422
  %437 = landingpad { ptr, i32 }
          cleanup
  %438 = extractvalue { ptr, i32 } %437, 0
  store ptr %438, ptr %25, align 8
  %439 = extractvalue { ptr, i32 } %437, 1
  store i32 %439, ptr %26, align 4
  br label %578

440:                                              ; preds = %424
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %25, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %26, align 4
  br label %577

444:                                              ; preds = %427
  %445 = load i32, ptr %27, align 4, !tbaa !9
  invoke void @_Z5setIDiRiS_S_S_(i32 noundef %445, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %446 unwind label %456

446:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %447

447:                                              ; preds = %564, %446
  %448 = load i32, ptr %33, align 4, !tbaa !9
  %449 = load i32, ptr %31, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %450
  %452 = getelementptr inbounds [5 x i32], ptr %451, i64 0, i64 0
  %453 = load i32, ptr %452, align 4, !tbaa !9
  %454 = icmp sle i32 %448, %453
  br i1 %454, label %460, label %455

455:                                              ; preds = %447
  store i32 38, ptr %5, align 4
  br label %568

456:                                              ; preds = %444
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %25, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %26, align 4
  br label %576

460:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %461 = load i32, ptr %33, align 4, !tbaa !9
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %471

463:                                              ; preds = %460
  %464 = load i32, ptr %31, align 4, !tbaa !9
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %465
  %467 = load i32, ptr %33, align 4, !tbaa !9
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds [5 x i32], ptr %466, i64 0, i64 %468
  %470 = load i32, ptr %469, align 4, !tbaa !9
  br label %473

471:                                              ; preds = %460
  %472 = load i32, ptr %31, align 4, !tbaa !9
  br label %473

473:                                              ; preds = %471, %463
  %474 = phi i32 [ %470, %463 ], [ %472, %471 ]
  store i32 %474, ptr %34, align 4, !tbaa !9
  %475 = load i32, ptr %34, align 4, !tbaa !9
  %476 = load i32, ptr %32, align 4, !tbaa !9
  %477 = icmp eq i32 %475, %476
  br i1 %477, label %478, label %479

478:                                              ; preds = %473
  store i32 40, ptr %5, align 4
  br label %561

479:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %480 = load i32, ptr %30, align 4, !tbaa !9
  %481 = load i32, ptr %33, align 4, !tbaa !9
  %482 = icmp ne i32 %481, 0
  %483 = xor i1 %482, true
  %484 = zext i1 %483 to i32
  %485 = sub nsw i32 %480, %484
  store i32 %485, ptr %35, align 4, !tbaa !9
  %486 = load i32, ptr %35, align 4, !tbaa !9
  %487 = icmp ne i32 %486, 0
  br i1 %487, label %496, label %488

488:                                              ; preds = %479
  %489 = load i32, ptr %28, align 4, !tbaa !9
  %490 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %489)
          to label %491 unwind label %492

491:                                              ; preds = %488
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %560

492:                                              ; preds = %488
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %25, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %26, align 4
  br label %567

496:                                              ; preds = %479
  %497 = load i32, ptr %28, align 4, !tbaa !9
  %498 = load i32, ptr %35, align 4, !tbaa !9
  %499 = add nsw i32 %497, %498
  %500 = icmp sgt i32 %499, 34
  br i1 %500, label %501, label %502

501:                                              ; preds = %496
  store i32 40, ptr %5, align 4
  br label %560

502:                                              ; preds = %496
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %503 = load i32, ptr %29, align 4, !tbaa !9
  %504 = load i32, ptr %34, align 4, !tbaa !9
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %505
  %507 = load i32, ptr %32, align 4, !tbaa !9
  %508 = sext i32 %507 to i64
  %509 = getelementptr inbounds [25 x i32], ptr %506, i64 0, i64 %508
  %510 = load i32, ptr %509, align 4, !tbaa !9
  %511 = icmp eq i32 %510, -1
  %512 = zext i1 %511 to i32
  %513 = sub nsw i32 %503, %512
  store i32 %513, ptr %36, align 4, !tbaa !9
  %514 = load i32, ptr %36, align 4, !tbaa !9
  %515 = icmp ne i32 %514, 0
  br i1 %515, label %517, label %516

516:                                              ; preds = %502
  store i32 40, ptr %5, align 4
  br label %559

517:                                              ; preds = %502
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %518 = load i32, ptr %34, align 4, !tbaa !9
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %519
  %521 = load i32, ptr %32, align 4, !tbaa !9
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [25 x i32], ptr %520, i64 0, i64 %522
  %524 = load i32, ptr %523, align 4, !tbaa !9
  %525 = icmp eq i32 %524, -1
  br i1 %525, label %526, label %528

526:                                              ; preds = %517
  %527 = load i32, ptr %32, align 4, !tbaa !9
  br label %536

528:                                              ; preds = %517
  %529 = load i32, ptr %34, align 4, !tbaa !9
  %530 = sext i32 %529 to i64
  %531 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %530
  %532 = load i32, ptr %32, align 4, !tbaa !9
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds [25 x i32], ptr %531, i64 0, i64 %533
  %535 = load i32, ptr %534, align 4, !tbaa !9
  br label %536

536:                                              ; preds = %528, %526
  %537 = phi i32 [ %527, %526 ], [ %535, %528 ]
  store i32 %537, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %538 = load i32, ptr %36, align 4, !tbaa !9
  %539 = load i32, ptr %35, align 4, !tbaa !9
  %540 = load i32, ptr %34, align 4, !tbaa !9
  %541 = load i32, ptr %37, align 4, !tbaa !9
  %542 = invoke noundef i32 @_Z5getIDiiii(i32 noundef %538, i32 noundef %539, i32 noundef %540, i32 noundef %541)
          to label %543 unwind label %554

543:                                              ; preds = %536
  store i32 %542, ptr %38, align 4, !tbaa !9
  %544 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %545 unwind label %554

545:                                              ; preds = %543
  %546 = load i32, ptr %544, align 4, !tbaa !9
  %547 = icmp ne i32 %546, 0
  br i1 %547, label %558, label %548

548:                                              ; preds = %545
  %549 = load i32, ptr %28, align 4, !tbaa !9
  %550 = add nsw i32 %549, 1
  %551 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %552 unwind label %554

552:                                              ; preds = %548
  store i32 %550, ptr %551, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %553 unwind label %554

553:                                              ; preds = %552
  br label %558

554:                                              ; preds = %552, %548, %543, %536
  %555 = landingpad { ptr, i32 }
          cleanup
  %556 = extractvalue { ptr, i32 } %555, 0
  store ptr %556, ptr %25, align 8
  %557 = extractvalue { ptr, i32 } %555, 1
  store i32 %557, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %567

558:                                              ; preds = %553, %545
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  store i32 0, ptr %5, align 4
  br label %559

559:                                              ; preds = %558, %516
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %560

560:                                              ; preds = %559, %501, %491
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %561

561:                                              ; preds = %560, %478
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  %562 = load i32, ptr %5, align 4
  switch i32 %562, label %568 [
    i32 0, label %563
    i32 40, label %564
  ]

563:                                              ; preds = %561
  br label %564

564:                                              ; preds = %563, %561
  %565 = load i32, ptr %33, align 4, !tbaa !9
  %566 = add nsw i32 %565, 1
  store i32 %566, ptr %33, align 4, !tbaa !9
  br label %447, !llvm.loop !24

567:                                              ; preds = %554, %492
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %576

568:                                              ; preds = %561, %455
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %569 = load i32, ptr %5, align 4
  switch i32 %569, label %571 [
    i32 38, label %570
  ]

570:                                              ; preds = %568
  store i32 0, ptr %5, align 4
  br label %571

571:                                              ; preds = %570, %568, %431
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  %572 = load i32, ptr %5, align 4
  switch i32 %572, label %580 [
    i32 0, label %573
    i32 37, label %574
  ]

573:                                              ; preds = %571
  br label %574

574:                                              ; preds = %573, %571
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %575 unwind label %432

575:                                              ; preds = %574
  br label %418, !llvm.loop !25

576:                                              ; preds = %567, %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %577

577:                                              ; preds = %576, %440
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %578

578:                                              ; preds = %577, %436
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %583

579:                                              ; preds = %420
  store i32 0, ptr %5, align 4
  br label %580

580:                                              ; preds = %579, %571
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %581 = load i32, ptr %5, align 4
  switch i32 %581, label %834 [
    i32 0, label %582
  ]

582:                                              ; preds = %580
  br label %827

583:                                              ; preds = %578, %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %835

584:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %585 = load i32, ptr @m, align 4, !tbaa !9
  %586 = load i32, ptr @p, align 4, !tbaa !9
  %587 = load i32, ptr @p, align 4, !tbaa !9
  %588 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
  %589 = load i32, ptr %588, align 4, !tbaa !9
  %590 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
  %591 = load i32, ptr %590, align 4, !tbaa !9
  %592 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 2
  %593 = load i32, ptr %592, align 4, !tbaa !9
  %594 = invoke noundef i32 @_Z5getIDiiiiii(i32 noundef %585, i32 noundef %586, i32 noundef %587, i32 noundef %589, i32 noundef %591, i32 noundef %593)
          to label %595 unwind label %613

595:                                              ; preds = %584
  store i32 %594, ptr %39, align 4, !tbaa !9
  %596 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %597 unwind label %613

597:                                              ; preds = %595
  store i32 1, ptr %596, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %598 unwind label %613

598:                                              ; preds = %597
  br label %599

599:                                              ; preds = %818, %598
  %600 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %601 unwind label %613

601:                                              ; preds = %599
  %602 = xor i1 %600, true
  br i1 %602, label %603, label %822

603:                                              ; preds = %601
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %604 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %605 unwind label %617

605:                                              ; preds = %603
  %606 = load i32, ptr %604, align 4, !tbaa !9
  store i32 %606, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %607 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %608 unwind label %621

608:                                              ; preds = %605
  %609 = load i32, ptr %607, align 4, !tbaa !9
  store i32 %609, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %610 = load i32, ptr %41, align 4, !tbaa !9
  %611 = icmp sgt i32 %610, 34
  br i1 %611, label %612, label %625

612:                                              ; preds = %608
  store i32 43, ptr %5, align 4
  br label %814

613:                                              ; preds = %817, %599, %597, %595, %584
  %614 = landingpad { ptr, i32 }
          cleanup
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %25, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %26, align 4
  br label %826

617:                                              ; preds = %603
  %618 = landingpad { ptr, i32 }
          cleanup
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %25, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %26, align 4
  br label %821

621:                                              ; preds = %605
  %622 = landingpad { ptr, i32 }
          cleanup
  %623 = extractvalue { ptr, i32 } %622, 0
  store ptr %623, ptr %25, align 8
  %624 = extractvalue { ptr, i32 } %622, 1
  store i32 %624, ptr %26, align 4
  br label %820

625:                                              ; preds = %608
  %626 = load i32, ptr %40, align 4, !tbaa !9
  invoke void @_Z5setIDiRiS_S_S_S_S_(i32 noundef %626, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %627 unwind label %637

627:                                              ; preds = %625
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  store i32 -1, ptr %48, align 4, !tbaa !9
  br label %628

628:                                              ; preds = %807, %627
  %629 = load i32, ptr %48, align 4, !tbaa !9
  %630 = load i32, ptr %45, align 4, !tbaa !9
  %631 = sext i32 %630 to i64
  %632 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %631
  %633 = getelementptr inbounds [5 x i32], ptr %632, i64 0, i64 0
  %634 = load i32, ptr %633, align 4, !tbaa !9
  %635 = icmp sle i32 %629, %634
  br i1 %635, label %641, label %636

636:                                              ; preds = %628
  store i32 44, ptr %5, align 4
  br label %811

637:                                              ; preds = %625
  %638 = landingpad { ptr, i32 }
          cleanup
  %639 = extractvalue { ptr, i32 } %638, 0
  store ptr %639, ptr %25, align 8
  %640 = extractvalue { ptr, i32 } %638, 1
  store i32 %640, ptr %26, align 4
  br label %819

641:                                              ; preds = %628
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %642 = load i32, ptr %48, align 4, !tbaa !9
  %643 = icmp sgt i32 %642, 0
  br i1 %643, label %644, label %652

644:                                              ; preds = %641
  %645 = load i32, ptr %45, align 4, !tbaa !9
  %646 = sext i32 %645 to i64
  %647 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %646
  %648 = load i32, ptr %48, align 4, !tbaa !9
  %649 = sext i32 %648 to i64
  %650 = getelementptr inbounds [5 x i32], ptr %647, i64 0, i64 %649
  %651 = load i32, ptr %650, align 4, !tbaa !9
  br label %654

652:                                              ; preds = %641
  %653 = load i32, ptr %45, align 4, !tbaa !9
  br label %654

654:                                              ; preds = %652, %644
  %655 = phi i32 [ %651, %644 ], [ %653, %652 ]
  store i32 %655, ptr %49, align 4, !tbaa !9
  %656 = load i32, ptr %43, align 4, !tbaa !9
  %657 = icmp ne i32 %656, 0
  br i1 %657, label %658, label %662

658:                                              ; preds = %654
  %659 = load i32, ptr %49, align 4, !tbaa !9
  %660 = load i32, ptr %46, align 4, !tbaa !9
  %661 = icmp eq i32 %659, %660
  br i1 %661, label %669, label %662

662:                                              ; preds = %658, %654
  %663 = load i32, ptr %44, align 4, !tbaa !9
  %664 = icmp ne i32 %663, 0
  br i1 %664, label %665, label %670

665:                                              ; preds = %662
  %666 = load i32, ptr %49, align 4, !tbaa !9
  %667 = load i32, ptr %47, align 4, !tbaa !9
  %668 = icmp eq i32 %666, %667
  br i1 %668, label %669, label %670

669:                                              ; preds = %665, %658
  store i32 46, ptr %5, align 4
  br label %804

670:                                              ; preds = %665, %662
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %671 = load i32, ptr %43, align 4, !tbaa !9
  %672 = load i32, ptr %48, align 4, !tbaa !9
  %673 = icmp slt i32 %672, 0
  %674 = zext i1 %673 to i32
  %675 = sub nsw i32 %671, %674
  store i32 %675, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %676 = load i32, ptr %44, align 4, !tbaa !9
  %677 = load i32, ptr %48, align 4, !tbaa !9
  %678 = icmp ne i32 %677, 0
  %679 = xor i1 %678, true
  %680 = zext i1 %679 to i32
  %681 = sub nsw i32 %676, %680
  store i32 %681, ptr %51, align 4, !tbaa !9
  %682 = load i32, ptr %50, align 4, !tbaa !9
  %683 = icmp slt i32 %682, 0
  br i1 %683, label %687, label %684

684:                                              ; preds = %670
  %685 = load i32, ptr %51, align 4, !tbaa !9
  %686 = icmp slt i32 %685, 0
  br i1 %686, label %687, label %688

687:                                              ; preds = %684, %670
  store i32 46, ptr %5, align 4
  br label %803

688:                                              ; preds = %684
  %689 = load i32, ptr %50, align 4, !tbaa !9
  %690 = icmp ne i32 %689, 0
  br i1 %690, label %702, label %691

691:                                              ; preds = %688
  %692 = load i32, ptr %51, align 4, !tbaa !9
  %693 = icmp ne i32 %692, 0
  br i1 %693, label %702, label %694

694:                                              ; preds = %691
  %695 = load i32, ptr %41, align 4, !tbaa !9
  %696 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %695)
          to label %697 unwind label %698

697:                                              ; preds = %694
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %803

698:                                              ; preds = %694
  %699 = landingpad { ptr, i32 }
          cleanup
  %700 = extractvalue { ptr, i32 } %699, 0
  store ptr %700, ptr %25, align 8
  %701 = extractvalue { ptr, i32 } %699, 1
  store i32 %701, ptr %26, align 4
  br label %810

702:                                              ; preds = %691, %688
  %703 = load i32, ptr %41, align 4, !tbaa !9
  %704 = load i32, ptr %50, align 4, !tbaa !9
  %705 = add nsw i32 %703, %704
  %706 = load i32, ptr %51, align 4, !tbaa !9
  %707 = add nsw i32 %705, %706
  %708 = icmp sgt i32 %707, 34
  br i1 %708, label %709, label %710

709:                                              ; preds = %702
  store i32 46, ptr %5, align 4
  br label %803

710:                                              ; preds = %702
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %711 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %711, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %712 = load i32, ptr %50, align 4, !tbaa !9
  %713 = icmp ne i32 %712, 0
  br i1 %713, label %716, label %714

714:                                              ; preds = %710
  %715 = load i32, ptr %49, align 4, !tbaa !9
  store i32 %715, ptr %53, align 4, !tbaa !9
  br label %738

716:                                              ; preds = %710
  %717 = load i32, ptr %49, align 4, !tbaa !9
  %718 = sext i32 %717 to i64
  %719 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %718
  %720 = load i32, ptr %46, align 4, !tbaa !9
  %721 = sext i32 %720 to i64
  %722 = getelementptr inbounds [25 x i32], ptr %719, i64 0, i64 %721
  %723 = load i32, ptr %722, align 4, !tbaa !9
  %724 = icmp eq i32 %723, -1
  br i1 %724, label %725, label %729

725:                                              ; preds = %716
  %726 = load i32, ptr %46, align 4, !tbaa !9
  store i32 %726, ptr %53, align 4, !tbaa !9
  %727 = load i32, ptr %52, align 4, !tbaa !9
  %728 = add nsw i32 %727, -1
  store i32 %728, ptr %52, align 4, !tbaa !9
  br label %737

729:                                              ; preds = %716
  %730 = load i32, ptr %49, align 4, !tbaa !9
  %731 = sext i32 %730 to i64
  %732 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %731
  %733 = load i32, ptr %46, align 4, !tbaa !9
  %734 = sext i32 %733 to i64
  %735 = getelementptr inbounds [25 x i32], ptr %732, i64 0, i64 %734
  %736 = load i32, ptr %735, align 4, !tbaa !9
  store i32 %736, ptr %53, align 4, !tbaa !9
  br label %737

737:                                              ; preds = %729, %725
  br label %738

738:                                              ; preds = %737, %714
  %739 = load i32, ptr %51, align 4, !tbaa !9
  %740 = icmp ne i32 %739, 0
  br i1 %740, label %743, label %741

741:                                              ; preds = %738
  %742 = load i32, ptr %49, align 4, !tbaa !9
  store i32 %742, ptr %54, align 4, !tbaa !9
  br label %769

743:                                              ; preds = %738
  %744 = load i32, ptr %49, align 4, !tbaa !9
  %745 = sext i32 %744 to i64
  %746 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %745
  %747 = load i32, ptr %47, align 4, !tbaa !9
  %748 = sext i32 %747 to i64
  %749 = getelementptr inbounds [25 x i32], ptr %746, i64 0, i64 %748
  %750 = load i32, ptr %749, align 4, !tbaa !9
  %751 = icmp eq i32 %750, -1
  br i1 %751, label %752, label %760

752:                                              ; preds = %743
  %753 = load i32, ptr %47, align 4, !tbaa !9
  store i32 %753, ptr %54, align 4, !tbaa !9
  %754 = load i32, ptr %53, align 4, !tbaa !9
  %755 = load i32, ptr %54, align 4, !tbaa !9
  %756 = icmp ne i32 %754, %755
  %757 = zext i1 %756 to i32
  %758 = load i32, ptr %52, align 4, !tbaa !9
  %759 = sub nsw i32 %758, %757
  store i32 %759, ptr %52, align 4, !tbaa !9
  br label %768

760:                                              ; preds = %743
  %761 = load i32, ptr %49, align 4, !tbaa !9
  %762 = sext i32 %761 to i64
  %763 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %762
  %764 = load i32, ptr %47, align 4, !tbaa !9
  %765 = sext i32 %764 to i64
  %766 = getelementptr inbounds [25 x i32], ptr %763, i64 0, i64 %765
  %767 = load i32, ptr %766, align 4, !tbaa !9
  store i32 %767, ptr %54, align 4, !tbaa !9
  br label %768

768:                                              ; preds = %760, %752
  br label %769

769:                                              ; preds = %768, %741
  %770 = load i32, ptr %52, align 4, !tbaa !9
  %771 = icmp sle i32 %770, 0
  br i1 %771, label %772, label %773

772:                                              ; preds = %769
  store i32 46, ptr %5, align 4
  br label %802

773:                                              ; preds = %769
  %774 = load i32, ptr %50, align 4, !tbaa !9
  %775 = load i32, ptr %51, align 4, !tbaa !9
  %776 = icmp sgt i32 %774, %775
  br i1 %776, label %777, label %778

777:                                              ; preds = %773
  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) %50, ptr noundef nonnull align 4 dereferenceable(4) %51) #8
  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) %53, ptr noundef nonnull align 4 dereferenceable(4) %54) #8
  br label %778

778:                                              ; preds = %777, %773
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %779 = load i32, ptr %52, align 4, !tbaa !9
  %780 = load i32, ptr %50, align 4, !tbaa !9
  %781 = load i32, ptr %51, align 4, !tbaa !9
  %782 = load i32, ptr %49, align 4, !tbaa !9
  %783 = load i32, ptr %53, align 4, !tbaa !9
  %784 = load i32, ptr %54, align 4, !tbaa !9
  %785 = invoke noundef i32 @_Z5getIDiiiiii(i32 noundef %779, i32 noundef %780, i32 noundef %781, i32 noundef %782, i32 noundef %783, i32 noundef %784)
          to label %786 unwind label %797

786:                                              ; preds = %778
  store i32 %785, ptr %55, align 4, !tbaa !9
  %787 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %788 unwind label %797

788:                                              ; preds = %786
  %789 = load i32, ptr %787, align 4, !tbaa !9
  %790 = icmp ne i32 %789, 0
  br i1 %790, label %801, label %791

791:                                              ; preds = %788
  %792 = load i32, ptr %41, align 4, !tbaa !9
  %793 = add nsw i32 %792, 1
  %794 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %795 unwind label %797

795:                                              ; preds = %791
  store i32 %793, ptr %794, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %796 unwind label %797

796:                                              ; preds = %795
  br label %801

797:                                              ; preds = %795, %791, %786, %778
  %798 = landingpad { ptr, i32 }
          cleanup
  %799 = extractvalue { ptr, i32 } %798, 0
  store ptr %799, ptr %25, align 8
  %800 = extractvalue { ptr, i32 } %798, 1
  store i32 %800, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %810

801:                                              ; preds = %796, %788
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  store i32 0, ptr %5, align 4
  br label %802

802:                                              ; preds = %801, %772
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %803

803:                                              ; preds = %802, %709, %697, %687
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %804

804:                                              ; preds = %803, %669
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  %805 = load i32, ptr %5, align 4
  switch i32 %805, label %811 [
    i32 0, label %806
    i32 46, label %807
  ]

806:                                              ; preds = %804
  br label %807

807:                                              ; preds = %806, %804
  %808 = load i32, ptr %48, align 4, !tbaa !9
  %809 = add nsw i32 %808, 1
  store i32 %809, ptr %48, align 4, !tbaa !9
  br label %628, !llvm.loop !26

810:                                              ; preds = %797, %698
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %819

811:                                              ; preds = %804, %636
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  %812 = load i32, ptr %5, align 4
  switch i32 %812, label %814 [
    i32 44, label %813
  ]

813:                                              ; preds = %811
  store i32 0, ptr %5, align 4
  br label %814

814:                                              ; preds = %813, %811, %612
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  %815 = load i32, ptr %5, align 4
  switch i32 %815, label %823 [
    i32 0, label %816
    i32 43, label %817
  ]

816:                                              ; preds = %814
  br label %817

817:                                              ; preds = %816, %814
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
          to label %818 unwind label %613

818:                                              ; preds = %817
  br label %599, !llvm.loop !27

819:                                              ; preds = %810, %637
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %820

820:                                              ; preds = %819, %621
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %821

821:                                              ; preds = %820, %617
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %826

822:                                              ; preds = %601
  store i32 0, ptr %5, align 4
  br label %823

823:                                              ; preds = %822, %814
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  %824 = load i32, ptr %5, align 4
  switch i32 %824, label %834 [
    i32 0, label %825
  ]

825:                                              ; preds = %823
  br label %827

826:                                              ; preds = %821, %613
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %835

827:                                              ; preds = %825, %582
  %828 = invoke i32 @puts(ptr noundef @.str.4)
          to label %829 unwind label %830

829:                                              ; preds = %827
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %834

830:                                              ; preds = %827
  %831 = landingpad { ptr, i32 }
          cleanup
  %832 = extractvalue { ptr, i32 } %831, 0
  store ptr %832, ptr %25, align 8
  %833 = extractvalue { ptr, i32 } %831, 1
  store i32 %833, ptr %26, align 4
  br label %835

834:                                              ; preds = %829, %823, %580
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #8
  br label %836

835:                                              ; preds = %830, %826, %583
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %838

836:                                              ; preds = %834, %261, %115
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %837 = load i32, ptr %1, align 4
  ret i32 %837

838:                                              ; preds = %835
  %839 = load ptr, ptr %25, align 8
  %840 = load i32, ptr %26, align 4
  %841 = insertvalue { ptr, i32 } poison, ptr %839, 0
  %842 = insertvalue { ptr, i32 } %841, i32 %840, 1
  resume { ptr, i32 } %842

843:                                              ; preds = %226
  unreachable
}

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

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

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

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

declare i32 @puts(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

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

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

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z5setIDiRiS_S_S_(i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), 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 i32 @_Z5getIDiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@idx = external dso_local local_unnamed_addr global [25 x i32], align 16
@dis = external dso_local local_unnamed_addr global [25 x i32], align 16
@e = external dso_local local_unnamed_addr global [25 x [5 x i32]], align 16
@nxt = external dso_local local_unnamed_addr global [25 x [25 x i32]], align 16
@buf = external dso_local global [5 x [7 x i8]], align 16
@Q = external dso_local global %"class.std::queue", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@__const.main.pos = external hidden unnamed_addr constant [3 x i32], align 4
@.str.2 = 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 [5 x i8], align 1
@_ZZ4mainE3ref = external hidden local_unnamed_addr global [25 x i32], align 16
@_ZL2dx = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL2dy = external hidden local_unnamed_addr constant [4 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [3 x i32], align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::map", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, 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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.pos, i64 12, i1 false)
  %.pre = load i8, ptr @.str, align 1, !tbaa !5
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @.str, i64 1), align 1
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @.str, i64 2), align 1
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = getelementptr inbounds i8, ptr %1, i64 4
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = getelementptr inbounds i8, ptr %1, i64 4
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  %36 = getelementptr inbounds i8, ptr %1, i64 4
  %37 = getelementptr inbounds i8, ptr %1, i64 8
  br label %.preheader237

38:                                               ; preds = %113
  %39 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @m, ptr noundef nonnull @p)
  %40 = load i32, ptr @p, align 4, !tbaa !8
  %41 = icmp sgt i32 %40, 17
  br i1 %41, label %114, label %116

.preheader237:                                    ; preds = %0, %113
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %113 ]
  %42 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %indvars.iv
  %43 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %42)
  %44 = mul nuw nsw i64 %indvars.iv, 5
  %45 = load i8, ptr %42, align 1, !tbaa !5
  %46 = icmp eq i8 %45, %.pre
  br i1 %46, label %47, label %49

47:                                               ; preds = %.preheader237
  %48 = trunc nuw nsw i64 %44 to i32
  store i32 %48, ptr %1, align 4, !tbaa !8
  br label %49

49:                                               ; preds = %.preheader237, %47
  %50 = icmp eq i8 %45, %26
  br i1 %50, label %51, label %53

51:                                               ; preds = %49
  %52 = trunc nuw nsw i64 %44 to i32
  store i32 %52, ptr %27, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %51, %49
  %54 = icmp eq i8 %45, %28
  br i1 %54, label %55, label %.preheader237.1

55:                                               ; preds = %53
  %56 = trunc nuw nsw i64 %44 to i32
  store i32 %56, ptr %29, align 4, !tbaa !8
  br label %.preheader237.1

.preheader237.1:                                  ; preds = %55, %53
  %57 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %indvars.iv, i64 1
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = add nuw nsw i64 %44, 1
  %60 = icmp eq i8 %58, %.pre
  br i1 %60, label %61, label %63

61:                                               ; preds = %.preheader237.1
  %62 = trunc nuw nsw i64 %59 to i32
  store i32 %62, ptr %1, align 4, !tbaa !8
  br label %63

63:                                               ; preds = %61, %.preheader237.1
  %64 = icmp eq i8 %58, %26
  br i1 %64, label %65, label %67

65:                                               ; preds = %63
  %66 = trunc nuw nsw i64 %59 to i32
  store i32 %66, ptr %30, align 4, !tbaa !8
  br label %67

67:                                               ; preds = %65, %63
  %68 = icmp eq i8 %58, %28
  br i1 %68, label %69, label %.preheader237.2

69:                                               ; preds = %67
  %70 = trunc nuw nsw i64 %59 to i32
  store i32 %70, ptr %31, align 4, !tbaa !8
  br label %.preheader237.2

.preheader237.2:                                  ; preds = %69, %67
  %71 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %indvars.iv, i64 2
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %73 = add nuw nsw i64 %44, 2
  %74 = icmp eq i8 %72, %.pre
  br i1 %74, label %75, label %77

75:                                               ; preds = %.preheader237.2
  %76 = trunc nuw nsw i64 %73 to i32
  store i32 %76, ptr %1, align 4, !tbaa !8
  br label %77

77:                                               ; preds = %75, %.preheader237.2
  %78 = icmp eq i8 %72, %26
  br i1 %78, label %79, label %81

79:                                               ; preds = %77
  %80 = trunc nuw nsw i64 %73 to i32
  store i32 %80, ptr %32, align 4, !tbaa !8
  br label %81

81:                                               ; preds = %79, %77
  %82 = icmp eq i8 %72, %28
  br i1 %82, label %83, label %.preheader237.3

83:                                               ; preds = %81
  %84 = trunc nuw nsw i64 %73 to i32
  store i32 %84, ptr %33, align 4, !tbaa !8
  br label %.preheader237.3

.preheader237.3:                                  ; preds = %83, %81
  %85 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %indvars.iv, i64 3
  %86 = load i8, ptr %85, align 1, !tbaa !5
  %87 = add nuw nsw i64 %44, 3
  %88 = icmp eq i8 %86, %.pre
  br i1 %88, label %89, label %91

89:                                               ; preds = %.preheader237.3
  %90 = trunc nuw nsw i64 %87 to i32
  store i32 %90, ptr %1, align 4, !tbaa !8
  br label %91

91:                                               ; preds = %89, %.preheader237.3
  %92 = icmp eq i8 %86, %26
  br i1 %92, label %93, label %95

93:                                               ; preds = %91
  %94 = trunc nuw nsw i64 %87 to i32
  store i32 %94, ptr %34, align 4, !tbaa !8
  br label %95

95:                                               ; preds = %93, %91
  %96 = icmp eq i8 %86, %28
  br i1 %96, label %97, label %.preheader237.4

97:                                               ; preds = %95
  %98 = trunc nuw nsw i64 %87 to i32
  store i32 %98, ptr %35, align 4, !tbaa !8
  br label %.preheader237.4

.preheader237.4:                                  ; preds = %97, %95
  %99 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %indvars.iv, i64 4
  %100 = load i8, ptr %99, align 1, !tbaa !5
  %101 = add nuw nsw i64 %44, 4
  %102 = icmp eq i8 %100, %.pre
  br i1 %102, label %103, label %105

103:                                              ; preds = %.preheader237.4
  %104 = trunc nuw nsw i64 %101 to i32
  store i32 %104, ptr %1, align 4, !tbaa !8
  br label %105

105:                                              ; preds = %103, %.preheader237.4
  %106 = icmp eq i8 %100, %26
  br i1 %106, label %107, label %109

107:                                              ; preds = %105
  %108 = trunc nuw nsw i64 %101 to i32
  store i32 %108, ptr %36, align 4, !tbaa !8
  br label %109

109:                                              ; preds = %107, %105
  %110 = icmp eq i8 %100, %28
  br i1 %110, label %111, label %113

111:                                              ; preds = %109
  %112 = trunc nuw nsw i64 %101 to i32
  store i32 %112, ptr %37, align 4, !tbaa !8
  br label %113

113:                                              ; preds = %111, %109
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 5
  br i1 %exitcond.not, label %38, label %.preheader237, !llvm.loop !10

114:                                              ; preds = %38
  %115 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %545

116:                                              ; preds = %38
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) @idx, i8 -1, i64 100, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) @_ZZ4mainE3ref, i8 -1, i64 100, i1 false)
  %117 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %117, ptr @_ZZ4mainE3ref, align 16, !tbaa !8
  %118 = load i32, ptr @tot, align 4, !tbaa !8
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr @tot, align 4, !tbaa !8
  %120 = sext i32 %117 to i64
  %121 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %120
  store i32 %118, ptr %121, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %122 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %122, label %.preheader236, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %116
  %.pre309 = load i32, ptr @_ZL2dx, align 16, !tbaa !8
  %.pre310 = load i32, ptr @_ZL2dy, align 16, !tbaa !8
  %123 = mul nsw i32 %.pre309, 5
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 4), align 4
  %125 = mul nsw i32 %124, 5
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 4), align 4
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 8), align 8
  %128 = mul nsw i32 %127, 5
  %129 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 8), align 8
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dx, i64 12), align 4
  %131 = mul nsw i32 %130, 5
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL2dy, i64 12), align 4
  br label %.lr.ph

.preheader236:                                    ; preds = %278, %116
  %133 = load i32, ptr %1, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !8
  store i32 %136, ptr %1, align 4, !tbaa !8
  %137 = getelementptr inbounds i8, ptr %1, i64 4
  %138 = load i32, ptr %137, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !8
  store i32 %141, ptr %137, align 4, !tbaa !8
  %142 = getelementptr inbounds i8, ptr %1, i64 8
  %143 = load i32, ptr %142, align 4, !tbaa !8
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !8
  store i32 %146, ptr %142, align 4, !tbaa !8
  %147 = icmp eq i32 %141, -1
  %148 = icmp eq i32 %146, -1
  %or.cond12 = select i1 %147, i1 %148, i1 false
  br i1 %or.cond12, label %280, label %284

.lr.ph:                                           ; preds = %.lr.ph.preheader, %278
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %150 = load i32, ptr %149, align 4, !tbaa !8
  %151 = sdiv i32 %150, 5
  %152 = srem i32 %150, 5
  %153 = sext i32 %150 to i64
  %154 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %153
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %155 = add nsw i32 %123, %150
  %156 = add nsw i32 %155, %.pre310
  store i32 %156, ptr %2, align 4, !tbaa !8
  %157 = add nsw i32 %.pre309, %151
  %158 = add nsw i32 %.pre310, %152
  %or.cond = icmp ugt i32 %157, 4
  %159 = icmp ugt i32 %158, 4
  %or.cond9 = select i1 %or.cond, i1 true, i1 %159
  br i1 %or.cond9, label %185, label %160

160:                                              ; preds = %.lr.ph
  %161 = zext nneg i32 %157 to i64
  %162 = zext nneg i32 %158 to i64
  %163 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %161, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !5
  %165 = icmp eq i8 %164, 49
  br i1 %165, label %185, label %166

166:                                              ; preds = %160
  %167 = sext i32 %156 to i64
  %168 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !8
  %170 = icmp eq i32 %169, -1
  br i1 %170, label %171, label %176

171:                                              ; preds = %166
  %172 = load i32, ptr @tot, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [25 x i32], ptr @_ZZ4mainE3ref, i64 0, i64 %173
  store i32 %156, ptr %174, align 4, !tbaa !8
  %175 = add nsw i32 %172, 1
  store i32 %175, ptr @tot, align 4, !tbaa !8
  store i32 %172, ptr %168, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre311 = load i32, ptr %2, align 4, !tbaa !8
  %.phi.trans.insert = sext i32 %.pre311 to i64
  %.phi.trans.insert312 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %.phi.trans.insert
  %.pre313 = load i32, ptr %.phi.trans.insert312, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %171, %166
  %177 = phi i32 [ %.pre313, %171 ], [ %169, %166 ]
  %178 = load i32, ptr %154, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !8
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %180, align 4, !tbaa !8
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %179, i64 %183
  store i32 %177, ptr %184, align 4, !tbaa !8
  br label %185

185:                                              ; preds = %.lr.ph, %160, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %186 = add nsw i32 %125, %150
  %187 = add nsw i32 %186, %126
  store i32 %187, ptr %2, align 4, !tbaa !8
  %188 = add nsw i32 %124, %151
  %189 = add nsw i32 %126, %152
  %or.cond.1 = icmp ugt i32 %188, 4
  %190 = icmp ugt i32 %189, 4
  %or.cond9.1 = select i1 %or.cond.1, i1 true, i1 %190
  br i1 %or.cond9.1, label %216, label %191

191:                                              ; preds = %185
  %192 = zext nneg i32 %188 to i64
  %193 = zext nneg i32 %189 to i64
  %194 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %192, i64 %193
  %195 = load i8, ptr %194, align 1, !tbaa !5
  %196 = icmp eq i8 %195, 49
  br i1 %196, label %216, label %197

197:                                              ; preds = %191
  %198 = sext i32 %187 to i64
  %199 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !8
  %201 = icmp eq i32 %200, -1
  br i1 %201, label %202, label %207

202:                                              ; preds = %197
  %203 = load i32, ptr @tot, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [25 x i32], ptr @_ZZ4mainE3ref, i64 0, i64 %204
  store i32 %187, ptr %205, align 4, !tbaa !8
  %206 = add nsw i32 %203, 1
  store i32 %206, ptr @tot, align 4, !tbaa !8
  store i32 %203, ptr %199, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre314 = load i32, ptr %2, align 4, !tbaa !8
  %.phi.trans.insert315 = sext i32 %.pre314 to i64
  %.phi.trans.insert316 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %.phi.trans.insert315
  %.pre317 = load i32, ptr %.phi.trans.insert316, align 4, !tbaa !8
  br label %207

207:                                              ; preds = %202, %197
  %208 = phi i32 [ %.pre317, %202 ], [ %200, %197 ]
  %209 = load i32, ptr %154, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !8
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %211, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %210, i64 %214
  store i32 %208, ptr %215, align 4, !tbaa !8
  br label %216

216:                                              ; preds = %207, %191, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %217 = add nsw i32 %128, %150
  %218 = add nsw i32 %217, %129
  store i32 %218, ptr %2, align 4, !tbaa !8
  %219 = add nsw i32 %127, %151
  %220 = add nsw i32 %129, %152
  %or.cond.2 = icmp ugt i32 %219, 4
  %221 = icmp ugt i32 %220, 4
  %or.cond9.2 = select i1 %or.cond.2, i1 true, i1 %221
  br i1 %or.cond9.2, label %247, label %222

222:                                              ; preds = %216
  %223 = zext nneg i32 %219 to i64
  %224 = zext nneg i32 %220 to i64
  %225 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %223, i64 %224
  %226 = load i8, ptr %225, align 1, !tbaa !5
  %227 = icmp eq i8 %226, 49
  br i1 %227, label %247, label %228

228:                                              ; preds = %222
  %229 = sext i32 %218 to i64
  %230 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !8
  %232 = icmp eq i32 %231, -1
  br i1 %232, label %233, label %238

233:                                              ; preds = %228
  %234 = load i32, ptr @tot, align 4, !tbaa !8
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [25 x i32], ptr @_ZZ4mainE3ref, i64 0, i64 %235
  store i32 %218, ptr %236, align 4, !tbaa !8
  %237 = add nsw i32 %234, 1
  store i32 %237, ptr @tot, align 4, !tbaa !8
  store i32 %234, ptr %230, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre318 = load i32, ptr %2, align 4, !tbaa !8
  %.phi.trans.insert319 = sext i32 %.pre318 to i64
  %.phi.trans.insert320 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %.phi.trans.insert319
  %.pre321 = load i32, ptr %.phi.trans.insert320, align 4, !tbaa !8
  br label %238

238:                                              ; preds = %233, %228
  %239 = phi i32 [ %.pre321, %233 ], [ %231, %228 ]
  %240 = load i32, ptr %154, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !8
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %242, align 4, !tbaa !8
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %241, i64 %245
  store i32 %239, ptr %246, align 4, !tbaa !8
  br label %247

247:                                              ; preds = %238, %222, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %248 = add nsw i32 %131, %150
  %249 = add nsw i32 %248, %132
  store i32 %249, ptr %2, align 4, !tbaa !8
  %250 = add nsw i32 %130, %151
  %251 = add nsw i32 %132, %152
  %or.cond.3 = icmp ugt i32 %250, 4
  %252 = icmp ugt i32 %251, 4
  %or.cond9.3 = select i1 %or.cond.3, i1 true, i1 %252
  br i1 %or.cond9.3, label %278, label %253

253:                                              ; preds = %247
  %254 = zext nneg i32 %250 to i64
  %255 = zext nneg i32 %251 to i64
  %256 = getelementptr inbounds [5 x [7 x i8]], ptr @buf, i64 0, i64 %254, i64 %255
  %257 = load i8, ptr %256, align 1, !tbaa !5
  %258 = icmp eq i8 %257, 49
  br i1 %258, label %278, label %259

259:                                              ; preds = %253
  %260 = sext i32 %249 to i64
  %261 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !8
  %263 = icmp eq i32 %262, -1
  br i1 %263, label %264, label %269

264:                                              ; preds = %259
  %265 = load i32, ptr @tot, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [25 x i32], ptr @_ZZ4mainE3ref, i64 0, i64 %266
  store i32 %249, ptr %267, align 4, !tbaa !8
  %268 = add nsw i32 %265, 1
  store i32 %268, ptr @tot, align 4, !tbaa !8
  store i32 %265, ptr %261, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre322 = load i32, ptr %2, align 4, !tbaa !8
  %.phi.trans.insert323 = sext i32 %.pre322 to i64
  %.phi.trans.insert324 = getelementptr inbounds [25 x i32], ptr @idx, i64 0, i64 %.phi.trans.insert323
  %.pre325 = load i32, ptr %.phi.trans.insert324, align 4, !tbaa !8
  br label %269

269:                                              ; preds = %264, %259
  %270 = phi i32 [ %.pre325, %264 ], [ %262, %259 ]
  %271 = load i32, ptr %154, align 4, !tbaa !8
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !8
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %273, align 4, !tbaa !8
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %272, i64 %276
  store i32 %270, ptr %277, align 4, !tbaa !8
  br label %278

278:                                              ; preds = %269, %253, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %279 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %279, label %.preheader236, label %.lr.ph, !llvm.loop !12

280:                                              ; preds = %.preheader236
  %281 = load i32, ptr @p, align 4, !tbaa !8
  %282 = shl i32 %281, 1
  %283 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %282)
  br label %545

284:                                              ; preds = %.preheader236
  br i1 %148, label %285, label %286

285:                                              ; preds = %284
  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) %137, ptr noundef nonnull align 4 dereferenceable(4) %142) #8
  br label %286

286:                                              ; preds = %284, %285
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 0, ptr %3, align 4, !tbaa !8
  %287 = load i32, ptr @tot, align 4, !tbaa !8
  %288 = icmp sgt i32 %287, 0
  br i1 %288, label %.lr.ph259, label %._crit_edge260

._crit_edge260:                                   ; preds = %._crit_edge256, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  %289 = load i32, ptr %142, align 4, !tbaa !8
  %290 = icmp eq i32 %289, -1
  br i1 %290, label %337, label %432

.lr.ph259:                                        ; preds = %286, %._crit_edge256
  %291 = phi i32 [ %297, %._crit_edge256 ], [ %287, %286 ]
  %storemerge257 = phi i32 [ %320, %._crit_edge256 ], [ 0, %286 ]
  %292 = sext i32 %291 to i64
  %293 = shl nsw i64 %292, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @dis, i8 0, i64 %293, i1 false)
  %294 = sext i32 %storemerge257 to i64
  %295 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %294
  store i32 1, ptr %295, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %296 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %296, label %.preheader235, label %.lr.ph251

.preheader235:                                    ; preds = %._crit_edge, %.lr.ph259
  %297 = load i32, ptr @tot, align 4, !tbaa !8
  %298 = icmp sgt i32 %297, 0
  %.pre327 = load i32, ptr %3, align 4
  br i1 %298, label %.lr.ph255, label %._crit_edge256

.lr.ph255:                                        ; preds = %.preheader235
  %299 = sext i32 %.pre327 to i64
  %wide.trip.count299 = zext nneg i32 %297 to i64
  br label %322

.lr.ph251:                                        ; preds = %.lr.ph259, %._crit_edge
  %300 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %301 = load i32, ptr %300, align 4, !tbaa !8
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %302
  %304 = load i32, ptr %303, align 4, !tbaa !8
  %.not198247 = icmp slt i32 %304, 1
  br i1 %.not198247, label %._crit_edge, label %.lr.ph249

.lr.ph249:                                        ; preds = %.lr.ph251
  %305 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %302
  br label %307

._crit_edge:                                      ; preds = %317, %.lr.ph251
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %306 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %306, label %.preheader235, label %.lr.ph251, !llvm.loop !13

307:                                              ; preds = %.lr.ph249, %317
  %308 = phi i32 [ %304, %.lr.ph249 ], [ %318, %317 ]
  %indvars.iv289 = phi i64 [ 1, %.lr.ph249 ], [ %indvars.iv.next290, %317 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %309 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %302, i64 %indvars.iv289
  %310 = load i32, ptr %309, align 4, !tbaa !8
  store i32 %310, ptr %4, align 4, !tbaa !8
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !8
  %.not199 = icmp eq i32 %313, 0
  br i1 %.not199, label %314, label %317

314:                                              ; preds = %307
  %315 = load i32, ptr %305, align 4, !tbaa !8
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %312, align 4, !tbaa !8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %.pre326 = load i32, ptr %303, align 4, !tbaa !8
  br label %317

317:                                              ; preds = %314, %307
  %318 = phi i32 [ %.pre326, %314 ], [ %308, %307 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %indvars.iv.next290 = add nuw nsw i64 %indvars.iv289, 1
  %319 = sext i32 %318 to i64
  %.not198.not = icmp slt i64 %indvars.iv289, %319
  br i1 %.not198.not, label %307, label %._crit_edge, !llvm.loop !14

._crit_edge256:                                   ; preds = %.loopexit234, %.preheader235
  %320 = add nsw i32 %.pre327, 1
  store i32 %320, ptr %3, align 4, !tbaa !8
  %321 = icmp slt i32 %320, %297
  br i1 %321, label %.lr.ph259, label %._crit_edge260, !llvm.loop !15

322:                                              ; preds = %.lr.ph255, %.loopexit234
  %indvars.iv296 = phi i64 [ 0, %.lr.ph255 ], [ %indvars.iv.next297, %.loopexit234 ]
  %323 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %indvars.iv296
  %324 = load i32, ptr %323, align 4, !tbaa !8
  %325 = icmp slt i32 %324, 3
  br i1 %325, label %.loopexit234.sink.split, label %.preheader233

.preheader233:                                    ; preds = %322
  %326 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %indvars.iv296
  %327 = load i32, ptr %326, align 4, !tbaa !8
  %.not196252 = icmp slt i32 %327, 1
  br i1 %.not196252, label %.loopexit234, label %.critedge.preheader

.critedge.preheader:                              ; preds = %.preheader233
  %328 = add nuw i32 %327, 1
  %wide.trip.count = zext i32 %328 to i64
  br label %.critedge

329:                                              ; preds = %.critedge
  %indvars.iv.next293 = add nuw nsw i64 %indvars.iv292, 1
  %exitcond295.not = icmp eq i64 %indvars.iv.next293, %wide.trip.count
  br i1 %exitcond295.not, label %.loopexit234, label %.critedge, !llvm.loop !16

.critedge:                                        ; preds = %.critedge.preheader, %329
  %indvars.iv292 = phi i64 [ 1, %.critedge.preheader ], [ %indvars.iv.next293, %329 ]
  %330 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %indvars.iv296, i64 %indvars.iv292
  %331 = load i32, ptr %330, align 4, !tbaa !8
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [25 x i32], ptr @dis, i64 0, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !8
  %335 = add nsw i32 %334, 1
  %.not197 = icmp eq i32 %324, %335
  br i1 %.not197, label %.loopexit234.sink.split, label %329

.loopexit234.sink.split:                          ; preds = %.critedge, %322
  %.lcssa354.sink = phi i32 [ -1, %322 ], [ %331, %.critedge ]
  %336 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %299, i64 %indvars.iv296
  store i32 %.lcssa354.sink, ptr %336, align 4, !tbaa !8
  br label %.loopexit234

.loopexit234:                                     ; preds = %329, %.loopexit234.sink.split, %.preheader233
  %indvars.iv.next297 = add nuw nsw i64 %indvars.iv296, 1
  %exitcond300.not = icmp eq i64 %indvars.iv.next297, %wide.trip.count299
  br i1 %exitcond300.not, label %._crit_edge256, label %322, !llvm.loop !17

337:                                              ; preds = %._crit_edge260
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %338 = load i32, ptr @m, align 4, !tbaa !8
  %339 = load i32, ptr @p, align 4, !tbaa !8
  %340 = load i32, ptr %1, align 4, !tbaa !8
  %341 = load i32, ptr %137, align 4, !tbaa !8
  %342 = call noundef i32 @_Z5getIDiiii(i32 noundef %338, i32 noundef %339, i32 noundef %340, i32 noundef %341)
  store i32 %342, ptr %6, align 4, !tbaa !8
  %343 = load i32, ptr @p, align 4, !tbaa !8
  %344 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %345 unwind label %354

345:                                              ; preds = %337
  %346 = add nsw i32 %343, 1
  store i32 %346, ptr %344, align 4, !tbaa !8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader unwind label %354

.preheader:                                       ; preds = %345
  %347 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %347, label %.thread211, label %.lr.ph270

.thread211:                                       ; preds = %.loopexit, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %541

.lr.ph270:                                        ; preds = %.preheader, %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %348 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %349 = load i32, ptr %348, align 4, !tbaa !8
  store i32 %349, ptr %7, align 4, !tbaa !8
  %350 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %351 unwind label %356

351:                                              ; preds = %.lr.ph270
  %352 = load i32, ptr %350, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %353 = icmp sgt i32 %352, 34
  br i1 %353, label %.loopexit, label %358

354:                                              ; preds = %345, %337
  %355 = landingpad { ptr, i32 }
          cleanup
  br label %431

356:                                              ; preds = %.lr.ph270
  %357 = landingpad { ptr, i32 }
          cleanup
  br label %429

358:                                              ; preds = %351
  %359 = load i32, ptr %7, align 4, !tbaa !8
  call void @_Z5setIDiRiS_S_S_(i32 noundef %359, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %360 = load i32, ptr %10, align 4, !tbaa !8
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %361
  %363 = load i32, ptr %362, align 4, !tbaa !8
  %.not185266 = icmp slt i32 %363, 0
  br i1 %.not185266, label %.loopexit, label %364

364:                                              ; preds = %358
  %365 = add nsw i32 %352, 1
  %366 = load i32, ptr %11, align 4, !tbaa !8
  %367 = icmp eq i32 %360, %366
  br i1 %367, label %390, label %368

368:                                              ; preds = %364
  %369 = load i32, ptr %9, align 4, !tbaa !8
  %370 = add i32 %369, -1
  %.not188.peel = icmp eq i32 %370, 0
  br i1 %.not188.peel, label %.loopexit305, label %371

371:                                              ; preds = %368
  %372 = add nsw i32 %370, %352
  %373 = icmp sgt i32 %372, 34
  br i1 %373, label %390, label %374

374:                                              ; preds = %371
  %375 = load i32, ptr %8, align 4, !tbaa !8
  %376 = sext i32 %366 to i64
  %377 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %361, i64 %376
  %378 = load i32, ptr %377, align 4, !tbaa !8
  %379 = icmp eq i32 %378, -1
  %.neg189.peel = sext i1 %379 to i32
  %380 = add i32 %375, %.neg189.peel
  %.not190.peel = icmp eq i32 %380, 0
  br i1 %.not190.peel, label %390, label %381

381:                                              ; preds = %374
  %..peel = select i1 %379, i32 %366, i32 %378
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %382 = call noundef i32 @_Z5getIDiiii(i32 noundef %380, i32 noundef %370, i32 noundef %360, i32 noundef %..peel)
  store i32 %382, ptr %12, align 4, !tbaa !8
  %383 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %384 unwind label %.loopexit.split-lp

384:                                              ; preds = %381
  %385 = load i32, ptr %383, align 4, !tbaa !8
  %.not191.peel = icmp eq i32 %385, 0
  br i1 %.not191.peel, label %386, label %389

386:                                              ; preds = %384
  %387 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %388 unwind label %.loopexit.split-lp

388:                                              ; preds = %386
  store i32 %365, ptr %387, align 4, !tbaa !8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %389 unwind label %.loopexit.split-lp

389:                                              ; preds = %388, %384
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %.pre333 = load i32, ptr %10, align 4, !tbaa !8
  %.phi.trans.insert334 = sext i32 %.pre333 to i64
  %.phi.trans.insert335 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %.phi.trans.insert334
  %.pre336 = load i32, ptr %.phi.trans.insert335, align 4, !tbaa !8
  br label %390

390:                                              ; preds = %389, %374, %371, %364
  %.pre-phi = phi i64 [ %.phi.trans.insert334, %389 ], [ %361, %374 ], [ %361, %371 ], [ %361, %364 ]
  %391 = phi i32 [ %.pre336, %389 ], [ %363, %374 ], [ %363, %371 ], [ %363, %364 ]
  %392 = phi i32 [ %.pre333, %389 ], [ %360, %374 ], [ %360, %371 ], [ %360, %364 ]
  %.not185.not.peel = icmp sgt i32 %391, 0
  br i1 %.not185.not.peel, label %.peel.next, label %.loopexit

.peel.next:                                       ; preds = %390, %422
  %393 = phi i32 [ %423, %422 ], [ %392, %390 ]
  %indvars.iv301 = phi i64 [ %indvars.iv.next302, %422 ], [ 1, %390 ]
  %394 = phi i64 [ %424, %422 ], [ %.pre-phi, %390 ]
  %395 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %394, i64 %indvars.iv301
  %396 = load i32, ptr %395, align 4, !tbaa !8
  %397 = load i32, ptr %11, align 4, !tbaa !8
  %398 = icmp eq i32 %396, %397
  br i1 %398, label %422, label %399

399:                                              ; preds = %.peel.next
  %400 = load i32, ptr %9, align 4, !tbaa !8
  %.not188 = icmp eq i32 %400, 0
  br i1 %.not188, label %.loopexit305, label %401

401:                                              ; preds = %399
  %402 = add nsw i32 %400, %352
  %403 = icmp sgt i32 %402, 34
  br i1 %403, label %422, label %404

404:                                              ; preds = %401
  %405 = load i32, ptr %8, align 4, !tbaa !8
  %406 = sext i32 %396 to i64
  %407 = sext i32 %397 to i64
  %408 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %406, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !8
  %410 = icmp eq i32 %409, -1
  %.neg189 = sext i1 %410 to i32
  %411 = add i32 %405, %.neg189
  %.not190 = icmp eq i32 %411, 0
  br i1 %.not190, label %422, label %412

412:                                              ; preds = %404
  %. = select i1 %410, i32 %397, i32 %409
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %413 = call noundef i32 @_Z5getIDiiii(i32 noundef %411, i32 noundef %400, i32 noundef %396, i32 noundef %.)
  store i32 %413, ptr %12, align 4, !tbaa !8
  %414 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %415 unwind label %.loopexit306

415:                                              ; preds = %412
  %416 = load i32, ptr %414, align 4, !tbaa !8
  %.not191 = icmp eq i32 %416, 0
  br i1 %.not191, label %417, label %421

417:                                              ; preds = %415
  %418 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %419 unwind label %.loopexit306

419:                                              ; preds = %417
  store i32 %365, ptr %418, align 4, !tbaa !8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %421 unwind label %.loopexit306

.loopexit306:                                     ; preds = %412, %417, %419
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %420

.loopexit.split-lp:                               ; preds = %381, %386, %388
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %420

420:                                              ; preds = %.loopexit.split-lp, %.loopexit306
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit306 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %429

421:                                              ; preds = %419, %415
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %.pre338 = load i32, ptr %10, align 4, !tbaa !8
  br label %422

422:                                              ; preds = %.peel.next, %401, %421, %404
  %423 = phi i32 [ %393, %.peel.next ], [ %393, %401 ], [ %.pre338, %421 ], [ %393, %404 ]
  %indvars.iv.next302 = add nuw nsw i64 %indvars.iv301, 1
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !8
  %427 = sext i32 %426 to i64
  %.not185.not = icmp slt i64 %indvars.iv301, %427
  br i1 %.not185.not, label %.peel.next, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %422, %390, %358, %351
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %428 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %428, label %.thread211, label %.lr.ph270, !llvm.loop !20

429:                                              ; preds = %420, %356
  %.pn192 = phi { ptr, i32 } [ %lpad.phi, %420 ], [ %357, %356 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %431

.loopexit305:                                     ; preds = %368, %399
  %430 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %352)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %543

431:                                              ; preds = %429, %354
  %.pn192.pn = phi { ptr, i32 } [ %.pn192, %429 ], [ %355, %354 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %544

432:                                              ; preds = %._crit_edge260
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %433 = load i32, ptr @m, align 4, !tbaa !8
  %434 = load i32, ptr @p, align 4, !tbaa !8
  %435 = load i32, ptr %1, align 4, !tbaa !8
  %436 = load i32, ptr %137, align 4, !tbaa !8
  %437 = call noundef i32 @_Z5getIDiiiiii(i32 noundef %433, i32 noundef %434, i32 noundef %434, i32 noundef %435, i32 noundef %436, i32 noundef %289)
  store i32 %437, ptr %13, align 4, !tbaa !8
  %438 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %439 unwind label %447

439:                                              ; preds = %432
  store i32 1, ptr %438, align 4, !tbaa !8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %.preheader232 unwind label %447

.preheader232:                                    ; preds = %439
  %440 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %440, label %.thread228, label %.lr.ph265

.thread228:                                       ; preds = %.loopexit231, %.preheader232
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %541

.lr.ph265:                                        ; preds = %.preheader232, %.loopexit231
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %441 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %442 = load i32, ptr %441, align 4, !tbaa !8
  store i32 %442, ptr %14, align 4, !tbaa !8
  %443 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %444 unwind label %449

444:                                              ; preds = %.lr.ph265
  %445 = load i32, ptr %443, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  %446 = icmp sgt i32 %445, 34
  br i1 %446, label %.loopexit231, label %451

447:                                              ; preds = %439, %432
  %448 = landingpad { ptr, i32 }
          cleanup
  br label %540

449:                                              ; preds = %.lr.ph265
  %450 = landingpad { ptr, i32 }
          cleanup
  br label %537

451:                                              ; preds = %444
  %452 = load i32, ptr %14, align 4, !tbaa !8
  call void @_Z5setIDiRiS_S_S_S_S_(i32 noundef %452, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %453 = load i32, ptr %18, align 4, !tbaa !8
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %454
  %456 = load i32, ptr %455, align 4, !tbaa !8
  %.not261 = icmp slt i32 %456, -1
  br i1 %.not261, label %.loopexit231, label %.lr.ph264

.lr.ph264:                                        ; preds = %451
  %457 = add nsw i32 %445, 1
  br label %458

458:                                              ; preds = %.lr.ph264, %.thread215
  %.pre332339 = phi i32 [ %453, %.lr.ph264 ], [ %.pre332340, %.thread215 ]
  %459 = phi i32 [ %453, %.lr.ph264 ], [ %531, %.thread215 ]
  %460 = phi i64 [ %454, %.lr.ph264 ], [ %533, %.thread215 ]
  %.0129262 = phi i32 [ -1, %.lr.ph264 ], [ %532, %.thread215 ]
  %461 = icmp sgt i32 %.0129262, 0
  br i1 %461, label %462, label %466

462:                                              ; preds = %458
  %463 = zext nneg i32 %.0129262 to i64
  %464 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %460, i64 %463
  %465 = load i32, ptr %464, align 4, !tbaa !8
  br label %466

466:                                              ; preds = %458, %462
  %467 = phi i32 [ %465, %462 ], [ %459, %458 ]
  %468 = load i32, ptr %16, align 4, !tbaa !8
  %.not176 = icmp ne i32 %468, 0
  %469 = load i32, ptr %19, align 4
  %470 = icmp eq i32 %467, %469
  %or.cond201 = select i1 %.not176, i1 %470, i1 false
  br i1 %or.cond201, label %.thread215, label %471

471:                                              ; preds = %466
  %472 = load i32, ptr %17, align 4, !tbaa !8
  %.not177 = icmp ne i32 %472, 0
  %473 = load i32, ptr %20, align 4
  %474 = icmp eq i32 %467, %473
  %or.cond203 = select i1 %.not177, i1 %474, i1 false
  br i1 %or.cond203, label %.thread215, label %475

475:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  %.0129.lobit.neg = ashr i32 %.0129262, 31
  %476 = add i32 %468, %.0129.lobit.neg
  store i32 %476, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  %.not178 = icmp eq i32 %.0129262, 0
  %.neg = sext i1 %.not178 to i32
  %477 = add i32 %472, %.neg
  store i32 %477, ptr %22, align 4, !tbaa !8
  %478 = or i32 %477, %476
  %or.cond14.not = icmp sgt i32 %478, -1
  br i1 %or.cond14.not, label %479, label %.thread218

479:                                              ; preds = %475
  %or.cond16.not = icmp eq i32 %478, 0
  br i1 %or.cond16.not, label %538, label %480

480:                                              ; preds = %479
  %481 = add nsw i32 %476, %445
  %482 = add nsw i32 %481, %477
  %483 = icmp sgt i32 %482, 34
  br i1 %483, label %.thread218, label %484

484:                                              ; preds = %480
  %485 = load i32, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  %.not179 = icmp eq i32 %476, 0
  br i1 %.not179, label %486, label %487

486:                                              ; preds = %484
  store i32 %467, ptr %23, align 4, !tbaa !8
  br label %496

487:                                              ; preds = %484
  %488 = sext i32 %467 to i64
  %489 = sext i32 %469 to i64
  %490 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %488, i64 %489
  %491 = load i32, ptr %490, align 4, !tbaa !8
  %492 = icmp eq i32 %491, -1
  br i1 %492, label %493, label %495

493:                                              ; preds = %487
  store i32 %469, ptr %23, align 4, !tbaa !8
  %494 = add nsw i32 %485, -1
  br label %496

495:                                              ; preds = %487
  store i32 %491, ptr %23, align 4, !tbaa !8
  br label %496

496:                                              ; preds = %493, %495, %486
  %497 = phi i32 [ %469, %493 ], [ %491, %495 ], [ %467, %486 ]
  %.0 = phi i32 [ %494, %493 ], [ %485, %495 ], [ %485, %486 ]
  %.not180 = icmp eq i32 %477, 0
  br i1 %.not180, label %498, label %499

498:                                              ; preds = %496
  store i32 %467, ptr %24, align 4, !tbaa !8
  br label %509

499:                                              ; preds = %496
  %500 = sext i32 %467 to i64
  %501 = sext i32 %473 to i64
  %502 = getelementptr inbounds [25 x [25 x i32]], ptr @nxt, i64 0, i64 %500, i64 %501
  %503 = load i32, ptr %502, align 4, !tbaa !8
  %504 = icmp eq i32 %503, -1
  br i1 %504, label %505, label %508

505:                                              ; preds = %499
  store i32 %473, ptr %24, align 4, !tbaa !8
  %506 = icmp ne i32 %497, %473
  %.neg181 = sext i1 %506 to i32
  %507 = add i32 %.0, %.neg181
  br label %509

508:                                              ; preds = %499
  store i32 %503, ptr %24, align 4, !tbaa !8
  br label %509

509:                                              ; preds = %505, %508, %498
  %510 = phi i32 [ %473, %505 ], [ %503, %508 ], [ %467, %498 ]
  %.1 = phi i32 [ %507, %505 ], [ %.0, %508 ], [ %.0, %498 ]
  %511 = icmp slt i32 %.1, 1
  br i1 %511, label %530, label %512

512:                                              ; preds = %509
  %513 = icmp ugt i32 %476, %477
  br i1 %513, label %514, label %515

514:                                              ; preds = %512
  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) %21, ptr noundef nonnull align 4 dereferenceable(4) %22) #8
  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) %23, ptr noundef nonnull align 4 dereferenceable(4) %24) #8
  %.pre328 = load i32, ptr %21, align 4, !tbaa !8
  %.pre329 = load i32, ptr %22, align 4, !tbaa !8
  %.pre330 = load i32, ptr %23, align 4, !tbaa !8
  %.pre331 = load i32, ptr %24, align 4, !tbaa !8
  br label %515

515:                                              ; preds = %514, %512
  %516 = phi i32 [ %.pre331, %514 ], [ %510, %512 ]
  %517 = phi i32 [ %.pre330, %514 ], [ %497, %512 ]
  %518 = phi i32 [ %.pre329, %514 ], [ %477, %512 ]
  %519 = phi i32 [ %.pre328, %514 ], [ %476, %512 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #8
  %520 = call noundef i32 @_Z5getIDiiiiii(i32 noundef %.1, i32 noundef %519, i32 noundef %518, i32 noundef %467, i32 noundef %517, i32 noundef %516)
  store i32 %520, ptr %25, align 4, !tbaa !8
  %521 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %522 unwind label %527

522:                                              ; preds = %515
  %523 = load i32, ptr %521, align 4, !tbaa !8
  %.not182 = icmp eq i32 %523, 0
  br i1 %.not182, label %524, label %529

524:                                              ; preds = %522
  %525 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %526 unwind label %527

526:                                              ; preds = %524
  store i32 %457, ptr %525, align 4, !tbaa !8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) @Q, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %529 unwind label %527

527:                                              ; preds = %526, %524, %515
  %528 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %537

529:                                              ; preds = %526, %522
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #8
  %.pre332.pre = load i32, ptr %18, align 4, !tbaa !8
  br label %530

.thread218:                                       ; preds = %475, %480
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %.thread215

530:                                              ; preds = %529, %509
  %.pre332 = phi i32 [ %.pre332.pre, %529 ], [ %.pre332339, %509 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %.thread215

.thread215:                                       ; preds = %466, %471, %530, %.thread218
  %.pre332340 = phi i32 [ %.pre332339, %466 ], [ %.pre332339, %471 ], [ %.pre332, %530 ], [ %.pre332339, %.thread218 ]
  %531 = phi i32 [ %459, %466 ], [ %459, %471 ], [ %.pre332, %530 ], [ %459, %.thread218 ]
  %532 = add nsw i32 %.0129262, 1
  %533 = sext i32 %531 to i64
  %534 = getelementptr inbounds [25 x [5 x i32]], ptr @e, i64 0, i64 %533
  %535 = load i32, ptr %534, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.0129262, %535
  br i1 %.not.not, label %458, label %.loopexit231, !llvm.loop !21

.loopexit231:                                     ; preds = %.thread215, %451, %444
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  %536 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @Q)
  br i1 %536, label %.thread228, label %.lr.ph265, !llvm.loop !22

537:                                              ; preds = %527, %449
  %.pn = phi { ptr, i32 } [ %528, %527 ], [ %450, %449 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %540

538:                                              ; preds = %479
  %539 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %445)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %543

540:                                              ; preds = %537, %447
  %.pn.pn = phi { ptr, i32 } [ %.pn, %537 ], [ %448, %447 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %544

541:                                              ; preds = %.thread228, %.thread211
  %542 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %543

543:                                              ; preds = %538, %.loopexit305, %541
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  br label %545

544:                                              ; preds = %540, %431
  %.pn192.pn.pn = phi { ptr, i32 } [ %.pn192.pn, %431 ], [ %.pn.pn, %540 ]
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn192.pn.pn

545:                                              ; preds = %543, %280, %114
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #8
  ret i32 0
}

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

; Function Attrs: 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) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

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

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

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z5setIDiRiS_S_S_(i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), 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 i32 @_Z5getIDiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11, !19}
!19 = !{!"llvm.loop.peeled.count", i32 1}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}


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