; LLVM IR from kazunetakahashi/atcoder :: 2018/1103_ABC098 (B)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i32, align 4
@_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

; 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 norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [2 x %"class.std::__cxx11::basic_string"], align 16
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [2 x [26 x i8]], align 16
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %19 = 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) %18, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %129, %0
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr @N, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %145

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  store ptr %5, ptr %6, align 8
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef 0, i64 noundef %27)
          to label %28 unwind label %47

28:                                               ; preds = %25
  %29 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %5, i64 1
  store ptr %29, ptr %6, align 8
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = load i32, ptr @N, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sub nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %31, i64 noundef %35)
          to label %36 unwind label %47

36:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 52, ptr %9) #7
  %37 = getelementptr inbounds [2 x [26 x i8]], ptr %9, i64 0, i64 0
  %38 = getelementptr inbounds [26 x i8], ptr %37, i64 0, i64 0
  %39 = getelementptr inbounds [2 x [26 x i8]], ptr %9, i64 0, i64 0
  %40 = getelementptr inbounds [26 x i8], ptr %39, i64 0, i64 0
  %41 = getelementptr inbounds i8, ptr %40, i64 52
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 0, ptr %10, align 1, !tbaa !9
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %38, ptr noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %42 unwind label %58

42:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %89, %42
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 2
  br i1 %45, label %62, label %46

46:                                               ; preds = %43
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %92

47:                                               ; preds = %28, %25
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  %51 = load ptr, ptr %6, align 8
  %52 = icmp eq ptr %5, %51
  br i1 %52, label %57, label %53

53:                                               ; preds = %53, %47
  %54 = phi ptr [ %51, %47 ], [ %55, %53 ]
  %55 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  %56 = icmp eq ptr %55, %5
  br i1 %56, label %57, label %53

57:                                               ; preds = %53, %47
  br label %144

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %136

62:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %5, i64 0, i64 %64
  store ptr %65, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %66 = load ptr, ptr %12, align 8, !tbaa !11
  %67 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %66) #7
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %69 = load ptr, ptr %12, align 8, !tbaa !11
  %70 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %69) #7
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  br label %72

72:                                               ; preds = %86, %62
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %73, label %75, label %74

74:                                               ; preds = %72
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %88

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  %76 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %77 = load i8, ptr %76, align 1, !tbaa !13
  store i8 %77, ptr %15, align 1, !tbaa !13
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2 x [26 x i8]], ptr %9, i64 0, i64 %79
  %81 = load i8, ptr %15, align 1, !tbaa !13
  %82 = sext i8 %81 to i32
  %83 = sub nsw i32 %82, 97
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [26 x i8], ptr %80, i64 0, i64 %84
  store i8 1, ptr %85, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  br label %86

86:                                               ; preds = %75
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %72

88:                                               ; preds = %74
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %43, !llvm.loop !14

92:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %115, %92
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 26
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %118

97:                                               ; preds = %93
  %98 = getelementptr inbounds [2 x [26 x i8]], ptr %9, i64 0, i64 0
  %99 = load i32, ptr %17, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [26 x i8], ptr %98, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !9, !range !16, !noundef !17
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %114

104:                                              ; preds = %97
  %105 = getelementptr inbounds [2 x [26 x i8]], ptr %9, i64 0, i64 1
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [26 x i8], ptr %105, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !9, !range !16, !noundef !17
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %114

111:                                              ; preds = %104
  %112 = load i32, ptr %16, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %16, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %111, %104, %97
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %17, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %17, align 4, !tbaa !5
  br label %93, !llvm.loop !18

118:                                              ; preds = %96
  %119 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %120 unwind label %132

120:                                              ; preds = %118
  %121 = load i32, ptr %119, align 4, !tbaa !5
  store i32 %121, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr %9) #7
  %122 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %5, i32 0, i32 0
  %123 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %122, i64 2
  br label %124

124:                                              ; preds = %124, %120
  %125 = phi ptr [ %123, %120 ], [ %126, %124 ]
  %126 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %125, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %126) #7
  %127 = icmp eq ptr %126, %122
  br i1 %127, label %128, label %124

128:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %3, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !19

132:                                              ; preds = %118
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %7, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %136

136:                                              ; preds = %132, %58
  call void @llvm.lifetime.end.p0(i64 52, ptr %9) #7
  %137 = getelementptr inbounds [2 x %"class.std::__cxx11::basic_string"], ptr %5, i32 0, i32 0
  %138 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %137, i64 2
  br label %139

139:                                              ; preds = %139, %136
  %140 = phi ptr [ %138, %136 ], [ %141, %139 ]
  %141 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %140, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %141) #7
  %142 = icmp eq ptr %141, %137
  br i1 %142, label %143, label %139

143:                                              ; preds = %139
  br label %144

144:                                              ; preds = %143, %57
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %150

145:                                              ; preds = %24
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %146)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %149 = load i32, ptr %1, align 4
  ret i32 %149

150:                                              ; preds = %144
  %151 = load ptr, ptr %7, align 8
  %152 = load i32, ptr %8, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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)) #2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

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

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

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

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

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

@N = external dso_local global i32, align 4
@_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

; 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [2 x %"class.std::__cxx11::basic_string"], align 16
  %3 = alloca [2 x [26 x i8]], align 16
  %4 = alloca i8, align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %9 = tail 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) %8, 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 !5
  %10 = load i32, ptr @N, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %0
  %12 = getelementptr inbounds i8, ptr %2, i64 32
  %13 = getelementptr inbounds i8, ptr %3, i64 52
  %14 = getelementptr inbounds i8, ptr %3, i64 26
  %15 = getelementptr inbounds i8, ptr %3, i64 1
  %16 = getelementptr inbounds i8, ptr %3, i64 27
  %17 = getelementptr inbounds i8, ptr %3, i64 2
  %18 = getelementptr inbounds i8, ptr %3, i64 28
  %19 = getelementptr inbounds i8, ptr %3, i64 3
  %20 = getelementptr inbounds i8, ptr %3, i64 29
  %21 = getelementptr inbounds i8, ptr %3, i64 4
  %22 = getelementptr inbounds i8, ptr %3, i64 30
  %23 = getelementptr inbounds i8, ptr %3, i64 5
  %24 = getelementptr inbounds i8, ptr %3, i64 31
  %25 = getelementptr inbounds i8, ptr %3, i64 6
  %26 = getelementptr inbounds i8, ptr %3, i64 32
  %27 = getelementptr inbounds i8, ptr %3, i64 7
  %28 = getelementptr inbounds i8, ptr %3, i64 33
  %29 = getelementptr inbounds i8, ptr %3, i64 8
  %30 = getelementptr inbounds i8, ptr %3, i64 34
  %31 = getelementptr inbounds i8, ptr %3, i64 9
  %32 = getelementptr inbounds i8, ptr %3, i64 35
  %33 = getelementptr inbounds i8, ptr %3, i64 10
  %34 = getelementptr inbounds i8, ptr %3, i64 36
  %35 = getelementptr inbounds i8, ptr %3, i64 11
  %36 = getelementptr inbounds i8, ptr %3, i64 37
  %37 = getelementptr inbounds i8, ptr %3, i64 12
  %38 = getelementptr inbounds i8, ptr %3, i64 38
  %39 = getelementptr inbounds i8, ptr %3, i64 13
  %40 = getelementptr inbounds i8, ptr %3, i64 39
  %41 = getelementptr inbounds i8, ptr %3, i64 14
  %42 = getelementptr inbounds i8, ptr %3, i64 40
  %43 = getelementptr inbounds i8, ptr %3, i64 15
  %44 = getelementptr inbounds i8, ptr %3, i64 41
  %45 = getelementptr inbounds i8, ptr %3, i64 16
  %46 = getelementptr inbounds i8, ptr %3, i64 42
  %47 = getelementptr inbounds i8, ptr %3, i64 17
  %48 = getelementptr inbounds i8, ptr %3, i64 43
  %49 = getelementptr inbounds i8, ptr %3, i64 18
  %50 = getelementptr inbounds i8, ptr %3, i64 44
  %51 = getelementptr inbounds i8, ptr %3, i64 19
  %52 = getelementptr inbounds i8, ptr %3, i64 45
  %53 = getelementptr inbounds i8, ptr %3, i64 20
  %54 = getelementptr inbounds i8, ptr %3, i64 46
  %55 = getelementptr inbounds i8, ptr %3, i64 21
  %56 = getelementptr inbounds i8, ptr %3, i64 47
  %57 = getelementptr inbounds i8, ptr %3, i64 22
  %58 = getelementptr inbounds i8, ptr %3, i64 48
  %59 = getelementptr inbounds i8, ptr %3, i64 23
  %60 = getelementptr inbounds i8, ptr %3, i64 49
  %61 = getelementptr inbounds i8, ptr %3, i64 24
  %62 = getelementptr inbounds i8, ptr %3, i64 50
  %63 = getelementptr inbounds i8, ptr %3, i64 25
  %64 = getelementptr inbounds i8, ptr %3, i64 51
  %65 = getelementptr inbounds i8, ptr %2, i64 32
  br label %69

._crit_edge34.loopexit:                           ; preds = %330
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge34

._crit_edge34:                                    ; preds = %._crit_edge34.loopexit, %0
  %66 = phi i32 [ %.pre, %._crit_edge34.loopexit ], [ 0, %0 ]
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %66)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

69:                                               ; preds = %.lr.ph33, %330
  %indvars.iv = phi i64 [ 0, %.lr.ph33 ], [ %indvars.iv.next, %330 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef 0, i64 noundef %indvars.iv)
  %70 = load i32, ptr @N, align 4, !tbaa !5
  %71 = trunc nuw nsw i64 %indvars.iv to i32
  %72 = sub nsw i32 %70, %71
  %73 = sext i32 %72 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %indvars.iv, i64 noundef %73)
          to label %74 unwind label %.loopexit.loopexit35

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  store i8 0, ptr %4, align 1, !tbaa !9
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %75 unwind label %.loopexit.loopexit

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %76 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  store ptr %76, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %77 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  store ptr %77, ptr %6, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %78, label %.lr.ph, label %._crit_edge

.loopexit.loopexit35:                             ; preds = %69
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %74
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %3) #7
  %81 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #7
  br label %.loopexit

._crit_edge:                                      ; preds = %.lr.ph, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %82 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  store ptr %82, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %83 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  store ptr %83, ptr %6, align 8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %84, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = sext i8 %86 to i64
  %88 = add nsw i64 %87, -97
  %89 = getelementptr inbounds [2 x [26 x i8]], ptr %3, i64 0, i64 1, i64 %88
  store i8 1, ptr %89, align 1, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %91, label %.lr.ph.1, label %._crit_edge.1

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  %92 = load i8, ptr %3, align 16, !tbaa !9, !range !12, !noundef !13
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %101, label %105

.lr.ph:                                           ; preds = %75, %.lr.ph
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = sext i8 %95 to i64
  %97 = add nsw i64 %96, -97
  %98 = getelementptr inbounds [2 x [26 x i8]], ptr %3, i64 0, i64 0, i64 %97
  store i8 1, ptr %98, align 1, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %100, label %.lr.ph, label %._crit_edge

101:                                              ; preds = %._crit_edge.1
  %102 = load i8, ptr %14, align 2, !tbaa !9, !range !12, !noundef !13
  %103 = trunc nuw i8 %102 to i1
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %._crit_edge.1, %101, %104
  %106 = phi i32 [ 0, %._crit_edge.1 ], [ 0, %101 ], [ 1, %104 ]
  %107 = load i8, ptr %15, align 1, !tbaa !9, !range !12, !noundef !13
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %109, label %114

109:                                              ; preds = %105
  %110 = load i8, ptr %16, align 1, !tbaa !9, !range !12, !noundef !13
  %111 = trunc nuw i8 %110 to i1
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = add nuw nsw i32 %106, 1
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %112, %109, %105
  %115 = phi i32 [ %106, %105 ], [ %106, %109 ], [ %113, %112 ]
  %116 = load i8, ptr %17, align 2, !tbaa !9, !range !12, !noundef !13
  %117 = trunc nuw i8 %116 to i1
  br i1 %117, label %118, label %123

118:                                              ; preds = %114
  %119 = load i8, ptr %18, align 4, !tbaa !9, !range !12, !noundef !13
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  %122 = add nuw nsw i32 %115, 1
  store i32 %122, ptr %7, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %121, %118, %114
  %124 = phi i32 [ %115, %114 ], [ %115, %118 ], [ %122, %121 ]
  %125 = load i8, ptr %19, align 1, !tbaa !9, !range !12, !noundef !13
  %126 = trunc nuw i8 %125 to i1
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load i8, ptr %20, align 1, !tbaa !9, !range !12, !noundef !13
  %129 = trunc nuw i8 %128 to i1
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = add nuw nsw i32 %124, 1
  store i32 %131, ptr %7, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %130, %127, %123
  %133 = phi i32 [ %124, %123 ], [ %124, %127 ], [ %131, %130 ]
  %134 = load i8, ptr %21, align 4, !tbaa !9, !range !12, !noundef !13
  %135 = trunc nuw i8 %134 to i1
  br i1 %135, label %136, label %141

136:                                              ; preds = %132
  %137 = load i8, ptr %22, align 2, !tbaa !9, !range !12, !noundef !13
  %138 = trunc nuw i8 %137 to i1
  br i1 %138, label %139, label %141

139:                                              ; preds = %136
  %140 = add nuw nsw i32 %133, 1
  store i32 %140, ptr %7, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %139, %136, %132
  %142 = phi i32 [ %133, %132 ], [ %133, %136 ], [ %140, %139 ]
  %143 = load i8, ptr %23, align 1, !tbaa !9, !range !12, !noundef !13
  %144 = trunc nuw i8 %143 to i1
  br i1 %144, label %145, label %150

145:                                              ; preds = %141
  %146 = load i8, ptr %24, align 1, !tbaa !9, !range !12, !noundef !13
  %147 = trunc nuw i8 %146 to i1
  br i1 %147, label %148, label %150

148:                                              ; preds = %145
  %149 = add nuw nsw i32 %142, 1
  store i32 %149, ptr %7, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %148, %145, %141
  %151 = phi i32 [ %142, %141 ], [ %142, %145 ], [ %149, %148 ]
  %152 = load i8, ptr %25, align 2, !tbaa !9, !range !12, !noundef !13
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %159

154:                                              ; preds = %150
  %155 = load i8, ptr %26, align 16, !tbaa !9, !range !12, !noundef !13
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %157, label %159

157:                                              ; preds = %154
  %158 = add nuw nsw i32 %151, 1
  store i32 %158, ptr %7, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %157, %154, %150
  %160 = phi i32 [ %151, %150 ], [ %151, %154 ], [ %158, %157 ]
  %161 = load i8, ptr %27, align 1, !tbaa !9, !range !12, !noundef !13
  %162 = trunc nuw i8 %161 to i1
  br i1 %162, label %163, label %168

163:                                              ; preds = %159
  %164 = load i8, ptr %28, align 1, !tbaa !9, !range !12, !noundef !13
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %166, label %168

166:                                              ; preds = %163
  %167 = add nuw nsw i32 %160, 1
  store i32 %167, ptr %7, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %166, %163, %159
  %169 = phi i32 [ %160, %159 ], [ %160, %163 ], [ %167, %166 ]
  %170 = load i8, ptr %29, align 8, !tbaa !9, !range !12, !noundef !13
  %171 = trunc nuw i8 %170 to i1
  br i1 %171, label %172, label %177

172:                                              ; preds = %168
  %173 = load i8, ptr %30, align 2, !tbaa !9, !range !12, !noundef !13
  %174 = trunc nuw i8 %173 to i1
  br i1 %174, label %175, label %177

175:                                              ; preds = %172
  %176 = add nuw nsw i32 %169, 1
  store i32 %176, ptr %7, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %175, %172, %168
  %178 = phi i32 [ %169, %168 ], [ %169, %172 ], [ %176, %175 ]
  %179 = load i8, ptr %31, align 1, !tbaa !9, !range !12, !noundef !13
  %180 = trunc nuw i8 %179 to i1
  br i1 %180, label %181, label %186

181:                                              ; preds = %177
  %182 = load i8, ptr %32, align 1, !tbaa !9, !range !12, !noundef !13
  %183 = trunc nuw i8 %182 to i1
  br i1 %183, label %184, label %186

184:                                              ; preds = %181
  %185 = add nuw nsw i32 %178, 1
  store i32 %185, ptr %7, align 4, !tbaa !5
  br label %186

186:                                              ; preds = %184, %181, %177
  %187 = phi i32 [ %178, %177 ], [ %178, %181 ], [ %185, %184 ]
  %188 = load i8, ptr %33, align 2, !tbaa !9, !range !12, !noundef !13
  %189 = trunc nuw i8 %188 to i1
  br i1 %189, label %190, label %195

190:                                              ; preds = %186
  %191 = load i8, ptr %34, align 4, !tbaa !9, !range !12, !noundef !13
  %192 = trunc nuw i8 %191 to i1
  br i1 %192, label %193, label %195

193:                                              ; preds = %190
  %194 = add nuw nsw i32 %187, 1
  store i32 %194, ptr %7, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %193, %190, %186
  %196 = phi i32 [ %187, %186 ], [ %187, %190 ], [ %194, %193 ]
  %197 = load i8, ptr %35, align 1, !tbaa !9, !range !12, !noundef !13
  %198 = trunc nuw i8 %197 to i1
  br i1 %198, label %199, label %204

199:                                              ; preds = %195
  %200 = load i8, ptr %36, align 1, !tbaa !9, !range !12, !noundef !13
  %201 = trunc nuw i8 %200 to i1
  br i1 %201, label %202, label %204

202:                                              ; preds = %199
  %203 = add nuw nsw i32 %196, 1
  store i32 %203, ptr %7, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %202, %199, %195
  %205 = phi i32 [ %196, %195 ], [ %196, %199 ], [ %203, %202 ]
  %206 = load i8, ptr %37, align 4, !tbaa !9, !range !12, !noundef !13
  %207 = trunc nuw i8 %206 to i1
  br i1 %207, label %208, label %213

208:                                              ; preds = %204
  %209 = load i8, ptr %38, align 2, !tbaa !9, !range !12, !noundef !13
  %210 = trunc nuw i8 %209 to i1
  br i1 %210, label %211, label %213

211:                                              ; preds = %208
  %212 = add nuw nsw i32 %205, 1
  store i32 %212, ptr %7, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %211, %208, %204
  %214 = phi i32 [ %205, %204 ], [ %205, %208 ], [ %212, %211 ]
  %215 = load i8, ptr %39, align 1, !tbaa !9, !range !12, !noundef !13
  %216 = trunc nuw i8 %215 to i1
  br i1 %216, label %217, label %222

217:                                              ; preds = %213
  %218 = load i8, ptr %40, align 1, !tbaa !9, !range !12, !noundef !13
  %219 = trunc nuw i8 %218 to i1
  br i1 %219, label %220, label %222

220:                                              ; preds = %217
  %221 = add nuw nsw i32 %214, 1
  store i32 %221, ptr %7, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %220, %217, %213
  %223 = phi i32 [ %214, %213 ], [ %214, %217 ], [ %221, %220 ]
  %224 = load i8, ptr %41, align 2, !tbaa !9, !range !12, !noundef !13
  %225 = trunc nuw i8 %224 to i1
  br i1 %225, label %226, label %231

226:                                              ; preds = %222
  %227 = load i8, ptr %42, align 8, !tbaa !9, !range !12, !noundef !13
  %228 = trunc nuw i8 %227 to i1
  br i1 %228, label %229, label %231

229:                                              ; preds = %226
  %230 = add nuw nsw i32 %223, 1
  store i32 %230, ptr %7, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %229, %226, %222
  %232 = phi i32 [ %223, %222 ], [ %223, %226 ], [ %230, %229 ]
  %233 = load i8, ptr %43, align 1, !tbaa !9, !range !12, !noundef !13
  %234 = trunc nuw i8 %233 to i1
  br i1 %234, label %235, label %240

235:                                              ; preds = %231
  %236 = load i8, ptr %44, align 1, !tbaa !9, !range !12, !noundef !13
  %237 = trunc nuw i8 %236 to i1
  br i1 %237, label %238, label %240

238:                                              ; preds = %235
  %239 = add nuw nsw i32 %232, 1
  store i32 %239, ptr %7, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %238, %235, %231
  %241 = phi i32 [ %232, %231 ], [ %232, %235 ], [ %239, %238 ]
  %242 = load i8, ptr %45, align 16, !tbaa !9, !range !12, !noundef !13
  %243 = trunc nuw i8 %242 to i1
  br i1 %243, label %244, label %249

244:                                              ; preds = %240
  %245 = load i8, ptr %46, align 2, !tbaa !9, !range !12, !noundef !13
  %246 = trunc nuw i8 %245 to i1
  br i1 %246, label %247, label %249

247:                                              ; preds = %244
  %248 = add nuw nsw i32 %241, 1
  store i32 %248, ptr %7, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %247, %244, %240
  %250 = phi i32 [ %241, %240 ], [ %241, %244 ], [ %248, %247 ]
  %251 = load i8, ptr %47, align 1, !tbaa !9, !range !12, !noundef !13
  %252 = trunc nuw i8 %251 to i1
  br i1 %252, label %253, label %258

253:                                              ; preds = %249
  %254 = load i8, ptr %48, align 1, !tbaa !9, !range !12, !noundef !13
  %255 = trunc nuw i8 %254 to i1
  br i1 %255, label %256, label %258

256:                                              ; preds = %253
  %257 = add nuw nsw i32 %250, 1
  store i32 %257, ptr %7, align 4, !tbaa !5
  br label %258

258:                                              ; preds = %256, %253, %249
  %259 = phi i32 [ %250, %249 ], [ %250, %253 ], [ %257, %256 ]
  %260 = load i8, ptr %49, align 2, !tbaa !9, !range !12, !noundef !13
  %261 = trunc nuw i8 %260 to i1
  br i1 %261, label %262, label %267

262:                                              ; preds = %258
  %263 = load i8, ptr %50, align 4, !tbaa !9, !range !12, !noundef !13
  %264 = trunc nuw i8 %263 to i1
  br i1 %264, label %265, label %267

265:                                              ; preds = %262
  %266 = add nuw nsw i32 %259, 1
  store i32 %266, ptr %7, align 4, !tbaa !5
  br label %267

267:                                              ; preds = %265, %262, %258
  %268 = phi i32 [ %259, %258 ], [ %259, %262 ], [ %266, %265 ]
  %269 = load i8, ptr %51, align 1, !tbaa !9, !range !12, !noundef !13
  %270 = trunc nuw i8 %269 to i1
  br i1 %270, label %271, label %276

271:                                              ; preds = %267
  %272 = load i8, ptr %52, align 1, !tbaa !9, !range !12, !noundef !13
  %273 = trunc nuw i8 %272 to i1
  br i1 %273, label %274, label %276

274:                                              ; preds = %271
  %275 = add nuw nsw i32 %268, 1
  store i32 %275, ptr %7, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %274, %271, %267
  %277 = phi i32 [ %268, %267 ], [ %268, %271 ], [ %275, %274 ]
  %278 = load i8, ptr %53, align 4, !tbaa !9, !range !12, !noundef !13
  %279 = trunc nuw i8 %278 to i1
  br i1 %279, label %280, label %285

280:                                              ; preds = %276
  %281 = load i8, ptr %54, align 2, !tbaa !9, !range !12, !noundef !13
  %282 = trunc nuw i8 %281 to i1
  br i1 %282, label %283, label %285

283:                                              ; preds = %280
  %284 = add nuw nsw i32 %277, 1
  store i32 %284, ptr %7, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %283, %280, %276
  %286 = phi i32 [ %277, %276 ], [ %277, %280 ], [ %284, %283 ]
  %287 = load i8, ptr %55, align 1, !tbaa !9, !range !12, !noundef !13
  %288 = trunc nuw i8 %287 to i1
  br i1 %288, label %289, label %294

289:                                              ; preds = %285
  %290 = load i8, ptr %56, align 1, !tbaa !9, !range !12, !noundef !13
  %291 = trunc nuw i8 %290 to i1
  br i1 %291, label %292, label %294

292:                                              ; preds = %289
  %293 = add nuw nsw i32 %286, 1
  store i32 %293, ptr %7, align 4, !tbaa !5
  br label %294

294:                                              ; preds = %292, %289, %285
  %295 = phi i32 [ %286, %285 ], [ %286, %289 ], [ %293, %292 ]
  %296 = load i8, ptr %57, align 2, !tbaa !9, !range !12, !noundef !13
  %297 = trunc nuw i8 %296 to i1
  br i1 %297, label %298, label %303

298:                                              ; preds = %294
  %299 = load i8, ptr %58, align 16, !tbaa !9, !range !12, !noundef !13
  %300 = trunc nuw i8 %299 to i1
  br i1 %300, label %301, label %303

301:                                              ; preds = %298
  %302 = add nuw nsw i32 %295, 1
  store i32 %302, ptr %7, align 4, !tbaa !5
  br label %303

303:                                              ; preds = %301, %298, %294
  %304 = phi i32 [ %295, %294 ], [ %295, %298 ], [ %302, %301 ]
  %305 = load i8, ptr %59, align 1, !tbaa !9, !range !12, !noundef !13
  %306 = trunc nuw i8 %305 to i1
  br i1 %306, label %307, label %312

307:                                              ; preds = %303
  %308 = load i8, ptr %60, align 1, !tbaa !9, !range !12, !noundef !13
  %309 = trunc nuw i8 %308 to i1
  br i1 %309, label %310, label %312

310:                                              ; preds = %307
  %311 = add nuw nsw i32 %304, 1
  store i32 %311, ptr %7, align 4, !tbaa !5
  br label %312

312:                                              ; preds = %310, %307, %303
  %313 = phi i32 [ %304, %303 ], [ %304, %307 ], [ %311, %310 ]
  %314 = load i8, ptr %61, align 8, !tbaa !9, !range !12, !noundef !13
  %315 = trunc nuw i8 %314 to i1
  br i1 %315, label %316, label %321

316:                                              ; preds = %312
  %317 = load i8, ptr %62, align 2, !tbaa !9, !range !12, !noundef !13
  %318 = trunc nuw i8 %317 to i1
  br i1 %318, label %319, label %321

319:                                              ; preds = %316
  %320 = add nuw nsw i32 %313, 1
  store i32 %320, ptr %7, align 4, !tbaa !5
  br label %321

321:                                              ; preds = %319, %316, %312
  %322 = phi i32 [ %313, %312 ], [ %313, %316 ], [ %320, %319 ]
  %323 = load i8, ptr %63, align 1, !tbaa !9, !range !12, !noundef !13
  %324 = trunc nuw i8 %323 to i1
  br i1 %324, label %325, label %330

325:                                              ; preds = %321
  %326 = load i8, ptr %64, align 1, !tbaa !9, !range !12, !noundef !13
  %327 = trunc nuw i8 %326 to i1
  br i1 %327, label %328, label %330

328:                                              ; preds = %325
  %329 = add nuw nsw i32 %322, 1
  store i32 %329, ptr %7, align 4, !tbaa !5
  br label %330

330:                                              ; preds = %328, %325, %321
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %332 = load i32, ptr %331, align 4, !tbaa !5
  store i32 %332, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %333 = load i32, ptr @N, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = icmp slt i64 %indvars.iv.next, %334
  br i1 %335, label %69, label %._crit_edge34.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.loopexit.loopexit35, %.loopexit.loopexit
  %.pn = phi { ptr, i32 } [ %80, %.loopexit.loopexit ], [ %79, %.loopexit.loopexit35 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

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

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

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

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

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 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 #2 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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 #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 = !{!"int", !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 = !{i8 0, i8 2}
!13 = !{}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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