; LLVM IR from balintbalazs/B3D :: source/src/B3D_cudaCompress/profiler/profiler.ll (ZN8Profiler4stopEv)

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

%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.Profiler = type { [100 x %"struct.Profiler::sample"], %"class.std::set", i32, i32, i32, i32, i32, i64, i64, i32, i64, i64, i32, i64, i8, i64, i64, i64 }
%"struct.Profiler::sample" = type { i8, %"class.std::__cxx11::basic_string", i32, i32, i8, i64, i64, i64, i64, i64, i32, i32, i32, i32, i64 }
%"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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<IProfilerOutputHandler *, IProfilerOutputHandler *, std::_Identity<IProfilerOutputHandler *>, std::less<IProfilerOutputHandler *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<IProfilerOutputHandler *, IProfilerOutputHandler *, std::_Identity<IProfilerOutputHandler *>, std::less<IProfilerOutputHandler *>>::_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 }

@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN8Profiler4stopEv = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_17getTimeEv() #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK8Profiler14getTimestampMSEy(ptr noundef nonnull align 8 dereferenceable(12160), i64 noundef) #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Profiler4stopEv(ptr noundef nonnull align 8 dereferenceable(12160) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 14
  %13 = load i8, ptr %12, align 8, !tbaa !9, !range !23, !noundef !24
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  br label %18

16:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__._ZN8Profiler4stopEv) #5
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %19 = call noundef i64 @_ZN12_GLOBAL__N_17getTimeEv()
  store i64 %19, ptr %3, align 8, !tbaa !25
  %20 = load i64, ptr %3, align 8, !tbaa !25
  %21 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 15
  %22 = load i64, ptr %21, align 8, !tbaa !26
  %23 = sub i64 %20, %22
  %24 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 8
  %25 = load i64, ptr %24, align 8, !tbaa !27
  %26 = add i64 %25, %23
  store i64 %26, ptr %24, align 8, !tbaa !27
  %27 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 14
  store i8 0, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %28 = load i64, ptr %3, align 8, !tbaa !25
  %29 = call noundef float @_ZNK8Profiler14getTimestampMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %11, i64 noundef %28)
  store float %29, ptr %4, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %30 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 8
  %31 = load i64, ptr %30, align 8, !tbaa !27
  %32 = call noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %11, i64 noundef %31)
  store float %32, ptr %5, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %33 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 10
  %34 = load i64, ptr %33, align 8, !tbaa !30
  %35 = call noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %11, i64 noundef %34)
  store float %35, ptr %6, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZNSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %36 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 1
  %37 = call ptr @_ZNKSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #6
  %38 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %39 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 1
  %40 = call ptr @_ZNKSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %39) #6
  %41 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %9, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %42

42:                                               ; preds = %55, %18
  %43 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %43, label %44, label %58

44:                                               ; preds = %42
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = load float, ptr %4, align 4, !tbaa !28
  %48 = load float, ptr %5, align 4, !tbaa !28
  %49 = getelementptr inbounds %class.Profiler, ptr %11, i32 0, i32 9
  %50 = load i32, ptr %49, align 8, !tbaa !32
  %51 = load float, ptr %6, align 4, !tbaa !28
  %52 = load ptr, ptr %46, align 8, !tbaa !33
  %53 = getelementptr inbounds ptr, ptr %52, i64 3
  %54 = load ptr, ptr %53, align 8
  call void %54(ptr noundef nonnull align 8 dereferenceable(8) %46, float noundef %47, float noundef %48, i32 noundef %50, float noundef %51)
  br label %55

55:                                               ; preds = %44
  %56 = call ptr @_ZNSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
  %57 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %10, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %42, !llvm.loop !35

58:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160), i64 noundef) #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !22, i64 12128}
!10 = !{!"_ZTS8Profiler", !7, i64 0, !11, i64 12000, !20, i64 12048, !20, i64 12052, !20, i64 12056, !20, i64 12060, !20, i64 12064, !21, i64 12072, !21, i64 12080, !20, i64 12088, !21, i64 12096, !21, i64 12104, !20, i64 12112, !21, i64 12120, !22, i64 12128, !21, i64 12136, !21, i64 12144, !21, i64 12152}
!11 = !{!"_ZTSSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeIP22IProfilerOutputHandlerS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeIP22IProfilerOutputHandlerS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIP22IProfilerOutputHandlerEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessIP22IProfilerOutputHandlerE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"long long", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!21, !21, i64 0}
!26 = !{!10, !21, i64 12136}
!27 = !{!10, !21, i64 12080}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = !{!10, !21, i64 12096}
!31 = !{i64 0, i64 8, !5}
!32 = !{!10, !20, i64 12088}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"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"

%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN8Profiler4stopEv = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN12_GLOBAL__N_17getTimeEv() local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK8Profiler14getTimestampMSEy(ptr noundef nonnull align 8 dereferenceable(12160), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Profiler4stopEv(ptr noundef nonnull align 8 dereferenceable(12160) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 12128
  %5 = load i8, ptr %4, align 8, !tbaa !5, !range !22, !noundef !23
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %8, label %7

7:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8Profiler4stopEv) #4
  unreachable

8:                                                ; preds = %1
  %9 = tail call noundef i64 @_ZN12_GLOBAL__N_17getTimeEv()
  %10 = getelementptr inbounds i8, ptr %0, i64 12136
  %11 = load i64, ptr %10, align 8, !tbaa !24
  %12 = sub i64 %9, %11
  %13 = getelementptr inbounds i8, ptr %0, i64 12080
  %14 = load i64, ptr %13, align 8, !tbaa !25
  %15 = add i64 %12, %14
  store i64 %15, ptr %13, align 8, !tbaa !25
  store i8 0, ptr %4, align 8, !tbaa !5
  %16 = tail call noundef float @_ZNK8Profiler14getTimestampMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %0, i64 noundef %9)
  %17 = load i64, ptr %13, align 8, !tbaa !25
  %18 = tail call noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %0, i64 noundef %17)
  %19 = getelementptr inbounds i8, ptr %0, i64 12096
  %20 = load i64, ptr %19, align 8, !tbaa !26
  %21 = tail call noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160) %0, i64 noundef %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZNSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 12000
  %23 = call ptr @_ZNKSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  store ptr %23, ptr %3, align 8
  %24 = call ptr @_ZNKSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #5
  store ptr %24, ptr %2, align 8, !tbaa !27
  %25 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerES4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8
  %26 = getelementptr inbounds i8, ptr %0, i64 12088
  br label %27

27:                                               ; preds = %.lr.ph, %27
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %29 = load ptr, ptr %28, align 8, !tbaa !27
  %30 = load i32, ptr %26, align 8, !tbaa !28
  %31 = load ptr, ptr %29, align 8, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %31, i64 24
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(8) %29, float noundef %16, float noundef %18, i32 noundef %30, float noundef %21)
  %34 = call ptr @_ZNSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #5
  %35 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIP22IProfilerOutputHandlerES4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %35, label %27, label %._crit_edge, !llvm.loop !31

._crit_edge:                                      ; preds = %27, %8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK8Profiler9getTimeMSEy(ptr noundef nonnull align 8 dereferenceable(12160), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
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, !21, i64 12128}
!6 = !{!"_ZTS8Profiler", !7, i64 0, !9, i64 12000, !19, i64 12048, !19, i64 12052, !19, i64 12056, !19, i64 12060, !19, i64 12064, !20, i64 12072, !20, i64 12080, !19, i64 12088, !20, i64 12096, !20, i64 12104, !19, i64 12112, !20, i64 12120, !21, i64 12128, !20, i64 12136, !20, i64 12144, !20, i64 12152}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTSSt3setIP22IProfilerOutputHandlerSt4lessIS1_ESaIS1_EE", !10, i64 0}
!10 = !{!"_ZTSSt8_Rb_treeIP22IProfilerOutputHandlerS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSNSt8_Rb_treeIP22IProfilerOutputHandlerS1_St9_IdentityIS1_ESt4lessIS1_ESaIS1_EE13_Rb_tree_implIS5_Lb1EEE", !12, i64 0, !14, i64 8}
!12 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIP22IProfilerOutputHandlerEE", !13, i64 0}
!13 = !{!"_ZTSSt4lessIP22IProfilerOutputHandlerE"}
!14 = !{!"_ZTSSt15_Rb_tree_header", !15, i64 0, !18, i64 32}
!15 = !{!"_ZTSSt18_Rb_tree_node_base", !16, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!16 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !20, i64 12136}
!25 = !{!6, !20, i64 12080}
!26 = !{!6, !20, i64 12096}
!27 = !{!17, !17, i64 0}
!28 = !{!6, !19, i64 12088}
!29 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !8, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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