; LLVM IR from AdarshGaur/Competitive-Programming :: Google/Kickstart 2022/Kickstart Round E 2022/Matching Palindrome.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::__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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.3" = 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.7" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = 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 %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  %9 = alloca %"class.std::vector.3", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::allocator.7", align 1
  %12 = alloca %"class.std::vector.3", align 8
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::allocator.7", align 1
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca %"struct.std::_Bit_reference", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::_Bit_reference", align 8
  %31 = alloca %"struct.std::_Bit_reference", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %34 unwind label %50

34:                                               ; preds = %0
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %36 unwind label %50

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %37 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %38 unwind label %54

38:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  %39 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %39, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %40 unwind label %58

40:                                               ; preds = %38
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  %41 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 0, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %42 unwind label %62

42:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  %43 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 0, ptr %13, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %44 unwind label %66

44:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 -1, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %200, %44
  %46 = load i64, ptr %17, align 8, !tbaa !5
  %47 = load i64, ptr %2, align 8, !tbaa !5
  %48 = icmp slt i64 %46, %47
  br i1 %48, label %70, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %204

50:                                               ; preds = %34, %0
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %3, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %4, align 4
  br label %426

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %3, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %425

58:                                               ; preds = %38
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %3, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br label %424

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %3, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %423

66:                                               ; preds = %42
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %3, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %422

70:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %71 = load i64, ptr %17, align 8, !tbaa !5
  %72 = load i64, ptr %16, align 8, !tbaa !5
  %73 = icmp sgt i64 %71, %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  br label %88

75:                                               ; preds = %70
  %76 = load i64, ptr %15, align 8, !tbaa !5
  %77 = load i64, ptr %16, align 8, !tbaa !5
  %78 = load i64, ptr %17, align 8, !tbaa !5
  %79 = sub nsw i64 %77, %78
  %80 = add nsw i64 %76, %79
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %80) #6
  %82 = load i64, ptr %16, align 8, !tbaa !5
  %83 = load i64, ptr %17, align 8, !tbaa !5
  %84 = sub nsw i64 %82, %83
  store i64 %84, ptr %19, align 8, !tbaa !5
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %86 unwind label %122

86:                                               ; preds = %75
  %87 = load i64, ptr %85, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %86, %74
  %89 = phi i64 [ 1, %74 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  store i64 %89, ptr %18, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %119, %88
  %91 = load i64, ptr %17, align 8, !tbaa !5
  %92 = load i64, ptr %18, align 8, !tbaa !5
  %93 = add nsw i64 %91, %92
  %94 = load i64, ptr %2, align 8, !tbaa !5
  %95 = icmp slt i64 %93, %94
  br i1 %95, label %96, label %117

96:                                               ; preds = %90
  %97 = load i64, ptr %17, align 8, !tbaa !5
  %98 = load i64, ptr %18, align 8, !tbaa !5
  %99 = sub nsw i64 %97, %98
  %100 = icmp sge i64 %99, 0
  br i1 %100, label %101, label %117

101:                                              ; preds = %96
  %102 = load i64, ptr %17, align 8, !tbaa !5
  %103 = load i64, ptr %18, align 8, !tbaa !5
  %104 = add nsw i64 %102, %103
  %105 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %104)
          to label %106 unwind label %126

106:                                              ; preds = %101
  %107 = load i8, ptr %105, align 1, !tbaa !11
  %108 = sext i8 %107 to i32
  %109 = load i64, ptr %17, align 8, !tbaa !5
  %110 = load i64, ptr %18, align 8, !tbaa !5
  %111 = sub nsw i64 %109, %110
  %112 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %111)
          to label %113 unwind label %126

113:                                              ; preds = %106
  %114 = load i8, ptr %112, align 1, !tbaa !11
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %108, %115
  br label %117

117:                                              ; preds = %113, %96, %90
  %118 = phi i1 [ false, %96 ], [ false, %90 ], [ %116, %113 ]
  br i1 %118, label %119, label %130

119:                                              ; preds = %117
  %120 = load i64, ptr %18, align 8, !tbaa !5
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %18, align 8, !tbaa !5
  br label %90, !llvm.loop !12

122:                                              ; preds = %75
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %3, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %203

126:                                              ; preds = %106, %101
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %3, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %4, align 4
  br label %203

130:                                              ; preds = %117
  %131 = load i64, ptr %18, align 8, !tbaa !5
  %132 = add nsw i64 %131, -1
  store i64 %132, ptr %18, align 8, !tbaa !5
  %133 = load i64, ptr %17, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %133) #6
  store i64 %131, ptr %134, align 8, !tbaa !5
  %135 = load i64, ptr %17, align 8, !tbaa !5
  %136 = load i64, ptr %18, align 8, !tbaa !5
  %137 = add nsw i64 %135, %136
  %138 = load i64, ptr %16, align 8, !tbaa !5
  %139 = icmp sgt i64 %137, %138
  br i1 %139, label %140, label %147

140:                                              ; preds = %130
  %141 = load i64, ptr %17, align 8, !tbaa !5
  %142 = load i64, ptr %18, align 8, !tbaa !5
  %143 = sub nsw i64 %141, %142
  store i64 %143, ptr %15, align 8, !tbaa !5
  %144 = load i64, ptr %17, align 8, !tbaa !5
  %145 = load i64, ptr %18, align 8, !tbaa !5
  %146 = add nsw i64 %144, %145
  store i64 %146, ptr %16, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %140, %130
  %148 = load i64, ptr %17, align 8, !tbaa !5
  %149 = load i64, ptr %17, align 8, !tbaa !5
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %149) #6
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = sub nsw i64 %148, %151
  %153 = add nsw i64 %152, 1
  %154 = icmp eq i64 %153, 0
  br i1 %154, label %155, label %173

155:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %156 = load i64, ptr %17, align 8, !tbaa !5
  %157 = load i64, ptr %17, align 8, !tbaa !5
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %157) #6
  %159 = load i64, ptr %158, align 8, !tbaa !5
  %160 = add nsw i64 %156, %159
  %161 = sub nsw i64 %160, 1
  %162 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %161)
          to label %163 unwind label %169

163:                                              ; preds = %155
  %164 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %165 = extractvalue { ptr, i64 } %162, 0
  store ptr %165, ptr %164, align 8
  %166 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %167 = extractvalue { ptr, i64 } %162, 1
  store i64 %167, ptr %166, align 8
  %168 = 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 %20) #6
  br label %173

169:                                              ; preds = %155
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %3, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %203

173:                                              ; preds = %163, %147
  %174 = load i64, ptr %17, align 8, !tbaa !5
  %175 = load i64, ptr %17, align 8, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %175) #6
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %178 = add nsw i64 %174, %177
  %179 = load i64, ptr %2, align 8, !tbaa !5
  %180 = icmp eq i64 %178, %179
  br i1 %180, label %181, label %199

181:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %182 = load i64, ptr %17, align 8, !tbaa !5
  %183 = load i64, ptr %17, align 8, !tbaa !5
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %183) #6
  %185 = load i64, ptr %184, align 8, !tbaa !5
  %186 = sub nsw i64 %182, %185
  %187 = add nsw i64 %186, 1
  %188 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %187)
          to label %189 unwind label %195

189:                                              ; preds = %181
  %190 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %191 = extractvalue { ptr, i64 } %188, 0
  store ptr %191, ptr %190, align 8
  %192 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %193 = extractvalue { ptr, i64 } %188, 1
  store i64 %193, ptr %192, align 8
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext true) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %199

195:                                              ; preds = %181
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %3, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %203

199:                                              ; preds = %189, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %17, align 8, !tbaa !5
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %17, align 8, !tbaa !5
  br label %45, !llvm.loop !14

203:                                              ; preds = %195, %169, %126, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %421

204:                                              ; preds = %49
  store i64 0, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 0, ptr %22, align 8, !tbaa !5
  br label %205

205:                                              ; preds = %351, %204
  %206 = load i64, ptr %22, align 8, !tbaa !5
  %207 = load i64, ptr %2, align 8, !tbaa !5
  %208 = icmp slt i64 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %355

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %211 = load i64, ptr %22, align 8, !tbaa !5
  %212 = load i64, ptr %16, align 8, !tbaa !5
  %213 = icmp sgt i64 %211, %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  br i1 %213, label %214, label %215

214:                                              ; preds = %210
  br label %230

215:                                              ; preds = %210
  %216 = load i64, ptr %15, align 8, !tbaa !5
  %217 = load i64, ptr %16, align 8, !tbaa !5
  %218 = load i64, ptr %22, align 8, !tbaa !5
  %219 = sub nsw i64 %217, %218
  %220 = add nsw i64 %219, 1
  %221 = add nsw i64 %216, %220
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %221) #6
  %223 = load i64, ptr %16, align 8, !tbaa !5
  %224 = load i64, ptr %22, align 8, !tbaa !5
  %225 = sub nsw i64 %223, %224
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %24, align 8, !tbaa !5
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %228 unwind label %267

228:                                              ; preds = %215
  %229 = load i64, ptr %227, align 8, !tbaa !5
  br label %230

230:                                              ; preds = %228, %214
  %231 = phi i64 [ 0, %214 ], [ %229, %228 ]
  %232 = add nsw i64 %231, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  store i64 %232, ptr %23, align 8, !tbaa !5
  br label %233

233:                                              ; preds = %264, %230
  %234 = load i64, ptr %22, align 8, !tbaa !5
  %235 = load i64, ptr %23, align 8, !tbaa !5
  %236 = add nsw i64 %234, %235
  %237 = sub nsw i64 %236, 1
  %238 = load i64, ptr %2, align 8, !tbaa !5
  %239 = icmp slt i64 %237, %238
  br i1 %239, label %240, label %262

240:                                              ; preds = %233
  %241 = load i64, ptr %22, align 8, !tbaa !5
  %242 = load i64, ptr %23, align 8, !tbaa !5
  %243 = sub nsw i64 %241, %242
  %244 = icmp sge i64 %243, 0
  br i1 %244, label %245, label %262

245:                                              ; preds = %240
  %246 = load i64, ptr %22, align 8, !tbaa !5
  %247 = load i64, ptr %23, align 8, !tbaa !5
  %248 = add nsw i64 %246, %247
  %249 = sub nsw i64 %248, 1
  %250 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %249)
          to label %251 unwind label %271

251:                                              ; preds = %245
  %252 = load i8, ptr %250, align 1, !tbaa !11
  %253 = sext i8 %252 to i32
  %254 = load i64, ptr %22, align 8, !tbaa !5
  %255 = load i64, ptr %23, align 8, !tbaa !5
  %256 = sub nsw i64 %254, %255
  %257 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %256)
          to label %258 unwind label %271

258:                                              ; preds = %251
  %259 = load i8, ptr %257, align 1, !tbaa !11
  %260 = sext i8 %259 to i32
  %261 = icmp eq i32 %253, %260
  br label %262

262:                                              ; preds = %258, %240, %233
  %263 = phi i1 [ false, %240 ], [ false, %233 ], [ %261, %258 ]
  br i1 %263, label %264, label %275

264:                                              ; preds = %262
  %265 = load i64, ptr %23, align 8, !tbaa !5
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %23, align 8, !tbaa !5
  br label %233, !llvm.loop !15

267:                                              ; preds = %215
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %3, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %354

271:                                              ; preds = %251, %245
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %3, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %4, align 4
  br label %354

275:                                              ; preds = %262
  %276 = load i64, ptr %23, align 8, !tbaa !5
  %277 = add nsw i64 %276, -1
  store i64 %277, ptr %23, align 8, !tbaa !5
  %278 = load i64, ptr %22, align 8, !tbaa !5
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %278) #6
  store i64 %277, ptr %279, align 8, !tbaa !5
  %280 = load i64, ptr %22, align 8, !tbaa !5
  %281 = load i64, ptr %23, align 8, !tbaa !5
  %282 = add nsw i64 %280, %281
  %283 = sub nsw i64 %282, 1
  %284 = load i64, ptr %16, align 8, !tbaa !5
  %285 = icmp sgt i64 %283, %284
  br i1 %285, label %286, label %294

286:                                              ; preds = %275
  %287 = load i64, ptr %22, align 8, !tbaa !5
  %288 = load i64, ptr %23, align 8, !tbaa !5
  %289 = sub nsw i64 %287, %288
  store i64 %289, ptr %15, align 8, !tbaa !5
  %290 = load i64, ptr %22, align 8, !tbaa !5
  %291 = load i64, ptr %23, align 8, !tbaa !5
  %292 = add nsw i64 %290, %291
  %293 = sub nsw i64 %292, 1
  store i64 %293, ptr %16, align 8, !tbaa !5
  br label %294

294:                                              ; preds = %286, %275
  %295 = load i64, ptr %22, align 8, !tbaa !5
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %295) #6
  %297 = load i64, ptr %296, align 8, !tbaa !5
  %298 = icmp sgt i64 %297, 0
  br i1 %298, label %299, label %350

299:                                              ; preds = %294
  %300 = load i64, ptr %22, align 8, !tbaa !5
  %301 = load i64, ptr %22, align 8, !tbaa !5
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %301) #6
  %303 = load i64, ptr %302, align 8, !tbaa !5
  %304 = sub nsw i64 %300, %303
  %305 = icmp eq i64 %304, 0
  br i1 %305, label %306, label %324

306:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %307 = load i64, ptr %22, align 8, !tbaa !5
  %308 = load i64, ptr %22, align 8, !tbaa !5
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %308) #6
  %310 = load i64, ptr %309, align 8, !tbaa !5
  %311 = add nsw i64 %307, %310
  %312 = sub nsw i64 %311, 1
  %313 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %312)
          to label %314 unwind label %320

314:                                              ; preds = %306
  %315 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %316 = extractvalue { ptr, i64 } %313, 0
  store ptr %316, ptr %315, align 8
  %317 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %318 = extractvalue { ptr, i64 } %313, 1
  store i64 %318, ptr %317, align 8
  %319 = 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
  br label %324

320:                                              ; preds = %306
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %3, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %354

324:                                              ; preds = %314, %299
  %325 = load i64, ptr %22, align 8, !tbaa !5
  %326 = load i64, ptr %22, align 8, !tbaa !5
  %327 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %326) #6
  %328 = load i64, ptr %327, align 8, !tbaa !5
  %329 = add nsw i64 %325, %328
  %330 = load i64, ptr %2, align 8, !tbaa !5
  %331 = icmp eq i64 %329, %330
  br i1 %331, label %332, label %349

332:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %333 = load i64, ptr %22, align 8, !tbaa !5
  %334 = load i64, ptr %22, align 8, !tbaa !5
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %334) #6
  %336 = load i64, ptr %335, align 8, !tbaa !5
  %337 = sub nsw i64 %333, %336
  %338 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %337)
          to label %339 unwind label %345

339:                                              ; preds = %332
  %340 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %341 = extractvalue { ptr, i64 } %338, 0
  store ptr %341, ptr %340, align 8
  %342 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %343 = extractvalue { ptr, i64 } %338, 1
  store i64 %343, ptr %342, align 8
  %344 = 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 %349

345:                                              ; preds = %332
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %3, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %354

349:                                              ; preds = %339, %324
  br label %350

350:                                              ; preds = %349, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %351

351:                                              ; preds = %350
  %352 = load i64, ptr %22, align 8, !tbaa !5
  %353 = add nsw i64 %352, 1
  store i64 %353, ptr %22, align 8, !tbaa !5
  br label %205, !llvm.loop !16

354:                                              ; preds = %345, %320, %271, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %421

355:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %356 unwind label %362

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

357:                                              ; preds = %405, %356
  %358 = load i64, ptr %28, align 8, !tbaa !5
  %359 = load i64, ptr %2, align 8, !tbaa !5
  %360 = icmp slt i64 %358, %359
  br i1 %360, label %366, label %361

361:                                              ; preds = %357
  store i32 12, ptr %29, align 4
  br label %408

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

366:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %367 = load i64, ptr %28, align 8, !tbaa !5
  %368 = sub nsw i64 %367, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %369 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %368)
          to label %370 unwind label %391

370:                                              ; preds = %366
  %371 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %372 = extractvalue { ptr, i64 } %369, 0
  store ptr %372, ptr %371, align 8
  %373 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %374 = extractvalue { ptr, i64 } %369, 1
  store i64 %374, ptr %373, align 8
  %375 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br i1 %375, label %376, label %385

376:                                              ; preds = %370
  %377 = load i64, ptr %28, align 8, !tbaa !5
  %378 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %377)
          to label %379 unwind label %395

379:                                              ; preds = %376
  %380 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %381 = extractvalue { ptr, i64 } %378, 0
  store ptr %381, ptr %380, align 8
  %382 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %383 = extractvalue { ptr, i64 } %378, 1
  store i64 %383, ptr %382, align 8
  %384 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %385

385:                                              ; preds = %379, %370
  %386 = phi i1 [ false, %370 ], [ %384, %379 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br i1 %386, label %387, label %404

387:                                              ; preds = %385
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %388 = load i64, ptr %28, align 8, !tbaa !5
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0, i64 noundef %388)
          to label %389 unwind label %400

389:                                              ; preds = %387
  %390 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  store i32 12, ptr %29, align 4
  br label %408

391:                                              ; preds = %366
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %3, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %4, align 4
  br label %399

395:                                              ; preds = %376
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %3, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %399

399:                                              ; preds = %395, %391
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %409

400:                                              ; preds = %387
  %401 = landingpad { ptr, i32 }
          cleanup
  %402 = extractvalue { ptr, i32 } %401, 0
  store ptr %402, ptr %3, align 8
  %403 = extractvalue { ptr, i32 } %401, 1
  store i32 %403, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %409

404:                                              ; preds = %385
  br label %405

405:                                              ; preds = %404
  %406 = load i64, ptr %28, align 8, !tbaa !5
  %407 = add nsw i64 %406, 1
  store i64 %407, ptr %28, align 8, !tbaa !5
  br label %357, !llvm.loop !17

408:                                              ; preds = %389, %361
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %410

409:                                              ; preds = %400, %399
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %419

410:                                              ; preds = %408
  %411 = 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) %27)
          to label %412 unwind label %415

412:                                              ; preds = %410
  %413 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %411, ptr noundef @.str)
          to label %414 unwind label %415

414:                                              ; preds = %412
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void

415:                                              ; preds = %412, %410
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %3, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %4, align 4
  br label %419

419:                                              ; preds = %415, %409
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %420

420:                                              ; preds = %419, %362
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %421

421:                                              ; preds = %420, %354, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %422

422:                                              ; preds = %421, %66
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %423

423:                                              ; preds = %422, %62
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %424

424:                                              ; preds = %423, %58
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %425

425:                                              ; preds = %424, %54
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %426

426:                                              ; preds = %425, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  br label %427

427:                                              ; preds = %426
  %428 = load ptr, ptr %3, align 8
  %429 = load i32, ptr %4, align 4
  %430 = insertvalue { ptr, i32 } poison, ptr %428, 0
  %431 = insertvalue { ptr, i32 } %430, i32 %429, 1
  resume { ptr, i32 } %431
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 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 #2 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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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) #2 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) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; 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::__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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"class.std::vector.3" = 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.7" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = 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 %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::allocator.7", align 1
  %10 = alloca %"class.std::vector.3", align 8
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %24 unwind label %42

24:                                               ; preds = %0
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %26 unwind label %42

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %27 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %28 unwind label %44

28:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %29 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %30 unwind label %46

30:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #7
  %31 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  store i8 0, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %32 unwind label %48

32:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #7
  %33 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %33, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %34 unwind label %50

34:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = icmp sgt i64 %35, 0
  br i1 %36, label %.lr.ph143, label %._crit_edge

.lr.ph143:                                        ; preds = %34
  %37 = getelementptr inbounds i8, ptr %14, i64 8
  %38 = getelementptr inbounds i8, ptr %15, i64 8
  br label %52

.preheader131:                                    ; preds = %119
  %39 = icmp sgt i64 %120, 0
  br i1 %39, label %.lr.ph147, label %._crit_edge

.lr.ph147:                                        ; preds = %.preheader131
  %40 = getelementptr inbounds i8, ptr %17, i64 8
  %41 = getelementptr inbounds i8, ptr %18, i64 8
  br label %126

42:                                               ; preds = %24, %0
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %236

44:                                               ; preds = %26
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %235

46:                                               ; preds = %28
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %234

48:                                               ; preds = %30
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %233

50:                                               ; preds = %32
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %232

52:                                               ; preds = %.lr.ph143, %119
  %53 = phi i64 [ %35, %.lr.ph143 ], [ %120, %119 ]
  %.084142 = phi i64 [ 0, %.lr.ph143 ], [ %.pre-phi, %119 ]
  %.085141 = phi i64 [ -1, %.lr.ph143 ], [ %spec.select128, %119 ]
  %.086140 = phi i64 [ 0, %.lr.ph143 ], [ %spec.select, %119 ]
  %54 = icmp sgt i64 %.084142, %.085141
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  br i1 %54, label %61, label %55

55:                                               ; preds = %52
  %56 = sub nsw i64 %.085141, %.084142
  %57 = add nsw i64 %56, %.086140
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %57) #7
  store i64 %56, ptr %13, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %.pre = load i64, ptr %2, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %52, %55
  %62 = phi i64 [ %.pre, %55 ], [ %53, %52 ]
  %63 = phi i64 [ %60, %55 ], [ 1, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %64 = add nsw i64 %63, %.084142
  %65 = icmp slt i64 %64, %62
  br i1 %65, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %61, %75
  %66 = phi i64 [ %77, %75 ], [ %64, %61 ]
  %.083135 = phi i64 [ %76, %75 ], [ %63, %61 ]
  %67 = sub nsw i64 %.084142, %.083135
  %68 = icmp sgt i64 %67, -1
  br i1 %68, label %69, label %.critedge

69:                                               ; preds = %.lr.ph
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %66)
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %67)
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = icmp eq i8 %71, %73
  br i1 %74, label %75, label %.critedge

75:                                               ; preds = %69
  %76 = add nsw i64 %.083135, 1
  %77 = add nsw i64 %76, %.084142
  %78 = load i64, ptr %2, align 8, !tbaa !5
  %79 = icmp slt i64 %77, %78
  br i1 %79, label %.lr.ph, label %.critedge, !llvm.loop !12

.critedge:                                        ; preds = %69, %75, %.lr.ph, %61
  %.083.lcssa = phi i64 [ %63, %61 ], [ %.083135, %.lr.ph ], [ %76, %75 ], [ %.083135, %69 ]
  %80 = add nsw i64 %.083.lcssa, -1
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.084142) #7
  store i64 %.083.lcssa, ptr %81, align 8, !tbaa !5
  %82 = add nsw i64 %80, %.084142
  %83 = icmp sgt i64 %82, %.085141
  %84 = sub nsw i64 %.084142, %80
  %spec.select = select i1 %83, i64 %84, i64 %.086140
  %spec.select128 = call i64 @llvm.smax.i64(i64 %82, i64 %.085141)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.084142) #7
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = sub nsw i64 %.084142, %86
  %88 = icmp eq i64 %87, -1
  br i1 %88, label %89, label %101

89:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.084142) #7
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = add nsw i64 %.084142, -1
  %93 = add i64 %92, %91
  %94 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %93)
          to label %95 unwind label %99

95:                                               ; preds = %89
  %96 = extractvalue { ptr, i64 } %94, 0
  store ptr %96, ptr %14, align 8
  %97 = extractvalue { ptr, i64 } %94, 1
  store i64 %97, ptr %37, align 8
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %101

99:                                               ; preds = %89
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %231

101:                                              ; preds = %95, %.critedge
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.084142) #7
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = add nsw i64 %103, %.084142
  %105 = load i64, ptr %2, align 8, !tbaa !5
  %106 = icmp eq i64 %104, %105
  br i1 %106, label %107, label %._crit_edge154

._crit_edge154:                                   ; preds = %101
  %.pre155 = add nuw nsw i64 %.084142, 1
  br label %119

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.084142) #7
  %109 = load i64, ptr %108, align 8, !tbaa !5
  %110 = add nuw nsw i64 %.084142, 1
  %111 = sub i64 %110, %109
  %112 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %111)
          to label %113 unwind label %117

113:                                              ; preds = %107
  %114 = extractvalue { ptr, i64 } %112, 0
  store ptr %114, ptr %15, align 8
  %115 = extractvalue { ptr, i64 } %112, 1
  store i64 %115, ptr %38, align 8
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %.pre153 = load i64, ptr %2, align 8, !tbaa !5
  br label %119

117:                                              ; preds = %107
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %231

119:                                              ; preds = %._crit_edge154, %113
  %.pre-phi = phi i64 [ %.pre155, %._crit_edge154 ], [ %110, %113 ]
  %120 = phi i64 [ %105, %._crit_edge154 ], [ %.pre153, %113 ]
  %121 = icmp slt i64 %.pre-phi, %120
  br i1 %121, label %52, label %.preheader131, !llvm.loop !14

._crit_edge:                                      ; preds = %190, %34, %.preheader131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.preheader unwind label %194

.preheader:                                       ; preds = %._crit_edge
  %122 = load i64, ptr %2, align 8, !tbaa !5
  %123 = icmp sgt i64 %122, 1
  br i1 %123, label %.lr.ph149, label %.loopexit

.lr.ph149:                                        ; preds = %.preheader
  %124 = getelementptr inbounds i8, ptr %20, i64 8
  %125 = getelementptr inbounds i8, ptr %21, i64 8
  br label %196

126:                                              ; preds = %.lr.ph147, %190
  %.082146 = phi i64 [ 0, %.lr.ph147 ], [ %191, %190 ]
  %.2145 = phi i64 [ -1, %.lr.ph147 ], [ %spec.select130, %190 ]
  %.288144 = phi i64 [ 0, %.lr.ph147 ], [ %spec.select129, %190 ]
  %127 = icmp sgt i64 %.082146, %.2145
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  br i1 %127, label %135, label %128

128:                                              ; preds = %126
  %129 = sub nsw i64 %.2145, %.082146
  %130 = add nsw i64 %129, 1
  %131 = add nsw i64 %130, %.288144
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %131) #7
  store i64 %130, ptr %16, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %134 = load i64, ptr %133, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %126, %128
  %136 = phi i64 [ %134, %128 ], [ 0, %126 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %137

137:                                              ; preds = %144, %135
  %.081.in = phi i64 [ %136, %135 ], [ %.081, %144 ]
  %.081 = add nsw i64 %.081.in, 1
  %138 = add i64 %.081.in, %.082146
  %139 = load i64, ptr %2, align 8, !tbaa !5
  %140 = icmp slt i64 %138, %139
  br i1 %140, label %141, label %.critedge2

141:                                              ; preds = %137
  %142 = sub nsw i64 %.082146, %.081
  %143 = icmp sgt i64 %142, -1
  br i1 %143, label %144, label %.critedge2

144:                                              ; preds = %141
  %145 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %138)
  %146 = load i8, ptr %145, align 1, !tbaa !11
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %142)
  %148 = load i8, ptr %147, align 1, !tbaa !11
  %149 = icmp eq i8 %146, %148
  br i1 %149, label %137, label %.critedge2, !llvm.loop !15

.critedge2:                                       ; preds = %141, %137, %144
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  store i64 %.081.in, ptr %150, align 8, !tbaa !5
  %151 = add nsw i64 %138, -1
  %152 = icmp sgt i64 %151, %.2145
  %153 = sub nsw i64 %.082146, %.081.in
  %spec.select129 = select i1 %152, i64 %153, i64 %.288144
  %spec.select130 = call i64 @llvm.smax.i64(i64 %151, i64 %.2145)
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  %155 = load i64, ptr %154, align 8, !tbaa !5
  %156 = icmp sgt i64 %155, 0
  br i1 %156, label %157, label %190

157:                                              ; preds = %.critedge2
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  %159 = load i64, ptr %158, align 8, !tbaa !5
  %160 = icmp eq i64 %.082146, %159
  br i1 %160, label %161, label %173

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  %163 = load i64, ptr %162, align 8, !tbaa !5
  %164 = add nsw i64 %.082146, -1
  %165 = add i64 %164, %163
  %166 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %165)
          to label %167 unwind label %171

167:                                              ; preds = %161
  %168 = extractvalue { ptr, i64 } %166, 0
  store ptr %168, ptr %17, align 8
  %169 = extractvalue { ptr, i64 } %166, 1
  store i64 %169, ptr %40, align 8
  %170 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %173

171:                                              ; preds = %161
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  br label %231

173:                                              ; preds = %167, %157
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  %175 = load i64, ptr %174, align 8, !tbaa !5
  %176 = add nsw i64 %175, %.082146
  %177 = load i64, ptr %2, align 8, !tbaa !5
  %178 = icmp eq i64 %176, %177
  br i1 %178, label %179, label %190

179:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.082146) #7
  %181 = load i64, ptr %180, align 8, !tbaa !5
  %182 = sub nsw i64 %.082146, %181
  %183 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %182)
          to label %184 unwind label %188

184:                                              ; preds = %179
  %185 = extractvalue { ptr, i64 } %183, 0
  store ptr %185, ptr %18, align 8
  %186 = extractvalue { ptr, i64 } %183, 1
  store i64 %186, ptr %41, align 8
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %190

188:                                              ; preds = %179
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %231

190:                                              ; preds = %173, %184, %.critedge2
  %191 = add nuw nsw i64 %.082146, 1
  %192 = load i64, ptr %2, align 8, !tbaa !5
  %193 = icmp slt i64 %191, %192
  br i1 %193, label %126, label %._crit_edge, !llvm.loop !16

194:                                              ; preds = %._crit_edge
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %230

196:                                              ; preds = %.lr.ph149, %219
  %.0148 = phi i64 [ 1, %.lr.ph149 ], [ %220, %219 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  %197 = add nsw i64 %.0148, -1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %198 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %7, i64 noundef %197)
          to label %199 unwind label %212

199:                                              ; preds = %196
  %200 = extractvalue { ptr, i64 } %198, 0
  store ptr %200, ptr %20, align 8
  %201 = extractvalue { ptr, i64 } %198, 1
  store i64 %201, ptr %124, align 8
  %202 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br i1 %202, label %203, label %.critedge4

203:                                              ; preds = %199
  %204 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %.0148)
          to label %205 unwind label %214

205:                                              ; preds = %203
  %206 = extractvalue { ptr, i64 } %204, 0
  store ptr %206, ptr %21, align 8
  %207 = extractvalue { ptr, i64 } %204, 1
  store i64 %207, ptr %125, align 8
  %208 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br i1 %208, label %209, label %219

209:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0, i64 noundef %.0148)
          to label %210 unwind label %217

210:                                              ; preds = %209
  %211 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br label %.loopexit

212:                                              ; preds = %196
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %216

214:                                              ; preds = %203
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  br label %216

216:                                              ; preds = %214, %212
  %.pn = phi { ptr, i32 } [ %215, %214 ], [ %213, %212 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br label %229

217:                                              ; preds = %209
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br label %229

.critedge4:                                       ; preds = %199
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  br label %219

219:                                              ; preds = %205, %.critedge4
  %220 = add nuw nsw i64 %.0148, 1
  %221 = load i64, ptr %2, align 8, !tbaa !5
  %222 = icmp slt i64 %220, %221
  br i1 %222, label %196, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %219, %.preheader, %210
  %223 = 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) %19)
          to label %224 unwind label %227

224:                                              ; preds = %.loopexit
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %223, ptr noundef nonnull @.str)
          to label %226 unwind label %227

226:                                              ; preds = %224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret void

227:                                              ; preds = %224, %.loopexit
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %229

229:                                              ; preds = %216, %217, %227
  %.pn115 = phi { ptr, i32 } [ %228, %227 ], [ %218, %217 ], [ %.pn, %216 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %230

230:                                              ; preds = %229, %194
  %.pn115.pn = phi { ptr, i32 } [ %.pn115, %229 ], [ %195, %194 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %231

231:                                              ; preds = %171, %188, %99, %117, %230
  %.pn120.pn = phi { ptr, i32 } [ %.pn115.pn, %230 ], [ %118, %117 ], [ %100, %99 ], [ %189, %188 ], [ %172, %171 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  br label %232

232:                                              ; preds = %231, %50
  %.pn120.pn.pn = phi { ptr, i32 } [ %.pn120.pn, %231 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #7
  br label %233

233:                                              ; preds = %232, %48
  %.pn120.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn, %232 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #7
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %234

234:                                              ; preds = %233, %46
  %.pn120.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn.pn, %233 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %235

235:                                              ; preds = %234, %44
  %.pn120.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn.pn.pn, %234 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %236

236:                                              ; preds = %235, %42
  %.pn120.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn.pn.pn.pn, %235 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn120.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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; 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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 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 #2 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 #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #6

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 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


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