; LLVM IR from maliput/maliput :: src/maliput/api/rules (compare)

; 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.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::common::ComparisonResult.212" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.289" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.maliput::api::rules::Bulb::BoundingBox" = type { %"class.maliput::math::Vector3", %"class.maliput::math::Vector3" }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.212") align 8, ptr noundef, ptr noundef, double noundef, double noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualERKNS1_4Bulb11BoundingBoxES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.289") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.maliput::common::ComparisonResult.212", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.maliput::common::ComparisonResult.212", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %46, %3
  %14 = load i32, ptr %8, align 4, !tbaa !9
  %15 = icmp slt i32 %14, 3
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %62

17:                                               ; preds = %13
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.maliput::api::rules::Bulb::BoundingBox", ptr %18, i32 0, i32 0
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %21)
          to label %23 unwind label %49

23:                                               ; preds = %17
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.maliput::api::rules::Bulb::BoundingBox", ptr %24, i32 0, i32 0
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27)
          to label %29 unwind label %49

29:                                               ; preds = %23
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %9, ptr noundef @.str.93, ptr noundef @.str.94, double noundef %22, double noundef %28)
          to label %30 unwind label %49

30:                                               ; preds = %29
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 403, ptr noundef @.str.92, ptr noundef %9)
          to label %31 unwind label %53

31:                                               ; preds = %30
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.maliput::api::rules::Bulb::BoundingBox", ptr %32, i32 0, i32 1
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35)
          to label %37 unwind label %49

37:                                               ; preds = %31
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.maliput::api::rules::Bulb::BoundingBox", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41)
          to label %43 unwind label %49

43:                                               ; preds = %37
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %12, ptr noundef @.str.96, ptr noundef @.str.97, double noundef %36, double noundef %42)
          to label %44 unwind label %49

44:                                               ; preds = %43
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 404, ptr noundef @.str.95, ptr noundef %12)
          to label %45 unwind label %57

45:                                               ; preds = %44
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %8, align 4, !tbaa !9
  br label %13, !llvm.loop !11

49:                                               ; preds = %43, %37, %31, %29, %23, %17
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  br label %61

53:                                               ; preds = %30
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  br label %61

57:                                               ; preds = %44
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %61

61:                                               ; preds = %57, %53, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %69

62:                                               ; preds = %16
  %63 = getelementptr inbounds %"struct.maliput::common::ComparisonResult.289", ptr %0, i32 0, i32 0
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %63, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %64 unwind label %65

64:                                               ; preds = %62
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  ret void

65:                                               ; preds = %62
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  br label %69

69:                                               ; preds = %65, %61
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %10, align 8
  %72 = load i32, ptr %11, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

declare noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::common::ComparisonResult.212" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.289" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) 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) #0

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

declare void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.212") align 8, ptr noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualERKNS1_4Bulb11BoundingBoxES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.289") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %5 = alloca %"struct.maliput::common::ComparisonResult.212", align 8
  %6 = alloca %"struct.maliput::common::ComparisonResult.212", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  %7 = getelementptr inbounds i8, ptr %1, i64 24
  %8 = getelementptr inbounds i8, ptr %2, i64 24
  %9 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0)
          to label %10 unwind label %45

10:                                               ; preds = %3
  %11 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
          to label %12 unwind label %45

12:                                               ; preds = %10
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %5, ptr noundef nonnull @.str.93, ptr noundef nonnull @.str.94, double noundef %9, double noundef %11)
          to label %13 unwind label %45

13:                                               ; preds = %12
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 403, ptr noundef nonnull @.str.92, ptr noundef nonnull %5)
          to label %14 unwind label %47

14:                                               ; preds = %13
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %15 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %16 unwind label %45

16:                                               ; preds = %14
  %17 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0)
          to label %18 unwind label %45

18:                                               ; preds = %16
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %6, ptr noundef nonnull @.str.96, ptr noundef nonnull @.str.97, double noundef %15, double noundef %17)
          to label %19 unwind label %45

19:                                               ; preds = %18
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 404, ptr noundef nonnull @.str.95, ptr noundef nonnull %6)
          to label %20 unwind label %49

20:                                               ; preds = %19
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  %21 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
          to label %22 unwind label %45

22:                                               ; preds = %20
  %23 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1)
          to label %24 unwind label %45

24:                                               ; preds = %22
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %5, ptr noundef nonnull @.str.93, ptr noundef nonnull @.str.94, double noundef %21, double noundef %23)
          to label %25 unwind label %45

25:                                               ; preds = %24
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 403, ptr noundef nonnull @.str.92, ptr noundef nonnull %5)
          to label %26 unwind label %47

26:                                               ; preds = %25
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %27 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1)
          to label %28 unwind label %45

28:                                               ; preds = %26
  %29 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 1)
          to label %30 unwind label %45

30:                                               ; preds = %28
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %6, ptr noundef nonnull @.str.96, ptr noundef nonnull @.str.97, double noundef %27, double noundef %29)
          to label %31 unwind label %45

31:                                               ; preds = %30
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 404, ptr noundef nonnull @.str.95, ptr noundef nonnull %6)
          to label %32 unwind label %49

32:                                               ; preds = %31
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  %33 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2)
          to label %34 unwind label %45

34:                                               ; preds = %32
  %35 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2)
          to label %36 unwind label %45

36:                                               ; preds = %34
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %5, ptr noundef nonnull @.str.93, ptr noundef nonnull @.str.94, double noundef %33, double noundef %35)
          to label %37 unwind label %45

37:                                               ; preds = %36
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 403, ptr noundef nonnull @.str.92, ptr noundef nonnull %5)
          to label %38 unwind label %47

38:                                               ; preds = %37
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %39 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 2)
          to label %40 unwind label %45

40:                                               ; preds = %38
  %41 = invoke noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 2)
          to label %42 unwind label %45

42:                                               ; preds = %40
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_dd(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.212") align 8 %6, ptr noundef nonnull @.str.96, ptr noundef nonnull @.str.97, double noundef %39, double noundef %41)
          to label %43 unwind label %45

43:                                               ; preds = %42
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultIdEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 404, ptr noundef nonnull @.str.95, ptr noundef nonnull %6)
          to label %44 unwind label %49

44:                                               ; preds = %43
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %51 unwind label %52

45:                                               ; preds = %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %3
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %54

47:                                               ; preds = %37, %25, %13
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  br label %54

49:                                               ; preds = %43, %31, %19
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultIdED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %54

51:                                               ; preds = %44
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  ret void

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %54

54:                                               ; preds = %45, %47, %49, %52
  %.pn.pn = phi { ptr, i32 } [ %53, %52 ], [ %50, %49 ], [ %46, %45 ], [ %48, %47 ]
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn
}

declare noundef double @_ZNK7maliput4math10VectorBaseILm3ENS0_7Vector3EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4

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

!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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass