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

; 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.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.10 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 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 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) #2

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

10:                                               ; preds = %1
  br label %64

11:                                               ; preds = %1
  %12 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 3
  %13 = load i32, ptr %12, align 4, !tbaa !25
  %14 = icmp eq i32 %13, -1
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  br label %18

16:                                               ; preds = %11
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 256, ptr noundef @__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv) #5
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  %19 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 5
  %20 = load i32, ptr %19, align 4, !tbaa !26
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  br label %25

23:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 257, ptr noundef @__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv) #5
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 9
  %27 = load i32, ptr %26, align 8, !tbaa !27
  %28 = add i32 %27, 1
  store i32 %28, ptr %26, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %29 = call noundef i64 @_ZN12_GLOBAL__N_17getTimeEv()
  store i64 %29, ptr %3, align 8, !tbaa !28
  %30 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 13
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %31 = load i64, ptr %3, align 8, !tbaa !28
  %32 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 16
  %33 = load i64, ptr %32, align 8, !tbaa !29
  %34 = sub i64 %31, %33
  store i64 %34, ptr %4, align 8, !tbaa !28
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %36 = load i64, ptr %35, align 8, !tbaa !28
  %37 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 13
  store i64 %36, ptr %37, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %38 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 10
  %39 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 13
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39)
  %41 = load i64, ptr %40, align 8, !tbaa !28
  %42 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 10
  store i64 %41, ptr %42, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !32
  br label %43

43:                                               ; preds = %58, %25
  %44 = load i32, ptr %5, align 4, !tbaa !32
  %45 = icmp ult i32 %44, 100
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %61

47:                                               ; preds = %43
  %48 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 0
  %49 = load i32, ptr %5, align 4, !tbaa !32
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %48, i64 0, i64 %50
  %52 = getelementptr inbounds %"struct.Profiler::sample", ptr %51, i32 0, i32 8
  store i64 0, ptr %52, align 8, !tbaa !33
  %53 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 0
  %54 = load i32, ptr %5, align 4, !tbaa !32
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %53, i64 0, i64 %55
  %57 = getelementptr inbounds %"struct.Profiler::sample", ptr %56, i32 0, i32 11
  store i32 0, ptr %57, align 4, !tbaa !37
  br label %58

58:                                               ; preds = %47
  %59 = load i32, ptr %5, align 4, !tbaa !32
  %60 = add i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !32
  br label %43, !llvm.loop !38

61:                                               ; preds = %46
  %62 = load i64, ptr %3, align 8, !tbaa !28
  %63 = getelementptr inbounds %class.Profiler, ptr %6, i32 0, i32 16
  store i64 %62, ptr %63, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %64

64:                                               ; preds = %61, %10
  ret void
}

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

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 = { 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 = { 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 = { 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 = !{!10, !20, i64 12052}
!26 = !{!10, !20, i64 12060}
!27 = !{!10, !20, i64 12088}
!28 = !{!21, !21, i64 0}
!29 = !{!10, !21, i64 12144}
!30 = !{!10, !21, i64 12120}
!31 = !{!10, !21, i64 12096}
!32 = !{!20, !20, i64 0}
!33 = !{!34, !21, i64 80}
!34 = !{!"_ZTSN8Profiler6sampleE", !22, i64 0, !35, i64 8, !20, i64 40, !20, i64 44, !22, i64 48, !21, i64 56, !21, i64 64, !21, i64 72, !21, i64 80, !21, i64 88, !20, i64 96, !20, i64 100, !20, i64 104, !20, i64 108, !21, i64 112}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !36, i64 0, !19, i64 8, !7, i64 16}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!37 = !{!34, !20, i64 100}
!38 = distinct !{!38, !39}
!39 = !{!"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.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] }

@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 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
define dso_local void @_ZN8Profiler8endFrameEv(ptr noundef nonnull align 8 dereferenceable(12160) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca i64, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 12128
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !22, !noundef !23
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %6, label %47

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 12052
  %8 = load i32, ptr %7, align 4, !tbaa !24
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %11, label %10

10:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 256, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv) #4
  unreachable

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 12060
  %13 = load i32, ptr %12, align 4, !tbaa !25
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 257, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8Profiler8endFrameEv) #4
  unreachable

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 12088
  %18 = load i32, ptr %17, align 8, !tbaa !26
  %19 = add i32 %18, 1
  store i32 %19, ptr %17, align 8, !tbaa !26
  %20 = tail call noundef i64 @_ZN12_GLOBAL__N_17getTimeEv()
  %21 = getelementptr inbounds i8, ptr %0, i64 12120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 12144
  %23 = load i64, ptr %22, align 8, !tbaa !27
  %24 = sub i64 %20, %23
  store i64 %24, ptr %2, align 8, !tbaa !28
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %26 = load i64, ptr %25, align 8, !tbaa !28
  store i64 %26, ptr %21, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %27 = getelementptr inbounds i8, ptr %0, i64 12096
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIyERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %29 = load i64, ptr %28, align 8, !tbaa !28
  store i64 %29, ptr %27, align 8, !tbaa !30
  br label %31

30:                                               ; preds = %31
  store i64 %20, ptr %22, align 8, !tbaa !27
  br label %47

31:                                               ; preds = %31, %16
  %indvars.iv = phi i64 [ 0, %16 ], [ %indvars.iv.next.4, %31 ]
  %32 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %0, i64 0, i64 %indvars.iv
  %33 = getelementptr inbounds i8, ptr %32, i64 80
  store i64 0, ptr %33, align 8, !tbaa !31
  %34 = getelementptr inbounds i8, ptr %32, i64 100
  store i32 0, ptr %34, align 4, !tbaa !35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %0, i64 0, i64 %indvars.iv.next
  %36 = getelementptr inbounds i8, ptr %35, i64 80
  store i64 0, ptr %36, align 8, !tbaa !31
  %37 = getelementptr inbounds i8, ptr %35, i64 100
  store i32 0, ptr %37, align 4, !tbaa !35
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %38 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %0, i64 0, i64 %indvars.iv.next.1
  %39 = getelementptr inbounds i8, ptr %38, i64 80
  store i64 0, ptr %39, align 8, !tbaa !31
  %40 = getelementptr inbounds i8, ptr %38, i64 100
  store i32 0, ptr %40, align 4, !tbaa !35
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %41 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %0, i64 0, i64 %indvars.iv.next.2
  %42 = getelementptr inbounds i8, ptr %41, i64 80
  store i64 0, ptr %42, align 8, !tbaa !31
  %43 = getelementptr inbounds i8, ptr %41, i64 100
  store i32 0, ptr %43, align 4, !tbaa !35
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %44 = getelementptr inbounds [100 x %"struct.Profiler::sample"], ptr %0, i64 0, i64 %indvars.iv.next.3
  %45 = getelementptr inbounds i8, ptr %44, i64 80
  store i64 0, ptr %45, align 8, !tbaa !31
  %46 = getelementptr inbounds i8, ptr %44, i64 100
  store i32 0, ptr %46, align 4, !tbaa !35
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv, 5
  %exitcond.not.4 = icmp eq i64 %indvars.iv.next.4, 100
  br i1 %exitcond.not.4, label %30, label %31, !llvm.loop !36

47:                                               ; preds = %1, %30
  ret void
}

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !19, i64 12052}
!25 = !{!6, !19, i64 12060}
!26 = !{!6, !19, i64 12088}
!27 = !{!6, !20, i64 12144}
!28 = !{!20, !20, i64 0}
!29 = !{!6, !20, i64 12120}
!30 = !{!6, !20, i64 12096}
!31 = !{!32, !20, i64 80}
!32 = !{!"_ZTSN8Profiler6sampleE", !21, i64 0, !33, i64 8, !19, i64 40, !19, i64 44, !21, i64 48, !20, i64 56, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88, !19, i64 96, !19, i64 100, !19, i64 104, !19, i64 108, !20, i64 112}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !18, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!35 = !{!32, !19, i64 100}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass