; LLVM IR from fabiocannizzo/FastBinarySearch :: source/paper (charts)

; 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::map.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<BinSearch::Algos, std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>, std::_Select1st<std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>>, SeriesCmp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<BinSearch::Algos, std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>, std::_Select1st<std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>>, SeriesCmp>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.30" = type { i64, double }
%"class.std::allocator.27" = type { i8 }
%"struct.std::_Rb_tree_const_iterator.42" = type { ptr }
%"struct.std::_Rb_tree_iterator.45" = type { ptr }
%"struct.std::pair.48" = type { i32, %"class.std::vector" }
%"struct.std::pair.46" = type <{ %"struct.std::_Rb_tree_iterator.45", i8, [7 x i8] }>
%"struct.std::pair.43" = type { i32, %"class.std::vector" }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i1 noundef zeroext) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15makechartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_N9BinSearch8InstrSetE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::map.36", align 8
  %8 = alloca %"class.std::map.36", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"struct.std::pair.30", align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %"class.std::allocator.27", align 1
  %16 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %20 = alloca %"struct.std::pair.48", align 8
  %21 = alloca %"struct.std::pair.46", align 8
  %22 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %26 = alloca %"struct.std::pair.48", align 8
  %27 = alloca %"struct.std::pair.46", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32) %28, i32 noundef %29, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %30 unwind label %43

30:                                               ; preds = %3
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32) %31, i32 noundef %32, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %33 unwind label %43

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double 1.000000e-01, ptr %14, align 8, !tbaa !13
  invoke void @_ZNSt4pairImdEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %34 unwind label %47

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @_ZNSaISt4pairImdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  invoke void @_ZNSt6vectorISt4pairImdESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %35 unwind label %51

35:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorISt4pairImdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %36 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  %37 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.45", ptr %17, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %38

38:                                               ; preds = %66, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %39 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  %40 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.45", ptr %19, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  %41 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br i1 %41, label %56, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %77

43:                                               ; preds = %30, %3
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %9, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %10, align 4
  br label %119

47:                                               ; preds = %33
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  br label %55

51:                                               ; preds = %34
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %9, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt4pairImdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %55

55:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  br label %118

56:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  %57 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  %58 = getelementptr inbounds %"struct.std::pair.43", ptr %57, i32 0, i32 0
  invoke void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind writable sret(%"struct.std::pair.48") align 8 %20, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %59 unwind label %68

59:                                               ; preds = %56
  %60 = invoke { ptr, i8 } @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE6insertIS3_IS1_S6_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES3_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %61 unwind label %72

61:                                               ; preds = %59
  %62 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %63 = extractvalue { ptr, i8 } %60, 0
  store ptr %63, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %65 = extractvalue { ptr, i8 } %60, 1
  store i8 %65, ptr %64, align 8
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %66

66:                                               ; preds = %61
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  br label %38, !llvm.loop !15

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

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

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %117

77:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %78 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  %79 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.45", ptr %23, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %80

80:                                               ; preds = %95, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %81 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  %82 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.45", ptr %25, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #4
  %83 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %106

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #4
  %86 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  %87 = getelementptr inbounds %"struct.std::pair.43", ptr %86, i32 0, i32 0
  invoke void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind writable sret(%"struct.std::pair.48") align 8 %26, ptr noundef nonnull align 4 dereferenceable(4) %87, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %88 unwind label %97

88:                                               ; preds = %85
  %89 = invoke { ptr, i8 } @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE6insertIS3_IS1_S6_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES3_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %90 unwind label %101

90:                                               ; preds = %88
  %91 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %92 = extractvalue { ptr, i8 } %89, 0
  store ptr %92, ptr %91, align 8
  %93 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %94 = extractvalue { ptr, i8 } %89, 1
  store i8 %94, ptr %93, align 8
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #4
  br label %95

95:                                               ; preds = %90
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  br label %80, !llvm.loop !17

97:                                               ; preds = %85
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %105

101:                                              ; preds = %88
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #4
  br label %105

105:                                              ; preds = %101, %97
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %117

106:                                              ; preds = %84
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef nonnull align 8 dereferenceable(48) %7, i32 noundef %108, i32 noundef 0, i1 noundef zeroext false)
          to label %109 unwind label %113

109:                                              ; preds = %106
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32) %110, ptr noundef nonnull align 8 dereferenceable(48) %8, i32 noundef %111, i32 noundef 1, i1 noundef zeroext true)
          to label %112 unwind label %113

112:                                              ; preds = %109
  call void @_ZNSt6vectorISt4pairImdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  ret void

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

117:                                              ; preds = %113, %105, %76
  call void @_ZNSt6vectorISt4pairImdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %118

118:                                              ; preds = %117, %55
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  br label %119

119:                                              ; preds = %118, %43
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #4
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %9, align 8
  %122 = load i32, ptr %10, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE6insertIS3_IS1_S6_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES3_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.48") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

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


; 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::map.36" = type { %"class.std::_Rb_tree.37" }
%"class.std::_Rb_tree.37" = type { %"struct.std::_Rb_tree<BinSearch::Algos, std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>, std::_Select1st<std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>>, SeriesCmp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<BinSearch::Algos, std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>, std::_Select1st<std::pair<const BinSearch::Algos, std::vector<std::pair<unsigned long, double>>>>, SeriesCmp>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned long, double>, std::allocator<std::pair<unsigned long, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.30" = type { i64, double }
%"class.std::allocator.27" = type { i8 }
%"struct.std::_Rb_tree_const_iterator.42" = type { ptr }
%"struct.std::_Rb_tree_iterator.45" = type { ptr }
%"struct.std::pair.48" = type { i32, %"class.std::vector" }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15makechartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_N9BinSearch8InstrSetE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map.36", align 8
  %5 = alloca %"class.std::map.36", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"struct.std::pair.30", align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca %"class.std::allocator.27", align 1
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %15 = alloca %"struct.std::pair.48", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator.42", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator.45", align 8
  %20 = alloca %"struct.std::pair.48", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  invoke void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %2, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %21 unwind label %30

21:                                               ; preds = %3
  invoke void @_Z14getchartseriesRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN9BinSearch8InstrSetE9PrecisionRSt3mapINS7_5AlgosESt6vectorISt4pairImdESaISE_EE9SeriesCmpSaISD_IKSB_SG_EEE(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %2, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %22 unwind label %30

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store double 1.000000e-01, ptr %9, align 8, !tbaa !9
  call void @_ZNSt4pairImdEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaISt4pairImdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt6vectorISt4pairImdESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %23 unwind label %32

23:                                               ; preds = %22
  call void @_ZNSt15__new_allocatorISt4pairImdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %24 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %24, ptr %12, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %25 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %25, ptr %14, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %26 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %27 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %27, ptr %17, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %28 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %28, ptr %19, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  %29 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br i1 %29, label %.lr.ph23, label %._crit_edge24

30:                                               ; preds = %21, %3
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %64

32:                                               ; preds = %22
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairImdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %63

.lr.ph:                                           ; preds = %23, %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #4
  %34 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  invoke void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.48") align 8 %15, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %35 unwind label %41

35:                                               ; preds = %.lr.ph
  %36 = invoke { ptr, i8 } @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE6insertIS3_IS1_S6_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES3_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %37 unwind label %43

37:                                               ; preds = %35
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #4
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %39 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  store ptr %39, ptr %14, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %40 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !11

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  br label %45

45:                                               ; preds = %43, %41
  %.pn17 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %62

._crit_edge24:                                    ; preds = %49, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  invoke void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(48) %4, i32 noundef %2, i32 noundef 0, i1 noundef zeroext false)
          to label %58 unwind label %60

.lr.ph23:                                         ; preds = %._crit_edge, %49
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #4
  %46 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  invoke void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.48") align 8 %20, ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %47 unwind label %53

47:                                               ; preds = %.lr.ph23
  %48 = invoke { ptr, i8 } @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE6insertIS3_IS1_S6_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES3_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %49 unwind label %55

49:                                               ; preds = %47
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #4
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %51 = call ptr @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  store ptr %51, ptr %19, align 8
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEEC2ERKSt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  %52 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKN9BinSearch5AlgosESt6vectorIS0_ImdESaIS5_EEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br i1 %52, label %.lr.ph23, label %._crit_edge24, !llvm.loop !13

53:                                               ; preds = %.lr.ph23
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %47
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIN9BinSearch5AlgosESt6vectorIS_ImdESaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %62

58:                                               ; preds = %._crit_edge24
  invoke void @_Z17chartseries2latexRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaISC_EE9SeriesCmpSaISB_IKS9_SE_EEENS8_8InstrSetE9Precisionb(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(48) %5, i32 noundef %2, i32 noundef 1, i1 noundef zeroext true)
          to label %59 unwind label %60

59:                                               ; preds = %58
  call void @_ZNSt6vectorISt4pairImdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  ret void

60:                                               ; preds = %58, %._crit_edge24
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %60, %57, %45
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %45 ], [ %.pn, %57 ], [ %61, %60 ]
  call void @_ZNSt6vectorISt4pairImdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %63

63:                                               ; preds = %62, %32
  %.pn17.pn.pn = phi { ptr, i32 } [ %.pn17.pn, %62 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %64

64:                                               ; preds = %63, %30
  %.pn17.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn, %63 ], [ %31, %30 ]
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @_ZNSt3mapIN9BinSearch5AlgosESt6vectorISt4pairImdESaIS4_EE9SeriesCmpSaIS3_IKS1_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn17.pn.pn.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRKN9BinSearch5AlgosERSt6vectorISt4pairImdESaIS6_EEES5_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENSA_INSB_IT0_E4typeEE6__typeEEOSC_OSH_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.48") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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