; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x25-广度优先搜索/174. 推箱子.ll (Z4bfs1B5cxx11v)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.P = type { i32, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::queue" = type { %"class.std::deque" }
%"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 }
%"class.std::allocator" = type { i8 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global [25 x [25 x i8]], align 16
@d = external dso_local global [2 x [4 x i32]], align 16
@A = external dso_local global [4 x i8], align 1
@_Z3tmpB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4bfs21Pii(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4bfs1B5cxx11v(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.P, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::queue", align 8
  %10 = alloca [25 x [25 x [4 x i8]]], align 16
  %11 = alloca i1, align 1
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.P, align 8
  %16 = alloca %struct.P, align 8
  %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 %struct.P, align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #6
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  %25 = getelementptr inbounds %struct.P, ptr %3, i32 0, i32 4
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.2)
          to label %27 unwind label %33

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

28:                                               ; preds = %91, %27
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %37, label %32

32:                                               ; preds = %28
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %94

33:                                               ; preds = %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %4, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %5, align 4
  br label %342

37:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %87, %37
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = load i32, ptr @m, align 4, !tbaa !5
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %38
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %45
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [25 x i8], ptr %46, i64 0, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !9
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 66
  br i1 %52, label %53, label %64

53:                                               ; preds = %43
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = getelementptr inbounds %struct.P, ptr %3, i32 0, i32 0
  store i32 %54, ptr %55, align 8, !tbaa !10
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = getelementptr inbounds %struct.P, ptr %3, i32 0, i32 1
  store i32 %56, ptr %57, align 4, !tbaa !16
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %59
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [25 x i8], ptr %60, i64 0, i64 %62
  store i8 46, ptr %63, align 1, !tbaa !9
  br label %86

64:                                               ; preds = %43
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %66
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [25 x i8], ptr %67, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !9
  %72 = sext i8 %71 to i32
  %73 = icmp eq i32 %72, 83
  br i1 %73, label %74, label %85

74:                                               ; preds = %64
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = getelementptr inbounds %struct.P, ptr %3, i32 0, i32 2
  store i32 %75, ptr %76, align 8, !tbaa !17
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = getelementptr inbounds %struct.P, ptr %3, i32 0, i32 3
  store i32 %77, ptr %78, align 4, !tbaa !18
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %80
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [25 x i8], ptr %81, i64 0, i64 %83
  store i8 46, ptr %84, align 1, !tbaa !9
  br label %85

85:                                               ; preds = %74, %64
  br label %86

86:                                               ; preds = %85, %53
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !5
  br label %38, !llvm.loop !19

90:                                               ; preds = %42
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !21

94:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #6
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %95 unwind label %127

95:                                               ; preds = %94
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %96 unwind label %131

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 2500, ptr %10) #6
  %97 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %10, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %97, i8 0, i64 2500, i1 false)
  store i1 false, ptr %11, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %98 unwind label %135

98:                                               ; preds = %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 2147483647, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 2147483647, ptr %14, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %331, %329, %98
  %100 = invoke noundef i64 @_ZNKSt5queueI1PSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %101 unwind label %139

101:                                              ; preds = %99
  %102 = icmp ne i64 %100, 0
  br i1 %102, label %103, label %334

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #6
  %104 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %105 unwind label %143

105:                                              ; preds = %103
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %104)
          to label %106 unwind label %143

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #6
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %107 unwind label %147

107:                                              ; preds = %106
  %108 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !10
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !16
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [25 x i8], ptr %111, i64 0, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %117 = sext i8 %116 to i32
  %118 = icmp eq i32 %117, 84
  br i1 %118, label %119, label %207

119:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %180, %119
  %121 = load i32, ptr %19, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 4
  %124 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %123) #6
  %125 = icmp ult i64 %122, %124
  br i1 %125, label %151, label %126

126:                                              ; preds = %120
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %183

127:                                              ; preds = %94
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  br label %341

131:                                              ; preds = %95
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %4, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %5, align 4
  br label %340

135:                                              ; preds = %96
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %4, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %339

139:                                              ; preds = %99
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %4, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %5, align 4
  br label %336

143:                                              ; preds = %105, %103
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %4, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %5, align 4
  br label %333

147:                                              ; preds = %106
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %4, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %5, align 4
  br label %332

151:                                              ; preds = %120
  %152 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 4
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %152, i64 noundef %154)
          to label %156 unwind label %172

156:                                              ; preds = %151
  %157 = load i8, ptr %155, align 1, !tbaa !9
  %158 = sext i8 %157 to i32
  %159 = icmp sge i32 %158, 65
  br i1 %159, label %160, label %176

160:                                              ; preds = %156
  %161 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 4
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %161, i64 noundef %163)
          to label %165 unwind label %172

165:                                              ; preds = %160
  %166 = load i8, ptr %164, align 1, !tbaa !9
  %167 = sext i8 %166 to i32
  %168 = icmp sle i32 %167, 90
  br i1 %168, label %169, label %176

169:                                              ; preds = %165
  %170 = load i32, ptr %17, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %17, align 4, !tbaa !5
  br label %179

172:                                              ; preds = %160, %151
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %4, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %206

176:                                              ; preds = %165, %156
  %177 = load i32, ptr %18, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %18, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %176, %169
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %19, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %19, align 4, !tbaa !5
  br label %120, !llvm.loop !22

183:                                              ; preds = %126
  %184 = load i32, ptr %17, align 4, !tbaa !5
  %185 = load i32, ptr %13, align 4, !tbaa !5
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %195, label %187

187:                                              ; preds = %183
  %188 = load i32, ptr %17, align 4, !tbaa !5
  %189 = load i32, ptr %13, align 4, !tbaa !5
  %190 = icmp eq i32 %188, %189
  br i1 %190, label %191, label %205

191:                                              ; preds = %187
  %192 = load i32, ptr %18, align 4, !tbaa !5
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %195, label %205

195:                                              ; preds = %191, %183
  %196 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 4
  %197 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %196)
          to label %198 unwind label %201

198:                                              ; preds = %195
  %199 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %199, ptr %13, align 4, !tbaa !5
  %200 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %200, ptr %14, align 4, !tbaa !5
  br label %205

201:                                              ; preds = %195
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %4, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %5, align 4
  br label %206

205:                                              ; preds = %198, %191, %187
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %329

206:                                              ; preds = %201, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %332

207:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %319, %207
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = icmp slt i32 %209, 4
  br i1 %210, label %212, label %211

211:                                              ; preds = %208
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %328

212:                                              ; preds = %208
  %213 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN1PaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %214 unwind label %237

214:                                              ; preds = %212
  %215 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !10
  %217 = load i32, ptr %20, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [4 x i32], ptr @d, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = add nsw i32 %216, %220
  %222 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 0
  store i32 %221, ptr %222, align 8, !tbaa !10
  %223 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 1
  %224 = load i32, ptr %223, align 4, !tbaa !16
  %225 = load i32, ptr %20, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4 x i32], ptr getelementptr inbounds ([2 x [4 x i32]], ptr @d, i64 0, i64 1), i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = add nsw i32 %224, %228
  %230 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 1
  store i32 %229, ptr %230, align 4, !tbaa !16
  %231 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !10
  %233 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 1
  %234 = load i32, ptr %233, align 4, !tbaa !16
  %235 = call noundef zeroext i1 @_Z5validii(i32 noundef %232, i32 noundef %234)
  br i1 %235, label %241, label %236

236:                                              ; preds = %214
  br label %319

237:                                              ; preds = %212
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %4, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %5, align 4
  br label %327

241:                                              ; preds = %214
  %242 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !10
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %10, i64 0, i64 %244
  %246 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 1
  %247 = load i32, ptr %246, align 4, !tbaa !16
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [25 x [4 x i8]], ptr %245, i64 0, i64 %248
  %250 = load i32, ptr %20, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [4 x i8], ptr %249, i64 0, i64 %251
  %253 = load i8, ptr %252, align 1, !tbaa !23, !range !25, !noundef !26
  %254 = trunc i8 %253 to i1
  br i1 %254, label %255, label %256

255:                                              ; preds = %241
  br label %319

256:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %257 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 0
  %258 = load i32, ptr %257, align 8, !tbaa !10
  %259 = load i32, ptr %20, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [4 x i32], ptr @d, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sub nsw i32 %258, %262
  store i32 %263, ptr %21, align 4, !tbaa !5
  %264 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 1
  %265 = load i32, ptr %264, align 4, !tbaa !16
  %266 = load i32, ptr %20, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [4 x i32], ptr getelementptr inbounds ([2 x [4 x i32]], ptr @d, i64 0, i64 1), i64 0, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = sub nsw i32 %265, %269
  store i32 %270, ptr %22, align 4, !tbaa !5
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %271 unwind label %278

271:                                              ; preds = %256
  %272 = load i32, ptr %21, align 4, !tbaa !5
  %273 = load i32, ptr %22, align 4, !tbaa !5
  %274 = invoke noundef zeroext i1 @_Z4bfs21Pii(ptr noundef %23, i32 noundef %272, i32 noundef %273)
          to label %275 unwind label %282

275:                                              ; preds = %271
  %276 = xor i1 %274, true
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  br i1 %276, label %277, label %286

277:                                              ; preds = %275
  store i32 15, ptr %7, align 4
  br label %316

278:                                              ; preds = %308, %299, %256
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %4, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %5, align 4
  br label %326

282:                                              ; preds = %271
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %4, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %5, align 4
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #6
  br label %326

286:                                              ; preds = %275
  %287 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 0
  %288 = load i32, ptr %287, align 8, !tbaa !10
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %10, i64 0, i64 %289
  %291 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 1
  %292 = load i32, ptr %291, align 4, !tbaa !16
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [25 x [4 x i8]], ptr %290, i64 0, i64 %293
  %295 = load i32, ptr %20, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [4 x i8], ptr %294, i64 0, i64 %296
  store i8 1, ptr %297, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  %298 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 4
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %298, ptr noundef nonnull align 8 dereferenceable(32) @_Z3tmpB5cxx11)
          to label %299 unwind label %322

299:                                              ; preds = %286
  %300 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 4
  %301 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %300, ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  %302 = load i32, ptr %20, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [4 x i8], ptr @A, i64 0, i64 %303
  %305 = load i8, ptr %304, align 1, !tbaa !9
  %306 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 4
  %307 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %306, i8 noundef signext %305)
          to label %308 unwind label %278

308:                                              ; preds = %299
  %309 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 0
  %310 = load i32, ptr %309, align 8, !tbaa !10
  %311 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 2
  store i32 %310, ptr %311, align 8, !tbaa !17
  %312 = getelementptr inbounds %struct.P, ptr %15, i32 0, i32 1
  %313 = load i32, ptr %312, align 4, !tbaa !16
  %314 = getelementptr inbounds %struct.P, ptr %16, i32 0, i32 3
  store i32 %313, ptr %314, align 4, !tbaa !18
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %315 unwind label %278

315:                                              ; preds = %308
  store i32 0, ptr %7, align 4
  br label %316

316:                                              ; preds = %315, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %317 = load i32, ptr %7, align 4
  switch i32 %317, label %348 [
    i32 0, label %318
    i32 15, label %319
  ]

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318, %316, %255, %236
  %320 = load i32, ptr %20, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %20, align 4, !tbaa !5
  br label %208, !llvm.loop !27

322:                                              ; preds = %286
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %4, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %326

326:                                              ; preds = %322, %282, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %327

327:                                              ; preds = %326, %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %332

328:                                              ; preds = %211
  store i32 0, ptr %7, align 4
  br label %329

329:                                              ; preds = %328, %205
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  %330 = load i32, ptr %7, align 4
  switch i32 %330, label %348 [
    i32 0, label %331
    i32 8, label %99
  ]

331:                                              ; preds = %329
  br label %99, !llvm.loop !28

332:                                              ; preds = %327, %206, %147
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %333

333:                                              ; preds = %332, %143
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #6
  br label %336

334:                                              ; preds = %101
  store i1 true, ptr %11, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %335 = load i1, ptr %11, align 1
  br i1 %335, label %338, label %337

336:                                              ; preds = %333, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %339

337:                                              ; preds = %334
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %338

338:                                              ; preds = %337, %334
  call void @llvm.lifetime.end.p0(i64 2500, ptr %10) #6
  call void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  ret void

339:                                              ; preds = %336, %135
  call void @llvm.lifetime.end.p0(i64 2500, ptr %10) #6
  br label %340

340:                                              ; preds = %339, %131
  call void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  br label %341

341:                                              ; preds = %340, %127
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  br label %342

342:                                              ; preds = %341, %33
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #6
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr %4, align 8
  %345 = load i32, ptr %5, align 4
  %346 = insertvalue { ptr, i32 } poison, ptr %344, 0
  %347 = insertvalue { ptr, i32 } %346, i32 %345, 1
  resume { ptr, i32 } %347

348:                                              ; preds = %329, %316
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { nounwind }

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.P = type { i32, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::queue" = type { %"class.std::deque" }
%"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 }
%"class.std::allocator" = type { i8 }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local local_unnamed_addr global [25 x [25 x i8]], align 16
@d = external dso_local local_unnamed_addr global [2 x [4 x i32]], align 16
@A = external dso_local local_unnamed_addr global [4 x i8], align 1
@_Z3tmpB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4bfs21Pii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4bfs1B5cxx11v(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.P, align 8
  %3 = alloca %"class.std::queue", align 8
  %4 = alloca [25 x [25 x [4 x i8]]], align 16
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %struct.P, align 8
  %7 = alloca %struct.P, align 8
  %8 = alloca %struct.P, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.2)
          to label %.preheader80 unwind label %22

.preheader80:                                     ; preds = %1
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %.not83 = icmp slt i32 %12, 1
  br i1 %.not83, label %._crit_edge85, label %.preheader79.lr.ph

.preheader79.lr.ph:                               ; preds = %.preheader80
  %13 = load i32, ptr @m, align 4, !tbaa !5
  %.not7781 = icmp slt i32 %13, 1
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = getelementptr inbounds i8, ptr %2, i64 12
  %16 = getelementptr inbounds i8, ptr %2, i64 4
  br i1 %.not7781, label %._crit_edge85, label %.preheader79.preheader

.preheader79.preheader:                           ; preds = %.preheader79.lr.ph
  %17 = add nuw i32 %12, 1
  %wide.trip.count104 = zext i32 %17 to i64
  %18 = zext nneg i32 %13 to i64
  %xtraiter = and i64 %18, 1
  %19 = icmp eq i32 %13, 1
  %unroll_iter = and i64 %18, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader79

.preheader79:                                     ; preds = %.preheader79.preheader, %._crit_edge
  %indvars.iv101 = phi i64 [ 1, %.preheader79.preheader ], [ %indvars.iv.next102, %._crit_edge ]
  %20 = trunc nuw nsw i64 %indvars.iv101 to i32
  %21 = trunc nuw nsw i64 %indvars.iv101 to i32
  br i1 %19, label %._crit_edge.unr-lcssa, label %.preheader79.new

._crit_edge85:                                    ; preds = %._crit_edge, %.preheader79.lr.ph, %.preheader80
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %41 unwind label %63

22:                                               ; preds = %1
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %261

._crit_edge.unr-lcssa:                            ; preds = %40, %.preheader79
  %indvars.iv.unr = phi i64 [ 1, %.preheader79 ], [ %indvars.iv.next.1, %40 ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa
  %24 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %indvars.iv101, i64 %indvars.iv.unr
  %25 = load i8, ptr %24, align 1, !tbaa !9
  switch i8 %25, label %._crit_edge [
    i8 66, label %27
    i8 83, label %26
  ]

26:                                               ; preds = %.epil.preheader
  store i32 %20, ptr %14, align 8, !tbaa !10
  br label %.sink.split.epil

27:                                               ; preds = %.epil.preheader
  store i32 %21, ptr %2, align 8, !tbaa !16
  br label %.sink.split.epil

.sink.split.epil:                                 ; preds = %27, %26
  %.sink113.epil = phi ptr [ %16, %27 ], [ %15, %26 ]
  %28 = trunc nuw nsw i64 %indvars.iv.unr to i32
  store i32 %28, ptr %.sink113.epil, align 4, !tbaa !5
  store i8 46, ptr %24, align 1, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.epil.preheader, %.sink.split.epil, %._crit_edge.unr-lcssa
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count104
  br i1 %exitcond105.not, label %._crit_edge85, label %.preheader79, !llvm.loop !17

.preheader79.new:                                 ; preds = %.preheader79, %40
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %40 ], [ 1, %.preheader79 ]
  %niter = phi i64 [ %niter.next.1, %40 ], [ 0, %.preheader79 ]
  %29 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %indvars.iv101, i64 %indvars.iv
  %30 = load i8, ptr %29, align 1, !tbaa !9
  switch i8 %30, label %34 [
    i8 66, label %31
    i8 83, label %32
  ]

31:                                               ; preds = %.preheader79.new
  store i32 %21, ptr %2, align 8, !tbaa !16
  br label %.sink.split

32:                                               ; preds = %.preheader79.new
  store i32 %20, ptr %14, align 8, !tbaa !10
  br label %.sink.split

.sink.split:                                      ; preds = %32, %31
  %.sink113 = phi ptr [ %16, %31 ], [ %15, %32 ]
  %33 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %33, ptr %.sink113, align 4, !tbaa !5
  store i8 46, ptr %29, align 1, !tbaa !9
  br label %34

34:                                               ; preds = %.sink.split, %.preheader79.new
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %indvars.iv101, i64 %indvars.iv.next
  %36 = load i8, ptr %35, align 1, !tbaa !9
  switch i8 %36, label %40 [
    i8 66, label %38
    i8 83, label %37
  ]

37:                                               ; preds = %34
  store i32 %20, ptr %14, align 8, !tbaa !10
  br label %.sink.split.1

38:                                               ; preds = %34
  store i32 %21, ptr %2, align 8, !tbaa !16
  br label %.sink.split.1

.sink.split.1:                                    ; preds = %38, %37
  %.sink113.1 = phi ptr [ %16, %38 ], [ %15, %37 ]
  %39 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %39, ptr %.sink113.1, align 4, !tbaa !5
  store i8 46, ptr %35, align 1, !tbaa !9
  br label %40

40:                                               ; preds = %.sink.split.1, %34
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.preheader79.new, !llvm.loop !19

41:                                               ; preds = %._crit_edge85
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %42 unwind label %65

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 2500, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2500) %4, i8 0, i64 2500, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %43 unwind label %67

43:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %44 = call noundef i64 @_ZNKSt5queueI1PSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %.not6793 = icmp eq i64 %44, 0
  br i1 %.not6793, label %._crit_edge98, label %.lr.ph97

.lr.ph97:                                         ; preds = %43
  %45 = getelementptr inbounds i8, ptr %6, i64 4
  %46 = getelementptr inbounds i8, ptr %7, i64 4
  %47 = getelementptr inbounds i8, ptr %6, i64 16
  %48 = getelementptr inbounds i8, ptr %7, i64 16
  %49 = getelementptr inbounds i8, ptr %7, i64 8
  br label %50

50:                                               ; preds = %.lr.ph97, %.loopexit
  %.05795 = phi i32 [ 2147483647, %.lr.ph97 ], [ %.259, %.loopexit ]
  %.06094 = phi i32 [ 2147483647, %.lr.ph97 ], [ %.262, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %51)
          to label %52 unwind label %69

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #6
  call void @_ZN1PC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %53 = load i32, ptr %6, align 8, !tbaa !16
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr %45, align 4, !tbaa !20
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [25 x [25 x i8]], ptr @s, i64 0, i64 %54, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = icmp eq i8 %58, 84
  br i1 %59, label %.preheader, label %.preheader78.preheader

.preheader78.preheader:                           ; preds = %52
  %60 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN1PaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %92 unwind label %100

.preheader:                                       ; preds = %52
  %61 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  %.not = icmp eq i64 %61, 0
  br i1 %.not, label %._crit_edge90, label %.lr.ph

._crit_edge90:                                    ; preds = %82, %.preheader
  %.055.lcssa = phi i32 [ 0, %.preheader ], [ %.156, %82 ]
  %.053.lcssa = phi i32 [ 0, %.preheader ], [ %.154, %82 ]
  %62 = icmp slt i32 %.055.lcssa, %.06094
  br i1 %62, label %88, label %85

63:                                               ; preds = %._crit_edge85
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %260

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %259

67:                                               ; preds = %42
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %258

69:                                               ; preds = %50
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %257

.lr.ph:                                           ; preds = %.preheader, %82
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %82 ], [ 0, %.preheader ]
  %.05388 = phi i32 [ %.154, %82 ], [ 0, %.preheader ]
  %.05587 = phi i32 [ %.156, %82 ], [ 0, %.preheader ]
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %indvars.iv110)
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = icmp sgt i8 %72, 64
  br i1 %73, label %74, label %80

74:                                               ; preds = %.lr.ph
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %indvars.iv110)
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = icmp slt i8 %76, 91
  br i1 %77, label %78, label %80

78:                                               ; preds = %74
  %79 = add nsw i32 %.05587, 1
  br label %82

80:                                               ; preds = %74, %.lr.ph
  %81 = add nsw i32 %.05388, 1
  br label %82

82:                                               ; preds = %78, %80
  %.156 = phi i32 [ %79, %78 ], [ %.05587, %80 ]
  %.154 = phi i32 [ %.05388, %78 ], [ %81, %80 ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %83 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  %84 = icmp ugt i64 %83, %indvars.iv.next111
  br i1 %84, label %.lr.ph, label %._crit_edge90, !llvm.loop !21

85:                                               ; preds = %._crit_edge90
  %86 = icmp eq i32 %.055.lcssa, %.06094
  %87 = icmp slt i32 %.053.lcssa, %.05795
  %or.cond = select i1 %86, i1 %87, i1 false
  br i1 %or.cond, label %88, label %.loopexit

88:                                               ; preds = %85, %._crit_edge90
  %89 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %.loopexit unwind label %90

90:                                               ; preds = %88
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %256

92:                                               ; preds = %.preheader78.preheader
  %93 = load i32, ptr %6, align 8, !tbaa !16
  %94 = load i32, ptr @d, align 16, !tbaa !5
  %95 = add nsw i32 %94, %93
  store i32 %95, ptr %7, align 8, !tbaa !16
  %96 = load i32, ptr %45, align 4, !tbaa !20
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 16), align 16, !tbaa !5
  %98 = add nsw i32 %97, %96
  store i32 %98, ptr %46, align 4, !tbaa !20
  %99 = call noundef zeroext i1 @_Z5validii(i32 noundef %95, i32 noundef %98)
  br i1 %99, label %102, label %.preheader78.1

100:                                              ; preds = %.preheader78.3, %.preheader78.2, %.preheader78.1, %.preheader78.preheader
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %256

102:                                              ; preds = %92
  %103 = load i32, ptr %7, align 8, !tbaa !16
  %104 = sext i32 %103 to i64
  %105 = load i32, ptr %46, align 4, !tbaa !20
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %104, i64 %106, i64 0
  %108 = load i8, ptr %107, align 4, !tbaa !22, !range !24, !noundef !25
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %.preheader78.1, label %110

110:                                              ; preds = %102
  %111 = load i32, ptr %6, align 8, !tbaa !16
  %112 = load i32, ptr @d, align 16, !tbaa !5
  %113 = load i32, ptr %45, align 4, !tbaa !20
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 16), align 16, !tbaa !5
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %115 unwind label %120

115:                                              ; preds = %110
  %116 = sub nsw i32 %113, %114
  %117 = sub nsw i32 %111, %112
  %118 = invoke noundef zeroext i1 @_Z4bfs21Pii(ptr noundef nonnull %8, i32 noundef %117, i32 noundef %116)
          to label %119 unwind label %122

119:                                              ; preds = %115
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br i1 %118, label %124, label %.preheader78.1

120:                                              ; preds = %251, %247, %231, %212, %208, %192, %173, %169, %153, %134, %130, %110
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %256

122:                                              ; preds = %236, %197, %158, %115
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %256

124:                                              ; preds = %119
  %125 = load i32, ptr %7, align 8, !tbaa !16
  %126 = sext i32 %125 to i64
  %127 = load i32, ptr %46, align 4, !tbaa !20
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %126, i64 %128, i64 0
  store i8 1, ptr %129, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) @_Z3tmpB5cxx11)
          to label %130 unwind label %253

130:                                              ; preds = %124
  %131 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %132 = load i8, ptr @A, align 1, !tbaa !9
  %133 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %48, i8 noundef signext %132)
          to label %134 unwind label %120

134:                                              ; preds = %130
  %135 = load <2 x i32>, ptr %6, align 8, !tbaa !5
  store <2 x i32> %135, ptr %49, align 8, !tbaa !5
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %.preheader78.1 unwind label %120

.preheader78.1:                                   ; preds = %119, %134, %102, %92
  %136 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN1PaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %137 unwind label %100

137:                                              ; preds = %.preheader78.1
  %138 = load i32, ptr %6, align 8, !tbaa !16
  %139 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 4), align 4, !tbaa !5
  %140 = add nsw i32 %139, %138
  store i32 %140, ptr %7, align 8, !tbaa !16
  %141 = load i32, ptr %45, align 4, !tbaa !20
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 20), align 4, !tbaa !5
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr %46, align 4, !tbaa !20
  %144 = call noundef zeroext i1 @_Z5validii(i32 noundef %140, i32 noundef %143)
  br i1 %144, label %145, label %.preheader78.2

145:                                              ; preds = %137
  %146 = load i32, ptr %7, align 8, !tbaa !16
  %147 = sext i32 %146 to i64
  %148 = load i32, ptr %46, align 4, !tbaa !20
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %147, i64 %149, i64 1
  %151 = load i8, ptr %150, align 1, !tbaa !22, !range !24, !noundef !25
  %152 = trunc nuw i8 %151 to i1
  br i1 %152, label %.preheader78.2, label %153

153:                                              ; preds = %145
  %154 = load i32, ptr %6, align 8, !tbaa !16
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 4), align 4, !tbaa !5
  %156 = load i32, ptr %45, align 4, !tbaa !20
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 20), align 4, !tbaa !5
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %158 unwind label %120

158:                                              ; preds = %153
  %159 = sub nsw i32 %156, %157
  %160 = sub nsw i32 %154, %155
  %161 = invoke noundef zeroext i1 @_Z4bfs21Pii(ptr noundef nonnull %8, i32 noundef %160, i32 noundef %159)
          to label %162 unwind label %122

162:                                              ; preds = %158
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br i1 %161, label %163, label %.preheader78.2

163:                                              ; preds = %162
  %164 = load i32, ptr %7, align 8, !tbaa !16
  %165 = sext i32 %164 to i64
  %166 = load i32, ptr %46, align 4, !tbaa !20
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %165, i64 %167, i64 1
  store i8 1, ptr %168, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) @_Z3tmpB5cxx11)
          to label %169 unwind label %253

169:                                              ; preds = %163
  %170 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %171 = load i8, ptr getelementptr inbounds (i8, ptr @A, i64 1), align 1, !tbaa !9
  %172 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %48, i8 noundef signext %171)
          to label %173 unwind label %120

173:                                              ; preds = %169
  %174 = load <2 x i32>, ptr %6, align 8, !tbaa !5
  store <2 x i32> %174, ptr %49, align 8, !tbaa !5
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %.preheader78.2 unwind label %120

.preheader78.2:                                   ; preds = %173, %162, %145, %137
  %175 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN1PaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %176 unwind label %100

176:                                              ; preds = %.preheader78.2
  %177 = load i32, ptr %6, align 8, !tbaa !16
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !5
  %179 = add nsw i32 %178, %177
  store i32 %179, ptr %7, align 8, !tbaa !16
  %180 = load i32, ptr %45, align 4, !tbaa !20
  %181 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 24), align 8, !tbaa !5
  %182 = add nsw i32 %181, %180
  store i32 %182, ptr %46, align 4, !tbaa !20
  %183 = call noundef zeroext i1 @_Z5validii(i32 noundef %179, i32 noundef %182)
  br i1 %183, label %184, label %.preheader78.3

184:                                              ; preds = %176
  %185 = load i32, ptr %7, align 8, !tbaa !16
  %186 = sext i32 %185 to i64
  %187 = load i32, ptr %46, align 4, !tbaa !20
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %186, i64 %188, i64 2
  %190 = load i8, ptr %189, align 2, !tbaa !22, !range !24, !noundef !25
  %191 = trunc nuw i8 %190 to i1
  br i1 %191, label %.preheader78.3, label %192

192:                                              ; preds = %184
  %193 = load i32, ptr %6, align 8, !tbaa !16
  %194 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !5
  %195 = load i32, ptr %45, align 4, !tbaa !20
  %196 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 24), align 8, !tbaa !5
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %197 unwind label %120

197:                                              ; preds = %192
  %198 = sub nsw i32 %195, %196
  %199 = sub nsw i32 %193, %194
  %200 = invoke noundef zeroext i1 @_Z4bfs21Pii(ptr noundef nonnull %8, i32 noundef %199, i32 noundef %198)
          to label %201 unwind label %122

201:                                              ; preds = %197
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br i1 %200, label %202, label %.preheader78.3

202:                                              ; preds = %201
  %203 = load i32, ptr %7, align 8, !tbaa !16
  %204 = sext i32 %203 to i64
  %205 = load i32, ptr %46, align 4, !tbaa !20
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %204, i64 %206, i64 2
  store i8 1, ptr %207, align 2, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) @_Z3tmpB5cxx11)
          to label %208 unwind label %253

208:                                              ; preds = %202
  %209 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %210 = load i8, ptr getelementptr inbounds (i8, ptr @A, i64 2), align 1, !tbaa !9
  %211 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %48, i8 noundef signext %210)
          to label %212 unwind label %120

212:                                              ; preds = %208
  %213 = load <2 x i32>, ptr %6, align 8, !tbaa !5
  store <2 x i32> %213, ptr %49, align 8, !tbaa !5
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %.preheader78.3 unwind label %120

.preheader78.3:                                   ; preds = %212, %201, %184, %176
  %214 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN1PaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %215 unwind label %100

215:                                              ; preds = %.preheader78.3
  %216 = load i32, ptr %6, align 8, !tbaa !16
  %217 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 12), align 4, !tbaa !5
  %218 = add nsw i32 %217, %216
  store i32 %218, ptr %7, align 8, !tbaa !16
  %219 = load i32, ptr %45, align 4, !tbaa !20
  %220 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 28), align 4, !tbaa !5
  %221 = add nsw i32 %220, %219
  store i32 %221, ptr %46, align 4, !tbaa !20
  %222 = call noundef zeroext i1 @_Z5validii(i32 noundef %218, i32 noundef %221)
  br i1 %222, label %223, label %.loopexit

223:                                              ; preds = %215
  %224 = load i32, ptr %7, align 8, !tbaa !16
  %225 = sext i32 %224 to i64
  %226 = load i32, ptr %46, align 4, !tbaa !20
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %225, i64 %227, i64 3
  %229 = load i8, ptr %228, align 1, !tbaa !22, !range !24, !noundef !25
  %230 = trunc nuw i8 %229 to i1
  br i1 %230, label %.loopexit, label %231

231:                                              ; preds = %223
  %232 = load i32, ptr %6, align 8, !tbaa !16
  %233 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 12), align 4, !tbaa !5
  %234 = load i32, ptr %45, align 4, !tbaa !20
  %235 = load i32, ptr getelementptr inbounds (i8, ptr @d, i64 28), align 4, !tbaa !5
  invoke void @_ZN1PC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %236 unwind label %120

236:                                              ; preds = %231
  %237 = sub nsw i32 %234, %235
  %238 = sub nsw i32 %232, %233
  %239 = invoke noundef zeroext i1 @_Z4bfs21Pii(ptr noundef nonnull %8, i32 noundef %238, i32 noundef %237)
          to label %240 unwind label %122

240:                                              ; preds = %236
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br i1 %239, label %241, label %.loopexit

241:                                              ; preds = %240
  %242 = load i32, ptr %7, align 8, !tbaa !16
  %243 = sext i32 %242 to i64
  %244 = load i32, ptr %46, align 4, !tbaa !20
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [25 x [25 x [4 x i8]]], ptr %4, i64 0, i64 %243, i64 %245, i64 3
  store i8 1, ptr %246, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) @_Z3tmpB5cxx11)
          to label %247 unwind label %253

247:                                              ; preds = %241
  %248 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  %249 = load i8, ptr getelementptr inbounds (i8, ptr @A, i64 3), align 1, !tbaa !9
  %250 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %48, i8 noundef signext %249)
          to label %251 unwind label %120

251:                                              ; preds = %247
  %252 = load <2 x i32>, ptr %6, align 8, !tbaa !5
  store <2 x i32> %252, ptr %49, align 8, !tbaa !5
  invoke void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEE4pushERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %.loopexit unwind label %120

253:                                              ; preds = %241, %202, %163, %124
  %254 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %256

.loopexit:                                        ; preds = %215, %223, %240, %251, %85, %88
  %.262 = phi i32 [ %.06094, %85 ], [ %.055.lcssa, %88 ], [ %.06094, %251 ], [ %.06094, %240 ], [ %.06094, %223 ], [ %.06094, %215 ]
  %.259 = phi i32 [ %.05795, %85 ], [ %.053.lcssa, %88 ], [ %.05795, %251 ], [ %.05795, %240 ], [ %.05795, %223 ], [ %.05795, %215 ]
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  %255 = call noundef i64 @_ZNKSt5queueI1PSt5dequeIS0_SaIS0_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %.not67 = icmp eq i64 %255, 0
  br i1 %.not67, label %._crit_edge98, label %50

256:                                              ; preds = %100, %253, %122, %120, %90
  %.pn70 = phi { ptr, i32 } [ %91, %90 ], [ %101, %100 ], [ %121, %120 ], [ %254, %253 ], [ %123, %122 ]
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  br label %257

257:                                              ; preds = %256, %69
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %256 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %258

._crit_edge98:                                    ; preds = %.loopexit, %43
  call void @llvm.lifetime.end.p0(i64 2500, ptr nonnull %4) #6
  call void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  ret void

258:                                              ; preds = %257, %67
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %257 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 2500, ptr nonnull %4) #6
  br label %259

259:                                              ; preds = %258, %65
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %258 ], [ %66, %65 ]
  call void @_ZNSt5queueI1PSt5dequeIS0_SaIS0_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  br label %260

260:                                              ; preds = %259, %63
  %.pn70.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn, %259 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  br label %261

261:                                              ; preds = %260, %22
  %.pn70.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn.pn, %260 ], [ %23, %22 ]
  call void @_ZN1PD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn70.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #1 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { nounwind }

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

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


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