; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x26-广搜变形/175. 电路维修 (main)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl" }
%"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl" = type { %"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl_data" }
%"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.P = type { i32, i32, i32 }

@t = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@s = external dso_local global [510 x [510 x i8]], align 16
@v = external dso_local global [510 x [510 x i8]], align 16
@d = external dso_local global [2 x [4 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::deque", align 8
  %4 = alloca %struct.P, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca %struct.P, 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 %struct.P, align 4
  %15 = alloca %struct.P, align 4
  store i32 0, ptr %1, align 4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %17

17:                                               ; preds = %226, %0
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %229

21:                                               ; preds = %17
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @r)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) @c)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %35, %21
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr @r, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %38

29:                                               ; preds = %24
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %31
  %33 = getelementptr inbounds [510 x i8], ptr %32, i64 0, i64 0
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %33)
  br label %35

35:                                               ; preds = %29
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %24, !llvm.loop !9

38:                                               ; preds = %28
  call void @llvm.memset.p0.i64(ptr align 16 @v, i8 0, i64 260100, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %3) #9
  call void @_ZNSt5dequeI1PSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #9
  call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 12, i1 false)
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %39 unwind label %61

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #9
  store i8 0, ptr %7, align 1, !tbaa !11
  br label %40

40:                                               ; preds = %212, %39
  %41 = call noundef i64 @_ZNKSt5dequeI1PSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %214

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #9
  %44 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5dequeI1PSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %44, i64 12, i1 false), !tbaa.struct !13
  call void @_ZNSt5dequeI1PSaIS0_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  %45 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !14
  %47 = load i32, ptr @r, align 4, !tbaa !5
  %48 = icmp eq i32 %46, %47
  br i1 %48, label %49, label %69

49:                                               ; preds = %43
  %50 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = load i32, ptr @c, align 4, !tbaa !5
  %53 = icmp eq i32 %51, %52
  br i1 %53, label %54, label %69

54:                                               ; preds = %49
  store i8 1, ptr %7, align 1, !tbaa !11
  %55 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !17
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %56)
          to label %58 unwind label %65

58:                                               ; preds = %54
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %60 unwind label %65

60:                                               ; preds = %58
  store i32 8, ptr %9, align 4
  br label %210

61:                                               ; preds = %38
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %5, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %6, align 4
  br label %228

65:                                               ; preds = %58, %54
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  br label %213

69:                                               ; preds = %49, %43
  %70 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %71 = load i32, ptr %70, align 4, !tbaa !14
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !16
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [510 x i8], ptr %73, i64 0, i64 %76
  store i8 1, ptr %77, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %205, %69
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 4
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 9, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %209

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %83 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %84 = load i32, ptr %83, align 4, !tbaa !14
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [4 x i32], ptr @d, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %84, %88
  store i32 %89, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %90 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !16
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [4 x i32], ptr getelementptr inbounds ([2 x [4 x i32]], ptr @d, i64 0, i64 1), i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %91, %95
  store i32 %96, ptr %12, align 4, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = call noundef zeroext i1 @_Z5validii(i32 noundef %97, i32 noundef %98)
  br i1 %99, label %101, label %100

100:                                              ; preds = %82
  store i32 11, ptr %9, align 4
  br label %202

101:                                              ; preds = %82
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %103
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [510 x i8], ptr %104, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !11, !range !18, !noundef !19
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %111

110:                                              ; preds = %101
  store i32 11, ptr %9, align 4
  br label %202

111:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = icmp slt i32 %112, %114
  br i1 %115, label %116, label %121

116:                                              ; preds = %111
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !16
  %120 = icmp slt i32 %117, %119
  br i1 %120, label %131, label %121

121:                                              ; preds = %116, %111
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !14
  %125 = icmp sgt i32 %122, %124
  br i1 %125, label %126, label %153

126:                                              ; preds = %121
  %127 = load i32, ptr %12, align 4, !tbaa !5
  %128 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !16
  %130 = icmp sgt i32 %127, %129
  br i1 %130, label %131, label %153

131:                                              ; preds = %126, %116
  %132 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %132)
          to label %134 unwind label %149

134:                                              ; preds = %131
  %135 = load i32, ptr %133, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %136
  %138 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %139 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %138)
          to label %140 unwind label %149

140:                                              ; preds = %134
  %141 = load i32, ptr %139, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [510 x i8], ptr %137, i64 0, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !20
  %145 = sext i8 %144 to i32
  %146 = icmp eq i32 %145, 92
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, i32 0, i32 1
  store i32 %148, ptr %13, align 4, !tbaa !5
  br label %171

149:                                              ; preds = %156, %153, %134, %131
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  br label %208

153:                                              ; preds = %126, %121
  %154 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %155 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %154)
          to label %156 unwind label %149

156:                                              ; preds = %153
  %157 = load i32, ptr %155, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  %161 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %160)
          to label %162 unwind label %149

162:                                              ; preds = %156
  %163 = load i32, ptr %161, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [510 x i8], ptr %159, i64 0, i64 %164
  %166 = load i8, ptr %165, align 1, !tbaa !20
  %167 = sext i8 %166 to i32
  %168 = icmp eq i32 %167, 47
  %169 = zext i1 %168 to i64
  %170 = select i1 %168, i32 0, i32 1
  store i32 %170, ptr %13, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %162, %140
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %187

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #9
  %175 = getelementptr inbounds %struct.P, ptr %14, i32 0, i32 0
  %176 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %176, ptr %175, align 4, !tbaa !14
  %177 = getelementptr inbounds %struct.P, ptr %14, i32 0, i32 1
  %178 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %178, ptr %177, align 4, !tbaa !16
  %179 = getelementptr inbounds %struct.P, ptr %14, i32 0, i32 2
  %180 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 2
  %181 = load i32, ptr %180, align 4, !tbaa !17
  store i32 %181, ptr %179, align 4, !tbaa !17
  invoke void @_ZNSt5dequeI1PSaIS0_EE10push_frontEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %182 unwind label %183

182:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  br label %201

183:                                              ; preds = %174
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %5, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  br label %208

187:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #9
  %188 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 0
  %189 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %189, ptr %188, align 4, !tbaa !14
  %190 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 1
  %191 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %191, ptr %190, align 4, !tbaa !16
  %192 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 2
  %193 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 2
  %194 = load i32, ptr %193, align 4, !tbaa !17
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %192, align 4, !tbaa !17
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %196 unwind label %197

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

197:                                              ; preds = %187
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %5, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #9
  br label %208

201:                                              ; preds = %196, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  store i32 0, ptr %9, align 4
  br label %202

202:                                              ; preds = %201, %110, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  %203 = load i32, ptr %9, align 4
  switch i32 %203, label %235 [
    i32 0, label %204
    i32 11, label %205
  ]

204:                                              ; preds = %202
  br label %205

205:                                              ; preds = %204, %202
  %206 = load i32, ptr %10, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %10, align 4, !tbaa !5
  br label %78, !llvm.loop !21

208:                                              ; preds = %197, %183, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %213

209:                                              ; preds = %81
  store i32 0, ptr %9, align 4
  br label %210

210:                                              ; preds = %209, %60
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #9
  %211 = load i32, ptr %9, align 4
  switch i32 %211, label %235 [
    i32 0, label %212
    i32 8, label %214
  ]

212:                                              ; preds = %210
  br label %40, !llvm.loop !22

213:                                              ; preds = %208, %65
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #9
  br label %227

214:                                              ; preds = %210, %40
  %215 = load i8, ptr %7, align 1, !tbaa !11, !range !18, !noundef !19
  %216 = trunc i8 %215 to i1
  br i1 %216, label %226, label %217

217:                                              ; preds = %214
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %219 unwind label %222

219:                                              ; preds = %217
  %220 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %218, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %221 unwind label %222

221:                                              ; preds = %219
  br label %226

222:                                              ; preds = %219, %217
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %5, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %6, align 4
  br label %227

226:                                              ; preds = %221, %214
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #9
  call void @_ZNSt5dequeI1PSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #9
  br label %17, !llvm.loop !23

227:                                              ; preds = %222, %213
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #9
  br label %228

228:                                              ; preds = %227, %61
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #9
  call void @_ZNSt5dequeI1PSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #9
  br label %230

229:                                              ; preds = %17
  ret i32 0

230:                                              ; preds = %228
  %231 = load ptr, ptr %5, align 8
  %232 = load i32, ptr %6, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234

235:                                              ; preds = %210, %202
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt5dequeI1PSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS1P", !6, i64 0, !6, i64 4, !6, i64 8}
!16 = !{!15, !6, i64 4}
!17 = !{!15, !6, i64 8}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl" }
%"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl" = type { %"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl_data" }
%"struct.std::_Deque_base<P, std::allocator<P>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%struct.P = type { i32, i32, i32 }

@t = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@s = external dso_local global [510 x [510 x i8]], align 16
@v = external dso_local local_unnamed_addr global [510 x [510 x i8]], align 16
@d = external dso_local local_unnamed_addr global [2 x [4 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::deque", align 8
  %2 = alloca %struct.P, align 4
  %3 = alloca %struct.P, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.P, align 4
  %7 = alloca %struct.P, align 4
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %9 = load i32, ptr @t, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr @t, align 4, !tbaa !5
  %.not43 = icmp eq i32 %9, 0
  br i1 %.not43, label %._crit_edge46, label %.lr.ph45

.lr.ph45:                                         ; preds = %0
  %11 = getelementptr inbounds i8, ptr %3, i64 4
  %12 = getelementptr inbounds i8, ptr %7, i64 4
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = getelementptr inbounds i8, ptr %6, i64 4
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  br label %17

17:                                               ; preds = %.lr.ph45, %269
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @r)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) @c)
  %20 = load i32, ptr @r, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %17
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(260100) @v, i8 0, i64 260100, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #9
  call void @_ZNSt5dequeI1PSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, i8 0, i64 12, i1 false)
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
          to label %.preheader unwind label %39

.preheader:                                       ; preds = %._crit_edge
  %22 = call noundef i64 @_ZNKSt5dequeI1PSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  %.not2240 = icmp eq i64 %22, 0
  br i1 %.not2240, label %._crit_edge42, label %.lr.ph41

.lr.ph:                                           ; preds = %17, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %17 ]
  %23 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %indvars.iv
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %23)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %25 = load i32, ptr @r, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = icmp slt i64 %indvars.iv.next, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph41:                                         ; preds = %.preheader, %260
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  %28 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5dequeI1PSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %28, i64 12, i1 false), !tbaa.struct !11
  call void @_ZNSt5dequeI1PSaIS0_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  %29 = load i32, ptr %3, align 4, !tbaa !12
  %30 = load i32, ptr @r, align 4, !tbaa !5
  %31 = icmp eq i32 %29, %30
  %.pre = load i32, ptr %11, align 4, !tbaa !14
  %32 = load i32, ptr @c, align 4
  %33 = icmp eq i32 %.pre, %32
  %or.cond52 = select i1 %31, i1 %33, i1 false
  br i1 %or.cond52, label %34, label %43

34:                                               ; preds = %.lr.ph41
  %35 = load i32, ptr %14, align 4, !tbaa !15
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %35)
          to label %37 unwind label %41

37:                                               ; preds = %34
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread33 unwind label %41

.thread33:                                        ; preds = %37
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  br label %269

39:                                               ; preds = %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %272

41:                                               ; preds = %37, %34
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %263

43:                                               ; preds = %.lr.ph41
  %44 = sext i32 %29 to i64
  %45 = sext i32 %.pre to i64
  %46 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %44, i64 %45
  store i8 1, ptr %46, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %47 = load i32, ptr @d, align 16, !tbaa !5
  %48 = add nsw i32 %47, %29
  store i32 %48, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 16), align 16, !tbaa !5
  %50 = add nsw i32 %49, %.pre
  store i32 %50, ptr %5, align 4, !tbaa !5
  %51 = call noundef zeroext i1 @_Z5validii(i32 noundef %48, i32 noundef %50)
  br i1 %51, label %52, label %101

52:                                               ; preds = %43
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %54, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !16, !range !18, !noundef !19
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %101, label %60

60:                                               ; preds = %52
  %61 = load i32, ptr %3, align 4, !tbaa !12
  %62 = icmp slt i32 %53, %61
  %63 = load i32, ptr %11, align 4
  %64 = icmp slt i32 %55, %63
  %or.cond = select i1 %62, i1 %64, i1 false
  br i1 %or.cond, label %68, label %65

65:                                               ; preds = %60
  %66 = icmp sgt i32 %53, %61
  %67 = icmp sgt i32 %55, %63
  %or.cond35 = select i1 %66, i1 %67, i1 false
  br i1 %or.cond35, label %68, label %77

68:                                               ; preds = %65, %60
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %71, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !20
  %.not37 = icmp eq i8 %76, 92
  br i1 %.not37, label %86, label %93

77:                                               ; preds = %65
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %80, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !20
  %.not36 = icmp eq i8 %85, 47
  br i1 %.not36, label %86, label %93

86:                                               ; preds = %68, %77
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  %87 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %87, ptr %6, align 4, !tbaa !12
  %88 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %88, ptr %15, align 4, !tbaa !14
  %89 = load i32, ptr %14, align 4, !tbaa !15
  store i32 %89, ptr %16, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE10push_frontEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %90 unwind label %91

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %101

91:                                               ; preds = %255, %202, %149, %86
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %262

93:                                               ; preds = %68, %77
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %94 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %94, ptr %7, align 4, !tbaa !12
  %95 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %95, ptr %12, align 4, !tbaa !14
  %96 = load i32, ptr %14, align 4, !tbaa !15
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %98 unwind label %99

98:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  br label %101

99:                                               ; preds = %249, %196, %143, %93
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  br label %262

101:                                              ; preds = %90, %98, %52, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %102 = load i32, ptr %3, align 4, !tbaa !12
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 4), align 4, !tbaa !5
  %104 = add nsw i32 %103, %102
  store i32 %104, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %105 = load i32, ptr %11, align 4, !tbaa !14
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 20), align 4, !tbaa !5
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr %5, align 4, !tbaa !5
  %108 = call noundef zeroext i1 @_Z5validii(i32 noundef %104, i32 noundef %107)
  br i1 %108, label %109, label %154

109:                                              ; preds = %101
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %111, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !16, !range !18, !noundef !19
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %154, label %117

117:                                              ; preds = %109
  %118 = load i32, ptr %3, align 4, !tbaa !12
  %119 = icmp slt i32 %110, %118
  %120 = load i32, ptr %11, align 4
  %121 = icmp slt i32 %112, %120
  %or.cond.1 = select i1 %119, i1 %121, i1 false
  br i1 %or.cond.1, label %134, label %122

122:                                              ; preds = %117
  %123 = icmp sgt i32 %110, %118
  %124 = icmp sgt i32 %112, %120
  %or.cond35.1 = select i1 %123, i1 %124, i1 false
  br i1 %or.cond35.1, label %134, label %125

125:                                              ; preds = %122
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %128, i64 %131
  %133 = load i8, ptr %132, align 1, !tbaa !20
  %.not36.1 = icmp eq i8 %133, 47
  br i1 %.not36.1, label %149, label %143

134:                                              ; preds = %122, %117
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %137, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !20
  %.not37.1 = icmp eq i8 %142, 92
  br i1 %.not37.1, label %149, label %143

143:                                              ; preds = %134, %125
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %144 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %144, ptr %7, align 4, !tbaa !12
  %145 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %145, ptr %12, align 4, !tbaa !14
  %146 = load i32, ptr %14, align 4, !tbaa !15
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %13, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %148 unwind label %99

148:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  br label %154

149:                                              ; preds = %134, %125
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  %150 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %150, ptr %6, align 4, !tbaa !12
  %151 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %151, ptr %15, align 4, !tbaa !14
  %152 = load i32, ptr %14, align 4, !tbaa !15
  store i32 %152, ptr %16, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE10push_frontEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %153 unwind label %91

153:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %154

154:                                              ; preds = %153, %148, %109, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %155 = load i32, ptr %3, align 4, !tbaa !12
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !5
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %158 = load i32, ptr %11, align 4, !tbaa !14
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 24), align 8, !tbaa !5
  %160 = add nsw i32 %159, %158
  store i32 %160, ptr %5, align 4, !tbaa !5
  %161 = call noundef zeroext i1 @_Z5validii(i32 noundef %157, i32 noundef %160)
  br i1 %161, label %162, label %207

162:                                              ; preds = %154
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %164, i64 %166
  %168 = load i8, ptr %167, align 1, !tbaa !16, !range !18, !noundef !19
  %169 = trunc nuw i8 %168 to i1
  br i1 %169, label %207, label %170

170:                                              ; preds = %162
  %171 = load i32, ptr %3, align 4, !tbaa !12
  %172 = icmp slt i32 %163, %171
  %173 = load i32, ptr %11, align 4
  %174 = icmp slt i32 %165, %173
  %or.cond.2 = select i1 %172, i1 %174, i1 false
  br i1 %or.cond.2, label %187, label %175

175:                                              ; preds = %170
  %176 = icmp sgt i32 %163, %171
  %177 = icmp sgt i32 %165, %173
  %or.cond35.2 = select i1 %176, i1 %177, i1 false
  br i1 %or.cond35.2, label %187, label %178

178:                                              ; preds = %175
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %181, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !20
  %.not36.2 = icmp eq i8 %186, 47
  br i1 %.not36.2, label %202, label %196

187:                                              ; preds = %175, %170
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %190, i64 %193
  %195 = load i8, ptr %194, align 1, !tbaa !20
  %.not37.2 = icmp eq i8 %195, 92
  br i1 %.not37.2, label %202, label %196

196:                                              ; preds = %187, %178
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %197 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %197, ptr %7, align 4, !tbaa !12
  %198 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %198, ptr %12, align 4, !tbaa !14
  %199 = load i32, ptr %14, align 4, !tbaa !15
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %13, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %201 unwind label %99

201:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  br label %207

202:                                              ; preds = %187, %178
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  %203 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %203, ptr %6, align 4, !tbaa !12
  %204 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %204, ptr %15, align 4, !tbaa !14
  %205 = load i32, ptr %14, align 4, !tbaa !15
  store i32 %205, ptr %16, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE10push_frontEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %206 unwind label %91

206:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %207

207:                                              ; preds = %206, %201, %162, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %208 = load i32, ptr %3, align 4, !tbaa !12
  %209 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 12), align 4, !tbaa !5
  %210 = add nsw i32 %209, %208
  store i32 %210, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %211 = load i32, ptr %11, align 4, !tbaa !14
  %212 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 28), align 4, !tbaa !5
  %213 = add nsw i32 %212, %211
  store i32 %213, ptr %5, align 4, !tbaa !5
  %214 = call noundef zeroext i1 @_Z5validii(i32 noundef %210, i32 noundef %213)
  br i1 %214, label %215, label %260

215:                                              ; preds = %207
  %216 = load i32, ptr %4, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = load i32, ptr %5, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [510 x [510 x i8]], ptr @v, i64 0, i64 %217, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !16, !range !18, !noundef !19
  %222 = trunc nuw i8 %221 to i1
  br i1 %222, label %260, label %223

223:                                              ; preds = %215
  %224 = load i32, ptr %3, align 4, !tbaa !12
  %225 = icmp slt i32 %216, %224
  %226 = load i32, ptr %11, align 4
  %227 = icmp slt i32 %218, %226
  %or.cond.3 = select i1 %225, i1 %227, i1 false
  br i1 %or.cond.3, label %240, label %228

228:                                              ; preds = %223
  %229 = icmp sgt i32 %216, %224
  %230 = icmp sgt i32 %218, %226
  %or.cond35.3 = select i1 %229, i1 %230, i1 false
  br i1 %or.cond35.3, label %240, label %231

231:                                              ; preds = %228
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %234, i64 %237
  %239 = load i8, ptr %238, align 1, !tbaa !20
  %.not36.3 = icmp eq i8 %239, 47
  br i1 %.not36.3, label %255, label %249

240:                                              ; preds = %228, %223
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [510 x [510 x i8]], ptr @s, i64 0, i64 %243, i64 %246
  %248 = load i8, ptr %247, align 1, !tbaa !20
  %.not37.3 = icmp eq i8 %248, 92
  br i1 %.not37.3, label %255, label %249

249:                                              ; preds = %240, %231
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %250 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %250, ptr %7, align 4, !tbaa !12
  %251 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %251, ptr %12, align 4, !tbaa !14
  %252 = load i32, ptr %14, align 4, !tbaa !15
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %13, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %254 unwind label %99

254:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  br label %260

255:                                              ; preds = %240, %231
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  %256 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %256, ptr %6, align 4, !tbaa !12
  %257 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %257, ptr %15, align 4, !tbaa !14
  %258 = load i32, ptr %14, align 4, !tbaa !15
  store i32 %258, ptr %16, align 4, !tbaa !15
  invoke void @_ZNSt5dequeI1PSaIS0_EE10push_frontEOS0_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %259 unwind label %91

259:                                              ; preds = %255
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %260

260:                                              ; preds = %259, %254, %215, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  %261 = call noundef i64 @_ZNKSt5dequeI1PSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  %.not22 = icmp eq i64 %261, 0
  br i1 %.not22, label %._crit_edge42, label %.lr.ph41

262:                                              ; preds = %99, %91
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %263

263:                                              ; preds = %262, %41
  %.pn24 = phi { ptr, i32 } [ %42, %41 ], [ %.pn, %262 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  br label %272

._crit_edge42:                                    ; preds = %260, %.preheader
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %265 unwind label %267

265:                                              ; preds = %._crit_edge42
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %269 unwind label %267

267:                                              ; preds = %265, %._crit_edge42
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %272

269:                                              ; preds = %.thread33, %265
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #9
  call void @_ZNSt5dequeI1PSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #9
  %270 = load i32, ptr @t, align 4, !tbaa !5
  %271 = add nsw i32 %270, -1
  store i32 %271, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %270, 0
  br i1 %.not, label %._crit_edge46, label %17, !llvm.loop !21

272:                                              ; preds = %263, %267, %39
  %.pn26.pn = phi { ptr, i32 } [ %40, %39 ], [ %268, %267 ], [ %.pn24, %263 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #9
  call void @_ZNSt5dequeI1PSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn26.pn

._crit_edge46:                                    ; preds = %269, %0
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt5dequeI1PSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTS1P", !6, i64 0, !6, i64 4, !6, i64 8}
!14 = !{!13, !6, i64 4}
!15 = !{!13, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !10}


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