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

; 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] }

@RN_EPSILON = external global double, align 8

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

; 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 dso_local noundef i32 @_Z11RNIsGreaterddd(double noundef, double noundef, double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12R2IntersectsRK5R2BoxS1_PS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca %class.R2Box, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %15)
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
  %19 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %20 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %16, double noundef %18, double noundef %19)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %46, label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %23)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %25)
  %27 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %28 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %24, double noundef %26, double noundef %27)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %46, label %30

30:                                               ; preds = %22
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %31)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %33)
  %35 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %36 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %32, double noundef %34, double noundef %35)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %46, label %38

38:                                               ; preds = %30
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %39)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %41)
  %43 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %44 = call noundef i32 @_Z11RNIsGreaterddd(double noundef %40, double noundef %42, double noundef %43)
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %38, %30, %22, %3
  store i32 0, ptr %4, align 4
  br label %103

47:                                               ; preds = %38
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %102

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %51)
  store double %52, ptr %8, align 8, !tbaa !9
  %53 = load double, ptr %8, align 8, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %54)
  %56 = fcmp olt double %53, %55
  br i1 %56, label %57, label %60

57:                                               ; preds = %50
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %58)
  store double %59, ptr %8, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %57, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
  store double %62, ptr %9, align 8, !tbaa !9
  %63 = load double, ptr %9, align 8, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %64)
  %66 = fcmp ogt double %63, %65
  br i1 %66, label %67, label %70

67:                                               ; preds = %60
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %68)
  store double %69, ptr %9, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %67, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %71)
  store double %72, ptr %10, align 8, !tbaa !9
  %73 = load double, ptr %10, align 8, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %74)
  %76 = fcmp olt double %73, %75
  br i1 %76, label %77, label %80

77:                                               ; preds = %70
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %78)
  store double %79, ptr %10, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %77, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %81)
  store double %82, ptr %11, align 8, !tbaa !9
  %83 = load double, ptr %11, align 8, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %84)
  %86 = fcmp ogt double %83, %85
  br i1 %86, label %87, label %90

87:                                               ; preds = %80
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %88)
  store double %89, ptr %11, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %87, %80
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  %91 = load double, ptr %8, align 8, !tbaa !9
  %92 = load double, ptr %9, align 8, !tbaa !9
  %93 = load double, ptr %10, align 8, !tbaa !9
  %94 = load double, ptr %11, align 8, !tbaa !9
  call void @_ZN5R2BoxC1Edddd(ptr noundef nonnull align 8 dereferenceable(40) %12, double noundef %91, double noundef %92, double noundef %93, double noundef %94)
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN5R2BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(40) %95, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %97 unwind label %98

97:                                               ; preds = %90
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %102

98:                                               ; preds = %90
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %105

102:                                              ; preds = %97, %47
  store i32 -1, ptr %4, align 4
  br label %103

103:                                              ; preds = %102, %46
  %104 = load i32, ptr %4, align 4
  ret i32 %104

105:                                              ; preds = %98
  %106 = load ptr, ptr %13, align 8
  %107 = load i32, ptr %14, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

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

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

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

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

declare void @_ZN5R2BoxC1Edddd(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef, double noundef) unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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] }

@RN_EPSILON = external local_unnamed_addr global double, align 8

; 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 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 dso_local noundef i32 @_Z11RNIsGreaterddd(double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_Z12R2IntersectsRK5R2BoxS1_PS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.R2Box, align 8
  %5 = tail call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %6 = tail call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %7 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %8 = tail call noundef i32 @_Z11RNIsGreaterddd(double noundef %5, double noundef %6, double noundef %7)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %54

9:                                                ; preds = %3
  %10 = tail call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %11 = tail call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %12 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %13 = tail call noundef i32 @_Z11RNIsGreaterddd(double noundef %10, double noundef %11, double noundef %12)
  %.not41 = icmp eq i32 %13, 0
  br i1 %.not41, label %14, label %54

14:                                               ; preds = %9
  %15 = tail call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %16 = tail call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %17 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %18 = tail call noundef i32 @_Z11RNIsGreaterddd(double noundef %15, double noundef %16, double noundef %17)
  %.not42 = icmp eq i32 %18, 0
  br i1 %.not42, label %19, label %54

19:                                               ; preds = %14
  %20 = tail call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %21 = tail call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %22 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %23 = tail call noundef i32 @_Z11RNIsGreaterddd(double noundef %20, double noundef %21, double noundef %22)
  %.not43 = icmp eq i32 %23, 0
  br i1 %.not43, label %24, label %54

24:                                               ; preds = %19
  %.not44 = icmp eq ptr %2, null
  br i1 %.not44, label %54, label %25

25:                                               ; preds = %24
  %26 = tail call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %27 = tail call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %28 = fcmp olt double %26, %27
  br i1 %28, label %29, label %31

29:                                               ; preds = %25
  %30 = tail call noundef double @_ZNK5R2Box4XMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %31

31:                                               ; preds = %29, %25
  %.032 = phi double [ %30, %29 ], [ %26, %25 ]
  %32 = tail call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %33 = tail call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %34 = fcmp ogt double %32, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %31
  %36 = tail call noundef double @_ZNK5R2Box4YMinEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %37

37:                                               ; preds = %35, %31
  %.035 = phi double [ %36, %35 ], [ %32, %31 ]
  %38 = tail call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %39 = tail call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %40 = fcmp olt double %38, %39
  br i1 %40, label %41, label %43

41:                                               ; preds = %37
  %42 = tail call noundef double @_ZNK5R2Box4XMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %43

43:                                               ; preds = %41, %37
  %.034 = phi double [ %42, %41 ], [ %38, %37 ]
  %44 = tail call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %45 = tail call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %46 = fcmp ogt double %44, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = tail call noundef double @_ZNK5R2Box4YMaxEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %49

49:                                               ; preds = %47, %43
  %.033 = phi double [ %48, %47 ], [ %44, %43 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  call void @_ZN5R2BoxC1Edddd(ptr noundef nonnull align 8 dereferenceable(40) %4, double noundef %.032, double noundef %.035, double noundef %.034, double noundef %.033)
  %50 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN5R2BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %51 unwind label %52

51:                                               ; preds = %49
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  br label %54

52:                                               ; preds = %49
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7R2SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  resume { ptr, i32 } %53

54:                                               ; preds = %24, %51, %3, %9, %14, %19
  %.0 = phi i32 [ 0, %19 ], [ 0, %14 ], [ 0, %9 ], [ 0, %3 ], [ -1, %51 ], [ -1, %24 ]
  ret i32 %.0
}

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

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

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

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

declare void @_ZN5R2BoxC1Edddd(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef, double noundef) unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "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 "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 = !{!"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