; LLVM IR from openxla/xla :: xla/tsl/util (stats_calculator)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }
%"struct.std::_Setw" = type { i32 }
%"struct.std::_Setprecision" = type { i32 }
%"struct.std::pair.6" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.tsl::StatsCalculator" = type <{ %"class.tsl::Stat", %"class.tsl::Stat", %"class.std::map", %"struct.tsl::StatSummarizerOptions", [4 x i8] }>
%"class.tsl::Stat" = type { i64, i64, i64, i64, i64, i64, double }
%"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>, tsl::StatsCalculator::Detail>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, tsl::StatsCalculator::Detail>>, 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>, tsl::StatsCalculator::Detail>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, tsl::StatsCalculator::Detail>>, 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.tsl::StatSummarizerOptions" = type <{ i8, [3 x i8], i32, i8, [3 x i8], i32, i8, [3 x i8], i32, i8, i8, i8, i8 }>
%"struct.tsl::StatsCalculator::Detail" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, %"class.tsl::Stat", %"class.tsl::Stat", i64 }

@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8), i32) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5rightRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tsl15StatsCalculator18OrderNodesByMetricENS0_13SortingMetricEPSt6vectorIPKNS0_6DetailESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(188) %0, i32 noundef %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::priority_queue", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %26 = alloca %"struct.std::_Setw", align 4
  %27 = alloca %"struct.std::_Setprecision", align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"struct.std::pair.6", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EEC2ISF_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %32 = getelementptr inbounds %"class.tsl::StatsCalculator", ptr %31, i32 0, i32 2
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #5
  %35 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %10, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #5
  %38 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %11, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  br label %39

39:                                               ; preds = %55, %3
  %40 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %40, label %42, label %41

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %61

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %43 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %43, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %44) #5
  store ptr %45, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %46) #5
  store ptr %47, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %48, i32 0, i32 2
  %50 = load i64, ptr %49, align 8, !tbaa !13
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr %15, align 4, !tbaa !11
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %53 unwind label %57

53:                                               ; preds = %42
  %54 = load i32, ptr %52, align 4, !tbaa !11
  store i32 %54, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %55

55:                                               ; preds = %53
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %39

57:                                               ; preds = %42
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %16, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %195

61:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %62 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %62, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %63 = getelementptr inbounds %"class.tsl::StatsCalculator", ptr %31, i32 0, i32 2
  store ptr %63, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %64) #5
  %66 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %67) #5
  %69 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %21, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  br label %70

70:                                               ; preds = %154, %61
  %71 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br i1 %71, label %73, label %72

72:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %167

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %74 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  store ptr %74, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %75 = load ptr, ptr %22, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %75) #5
  store ptr %76, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %77 = load ptr, ptr %22, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %77) #5
  store ptr %78, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 392, ptr %25) #5
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %25)
          to label %79 unwind label %100

79:                                               ; preds = %73
  %80 = getelementptr inbounds i8, ptr %25, i64 16
  %81 = invoke i32 @_ZSt4setwi(i32 noundef 20)
          to label %82 unwind label %104

82:                                               ; preds = %79
  %83 = getelementptr inbounds %"struct.std::_Setw", ptr %26, i32 0, i32 0
  store i32 %81, ptr %83, align 4
  %84 = getelementptr inbounds %"struct.std::_Setw", ptr %26, i32 0, i32 0
  %85 = load i32, ptr %84, align 4
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 %85)
          to label %87 unwind label %104

87:                                               ; preds = %82
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef @_ZSt5rightRSt8ios_base)
          to label %89 unwind label %104

89:                                               ; preds = %87
  %90 = invoke i32 @_ZSt12setprecisioni(i32 noundef 10)
          to label %91 unwind label %104

91:                                               ; preds = %89
  %92 = getelementptr inbounds %"struct.std::_Setprecision", ptr %27, i32 0, i32 0
  store i32 %90, ptr %92, align 4
  %93 = getelementptr inbounds %"struct.std::_Setprecision", ptr %27, i32 0, i32 0
  %94 = load i32, ptr %93, align 4
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 %94)
          to label %96 unwind label %104

96:                                               ; preds = %91
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @_ZSt5fixedRSt8ios_base)
          to label %98 unwind label %104

98:                                               ; preds = %96
  %99 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %99, label %146 [
    i32 0, label %108
    i32 1, label %114
    i32 2, label %124
    i32 3, label %132
    i32 4, label %140
  ]

100:                                              ; preds = %73
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %16, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %17, align 4
  br label %166

104:                                              ; preds = %146, %140, %137, %132, %129, %124, %114, %108, %96, %91, %89, %87, %82, %79
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %16, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %17, align 4
  br label %165

108:                                              ; preds = %98
  %109 = getelementptr inbounds i8, ptr %25, i64 16
  %110 = load ptr, ptr %24, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %110, i32 0, i32 0
  %112 = 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) %109, ptr noundef nonnull align 8 dereferenceable(32) %111)
          to label %113 unwind label %104

113:                                              ; preds = %108
  br label %150

114:                                              ; preds = %98
  %115 = getelementptr inbounds i8, ptr %25, i64 16
  %116 = load i32, ptr %18, align 4, !tbaa !11
  %117 = sext i32 %116 to i64
  %118 = load ptr, ptr %24, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %118, i32 0, i32 2
  %120 = load i64, ptr %119, align 8, !tbaa !13
  %121 = sub nsw i64 %117, %120
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %115, i64 noundef %121)
          to label %123 unwind label %104

123:                                              ; preds = %114
  br label %150

124:                                              ; preds = %98
  %125 = getelementptr inbounds i8, ptr %25, i64 16
  %126 = load ptr, ptr %24, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %126, i32 0, i32 3
  %128 = invoke noundef double @_ZNK3tsl4StatIldE3avgEv(ptr noundef nonnull align 8 dereferenceable(56) %127)
          to label %129 unwind label %104

129:                                              ; preds = %124
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %125, double noundef %128)
          to label %131 unwind label %104

131:                                              ; preds = %129
  br label %150

132:                                              ; preds = %98
  %133 = getelementptr inbounds i8, ptr %25, i64 16
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %134, i32 0, i32 4
  %136 = invoke noundef double @_ZNK3tsl4StatIldE3avgEv(ptr noundef nonnull align 8 dereferenceable(56) %135)
          to label %137 unwind label %104

137:                                              ; preds = %132
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %133, double noundef %136)
          to label %139 unwind label %104

139:                                              ; preds = %137
  br label %150

140:                                              ; preds = %98
  %141 = getelementptr inbounds i8, ptr %25, i64 16
  %142 = load ptr, ptr %24, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.tsl::StatsCalculator::Detail", ptr %142, i32 0, i32 1
  %144 = 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) %141, ptr noundef nonnull align 8 dereferenceable(32) %143)
          to label %145 unwind label %104

145:                                              ; preds = %140
  br label %150

146:                                              ; preds = %98
  %147 = getelementptr inbounds i8, ptr %25, i64 16
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.18)
          to label %149 unwind label %104

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149, %145, %139, %131, %123, %113
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(128) %25)
          to label %151 unwind label %156

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %152 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %152, ptr %29, align 8, !tbaa !5
  invoke void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE7emplaceIJS6_SB_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %153 unwind label %160

153:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %25) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %154

154:                                              ; preds = %153
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br label %70

156:                                              ; preds = %150
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %16, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %17, align 4
  br label %164

160:                                              ; preds = %151
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %16, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %164

164:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %165

165:                                              ; preds = %164, %104
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %25) #5
  br label %166

166:                                              ; preds = %165, %100
  call void @llvm.lifetime.end.p0(i64 392, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %194

167:                                              ; preds = %72
  br label %168

168:                                              ; preds = %179, %167
  %169 = invoke noundef zeroext i1 @_ZNKSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %170 unwind label %180

170:                                              ; preds = %168
  %171 = xor i1 %169, true
  br i1 %171, label %172, label %193

172:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #5
  %173 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %174 unwind label %184

174:                                              ; preds = %172
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(40) %173)
          to label %175 unwind label %184

175:                                              ; preds = %174
  invoke void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %176 unwind label %188

176:                                              ; preds = %175
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.std::pair.6", ptr %30, i32 0, i32 1
  invoke void @_ZNSt6vectorIPKN3tsl15StatsCalculator6DetailESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %177, ptr noundef nonnull align 8 dereferenceable(8) %178)
          to label %179 unwind label %188

179:                                              ; preds = %176
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #5
  br label %168, !llvm.loop !20

180:                                              ; preds = %168
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %16, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %17, align 4
  br label %194

184:                                              ; preds = %174, %172
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %16, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %17, align 4
  br label %192

188:                                              ; preds = %176, %175
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %16, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %17, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #5
  br label %192

192:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #5
  br label %194

193:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret void

194:                                              ; preds = %192, %180, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %195

195:                                              ; preds = %194, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %16, align 8
  %198 = load i32, ptr %17, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224)) #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 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 = { 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 #3 = { 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 = { 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 #5 = { 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 = !{!"_ZTSN3tsl15StatsCalculator13SortingMetricE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !17, i64 64}
!14 = !{!"_ZTSN3tsl15StatsCalculator6DetailE", !15, i64 0, !15, i64 32, !17, i64 64, !18, i64 72, !18, i64 128, !17, i64 184}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3tsl4StatIldEE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !19, i64 48}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>, std::allocator<std::pair<std::__cxx11::basic_string<char>, const tsl::StatsCalculator::Detail *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }
%"struct.std::pair.6" = type { %"class.std::__cxx11::basic_string", ptr }

@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1

; 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 uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5rightRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3tsl15StatsCalculator18OrderNodesByMetricENS0_13SortingMetricEPSt6vectorIPKNS0_6DetailESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(188) %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::priority_queue", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::pair.6", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EEC2ISF_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %16 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  store ptr %16, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %17 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  store ptr %17, ptr %7, align 8
  %18 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %18, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  %19 = sext i32 %.pre to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %20 = phi i64 [ %19, %._crit_edge.loopexit ], [ 0, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %21 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  store ptr %21, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %22 = call ptr @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #5
  store ptr %22, ptr %10, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %23, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %11, i64 16
  br label %37

.lr.ph:                                           ; preds = %3, %.lr.ph
  %25 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %25) #5
  %27 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %28 = getelementptr inbounds i8, ptr %27, i64 64
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %8, align 4, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %32 = load i32, ptr %31, align 4, !tbaa !5
  store i32 %32, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %34 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %34, label %.lr.ph, label %._crit_edge.loopexit

._crit_edge34:                                    ; preds = %73, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %35 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  br i1 %35, label %._crit_edge37, label %.lr.ph36

.lr.ph36:                                         ; preds = %._crit_edge34
  %36 = getelementptr inbounds i8, ptr %14, i64 32
  br label %83

37:                                               ; preds = %.lr.ph33, %73
  %38 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %38) #5
  %40 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224) %38) #5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %11) #5
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %41 unwind label %52

41:                                               ; preds = %37
  %42 = call i32 @_ZSt4setwi(i32 noundef 20)
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 %42)
          to label %44 unwind label %54

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt5rightRSt8ios_base)
          to label %46 unwind label %54

46:                                               ; preds = %44
  %47 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 %47)
          to label %49 unwind label %54

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %51 unwind label %54

51:                                               ; preds = %49
  switch i32 %1, label %69 [
    i32 0, label %.invoke
    i32 1, label %56
    i32 2, label %.invoke38
    i32 3, label %61
    i32 4, label %65
  ]

52:                                               ; preds = %37
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %82

54:                                               ; preds = %.invoke38, %.invoke, %69, %56, %49, %46, %44, %41
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %81

56:                                               ; preds = %51
  %57 = getelementptr inbounds i8, ptr %40, i64 64
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = sub nsw i64 %20, %58
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %59)
          to label %71 unwind label %54

61:                                               ; preds = %51
  br label %.invoke38

.invoke38:                                        ; preds = %51, %61
  %.sink39 = phi i64 [ 128, %61 ], [ 72, %51 ]
  %62 = getelementptr inbounds i8, ptr %40, i64 %.sink39
  %63 = call noundef double @_ZNK3tsl4StatIldE3avgEv(ptr noundef nonnull align 8 dereferenceable(56) %62)
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %24, double noundef %63)
          to label %71 unwind label %54

65:                                               ; preds = %51
  %66 = getelementptr inbounds i8, ptr %40, i64 32
  br label %.invoke

.invoke:                                          ; preds = %51, %65
  %67 = phi ptr [ %66, %65 ], [ %40, %51 ]
  %68 = 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) %24, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %71 unwind label %54

69:                                               ; preds = %51
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.18)
          to label %71 unwind label %54

71:                                               ; preds = %.invoke38, %.invoke, %69, %56
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %72 unwind label %76

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  store ptr %40, ptr %13, align 8, !tbaa !17
  invoke void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE7emplaceIJS6_SB_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %73 unwind label %78

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %11) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %11) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %75 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %75, label %37, label %._crit_edge34

76:                                               ; preds = %71
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %80

78:                                               ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %80

80:                                               ; preds = %78, %76
  %.pn27 = phi { ptr, i32 } [ %79, %78 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  br label %81

81:                                               ; preds = %80, %54
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %80 ], [ %55, %54 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %11) #5
  br label %82

82:                                               ; preds = %81, %52
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %81 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %94

83:                                               ; preds = %.lr.ph36, %87
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 8 dereferenceable(40) %84)
          to label %85 unwind label %89

85:                                               ; preds = %83
  invoke void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %86 unwind label %91

86:                                               ; preds = %85
  invoke void @_ZNSt6vectorIPKN3tsl15StatsCalculator6DetailESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %87 unwind label %91

87:                                               ; preds = %86
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  %88 = call noundef zeroext i1 @_ZNKSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  br i1 %88, label %._crit_edge37, label %83, !llvm.loop !18

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

91:                                               ; preds = %86, %85
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  br label %93

93:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  br label %94

._crit_edge37:                                    ; preds = %87, %._crit_edge34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret void

94:                                               ; preds = %93, %82
  %.pn27.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn, %82 ], [ %.pn, %93 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn27.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getILm0EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(192) ptr @_ZSt3getILm1EKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3tsl15StatsCalculator6DetailEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKSE_(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN3tsl15StatsCalculator6DetailEESt6vectorISC_SaISC_EESt4lessISC_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #4 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 = { 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 #3 = { 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 = { 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 #5 = { 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, !14, i64 64}
!10 = !{!"_ZTSN3tsl15StatsCalculator6DetailE", !11, i64 0, !11, i64 32, !14, i64 64, !15, i64 72, !15, i64 128, !14, i64 184}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN3tsl4StatIldEE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !16, i64 48}
!16 = !{!"double", !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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