; LLVM IR from xtaci/algorithms :: src (interval_tree_demo)

; 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.alg::IntervalTree" = type { %"class.alg::RBTreeAbstract" }
%"class.alg::RBTreeAbstract" = type { ptr, ptr }
%"struct.alg::IntervalTree::ivltree_node_t" = type <{ %"struct.alg::RBTreeAbstract::rbtree_node_t", i32, i32, i32, [4 x i8] }>
%"struct.alg::RBTreeAbstract::rbtree_node_t" = type { ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.alg::IntervalTree", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @_ZN3alg12IntervalTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %12 unwind label %36

12:                                               ; preds = %0
  %13 = call i64 @time(ptr noundef null) #6
  %14 = trunc i64 %13 to i32
  call void @srand(i32 noundef %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 50, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %33, %12
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %44

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %20 = call i32 @rand() #6
  %21 = srem i32 %20, 100
  store i32 %21, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = call i32 @rand() #6
  %24 = srem i32 %23, 100
  %25 = add nsw i32 %22, %24
  store i32 %25, ptr %8, align 4, !tbaa !5
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26, i32 noundef %27)
          to label %29 unwind label %40

29:                                               ; preds = %19
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = load i32, ptr %8, align 4, !tbaa !5
  invoke void @_ZN3alg12IntervalTree6insertEii(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %30, i32 noundef %31)
          to label %32 unwind label %40

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !9

36:                                               ; preds = %0
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %4, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %5, align 4
  br label %91

40:                                               ; preds = %29, %19
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %4, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %90

44:                                               ; preds = %15
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %45 unwind label %70

45:                                               ; preds = %44
  %46 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 5, i32 noundef 10)
          to label %47 unwind label %70

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 5, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 10, ptr %10, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %79, %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %82

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = invoke noundef ptr @_ZN3alg12IntervalTree6lookupEii(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %53, i32 noundef %54)
          to label %56 unwind label %74

56:                                               ; preds = %52
  store ptr %55, ptr %11, align 8, !tbaa !11
  %57 = load ptr, ptr %11, align 8, !tbaa !11
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %78

59:                                               ; preds = %56
  %60 = load ptr, ptr %11, align 8, !tbaa !11
  %61 = getelementptr inbounds %"struct.alg::IntervalTree::ivltree_node_t", ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !13
  %63 = load ptr, ptr %11, align 8, !tbaa !11
  %64 = getelementptr inbounds %"struct.alg::IntervalTree::ivltree_node_t", ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !17
  %66 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %62, i32 noundef %65)
          to label %67 unwind label %74

67:                                               ; preds = %59
  %68 = load ptr, ptr %11, align 8, !tbaa !11
  invoke void @_ZN3alg12IntervalTree10delete_keyEPNS0_14ivltree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %68)
          to label %69 unwind label %74

69:                                               ; preds = %67
  br label %78

70:                                               ; preds = %45, %44
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %90

74:                                               ; preds = %67, %59, %52
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %4, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %89

78:                                               ; preds = %69, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %48, !llvm.loop !18

82:                                               ; preds = %48
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %83 unwind label %85

83:                                               ; preds = %82
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @_ZN3alg12IntervalTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %84 = load i32, ptr %1, align 4
  ret i32 %84

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %4, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %5, align 4
  br label %89

89:                                               ; preds = %85, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %90

90:                                               ; preds = %89, %70, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %91

91:                                               ; preds = %90, %36
  call void @_ZN3alg12IntervalTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %4, align 8
  %94 = load i32, ptr %5, align 4
  %95 = insertvalue { ptr, i32 } poison, ptr %93, 0
  %96 = insertvalue { ptr, i32 } %95, i32 %94, 1
  resume { ptr, i32 } %96
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg12IntervalTree6insertEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #2 align 2

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTSN3alg12IntervalTree14ivltree_node_tE", !15, i64 0, !6, i64 32, !6, i64 36, !6, i64 40}
!15 = !{!"_ZTSN3alg14RBTreeAbstract13rbtree_node_tE", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24}
!16 = !{!"_ZTSN3alg14RBTreeAbstract17rbtree_node_colorE", !7, i64 0}
!17 = !{!14, !6, i64 36}
!18 = distinct !{!18, !10}


; 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.alg::IntervalTree" = type { %"class.alg::RBTreeAbstract" }
%"class.alg::RBTreeAbstract" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.alg::IntervalTree", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZN3alg12IntervalTreeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %2 unwind label %14

2:                                                ; preds = %0
  %3 = call i64 @time(ptr noundef null) #6
  %4 = trunc i64 %3 to i32
  call void @srand(i32 noundef %4) #6
  br label %5

5:                                                ; preds = %2, %12
  %.029 = phi i32 [ 0, %2 ], [ %13, %12 ]
  %6 = call i32 @rand() #6
  %7 = srem i32 %6, 100
  %8 = call i32 @rand() #6
  %9 = srem i32 %8, 100
  %10 = add nsw i32 %9, %7
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %7, i32 noundef %10)
  invoke void @_ZN3alg12IntervalTree6insertEii(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %7, i32 noundef %10)
          to label %12 unwind label %16

12:                                               ; preds = %5
  %13 = add nuw nsw i32 %.029, 1
  %exitcond.not = icmp eq i32 %13, 50
  br i1 %exitcond.not, label %18, label %5, !llvm.loop !5

14:                                               ; preds = %0
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %39

16:                                               ; preds = %5
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %39

18:                                               ; preds = %12
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %19 unwind label %29

19:                                               ; preds = %18
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 5, i32 noundef 10)
  br label %21

21:                                               ; preds = %19, %33
  %.130 = phi i32 [ 0, %19 ], [ %34, %33 ]
  %22 = call noundef ptr @_ZN3alg12IntervalTree6lookupEii(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 5, i32 noundef 10)
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %33, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %22, i64 32
  %25 = load i32, ptr %24, align 8, !tbaa !7
  %26 = getelementptr inbounds i8, ptr %22, i64 36
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %25, i32 noundef %27)
  invoke void @_ZN3alg12IntervalTree10delete_keyEPNS0_14ivltree_node_tE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %22)
          to label %33 unwind label %31

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %39

31:                                               ; preds = %23
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %39

33:                                               ; preds = %23, %21
  %34 = add nuw nsw i32 %.130, 1
  %exitcond31.not = icmp eq i32 %34, 50
  br i1 %exitcond31.not, label %35, label %21, !llvm.loop !16

35:                                               ; preds = %33
  invoke void @_ZN3alg12IntervalTree5printEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %36 unwind label %37

36:                                               ; preds = %35
  call void @_ZN3alg12IntervalTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  ret i32 0

37:                                               ; preds = %35
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %39

39:                                               ; preds = %16, %29, %37, %31, %14
  %.pn26.pn = phi { ptr, i32 } [ %15, %14 ], [ %17, %16 ], [ %30, %29 ], [ %32, %31 ], [ %38, %37 ]
  call void @_ZN3alg12IntervalTreeD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn26.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3alg12IntervalTree6insertEii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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


; Effective O3 passes: GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass