; LLVM IR from afrozchakure/Competitive-Programming-Solutions :: CodeChefProblems/JanuaryChallenge2021Division3 (EncodedString)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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>, char>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, char>>, 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>, char>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, char>>, 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::initializer_list" = type { ptr, i64 }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"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] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"class.std::allocator.0" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::map", align 8
  %4 = alloca %"class.std::initializer_list", align 8
  %5 = alloca [16 x %"struct.std::pair"], align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i1, align 1
  %26 = alloca %"struct.std::less", align 1
  %27 = alloca %"class.std::allocator.3", align 1
  %28 = alloca i32, align 4
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.0", align 1
  %33 = alloca i64, align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 640, ptr %5) #7
  store i1 true, ptr %25, align 1
  store ptr %5, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 97, ptr %7, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 1 dereferenceable(5) @.str, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %36 unwind label %94

36:                                               ; preds = %0
  %37 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 1
  store ptr %37, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 98, ptr %10, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %37, ptr noundef nonnull align 1 dereferenceable(5) @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %38 unwind label %98

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 2
  store ptr %39, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 99, ptr %11, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %39, ptr noundef nonnull align 1 dereferenceable(5) @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %40 unwind label %102

40:                                               ; preds = %38
  %41 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 3
  store ptr %41, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 100, ptr %12, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %41, ptr noundef nonnull align 1 dereferenceable(5) @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %42 unwind label %106

42:                                               ; preds = %40
  %43 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 4
  store ptr %43, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 101, ptr %13, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %43, ptr noundef nonnull align 1 dereferenceable(5) @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %44 unwind label %110

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 5
  store ptr %45, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  store i8 102, ptr %14, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %45, ptr noundef nonnull align 1 dereferenceable(5) @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %46 unwind label %114

46:                                               ; preds = %44
  %47 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 6
  store ptr %47, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  store i8 103, ptr %15, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %47, ptr noundef nonnull align 1 dereferenceable(5) @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %48 unwind label %118

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 7
  store ptr %49, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  store i8 104, ptr %16, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %49, ptr noundef nonnull align 1 dereferenceable(5) @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %50 unwind label %122

50:                                               ; preds = %48
  %51 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 8
  store ptr %51, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 105, ptr %17, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %51, ptr noundef nonnull align 1 dereferenceable(5) @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %52 unwind label %126

52:                                               ; preds = %50
  %53 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 9
  store ptr %53, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  store i8 106, ptr %18, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %53, ptr noundef nonnull align 1 dereferenceable(5) @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %54 unwind label %130

54:                                               ; preds = %52
  %55 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 10
  store ptr %55, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 107, ptr %19, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %55, ptr noundef nonnull align 1 dereferenceable(5) @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %56 unwind label %134

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 11
  store ptr %57, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 108, ptr %20, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %57, ptr noundef nonnull align 1 dereferenceable(5) @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %58 unwind label %138

58:                                               ; preds = %56
  %59 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 12
  store ptr %59, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 109, ptr %21, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %59, ptr noundef nonnull align 1 dereferenceable(5) @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %60 unwind label %142

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 13
  store ptr %61, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  store i8 110, ptr %22, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %61, ptr noundef nonnull align 1 dereferenceable(5) @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %62 unwind label %146

62:                                               ; preds = %60
  %63 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 14
  store ptr %63, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  store i8 111, ptr %23, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %63, ptr noundef nonnull align 1 dereferenceable(5) @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %64 unwind label %150

64:                                               ; preds = %62
  %65 = getelementptr inbounds %"struct.std::pair", ptr %5, i64 15
  store ptr %65, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  store i8 112, ptr %24, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %65, ptr noundef nonnull align 1 dereferenceable(5) @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %66 unwind label %154

66:                                               ; preds = %64
  store i1 false, ptr %25, align 1
  %67 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 0
  store ptr %5, ptr %67, align 8, !tbaa !8
  %68 = getelementptr inbounds %"class.std::initializer_list", ptr %4, i32 0, i32 1
  store i64 16, ptr %68, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #7
  call void @_ZNSaISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  %69 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8
  %71 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  %72 = load i64, ptr %71, align 8
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEEC2ESt16initializer_listISA_ERKS7_RKSB_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr %70, i64 %72, ptr noundef nonnull align 1 dereferenceable(1) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %73 unwind label %158

73:                                               ; preds = %66
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  %74 = getelementptr inbounds [16 x %"struct.std::pair"], ptr %5, i32 0, i32 0
  %75 = getelementptr inbounds %"struct.std::pair", ptr %74, i64 16
  br label %76

76:                                               ; preds = %76, %73
  %77 = phi ptr [ %75, %73 ], [ %78, %76 ]
  %78 = getelementptr inbounds %"struct.std::pair", ptr %77, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %78) #7
  %79 = icmp eq ptr %78, %74
  br i1 %79, label %80, label %76

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 640, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %81 = load i32, ptr %2, align 4, !tbaa !13
  store i32 %81, ptr %28, align 4, !tbaa !13
  br label %82

82:                                               ; preds = %244, %80
  %83 = load i32, ptr %2, align 4, !tbaa !13
  %84 = add nsw i32 %83, -1
  store i32 %84, ptr %2, align 4, !tbaa !13
  %85 = icmp ne i32 %83, 0
  br i1 %85, label %86, label %253

86:                                               ; preds = %82
  %87 = load i32, ptr %2, align 4, !tbaa !13
  %88 = load i32, ptr %28, align 4, !tbaa !13
  %89 = sub nsw i32 %88, 1
  %90 = icmp ne i32 %87, %89
  br i1 %90, label %91, label %199

91:                                               ; preds = %86
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %93 unwind label %195

93:                                               ; preds = %91
  br label %199

94:                                               ; preds = %0
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  br label %184

98:                                               ; preds = %36
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %8, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %9, align 4
  br label %183

102:                                              ; preds = %38
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %8, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %9, align 4
  br label %182

106:                                              ; preds = %40
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %8, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %9, align 4
  br label %181

110:                                              ; preds = %42
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %180

114:                                              ; preds = %44
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  br label %179

118:                                              ; preds = %46
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %8, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %9, align 4
  br label %178

122:                                              ; preds = %48
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %8, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %9, align 4
  br label %177

126:                                              ; preds = %50
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %8, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %9, align 4
  br label %176

130:                                              ; preds = %52
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  br label %175

134:                                              ; preds = %54
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  br label %174

138:                                              ; preds = %56
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %173

142:                                              ; preds = %58
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  br label %172

146:                                              ; preds = %60
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  br label %171

150:                                              ; preds = %62
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  br label %170

154:                                              ; preds = %64
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %8, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %9, align 4
  br label %169

158:                                              ; preds = %66
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %8, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %9, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  %162 = getelementptr inbounds [16 x %"struct.std::pair"], ptr %5, i32 0, i32 0
  %163 = getelementptr inbounds %"struct.std::pair", ptr %162, i64 16
  br label %164

164:                                              ; preds = %164, %158
  %165 = phi ptr [ %163, %158 ], [ %166, %164 ]
  %166 = getelementptr inbounds %"struct.std::pair", ptr %165, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %166) #7
  %167 = icmp eq ptr %166, %162
  br i1 %167, label %168, label %164

168:                                              ; preds = %164
  br label %169

169:                                              ; preds = %168, %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  br label %170

170:                                              ; preds = %169, %150
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %171

171:                                              ; preds = %170, %146
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %172

172:                                              ; preds = %171, %142
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %173

173:                                              ; preds = %172, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %174

174:                                              ; preds = %173, %134
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %175

175:                                              ; preds = %174, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %176

176:                                              ; preds = %175, %126
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %177

177:                                              ; preds = %176, %122
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %178

178:                                              ; preds = %177, %118
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  br label %179

179:                                              ; preds = %178, %114
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %180

180:                                              ; preds = %179, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %181

181:                                              ; preds = %180, %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %182

182:                                              ; preds = %181, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %183

183:                                              ; preds = %182, %98
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %184

184:                                              ; preds = %183, %94
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  %185 = load i1, ptr %25, align 1
  br i1 %185, label %186, label %194

186:                                              ; preds = %184
  %187 = load ptr, ptr %6, align 8
  %188 = icmp eq ptr %5, %187
  br i1 %188, label %193, label %189

189:                                              ; preds = %189, %186
  %190 = phi ptr [ %187, %186 ], [ %191, %189 ]
  %191 = getelementptr inbounds %"struct.std::pair", ptr %190, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %191) #7
  %192 = icmp eq ptr %191, %5
  br i1 %192, label %193, label %189

193:                                              ; preds = %189, %186
  br label %194

194:                                              ; preds = %193, %184
  call void @llvm.lifetime.end.p0(i64 640, ptr %5) #7
  br label %256

195:                                              ; preds = %91
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %8, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %9, align 4
  br label %255

199:                                              ; preds = %93, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %200 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %201 unwind label %210

201:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  %202 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %203 unwind label %214

203:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %204 unwind label %218

204:                                              ; preds = %203
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !15
  br label %205

205:                                              ; preds = %230, %204
  %206 = load i64, ptr %33, align 8, !tbaa !15
  %207 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  %208 = icmp ult i64 %206, %207
  br i1 %208, label %222, label %209

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

210:                                              ; preds = %199
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %8, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %9, align 4
  br label %252

214:                                              ; preds = %201
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %8, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %9, align 4
  br label %251

218:                                              ; preds = %203
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %8, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  br label %250

222:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #7
  %223 = load i64, ptr %33, align 8, !tbaa !15
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %223, i64 noundef 4)
          to label %224 unwind label %233

224:                                              ; preds = %222
  %225 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %226 unwind label %237

226:                                              ; preds = %224
  %227 = load i8, ptr %225, align 1, !tbaa !5
  %228 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %31, i8 noundef signext %227)
          to label %229 unwind label %237

229:                                              ; preds = %226
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  br label %230

230:                                              ; preds = %229
  %231 = load i64, ptr %33, align 8, !tbaa !15
  %232 = add i64 %231, 4
  store i64 %232, ptr %33, align 8, !tbaa !15
  br label %205, !llvm.loop !17

233:                                              ; preds = %222
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %8, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %9, align 4
  br label %241

237:                                              ; preds = %226, %224
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %8, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #7
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %249

242:                                              ; preds = %209
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %244 unwind label %245

244:                                              ; preds = %242
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %82, !llvm.loop !19

245:                                              ; preds = %242
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %8, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %9, align 4
  br label %249

249:                                              ; preds = %245, %241
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  br label %250

250:                                              ; preds = %249, %218
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br label %251

251:                                              ; preds = %250, %214
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #7
  br label %252

252:                                              ; preds = %251, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %255

253:                                              ; preds = %82
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %254 = load i32, ptr %1, align 4
  ret i32 %254

255:                                              ; preds = %252, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  br label %256

256:                                              ; preds = %255, %194
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %8, align 8
  %259 = load i32, ptr %9, align 4
  %260 = insertvalue { ptr, i32 } poison, ptr %258, 0
  %261 = insertvalue { ptr, i32 } %260, i32 %259, 1
  resume { ptr, i32 } %261
}

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

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: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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>, char>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, char>>, 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>, char>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, char>>, 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 }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"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] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"class.std::allocator.0" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::map", align 8
  %3 = alloca [16 x %"struct.std::pair"], align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca %"struct.std::less", align 1
  %21 = alloca %"class.std::allocator.3", align 1
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 640, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  store i8 97, ptr %4, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %3, ptr noundef nonnull align 1 dereferenceable(5) @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %28 unwind label %.thread

28:                                               ; preds = %0
  %29 = getelementptr inbounds i8, ptr %3, i64 40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  store i8 98, ptr %5, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %29, ptr noundef nonnull align 1 dereferenceable(5) @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %81

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %3, i64 80
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  store i8 99, ptr %6, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %31, ptr noundef nonnull align 1 dereferenceable(5) @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %32 unwind label %83

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %3, i64 120
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  store i8 100, ptr %7, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %33, ptr noundef nonnull align 1 dereferenceable(5) @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %34 unwind label %85

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %3, i64 160
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  store i8 101, ptr %8, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %35, ptr noundef nonnull align 1 dereferenceable(5) @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %36 unwind label %87

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %3, i64 200
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  store i8 102, ptr %9, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %37, ptr noundef nonnull align 1 dereferenceable(5) @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %38 unwind label %89

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %3, i64 240
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  store i8 103, ptr %10, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %39, ptr noundef nonnull align 1 dereferenceable(5) @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %40 unwind label %91

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %3, i64 280
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  store i8 104, ptr %11, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %41, ptr noundef nonnull align 1 dereferenceable(5) @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %42 unwind label %93

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %3, i64 320
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  store i8 105, ptr %12, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %43, ptr noundef nonnull align 1 dereferenceable(5) @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %44 unwind label %95

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %3, i64 360
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  store i8 106, ptr %13, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %45, ptr noundef nonnull align 1 dereferenceable(5) @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %46 unwind label %97

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %3, i64 400
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  store i8 107, ptr %14, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %47, ptr noundef nonnull align 1 dereferenceable(5) @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %48 unwind label %99

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %3, i64 440
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  store i8 108, ptr %15, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %49, ptr noundef nonnull align 1 dereferenceable(5) @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %50 unwind label %101

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %3, i64 480
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  store i8 109, ptr %16, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %51, ptr noundef nonnull align 1 dereferenceable(5) @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %52 unwind label %103

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %3, i64 520
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  store i8 110, ptr %17, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %53, ptr noundef nonnull align 1 dereferenceable(5) @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %54 unwind label %105

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %3, i64 560
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  store i8 111, ptr %18, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %55, ptr noundef nonnull align 1 dereferenceable(5) @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %56 unwind label %107

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %3, i64 600
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #7
  store i8 112, ptr %19, align 1, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33) %57, ptr noundef nonnull align 1 dereferenceable(5) @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %58 unwind label %109

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  call void @_ZNSaISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEEC2ESt16initializer_listISA_ERKS7_RKSB_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr nonnull %3, i64 16, ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %59 unwind label %.loopexit95.loopexit

59:                                               ; preds = %58
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  %60 = getelementptr inbounds i8, ptr %3, i64 600
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %60) #7
  %61 = getelementptr inbounds i8, ptr %3, i64 560
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %61) #7
  %62 = getelementptr inbounds i8, ptr %3, i64 520
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %62) #7
  %63 = getelementptr inbounds i8, ptr %3, i64 480
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %63) #7
  %64 = getelementptr inbounds i8, ptr %3, i64 440
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %64) #7
  %65 = getelementptr inbounds i8, ptr %3, i64 400
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %65) #7
  %66 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %66) #7
  %67 = getelementptr inbounds i8, ptr %3, i64 320
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %67) #7
  %68 = getelementptr inbounds i8, ptr %3, i64 280
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %68) #7
  %69 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %69) #7
  %70 = getelementptr inbounds i8, ptr %3, i64 200
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %70) #7
  %71 = getelementptr inbounds i8, ptr %3, i64 160
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %71) #7
  %72 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %72) #7
  %73 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %73) #7
  %74 = getelementptr inbounds i8, ptr %3, i64 40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %74) #7
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 640, ptr nonnull %3) #7
  %75 = load i32, ptr %1, align 4, !tbaa !8
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %1, align 4, !tbaa !8
  %.not97 = icmp eq i32 %75, 0
  br i1 %.not97, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %59, %176
  %77 = phi i32 [ %.pr, %176 ], [ %75, %59 ]
  %.not81 = icmp eq i32 %77, %75
  br i1 %.not81, label %148, label %78

78:                                               ; preds = %.lr.ph99
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %148 unwind label %146

.thread:                                          ; preds = %0
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %.loopexit

81:                                               ; preds = %28
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %141

83:                                               ; preds = %30
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %140

85:                                               ; preds = %32
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %139

87:                                               ; preds = %34
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %138

89:                                               ; preds = %36
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %137

91:                                               ; preds = %38
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %136

93:                                               ; preds = %40
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %135

95:                                               ; preds = %42
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %134

97:                                               ; preds = %44
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %133

99:                                               ; preds = %46
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %132

101:                                              ; preds = %48
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %131

103:                                              ; preds = %50
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %130

105:                                              ; preds = %52
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %129

107:                                              ; preds = %54
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %128

109:                                              ; preds = %56
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit95

.loopexit95.loopexit:                             ; preds = %58
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #7
  %112 = getelementptr inbounds i8, ptr %3, i64 600
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %112) #7
  %113 = getelementptr inbounds i8, ptr %3, i64 560
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %113) #7
  %114 = getelementptr inbounds i8, ptr %3, i64 520
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %114) #7
  %115 = getelementptr inbounds i8, ptr %3, i64 480
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %115) #7
  %116 = getelementptr inbounds i8, ptr %3, i64 440
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %116) #7
  %117 = getelementptr inbounds i8, ptr %3, i64 400
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %117) #7
  %118 = getelementptr inbounds i8, ptr %3, i64 360
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %118) #7
  %119 = getelementptr inbounds i8, ptr %3, i64 320
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %119) #7
  %120 = getelementptr inbounds i8, ptr %3, i64 280
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %120) #7
  %121 = getelementptr inbounds i8, ptr %3, i64 240
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %121) #7
  %122 = getelementptr inbounds i8, ptr %3, i64 200
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %122) #7
  %123 = getelementptr inbounds i8, ptr %3, i64 160
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %123) #7
  %124 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %124) #7
  %125 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %125) #7
  %126 = getelementptr inbounds i8, ptr %3, i64 40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %126) #7
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %3) #7
  br label %.loopexit95

.loopexit95:                                      ; preds = %.loopexit95.loopexit, %109
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %111, %.loopexit95.loopexit ]
  %127 = phi i1 [ false, %109 ], [ true, %.loopexit95.loopexit ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #7
  br label %128

128:                                              ; preds = %.loopexit95, %107
  %.049 = phi ptr [ %57, %.loopexit95 ], [ %55, %107 ]
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit95 ], [ %108, %107 ]
  %.1 = phi i1 [ %127, %.loopexit95 ], [ false, %107 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  br label %129

129:                                              ; preds = %128, %105
  %.150 = phi ptr [ %.049, %128 ], [ %53, %105 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %128 ], [ %106, %105 ]
  %.2 = phi i1 [ %.1, %128 ], [ false, %105 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  br label %130

130:                                              ; preds = %129, %103
  %.251 = phi ptr [ %.150, %129 ], [ %51, %103 ]
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %129 ], [ %104, %103 ]
  %.3 = phi i1 [ %.2, %129 ], [ false, %103 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  br label %131

131:                                              ; preds = %130, %101
  %.352 = phi ptr [ %.251, %130 ], [ %49, %101 ]
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %130 ], [ %102, %101 ]
  %.4 = phi i1 [ %.3, %130 ], [ false, %101 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  br label %132

132:                                              ; preds = %131, %99
  %.453 = phi ptr [ %.352, %131 ], [ %47, %99 ]
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %131 ], [ %100, %99 ]
  %.5 = phi i1 [ %.4, %131 ], [ false, %99 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  br label %133

133:                                              ; preds = %132, %97
  %.554 = phi ptr [ %.453, %132 ], [ %45, %97 ]
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %132 ], [ %98, %97 ]
  %.6 = phi i1 [ %.5, %132 ], [ false, %97 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %134

134:                                              ; preds = %133, %95
  %.655 = phi ptr [ %.554, %133 ], [ %43, %95 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %133 ], [ %96, %95 ]
  %.7 = phi i1 [ %.6, %133 ], [ false, %95 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  br label %135

135:                                              ; preds = %134, %93
  %.756 = phi ptr [ %.655, %134 ], [ %41, %93 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %134 ], [ %94, %93 ]
  %.8 = phi i1 [ %.7, %134 ], [ false, %93 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %136

136:                                              ; preds = %135, %91
  %.857 = phi ptr [ %.756, %135 ], [ %39, %91 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %135 ], [ %92, %91 ]
  %.9 = phi i1 [ %.8, %135 ], [ false, %91 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  br label %137

137:                                              ; preds = %136, %89
  %.958 = phi ptr [ %.857, %136 ], [ %37, %89 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %136 ], [ %90, %89 ]
  %.10 = phi i1 [ %.9, %136 ], [ false, %89 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  br label %138

138:                                              ; preds = %137, %87
  %.1059 = phi ptr [ %.958, %137 ], [ %35, %87 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %137 ], [ %88, %87 ]
  %.11 = phi i1 [ %.10, %137 ], [ false, %87 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %139

139:                                              ; preds = %138, %85
  %.1160 = phi ptr [ %.1059, %138 ], [ %33, %85 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %138 ], [ %86, %85 ]
  %.12 = phi i1 [ %.11, %138 ], [ false, %85 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %140

140:                                              ; preds = %139, %83
  %.1261 = phi ptr [ %.1160, %139 ], [ %31, %83 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %139 ], [ %84, %83 ]
  %.13 = phi i1 [ %.12, %139 ], [ false, %83 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %141

141:                                              ; preds = %81, %140
  %.1362 = phi ptr [ %.1261, %140 ], [ %29, %81 ]
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %140 ], [ %82, %81 ]
  %.14 = phi i1 [ %.13, %140 ], [ false, %81 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  %142 = icmp eq ptr %3, %.1362
  %or.cond = select i1 %.14, i1 true, i1 %142
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %141, %.preheader
  %143 = phi ptr [ %144, %.preheader ], [ %.1362, %141 ]
  %144 = getelementptr inbounds i8, ptr %143, i64 -40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %144) #7
  %145 = icmp eq ptr %144, %3
  br i1 %145, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %141
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn94 = phi { ptr, i32 } [ %80, %.thread ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %141 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 640, ptr nonnull %3) #7
  br label %185

146:                                              ; preds = %78
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %184

148:                                              ; preds = %78, %.lr.ph99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %149 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERy(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %150 unwind label %156

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  %151 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %152 unwind label %158

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %153 unwind label %160

153:                                              ; preds = %152
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #7
  %154 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  %.not101 = icmp eq i64 %154, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %167, %153
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %176 unwind label %178

156:                                              ; preds = %148
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %183

158:                                              ; preds = %150
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %182

160:                                              ; preds = %152
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #7
  br label %181

.lr.ph:                                           ; preds = %153, %167
  %.096 = phi i64 [ %168, %167 ], [ 0, %153 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef %.096, i64 noundef 4)
          to label %162 unwind label %171

162:                                              ; preds = %.lr.ph
  %163 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %164 unwind label %173

164:                                              ; preds = %162
  %165 = load i8, ptr %163, align 1, !tbaa !5
  %166 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %24, i8 noundef signext %165)
          to label %167 unwind label %173

167:                                              ; preds = %164
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  %168 = add i64 %.096, 4
  %169 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  %170 = icmp ult i64 %168, %169
  br i1 %170, label %.lr.ph, label %._crit_edge, !llvm.loop !10

171:                                              ; preds = %.lr.ph
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %164, %162
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  br label %175

175:                                              ; preds = %173, %171
  %.pn82 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  br label %180

176:                                              ; preds = %._crit_edge
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %.pr = load i32, ptr %1, align 4, !tbaa !8
  %177 = add nsw i32 %.pr, -1
  store i32 %177, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %.pr, 0
  br i1 %.not, label %._crit_edge100, label %.lr.ph99, !llvm.loop !12

178:                                              ; preds = %._crit_edge
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %180

180:                                              ; preds = %178, %175
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %175 ], [ %179, %178 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %181

181:                                              ; preds = %180, %160
  %.pn82.pn.pn = phi { ptr, i32 } [ %.pn82.pn, %180 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #7
  br label %182

182:                                              ; preds = %181, %158
  %.pn82.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn, %181 ], [ %159, %158 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  br label %183

183:                                              ; preds = %182, %156
  %.pn82.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn.pn, %182 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %184

._crit_edge100:                                   ; preds = %176, %59
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

184:                                              ; preds = %183, %146
  %.pn82.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn.pn.pn, %183 ], [ %147, %146 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcSt4lessIS5_ESaISt4pairIKS5_cEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #7
  br label %185

185:                                              ; preds = %184, %.loopexit
  %.pn82.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn.pn.pn.pn, %184 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn94, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn82.pn.pn.pn.pn.pn.pn
}

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

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 uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEC2IRA5_KccTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISD_SE_EEEbE4typeELb1EEEOSD_OSE_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 1 dereferenceable(5), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #5 align 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 #3 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)) #6

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

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

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

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

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

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

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

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

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass