; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Codeforces Round #604 (Div. 2)/B. Beautiful Numbers.ll (Z5solvev)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.0" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"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::allocator.3" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::_Bit_reference", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.3", align 1
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.3", align 1
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca %"struct.std::_Bit_reference", align 8
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca %"struct.std::_Bit_reference", align 8
  %27 = alloca %"struct.std::_Bit_reference", align 8
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca %"struct.std::_Bit_reference", align 8
  %30 = alloca %"struct.std::_Bit_reference", align 8
  %31 = alloca %"struct.std::_Bit_reference", align 8
  %32 = alloca %"struct.std::_Bit_reference", align 8
  %33 = alloca %"struct.std::_Bit_reference", align 8
  %34 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %36 = load i64, ptr %1, align 8, !tbaa !5
  %37 = call ptr @llvm.stacksave.p0()
  store ptr %37, ptr %2, align 8
  %38 = alloca i64, i64 %36, align 16
  store i64 %36, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %48, %0
  %40 = load i64, ptr %4, align 8, !tbaa !5
  %41 = load i64, ptr %1, align 8, !tbaa !5
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %51

44:                                               ; preds = %39
  %45 = load i64, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds i64, ptr %38, i64 %45
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %46)
  br label %48

48:                                               ; preds = %44
  %49 = load i64, ptr %4, align 8, !tbaa !5
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %4, align 8, !tbaa !5
  br label %39, !llvm.loop !9

51:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  %52 = load i64, ptr %1, align 8, !tbaa !5
  %53 = add nsw i64 %52, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %53, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %54 unwind label %67

54:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %55 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 0)
          to label %56 unwind label %71

56:                                               ; preds = %54
  %57 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %58 = extractvalue { ptr, i64 } %55, 0
  store ptr %58, ptr %57, align 8
  %59 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %60 = extractvalue { ptr, i64 } %55, 1
  store i64 %60, ptr %59, align 8
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %83, %56
  %63 = load i64, ptr %12, align 8, !tbaa !5
  %64 = load i64, ptr %1, align 8, !tbaa !5
  %65 = icmp slt i64 %63, %64
  br i1 %65, label %75, label %66

66:                                               ; preds = %62
  store i32 5, ptr %13, align 4
  br label %86

67:                                               ; preds = %51
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %459

71:                                               ; preds = %54
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %458

75:                                               ; preds = %62
  %76 = load i64, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds i64, ptr %38, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = icmp eq i64 %78, 1
  br i1 %79, label %80, label %82

80:                                               ; preds = %75
  %81 = load i64, ptr %12, align 8, !tbaa !5
  store i64 %81, ptr %11, align 8, !tbaa !5
  store i32 5, ptr %13, align 4
  br label %86

82:                                               ; preds = %75
  br label %83

83:                                               ; preds = %82
  %84 = load i64, ptr %12, align 8, !tbaa !5
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %12, align 8, !tbaa !5
  br label %62, !llvm.loop !13

86:                                               ; preds = %80, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %87

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %88 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef 1)
          to label %89 unwind label %104

89:                                               ; preds = %87
  %90 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %91 = extractvalue { ptr, i64 } %88, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %93 = extractvalue { ptr, i64 } %88, 1
  store i64 %93, ptr %92, align 8
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %95 = load i64, ptr %1, align 8, !tbaa !5
  %96 = add nsw i64 %95, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %96, i8 noundef signext 76, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %97 unwind label %108

97:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %98 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %98, ptr %17, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %118, %97
  %100 = load i64, ptr %17, align 8, !tbaa !5
  %101 = load i64, ptr %1, align 8, !tbaa !5
  %102 = icmp slt i64 %100, %101
  br i1 %102, label %112, label %103

103:                                              ; preds = %99
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %125

104:                                              ; preds = %87
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %8, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %457

108:                                              ; preds = %89
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %456

112:                                              ; preds = %99
  %113 = load i64, ptr %17, align 8, !tbaa !5
  %114 = getelementptr inbounds i64, ptr %38, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !5
  %116 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %115)
          to label %117 unwind label %121

117:                                              ; preds = %112
  store i8 82, ptr %116, align 1, !tbaa !14
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %17, align 8, !tbaa !5
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %17, align 8, !tbaa !5
  br label %99, !llvm.loop !15

121:                                              ; preds = %112
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %8, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %455

125:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %126 unwind label %185

126:                                              ; preds = %125
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %127 = load i64, ptr %11, align 8, !tbaa !5
  %128 = sub nsw i64 %127, 1
  store i64 %128, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %129 = load i64, ptr %11, align 8, !tbaa !5
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 2, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 1, ptr %23, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %273, %126
  %132 = load i64, ptr %20, align 8, !tbaa !5
  %133 = icmp sge i64 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %131
  %135 = load i64, ptr %21, align 8, !tbaa !5
  %136 = load i64, ptr %1, align 8, !tbaa !5
  %137 = icmp slt i64 %135, %136
  br i1 %137, label %138, label %142

138:                                              ; preds = %134
  %139 = load i64, ptr %22, align 8, !tbaa !5
  %140 = load i64, ptr %1, align 8, !tbaa !5
  %141 = icmp sle i64 %139, %140
  br label %142

142:                                              ; preds = %138, %134, %131
  %143 = phi i1 [ false, %134 ], [ false, %131 ], [ %141, %138 ]
  br i1 %143, label %144, label %276

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %145 = load i64, ptr %22, align 8, !tbaa !5
  %146 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %145)
          to label %147 unwind label %189

147:                                              ; preds = %144
  %148 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %149 = extractvalue { ptr, i64 } %146, 0
  store ptr %149, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %151 = extractvalue { ptr, i64 } %146, 1
  store i64 %151, ptr %150, align 8
  %152 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  %153 = xor i1 %152, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br i1 %153, label %154, label %263

154:                                              ; preds = %147
  %155 = load i64, ptr %22, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %155)
          to label %157 unwind label %193

157:                                              ; preds = %154
  %158 = load i8, ptr %156, align 1, !tbaa !14
  %159 = sext i8 %158 to i32
  %160 = icmp eq i32 %159, 82
  br i1 %160, label %161, label %216

161:                                              ; preds = %157
  br label %162

162:                                              ; preds = %183, %161
  %163 = load i64, ptr %21, align 8, !tbaa !5
  %164 = getelementptr inbounds i64, ptr %38, i64 %163
  %165 = load i64, ptr %164, align 8, !tbaa !5
  %166 = load i64, ptr %22, align 8, !tbaa !5
  %167 = icmp ne i64 %165, %166
  br i1 %167, label %168, label %201

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %169 = load i64, ptr %21, align 8, !tbaa !5
  %170 = getelementptr inbounds i64, ptr %38, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !5
  %172 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %171)
          to label %173 unwind label %197

173:                                              ; preds = %168
  %174 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %175 = extractvalue { ptr, i64 } %172, 0
  store ptr %175, ptr %174, align 8
  %176 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %177 = extractvalue { ptr, i64 } %172, 1
  store i64 %177, ptr %176, align 8
  %178 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %25, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  %179 = load i64, ptr %21, align 8, !tbaa !5
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %21, align 8, !tbaa !5
  %181 = getelementptr inbounds i64, ptr %38, i64 %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %181)
          to label %183 unwind label %193

183:                                              ; preds = %173
  %184 = load i64, ptr %182, align 8, !tbaa !5
  store i64 %184, ptr %23, align 8, !tbaa !5
  br label %162, !llvm.loop !16

185:                                              ; preds = %125
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %8, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %454

189:                                              ; preds = %144
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %8, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %453

193:                                              ; preds = %449, %447, %441, %438, %419, %393, %354, %351, %334, %308, %270, %267, %259, %228, %173, %154
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %8, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %9, align 4
  br label %453

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

201:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %202 = load i64, ptr %21, align 8, !tbaa !5
  %203 = getelementptr inbounds i64, ptr %38, i64 %202
  %204 = load i64, ptr %203, align 8, !tbaa !5
  %205 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %204)
          to label %206 unwind label %212

206:                                              ; preds = %201
  %207 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %208 = extractvalue { ptr, i64 } %205, 0
  store ptr %208, ptr %207, align 8
  %209 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %210 = extractvalue { ptr, i64 } %205, 1
  store i64 %210, ptr %209, align 8
  %211 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %26, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %259

212:                                              ; preds = %201
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %8, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %453

216:                                              ; preds = %157
  br label %217

217:                                              ; preds = %238, %216
  %218 = load i64, ptr %20, align 8, !tbaa !5
  %219 = getelementptr inbounds i64, ptr %38, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !5
  %221 = load i64, ptr %22, align 8, !tbaa !5
  %222 = icmp ne i64 %220, %221
  br i1 %222, label %223, label %244

223:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %224 = load i64, ptr %20, align 8, !tbaa !5
  %225 = getelementptr inbounds i64, ptr %38, i64 %224
  %226 = load i64, ptr %225, align 8, !tbaa !5
  %227 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %226)
          to label %228 unwind label %240

228:                                              ; preds = %223
  %229 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %230 = extractvalue { ptr, i64 } %227, 0
  store ptr %230, ptr %229, align 8
  %231 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %232 = extractvalue { ptr, i64 } %227, 1
  store i64 %232, ptr %231, align 8
  %233 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %27, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  %234 = load i64, ptr %20, align 8, !tbaa !5
  %235 = add nsw i64 %234, -1
  store i64 %235, ptr %20, align 8, !tbaa !5
  %236 = getelementptr inbounds i64, ptr %38, i64 %234
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %236)
          to label %238 unwind label %193

238:                                              ; preds = %228
  %239 = load i64, ptr %237, align 8, !tbaa !5
  store i64 %239, ptr %23, align 8, !tbaa !5
  br label %217, !llvm.loop !17

240:                                              ; preds = %223
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %8, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %453

244:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %245 = load i64, ptr %20, align 8, !tbaa !5
  %246 = getelementptr inbounds i64, ptr %38, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !5
  %248 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %247)
          to label %249 unwind label %255

249:                                              ; preds = %244
  %250 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %251 = extractvalue { ptr, i64 } %248, 0
  store ptr %251, ptr %250, align 8
  %252 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %253 = extractvalue { ptr, i64 } %248, 1
  store i64 %253, ptr %252, align 8
  %254 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %28, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %259

255:                                              ; preds = %244
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %8, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %453

259:                                              ; preds = %249, %206
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %261 unwind label %193

261:                                              ; preds = %259
  %262 = load i64, ptr %260, align 8, !tbaa !5
  store i64 %262, ptr %23, align 8, !tbaa !5
  br label %263

263:                                              ; preds = %261, %147
  %264 = load i64, ptr %23, align 8, !tbaa !5
  %265 = load i64, ptr %22, align 8, !tbaa !5
  %266 = icmp eq i64 %264, %265
  br i1 %266, label %267, label %270

267:                                              ; preds = %263
  %268 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str)
          to label %269 unwind label %193

269:                                              ; preds = %267
  br label %273

270:                                              ; preds = %263
  %271 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.1)
          to label %272 unwind label %193

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272, %269
  %274 = load i64, ptr %22, align 8, !tbaa !5
  %275 = add nsw i64 %274, 1
  store i64 %275, ptr %22, align 8, !tbaa !5
  br label %131, !llvm.loop !18

276:                                              ; preds = %142
  br label %277

277:                                              ; preds = %357, %276
  %278 = load i64, ptr %20, align 8, !tbaa !5
  %279 = icmp sge i64 %278, 0
  br i1 %279, label %280, label %284

280:                                              ; preds = %277
  %281 = load i64, ptr %22, align 8, !tbaa !5
  %282 = load i64, ptr %1, align 8, !tbaa !5
  %283 = icmp sle i64 %281, %282
  br label %284

284:                                              ; preds = %280, %277
  %285 = phi i1 [ false, %277 ], [ %283, %280 ]
  br i1 %285, label %286, label %360

286:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %287 = load i64, ptr %22, align 8, !tbaa !5
  %288 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %287)
          to label %289 unwind label %321

289:                                              ; preds = %286
  %290 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %291 = extractvalue { ptr, i64 } %288, 0
  store ptr %291, ptr %290, align 8
  %292 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %293 = extractvalue { ptr, i64 } %288, 1
  store i64 %293, ptr %292, align 8
  %294 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  %295 = xor i1 %294, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br i1 %295, label %296, label %347

296:                                              ; preds = %289
  br label %297

297:                                              ; preds = %317, %296
  %298 = load i64, ptr %20, align 8, !tbaa !5
  %299 = getelementptr inbounds i64, ptr %38, i64 %298
  %300 = load i64, ptr %299, align 8, !tbaa !5
  %301 = load i64, ptr %22, align 8, !tbaa !5
  %302 = icmp ne i64 %300, %301
  br i1 %302, label %303, label %329

303:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %304 = load i64, ptr %20, align 8, !tbaa !5
  %305 = getelementptr inbounds i64, ptr %38, i64 %304
  %306 = load i64, ptr %305, align 8, !tbaa !5
  %307 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %306)
          to label %308 unwind label %325

308:                                              ; preds = %303
  %309 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %310 = extractvalue { ptr, i64 } %307, 0
  store ptr %310, ptr %309, align 8
  %311 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %312 = extractvalue { ptr, i64 } %307, 1
  store i64 %312, ptr %311, align 8
  %313 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %30, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  %314 = load i64, ptr %20, align 8, !tbaa !5
  %315 = getelementptr inbounds i64, ptr %38, i64 %314
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %315)
          to label %317 unwind label %193

317:                                              ; preds = %308
  %318 = load i64, ptr %316, align 8, !tbaa !5
  store i64 %318, ptr %23, align 8, !tbaa !5
  %319 = load i64, ptr %20, align 8, !tbaa !5
  %320 = add nsw i64 %319, -1
  store i64 %320, ptr %20, align 8, !tbaa !5
  br label %297, !llvm.loop !19

321:                                              ; preds = %286
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %8, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br label %453

325:                                              ; preds = %303
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %8, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %453

329:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %330 = load i64, ptr %20, align 8, !tbaa !5
  %331 = getelementptr inbounds i64, ptr %38, i64 %330
  %332 = load i64, ptr %331, align 8, !tbaa !5
  %333 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %332)
          to label %334 unwind label %343

334:                                              ; preds = %329
  %335 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %336 = extractvalue { ptr, i64 } %333, 0
  store ptr %336, ptr %335, align 8
  %337 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %338 = extractvalue { ptr, i64 } %333, 1
  store i64 %338, ptr %337, align 8
  %339 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %31, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %341 unwind label %193

341:                                              ; preds = %334
  %342 = load i64, ptr %340, align 8, !tbaa !5
  store i64 %342, ptr %23, align 8, !tbaa !5
  br label %347

343:                                              ; preds = %329
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %8, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %453

347:                                              ; preds = %341, %289
  %348 = load i64, ptr %23, align 8, !tbaa !5
  %349 = load i64, ptr %22, align 8, !tbaa !5
  %350 = icmp eq i64 %348, %349
  br i1 %350, label %351, label %354

351:                                              ; preds = %347
  %352 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str)
          to label %353 unwind label %193

353:                                              ; preds = %351
  br label %357

354:                                              ; preds = %347
  %355 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.1)
          to label %356 unwind label %193

356:                                              ; preds = %354
  br label %357

357:                                              ; preds = %356, %353
  %358 = load i64, ptr %22, align 8, !tbaa !5
  %359 = add nsw i64 %358, 1
  store i64 %359, ptr %22, align 8, !tbaa !5
  br label %277, !llvm.loop !20

360:                                              ; preds = %284
  br label %361

361:                                              ; preds = %444, %360
  %362 = load i64, ptr %21, align 8, !tbaa !5
  %363 = load i64, ptr %1, align 8, !tbaa !5
  %364 = icmp slt i64 %362, %363
  br i1 %364, label %365, label %369

365:                                              ; preds = %361
  %366 = load i64, ptr %22, align 8, !tbaa !5
  %367 = load i64, ptr %1, align 8, !tbaa !5
  %368 = icmp sle i64 %366, %367
  br label %369

369:                                              ; preds = %365, %361
  %370 = phi i1 [ false, %361 ], [ %368, %365 ]
  br i1 %370, label %371, label %447

371:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %372 = load i64, ptr %22, align 8, !tbaa !5
  %373 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %372)
          to label %374 unwind label %406

374:                                              ; preds = %371
  %375 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %376 = extractvalue { ptr, i64 } %373, 0
  store ptr %376, ptr %375, align 8
  %377 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %378 = extractvalue { ptr, i64 } %373, 1
  store i64 %378, ptr %377, align 8
  %379 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  %380 = xor i1 %379, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br i1 %380, label %381, label %434

381:                                              ; preds = %374
  br label %382

382:                                              ; preds = %402, %381
  %383 = load i64, ptr %21, align 8, !tbaa !5
  %384 = getelementptr inbounds i64, ptr %38, i64 %383
  %385 = load i64, ptr %384, align 8, !tbaa !5
  %386 = load i64, ptr %22, align 8, !tbaa !5
  %387 = icmp ne i64 %385, %386
  br i1 %387, label %388, label %414

388:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %389 = load i64, ptr %21, align 8, !tbaa !5
  %390 = getelementptr inbounds i64, ptr %38, i64 %389
  %391 = load i64, ptr %390, align 8, !tbaa !5
  %392 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %391)
          to label %393 unwind label %410

393:                                              ; preds = %388
  %394 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %395 = extractvalue { ptr, i64 } %392, 0
  store ptr %395, ptr %394, align 8
  %396 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %397 = extractvalue { ptr, i64 } %392, 1
  store i64 %397, ptr %396, align 8
  %398 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %33, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  %399 = load i64, ptr %21, align 8, !tbaa !5
  %400 = getelementptr inbounds i64, ptr %38, i64 %399
  %401 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %400)
          to label %402 unwind label %193

402:                                              ; preds = %393
  %403 = load i64, ptr %401, align 8, !tbaa !5
  store i64 %403, ptr %23, align 8, !tbaa !5
  %404 = load i64, ptr %21, align 8, !tbaa !5
  %405 = add nsw i64 %404, 1
  store i64 %405, ptr %21, align 8, !tbaa !5
  br label %382, !llvm.loop !21

406:                                              ; preds = %371
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %8, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %453

410:                                              ; preds = %388
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %8, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %453

414:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %415 = load i64, ptr %21, align 8, !tbaa !5
  %416 = getelementptr inbounds i64, ptr %38, i64 %415
  %417 = load i64, ptr %416, align 8, !tbaa !5
  %418 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %417)
          to label %419 unwind label %430

419:                                              ; preds = %414
  %420 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %421 = extractvalue { ptr, i64 } %418, 0
  store ptr %421, ptr %420, align 8
  %422 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %423 = extractvalue { ptr, i64 } %418, 1
  store i64 %423, ptr %422, align 8
  %424 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %34, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  %425 = load i64, ptr %21, align 8, !tbaa !5
  %426 = getelementptr inbounds i64, ptr %38, i64 %425
  %427 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %426)
          to label %428 unwind label %193

428:                                              ; preds = %419
  %429 = load i64, ptr %427, align 8, !tbaa !5
  store i64 %429, ptr %23, align 8, !tbaa !5
  br label %434

430:                                              ; preds = %414
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %8, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %453

434:                                              ; preds = %428, %374
  %435 = load i64, ptr %23, align 8, !tbaa !5
  %436 = load i64, ptr %22, align 8, !tbaa !5
  %437 = icmp eq i64 %435, %436
  br i1 %437, label %438, label %441

438:                                              ; preds = %434
  %439 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str)
          to label %440 unwind label %193

440:                                              ; preds = %438
  br label %444

441:                                              ; preds = %434
  %442 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.1)
          to label %443 unwind label %193

443:                                              ; preds = %441
  br label %444

444:                                              ; preds = %443, %440
  %445 = load i64, ptr %22, align 8, !tbaa !5
  %446 = add nsw i64 %445, 1
  store i64 %446, ptr %22, align 8, !tbaa !5
  br label %361, !llvm.loop !22

447:                                              ; preds = %369
  %448 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %449 unwind label %193

449:                                              ; preds = %447
  %450 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %448, ptr noundef @.str.2)
          to label %451 unwind label %193

451:                                              ; preds = %449
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  %452 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %452)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void

453:                                              ; preds = %430, %410, %406, %343, %325, %321, %255, %240, %212, %197, %193, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %454

454:                                              ; preds = %453, %185
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %455

455:                                              ; preds = %454, %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %456

456:                                              ; preds = %455, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %457

457:                                              ; preds = %456, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %458

458:                                              ; preds = %457, %71
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br label %459

459:                                              ; preds = %458, %67
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %460

460:                                              ; preds = %459
  %461 = load ptr, ptr %8, align 8
  %462 = load i32, ptr %9, align 4
  %463 = insertvalue { ptr, i32 } poison, ptr %461, 0
  %464 = insertvalue { ptr, i32 } %463, i32 %462, 1
  resume { ptr, i32 } %464
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { nounwind }

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.0" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"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::allocator.3" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i8, align 1
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.3", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.3", align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"struct.std::_Bit_reference", align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %25 = load i64, ptr %1, align 8, !tbaa !5
  %26 = call ptr @llvm.stacksave.p0()
  %27 = alloca i64, i64 %25, align 16
  %28 = load i64, ptr %1, align 8, !tbaa !5
  %29 = icmp sgt i64 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa106 = phi i64 [ %28, %0 ], [ %34, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  %30 = add nsw i64 %.lcssa106, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %30, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %36 unwind label %45

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.060107 = phi i64 [ %33, %.lr.ph ], [ 0, %0 ]
  %31 = getelementptr inbounds i64, ptr %27, i64 %.060107
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %33 = add nuw nsw i64 %.060107, 1
  %34 = load i64, ptr %1, align 8, !tbaa !5
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !11

36:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %37 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 0)
          to label %38 unwind label %47

38:                                               ; preds = %36
  %39 = extractvalue { ptr, i64 } %37, 0
  store ptr %39, ptr %5, align 8
  %40 = getelementptr inbounds i8, ptr %5, i64 8
  %41 = extractvalue { ptr, i64 } %37, 1
  store i64 %41, ptr %40, align 8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %44 = icmp sgt i64 %43, 0
  br i1 %44, label %.lr.ph110, label %._crit_edge111

45:                                               ; preds = %._crit_edge
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %279

47:                                               ; preds = %36
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %278

.lr.ph110:                                        ; preds = %38, %52
  %.046108 = phi i64 [ %53, %52 ], [ 0, %38 ]
  %49 = getelementptr inbounds i64, ptr %27, i64 %.046108
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %._crit_edge111, label %52

52:                                               ; preds = %.lr.ph110
  %53 = add nuw nsw i64 %.046108, 1
  %exitcond.not = icmp eq i64 %53, %43
  br i1 %exitcond.not, label %._crit_edge111, label %.lr.ph110, !llvm.loop !13

._crit_edge111:                                   ; preds = %52, %.lr.ph110, %38
  %.047 = phi i64 [ 0, %38 ], [ %.046108, %.lr.ph110 ], [ 0, %52 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %54 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 1)
          to label %55 unwind label %65

55:                                               ; preds = %._crit_edge111
  %56 = extractvalue { ptr, i64 } %54, 0
  store ptr %56, ptr %6, align 8
  %57 = getelementptr inbounds i8, ptr %6, i64 8
  %58 = extractvalue { ptr, i64 } %54, 1
  store i64 %58, ptr %57, align 8
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %6, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %60 = load i64, ptr %1, align 8, !tbaa !5
  %61 = add nsw i64 %60, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %61, i8 noundef signext 76, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %62 unwind label %67

62:                                               ; preds = %55
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  %63 = load i64, ptr %1, align 8, !tbaa !5
  %64 = icmp slt i64 %.047, %63
  br i1 %64, label %.lr.ph117, label %._crit_edge118

._crit_edge118:                                   ; preds = %.lr.ph117, %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %75 unwind label %116

65:                                               ; preds = %._crit_edge111
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %278

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

.lr.ph117:                                        ; preds = %62, %.lr.ph117
  %.045115 = phi i64 [ %72, %.lr.ph117 ], [ %.047, %62 ]
  %69 = getelementptr inbounds i64, ptr %27, i64 %.045115
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %70)
  store i8 82, ptr %71, align 1, !tbaa !14
  %72 = add nuw nsw i64 %.045115, 1
  %73 = load i64, ptr %1, align 8, !tbaa !5
  %74 = icmp slt i64 %72, %73
  br i1 %74, label %.lr.ph117, label %._crit_edge118, !llvm.loop !15

75:                                               ; preds = %._crit_edge118
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store i64 2, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store i64 1, ptr %12, align 8, !tbaa !5
  %.not158 = icmp eq i64 %.047, 0
  br i1 %.not158, label %.critedge.thread, label %.lr.ph134

.lr.ph134:                                        ; preds = %75
  %76 = add nuw nsw i64 %.047, 1
  %77 = add nsw i64 %.047, -1
  %78 = getelementptr inbounds i8, ptr %13, i64 8
  %79 = getelementptr inbounds i8, ptr %16, i64 8
  %80 = getelementptr inbounds i8, ptr %17, i64 8
  %81 = getelementptr inbounds i8, ptr %14, i64 8
  %82 = getelementptr inbounds i8, ptr %15, i64 8
  br label %83

83:                                               ; preds = %.lr.ph134, %158
  %84 = phi i64 [ 2, %.lr.ph134 ], [ %160, %158 ]
  %.0132 = phi i64 [ %76, %.lr.ph134 ], [ %.3, %158 ]
  %.038131 = phi i64 [ %77, %.lr.ph134 ], [ %.341, %158 ]
  %85 = load i64, ptr %1, align 8, !tbaa !5
  %86 = icmp sge i64 %.0132, %85
  %.not = icmp sgt i64 %84, %85
  %or.cond = select i1 %86, i1 true, i1 %.not
  br i1 %or.cond, label %.critedge, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %88 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %84)
          to label %89 unwind label %118

89:                                               ; preds = %87
  %90 = extractvalue { ptr, i64 } %88, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i64 } %88, 1
  store i64 %91, ptr %78, align 8
  %92 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br i1 %92, label %._crit_edge169, label %93

._crit_edge169:                                   ; preds = %89
  %.pre = load i64, ptr %12, align 8, !tbaa !5
  br label %.invoke214

93:                                               ; preds = %89
  %94 = load i64, ptr %11, align 8, !tbaa !5
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %94)
  %96 = load i8, ptr %95, align 1, !tbaa !14
  %97 = icmp eq i8 %96, 82
  %98 = load i64, ptr %11, align 8, !tbaa !5
  br i1 %97, label %.preheader77, label %.preheader78

.preheader78:                                     ; preds = %93
  %99 = getelementptr inbounds i64, ptr %27, i64 %.038131
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %.not64119 = icmp eq i64 %100, %98
  br i1 %.not64119, label %._crit_edge122, label %.lr.ph121

.preheader77:                                     ; preds = %93
  %101 = getelementptr inbounds i64, ptr %27, i64 %.0132
  %102 = load i64, ptr %101, align 8, !tbaa !5
  %.not65125 = icmp eq i64 %102, %98
  br i1 %.not65125, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %.preheader77, %106
  %103 = phi i64 [ %114, %106 ], [ %102, %.preheader77 ]
  %104 = phi ptr [ %113, %106 ], [ %101, %.preheader77 ]
  %.1126 = phi i64 [ %110, %106 ], [ %.0132, %.preheader77 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %105 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %103)
          to label %106 unwind label %120

106:                                              ; preds = %.lr.ph127
  %107 = extractvalue { ptr, i64 } %105, 0
  store ptr %107, ptr %14, align 8
  %108 = extractvalue { ptr, i64 } %105, 1
  store i64 %108, ptr %81, align 8
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %110 = add nsw i64 %.1126, 1
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %104)
  %112 = load i64, ptr %111, align 8, !tbaa !5
  store i64 %112, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds i64, ptr %27, i64 %110
  %114 = load i64, ptr %113, align 8, !tbaa !5
  %115 = load i64, ptr %11, align 8, !tbaa !5
  %.not65 = icmp eq i64 %114, %115
  br i1 %.not65, label %._crit_edge128, label %.lr.ph127, !llvm.loop !16

116:                                              ; preds = %._crit_edge118
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %276

118:                                              ; preds = %87
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %.loopexit.split-lp

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

.loopexit.split-lp.loopexit:                      ; preds = %.invoke213
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.invoke214
  %lpad.loopexit79 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %._crit_edge157, %273
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

120:                                              ; preds = %.lr.ph127
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %.loopexit.split-lp

._crit_edge128:                                   ; preds = %106, %.preheader77
  %.1.lcssa = phi i64 [ %.0132, %.preheader77 ], [ %110, %106 ]
  %.lcssa91 = phi i64 [ %102, %.preheader77 ], [ %114, %106 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %122 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.lcssa91)
          to label %123 unwind label %127

123:                                              ; preds = %._crit_edge128
  %124 = extractvalue { ptr, i64 } %122, 0
  store ptr %124, ptr %15, align 8
  %125 = extractvalue { ptr, i64 } %122, 1
  store i64 %125, ptr %82, align 8
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %151

127:                                              ; preds = %._crit_edge128
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %.loopexit.split-lp

.lr.ph121:                                        ; preds = %.preheader78, %132
  %129 = phi i64 [ %140, %132 ], [ %100, %.preheader78 ]
  %130 = phi ptr [ %139, %132 ], [ %99, %.preheader78 ]
  %.139120 = phi i64 [ %136, %132 ], [ %.038131, %.preheader78 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  %131 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %129)
          to label %132 unwind label %142

132:                                              ; preds = %.lr.ph121
  %133 = extractvalue { ptr, i64 } %131, 0
  store ptr %133, ptr %16, align 8
  %134 = extractvalue { ptr, i64 } %131, 1
  store i64 %134, ptr %79, align 8
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %16, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  %136 = add nsw i64 %.139120, -1
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %130)
  %138 = load i64, ptr %137, align 8, !tbaa !5
  store i64 %138, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds i64, ptr %27, i64 %136
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = load i64, ptr %11, align 8, !tbaa !5
  %.not64 = icmp eq i64 %140, %141
  br i1 %.not64, label %._crit_edge122, label %.lr.ph121, !llvm.loop !17

142:                                              ; preds = %.lr.ph121
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %.loopexit.split-lp

._crit_edge122:                                   ; preds = %132, %.preheader78
  %.139.lcssa = phi i64 [ %.038131, %.preheader78 ], [ %136, %132 ]
  %.lcssa88 = phi i64 [ %100, %.preheader78 ], [ %140, %132 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  %144 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.lcssa88)
          to label %145 unwind label %149

145:                                              ; preds = %._crit_edge122
  %146 = extractvalue { ptr, i64 } %144, 0
  store ptr %146, ptr %17, align 8
  %147 = extractvalue { ptr, i64 } %144, 1
  store i64 %147, ptr %80, align 8
  %148 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %151

149:                                              ; preds = %._crit_edge122
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %.loopexit.split-lp

151:                                              ; preds = %145, %123
  %.240 = phi i64 [ %.038131, %123 ], [ %.139.lcssa, %145 ]
  %.2 = phi i64 [ %.1.lcssa, %123 ], [ %.0132, %145 ]
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %153 = load i64, ptr %152, align 8, !tbaa !5
  store i64 %153, ptr %12, align 8, !tbaa !5
  br label %.invoke214

.invoke214:                                       ; preds = %._crit_edge169, %151
  %154 = phi i64 [ %153, %151 ], [ %.pre, %._crit_edge169 ]
  %.341 = phi i64 [ %.240, %151 ], [ %.038131, %._crit_edge169 ]
  %.3 = phi i64 [ %.2, %151 ], [ %.0132, %._crit_edge169 ]
  %155 = load i64, ptr %11, align 8, !tbaa !5
  %156 = icmp eq i64 %154, %155
  %.str..str.1 = select i1 %156, ptr @.str, ptr @.str.1
  %157 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %.str..str.1)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

158:                                              ; preds = %.invoke214
  %159 = load i64, ptr %11, align 8, !tbaa !5
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %11, align 8, !tbaa !5
  %161 = icmp sgt i64 %.341, -1
  br i1 %161, label %83, label %.critedge.thread, !llvm.loop !18

.critedge.thread:                                 ; preds = %158, %75
  %.ph = phi i64 [ 2, %75 ], [ %160, %158 ]
  %.0.lcssa.ph = phi i64 [ 1, %75 ], [ %.3, %158 ]
  %162 = load i64, ptr %1, align 8
  br label %.preheader72

.critedge:                                        ; preds = %83
  %163 = icmp sgt i64 %.038131, -1
  %164 = load i64, ptr %1, align 8
  %165 = icmp sle i64 %84, %164
  %166 = select i1 %163, i1 %165, i1 false
  br i1 %166, label %.lr.ph147, label %.preheader72

.lr.ph147:                                        ; preds = %.critedge
  %167 = getelementptr inbounds i8, ptr %18, i64 8
  %168 = getelementptr inbounds i8, ptr %19, i64 8
  %169 = getelementptr inbounds i8, ptr %20, i64 8
  br label %178

.preheader72:                                     ; preds = %218, %.critedge.thread, %.critedge
  %.0.lcssa176 = phi i64 [ %.0132, %.critedge ], [ %.0.lcssa.ph, %.critedge.thread ], [ %.0132, %218 ]
  %170 = phi i64 [ %84, %.critedge ], [ %.ph, %.critedge.thread ], [ %220, %218 ]
  %171 = phi i64 [ %164, %.critedge ], [ %162, %.critedge.thread ], [ %222, %218 ]
  %172 = icmp slt i64 %.0.lcssa176, %171
  %173 = icmp sle i64 %170, %171
  %174 = select i1 %172, i1 %173, i1 false
  br i1 %174, label %.lr.ph156, label %._crit_edge157

.lr.ph156:                                        ; preds = %.preheader72
  %175 = getelementptr inbounds i8, ptr %21, i64 8
  %176 = getelementptr inbounds i8, ptr %22, i64 8
  %177 = getelementptr inbounds i8, ptr %23, i64 8
  br label %225

178:                                              ; preds = %.lr.ph147, %218
  %179 = phi i64 [ %84, %.lr.ph147 ], [ %220, %218 ]
  %.442146 = phi i64 [ %.038131, %.lr.ph147 ], [ %.644, %218 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %180 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %179)
          to label %181 unwind label %201

181:                                              ; preds = %178
  %182 = extractvalue { ptr, i64 } %180, 0
  store ptr %182, ptr %18, align 8
  %183 = extractvalue { ptr, i64 } %180, 1
  store i64 %183, ptr %167, align 8
  %184 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  br i1 %184, label %._crit_edge170, label %.preheader73

._crit_edge170:                                   ; preds = %181
  %.pre171 = load i64, ptr %12, align 8, !tbaa !5
  br label %.invoke213

.preheader73:                                     ; preds = %181
  %185 = getelementptr inbounds i64, ptr %27, i64 %.442146
  %186 = load i64, ptr %185, align 8, !tbaa !5
  %187 = load i64, ptr %11, align 8, !tbaa !5
  %.not63140 = icmp eq i64 %186, %187
  br i1 %.not63140, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %.preheader73, %191
  %188 = phi i64 [ %199, %191 ], [ %186, %.preheader73 ]
  %189 = phi ptr [ %198, %191 ], [ %185, %.preheader73 ]
  %.543141 = phi i64 [ %197, %191 ], [ %.442146, %.preheader73 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %190 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %188)
          to label %191 unwind label %203

191:                                              ; preds = %.lr.ph142
  %192 = extractvalue { ptr, i64 } %190, 0
  store ptr %192, ptr %19, align 8
  %193 = extractvalue { ptr, i64 } %190, 1
  store i64 %193, ptr %168, align 8
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %189)
  %196 = load i64, ptr %195, align 8, !tbaa !5
  store i64 %196, ptr %12, align 8, !tbaa !5
  %197 = add nsw i64 %.543141, -1
  %198 = getelementptr inbounds i64, ptr %27, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !5
  %200 = load i64, ptr %11, align 8, !tbaa !5
  %.not63 = icmp eq i64 %199, %200
  br i1 %.not63, label %._crit_edge143, label %.lr.ph142, !llvm.loop !19

201:                                              ; preds = %178
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  br label %.loopexit.split-lp

203:                                              ; preds = %.lr.ph142
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %.loopexit.split-lp

._crit_edge143:                                   ; preds = %191, %.preheader73
  %.543.lcssa = phi i64 [ %.442146, %.preheader73 ], [ %197, %191 ]
  %.lcssa85 = phi i64 [ %186, %.preheader73 ], [ %199, %191 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %205 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.lcssa85)
          to label %206 unwind label %212

206:                                              ; preds = %._crit_edge143
  %207 = extractvalue { ptr, i64 } %205, 0
  store ptr %207, ptr %20, align 8
  %208 = extractvalue { ptr, i64 } %205, 1
  store i64 %208, ptr %169, align 8
  %209 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %211 = load i64, ptr %210, align 8, !tbaa !5
  store i64 %211, ptr %12, align 8, !tbaa !5
  br label %.invoke213

212:                                              ; preds = %._crit_edge143
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %.loopexit.split-lp

.invoke213:                                       ; preds = %._crit_edge170, %206
  %214 = phi i64 [ %211, %206 ], [ %.pre171, %._crit_edge170 ]
  %.644 = phi i64 [ %.543.lcssa, %206 ], [ %.442146, %._crit_edge170 ]
  %215 = load i64, ptr %11, align 8, !tbaa !5
  %216 = icmp eq i64 %214, %215
  %.str..str.1215 = select i1 %216, ptr @.str, ptr @.str.1
  %217 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %.str..str.1215)
          to label %218 unwind label %.loopexit.split-lp.loopexit

218:                                              ; preds = %.invoke213
  %219 = load i64, ptr %11, align 8, !tbaa !5
  %220 = add nsw i64 %219, 1
  store i64 %220, ptr %11, align 8, !tbaa !5
  %221 = icmp sgt i64 %.644, -1
  %222 = load i64, ptr %1, align 8
  %223 = icmp slt i64 %219, %222
  %224 = select i1 %221, i1 %223, i1 false
  br i1 %224, label %178, label %.preheader72, !llvm.loop !20

225:                                              ; preds = %.lr.ph156, %265
  %226 = phi i64 [ %170, %.lr.ph156 ], [ %267, %265 ]
  %.4155 = phi i64 [ %.0.lcssa176, %.lr.ph156 ], [ %.6, %265 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  %227 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %226)
          to label %228 unwind label %248

228:                                              ; preds = %225
  %229 = extractvalue { ptr, i64 } %227, 0
  store ptr %229, ptr %21, align 8
  %230 = extractvalue { ptr, i64 } %227, 1
  store i64 %230, ptr %175, align 8
  %231 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br i1 %231, label %._crit_edge172, label %.preheader

._crit_edge172:                                   ; preds = %228
  %.pre173 = load i64, ptr %12, align 8, !tbaa !5
  br label %.invoke

.preheader:                                       ; preds = %228
  %232 = getelementptr inbounds i64, ptr %27, i64 %.4155
  %233 = load i64, ptr %232, align 8, !tbaa !5
  %234 = load i64, ptr %11, align 8, !tbaa !5
  %.not62148 = icmp eq i64 %233, %234
  br i1 %.not62148, label %._crit_edge151, label %.lr.ph150

.lr.ph150:                                        ; preds = %.preheader, %238
  %235 = phi i64 [ %246, %238 ], [ %233, %.preheader ]
  %236 = phi ptr [ %245, %238 ], [ %232, %.preheader ]
  %.5149 = phi i64 [ %244, %238 ], [ %.4155, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %237 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %235)
          to label %238 unwind label %250

238:                                              ; preds = %.lr.ph150
  %239 = extractvalue { ptr, i64 } %237, 0
  store ptr %239, ptr %22, align 8
  %240 = extractvalue { ptr, i64 } %237, 1
  store i64 %240, ptr %176, align 8
  %241 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %236)
  %243 = load i64, ptr %242, align 8, !tbaa !5
  store i64 %243, ptr %12, align 8, !tbaa !5
  %244 = add nsw i64 %.5149, 1
  %245 = getelementptr inbounds i64, ptr %27, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !5
  %247 = load i64, ptr %11, align 8, !tbaa !5
  %.not62 = icmp eq i64 %246, %247
  br i1 %.not62, label %._crit_edge151, label %.lr.ph150, !llvm.loop !21

248:                                              ; preds = %225
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %.loopexit.split-lp

250:                                              ; preds = %.lr.ph150
  %251 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %.loopexit.split-lp

._crit_edge151:                                   ; preds = %238, %.preheader
  %.5.lcssa = phi i64 [ %.4155, %.preheader ], [ %244, %238 ]
  %.lcssa82 = phi ptr [ %232, %.preheader ], [ %245, %238 ]
  %.lcssa = phi i64 [ %233, %.preheader ], [ %246, %238 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %252 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef %.lcssa)
          to label %253 unwind label %259

253:                                              ; preds = %._crit_edge151
  %254 = extractvalue { ptr, i64 } %252, 0
  store ptr %254, ptr %23, align 8
  %255 = extractvalue { ptr, i64 } %252, 1
  store i64 %255, ptr %177, align 8
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %.lcssa82)
  %258 = load i64, ptr %257, align 8, !tbaa !5
  store i64 %258, ptr %12, align 8, !tbaa !5
  br label %.invoke

259:                                              ; preds = %._crit_edge151
  %260 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  br label %.loopexit.split-lp

.invoke:                                          ; preds = %._crit_edge172, %253
  %261 = phi i64 [ %258, %253 ], [ %.pre173, %._crit_edge172 ]
  %.6 = phi i64 [ %.5.lcssa, %253 ], [ %.4155, %._crit_edge172 ]
  %262 = load i64, ptr %11, align 8, !tbaa !5
  %263 = icmp eq i64 %261, %262
  %.str..str.1216 = select i1 %263, ptr @.str, ptr @.str.1
  %264 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %.str..str.1216)
          to label %265 unwind label %.loopexit

265:                                              ; preds = %.invoke
  %266 = load i64, ptr %11, align 8, !tbaa !5
  %267 = add nsw i64 %266, 1
  store i64 %267, ptr %11, align 8, !tbaa !5
  %268 = load i64, ptr %1, align 8
  %269 = icmp slt i64 %.6, %268
  %270 = icmp slt i64 %266, %268
  %271 = select i1 %269, i1 %270, i1 false
  br i1 %271, label %225, label %._crit_edge157, !llvm.loop !22

._crit_edge157:                                   ; preds = %265, %.preheader72
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %273 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

273:                                              ; preds = %._crit_edge157
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef nonnull @.str.2)
          to label %275 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

275:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.stackrestore.p0(ptr %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %259, %250, %248, %212, %203, %201, %149, %142, %127, %120, %118
  %.pn = phi { ptr, i32 } [ %121, %120 ], [ %128, %127 ], [ %143, %142 ], [ %150, %149 ], [ %119, %118 ], [ %204, %203 ], [ %213, %212 ], [ %202, %201 ], [ %251, %250 ], [ %260, %259 ], [ %249, %248 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit74, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit79, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %276

276:                                              ; preds = %.loopexit.split-lp, %116
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %277

277:                                              ; preds = %276, %67
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %276 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %278

278:                                              ; preds = %65, %277, %47
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %.pn.pn.pn, %277 ], [ %66, %65 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #6
  br label %279

279:                                              ; preds = %278, %45
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %278 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; 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 nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) 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 #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { nounwind }

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

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


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