; LLVM IR from maliput/maliput :: src/maliput/math (axis_aligned_box)

; 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.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.maliput::math::AxisAlignedBox" = type { %"class.maliput::math::BoundingRegion", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", %"class.maliput::math::Vector3", double }
%"class.maliput::math::BoundingRegion" = type { ptr }

@_ZTVN7maliput4math14AxisAlignedBoxE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.maliput::math::Vector3", align 8
  %12 = alloca %"class.maliput::math::Vector3", align 8
  %13 = alloca %"class.maliput::math::Vector3", align 8
  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
  store double %3, ptr %8, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  call void @_ZN7maliput4math14BoundingRegionINS0_7Vector3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN7maliput4math14AxisAlignedBoxE, i32 0, i32 0, i32 2), ptr %14, align 8, !tbaa !11
  %15 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 1
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %16 unwind label %28

16:                                               ; preds = %4
  %17 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 2
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 24, i1 false)
  %19 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 3
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %20, i64 24, i1 false)
  %21 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 4
  %22 = load double, ptr %8, align 8, !tbaa !9
  store double %22, ptr %21, align 8, !tbaa !13
  br label %23

23:                                               ; preds = %16
  %24 = load double, ptr %8, align 8, !tbaa !9
  %25 = fcmp oge double %24, 0.000000e+00
  br i1 %25, label %32, label %26

26:                                               ; preds = %23
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d, ptr noundef @.str.1, i32 noundef 39) #8
          to label %27 unwind label %28

27:                                               ; preds = %26
  unreachable

28:                                               ; preds = %75, %68, %65, %60, %53, %50, %45, %38, %35, %26, %4
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %9, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %10, align 4
  br label %97

32:                                               ; preds = %23
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 2
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %38 unwind label %28

38:                                               ; preds = %35
  %39 = load double, ptr %37, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 3
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %42 unwind label %28

42:                                               ; preds = %38
  %43 = load double, ptr %41, align 8, !tbaa !9
  %44 = fcmp ole double %39, %43
  br i1 %44, label %47, label %45

45:                                               ; preds = %42
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d, ptr noundef @.str.1, i32 noundef 40) #8
          to label %46 unwind label %28

46:                                               ; preds = %45
  unreachable

47:                                               ; preds = %42
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 2
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %53 unwind label %28

53:                                               ; preds = %50
  %54 = load double, ptr %52, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 3
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
          to label %57 unwind label %28

57:                                               ; preds = %53
  %58 = load double, ptr %56, align 8, !tbaa !9
  %59 = fcmp ole double %54, %58
  br i1 %59, label %62, label %60

60:                                               ; preds = %57
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.3, ptr noundef @__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d, ptr noundef @.str.1, i32 noundef 41) #8
          to label %61 unwind label %28

61:                                               ; preds = %60
  unreachable

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 2
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
          to label %68 unwind label %28

68:                                               ; preds = %65
  %69 = load double, ptr %67, align 8, !tbaa !9
  %70 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 3
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %70)
          to label %72 unwind label %28

72:                                               ; preds = %68
  %73 = load double, ptr %71, align 8, !tbaa !9
  %74 = fcmp ole double %69, %73
  br i1 %74, label %77, label %75

75:                                               ; preds = %72
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.4, ptr noundef @__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d, ptr noundef @.str.1, i32 noundef 42) #8
          to label %76 unwind label %28

76:                                               ; preds = %75
  unreachable

77:                                               ; preds = %72
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %80 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 2
  invoke void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8 %12, double noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(24) %80)
          to label %81 unwind label %88

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  %82 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 3
  invoke void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8 %13, double noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(24) %82)
          to label %83 unwind label %92

83:                                               ; preds = %81
  invoke void @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEplERKS3_(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %84 unwind label %92

84:                                               ; preds = %83
  %85 = getelementptr inbounds %"class.maliput::math::AxisAlignedBox", ptr %14, i32 0, i32 1
  %86 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7maliput4math7Vector3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %87 unwind label %92

87:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  ret void

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %96

92:                                               ; preds = %84, %83, %81
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  br label %97

97:                                               ; preds = %96, %28
  call void @_ZN7maliput4math14BoundingRegionINS0_7Vector3EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %9, align 8
  %100 = load i32, ptr %10, align 4
  %101 = insertvalue { ptr, i32 } poison, ptr %99, 0
  %102 = insertvalue { ptr, i32 } %101, i32 %100, 1
  resume { ptr, i32 } %102
}

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

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

declare i32 @__gxx_personality_v0(...)

; 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: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

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

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

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

declare void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #5

declare void @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEplERKS3_(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7maliput4math7Vector3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 80}
!14 = !{!"_ZTSN7maliput4math14AxisAlignedBoxE", !15, i64 0, !16, i64 8, !16, i64 32, !16, i64 56, !10, i64 80}
!15 = !{!"_ZTSN7maliput4math14BoundingRegionINS0_7Vector3EEE"}
!16 = !{!"_ZTSN7maliput4math7Vector3E", !17, i64 0}
!17 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !18, i64 0}
!18 = !{!"_ZTSSt5arrayIdLm3EE", !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.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }

@_ZTVN7maliput4math14AxisAlignedBoxE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %2, double noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.maliput::math::Vector3", align 8
  %6 = alloca %"class.maliput::math::Vector3", align 8
  %7 = alloca %"class.maliput::math::Vector3", align 8
  tail call void @_ZN7maliput4math14BoundingRegionINS0_7Vector3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN7maliput4math14AxisAlignedBoxE, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %9 unwind label %14

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false)
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 24, i1 false)
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  store double %3, ptr %12, align 8, !tbaa !8
  %13 = fcmp ult double %3, 0.000000e+00
  br i1 %13, label %.invoke, label %16

14:                                               ; preds = %.invoke, %4
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %47

16:                                               ; preds = %9
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %18 = load double, ptr %17, align 8, !tbaa !16
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31xEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %20 = load double, ptr %19, align 8, !tbaa !16
  %21 = fcmp ugt double %18, %20
  br i1 %21, label %.invoke, label %22

22:                                               ; preds = %16
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31yEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = fcmp ugt double %24, %26
  br i1 %27, label %.invoke, label %28

28:                                               ; preds = %22
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %30 = load double, ptr %29, align 8, !tbaa !16
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7maliput4math7Vector31zEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = fcmp ugt double %30, %32
  br i1 %33, label %.invoke, label %36

.invoke:                                          ; preds = %9, %28, %22, %16
  %34 = phi ptr [ @.str.2, %16 ], [ @.str.3, %22 ], [ @.str.4, %28 ], [ @.str, %9 ]
  %35 = phi i32 [ 40, %16 ], [ 41, %22 ], [ 42, %28 ], [ 39, %9 ]
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull %34, ptr noundef nonnull @__func__._ZN7maliput4math14AxisAlignedBoxC2ERKNS0_7Vector3ES4_d, ptr noundef nonnull @.str.1, i32 noundef %35) #8
          to label %.cont unwind label %14

.cont:                                            ; preds = %.invoke
  unreachable

36:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  invoke void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind nonnull writable sret(%"class.maliput::math::Vector3") align 8 %6, double noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %37 unwind label %42

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  invoke void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind nonnull writable sret(%"class.maliput::math::Vector3") align 8 %7, double noundef 5.000000e-01, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %38 unwind label %44

38:                                               ; preds = %37
  invoke void @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEplERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.maliput::math::Vector3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %39 unwind label %44

39:                                               ; preds = %38
  %40 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7maliput4math7Vector3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %41 unwind label %44

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  ret void

42:                                               ; preds = %36
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %39, %38, %37
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %46

46:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %47

47:                                               ; preds = %46, %14
  %.pn.pn = phi { ptr, i32 } [ %.pn, %46 ], [ %15, %14 ]
  call void @_ZN7maliput4math14BoundingRegionINS0_7Vector3EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

declare void @_ZN7maliput4mathmlILm3ENS0_7Vector3EEET0_dRKNS0_10VectorBaseIXT_ES3_EE(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

declare void @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEplERKS3_(ptr dead_on_unwind writable sret(%"class.maliput::math::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7maliput4math7Vector3aSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 80}
!9 = !{!"_ZTSN7maliput4math14AxisAlignedBoxE", !10, i64 0, !11, i64 8, !11, i64 32, !11, i64 56, !15, i64 80}
!10 = !{!"_ZTSN7maliput4math14BoundingRegionINS0_7Vector3EEE"}
!11 = !{!"_ZTSN7maliput4math7Vector3E", !12, i64 0}
!12 = !{!"_ZTSN7maliput4math10VectorBaseILm3ENS0_7Vector3EEE", !13, i64 0}
!13 = !{!"_ZTSSt5arrayIdLm3EE", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"double", !14, i64 0}
!16 = !{!15, !15, i64 0}


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