; LLVM IR from eyangch/competitive-programming :: Codeforces/946 (e)

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

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

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@pfx = external dso_local global [10 x i64], align 16
@sfx = external dso_local global [10 x i64], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i8, align 1
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i64, align 8
  %29 = alloca i8, align 1
  %30 = alloca i64, align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 0, ptr %1, align 4
  %33 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %35
  %37 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %36, ptr noundef null)
  %38 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %40

40:                                               ; preds = %379, %377, %82, %0
  %41 = load i64, ptr @T, align 8, !tbaa !8
  %42 = add nsw i64 %41, -1
  store i64 %42, ptr @T, align 8, !tbaa !8
  %43 = icmp ne i64 %41, 0
  br i1 %43, label %44, label %381

44:                                               ; preds = %40
  %45 = call 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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !11
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @pfx, ptr noundef getelementptr inbounds (i64, ptr @pfx, i64 10), ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !11
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @sfx, ptr noundef getelementptr inbounds (i64, ptr @sfx, i64 10), ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %46 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #6
  store i64 %46, ptr @N, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %47 = load i64, ptr @N, align 8, !tbaa !8
  invoke void @_Z4sub1NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEx(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef %5, i64 noundef %47)
          to label %48 unwind label %64

48:                                               ; preds = %44
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %50 = load i64, ptr @N, align 8, !tbaa !8
  invoke void @_Z4sub1NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEx(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef %9, i64 noundef %50)
          to label %51 unwind label %68

51:                                               ; preds = %48
  %52 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef 0)
          to label %53 unwind label %72

53:                                               ; preds = %51
  %54 = load i8, ptr %52, align 1, !tbaa !13
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #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 %8) #6
  br i1 %56, label %57, label %84

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %58

58:                                               ; preds = %79, %57
  %59 = load i64, ptr %10, align 8, !tbaa !8
  %60 = load i64, ptr @N, align 8, !tbaa !8
  %61 = sub nsw i64 %60, 2
  %62 = icmp slt i64 %59, %61
  br i1 %62, label %77, label %63

63:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %82

64:                                               ; preds = %44
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %383

68:                                               ; preds = %48
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  br label %76

72:                                               ; preds = %51
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %76

76:                                               ; preds = %72, %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %383

77:                                               ; preds = %58
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 9)
  br label %79

79:                                               ; preds = %77
  %80 = load i64, ptr %10, align 8, !tbaa !8
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %10, align 8, !tbaa !8
  br label %58, !llvm.loop !14

82:                                               ; preds = %63
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  br label %40, !llvm.loop !16

84:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %85

85:                                               ; preds = %100, %84
  %86 = load i64, ptr %11, align 8, !tbaa !8
  %87 = load i64, ptr @N, align 8, !tbaa !8
  %88 = icmp slt i64 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %103

90:                                               ; preds = %85
  %91 = load i64, ptr %11, align 8, !tbaa !8
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %91)
  %93 = load i8, ptr %92, align 1, !tbaa !13
  %94 = sext i8 %93 to i32
  %95 = sub nsw i32 %94, 48
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !8
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %97, align 8, !tbaa !8
  br label %100

100:                                              ; preds = %90
  %101 = load i64, ptr %11, align 8, !tbaa !8
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %11, align 8, !tbaa !8
  br label %85, !llvm.loop !17

103:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 1, ptr %12, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !8
  br label %104

104:                                              ; preds = %116, %103
  %105 = load i64, ptr %13, align 8, !tbaa !8
  %106 = icmp slt i64 %105, 10
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  store i32 10, ptr %14, align 4
  br label %119

108:                                              ; preds = %104
  %109 = load i64, ptr %13, align 8, !tbaa !8
  %110 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !8
  %112 = and i64 %111, 1
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %108
  store i8 0, ptr %12, align 1, !tbaa !18
  store i32 10, ptr %14, align 4
  br label %119

115:                                              ; preds = %108
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %13, align 8, !tbaa !8
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %13, align 8, !tbaa !8
  br label %104, !llvm.loop !20

119:                                              ; preds = %114, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %120

120:                                              ; preds = %119
  %121 = load i8, ptr %12, align 1, !tbaa !18, !range !21, !noundef !22
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %126

123:                                              ; preds = %120
  %124 = call 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) @_Z1sB5cxx11)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %124, i8 noundef signext 10)
  store i32 2, ptr %14, align 4
  br label %377, !llvm.loop !16

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  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_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %127 unwind label %134

127:                                              ; preds = %126
  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
  %128 = load i64, ptr @N, align 8, !tbaa !8
  %129 = sub nsw i64 %128, 1
  store i64 %129, ptr %17, align 8, !tbaa !8
  br label %130

130:                                              ; preds = %371, %127
  %131 = load i64, ptr %17, align 8, !tbaa !8
  %132 = icmp sge i64 %131, 0
  br i1 %132, label %138, label %133

133:                                              ; preds = %130
  store i32 13, ptr %14, align 4
  br label %374

134:                                              ; preds = %126
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %6, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %7, 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 %380

138:                                              ; preds = %130
  %139 = load i64, ptr %17, align 8, !tbaa !8
  %140 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %139)
          to label %141 unwind label %153

141:                                              ; preds = %138
  %142 = load i8, ptr %140, align 1, !tbaa !13
  %143 = sext i8 %142 to i32
  %144 = sub nsw i32 %143, 48
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !8
  %148 = add nsw i64 %147, -1
  store i64 %148, ptr %146, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 0, ptr %19, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !8
  br label %149

149:                                              ; preds = %185, %141
  %150 = load i64, ptr %20, align 8, !tbaa !8
  %151 = icmp slt i64 %150, 10
  br i1 %151, label %157, label %152

152:                                              ; preds = %149
  store i32 16, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %188

153:                                              ; preds = %138
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %6, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %7, align 4
  br label %375

157:                                              ; preds = %149
  %158 = load i64, ptr %20, align 8, !tbaa !8
  %159 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !8
  %161 = and i64 %160, 1
  %162 = icmp ne i64 %161, 0
  br i1 %162, label %163, label %184

163:                                              ; preds = %157
  %164 = load i64, ptr %20, align 8, !tbaa !8
  %165 = load i64, ptr %17, align 8, !tbaa !8
  %166 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %165)
          to label %167 unwind label %177

167:                                              ; preds = %163
  %168 = load i8, ptr %166, align 1, !tbaa !13
  %169 = sext i8 %168 to i32
  %170 = sub nsw i32 %169, 48
  %171 = sext i32 %170 to i64
  %172 = icmp slt i64 %164, %171
  br i1 %172, label %173, label %181

173:                                              ; preds = %167
  %174 = load i8, ptr %19, align 1, !tbaa !18, !range !21, !noundef !22
  %175 = trunc i8 %174 to i1
  br i1 %175, label %181, label %176

176:                                              ; preds = %173
  store i8 1, ptr %19, align 1, !tbaa !18
  br label %185

177:                                              ; preds = %163
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %6, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %370

181:                                              ; preds = %173, %167
  %182 = load i64, ptr %18, align 8, !tbaa !8
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %18, align 8, !tbaa !8
  br label %184

184:                                              ; preds = %181, %157
  br label %185

185:                                              ; preds = %184, %176
  %186 = load i64, ptr %20, align 8, !tbaa !8
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %20, align 8, !tbaa !8
  br label %149, !llvm.loop !23

188:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %189 = load i64, ptr @N, align 8, !tbaa !8
  %190 = sub nsw i64 %189, 1
  %191 = load i64, ptr %17, align 8, !tbaa !8
  %192 = sub nsw i64 %190, %191
  store i64 %192, ptr %21, align 8, !tbaa !8
  %193 = load i64, ptr %21, align 8, !tbaa !8
  %194 = load i64, ptr %18, align 8, !tbaa !8
  %195 = icmp slt i64 %193, %194
  br i1 %195, label %203, label %196

196:                                              ; preds = %188
  %197 = load i64, ptr %17, align 8, !tbaa !8
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %197)
          to label %199 unwind label %204

199:                                              ; preds = %196
  %200 = load i8, ptr %198, align 1, !tbaa !13
  %201 = sext i8 %200 to i32
  %202 = icmp eq i32 %201, 48
  br i1 %202, label %203, label %208

203:                                              ; preds = %199, %188
  store i32 15, ptr %14, align 4
  br label %367

204:                                              ; preds = %196
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %6, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %7, align 4
  br label %369

208:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 0, ptr %22, align 8, !tbaa !8
  br label %209

209:                                              ; preds = %221, %208
  %210 = load i64, ptr %22, align 8, !tbaa !8
  %211 = load i64, ptr %17, align 8, !tbaa !8
  %212 = icmp slt i64 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 19, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %228

214:                                              ; preds = %209
  %215 = load i64, ptr %22, align 8, !tbaa !8
  %216 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %215)
          to label %217 unwind label %224

217:                                              ; preds = %214
  %218 = load i8, ptr %216, align 1, !tbaa !13
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %218)
          to label %220 unwind label %224

220:                                              ; preds = %217
  br label %221

221:                                              ; preds = %220
  %222 = load i64, ptr %22, align 8, !tbaa !8
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %22, align 8, !tbaa !8
  br label %209, !llvm.loop !24

224:                                              ; preds = %217, %214
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %6, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %369

228:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %229 = load i64, ptr %17, align 8, !tbaa !8
  %230 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %229)
          to label %231 unwind label %249

231:                                              ; preds = %228
  %232 = load i8, ptr %230, align 1, !tbaa !13
  %233 = sext i8 %232 to i32
  %234 = sub nsw i32 %233, 48
  %235 = sub nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  store i64 %236, ptr %23, align 8, !tbaa !8
  br label %237

237:                                              ; preds = %279, %231
  %238 = load i64, ptr %23, align 8, !tbaa !8
  %239 = icmp sge i64 %238, 0
  br i1 %239, label %240, label %282

240:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !8
  %241 = load i64, ptr %23, align 8, !tbaa !8
  %242 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !8
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %242, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store i64 0, ptr %25, align 8, !tbaa !8
  br label %245

245:                                              ; preds = %263, %240
  %246 = load i64, ptr %25, align 8, !tbaa !8
  %247 = icmp slt i64 %246, 10
  br i1 %247, label %253, label %248

248:                                              ; preds = %245
  store i32 25, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %266

249:                                              ; preds = %282, %228
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %6, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %7, align 4
  br label %366

253:                                              ; preds = %245
  %254 = load i64, ptr %25, align 8, !tbaa !8
  %255 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %254
  %256 = load i64, ptr %255, align 8, !tbaa !8
  %257 = and i64 %256, 1
  %258 = icmp ne i64 %257, 0
  br i1 %258, label %259, label %262

259:                                              ; preds = %253
  %260 = load i64, ptr %24, align 8, !tbaa !8
  %261 = add nsw i64 %260, 1
  store i64 %261, ptr %24, align 8, !tbaa !8
  br label %262

262:                                              ; preds = %259, %253
  br label %263

263:                                              ; preds = %262
  %264 = load i64, ptr %25, align 8, !tbaa !8
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %25, align 8, !tbaa !8
  br label %245, !llvm.loop !25

266:                                              ; preds = %248
  %267 = load i64, ptr %24, align 8, !tbaa !8
  %268 = load i64, ptr %21, align 8, !tbaa !8
  %269 = icmp sle i64 %267, %268
  br i1 %269, label %270, label %271

270:                                              ; preds = %266
  store i32 22, ptr %14, align 4
  br label %276

271:                                              ; preds = %266
  %272 = load i64, ptr %23, align 8, !tbaa !8
  %273 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %272
  %274 = load i64, ptr %273, align 8, !tbaa !8
  %275 = add nsw i64 %274, -1
  store i64 %275, ptr %273, align 8, !tbaa !8
  store i32 0, ptr %14, align 4
  br label %276

276:                                              ; preds = %271, %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %277 = load i32, ptr %14, align 4
  switch i32 %277, label %388 [
    i32 0, label %278
    i32 22, label %282
  ]

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278
  %280 = load i64, ptr %23, align 8, !tbaa !8
  %281 = add nsw i64 %280, -1
  store i64 %281, ptr %23, align 8, !tbaa !8
  br label %237, !llvm.loop !26

282:                                              ; preds = %276, %237
  %283 = load i64, ptr %23, align 8, !tbaa !8
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %283)
          to label %285 unwind label %249

285:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %286 unwind label %294

286:                                              ; preds = %285
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %287 = load i64, ptr %17, align 8, !tbaa !8
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %28, align 8, !tbaa !8
  br label %289

289:                                              ; preds = %338, %286
  %290 = load i64, ptr %28, align 8, !tbaa !8
  %291 = load i64, ptr @N, align 8, !tbaa !8
  %292 = icmp slt i64 %290, %291
  br i1 %292, label %298, label %293

293:                                              ; preds = %289
  store i32 28, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %346

294:                                              ; preds = %285
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %6, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %365

298:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  store i8 0, ptr %29, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 0, ptr %30, align 8, !tbaa !8
  br label %299

299:                                              ; preds = %324, %298
  %300 = load i64, ptr %30, align 8, !tbaa !8
  %301 = icmp slt i64 %300, 10
  br i1 %301, label %303, label %302

302:                                              ; preds = %299
  store i32 31, ptr %14, align 4
  br label %327

303:                                              ; preds = %299
  %304 = load i64, ptr %30, align 8, !tbaa !8
  %305 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %304
  %306 = load i64, ptr %305, align 8, !tbaa !8
  %307 = and i64 %306, 1
  %308 = icmp ne i64 %307, 0
  br i1 %308, label %309, label %323

309:                                              ; preds = %303
  store i8 1, ptr %29, align 1, !tbaa !18
  %310 = load i64, ptr %30, align 8, !tbaa !8
  %311 = add nsw i64 48, %310
  %312 = trunc i64 %311 to i8
  %313 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %26, i8 noundef signext %312)
          to label %314 unwind label %319

314:                                              ; preds = %309
  %315 = load i64, ptr %30, align 8, !tbaa !8
  %316 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %315
  %317 = load i64, ptr %316, align 8, !tbaa !8
  %318 = add nsw i64 %317, -1
  store i64 %318, ptr %316, align 8, !tbaa !8
  store i32 31, ptr %14, align 4
  br label %327

319:                                              ; preds = %309
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %6, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %345

323:                                              ; preds = %303
  br label %324

324:                                              ; preds = %323
  %325 = load i64, ptr %30, align 8, !tbaa !8
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %30, align 8, !tbaa !8
  br label %299, !llvm.loop !27

327:                                              ; preds = %314, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %328

328:                                              ; preds = %327
  %329 = load i8, ptr %29, align 1, !tbaa !18, !range !21, !noundef !22
  %330 = trunc i8 %329 to i1
  br i1 %330, label %331, label %332

331:                                              ; preds = %328
  store i32 30, ptr %14, align 4
  br label %335

332:                                              ; preds = %328
  %333 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %26, i8 noundef signext 57)
          to label %334 unwind label %341

334:                                              ; preds = %332
  store i32 0, ptr %14, align 4
  br label %335

335:                                              ; preds = %334, %331
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  %336 = load i32, ptr %14, align 4
  switch i32 %336, label %388 [
    i32 0, label %337
    i32 30, label %338
  ]

337:                                              ; preds = %335
  br label %338

338:                                              ; preds = %337, %335
  %339 = load i64, ptr %28, align 8, !tbaa !8
  %340 = add nsw i64 %339, 1
  store i64 %340, ptr %28, align 8, !tbaa !8
  br label %289, !llvm.loop !28

341:                                              ; preds = %332
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %6, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %7, align 4
  br label %345

345:                                              ; preds = %341, %319
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %364

346:                                              ; preds = %293
  %347 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %348 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %347, ptr %348, align 8
  %349 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %350 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %349, ptr %350, align 8
  %351 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %352 = load ptr, ptr %351, align 8
  %353 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  %354 = load ptr, ptr %353, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %352, ptr %354)
          to label %355 unwind label %360

355:                                              ; preds = %346
  %356 = 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) %26)
          to label %357 unwind label %360

357:                                              ; preds = %355
  %358 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %356, i8 noundef signext 10)
          to label %359 unwind label %360

359:                                              ; preds = %357
  store i32 13, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %367

360:                                              ; preds = %357, %355, %346
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %6, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %7, align 4
  br label %364

364:                                              ; preds = %360, %345
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %365

365:                                              ; preds = %364, %294
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %366

366:                                              ; preds = %365, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %369

367:                                              ; preds = %359, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %368 = load i32, ptr %14, align 4
  switch i32 %368, label %374 [
    i32 15, label %371
  ]

369:                                              ; preds = %366, %224, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %370

370:                                              ; preds = %369, %177
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %375

371:                                              ; preds = %367
  %372 = load i64, ptr %17, align 8, !tbaa !8
  %373 = add nsw i64 %372, -1
  store i64 %373, ptr %17, align 8, !tbaa !8
  br label %130, !llvm.loop !29

374:                                              ; preds = %367, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %376

375:                                              ; preds = %370, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %380

376:                                              ; preds = %374
  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
  store i32 0, ptr %14, align 4
  br label %377

377:                                              ; preds = %376, %123
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  %378 = load i32, ptr %14, align 4
  switch i32 %378, label %388 [
    i32 0, label %379
    i32 2, label %40
  ]

379:                                              ; preds = %377
  br label %40, !llvm.loop !16

380:                                              ; preds = %375, %134
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %383

381:                                              ; preds = %40
  %382 = load i32, ptr %1, align 4
  ret i32 %382

383:                                              ; preds = %380, %76, %64
  %384 = load ptr, ptr %6, align 8
  %385 = load i32, ptr %7, align 4
  %386 = insertvalue { ptr, i32 } poison, ptr %384, 0
  %387 = insertvalue { ptr, i32 } %386, i32 %385, 1
  resume { ptr, i32 } %387

388:                                              ; preds = %377, %335, %276
  unreachable
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 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)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #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 @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #5

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = distinct !{!20, !15}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}


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

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

@T = external dso_local global i64, align 8
@N = external dso_local local_unnamed_addr global i64, align 8
@pfx = external dso_local global [10 x i64], align 16
@sfx = external dso_local global [10 x i64], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %18 = load i64, ptr @T, align 8, !tbaa !8
  %19 = add nsw i64 %18, -1
  store i64 %19, ptr @T, align 8, !tbaa !8
  %.not136 = icmp eq i64 %18, 0
  br i1 %.not136, label %._crit_edge139, label %.lr.ph138

.lr.ph138:                                        ; preds = %0, %.backedge
  %20 = call 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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !11
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @pfx, ptr noundef nonnull getelementptr inbounds (i8, ptr @pfx, i64 80), ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !11
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @sfx, ptr noundef nonnull getelementptr inbounds (i8, ptr @sfx, i64 80), ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %21 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #7
  store i64 %21, ptr @N, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %22 = load i64, ptr @N, align 8, !tbaa !8
  invoke void @_Z4sub1NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEx(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull %4, i64 noundef %22)
          to label %23 unwind label %36

23:                                               ; preds = %.lr.ph138
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %25 = load i64, ptr @N, align 8, !tbaa !8
  invoke void @_Z4sub1NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEx(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull %6, i64 noundef %25)
          to label %26 unwind label %38

26:                                               ; preds = %23
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 0)
  %28 = load i8, ptr %27, align 1, !tbaa !13
  %29 = icmp eq i8 %28, 48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  %30 = load i64, ptr @N, align 8, !tbaa !8
  br i1 %29, label %.preheader103, label %.preheader106

.preheader106:                                    ; preds = %26
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %.lr.ph, label %.preheader105

.preheader103:                                    ; preds = %26
  %32 = icmp sgt i64 %30, 2
  br i1 %32, label %.lr.ph134, label %._crit_edge135

._crit_edge135:                                   ; preds = %.lr.ph134, %.preheader103
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  br label %.backedge

.backedge:                                        ; preds = %.critedge, %.loopexit, %._crit_edge135
  %34 = load i64, ptr @T, align 8, !tbaa !8
  %35 = add nsw i64 %34, -1
  store i64 %35, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %34, 0
  br i1 %.not, label %._crit_edge139, label %.lr.ph138, !llvm.loop !14

36:                                               ; preds = %.lr.ph138
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %282

38:                                               ; preds = %23
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %282

.lr.ph134:                                        ; preds = %.preheader103, %.lr.ph134
  %.068133 = phi i64 [ %41, %.lr.ph134 ], [ 0, %.preheader103 ]
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 9)
  %41 = add nuw nsw i64 %.068133, 1
  %42 = load i64, ptr @N, align 8, !tbaa !8
  %43 = add nsw i64 %42, -2
  %44 = icmp slt i64 %41, %43
  br i1 %44, label %.lr.ph134, label %._crit_edge135, !llvm.loop !16

.preheader105:                                    ; preds = %.lr.ph, %.preheader106
  %45 = load i64, ptr @pfx, align 16, !tbaa !8
  %46 = and i64 %45, 1
  %.not81 = icmp eq i64 %46, 0
  br i1 %.not81, label %57, label %86

.lr.ph:                                           ; preds = %.preheader106, %.lr.ph
  %.079111 = phi i64 [ %54, %.lr.ph ], [ 0, %.preheader106 ]
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.079111)
  %48 = load i8, ptr %47, align 1, !tbaa !13
  %49 = sext i8 %48 to i64
  %50 = add nsw i64 %49, -48
  %51 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !8
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %51, align 8, !tbaa !8
  %54 = add nuw nsw i64 %.079111, 1
  %55 = load i64, ptr @N, align 8, !tbaa !8
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %.lr.ph, label %.preheader105, !llvm.loop !17

57:                                               ; preds = %.preheader105
  %58 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 8), align 8, !tbaa !8
  %59 = and i64 %58, 1
  %.not81.1 = icmp eq i64 %59, 0
  br i1 %.not81.1, label %60, label %86

60:                                               ; preds = %57
  %61 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 16), align 16, !tbaa !8
  %62 = and i64 %61, 1
  %.not81.2 = icmp eq i64 %62, 0
  br i1 %.not81.2, label %63, label %86

63:                                               ; preds = %60
  %64 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 24), align 8, !tbaa !8
  %65 = and i64 %64, 1
  %.not81.3 = icmp eq i64 %65, 0
  br i1 %.not81.3, label %66, label %86

66:                                               ; preds = %63
  %67 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 32), align 16, !tbaa !8
  %68 = and i64 %67, 1
  %.not81.4 = icmp eq i64 %68, 0
  br i1 %.not81.4, label %69, label %86

69:                                               ; preds = %66
  %70 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 40), align 8, !tbaa !8
  %71 = and i64 %70, 1
  %.not81.5 = icmp eq i64 %71, 0
  br i1 %.not81.5, label %72, label %86

72:                                               ; preds = %69
  %73 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 48), align 16, !tbaa !8
  %74 = and i64 %73, 1
  %.not81.6 = icmp eq i64 %74, 0
  br i1 %.not81.6, label %75, label %86

75:                                               ; preds = %72
  %76 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 56), align 8, !tbaa !8
  %77 = and i64 %76, 1
  %.not81.7 = icmp eq i64 %77, 0
  br i1 %.not81.7, label %78, label %86

78:                                               ; preds = %75
  %79 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 64), align 16, !tbaa !8
  %80 = and i64 %79, 1
  %.not81.8 = icmp eq i64 %80, 0
  br i1 %.not81.8, label %81, label %86

81:                                               ; preds = %78
  %82 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 72), align 8, !tbaa !8
  %83 = and i64 %82, 1
  %.not81.9 = icmp eq i64 %83, 0
  br i1 %.not81.9, label %.critedge, label %86

.critedge:                                        ; preds = %81
  %84 = call 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) @_Z1sB5cxx11)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %84, i8 noundef signext 10)
  br label %.backedge, !llvm.loop !14

86:                                               ; preds = %81, %78, %75, %72, %69, %66, %63, %60, %57, %.preheader105
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %87 unwind label %90

87:                                               ; preds = %86
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  %88 = load i64, ptr @N, align 8, !tbaa !8
  %89 = icmp sgt i64 %88, 0
  br i1 %89, label %.lr.ph119, label %.loopexit

90:                                               ; preds = %86
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %281

.lr.ph119:                                        ; preds = %87, %279
  %.074.in117 = phi i64 [ %.074118, %279 ], [ %88, %87 ]
  %.074118 = add nsw i64 %.074.in117, -1
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %93 = load i8, ptr %92, align 1, !tbaa !13
  %94 = sext i8 %93 to i64
  %95 = add nsw i64 %94, -48
  %96 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !8
  %98 = add nsw i64 %97, -1
  store i64 %98, ptr %96, align 8, !tbaa !8
  %99 = load i64, ptr @pfx, align 16, !tbaa !8
  %100 = and i64 %99, 1
  %.not93 = icmp eq i64 %100, 0
  br i1 %.not93, label %106, label %101

101:                                              ; preds = %.lr.ph119
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %103 = load i8, ptr %102, align 1, !tbaa !13
  %104 = icmp slt i8 %103, 49
  %105 = zext i1 %104 to i64
  %not.brmerge = xor i1 %104, true
  br label %106

106:                                              ; preds = %101, %.lr.ph119
  %.173 = phi i64 [ 0, %.lr.ph119 ], [ %105, %101 ]
  %.171 = phi i1 [ false, %.lr.ph119 ], [ %not.brmerge, %101 ]
  %107 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 8), align 8, !tbaa !8
  %108 = and i64 %107, 1
  %.not93.1 = icmp eq i64 %108, 0
  br i1 %.not93.1, label %114, label %109

109:                                              ; preds = %106
  %110 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %111 = load i8, ptr %110, align 1, !tbaa !13
  %112 = icmp slt i8 %111, 50
  %brmerge.1 = select i1 %112, i1 true, i1 %.171
  %113 = zext i1 %brmerge.1 to i64
  %spec.select101.1 = add nuw nsw i64 %.173, %113
  %not.brmerge.1 = xor i1 %brmerge.1, true
  %spec.select102.1 = select i1 %not.brmerge.1, i1 true, i1 %.171
  br label %114

114:                                              ; preds = %109, %106
  %.173.1 = phi i64 [ %.173, %106 ], [ %spec.select101.1, %109 ]
  %.171.1 = phi i1 [ %.171, %106 ], [ %spec.select102.1, %109 ]
  %115 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 16), align 16, !tbaa !8
  %116 = and i64 %115, 1
  %.not93.2 = icmp eq i64 %116, 0
  br i1 %.not93.2, label %122, label %117

117:                                              ; preds = %114
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %119 = load i8, ptr %118, align 1, !tbaa !13
  %120 = icmp slt i8 %119, 51
  %brmerge.2 = select i1 %120, i1 true, i1 %.171.1
  %121 = zext i1 %brmerge.2 to i64
  %spec.select101.2 = add nuw nsw i64 %.173.1, %121
  %not.brmerge.2 = xor i1 %brmerge.2, true
  %spec.select102.2 = select i1 %not.brmerge.2, i1 true, i1 %.171.1
  br label %122

122:                                              ; preds = %117, %114
  %.173.2 = phi i64 [ %.173.1, %114 ], [ %spec.select101.2, %117 ]
  %.171.2 = phi i1 [ %.171.1, %114 ], [ %spec.select102.2, %117 ]
  %123 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 24), align 8, !tbaa !8
  %124 = and i64 %123, 1
  %.not93.3 = icmp eq i64 %124, 0
  br i1 %.not93.3, label %130, label %125

125:                                              ; preds = %122
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %127 = load i8, ptr %126, align 1, !tbaa !13
  %128 = icmp slt i8 %127, 52
  %brmerge.3 = select i1 %128, i1 true, i1 %.171.2
  %129 = zext i1 %brmerge.3 to i64
  %spec.select101.3 = add nuw nsw i64 %.173.2, %129
  %not.brmerge.3 = xor i1 %brmerge.3, true
  %spec.select102.3 = select i1 %not.brmerge.3, i1 true, i1 %.171.2
  br label %130

130:                                              ; preds = %125, %122
  %.173.3 = phi i64 [ %.173.2, %122 ], [ %spec.select101.3, %125 ]
  %.171.3 = phi i1 [ %.171.2, %122 ], [ %spec.select102.3, %125 ]
  %131 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 32), align 16, !tbaa !8
  %132 = and i64 %131, 1
  %.not93.4 = icmp eq i64 %132, 0
  br i1 %.not93.4, label %138, label %133

133:                                              ; preds = %130
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %135 = load i8, ptr %134, align 1, !tbaa !13
  %136 = icmp slt i8 %135, 53
  %brmerge.4 = select i1 %136, i1 true, i1 %.171.3
  %137 = zext i1 %brmerge.4 to i64
  %spec.select101.4 = add nuw nsw i64 %.173.3, %137
  %not.brmerge.4 = xor i1 %brmerge.4, true
  %spec.select102.4 = select i1 %not.brmerge.4, i1 true, i1 %.171.3
  br label %138

138:                                              ; preds = %133, %130
  %.173.4 = phi i64 [ %.173.3, %130 ], [ %spec.select101.4, %133 ]
  %.171.4 = phi i1 [ %.171.3, %130 ], [ %spec.select102.4, %133 ]
  %139 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 40), align 8, !tbaa !8
  %140 = and i64 %139, 1
  %.not93.5 = icmp eq i64 %140, 0
  br i1 %.not93.5, label %146, label %141

141:                                              ; preds = %138
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %143 = load i8, ptr %142, align 1, !tbaa !13
  %144 = icmp slt i8 %143, 54
  %brmerge.5 = select i1 %144, i1 true, i1 %.171.4
  %145 = zext i1 %brmerge.5 to i64
  %spec.select101.5 = add nuw nsw i64 %.173.4, %145
  %not.brmerge.5 = xor i1 %brmerge.5, true
  %spec.select102.5 = select i1 %not.brmerge.5, i1 true, i1 %.171.4
  br label %146

146:                                              ; preds = %141, %138
  %.173.5 = phi i64 [ %.173.4, %138 ], [ %spec.select101.5, %141 ]
  %.171.5 = phi i1 [ %.171.4, %138 ], [ %spec.select102.5, %141 ]
  %147 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 48), align 16, !tbaa !8
  %148 = and i64 %147, 1
  %.not93.6 = icmp eq i64 %148, 0
  br i1 %.not93.6, label %154, label %149

149:                                              ; preds = %146
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %151 = load i8, ptr %150, align 1, !tbaa !13
  %152 = icmp slt i8 %151, 55
  %brmerge.6 = select i1 %152, i1 true, i1 %.171.5
  %153 = zext i1 %brmerge.6 to i64
  %spec.select101.6 = add nuw nsw i64 %.173.5, %153
  %not.brmerge.6 = xor i1 %brmerge.6, true
  %spec.select102.6 = select i1 %not.brmerge.6, i1 true, i1 %.171.5
  br label %154

154:                                              ; preds = %149, %146
  %.173.6 = phi i64 [ %.173.5, %146 ], [ %spec.select101.6, %149 ]
  %.171.6 = phi i1 [ %.171.5, %146 ], [ %spec.select102.6, %149 ]
  %155 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 56), align 8, !tbaa !8
  %156 = and i64 %155, 1
  %.not93.7 = icmp eq i64 %156, 0
  br i1 %.not93.7, label %162, label %157

157:                                              ; preds = %154
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %159 = load i8, ptr %158, align 1, !tbaa !13
  %160 = icmp slt i8 %159, 56
  %brmerge.7 = select i1 %160, i1 true, i1 %.171.6
  %161 = zext i1 %brmerge.7 to i64
  %spec.select101.7 = add nuw nsw i64 %.173.6, %161
  %not.brmerge.7 = xor i1 %brmerge.7, true
  %spec.select102.7 = select i1 %not.brmerge.7, i1 true, i1 %.171.6
  br label %162

162:                                              ; preds = %157, %154
  %.173.7 = phi i64 [ %.173.6, %154 ], [ %spec.select101.7, %157 ]
  %.171.7 = phi i1 [ %.171.6, %154 ], [ %spec.select102.7, %157 ]
  %163 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 64), align 16, !tbaa !8
  %164 = and i64 %163, 1
  %.not93.8 = icmp eq i64 %164, 0
  br i1 %.not93.8, label %170, label %165

165:                                              ; preds = %162
  %166 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %167 = load i8, ptr %166, align 1, !tbaa !13
  %168 = icmp slt i8 %167, 57
  %brmerge.8 = select i1 %168, i1 true, i1 %.171.7
  %169 = zext i1 %brmerge.8 to i64
  %spec.select101.8 = add nuw nsw i64 %.173.7, %169
  %not.brmerge.8 = xor i1 %brmerge.8, true
  %spec.select102.8 = select i1 %not.brmerge.8, i1 true, i1 %.171.7
  br label %170

170:                                              ; preds = %165, %162
  %.173.8 = phi i64 [ %.173.7, %162 ], [ %spec.select101.8, %165 ]
  %.171.8 = phi i1 [ %.171.7, %162 ], [ %spec.select102.8, %165 ]
  %171 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 72), align 8, !tbaa !8
  %172 = and i64 %171, 1
  %.not93.9 = icmp eq i64 %172, 0
  br i1 %.not93.9, label %178, label %173

173:                                              ; preds = %170
  %174 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %175 = load i8, ptr %174, align 1, !tbaa !13
  %176 = icmp slt i8 %175, 58
  %brmerge.9 = select i1 %176, i1 true, i1 %.171.8
  %177 = zext i1 %brmerge.9 to i64
  %spec.select101.9 = add nuw nsw i64 %.173.8, %177
  br label %178

178:                                              ; preds = %173, %170
  %.173.9 = phi i64 [ %.173.8, %170 ], [ %spec.select101.9, %173 ]
  %179 = load i64, ptr @N, align 8, !tbaa !8
  %180 = sub i64 %179, %.074.in117
  %181 = icmp slt i64 %180, %.173.9
  br i1 %181, label %279, label %182

182:                                              ; preds = %178
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %184 = load i8, ptr %183, align 1, !tbaa !13
  %185 = icmp eq i8 %184, 48
  br i1 %185, label %279, label %.preheader104

.preheader104:                                    ; preds = %182
  %186 = icmp ugt i64 %.074.in117, 1
  br i1 %186, label %.lr.ph121, label %._crit_edge

._crit_edge:                                      ; preds = %195, %.preheader104
  %187 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.074118)
  %188 = load i8, ptr %187, align 1, !tbaa !13
  %189 = sext i8 %188 to i64
  %190 = add nsw i64 %189, -49
  %191 = icmp sgt i8 %188, 48
  br i1 %191, label %.lr.ph126, label %._crit_edge127

.lr.ph121:                                        ; preds = %.preheader104, %195
  %.067120 = phi i64 [ %196, %195 ], [ 0, %.preheader104 ]
  %192 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %.067120)
  %193 = load i8, ptr %192, align 1, !tbaa !13
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %193)
          to label %195 unwind label %198

195:                                              ; preds = %.lr.ph121
  %196 = add nuw nsw i64 %.067120, 1
  %197 = icmp slt i64 %196, %.074118
  br i1 %197, label %.lr.ph121, label %._crit_edge, !llvm.loop !18

198:                                              ; preds = %.lr.ph121
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %278

.lr.ph126:                                        ; preds = %._crit_edge, %212
  %.066124 = phi i64 [ %213, %212 ], [ %190, %._crit_edge ]
  %200 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %.066124
  %201 = load i64, ptr %200, align 8, !tbaa !8
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %200, align 8, !tbaa !8
  %203 = load <8 x i64>, ptr @pfx, align 16, !tbaa !8
  %204 = and <8 x i64> %203, <i64 1, i64 1, i64 1, i64 1, i64 1, i64 1, i64 1, i64 1>
  %205 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 64), align 16, !tbaa !8
  %206 = and i64 %205, 1
  %207 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 72), align 8, !tbaa !8
  %208 = and i64 %207, 1
  %209 = call i64 @llvm.vector.reduce.add.v8i64(<8 x i64> %204)
  %op.rdx = add i64 %209, %206
  %op.rdx150 = add i64 %op.rdx, %208
  %.not82 = icmp sgt i64 %op.rdx150, %180
  br i1 %.not82, label %212, label %._crit_edge127

210:                                              ; preds = %._crit_edge127
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %278

212:                                              ; preds = %.lr.ph126
  store i64 %201, ptr %200, align 8, !tbaa !8
  %213 = add nsw i64 %.066124, -1
  %214 = icmp sgt i64 %.066124, 0
  br i1 %214, label %.lr.ph126, label %._crit_edge127, !llvm.loop !19

._crit_edge127:                                   ; preds = %212, %.lr.ph126, %._crit_edge
  %.066.lcssa = phi i64 [ %190, %._crit_edge ], [ %.066124, %.lr.ph126 ], [ -1, %212 ]
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.066.lcssa)
          to label %216 unwind label %210

216:                                              ; preds = %._crit_edge127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  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 %217 unwind label %224

217:                                              ; preds = %216
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  %218 = load i64, ptr @N, align 8, !tbaa !8
  %219 = icmp slt i64 %.074.in117, %218
  br i1 %219, label %.preheader, label %._crit_edge132

.preheader:                                       ; preds = %217, %264
  %.062131 = phi i64 [ %265, %264 ], [ %.074.in117, %217 ]
  %220 = load i64, ptr @pfx, align 16, !tbaa !8
  %221 = and i64 %220, 1
  %.not83 = icmp eq i64 %221, 0
  br i1 %.not83, label %236, label %226

._crit_edge132:                                   ; preds = %264, %217
  %222 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %223 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %222, ptr %223)
          to label %270 unwind label %274

224:                                              ; preds = %216
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  br label %277

226:                                              ; preds = %260, %257, %254, %251, %248, %245, %242, %239, %236, %.preheader
  %.060130.lcssa = phi i64 [ 0, %.preheader ], [ 1, %236 ], [ 2, %239 ], [ 3, %242 ], [ 4, %245 ], [ 5, %248 ], [ 6, %251 ], [ 7, %254 ], [ 8, %257 ], [ 9, %260 ]
  %227 = trunc nuw nsw i64 %.060130.lcssa to i8
  %228 = or disjoint i8 %227, 48
  %229 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext %228)
          to label %230 unwind label %234

230:                                              ; preds = %226
  %231 = getelementptr inbounds [10 x i64], ptr @pfx, i64 0, i64 %.060130.lcssa
  %232 = load i64, ptr %231, align 8, !tbaa !8
  %233 = add nsw i64 %232, -1
  store i64 %233, ptr %231, align 8, !tbaa !8
  br label %264

234:                                              ; preds = %226
  %235 = landingpad { ptr, i32 }
          cleanup
  br label %276

236:                                              ; preds = %.preheader
  %237 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 8), align 8, !tbaa !8
  %238 = and i64 %237, 1
  %.not83.1 = icmp eq i64 %238, 0
  br i1 %.not83.1, label %239, label %226

239:                                              ; preds = %236
  %240 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 16), align 16, !tbaa !8
  %241 = and i64 %240, 1
  %.not83.2 = icmp eq i64 %241, 0
  br i1 %.not83.2, label %242, label %226

242:                                              ; preds = %239
  %243 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 24), align 8, !tbaa !8
  %244 = and i64 %243, 1
  %.not83.3 = icmp eq i64 %244, 0
  br i1 %.not83.3, label %245, label %226

245:                                              ; preds = %242
  %246 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 32), align 16, !tbaa !8
  %247 = and i64 %246, 1
  %.not83.4 = icmp eq i64 %247, 0
  br i1 %.not83.4, label %248, label %226

248:                                              ; preds = %245
  %249 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 40), align 8, !tbaa !8
  %250 = and i64 %249, 1
  %.not83.5 = icmp eq i64 %250, 0
  br i1 %.not83.5, label %251, label %226

251:                                              ; preds = %248
  %252 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 48), align 16, !tbaa !8
  %253 = and i64 %252, 1
  %.not83.6 = icmp eq i64 %253, 0
  br i1 %.not83.6, label %254, label %226

254:                                              ; preds = %251
  %255 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 56), align 8, !tbaa !8
  %256 = and i64 %255, 1
  %.not83.7 = icmp eq i64 %256, 0
  br i1 %.not83.7, label %257, label %226

257:                                              ; preds = %254
  %258 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 64), align 16, !tbaa !8
  %259 = and i64 %258, 1
  %.not83.8 = icmp eq i64 %259, 0
  br i1 %.not83.8, label %260, label %226

260:                                              ; preds = %257
  %261 = load i64, ptr getelementptr inbounds (i8, ptr @pfx, i64 72), align 8, !tbaa !8
  %262 = and i64 %261, 1
  %.not83.9 = icmp eq i64 %262, 0
  br i1 %.not83.9, label %.critedge95, label %226

.critedge95:                                      ; preds = %260
  %263 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 noundef signext 57)
          to label %264 unwind label %268

264:                                              ; preds = %230, %.critedge95
  %265 = add nuw nsw i64 %.062131, 1
  %266 = load i64, ptr @N, align 8, !tbaa !8
  %267 = icmp slt i64 %265, %266
  br i1 %267, label %.preheader, label %._crit_edge132, !llvm.loop !20

268:                                              ; preds = %.critedge95
  %269 = landingpad { ptr, i32 }
          cleanup
  br label %276

270:                                              ; preds = %._crit_edge132
  %271 = 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 %272 unwind label %274

272:                                              ; preds = %270
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %271, i8 noundef signext 10)
          to label %.critedge97 unwind label %274

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

274:                                              ; preds = %272, %270, %._crit_edge132
  %275 = landingpad { ptr, i32 }
          cleanup
  br label %276

276:                                              ; preds = %234, %268, %274
  %.pn.pn = phi { ptr, i32 } [ %275, %274 ], [ %269, %268 ], [ %235, %234 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %277

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

278:                                              ; preds = %210, %277, %198
  %.pn89 = phi { ptr, i32 } [ %199, %198 ], [ %.pn.pn.pn, %277 ], [ %211, %210 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %281

279:                                              ; preds = %182, %178
  %280 = icmp ugt i64 %.074.in117, 1
  br i1 %280, label %.lr.ph119, label %.loopexit, !llvm.loop !21

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

281:                                              ; preds = %278, %90
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %278 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %282

._crit_edge139:                                   ; preds = %.backedge, %0
  ret i32 0

282:                                              ; preds = %281, %38, %36
  %.pn89.pn.pn = phi { ptr, i32 } [ %.pn89.pn, %281 ], [ %39, %38 ], [ %37, %36 ]
  resume { ptr, i32 } %.pn89.pn.pn
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) 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 @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #5

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v8i64(<8 x i64>) #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


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