; LLVM IR from eyangch/competitive-programming :: COCI/2023_2 (prijateljice)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, long long>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, long long>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, long long>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, long long>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@_Z2LsB5cxx11 = external dso_local global [100000 x %"class.std::__cxx11::basic_string"], align 16
@_Z2ZsB5cxx11 = external dso_local global [100000 x %"class.std::__cxx11::basic_string"], align 16
@L = external dso_local global [100000 x i64], align 16
@Z = external dso_local global [100000 x i64], align 16
@_Z2ccB5cxx11 = external dso_local global %"class.std::map", align 8
@rcc = external dso_local global [200050 x i64], align 16
@tp = external dso_local global [200050 x i64], align 16
@lt = external dso_local global [26 x %"class.std::vector"], align 16
@f = external dso_local global [2 x [26 x [2 x i8]]], align 16
@dp = external dso_local global [200050 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress 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: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %31 = load i64, ptr @N, align 8, !tbaa !8
  %32 = load i64, ptr @M, align 8, !tbaa !8
  %33 = add nsw i64 %31, %32
  store i64 %33, ptr @K, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %34

34:                                               ; preds = %43, %0
  %35 = load i64, ptr %2, align 8, !tbaa !8
  %36 = load i64, ptr @N, align 8, !tbaa !8
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %46

39:                                               ; preds = %34
  %40 = load i64, ptr %2, align 8, !tbaa !8
  %41 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %40
  %42 = 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) %41)
  br label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %2, align 8, !tbaa !8
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %2, align 8, !tbaa !8
  br label %34, !llvm.loop !11

46:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %47

47:                                               ; preds = %56, %46
  %48 = load i64, ptr %3, align 8, !tbaa !8
  %49 = load i64, ptr @M, align 8, !tbaa !8
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %59

52:                                               ; preds = %47
  %53 = load i64, ptr %3, align 8, !tbaa !8
  %54 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %53
  %55 = 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) %54)
  br label %56

56:                                               ; preds = %52
  %57 = load i64, ptr %3, align 8, !tbaa !8
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %3, align 8, !tbaa !8
  br label %47, !llvm.loop !13

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %60

60:                                               ; preds = %159, %59
  br label %61

61:                                               ; preds = %60
  %62 = load i64, ptr %4, align 8, !tbaa !8
  %63 = load i64, ptr @N, align 8, !tbaa !8
  %64 = icmp eq i64 %62, %63
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load i64, ptr %5, align 8, !tbaa !8
  %67 = load i64, ptr @M, align 8, !tbaa !8
  %68 = icmp eq i64 %66, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  br label %161

70:                                               ; preds = %65, %61
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  %71 = load i64, ptr %4, align 8, !tbaa !8
  %72 = load i64, ptr @N, align 8, !tbaa !8
  %73 = icmp eq i64 %71, %72
  br i1 %73, label %74, label %81

74:                                               ; preds = %70
  %75 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str)
          to label %76 unwind label %77

76:                                               ; preds = %74
  br label %86

77:                                               ; preds = %93, %90, %81, %74
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  br label %160

81:                                               ; preds = %70
  %82 = load i64, ptr %4, align 8, !tbaa !8
  %83 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %82
  %84 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %83)
          to label %85 unwind label %77

85:                                               ; preds = %81
  br label %86

86:                                               ; preds = %85, %76
  %87 = load i64, ptr %5, align 8, !tbaa !8
  %88 = load i64, ptr @M, align 8, !tbaa !8
  %89 = icmp eq i64 %87, %88
  br i1 %89, label %90, label %93

90:                                               ; preds = %86
  %91 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str)
          to label %92 unwind label %77

92:                                               ; preds = %90
  br label %98

93:                                               ; preds = %86
  %94 = load i64, ptr %5, align 8, !tbaa !8
  %95 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %94
  %96 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %95)
          to label %97 unwind label %77

97:                                               ; preds = %93
  br label %98

98:                                               ; preds = %97, %92
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  %99 = call noundef zeroext i1 @_ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  %100 = zext i1 %99 to i8
  store i8 %100, ptr %11, align 1, !tbaa !14
  %101 = load i8, ptr %11, align 1, !tbaa !14, !range !16, !noundef !17
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %133

103:                                              ; preds = %98
  %104 = load i64, ptr %6, align 8, !tbaa !8
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %106 unwind label %125

106:                                              ; preds = %103
  store i64 %104, ptr %105, align 8, !tbaa !8
  %107 = load i64, ptr %6, align 8, !tbaa !8
  %108 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %107
  store i64 0, ptr %108, align 8, !tbaa !8
  %109 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef 0)
          to label %110 unwind label %125

110:                                              ; preds = %106
  %111 = load i8, ptr %109, align 1, !tbaa !18
  %112 = sext i8 %111 to i32
  %113 = sub nsw i32 %112, 97
  %114 = sext i32 %113 to i64
  %115 = load i64, ptr %6, align 8, !tbaa !8
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %6, align 8, !tbaa !8
  %117 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %115
  store i64 %114, ptr %117, align 8, !tbaa !8
  %118 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef 0)
          to label %119 unwind label %125

119:                                              ; preds = %110
  %120 = load i8, ptr %118, align 1, !tbaa !18
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %121, 126
  br i1 %122, label %123, label %124

123:                                              ; preds = %119
  br label %130

124:                                              ; preds = %119
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 59, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

125:                                              ; preds = %140, %136, %133, %110, %106, %103
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %160

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %123
  %131 = load i64, ptr %4, align 8, !tbaa !8
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %4, align 8, !tbaa !8
  br label %159

133:                                              ; preds = %98
  %134 = load i64, ptr %6, align 8, !tbaa !8
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %136 unwind label %125

136:                                              ; preds = %133
  store i64 %134, ptr %135, align 8, !tbaa !8
  %137 = load i64, ptr %6, align 8, !tbaa !8
  %138 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %137
  store i64 1, ptr %138, align 8, !tbaa !8
  %139 = 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 %140 unwind label %125

140:                                              ; preds = %136
  %141 = load i8, ptr %139, align 1, !tbaa !18
  %142 = sext i8 %141 to i32
  %143 = sub nsw i32 %142, 97
  %144 = sext i32 %143 to i64
  %145 = load i64, ptr %6, align 8, !tbaa !8
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %6, align 8, !tbaa !8
  %147 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %145
  store i64 %144, ptr %147, align 8, !tbaa !8
  %148 = 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 %149 unwind label %125

149:                                              ; preds = %140
  %150 = load i8, ptr %148, align 1, !tbaa !18
  %151 = sext i8 %150 to i32
  %152 = icmp ne i32 %151, 126
  br i1 %152, label %153, label %154

153:                                              ; preds = %149
  br label %156

154:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.8, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

155:                                              ; No predecessors!
  br label %156

156:                                              ; preds = %155, %153
  %157 = load i64, ptr %5, align 8, !tbaa !8
  %158 = add nsw i64 %157, 1
  store i64 %158, ptr %5, align 8, !tbaa !8
  br label %159

159:                                              ; preds = %156, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %60, !llvm.loop !19

160:                                              ; preds = %125, %77
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %315

161:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store i64 0, ptr %12, align 8, !tbaa !8
  br label %162

162:                                              ; preds = %174, %161
  %163 = load i64, ptr %12, align 8, !tbaa !8
  %164 = load i64, ptr @N, align 8, !tbaa !8
  %165 = icmp slt i64 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %177

167:                                              ; preds = %162
  %168 = load i64, ptr %12, align 8, !tbaa !8
  %169 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %168
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %169)
  %171 = load i64, ptr %170, align 8, !tbaa !8
  %172 = load i64, ptr %12, align 8, !tbaa !8
  %173 = getelementptr inbounds [100000 x i64], ptr @L, i64 0, i64 %172
  store i64 %171, ptr %173, align 8, !tbaa !8
  br label %174

174:                                              ; preds = %167
  %175 = load i64, ptr %12, align 8, !tbaa !8
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %12, align 8, !tbaa !8
  br label %162, !llvm.loop !20

177:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !8
  br label %178

178:                                              ; preds = %190, %177
  %179 = load i64, ptr %13, align 8, !tbaa !8
  %180 = load i64, ptr @N, align 8, !tbaa !8
  %181 = icmp slt i64 %179, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %193

183:                                              ; preds = %178
  %184 = load i64, ptr %13, align 8, !tbaa !8
  %185 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %184
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %185)
  %187 = load i64, ptr %186, align 8, !tbaa !8
  %188 = load i64, ptr %13, align 8, !tbaa !8
  %189 = getelementptr inbounds [100000 x i64], ptr @Z, i64 0, i64 %188
  store i64 %187, ptr %189, align 8, !tbaa !8
  br label %190

190:                                              ; preds = %183
  %191 = load i64, ptr %13, align 8, !tbaa !8
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %13, align 8, !tbaa !8
  br label %178, !llvm.loop !21

193:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %194 = load i64, ptr @K, align 8, !tbaa !8
  %195 = sub nsw i64 %194, 1
  store i64 %195, ptr %14, align 8, !tbaa !8
  br label %196

196:                                              ; preds = %205, %193
  %197 = load i64, ptr %14, align 8, !tbaa !8
  %198 = icmp sge i64 %197, 0
  br i1 %198, label %200, label %199

199:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %208

200:                                              ; preds = %196
  %201 = load i64, ptr %14, align 8, !tbaa !8
  %202 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %201
  %203 = load i64, ptr %202, align 8, !tbaa !8
  %204 = getelementptr inbounds [26 x %"class.std::vector"], ptr @lt, i64 0, i64 %203
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %204, ptr noundef nonnull align 8 dereferenceable(8) %14)
  br label %205

205:                                              ; preds = %200
  %206 = load i64, ptr %14, align 8, !tbaa !8
  %207 = add nsw i64 %206, -1
  store i64 %207, ptr %14, align 8, !tbaa !8
  br label %196, !llvm.loop !22

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

209:                                              ; preds = %302, %208
  %210 = load i64, ptr %15, align 8, !tbaa !8
  %211 = icmp sge i64 %210, 0
  br i1 %211, label %213, label %212

212:                                              ; preds = %209
  store i32 19, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %305

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %214 = load i64, ptr %15, align 8, !tbaa !8
  %215 = sub nsw i64 %214, 1
  store i64 %215, ptr %17, align 8, !tbaa !8
  %216 = load i64, ptr %15, align 8, !tbaa !8
  %217 = icmp eq i64 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %213
  store i64 25, ptr %17, align 8, !tbaa !8
  br label %219

219:                                              ; preds = %218, %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %220 = load i64, ptr %15, align 8, !tbaa !8
  %221 = getelementptr inbounds [26 x %"class.std::vector"], ptr @lt, i64 0, i64 %220
  store ptr %221, ptr %18, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %222 = load ptr, ptr %18, align 8, !tbaa !23
  %223 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %222) #8
  %224 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %223, ptr %224, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %225 = load ptr, ptr %18, align 8, !tbaa !23
  %226 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %225) #8
  %227 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %226, ptr %227, align 8
  br label %228

228:                                              ; preds = %299, %219
  %229 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %229, label %231, label %230

230:                                              ; preds = %228
  store i32 22, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %301

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %233 = load i64, ptr %232, align 8, !tbaa !8
  store i64 %233, ptr %21, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %234 = load i64, ptr %21, align 8, !tbaa !8
  %235 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %234
  %236 = load i64, ptr %235, align 8, !tbaa !8
  store i64 %236, ptr %22, align 8, !tbaa !8
  %237 = load i64, ptr %22, align 8, !tbaa !8
  %238 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %237
  %239 = load i64, ptr %15, align 8, !tbaa !8
  %240 = getelementptr inbounds [26 x [2 x i8]], ptr %238, i64 0, i64 %239
  %241 = load i64, ptr %22, align 8, !tbaa !8
  %242 = icmp ne i64 %241, 0
  %243 = xor i1 %242, true
  %244 = zext i1 %243 to i64
  %245 = getelementptr inbounds [2 x i8], ptr %240, i64 0, i64 %244
  %246 = load i8, ptr %245, align 1, !tbaa !14, !range !16, !noundef !17
  %247 = trunc i8 %246 to i1
  %248 = zext i1 %247 to i32
  %249 = icmp eq i32 %248, 1
  br i1 %249, label %250, label %277

250:                                              ; preds = %231
  %251 = load i64, ptr %21, align 8, !tbaa !8
  %252 = getelementptr inbounds [200050 x i8], ptr @dp, i64 0, i64 %251
  store i8 0, ptr %252, align 1, !tbaa !14
  %253 = load i64, ptr %22, align 8, !tbaa !8
  %254 = icmp ne i64 %253, 0
  %255 = xor i1 %254, true
  %256 = zext i1 %255 to i64
  %257 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %256
  %258 = load i64, ptr %15, align 8, !tbaa !8
  %259 = getelementptr inbounds [26 x [2 x i8]], ptr %257, i64 0, i64 %258
  %260 = load i64, ptr %22, align 8, !tbaa !8
  %261 = icmp ne i64 %260, 0
  %262 = xor i1 %261, true
  %263 = zext i1 %262 to i64
  %264 = getelementptr inbounds [2 x i8], ptr %259, i64 0, i64 %263
  store i8 1, ptr %264, align 1, !tbaa !14
  %265 = load i64, ptr %22, align 8, !tbaa !8
  %266 = icmp ne i64 %265, 0
  %267 = xor i1 %266, true
  %268 = zext i1 %267 to i64
  %269 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %268
  %270 = load i64, ptr %17, align 8, !tbaa !8
  %271 = getelementptr inbounds [26 x [2 x i8]], ptr %269, i64 0, i64 %270
  %272 = load i64, ptr %22, align 8, !tbaa !8
  %273 = icmp ne i64 %272, 0
  %274 = xor i1 %273, true
  %275 = zext i1 %274 to i64
  %276 = getelementptr inbounds [2 x i8], ptr %271, i64 0, i64 %275
  store i8 1, ptr %276, align 1, !tbaa !14
  br label %298

277:                                              ; preds = %231
  %278 = load i64, ptr %21, align 8, !tbaa !8
  %279 = getelementptr inbounds [200050 x i8], ptr @dp, i64 0, i64 %278
  store i8 1, ptr %279, align 1, !tbaa !14
  %280 = load i64, ptr %22, align 8, !tbaa !8
  %281 = icmp ne i64 %280, 0
  %282 = xor i1 %281, true
  %283 = zext i1 %282 to i64
  %284 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %283
  %285 = load i64, ptr %15, align 8, !tbaa !8
  %286 = getelementptr inbounds [26 x [2 x i8]], ptr %284, i64 0, i64 %285
  %287 = load i64, ptr %22, align 8, !tbaa !8
  %288 = getelementptr inbounds [2 x i8], ptr %286, i64 0, i64 %287
  store i8 1, ptr %288, align 1, !tbaa !14
  %289 = load i64, ptr %22, align 8, !tbaa !8
  %290 = icmp ne i64 %289, 0
  %291 = xor i1 %290, true
  %292 = zext i1 %291 to i64
  %293 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %292
  %294 = load i64, ptr %17, align 8, !tbaa !8
  %295 = getelementptr inbounds [26 x [2 x i8]], ptr %293, i64 0, i64 %294
  %296 = load i64, ptr %22, align 8, !tbaa !8
  %297 = getelementptr inbounds [2 x i8], ptr %295, i64 0, i64 %296
  store i8 1, ptr %297, align 1, !tbaa !14
  br label %298

298:                                              ; preds = %277, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %299

299:                                              ; preds = %298
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %228

301:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %302

302:                                              ; preds = %301
  %303 = load i64, ptr %15, align 8, !tbaa !8
  %304 = add nsw i64 %303, -1
  store i64 %304, ptr %15, align 8, !tbaa !8
  br label %209, !llvm.loop !25

305:                                              ; preds = %212
  %306 = load i64, ptr @L, align 16, !tbaa !8
  %307 = getelementptr inbounds [200050 x i8], ptr @dp, i64 0, i64 %306
  %308 = load i8, ptr %307, align 1, !tbaa !14, !range !16, !noundef !17
  %309 = trunc i8 %308 to i1
  %310 = zext i1 %309 to i64
  %311 = select i1 %309, ptr @.str.10, ptr @.str.11
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %311)
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %312, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %314 = load i32, ptr %1, align 4
  ret i32 %314

315:                                              ; preds = %160
  %316 = load ptr, ptr %9, align 8
  %317 = load i32, ptr %10, align 4
  %318 = insertvalue { ptr, i32 } poison, ptr %316, 0
  %319 = insertvalue { ptr, i32 } %318, i32 %317, 1
  resume { ptr, i32 } %319
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

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


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, long long>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, long long>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, long long>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, long long>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@K = external dso_local local_unnamed_addr global i64, align 8
@_Z2LsB5cxx11 = external dso_local global [100000 x %"class.std::__cxx11::basic_string"], align 16
@_Z2ZsB5cxx11 = external dso_local global [100000 x %"class.std::__cxx11::basic_string"], align 16
@L = external dso_local local_unnamed_addr global [100000 x i64], align 16
@Z = external dso_local local_unnamed_addr global [100000 x i64], align 16
@_Z2ccB5cxx11 = external dso_local global %"class.std::map", align 8
@rcc = external dso_local local_unnamed_addr global [200050 x i64], align 16
@tp = external dso_local local_unnamed_addr global [200050 x i64], align 16
@lt = external dso_local global [26 x %"class.std::vector"], align 16
@f = external dso_local local_unnamed_addr global [2 x [26 x [2 x i8]]], align 16
@dp = external dso_local local_unnamed_addr global [200050 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1

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

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %12 = 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) @N)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %14 = load i64, ptr @N, align 8, !tbaa !8
  %15 = load i64, ptr @M, align 8
  %16 = add nsw i64 %15, %14
  store i64 %16, ptr @K, align 8, !tbaa !8
  %17 = icmp sgt i64 %14, 0
  br i1 %17, label %.lr.ph, label %.preheader74

.preheader74.loopexit:                            ; preds = %.lr.ph
  %.pre = load i64, ptr @M, align 8
  br label %.preheader74

.preheader74:                                     ; preds = %.preheader74.loopexit, %0
  %18 = phi i64 [ %24, %.preheader74.loopexit ], [ %14, %0 ]
  %19 = phi i64 [ %.pre, %.preheader74.loopexit ], [ %15, %0 ]
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.lr.ph77, label %.preheader73

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.075 = phi i64 [ %23, %.lr.ph ], [ 0, %0 ]
  %21 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %.075
  %22 = 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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %21)
  %23 = add nuw nsw i64 %.075, 1
  %24 = load i64, ptr @N, align 8, !tbaa !8
  %25 = icmp slt i64 %23, %24
  br i1 %25, label %.lr.ph, label %.preheader74.loopexit, !llvm.loop !11

.preheader73.loopexit:                            ; preds = %.lr.ph77
  %.pre97 = load i64, ptr @N, align 8, !tbaa !8
  br label %.preheader73

.preheader73:                                     ; preds = %.preheader73.loopexit, %.preheader74
  %26 = phi i64 [ %32, %.preheader73.loopexit ], [ %19, %.preheader74 ]
  %27 = phi i64 [ %.pre97, %.preheader73.loopexit ], [ %18, %.preheader74 ]
  %28 = or i64 %27, %26
  %or.cond78 = icmp eq i64 %28, 0
  br i1 %or.cond78, label %._crit_edge, label %.lr.ph82

.lr.ph77:                                         ; preds = %.preheader74, %.lr.ph77
  %.05676 = phi i64 [ %31, %.lr.ph77 ], [ 0, %.preheader74 ]
  %29 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %.05676
  %30 = 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) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %29)
  %31 = add nuw nsw i64 %.05676, 1
  %32 = load i64, ptr @M, align 8
  %33 = icmp slt i64 %31, %32
  br i1 %33, label %.lr.ph77, label %.preheader73.loopexit, !llvm.loop !13

.preheader72:                                     ; preds = %84
  %34 = icmp sgt i64 %.1, 0
  br i1 %34, label %.lr.ph84, label %._crit_edge

.lr.ph82:                                         ; preds = %.preheader73, %84
  %.05781 = phi i64 [ %.1, %84 ], [ 0, %.preheader73 ]
  %.06180 = phi i64 [ %.162, %84 ], [ 0, %.preheader73 ]
  %.06579 = phi i64 [ %.166, %84 ], [ 0, %.preheader73 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %35 = load i64, ptr @N, align 8, !tbaa !8
  %36 = icmp eq i64 %.05781, %35
  br i1 %36, label %37, label %41

37:                                               ; preds = %.lr.ph82
  %38 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str)
          to label %44 unwind label %39

39:                                               ; preds = %49, %47, %41, %37
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %89

41:                                               ; preds = %.lr.ph82
  %42 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %.05781
  %43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %44 unwind label %39

44:                                               ; preds = %41, %37
  %45 = load i64, ptr @M, align 8, !tbaa !8
  %46 = icmp eq i64 %.06180, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str)
          to label %52 unwind label %39

49:                                               ; preds = %44
  %50 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %.06180
  %51 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %52 unwind label %39

52:                                               ; preds = %49, %47
  %53 = call noundef zeroext i1 @_ZStltIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  br i1 %53, label %54, label %70

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %56 unwind label %66

56:                                               ; preds = %54
  store i64 %.06579, ptr %55, align 8, !tbaa !8
  %57 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %.06579
  store i64 0, ptr %57, align 8, !tbaa !8
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %59 = load i8, ptr %58, align 1, !tbaa !14
  %60 = sext i8 %59 to i64
  %61 = add nsw i64 %60, -97
  %62 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %.06579
  store i64 %61, ptr %62, align 8, !tbaa !8
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %64 = load i8, ptr %63, align 1, !tbaa !14
  %.not69 = icmp eq i8 %64, 126
  br i1 %.not69, label %65, label %68

65:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 59, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

66:                                               ; preds = %70, %54
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %89

68:                                               ; preds = %56
  %69 = add nsw i64 %.05781, 1
  br label %84

70:                                               ; preds = %52
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %72 unwind label %66

72:                                               ; preds = %70
  store i64 %.06579, ptr %71, align 8, !tbaa !8
  %73 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %.06579
  store i64 1, ptr %73, align 8, !tbaa !8
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %75 = load i8, ptr %74, align 1, !tbaa !14
  %76 = sext i8 %75 to i64
  %77 = add nsw i64 %76, -97
  %78 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %.06579
  store i64 %77, ptr %78, align 8, !tbaa !8
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %80 = load i8, ptr %79, align 1, !tbaa !14
  %.not = icmp eq i8 %80, 126
  br i1 %.not, label %81, label %82

81:                                               ; preds = %72
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.8, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

82:                                               ; preds = %72
  %83 = add nsw i64 %.06180, 1
  br label %84

84:                                               ; preds = %82, %68
  %.162 = phi i64 [ %.06180, %68 ], [ %83, %82 ]
  %.1 = phi i64 [ %69, %68 ], [ %.05781, %82 ]
  %.166 = add nuw nsw i64 %.06579, 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %85 = load i64, ptr @N, align 8, !tbaa !8
  %86 = icmp eq i64 %.1, %85
  %87 = load i64, ptr @M, align 8
  %88 = icmp eq i64 %.162, %87
  %or.cond = select i1 %86, i1 %88, i1 false
  br i1 %or.cond, label %.preheader72, label %.lr.ph82, !llvm.loop !15

89:                                               ; preds = %66, %39
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %40, %39 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn

.preheader:                                       ; preds = %.lr.ph84
  %90 = icmp sgt i64 %96, 0
  br i1 %90, label %.lr.ph86, label %._crit_edge

.lr.ph84:                                         ; preds = %.preheader72, %.lr.ph84
  %.06083 = phi i64 [ %95, %.lr.ph84 ], [ 0, %.preheader72 ]
  %91 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2LsB5cxx11, i64 0, i64 %.06083
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %91)
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %94 = getelementptr inbounds [100000 x i64], ptr @L, i64 0, i64 %.06083
  store i64 %93, ptr %94, align 8, !tbaa !8
  %95 = add nuw nsw i64 %.06083, 1
  %96 = load i64, ptr @N, align 8, !tbaa !8
  %97 = icmp slt i64 %95, %96
  br i1 %97, label %.lr.ph84, label %.preheader, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph86, %.preheader73, %.preheader72, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %storemerge.in87 = load i64, ptr @K, align 8, !tbaa !8
  %storemerge88 = add nsw i64 %storemerge.in87, -1
  store i64 %storemerge88, ptr %3, align 8, !tbaa !8
  %98 = icmp sgt i64 %storemerge.in87, 0
  br i1 %98, label %.lr.ph91, label %._crit_edge92

.lr.ph86:                                         ; preds = %.preheader, %.lr.ph86
  %.05985 = phi i64 [ %103, %.lr.ph86 ], [ 0, %.preheader ]
  %99 = getelementptr inbounds [100000 x %"class.std::__cxx11::basic_string"], ptr @_Z2ZsB5cxx11, i64 0, i64 %.05985
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEExSt4lessIS5_ESaISt4pairIKS5_xEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) @_Z2ccB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %99)
  %101 = load i64, ptr %100, align 8, !tbaa !8
  %102 = getelementptr inbounds [100000 x i64], ptr @Z, i64 0, i64 %.05985
  store i64 %101, ptr %102, align 8, !tbaa !8
  %103 = add nuw nsw i64 %.05985, 1
  %104 = load i64, ptr @N, align 8, !tbaa !8
  %105 = icmp slt i64 %103, %104
  br i1 %105, label %.lr.ph86, label %._crit_edge, !llvm.loop !17

._crit_edge92:                                    ; preds = %.lr.ph91, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %118

.lr.ph91:                                         ; preds = %._crit_edge, %.lr.ph91
  %storemerge89 = phi i64 [ %storemerge, %.lr.ph91 ], [ %storemerge88, %._crit_edge ]
  %106 = getelementptr inbounds [200050 x i64], ptr @rcc, i64 0, i64 %storemerge89
  %107 = load i64, ptr %106, align 8, !tbaa !8
  %108 = getelementptr inbounds [26 x %"class.std::vector"], ptr @lt, i64 0, i64 %107
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %storemerge.in = load i64, ptr %3, align 8, !tbaa !8
  %storemerge = add nsw i64 %storemerge.in, -1
  store i64 %storemerge, ptr %3, align 8, !tbaa !8
  %109 = icmp sgt i64 %storemerge.in, 0
  br i1 %109, label %.lr.ph91, label %._crit_edge92, !llvm.loop !18

110:                                              ; preds = %._crit_edge95
  %111 = load i64, ptr @L, align 16, !tbaa !8
  %112 = getelementptr inbounds [200050 x i8], ptr @dp, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !19, !range !21, !noundef !22
  %114 = trunc nuw i8 %113 to i1
  %115 = select i1 %114, ptr @.str.10, ptr @.str.11
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %116, i8 noundef signext 10)
  ret i32 0

118:                                              ; preds = %._crit_edge92, %._crit_edge95
  %.05896 = phi i64 [ 25, %._crit_edge92 ], [ %119, %._crit_edge95 ]
  %119 = add nsw i64 %.05896, -1
  %120 = icmp eq i64 %.05896, 0
  %spec.store.select = select i1 %120, i64 25, i64 %119
  %121 = getelementptr inbounds [26 x %"class.std::vector"], ptr @lt, i64 0, i64 %.05896
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %122 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  store ptr %122, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %123 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  store ptr %123, ptr %5, align 8
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %124, label %.lr.ph94, label %._crit_edge95

._crit_edge95:                                    ; preds = %.lr.ph94, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %.not98 = icmp eq i64 %.05896, 0
  br i1 %.not98, label %110, label %118, !llvm.loop !23

.lr.ph94:                                         ; preds = %118, %.lr.ph94
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %126 = load i64, ptr %125, align 8, !tbaa !8
  %127 = getelementptr inbounds [200050 x i64], ptr @tp, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %.not70 = icmp eq i64 %128, 0
  %129 = zext i1 %.not70 to i64
  %130 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %128, i64 %.05896, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !19, !range !21, !noundef !22
  %132 = trunc nuw i8 %131 to i1
  %. = select i1 %132, i64 %129, i64 %128
  %not. = xor i8 %131, 1
  %133 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %129, i64 %.05896, i64 %.
  store i8 1, ptr %133, align 1, !tbaa !19
  %134 = getelementptr inbounds [2 x [26 x [2 x i8]]], ptr @f, i64 0, i64 %129, i64 %spec.store.select, i64 %.
  store i8 1, ptr %134, align 1, !tbaa !19
  %135 = getelementptr inbounds [200050 x i8], ptr @dp, i64 0, i64 %126
  store i8 %not., ptr %135, align 1
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %137 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %137, label %.lr.ph94, label %._crit_edge95
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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


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