; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R2Shapes/R2Box.ll (ZNK5R2Box8QuadrantEii)

; 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.R2Box = type { %class.R2Solid, %class.R2Point, %class.R2Point }
%class.R2Solid = type { %class.R2Shape }
%class.R2Shape = type { ptr }
%class.R2Point = type { [2 x double] }

; Function Attrs: nounwind
declare void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5R2Box8QuadrantEii(ptr dead_on_unwind noalias writable sret(%class.R2Box) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca %class.R2Point, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %13 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZN5R2BoxC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  invoke void @_ZNK5R2Box8CentroidEv(ptr dead_on_unwind writable sret(%class.R2Point) align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %14 unwind label %32

14:                                               ; preds = %4
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %36

17:                                               ; preds = %14
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0)
          to label %19 unwind label %32

19:                                               ; preds = %17
  %20 = load double, ptr %18, align 8, !tbaa !11
  %21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
          to label %22 unwind label %32

22:                                               ; preds = %19
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 0)
          to label %24 unwind label %32

24:                                               ; preds = %22
  store double %20, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %class.R2Box, ptr %13, i32 0, i32 2
  %26 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 0)
          to label %27 unwind label %32

27:                                               ; preds = %24
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
          to label %29 unwind label %32

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %28, i32 noundef 0)
          to label %31 unwind label %32

31:                                               ; preds = %29
  store double %26, ptr %30, align 8, !tbaa !11
  br label %51

32:                                               ; preds = %81, %78, %76, %74, %72, %69, %66, %64, %61, %59, %56, %54, %48, %45, %43, %41, %39, %36, %29, %27, %24, %22, %19, %17, %4
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %11, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  br label %88

36:                                               ; preds = %14
  %37 = getelementptr inbounds %class.R2Box, ptr %13, i32 0, i32 1
  %38 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %37, i32 noundef 0)
          to label %39 unwind label %32

39:                                               ; preds = %36
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
          to label %41 unwind label %32

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %40, i32 noundef 0)
          to label %43 unwind label %32

43:                                               ; preds = %41
  store double %38, ptr %42, align 8, !tbaa !11
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0)
          to label %45 unwind label %32

45:                                               ; preds = %43
  %46 = load double, ptr %44, align 8, !tbaa !11
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
          to label %48 unwind label %32

48:                                               ; preds = %45
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef 0)
          to label %50 unwind label %32

50:                                               ; preds = %48
  store double %46, ptr %49, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %50, %31
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %69

54:                                               ; preds = %51
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 1)
          to label %56 unwind label %32

56:                                               ; preds = %54
  %57 = load double, ptr %55, align 8, !tbaa !11
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
          to label %59 unwind label %32

59:                                               ; preds = %56
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %58, i32 noundef 1)
          to label %61 unwind label %32

61:                                               ; preds = %59
  store double %57, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %class.R2Box, ptr %13, i32 0, i32 2
  %63 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %62, i32 noundef 1)
          to label %64 unwind label %32

64:                                               ; preds = %61
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
          to label %66 unwind label %32

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %65, i32 noundef 1)
          to label %68 unwind label %32

68:                                               ; preds = %66
  store double %63, ptr %67, align 8, !tbaa !11
  br label %84

69:                                               ; preds = %51
  %70 = getelementptr inbounds %class.R2Box, ptr %13, i32 0, i32 1
  %71 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %70, i32 noundef 1)
          to label %72 unwind label %32

72:                                               ; preds = %69
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
          to label %74 unwind label %32

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %73, i32 noundef 1)
          to label %76 unwind label %32

76:                                               ; preds = %74
  store double %71, ptr %75, align 8, !tbaa !11
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 1)
          to label %78 unwind label %32

78:                                               ; preds = %76
  %79 = load double, ptr %77, align 8, !tbaa !11
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
          to label %81 unwind label %32

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %80, i32 noundef 1)
          to label %83 unwind label %32

83:                                               ; preds = %81
  store double %79, ptr %82, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %83, %68
  store i1 true, ptr %9, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  %85 = load i1, ptr %9, align 1
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  br label %87

87:                                               ; preds = %86, %84
  ret void

88:                                               ; preds = %32
  %89 = load ptr, ptr %11, align 8
  %90 = load i32, ptr %12, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5R2Box8CentroidEv(ptr dead_on_unwind noalias writable sret(%class.R2Point) align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

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

declare void @_ZN5R2BoxC1Ev(ptr)

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; 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.R2Box = type { %class.R2Solid, %class.R2Point, %class.R2Point }
%class.R2Solid = type { %class.R2Shape }
%class.R2Shape = type { ptr }
%class.R2Point = type { [2 x double] }

; Function Attrs: nounwind
declare void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5R2Box8QuadrantEii(ptr dead_on_unwind noalias writable sret(%class.R2Box) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.R2Point, align 8
  tail call void @_ZN5R2BoxC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZNK5R2Box8CentroidEv(ptr dead_on_unwind nonnull writable sret(%class.R2Point) align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %6 unwind label %21

6:                                                ; preds = %4
  %7 = icmp eq i32 %2, 1
  br i1 %7, label %8, label %23

8:                                                ; preds = %6
  %9 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 0)
          to label %10 unwind label %21

10:                                               ; preds = %8
  %11 = load double, ptr %9, align 8, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 0)
          to label %14 unwind label %21

14:                                               ; preds = %10
  store double %11, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
          to label %17 unwind label %21

17:                                               ; preds = %14
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %18, i32 noundef 0)
          to label %20 unwind label %21

20:                                               ; preds = %17
  store double %16, ptr %19, align 8, !tbaa !5
  br label %36

21:                                               ; preds = %59, %57, %54, %51, %47, %44, %40, %38, %31, %29, %26, %23, %17, %14, %10, %8, %4
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #5
  resume { ptr, i32 } %22

23:                                               ; preds = %6
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %24, i32 noundef 0)
          to label %26 unwind label %21

26:                                               ; preds = %23
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef 0)
          to label %29 unwind label %21

29:                                               ; preds = %26
  store double %25, ptr %28, align 8, !tbaa !5
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 0)
          to label %31 unwind label %21

31:                                               ; preds = %29
  %32 = load double, ptr %30, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %33, i32 noundef 0)
          to label %35 unwind label %21

35:                                               ; preds = %31
  store double %32, ptr %34, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %35, %20
  %37 = icmp eq i32 %3, 1
  br i1 %37, label %38, label %51

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1)
          to label %40 unwind label %21

40:                                               ; preds = %38
  %41 = load double, ptr %39, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %42, i32 noundef 1)
          to label %44 unwind label %21

44:                                               ; preds = %40
  store double %41, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %1, i64 24
  %46 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %45, i32 noundef 1)
          to label %47 unwind label %21

47:                                               ; preds = %44
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %48, i32 noundef 1)
          to label %50 unwind label %21

50:                                               ; preds = %47
  store double %46, ptr %49, align 8, !tbaa !5
  br label %64

51:                                               ; preds = %36
  %52 = getelementptr inbounds i8, ptr %1, i64 8
  %53 = invoke noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %52, i32 noundef 1)
          to label %54 unwind label %21

54:                                               ; preds = %51
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0)
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %55, i32 noundef 1)
          to label %57 unwind label %21

57:                                               ; preds = %54
  store double %53, ptr %56, align 8, !tbaa !5
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1)
          to label %59 unwind label %21

59:                                               ; preds = %57
  %60 = load double, ptr %58, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5R2BoxixEi(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 1)
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %61, i32 noundef 1)
          to label %63 unwind label %21

63:                                               ; preds = %59
  store double %60, ptr %62, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %63, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5R2Box8CentroidEv(ptr dead_on_unwind noalias writable sret(%class.R2Point) align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_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) #2

declare void @_ZN5R2BoxC1Ev(ptr) local_unnamed_addr

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass