; LLVM IR from eyangch/competitive-programming :: USACOtraining/4.4 (shuttle)

; 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] }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"struct.std::pair.6" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::queue.9" = type { %"class.std::deque.10" }
%"class.std::deque.10" = type { %"class.std::_Deque_base.11" }
%"class.std::_Deque_base.11" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.15", %"struct.std::_Deque_iterator.15" }
%"struct.std::_Deque_iterator.15" = type { ptr, ptr, ptr, ptr }

@N = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@_Z2pzB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z6targetB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@vis = external dso_local global %"class.std::set", align 8
@dist = external dso_local global [100000 x %"class.std::set"], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::queue", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.std::pair.6", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"struct.std::pair.6", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"struct.std::pair.6", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i64, align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"struct.std::pair.6", align 8
  %34 = alloca %"struct.std::pair", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca i64, align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca i64, align 8
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"struct.std::pair.6", align 8
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca i32, align 4
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca i64, align 8
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca i64, align 8
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"struct.std::pair.6", align 8
  %50 = alloca %"struct.std::pair", align 8
  %51 = alloca i32, align 4
  %52 = alloca %"class.std::queue.9", align 8
  %53 = alloca %"class.std::__cxx11::basic_string", align 8
  %54 = alloca i32, align 4
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca i64, align 8
  %57 = alloca %"class.std::__cxx11::basic_string", align 8
  %58 = alloca i32, align 4
  %59 = alloca %"class.std::__cxx11::basic_string", align 8
  %60 = alloca i64, align 8
  %61 = alloca %"class.std::__cxx11::basic_string", align 8
  %62 = alloca i32, align 4
  %63 = alloca %"class.std::__cxx11::basic_string", align 8
  %64 = alloca i64, align 8
  %65 = alloca %"class.std::__cxx11::basic_string", align 8
  %66 = alloca i32, align 4
  %67 = alloca %"class.std::__cxx11::basic_string", align 8
  %68 = alloca i64, align 8
  %69 = alloca %"class.std::__cxx11::basic_string", align 8
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %72 = load ptr, ptr @stdin, align 8, !tbaa !5
  %73 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.5, ptr noundef %72)
  %74 = load ptr, ptr @stdout, align 8, !tbaa !5
  %75 = call ptr @freopen(ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %74)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %85, %0
  %78 = load i32, ptr %2, align 4, !tbaa !9
  %79 = load i32, ptr @N, align 4, !tbaa !9
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

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

82:                                               ; preds = %77
  %83 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 66)
  %84 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 87)
  br label %85

85:                                               ; preds = %82
  %86 = load i32, ptr %2, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %2, align 4, !tbaa !9
  br label %77, !llvm.loop !11

88:                                               ; preds = %81
  %89 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 95)
  %90 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 95)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %99, %88
  %92 = load i32, ptr %3, align 4, !tbaa !9
  %93 = load i32, ptr @N, align 4, !tbaa !9
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %102

96:                                               ; preds = %91
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 87)
  %98 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 66)
  br label %99

99:                                               ; preds = %96
  %100 = load i32, ptr %3, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %3, align 4, !tbaa !9
  br label %91, !llvm.loop !13

102:                                              ; preds = %95
  %103 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11) #7
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr @len, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #7
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEEC2ISA_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %105 unwind label %143

105:                                              ; preds = %102
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %106 unwind label %147

106:                                              ; preds = %105
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11)
          to label %107 unwind label %152

107:                                              ; preds = %106
  %108 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %10)
  store i64 %108, ptr %9, align 8, !tbaa !14
  %109 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %110 unwind label %156

110:                                              ; preds = %107
  %111 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %112 = extractvalue { ptr, i8 } %109, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %114 = extractvalue { ptr, i8 } %109, 1
  store i8 %114, ptr %113, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %566, %110
  %116 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %117 unwind label %161

117:                                              ; preds = %115
  %118 = xor i1 %116, true
  br i1 %118, label %119, label %570

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  %120 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %121 unwind label %165

121:                                              ; preds = %119
  %122 = getelementptr inbounds %"struct.std::pair", ptr %120, i32 0, i32 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %122)
          to label %123 unwind label %165

123:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %124 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %125 unwind label %169

125:                                              ; preds = %123
  %126 = getelementptr inbounds %"struct.std::pair", ptr %124, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !16
  store i32 %127, ptr %14, align 4, !tbaa !9
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %128 unwind label %169

128:                                              ; preds = %125
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %132 unwind label %173

132:                                              ; preds = %128
  %133 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %16)
  store i64 %133, ptr %15, align 8, !tbaa !14
  %134 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) %131, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %135 unwind label %177

135:                                              ; preds = %132
  %136 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %137 = extractvalue { ptr, i8 } %134, 0
  store ptr %137, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %139 = extractvalue { ptr, i8 } %134, 1
  store i8 %139, ptr %138, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %140 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11) #7
  br i1 %140, label %141, label %182

141:                                              ; preds = %135
  %142 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %142, ptr %12, align 4, !tbaa !9
  store i32 9, ptr %18, align 4
  br label %564

143:                                              ; preds = %102
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %151

147:                                              ; preds = %105
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #7
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #7
  br label %946

152:                                              ; preds = %106
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  br label %160

156:                                              ; preds = %107
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %160

160:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %946

161:                                              ; preds = %115
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %7, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %8, align 4
  br label %945

165:                                              ; preds = %121, %119
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %569

169:                                              ; preds = %125, %123
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  br label %568

173:                                              ; preds = %128
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  br label %181

177:                                              ; preds = %132
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %181

181:                                              ; preds = %177, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %568

182:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %198, %182
  %184 = load i32, ptr %19, align 4, !tbaa !9
  %185 = load i32, ptr @len, align 4, !tbaa !9
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %187, label %195

187:                                              ; preds = %183
  %188 = load i32, ptr %19, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %189)
          to label %191 unwind label %201

191:                                              ; preds = %187
  %192 = load i8, ptr %190, align 1, !tbaa !21
  %193 = sext i8 %192 to i32
  %194 = icmp ne i32 %193, 95
  br label %195

195:                                              ; preds = %191, %183
  %196 = phi i1 [ false, %183 ], [ %194, %191 ]
  br i1 %196, label %197, label %205

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %19, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %19, align 4, !tbaa !9
  br label %183, !llvm.loop !22

201:                                              ; preds = %484, %479, %470, %388, %306, %223, %218, %209, %187
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %7, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %8, align 4
  br label %567

205:                                              ; preds = %195
  %206 = load i32, ptr %19, align 4, !tbaa !9
  %207 = sub nsw i32 %206, 2
  %208 = icmp sge i32 %207, 0
  br i1 %208, label %209, label %302

209:                                              ; preds = %205
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = sub nsw i32 %210, 2
  %212 = sext i32 %211 to i64
  %213 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %212)
          to label %214 unwind label %201

214:                                              ; preds = %209
  %215 = load i8, ptr %213, align 1, !tbaa !21
  %216 = sext i8 %215 to i32
  %217 = icmp eq i32 %216, 66
  br i1 %217, label %218, label %302

218:                                              ; preds = %214
  %219 = load i32, ptr %19, align 4, !tbaa !9
  %220 = sub nsw i32 %219, 2
  %221 = sext i32 %220 to i64
  %222 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %221)
          to label %223 unwind label %201

223:                                              ; preds = %218
  %224 = load i8, ptr %222, align 1, !tbaa !21
  %225 = sext i8 %224 to i32
  %226 = load i32, ptr %19, align 4, !tbaa !9
  %227 = sub nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %228)
          to label %230 unwind label %201

230:                                              ; preds = %223
  %231 = load i8, ptr %229, align 1, !tbaa !21
  %232 = sext i8 %231 to i32
  %233 = icmp ne i32 %225, %232
  br i1 %233, label %234, label %302

234:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %235 unwind label %264

235:                                              ; preds = %234
  %236 = load i32, ptr %19, align 4, !tbaa !9
  %237 = sub nsw i32 %236, 2
  %238 = sext i32 %237 to i64
  %239 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef %238)
          to label %240 unwind label %268

240:                                              ; preds = %235
  %241 = load i32, ptr %19, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef %242)
          to label %244 unwind label %268

244:                                              ; preds = %240
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %239, ptr noundef nonnull align 1 dereferenceable(1) %243) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %245 unwind label %272

245:                                              ; preds = %244
  %246 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %22)
  store i64 %246, ptr %21, align 8, !tbaa !14
  %247 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %248 unwind label %276

248:                                              ; preds = %245
  %249 = icmp ne i64 %247, 0
  %250 = xor i1 %249, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %250, label %251, label %299

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %252 unwind label %281

252:                                              ; preds = %251
  %253 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %24)
  store i64 %253, ptr %23, align 8, !tbaa !14
  %254 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %255 unwind label %285

255:                                              ; preds = %252
  %256 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 0
  %257 = extractvalue { ptr, i8 } %254, 0
  store ptr %257, ptr %256, align 8
  %258 = getelementptr inbounds { ptr, i8 }, ptr %25, i32 0, i32 1
  %259 = extractvalue { ptr, i8 } %254, 1
  store i8 %259, ptr %258, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %260 = load i32, ptr %14, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %27, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %262 unwind label %290

262:                                              ; preds = %255
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(36) %26)
          to label %263 unwind label %294

263:                                              ; preds = %262
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  br label %299

264:                                              ; preds = %234
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %7, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %8, align 4
  br label %301

268:                                              ; preds = %240, %235
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %7, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %8, align 4
  br label %300

272:                                              ; preds = %244
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %7, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %8, align 4
  br label %280

276:                                              ; preds = %245
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %7, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %280

280:                                              ; preds = %276, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %300

281:                                              ; preds = %251
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %7, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %8, align 4
  br label %289

285:                                              ; preds = %252
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %7, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %289

289:                                              ; preds = %285, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %300

290:                                              ; preds = %255
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %7, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %8, align 4
  br label %298

294:                                              ; preds = %262
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %7, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #7
  br label %298

298:                                              ; preds = %294, %290
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #7
  br label %300

299:                                              ; preds = %263, %248
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %302

300:                                              ; preds = %298, %289, %280, %268
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %301

301:                                              ; preds = %300, %264
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %567

302:                                              ; preds = %299, %230, %214, %205
  %303 = load i32, ptr %19, align 4, !tbaa !9
  %304 = sub nsw i32 %303, 1
  %305 = icmp sge i32 %304, 0
  br i1 %305, label %306, label %383

306:                                              ; preds = %302
  %307 = load i32, ptr %19, align 4, !tbaa !9
  %308 = sub nsw i32 %307, 1
  %309 = sext i32 %308 to i64
  %310 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %309)
          to label %311 unwind label %201

311:                                              ; preds = %306
  %312 = load i8, ptr %310, align 1, !tbaa !21
  %313 = sext i8 %312 to i32
  %314 = icmp eq i32 %313, 66
  br i1 %314, label %315, label %383

315:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %316 unwind label %345

316:                                              ; preds = %315
  %317 = load i32, ptr %19, align 4, !tbaa !9
  %318 = sub nsw i32 %317, 1
  %319 = sext i32 %318 to i64
  %320 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef %319)
          to label %321 unwind label %349

321:                                              ; preds = %316
  %322 = load i32, ptr %19, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef %323)
          to label %325 unwind label %349

325:                                              ; preds = %321
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %320, ptr noundef nonnull align 1 dereferenceable(1) %324) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %326 unwind label %353

326:                                              ; preds = %325
  %327 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %30)
  store i64 %327, ptr %29, align 8, !tbaa !14
  %328 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %329 unwind label %357

329:                                              ; preds = %326
  %330 = icmp ne i64 %328, 0
  %331 = xor i1 %330, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br i1 %331, label %332, label %380

332:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %333 unwind label %362

333:                                              ; preds = %332
  %334 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %32)
  store i64 %334, ptr %31, align 8, !tbaa !14
  %335 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %336 unwind label %366

336:                                              ; preds = %333
  %337 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 0
  %338 = extractvalue { ptr, i8 } %335, 0
  store ptr %338, ptr %337, align 8
  %339 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 1
  %340 = extractvalue { ptr, i8 } %335, 1
  store i8 %340, ptr %339, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %35, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %343 unwind label %371

343:                                              ; preds = %336
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(36) %34)
          to label %344 unwind label %375

344:                                              ; preds = %343
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #7
  br label %380

345:                                              ; preds = %315
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %7, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %8, align 4
  br label %382

349:                                              ; preds = %321, %316
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %7, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %8, align 4
  br label %381

353:                                              ; preds = %325
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %7, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %8, align 4
  br label %361

357:                                              ; preds = %326
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %7, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  br label %361

361:                                              ; preds = %357, %353
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %381

362:                                              ; preds = %332
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %7, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %8, align 4
  br label %370

366:                                              ; preds = %333
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %7, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %370

370:                                              ; preds = %366, %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %381

371:                                              ; preds = %336
  %372 = landingpad { ptr, i32 }
          cleanup
  %373 = extractvalue { ptr, i32 } %372, 0
  store ptr %373, ptr %7, align 8
  %374 = extractvalue { ptr, i32 } %372, 1
  store i32 %374, ptr %8, align 4
  br label %379

375:                                              ; preds = %343
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %7, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #7
  br label %379

379:                                              ; preds = %375, %371
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #7
  br label %381

380:                                              ; preds = %344, %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  br label %383

381:                                              ; preds = %379, %370, %361, %349
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  br label %382

382:                                              ; preds = %381, %345
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  br label %567

383:                                              ; preds = %380, %311, %302
  %384 = load i32, ptr %19, align 4, !tbaa !9
  %385 = add nsw i32 %384, 1
  %386 = load i32, ptr @len, align 4, !tbaa !9
  %387 = icmp slt i32 %385, %386
  br i1 %387, label %388, label %465

388:                                              ; preds = %383
  %389 = load i32, ptr %19, align 4, !tbaa !9
  %390 = add nsw i32 %389, 1
  %391 = sext i32 %390 to i64
  %392 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %391)
          to label %393 unwind label %201

393:                                              ; preds = %388
  %394 = load i8, ptr %392, align 1, !tbaa !21
  %395 = sext i8 %394 to i32
  %396 = icmp eq i32 %395, 87
  br i1 %396, label %397, label %465

397:                                              ; preds = %393
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %398 unwind label %427

398:                                              ; preds = %397
  %399 = load i32, ptr %19, align 4, !tbaa !9
  %400 = sext i32 %399 to i64
  %401 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %36, i64 noundef %400)
          to label %402 unwind label %431

402:                                              ; preds = %398
  %403 = load i32, ptr %19, align 4, !tbaa !9
  %404 = add nsw i32 %403, 1
  %405 = sext i32 %404 to i64
  %406 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %36, i64 noundef %405)
          to label %407 unwind label %431

407:                                              ; preds = %402
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %401, ptr noundef nonnull align 1 dereferenceable(1) %406) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %408 unwind label %435

408:                                              ; preds = %407
  %409 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %38)
  store i64 %409, ptr %37, align 8, !tbaa !14
  %410 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %411 unwind label %439

411:                                              ; preds = %408
  %412 = icmp ne i64 %410, 0
  %413 = xor i1 %412, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br i1 %413, label %414, label %462

414:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %415 unwind label %444

415:                                              ; preds = %414
  %416 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %40)
  store i64 %416, ptr %39, align 8, !tbaa !14
  %417 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %418 unwind label %448

418:                                              ; preds = %415
  %419 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 0
  %420 = extractvalue { ptr, i8 } %417, 0
  store ptr %420, ptr %419, align 8
  %421 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 1
  %422 = extractvalue { ptr, i8 } %417, 1
  store i8 %422, ptr %421, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %423 = load i32, ptr %14, align 4, !tbaa !9
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %43, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %42, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %425 unwind label %453

425:                                              ; preds = %418
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(36) %42)
          to label %426 unwind label %457

426:                                              ; preds = %425
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #7
  br label %462

427:                                              ; preds = %397
  %428 = landingpad { ptr, i32 }
          cleanup
  %429 = extractvalue { ptr, i32 } %428, 0
  store ptr %429, ptr %7, align 8
  %430 = extractvalue { ptr, i32 } %428, 1
  store i32 %430, ptr %8, align 4
  br label %464

431:                                              ; preds = %402, %398
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %7, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %8, align 4
  br label %463

435:                                              ; preds = %407
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %7, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %8, align 4
  br label %443

439:                                              ; preds = %408
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %7, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %443

443:                                              ; preds = %439, %435
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %463

444:                                              ; preds = %414
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %7, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %8, align 4
  br label %452

448:                                              ; preds = %415
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %7, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  br label %452

452:                                              ; preds = %448, %444
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %463

453:                                              ; preds = %418
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %7, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %8, align 4
  br label %461

457:                                              ; preds = %425
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %7, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %42) #7
  br label %461

461:                                              ; preds = %457, %453
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #7
  br label %463

462:                                              ; preds = %426, %411
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %465

463:                                              ; preds = %461, %452, %443, %431
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  br label %464

464:                                              ; preds = %463, %427
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %567

465:                                              ; preds = %462, %393, %383
  %466 = load i32, ptr %19, align 4, !tbaa !9
  %467 = add nsw i32 %466, 2
  %468 = load i32, ptr @len, align 4, !tbaa !9
  %469 = icmp slt i32 %467, %468
  br i1 %469, label %470, label %563

470:                                              ; preds = %465
  %471 = load i32, ptr %19, align 4, !tbaa !9
  %472 = add nsw i32 %471, 2
  %473 = sext i32 %472 to i64
  %474 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %473)
          to label %475 unwind label %201

475:                                              ; preds = %470
  %476 = load i8, ptr %474, align 1, !tbaa !21
  %477 = sext i8 %476 to i32
  %478 = icmp eq i32 %477, 87
  br i1 %478, label %479, label %563

479:                                              ; preds = %475
  %480 = load i32, ptr %19, align 4, !tbaa !9
  %481 = add nsw i32 %480, 1
  %482 = sext i32 %481 to i64
  %483 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %482)
          to label %484 unwind label %201

484:                                              ; preds = %479
  %485 = load i8, ptr %483, align 1, !tbaa !21
  %486 = sext i8 %485 to i32
  %487 = load i32, ptr %19, align 4, !tbaa !9
  %488 = add nsw i32 %487, 2
  %489 = sext i32 %488 to i64
  %490 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %489)
          to label %491 unwind label %201

491:                                              ; preds = %484
  %492 = load i8, ptr %490, align 1, !tbaa !21
  %493 = sext i8 %492 to i32
  %494 = icmp ne i32 %486, %493
  br i1 %494, label %495, label %563

495:                                              ; preds = %491
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %496 unwind label %525

496:                                              ; preds = %495
  %497 = load i32, ptr %19, align 4, !tbaa !9
  %498 = sext i32 %497 to i64
  %499 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %44, i64 noundef %498)
          to label %500 unwind label %529

500:                                              ; preds = %496
  %501 = load i32, ptr %19, align 4, !tbaa !9
  %502 = add nsw i32 %501, 2
  %503 = sext i32 %502 to i64
  %504 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %44, i64 noundef %503)
          to label %505 unwind label %529

505:                                              ; preds = %500
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %499, ptr noundef nonnull align 1 dereferenceable(1) %504) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %506 unwind label %533

506:                                              ; preds = %505
  %507 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %46)
  store i64 %507, ptr %45, align 8, !tbaa !14
  %508 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %509 unwind label %537

509:                                              ; preds = %506
  %510 = icmp ne i64 %508, 0
  %511 = xor i1 %510, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br i1 %511, label %512, label %560

512:                                              ; preds = %509
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %513 unwind label %542

513:                                              ; preds = %512
  %514 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %48)
  store i64 %514, ptr %47, align 8, !tbaa !14
  %515 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %516 unwind label %546

516:                                              ; preds = %513
  %517 = getelementptr inbounds { ptr, i8 }, ptr %49, i32 0, i32 0
  %518 = extractvalue { ptr, i8 } %515, 0
  store ptr %518, ptr %517, align 8
  %519 = getelementptr inbounds { ptr, i8 }, ptr %49, i32 0, i32 1
  %520 = extractvalue { ptr, i8 } %515, 1
  store i8 %520, ptr %519, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %50) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %521 = load i32, ptr %14, align 4, !tbaa !9
  %522 = add nsw i32 %521, 1
  store i32 %522, ptr %51, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %50, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %523 unwind label %551

523:                                              ; preds = %516
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(36) %50)
          to label %524 unwind label %555

524:                                              ; preds = %523
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %50) #7
  br label %560

525:                                              ; preds = %495
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %7, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %8, align 4
  br label %562

529:                                              ; preds = %500, %496
  %530 = landingpad { ptr, i32 }
          cleanup
  %531 = extractvalue { ptr, i32 } %530, 0
  store ptr %531, ptr %7, align 8
  %532 = extractvalue { ptr, i32 } %530, 1
  store i32 %532, ptr %8, align 4
  br label %561

533:                                              ; preds = %505
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %7, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %8, align 4
  br label %541

537:                                              ; preds = %506
  %538 = landingpad { ptr, i32 }
          cleanup
  %539 = extractvalue { ptr, i32 } %538, 0
  store ptr %539, ptr %7, align 8
  %540 = extractvalue { ptr, i32 } %538, 1
  store i32 %540, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  br label %541

541:                                              ; preds = %537, %533
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %561

542:                                              ; preds = %512
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %7, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %8, align 4
  br label %550

546:                                              ; preds = %513
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %7, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #7
  br label %550

550:                                              ; preds = %546, %542
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  br label %561

551:                                              ; preds = %516
  %552 = landingpad { ptr, i32 }
          cleanup
  %553 = extractvalue { ptr, i32 } %552, 0
  store ptr %553, ptr %7, align 8
  %554 = extractvalue { ptr, i32 } %552, 1
  store i32 %554, ptr %8, align 4
  br label %559

555:                                              ; preds = %523
  %556 = landingpad { ptr, i32 }
          cleanup
  %557 = extractvalue { ptr, i32 } %556, 0
  store ptr %557, ptr %7, align 8
  %558 = extractvalue { ptr, i32 } %556, 1
  store i32 %558, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %50) #7
  br label %559

559:                                              ; preds = %555, %551
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %50) #7
  br label %561

560:                                              ; preds = %524, %509
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  br label %563

561:                                              ; preds = %559, %550, %541, %529
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  br label %562

562:                                              ; preds = %561, %525
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  br label %567

563:                                              ; preds = %560, %491, %475, %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  store i32 0, ptr %18, align 4
  br label %564

564:                                              ; preds = %563, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  %565 = load i32, ptr %18, align 4
  switch i32 %565, label %952 [
    i32 0, label %566
    i32 9, label %570
  ]

566:                                              ; preds = %564
  br label %115, !llvm.loop !23

567:                                              ; preds = %562, %464, %382, %301, %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %568

568:                                              ; preds = %567, %181, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %569

569:                                              ; preds = %568, %165
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  br label %945

570:                                              ; preds = %564, %117
  call void @llvm.lifetime.start.p0(i64 80, ptr %52) #7
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %52)
          to label %571 unwind label %596

571:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11)
          to label %572 unwind label %600

572:                                              ; preds = %571
  br label %573

573:                                              ; preds = %905, %903, %572
  %574 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11) #7
  br i1 %574, label %575, label %907

575:                                              ; preds = %573
  %576 = load i32, ptr %12, align 4, !tbaa !9
  %577 = add nsw i32 %576, -1
  store i32 %577, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  store i32 0, ptr %54, align 4, !tbaa !9
  br label %578

578:                                              ; preds = %593, %575
  %579 = load i32, ptr %54, align 4, !tbaa !9
  %580 = load i32, ptr @len, align 4, !tbaa !9
  %581 = icmp slt i32 %579, %580
  br i1 %581, label %582, label %590

582:                                              ; preds = %578
  %583 = load i32, ptr %54, align 4, !tbaa !9
  %584 = sext i32 %583 to i64
  %585 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %584)
          to label %586 unwind label %604

586:                                              ; preds = %582
  %587 = load i8, ptr %585, align 1, !tbaa !21
  %588 = sext i8 %587 to i32
  %589 = icmp ne i32 %588, 95
  br label %590

590:                                              ; preds = %586, %578
  %591 = phi i1 [ false, %578 ], [ %589, %586 ]
  br i1 %591, label %592, label %608

592:                                              ; preds = %590
  br label %593

593:                                              ; preds = %592
  %594 = load i32, ptr %54, align 4, !tbaa !9
  %595 = add nsw i32 %594, 1
  store i32 %595, ptr %54, align 4, !tbaa !9
  br label %578, !llvm.loop !24

596:                                              ; preds = %570
  %597 = landingpad { ptr, i32 }
          cleanup
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %7, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %8, align 4
  br label %944

600:                                              ; preds = %571
  %601 = landingpad { ptr, i32 }
          cleanup
  %602 = extractvalue { ptr, i32 } %601, 0
  store ptr %602, ptr %7, align 8
  %603 = extractvalue { ptr, i32 } %601, 1
  store i32 %603, ptr %8, align 4
  br label %943

604:                                              ; preds = %839, %834, %825, %759, %693, %626, %621, %612, %582
  %605 = landingpad { ptr, i32 }
          cleanup
  %606 = extractvalue { ptr, i32 } %605, 0
  store ptr %606, ptr %7, align 8
  %607 = extractvalue { ptr, i32 } %605, 1
  store i32 %607, ptr %8, align 4
  br label %906

608:                                              ; preds = %590
  %609 = load i32, ptr %54, align 4, !tbaa !9
  %610 = sub nsw i32 %609, 2
  %611 = icmp sge i32 %610, 0
  br i1 %611, label %612, label %689

612:                                              ; preds = %608
  %613 = load i32, ptr %54, align 4, !tbaa !9
  %614 = sub nsw i32 %613, 2
  %615 = sext i32 %614 to i64
  %616 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %615)
          to label %617 unwind label %604

617:                                              ; preds = %612
  %618 = load i8, ptr %616, align 1, !tbaa !21
  %619 = sext i8 %618 to i32
  %620 = icmp eq i32 %619, 87
  br i1 %620, label %621, label %689

621:                                              ; preds = %617
  %622 = load i32, ptr %54, align 4, !tbaa !9
  %623 = sub nsw i32 %622, 2
  %624 = sext i32 %623 to i64
  %625 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %624)
          to label %626 unwind label %604

626:                                              ; preds = %621
  %627 = load i8, ptr %625, align 1, !tbaa !21
  %628 = sext i8 %627 to i32
  %629 = load i32, ptr %54, align 4, !tbaa !9
  %630 = sub nsw i32 %629, 1
  %631 = sext i32 %630 to i64
  %632 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %631)
          to label %633 unwind label %604

633:                                              ; preds = %626
  %634 = load i8, ptr %632, align 1, !tbaa !21
  %635 = sext i8 %634 to i32
  %636 = icmp ne i32 %628, %635
  br i1 %636, label %637, label %689

637:                                              ; preds = %633
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %638 unwind label %662

638:                                              ; preds = %637
  %639 = load i32, ptr %54, align 4, !tbaa !9
  %640 = sub nsw i32 %639, 2
  %641 = sext i32 %640 to i64
  %642 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %55, i64 noundef %641)
          to label %643 unwind label %666

643:                                              ; preds = %638
  %644 = load i32, ptr %54, align 4, !tbaa !9
  %645 = sext i32 %644 to i64
  %646 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %55, i64 noundef %645)
          to label %647 unwind label %666

647:                                              ; preds = %643
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %642, ptr noundef nonnull align 1 dereferenceable(1) %646) #7
  %648 = load i32, ptr %12, align 4, !tbaa !9
  %649 = sext i32 %648 to i64
  %650 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %649
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %651 unwind label %670

651:                                              ; preds = %647
  %652 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %57)
  store i64 %652, ptr %56, align 8, !tbaa !14
  %653 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %650, ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %654 unwind label %674

654:                                              ; preds = %651
  %655 = icmp ne i64 %653, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  br i1 %655, label %656, label %683

656:                                              ; preds = %654
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #7
  %657 = load i32, ptr %54, align 4, !tbaa !9
  %658 = sub nsw i32 %657, 2
  store i32 %658, ptr %58, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 4 dereferenceable(4) %58)
          to label %659 unwind label %679

659:                                              ; preds = %656
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  %660 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %661 unwind label %666

661:                                              ; preds = %659
  store i32 13, ptr %18, align 4
  br label %684, !llvm.loop !25

662:                                              ; preds = %637
  %663 = landingpad { ptr, i32 }
          cleanup
  %664 = extractvalue { ptr, i32 } %663, 0
  store ptr %664, ptr %7, align 8
  %665 = extractvalue { ptr, i32 } %663, 1
  store i32 %665, ptr %8, align 4
  br label %688

666:                                              ; preds = %659, %643, %638
  %667 = landingpad { ptr, i32 }
          cleanup
  %668 = extractvalue { ptr, i32 } %667, 0
  store ptr %668, ptr %7, align 8
  %669 = extractvalue { ptr, i32 } %667, 1
  store i32 %669, ptr %8, align 4
  br label %687

670:                                              ; preds = %647
  %671 = landingpad { ptr, i32 }
          cleanup
  %672 = extractvalue { ptr, i32 } %671, 0
  store ptr %672, ptr %7, align 8
  %673 = extractvalue { ptr, i32 } %671, 1
  store i32 %673, ptr %8, align 4
  br label %678

674:                                              ; preds = %651
  %675 = landingpad { ptr, i32 }
          cleanup
  %676 = extractvalue { ptr, i32 } %675, 0
  store ptr %676, ptr %7, align 8
  %677 = extractvalue { ptr, i32 } %675, 1
  store i32 %677, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #7
  br label %678

678:                                              ; preds = %674, %670
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  br label %687

679:                                              ; preds = %656
  %680 = landingpad { ptr, i32 }
          cleanup
  %681 = extractvalue { ptr, i32 } %680, 0
  store ptr %681, ptr %7, align 8
  %682 = extractvalue { ptr, i32 } %680, 1
  store i32 %682, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  br label %687

683:                                              ; preds = %654
  store i32 0, ptr %18, align 4
  br label %684

684:                                              ; preds = %683, %661
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #7
  %685 = load i32, ptr %18, align 4
  switch i32 %685, label %903 [
    i32 0, label %686
  ]

686:                                              ; preds = %684
  br label %689

687:                                              ; preds = %679, %678, %666
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  br label %688

688:                                              ; preds = %687, %662
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #7
  br label %906

689:                                              ; preds = %686, %633, %617, %608
  %690 = load i32, ptr %54, align 4, !tbaa !9
  %691 = sub nsw i32 %690, 1
  %692 = icmp sge i32 %691, 0
  br i1 %692, label %693, label %754

693:                                              ; preds = %689
  %694 = load i32, ptr %54, align 4, !tbaa !9
  %695 = sub nsw i32 %694, 1
  %696 = sext i32 %695 to i64
  %697 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %696)
          to label %698 unwind label %604

698:                                              ; preds = %693
  %699 = load i8, ptr %697, align 1, !tbaa !21
  %700 = sext i8 %699 to i32
  %701 = icmp eq i32 %700, 87
  br i1 %701, label %702, label %754

702:                                              ; preds = %698
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %703 unwind label %727

703:                                              ; preds = %702
  %704 = load i32, ptr %54, align 4, !tbaa !9
  %705 = sub nsw i32 %704, 1
  %706 = sext i32 %705 to i64
  %707 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %59, i64 noundef %706)
          to label %708 unwind label %731

708:                                              ; preds = %703
  %709 = load i32, ptr %54, align 4, !tbaa !9
  %710 = sext i32 %709 to i64
  %711 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %59, i64 noundef %710)
          to label %712 unwind label %731

712:                                              ; preds = %708
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %707, ptr noundef nonnull align 1 dereferenceable(1) %711) #7
  %713 = load i32, ptr %12, align 4, !tbaa !9
  %714 = sext i32 %713 to i64
  %715 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %714
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %716 unwind label %735

716:                                              ; preds = %712
  %717 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %61)
  store i64 %717, ptr %60, align 8, !tbaa !14
  %718 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %715, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %719 unwind label %739

719:                                              ; preds = %716
  %720 = icmp ne i64 %718, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  br i1 %720, label %721, label %748

721:                                              ; preds = %719
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #7
  %722 = load i32, ptr %54, align 4, !tbaa !9
  %723 = sub nsw i32 %722, 1
  store i32 %723, ptr %62, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 4 dereferenceable(4) %62)
          to label %724 unwind label %744

724:                                              ; preds = %721
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  %725 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %726 unwind label %731

726:                                              ; preds = %724
  store i32 13, ptr %18, align 4
  br label %749, !llvm.loop !25

727:                                              ; preds = %702
  %728 = landingpad { ptr, i32 }
          cleanup
  %729 = extractvalue { ptr, i32 } %728, 0
  store ptr %729, ptr %7, align 8
  %730 = extractvalue { ptr, i32 } %728, 1
  store i32 %730, ptr %8, align 4
  br label %753

731:                                              ; preds = %724, %708, %703
  %732 = landingpad { ptr, i32 }
          cleanup
  %733 = extractvalue { ptr, i32 } %732, 0
  store ptr %733, ptr %7, align 8
  %734 = extractvalue { ptr, i32 } %732, 1
  store i32 %734, ptr %8, align 4
  br label %752

735:                                              ; preds = %712
  %736 = landingpad { ptr, i32 }
          cleanup
  %737 = extractvalue { ptr, i32 } %736, 0
  store ptr %737, ptr %7, align 8
  %738 = extractvalue { ptr, i32 } %736, 1
  store i32 %738, ptr %8, align 4
  br label %743

739:                                              ; preds = %716
  %740 = landingpad { ptr, i32 }
          cleanup
  %741 = extractvalue { ptr, i32 } %740, 0
  store ptr %741, ptr %7, align 8
  %742 = extractvalue { ptr, i32 } %740, 1
  store i32 %742, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #7
  br label %743

743:                                              ; preds = %739, %735
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  br label %752

744:                                              ; preds = %721
  %745 = landingpad { ptr, i32 }
          cleanup
  %746 = extractvalue { ptr, i32 } %745, 0
  store ptr %746, ptr %7, align 8
  %747 = extractvalue { ptr, i32 } %745, 1
  store i32 %747, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  br label %752

748:                                              ; preds = %719
  store i32 0, ptr %18, align 4
  br label %749

749:                                              ; preds = %748, %726
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #7
  %750 = load i32, ptr %18, align 4
  switch i32 %750, label %903 [
    i32 0, label %751
  ]

751:                                              ; preds = %749
  br label %754

752:                                              ; preds = %744, %743, %731
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #7
  br label %753

753:                                              ; preds = %752, %727
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #7
  br label %906

754:                                              ; preds = %751, %698, %689
  %755 = load i32, ptr %54, align 4, !tbaa !9
  %756 = add nsw i32 %755, 1
  %757 = load i32, ptr @len, align 4, !tbaa !9
  %758 = icmp slt i32 %756, %757
  br i1 %758, label %759, label %820

759:                                              ; preds = %754
  %760 = load i32, ptr %54, align 4, !tbaa !9
  %761 = add nsw i32 %760, 1
  %762 = sext i32 %761 to i64
  %763 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %762)
          to label %764 unwind label %604

764:                                              ; preds = %759
  %765 = load i8, ptr %763, align 1, !tbaa !21
  %766 = sext i8 %765 to i32
  %767 = icmp eq i32 %766, 66
  br i1 %767, label %768, label %820

768:                                              ; preds = %764
  call void @llvm.lifetime.start.p0(i64 32, ptr %63) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %769 unwind label %793

769:                                              ; preds = %768
  %770 = load i32, ptr %54, align 4, !tbaa !9
  %771 = sext i32 %770 to i64
  %772 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %63, i64 noundef %771)
          to label %773 unwind label %797

773:                                              ; preds = %769
  %774 = load i32, ptr %54, align 4, !tbaa !9
  %775 = add nsw i32 %774, 1
  %776 = sext i32 %775 to i64
  %777 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %63, i64 noundef %776)
          to label %778 unwind label %797

778:                                              ; preds = %773
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %772, ptr noundef nonnull align 1 dereferenceable(1) %777) #7
  %779 = load i32, ptr %12, align 4, !tbaa !9
  %780 = sext i32 %779 to i64
  %781 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %780
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %782 unwind label %801

782:                                              ; preds = %778
  %783 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %65)
  store i64 %783, ptr %64, align 8, !tbaa !14
  %784 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %781, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %785 unwind label %805

785:                                              ; preds = %782
  %786 = icmp ne i64 %784, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #7
  br i1 %786, label %787, label %814

787:                                              ; preds = %785
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #7
  %788 = load i32, ptr %54, align 4, !tbaa !9
  %789 = add nsw i32 %788, 1
  store i32 %789, ptr %66, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 4 dereferenceable(4) %66)
          to label %790 unwind label %810

790:                                              ; preds = %787
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #7
  %791 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %792 unwind label %797

792:                                              ; preds = %790
  store i32 13, ptr %18, align 4
  br label %815, !llvm.loop !25

793:                                              ; preds = %768
  %794 = landingpad { ptr, i32 }
          cleanup
  %795 = extractvalue { ptr, i32 } %794, 0
  store ptr %795, ptr %7, align 8
  %796 = extractvalue { ptr, i32 } %794, 1
  store i32 %796, ptr %8, align 4
  br label %819

797:                                              ; preds = %790, %773, %769
  %798 = landingpad { ptr, i32 }
          cleanup
  %799 = extractvalue { ptr, i32 } %798, 0
  store ptr %799, ptr %7, align 8
  %800 = extractvalue { ptr, i32 } %798, 1
  store i32 %800, ptr %8, align 4
  br label %818

801:                                              ; preds = %778
  %802 = landingpad { ptr, i32 }
          cleanup
  %803 = extractvalue { ptr, i32 } %802, 0
  store ptr %803, ptr %7, align 8
  %804 = extractvalue { ptr, i32 } %802, 1
  store i32 %804, ptr %8, align 4
  br label %809

805:                                              ; preds = %782
  %806 = landingpad { ptr, i32 }
          cleanup
  %807 = extractvalue { ptr, i32 } %806, 0
  store ptr %807, ptr %7, align 8
  %808 = extractvalue { ptr, i32 } %806, 1
  store i32 %808, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #7
  br label %809

809:                                              ; preds = %805, %801
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #7
  br label %818

810:                                              ; preds = %787
  %811 = landingpad { ptr, i32 }
          cleanup
  %812 = extractvalue { ptr, i32 } %811, 0
  store ptr %812, ptr %7, align 8
  %813 = extractvalue { ptr, i32 } %811, 1
  store i32 %813, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #7
  br label %818

814:                                              ; preds = %785
  store i32 0, ptr %18, align 4
  br label %815

815:                                              ; preds = %814, %792
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %63) #7
  %816 = load i32, ptr %18, align 4
  switch i32 %816, label %903 [
    i32 0, label %817
  ]

817:                                              ; preds = %815
  br label %820

818:                                              ; preds = %810, %809, %797
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #7
  br label %819

819:                                              ; preds = %818, %793
  call void @llvm.lifetime.end.p0(i64 32, ptr %63) #7
  br label %906

820:                                              ; preds = %817, %764, %754
  %821 = load i32, ptr %54, align 4, !tbaa !9
  %822 = add nsw i32 %821, 2
  %823 = load i32, ptr @len, align 4, !tbaa !9
  %824 = icmp slt i32 %822, %823
  br i1 %824, label %825, label %902

825:                                              ; preds = %820
  %826 = load i32, ptr %54, align 4, !tbaa !9
  %827 = add nsw i32 %826, 2
  %828 = sext i32 %827 to i64
  %829 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %828)
          to label %830 unwind label %604

830:                                              ; preds = %825
  %831 = load i8, ptr %829, align 1, !tbaa !21
  %832 = sext i8 %831 to i32
  %833 = icmp eq i32 %832, 66
  br i1 %833, label %834, label %902

834:                                              ; preds = %830
  %835 = load i32, ptr %54, align 4, !tbaa !9
  %836 = add nsw i32 %835, 1
  %837 = sext i32 %836 to i64
  %838 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %837)
          to label %839 unwind label %604

839:                                              ; preds = %834
  %840 = load i8, ptr %838, align 1, !tbaa !21
  %841 = sext i8 %840 to i32
  %842 = load i32, ptr %54, align 4, !tbaa !9
  %843 = add nsw i32 %842, 2
  %844 = sext i32 %843 to i64
  %845 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %844)
          to label %846 unwind label %604

846:                                              ; preds = %839
  %847 = load i8, ptr %845, align 1, !tbaa !21
  %848 = sext i8 %847 to i32
  %849 = icmp ne i32 %841, %848
  br i1 %849, label %850, label %902

850:                                              ; preds = %846
  call void @llvm.lifetime.start.p0(i64 32, ptr %67) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %851 unwind label %875

851:                                              ; preds = %850
  %852 = load i32, ptr %54, align 4, !tbaa !9
  %853 = sext i32 %852 to i64
  %854 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %853)
          to label %855 unwind label %879

855:                                              ; preds = %851
  %856 = load i32, ptr %54, align 4, !tbaa !9
  %857 = add nsw i32 %856, 2
  %858 = sext i32 %857 to i64
  %859 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %858)
          to label %860 unwind label %879

860:                                              ; preds = %855
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %854, ptr noundef nonnull align 1 dereferenceable(1) %859) #7
  %861 = load i32, ptr %12, align 4, !tbaa !9
  %862 = sext i32 %861 to i64
  %863 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %862
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %864 unwind label %883

864:                                              ; preds = %860
  %865 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %69)
  store i64 %865, ptr %68, align 8, !tbaa !14
  %866 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %863, ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %867 unwind label %887

867:                                              ; preds = %864
  %868 = icmp ne i64 %866, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %69) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  br i1 %868, label %869, label %896

869:                                              ; preds = %867
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #7
  %870 = load i32, ptr %54, align 4, !tbaa !9
  %871 = add nsw i32 %870, 2
  store i32 %871, ptr %70, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %872 unwind label %892

872:                                              ; preds = %869
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #7
  %873 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %874 unwind label %879

874:                                              ; preds = %872
  store i32 13, ptr %18, align 4
  br label %897, !llvm.loop !25

875:                                              ; preds = %850
  %876 = landingpad { ptr, i32 }
          cleanup
  %877 = extractvalue { ptr, i32 } %876, 0
  store ptr %877, ptr %7, align 8
  %878 = extractvalue { ptr, i32 } %876, 1
  store i32 %878, ptr %8, align 4
  br label %901

879:                                              ; preds = %872, %855, %851
  %880 = landingpad { ptr, i32 }
          cleanup
  %881 = extractvalue { ptr, i32 } %880, 0
  store ptr %881, ptr %7, align 8
  %882 = extractvalue { ptr, i32 } %880, 1
  store i32 %882, ptr %8, align 4
  br label %900

883:                                              ; preds = %860
  %884 = landingpad { ptr, i32 }
          cleanup
  %885 = extractvalue { ptr, i32 } %884, 0
  store ptr %885, ptr %7, align 8
  %886 = extractvalue { ptr, i32 } %884, 1
  store i32 %886, ptr %8, align 4
  br label %891

887:                                              ; preds = %864
  %888 = landingpad { ptr, i32 }
          cleanup
  %889 = extractvalue { ptr, i32 } %888, 0
  store ptr %889, ptr %7, align 8
  %890 = extractvalue { ptr, i32 } %888, 1
  store i32 %890, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %69) #7
  br label %891

891:                                              ; preds = %887, %883
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  br label %900

892:                                              ; preds = %869
  %893 = landingpad { ptr, i32 }
          cleanup
  %894 = extractvalue { ptr, i32 } %893, 0
  store ptr %894, ptr %7, align 8
  %895 = extractvalue { ptr, i32 } %893, 1
  store i32 %895, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #7
  br label %900

896:                                              ; preds = %867
  store i32 0, ptr %18, align 4
  br label %897

897:                                              ; preds = %896, %874
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #7
  %898 = load i32, ptr %18, align 4
  switch i32 %898, label %903 [
    i32 0, label %899
  ]

899:                                              ; preds = %897
  br label %902

900:                                              ; preds = %892, %891, %879
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #7
  br label %901

901:                                              ; preds = %900, %875
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #7
  br label %906

902:                                              ; preds = %899, %846, %830, %820
  store i32 0, ptr %18, align 4
  br label %903

903:                                              ; preds = %902, %897, %815, %749, %684
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  %904 = load i32, ptr %18, align 4
  switch i32 %904, label %952 [
    i32 0, label %905
    i32 13, label %573
  ]

905:                                              ; preds = %903
  br label %573, !llvm.loop !25

906:                                              ; preds = %901, %819, %753, %688, %604
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  br label %942

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

908:                                              ; preds = %935, %907
  %909 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %52)
          to label %910 unwind label %936

910:                                              ; preds = %908
  %911 = xor i1 %909, true
  br i1 %911, label %912, label %940

912:                                              ; preds = %910
  %913 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %52)
          to label %914 unwind label %936

914:                                              ; preds = %912
  %915 = load i32, ptr %913, align 4, !tbaa !9
  %916 = add nsw i32 %915, 1
  %917 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %916)
          to label %918 unwind label %936

918:                                              ; preds = %914
  %919 = load i32, ptr %71, align 4, !tbaa !9
  %920 = add nsw i32 %919, 1
  store i32 %920, ptr %71, align 4, !tbaa !9
  %921 = srem i32 %920, 20
  %922 = icmp eq i32 %921, 0
  br i1 %922, label %928, label %923

923:                                              ; preds = %918
  %924 = invoke noundef i64 @_ZNKSt5queueIiSt5dequeIiSaIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %52)
          to label %925 unwind label %936

925:                                              ; preds = %923
  %926 = trunc i64 %924 to i32
  %927 = icmp eq i32 %926, 1
  br i1 %927, label %928, label %929

928:                                              ; preds = %925, %918
  br label %930

929:                                              ; preds = %925
  br label %930

930:                                              ; preds = %929, %928
  %931 = phi ptr [ @.str.8, %928 ], [ @.str.9, %929 ]
  %932 = getelementptr inbounds [2 x i8], ptr %931, i64 0, i64 0
  %933 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %917, ptr noundef %932)
          to label %934 unwind label %936

934:                                              ; preds = %930
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %52)
          to label %935 unwind label %936

935:                                              ; preds = %934
  br label %908, !llvm.loop !26

936:                                              ; preds = %934, %930, %923, %914, %912, %908
  %937 = landingpad { ptr, i32 }
          cleanup
  %938 = extractvalue { ptr, i32 } %937, 0
  store ptr %938, ptr %7, align 8
  %939 = extractvalue { ptr, i32 } %937, 1
  store i32 %939, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #7
  br label %942

940:                                              ; preds = %910
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #7
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %52) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #7
  %941 = load i32, ptr %1, align 4
  ret i32 %941

942:                                              ; preds = %936, %906
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  br label %943

943:                                              ; preds = %942, %600
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #7
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %52) #7
  br label %944

944:                                              ; preds = %943, %596
  call void @llvm.lifetime.end.p0(i64 80, ptr %52) #7
  br label %945

945:                                              ; preds = %944, %569, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %946

946:                                              ; preds = %945, %160, %151
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #7
  br label %947

947:                                              ; preds = %946
  %948 = load ptr, ptr %7, align 8
  %949 = load i32, ptr %8, align 4
  %950 = insertvalue { ptr, i32 } poison, ptr %948, 0
  %951 = insertvalue { ptr, i32 } %950, i32 %949, 1
  resume { ptr, i32 } %951

952:                                              ; preds = %903, %564
  unreachable
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #3

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

; 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) #4 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #4 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)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 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) #6

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

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

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

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

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

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

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

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


; 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] }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::queue.9" = type { %"class.std::deque.10" }
%"class.std::deque.10" = type { %"class.std::_Deque_base.11" }
%"class.std::_Deque_base.11" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.15", %"struct.std::_Deque_iterator.15" }
%"struct.std::_Deque_iterator.15" = type { ptr, ptr, ptr, ptr }

@N = external dso_local global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@_Z2pzB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z6targetB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@vis = external dso_local global %"class.std::set", align 8
@dist = external dso_local global [100000 x %"class.std::set"], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i64, align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i64, align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca i64, align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::queue.9", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca i64, align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca i64, align 8
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca i32, align 4
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca i64, align 8
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca i32, align 4
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca i64, align 8
  %53 = alloca %"class.std::__cxx11::basic_string", align 8
  %54 = alloca i32, align 4
  %55 = load ptr, ptr @stdin, align 8, !tbaa !5
  %56 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef %55)
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = tail call ptr @freopen(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef %57)
  %59 = 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) @N)
  %60 = load i32, ptr @N, align 4, !tbaa !9
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %62 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 95)
  %63 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 95)
  %64 = load i32, ptr @N, align 4, !tbaa !9
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph286, label %._crit_edge287

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.089283 = phi i32 [ %68, %.lr.ph ], [ 0, %0 ]
  %66 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 66)
  %67 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 87)
  %68 = add nuw nsw i32 %.089283, 1
  %69 = load i32, ptr @N, align 4, !tbaa !9
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge287:                                   ; preds = %.lr.ph286, %._crit_edge
  %71 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11) #7
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr @len, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #7
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEEC2ISA_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %78 unwind label %99

.lr.ph286:                                        ; preds = %._crit_edge, %.lr.ph286
  %.090284 = phi i32 [ %75, %.lr.ph286 ], [ 0, %._crit_edge ]
  %73 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11, i8 noundef signext 87)
  %74 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11, i8 noundef signext 66)
  %75 = add nuw nsw i32 %.090284, 1
  %76 = load i32, ptr @N, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %.lr.ph286, label %._crit_edge287, !llvm.loop !13

78:                                               ; preds = %._crit_edge287
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(36) %2)
          to label %79 unwind label %101

79:                                               ; preds = %78
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11)
          to label %80 unwind label %104

80:                                               ; preds = %79
  %81 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %5)
  store i64 %81, ptr %4, align 8, !tbaa !14
  %82 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %83 unwind label %106

83:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %84 = call noundef zeroext i1 @_ZNKSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %84, label %.loopexit, label %.lr.ph293

.lr.ph293:                                        ; preds = %83, %313
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  %85 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %86 unwind label %109

86:                                               ; preds = %.lr.ph293
  %87 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %88 = getelementptr inbounds i8, ptr %87, i64 32
  %89 = load i32, ptr %88, align 8, !tbaa !16
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %90 unwind label %111

90:                                               ; preds = %86
  %91 = sext i32 %89 to i64
  %92 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %91
  %93 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %8)
  store i64 %93, ptr %7, align 8, !tbaa !14
  %94 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) %92, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %95 unwind label %113

95:                                               ; preds = %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %96 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11) #7
  br i1 %96, label %.thread244, label %.preheader252

.preheader252:                                    ; preds = %95
  %97 = load i32, ptr @len, align 4, !tbaa !9
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.lr.ph289, label %.thread349

.thread244:                                       ; preds = %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %.loopexit

99:                                               ; preds = %._crit_edge287
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %78
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %2) #7
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  br label %508

104:                                              ; preds = %79
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %80
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %108

108:                                              ; preds = %106, %104
  %.pn155 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %508

109:                                              ; preds = %.lr.ph293
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %316

111:                                              ; preds = %86
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %115

113:                                              ; preds = %90
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %115

115:                                              ; preds = %113, %111
  %.pn157 = phi { ptr, i32 } [ %114, %113 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %315

.lr.ph289:                                        ; preds = %.preheader252, %118
  %indvars.iv = phi i64 [ %indvars.iv.next, %118 ], [ 0, %.preheader252 ]
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %indvars.iv)
  %117 = load i8, ptr %116, align 1, !tbaa !21
  %.not = icmp eq i8 %117, 95
  br i1 %.not, label %.critedge, label %118

118:                                              ; preds = %.lr.ph289
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %119 = load i32, ptr @len, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = icmp slt i64 %indvars.iv.next, %120
  br i1 %121, label %.lr.ph289, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %.lr.ph289, %118
  %.0145.lcssa.ph.in = phi i64 [ %indvars.iv, %.lr.ph289 ], [ %indvars.iv.next, %118 ]
  %.0145.lcssa.ph = trunc i64 %.0145.lcssa.ph.in to i32
  %122 = icmp ugt i32 %.0145.lcssa.ph, 1
  br i1 %122, label %123, label %173

123:                                              ; preds = %.critedge
  %124 = add i64 %.0145.lcssa.ph.in, 4294967294
  %125 = and i64 %124, 4294967295
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %125)
  %127 = load i8, ptr %126, align 1, !tbaa !21
  %128 = icmp eq i8 %127, 66
  br i1 %128, label %129, label %.thread

129:                                              ; preds = %123
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %125)
  %131 = load i8, ptr %130, align 1, !tbaa !21
  %132 = shl i64 %.0145.lcssa.ph.in, 32
  %sext = add i64 %132, -4294967296
  %133 = ashr exact i64 %sext, 32
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %133)
  %135 = load i8, ptr %134, align 1, !tbaa !21
  %.not159 = icmp eq i8 %131, %135
  br i1 %.not159, label %.thread, label %136

136:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %137 unwind label %153

137:                                              ; preds = %136
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %125)
  %139 = and i64 %.0145.lcssa.ph.in, 4294967295
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %139)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %138, ptr noundef nonnull align 1 dereferenceable(1) %140) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %141 unwind label %155

141:                                              ; preds = %137
  %142 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %11)
  store i64 %142, ptr %10, align 8, !tbaa !14
  %143 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %144 unwind label %157

144:                                              ; preds = %141
  %.not162 = icmp eq i64 %143, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %.not162, label %145, label %170

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %146 unwind label %160

146:                                              ; preds = %145
  %147 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %13)
  store i64 %147, ptr %12, align 8, !tbaa !14
  %148 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %149 unwind label %162

149:                                              ; preds = %146
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %150 = add nsw i32 %89, 1
  store i32 %150, ptr %15, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %151 unwind label %165

151:                                              ; preds = %149
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %152 unwind label %167

152:                                              ; preds = %151
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #7
  br label %170

153:                                              ; preds = %136
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %172

155:                                              ; preds = %137
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %159

157:                                              ; preds = %141
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %159

159:                                              ; preds = %157, %155
  %.pn160 = phi { ptr, i32 } [ %158, %157 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %171

160:                                              ; preds = %145
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %146
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %164

164:                                              ; preds = %162, %160
  %.pn163 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %171

165:                                              ; preds = %149
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %169

167:                                              ; preds = %151
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #7
  br label %169

169:                                              ; preds = %167, %165
  %.pn165 = phi { ptr, i32 } [ %168, %167 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #7
  br label %171

170:                                              ; preds = %152, %144
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %.thread

171:                                              ; preds = %169, %164, %159
  %.pn165.pn = phi { ptr, i32 } [ %.pn165, %169 ], [ %.pn163, %164 ], [ %.pn160, %159 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %172

172:                                              ; preds = %171, %153
  %.pn165.pn.pn = phi { ptr, i32 } [ %.pn165.pn, %171 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %315

173:                                              ; preds = %.critedge
  %.not169 = icmp eq i32 %.0145.lcssa.ph, 0
  br i1 %.not169, label %.thread349, label %.thread

.thread:                                          ; preds = %123, %129, %170, %173
  %.0145.lcssa346 = phi i32 [ %.0145.lcssa.ph, %123 ], [ %.0145.lcssa.ph, %129 ], [ %.0145.lcssa.ph, %170 ], [ 1, %173 ]
  %174 = add nsw i32 %.0145.lcssa346, -1
  %175 = zext nneg i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %175)
  %177 = load i8, ptr %176, align 1, !tbaa !21
  %178 = icmp eq i8 %177, 66
  br i1 %178, label %179, label %.thread349

179:                                              ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %180 unwind label %196

180:                                              ; preds = %179
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef %175)
  %182 = zext nneg i32 %.0145.lcssa346 to i64
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef %182)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %181, ptr noundef nonnull align 1 dereferenceable(1) %183) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %184 unwind label %198

184:                                              ; preds = %180
  %185 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %18)
  store i64 %185, ptr %17, align 8, !tbaa !14
  %186 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %187 unwind label %200

187:                                              ; preds = %184
  %.not172 = icmp eq i64 %186, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br i1 %.not172, label %188, label %213

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %189 unwind label %203

189:                                              ; preds = %188
  %190 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %20)
  store i64 %190, ptr %19, align 8, !tbaa !14
  %191 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %192 unwind label %205

192:                                              ; preds = %189
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %193 = add nsw i32 %89, 1
  store i32 %193, ptr %22, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %194 unwind label %208

194:                                              ; preds = %192
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %195 unwind label %210

195:                                              ; preds = %194
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #7
  br label %213

196:                                              ; preds = %179
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %215

198:                                              ; preds = %180
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %202

200:                                              ; preds = %184
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %202

202:                                              ; preds = %200, %198
  %.pn170 = phi { ptr, i32 } [ %201, %200 ], [ %199, %198 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %214

203:                                              ; preds = %188
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %207

205:                                              ; preds = %189
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %207

207:                                              ; preds = %205, %203
  %.pn173 = phi { ptr, i32 } [ %206, %205 ], [ %204, %203 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %214

208:                                              ; preds = %192
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %194
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #7
  br label %212

212:                                              ; preds = %210, %208
  %.pn175 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #7
  br label %214

213:                                              ; preds = %195, %187
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %.thread349

214:                                              ; preds = %212, %207, %202
  %.pn175.pn = phi { ptr, i32 } [ %.pn175, %212 ], [ %.pn173, %207 ], [ %.pn170, %202 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  br label %215

215:                                              ; preds = %214, %196
  %.pn175.pn.pn = phi { ptr, i32 } [ %.pn175.pn, %214 ], [ %197, %196 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %315

.thread349:                                       ; preds = %.preheader252, %213, %.thread, %173
  %.0145.lcssa347 = phi i32 [ %.0145.lcssa346, %213 ], [ %.0145.lcssa346, %.thread ], [ 0, %173 ], [ 0, %.preheader252 ]
  %216 = add nuw nsw i32 %.0145.lcssa347, 1
  %217 = load i32, ptr @len, align 4, !tbaa !9
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %219, label %261

219:                                              ; preds = %.thread349
  %220 = zext nneg i32 %216 to i64
  %221 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %220)
  %222 = load i8, ptr %221, align 1, !tbaa !21
  %223 = icmp eq i8 %222, 87
  br i1 %223, label %224, label %261

224:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %225 unwind label %241

225:                                              ; preds = %224
  %226 = zext nneg i32 %.0145.lcssa347 to i64
  %227 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef %226)
  %228 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef %220)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %227, ptr noundef nonnull align 1 dereferenceable(1) %228) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %229 unwind label %243

229:                                              ; preds = %225
  %230 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %25)
  store i64 %230, ptr %24, align 8, !tbaa !14
  %231 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %232 unwind label %245

232:                                              ; preds = %229
  %.not181 = icmp eq i64 %231, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  br i1 %.not181, label %233, label %258

233:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %234 unwind label %248

234:                                              ; preds = %233
  %235 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %27)
  store i64 %235, ptr %26, align 8, !tbaa !14
  %236 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %237 unwind label %250

237:                                              ; preds = %234
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #7
  %238 = add nsw i32 %89, 1
  store i32 %238, ptr %29, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %28, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %239 unwind label %253

239:                                              ; preds = %237
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(36) %28)
          to label %240 unwind label %255

240:                                              ; preds = %239
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %28) #7
  br label %258

241:                                              ; preds = %224
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %260

243:                                              ; preds = %225
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %247

245:                                              ; preds = %229
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  br label %247

247:                                              ; preds = %245, %243
  %.pn179 = phi { ptr, i32 } [ %246, %245 ], [ %244, %243 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  br label %259

248:                                              ; preds = %233
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %252

250:                                              ; preds = %234
  %251 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %252

252:                                              ; preds = %250, %248
  %.pn182 = phi { ptr, i32 } [ %251, %250 ], [ %249, %248 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %259

253:                                              ; preds = %237
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %257

255:                                              ; preds = %239
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %28) #7
  br label %257

257:                                              ; preds = %255, %253
  %.pn184 = phi { ptr, i32 } [ %256, %255 ], [ %254, %253 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %28) #7
  br label %259

258:                                              ; preds = %240, %232
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %261

259:                                              ; preds = %257, %252, %247
  %.pn184.pn = phi { ptr, i32 } [ %.pn184, %257 ], [ %.pn182, %252 ], [ %.pn179, %247 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %260

260:                                              ; preds = %259, %241
  %.pn184.pn.pn = phi { ptr, i32 } [ %.pn184.pn, %259 ], [ %242, %241 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %315

261:                                              ; preds = %258, %219, %.thread349
  %262 = add nuw nsw i32 %.0145.lcssa347, 2
  %263 = load i32, ptr @len, align 4, !tbaa !9
  %264 = icmp slt i32 %262, %263
  br i1 %264, label %265, label %313

265:                                              ; preds = %261
  %266 = zext nneg i32 %262 to i64
  %267 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %266)
  %268 = load i8, ptr %267, align 1, !tbaa !21
  %269 = icmp eq i8 %268, 87
  br i1 %269, label %270, label %313

270:                                              ; preds = %265
  %271 = zext nneg i32 %216 to i64
  %272 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %271)
  %273 = load i8, ptr %272, align 1, !tbaa !21
  %274 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %266)
  %275 = load i8, ptr %274, align 1, !tbaa !21
  %.not188 = icmp eq i8 %273, %275
  br i1 %.not188, label %313, label %276

276:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %277 unwind label %293

277:                                              ; preds = %276
  %278 = zext nneg i32 %.0145.lcssa347 to i64
  %279 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %278)
  %280 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %266)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %279, ptr noundef nonnull align 1 dereferenceable(1) %280) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %281 unwind label %295

281:                                              ; preds = %277
  %282 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %32)
  store i64 %282, ptr %31, align 8, !tbaa !14
  %283 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %284 unwind label %297

284:                                              ; preds = %281
  %.not191 = icmp eq i64 %283, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  br i1 %.not191, label %285, label %310

285:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %286 unwind label %300

286:                                              ; preds = %285
  %287 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %34)
  store i64 %287, ptr %33, align 8, !tbaa !14
  %288 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48) @vis, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %289 unwind label %302

289:                                              ; preds = %286
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #7
  %290 = add nsw i32 %89, 1
  store i32 %290, ptr %36, align 4, !tbaa !9
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(36) %35, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %291 unwind label %305

291:                                              ; preds = %289
  invoke void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE4pushEOS7_(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 8 dereferenceable(36) %35)
          to label %292 unwind label %307

292:                                              ; preds = %291
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %35) #7
  br label %310

293:                                              ; preds = %276
  %294 = landingpad { ptr, i32 }
          cleanup
  br label %312

295:                                              ; preds = %277
  %296 = landingpad { ptr, i32 }
          cleanup
  br label %299

297:                                              ; preds = %281
  %298 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %299

299:                                              ; preds = %297, %295
  %.pn189 = phi { ptr, i32 } [ %298, %297 ], [ %296, %295 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  br label %311

300:                                              ; preds = %285
  %301 = landingpad { ptr, i32 }
          cleanup
  br label %304

302:                                              ; preds = %286
  %303 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %304

304:                                              ; preds = %302, %300
  %.pn192 = phi { ptr, i32 } [ %303, %302 ], [ %301, %300 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  br label %311

305:                                              ; preds = %289
  %306 = landingpad { ptr, i32 }
          cleanup
  br label %309

307:                                              ; preds = %291
  %308 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #7
  br label %309

309:                                              ; preds = %307, %305
  %.pn194 = phi { ptr, i32 } [ %308, %307 ], [ %306, %305 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %35) #7
  br label %311

310:                                              ; preds = %292, %284
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #7
  br label %313

311:                                              ; preds = %309, %304, %299
  %.pn194.pn = phi { ptr, i32 } [ %.pn194, %309 ], [ %.pn192, %304 ], [ %.pn189, %299 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  br label %312

312:                                              ; preds = %311, %293
  %.pn194.pn.pn = phi { ptr, i32 } [ %.pn194.pn, %311 ], [ %294, %293 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #7
  br label %315

313:                                              ; preds = %261, %265, %270, %310
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %314 = call noundef zeroext i1 @_ZNKSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %314, label %.loopexit, label %.lr.ph293

315:                                              ; preds = %172, %215, %260, %312, %115
  %.pn194.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn157, %115 ], [ %.pn194.pn.pn, %312 ], [ %.pn184.pn.pn, %260 ], [ %.pn175.pn.pn, %215 ], [ %.pn165.pn.pn, %172 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %316

316:                                              ; preds = %315, %109
  %.pn194.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn194.pn.pn.pn.pn, %315 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %508

.loopexit:                                        ; preds = %313, %83, %.thread244
  %.2138 = phi i32 [ %89, %.thread244 ], [ 0, %83 ], [ 0, %313 ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %37) #7
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
          to label %317 unwind label %329

317:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) @_Z6targetB5cxx11)
          to label %.preheader251 unwind label %331

.preheader251:                                    ; preds = %317
  %318 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11) #7
  br i1 %318, label %.lr.ph301.preheader, label %.preheader

.lr.ph301.preheader:                              ; preds = %.preheader251
  %319 = sext i32 %.2138 to i64
  br label %.lr.ph301

.preheader:                                       ; preds = %484, %.preheader251
  %320 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  br i1 %320, label %._crit_edge304, label %.lr.ph303

.lr.ph301:                                        ; preds = %.lr.ph301.preheader, %484
  %indvars.iv341 = phi i64 [ %319, %.lr.ph301.preheader ], [ %indvars.iv.next342, %484 ]
  %indvars.iv.next342 = add nsw i64 %indvars.iv341, -1
  %321 = load i32, ptr @len, align 4, !tbaa !9
  %322 = icmp sgt i32 %321, 0
  br i1 %322, label %.lr.ph296, label %.thread356

.lr.ph296:                                        ; preds = %.lr.ph301, %325
  %indvars.iv337 = phi i64 [ %indvars.iv.next338, %325 ], [ 0, %.lr.ph301 ]
  %323 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %indvars.iv337)
  %324 = load i8, ptr %323, align 1, !tbaa !21
  %.not201 = icmp eq i8 %324, 95
  br i1 %.not201, label %.critedge5, label %325

325:                                              ; preds = %.lr.ph296
  %indvars.iv.next338 = add nuw nsw i64 %indvars.iv337, 1
  %326 = load i32, ptr @len, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = icmp slt i64 %indvars.iv.next338, %327
  br i1 %328, label %.lr.ph296, label %.critedge5, !llvm.loop !23

329:                                              ; preds = %.loopexit
  %330 = landingpad { ptr, i32 }
          cleanup
  br label %507

331:                                              ; preds = %317
  %332 = landingpad { ptr, i32 }
          cleanup
  br label %506

.critedge5:                                       ; preds = %.lr.ph296, %325
  %.088.lcssa.ph.in = phi i64 [ %indvars.iv337, %.lr.ph296 ], [ %indvars.iv.next338, %325 ]
  %.088.lcssa.ph = trunc i64 %.088.lcssa.ph.in to i32
  %333 = add nsw i32 %.088.lcssa.ph, -2
  %334 = icmp ugt i32 %.088.lcssa.ph, 1
  br i1 %334, label %335, label %374

335:                                              ; preds = %.critedge5
  %336 = zext nneg i32 %333 to i64
  %337 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %336)
  %338 = load i8, ptr %337, align 1, !tbaa !21
  %339 = icmp eq i8 %338, 87
  br i1 %339, label %340, label %..thread249_crit_edge

..thread249_crit_edge:                            ; preds = %335
  %.pre = add nsw i32 %.088.lcssa.ph, -1
  br label %.thread249

340:                                              ; preds = %335
  %341 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %336)
  %342 = load i8, ptr %341, align 1, !tbaa !21
  %343 = add nsw i32 %.088.lcssa.ph, -1
  %344 = sext i32 %343 to i64
  %345 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %344)
  %346 = load i8, ptr %345, align 1, !tbaa !21
  %.not202 = icmp eq i8 %342, %346
  br i1 %.not202, label %.thread249, label %347

347:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %348 unwind label %360

348:                                              ; preds = %347
  %349 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %39, i64 noundef %336)
  %350 = and i64 %.088.lcssa.ph.in, 4294967295
  %351 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %39, i64 noundef %350)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %349, ptr noundef nonnull align 1 dereferenceable(1) %351) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %352 unwind label %364

352:                                              ; preds = %348
  %353 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %indvars.iv.next342
  %354 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %41)
  store i64 %354, ptr %40, align 8, !tbaa !14
  %355 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %353, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %356 unwind label %366

356:                                              ; preds = %352
  %.not205 = icmp eq i64 %355, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #7
  br i1 %.not205, label %.critedge236, label %357

357:                                              ; preds = %356
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #7
  store i32 %333, ptr %42, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %37, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %358 unwind label %369

358:                                              ; preds = %357
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #7
  %359 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %371 unwind label %362, !llvm.loop !24

360:                                              ; preds = %347
  %361 = landingpad { ptr, i32 }
          cleanup
  br label %373

362:                                              ; preds = %358
  %363 = landingpad { ptr, i32 }
          cleanup
  br label %372

364:                                              ; preds = %348
  %365 = landingpad { ptr, i32 }
          cleanup
  br label %368

366:                                              ; preds = %352
  %367 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  br label %368

368:                                              ; preds = %366, %364
  %.pn203 = phi { ptr, i32 } [ %367, %366 ], [ %365, %364 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #7
  br label %372

369:                                              ; preds = %357
  %370 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #7
  br label %372

371:                                              ; preds = %358
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  br label %484

372:                                              ; preds = %369, %368, %362
  %.pn206 = phi { ptr, i32 } [ %363, %362 ], [ %370, %369 ], [ %.pn203, %368 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  br label %373

373:                                              ; preds = %372, %360
  %.pn206.pn = phi { ptr, i32 } [ %.pn206, %372 ], [ %361, %360 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  br label %505

.critedge236:                                     ; preds = %356
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  br label %.thread249

374:                                              ; preds = %.critedge5
  %.not209 = icmp eq i32 %.088.lcssa.ph, 0
  br i1 %.not209, label %.thread356, label %.thread249

.thread249:                                       ; preds = %340, %.critedge236, %..thread249_crit_edge, %374
  %.088.lcssa353 = phi i32 [ 1, %374 ], [ %.088.lcssa.ph, %..thread249_crit_edge ], [ %.088.lcssa.ph, %.critedge236 ], [ %.088.lcssa.ph, %340 ]
  %375 = phi i32 [ 0, %374 ], [ %.pre, %..thread249_crit_edge ], [ %343, %.critedge236 ], [ %343, %340 ]
  %376 = zext nneg i32 %375 to i64
  %377 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %376)
  %378 = load i8, ptr %377, align 1, !tbaa !21
  %379 = icmp eq i8 %378, 87
  br i1 %379, label %380, label %.thread356

380:                                              ; preds = %.thread249
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %43) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %381 unwind label %393

381:                                              ; preds = %380
  %382 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %43, i64 noundef %376)
  %383 = zext nneg i32 %.088.lcssa353 to i64
  %384 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %43, i64 noundef %383)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %382, ptr noundef nonnull align 1 dereferenceable(1) %384) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %385 unwind label %397

385:                                              ; preds = %381
  %386 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %indvars.iv.next342
  %387 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %45)
  store i64 %387, ptr %44, align 8, !tbaa !14
  %388 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %386, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %389 unwind label %399

389:                                              ; preds = %385
  %.not212 = icmp eq i64 %388, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  br i1 %.not212, label %.critedge238, label %390

390:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %46) #7
  store i32 %375, ptr %46, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %37, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %391 unwind label %402

391:                                              ; preds = %390
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #7
  %392 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %404 unwind label %395, !llvm.loop !24

393:                                              ; preds = %380
  %394 = landingpad { ptr, i32 }
          cleanup
  br label %406

395:                                              ; preds = %391
  %396 = landingpad { ptr, i32 }
          cleanup
  br label %405

397:                                              ; preds = %381
  %398 = landingpad { ptr, i32 }
          cleanup
  br label %401

399:                                              ; preds = %385
  %400 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #7
  br label %401

401:                                              ; preds = %399, %397
  %.pn210 = phi { ptr, i32 } [ %400, %399 ], [ %398, %397 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #7
  br label %405

402:                                              ; preds = %390
  %403 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #7
  br label %405

404:                                              ; preds = %391
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %484

405:                                              ; preds = %402, %401, %395
  %.pn213 = phi { ptr, i32 } [ %396, %395 ], [ %403, %402 ], [ %.pn210, %401 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  br label %406

406:                                              ; preds = %405, %393
  %.pn213.pn = phi { ptr, i32 } [ %.pn213, %405 ], [ %394, %393 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %505

.critedge238:                                     ; preds = %389
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %.thread356

.thread356:                                       ; preds = %.lr.ph301, %.critedge238, %.thread249, %374
  %.088.lcssa354 = phi i32 [ %.088.lcssa353, %.critedge238 ], [ %.088.lcssa353, %.thread249 ], [ 0, %374 ], [ 0, %.lr.ph301 ]
  %407 = add nuw nsw i32 %.088.lcssa354, 1
  %408 = load i32, ptr @len, align 4, !tbaa !9
  %409 = icmp slt i32 %407, %408
  br i1 %409, label %410, label %442

410:                                              ; preds = %.thread356
  %411 = zext nneg i32 %407 to i64
  %412 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %411)
  %413 = load i8, ptr %412, align 1, !tbaa !21
  %414 = icmp eq i8 %413, 66
  br i1 %414, label %415, label %442

415:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %47) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %416 unwind label %428

416:                                              ; preds = %415
  %417 = zext nneg i32 %.088.lcssa354 to i64
  %418 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %417)
  %419 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %411)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %418, ptr noundef nonnull align 1 dereferenceable(1) %419) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %420 unwind label %432

420:                                              ; preds = %416
  %421 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %indvars.iv.next342
  %422 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %49)
  store i64 %422, ptr %48, align 8, !tbaa !14
  %423 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %421, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %424 unwind label %434

424:                                              ; preds = %420
  %.not218 = icmp eq i64 %423, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  br i1 %.not218, label %.critedge240, label %425

425:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #7
  store i32 %407, ptr %50, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %37, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %426 unwind label %437

426:                                              ; preds = %425
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #7
  %427 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %439 unwind label %430, !llvm.loop !24

428:                                              ; preds = %415
  %429 = landingpad { ptr, i32 }
          cleanup
  br label %441

430:                                              ; preds = %426
  %431 = landingpad { ptr, i32 }
          cleanup
  br label %440

432:                                              ; preds = %416
  %433 = landingpad { ptr, i32 }
          cleanup
  br label %436

434:                                              ; preds = %420
  %435 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #7
  br label %436

436:                                              ; preds = %434, %432
  %.pn216 = phi { ptr, i32 } [ %435, %434 ], [ %433, %432 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  br label %440

437:                                              ; preds = %425
  %438 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #7
  br label %440

439:                                              ; preds = %426
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  br label %484

440:                                              ; preds = %437, %436, %430
  %.pn219 = phi { ptr, i32 } [ %431, %430 ], [ %438, %437 ], [ %.pn216, %436 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  br label %441

441:                                              ; preds = %440, %428
  %.pn219.pn = phi { ptr, i32 } [ %.pn219, %440 ], [ %429, %428 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  br label %505

.critedge240:                                     ; preds = %424
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  br label %442

442:                                              ; preds = %.critedge240, %410, %.thread356
  %443 = add nuw nsw i32 %.088.lcssa354, 2
  %444 = load i32, ptr @len, align 4, !tbaa !9
  %445 = icmp slt i32 %443, %444
  br i1 %445, label %446, label %484

446:                                              ; preds = %442
  %447 = zext nneg i32 %443 to i64
  %448 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %447)
  %449 = load i8, ptr %448, align 1, !tbaa !21
  %450 = icmp eq i8 %449, 66
  br i1 %450, label %451, label %484

451:                                              ; preds = %446
  %452 = zext nneg i32 %407 to i64
  %453 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %452)
  %454 = load i8, ptr %453, align 1, !tbaa !21
  %455 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %447)
  %456 = load i8, ptr %455, align 1, !tbaa !21
  %.not222 = icmp eq i8 %454, %456
  br i1 %.not222, label %484, label %457

457:                                              ; preds = %451
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %51) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %458 unwind label %470

458:                                              ; preds = %457
  %459 = zext nneg i32 %.088.lcssa354 to i64
  %460 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %459)
  %461 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef %447)
  call void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %460, ptr noundef nonnull align 1 dereferenceable(1) %461) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %52) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %462 unwind label %474

462:                                              ; preds = %458
  %463 = getelementptr inbounds [100000 x %"class.std::set"], ptr @dist, i64 0, i64 %indvars.iv.next342
  %464 = call noundef i64 @_Z5shashNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %53)
  store i64 %464, ptr %52, align 8, !tbaa !14
  %465 = invoke noundef i64 @_ZNKSt3setIxSt4lessIxESaIxEE5countERKx(ptr noundef nonnull align 8 dereferenceable(48) %463, ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %466 unwind label %476

466:                                              ; preds = %462
  %.not225 = icmp eq i64 %465, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #7
  br i1 %.not225, label %.critedge242, label %467

467:                                              ; preds = %466
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %54) #7
  store i32 %443, ptr %54, align 4, !tbaa !9
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %37, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %468 unwind label %479

468:                                              ; preds = %467
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %54) #7
  %469 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %481 unwind label %472, !llvm.loop !24

470:                                              ; preds = %457
  %471 = landingpad { ptr, i32 }
          cleanup
  br label %483

472:                                              ; preds = %468
  %473 = landingpad { ptr, i32 }
          cleanup
  br label %482

474:                                              ; preds = %458
  %475 = landingpad { ptr, i32 }
          cleanup
  br label %478

476:                                              ; preds = %462
  %477 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #7
  br label %478

478:                                              ; preds = %476, %474
  %.pn223 = phi { ptr, i32 } [ %477, %476 ], [ %475, %474 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %52) #7
  br label %482

479:                                              ; preds = %467
  %480 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %54) #7
  br label %482

481:                                              ; preds = %468
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #7
  br label %484

482:                                              ; preds = %479, %478, %472
  %.pn226 = phi { ptr, i32 } [ %473, %472 ], [ %480, %479 ], [ %.pn223, %478 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #7
  br label %483

483:                                              ; preds = %482, %470
  %.pn226.pn = phi { ptr, i32 } [ %.pn226, %482 ], [ %471, %470 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #7
  br label %505

.critedge242:                                     ; preds = %466
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #7
  br label %484

484:                                              ; preds = %439, %404, %371, %481, %442, %446, %451, %.critedge242
  %485 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) @_Z2pzB5cxx11) #7
  br i1 %485, label %.lr.ph301, label %.preheader

.lr.ph303:                                        ; preds = %.preheader, %501
  %.0302 = phi i32 [ %491, %501 ], [ 0, %.preheader ]
  %486 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  %487 = load i32, ptr %486, align 4, !tbaa !9
  %488 = add nsw i32 %487, 1
  %489 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %488)
          to label %490 unwind label %503

490:                                              ; preds = %.lr.ph303
  %491 = add nuw nsw i32 %.0302, 1
  %492 = urem i32 %491, 20
  %493 = icmp eq i32 %492, 0
  br i1 %493, label %498, label %494

494:                                              ; preds = %490
  %495 = call noundef i64 @_ZNKSt5queueIiSt5dequeIiSaIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  %496 = and i64 %495, 4294967295
  %497 = icmp eq i64 %496, 1
  %spec.select = select i1 %497, ptr @.str.8, ptr @.str.9
  br label %498

498:                                              ; preds = %494, %490
  %499 = phi ptr [ @.str.8, %490 ], [ %spec.select, %494 ]
  %500 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %489, ptr noundef nonnull %499)
          to label %501 unwind label %503

501:                                              ; preds = %498
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  %502 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %37)
  br i1 %502, label %._crit_edge304, label %.lr.ph303, !llvm.loop !25

503:                                              ; preds = %498, %.lr.ph303
  %504 = landingpad { ptr, i32 }
          cleanup
  br label %505

._crit_edge304:                                   ; preds = %501, %.preheader
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #7
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %37) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %37) #7
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #7
  ret i32 0

505:                                              ; preds = %373, %406, %441, %483, %503
  %.pn226.pn.pn.pn = phi { ptr, i32 } [ %504, %503 ], [ %.pn226.pn, %483 ], [ %.pn219.pn, %441 ], [ %.pn213.pn, %406 ], [ %.pn206.pn, %373 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  br label %506

506:                                              ; preds = %505, %331
  %.pn226.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn226.pn.pn.pn, %505 ], [ %332, %331 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #7
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %37) #7
  br label %507

507:                                              ; preds = %506, %329
  %.pn226.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn226.pn.pn.pn.pn, %506 ], [ %330, %329 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %37) #7
  br label %508

508:                                              ; preds = %316, %507, %108, %103
  %.pn226.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn155, %108 ], [ %.pn, %103 ], [ %.pn226.pn.pn.pn.pn.pn, %507 ], [ %.pn194.pn.pn.pn.pn.pn, %316 ]
  call void @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn226.pn.pn.pn.pn.pn.pn.pn
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; 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 #4 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertEOx(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5emptyEv(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(36) ptr @_ZNSt5queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESt5dequeIS7_SaIS7_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIcENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 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 #6

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

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

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

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

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

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

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

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


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