; LLVM IR from maliput/maliput :: src/maliput/api/compare.ll (ZN7maliput3api15CheckIdIndexingB5cxx11EPKNS0_12RoadGeometryE)

; 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::api::TypeSpecificIdentifier" = 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] }
%"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" }
%"struct.maliput::common::ComparisonResult.20" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.21" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.22" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.23" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.24" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.25" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.26" = type { %"class.std::__cxx11::basic_string" }

@.str.53 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [156 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; 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)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_8JunctionES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.20") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_7SegmentES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.21") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_4LaneES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.22") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_11BranchPointES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.23") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api15CheckIdIndexingB5cxx11EPKNS0_12RoadGeometryE(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8 %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.maliput::common::ComparisonResult.20", align 8
  %12 = alloca %"class.maliput::api::TypeSpecificIdentifier.24", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.maliput::common::ComparisonResult.21", align 8
  %16 = alloca %"class.maliput::api::TypeSpecificIdentifier.25", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.maliput::common::ComparisonResult.22", align 8
  %20 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"struct.maliput::common::ComparisonResult.23", align 8
  %24 = alloca %"class.maliput::api::TypeSpecificIdentifier.26", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %219, %2
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %29 unwind label %32

29:                                               ; preds = %25
  %30 = icmp slt i32 %26, %28
  br i1 %30, label %36, label %31

31:                                               ; preds = %29
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %224

32:                                               ; preds = %25
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %7, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %8, align 4
  br label %223

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry8junctionEi(ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef %38)
          to label %40 unwind label %58

40:                                               ; preds = %36
  store ptr %39, ptr %10, align 8, !tbaa !5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %43 unwind label %58

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api8Junction2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.24") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %62

45:                                               ; preds = %43
  %46 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex11GetJunctionERKNS0_22TypeSpecificIdentifierINS0_8JunctionEEE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %47 unwind label %66

47:                                               ; preds = %45
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_8JunctionES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.20") align 8 %11, ptr noundef @.str.74, ptr noundef @.str.75, ptr noundef %46, ptr noundef %48)
          to label %49 unwind label %66

49:                                               ; preds = %47
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8JunctionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef @.str.53, i32 noundef 338, ptr noundef @.str.73, ptr noundef %11)
          to label %50 unwind label %70

50:                                               ; preds = %49
  call void @_ZN7maliput6common16ComparisonResultINS_3api8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %163, %50
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = invoke noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %55 unwind label %76

55:                                               ; preds = %51
  %56 = icmp slt i32 %52, %54
  br i1 %56, label %80, label %57

57:                                               ; preds = %55
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %168

58:                                               ; preds = %40, %36
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %222

62:                                               ; preds = %43
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %7, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %8, align 4
  br label %75

66:                                               ; preds = %47, %45
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  br label %74

70:                                               ; preds = %49
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  br label %74

74:                                               ; preds = %70, %66
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %75

75:                                               ; preds = %74, %62
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br label %222

76:                                               ; preds = %51
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  br label %167

80:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = invoke noundef ptr @_ZNK7maliput3api8Junction7segmentEi(ptr noundef nonnull align 8 dereferenceable(8) %81, i32 noundef %82)
          to label %84 unwind label %102

84:                                               ; preds = %80
  store ptr %83, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %87 unwind label %102

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %89 unwind label %106

89:                                               ; preds = %87
  %90 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex10GetSegmentERKNS0_22TypeSpecificIdentifierINS0_7SegmentEEE(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %91 unwind label %110

91:                                               ; preds = %89
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_7SegmentES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.21") align 8 %15, ptr noundef @.str.77, ptr noundef @.str.78, ptr noundef %90, ptr noundef %92)
          to label %93 unwind label %110

93:                                               ; preds = %91
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api7SegmentEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef @.str.53, i32 noundef 342, ptr noundef @.str.76, ptr noundef %15)
          to label %94 unwind label %114

94:                                               ; preds = %93
  call void @_ZN7maliput6common16ComparisonResultINS_3api7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %139, %94
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = invoke noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %99 unwind label %120

99:                                               ; preds = %95
  %100 = icmp slt i32 %96, %98
  br i1 %100, label %124, label %101

101:                                              ; preds = %99
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %162

102:                                              ; preds = %84, %80
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  br label %166

106:                                              ; preds = %87
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  br label %119

110:                                              ; preds = %91, %89
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %7, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %8, align 4
  br label %118

114:                                              ; preds = %93
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %7, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %8, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  br label %118

118:                                              ; preds = %114, %110
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %119

119:                                              ; preds = %118, %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %166

120:                                              ; preds = %95
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  br label %161

124:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = invoke noundef ptr @_ZNK7maliput3api7Segment4laneEi(ptr noundef nonnull align 8 dereferenceable(8) %125, i32 noundef %126)
          to label %128 unwind label %142

128:                                              ; preds = %124
  store ptr %127, ptr %18, align 8, !tbaa !5
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %129)
          to label %131 unwind label %142

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %133 unwind label %146

133:                                              ; preds = %131
  %134 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %135 unwind label %150

135:                                              ; preds = %133
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_4LaneES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.22") align 8 %19, ptr noundef @.str.80, ptr noundef @.str.81, ptr noundef %134, ptr noundef %136)
          to label %137 unwind label %150

137:                                              ; preds = %135
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api4LaneEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef @.str.53, i32 noundef 346, ptr noundef @.str.79, ptr noundef %19)
          to label %138 unwind label %154

138:                                              ; preds = %137
  call void @_ZN7maliput6common16ComparisonResultINS_3api4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %17, align 4, !tbaa !9
  br label %95, !llvm.loop !11

142:                                              ; preds = %128, %124
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  br label %160

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  br label %159

150:                                              ; preds = %135, %133
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %7, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %8, align 4
  br label %158

154:                                              ; preds = %137
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #5
  br label %158

158:                                              ; preds = %154, %150
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  br label %159

159:                                              ; preds = %158, %146
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  br label %160

160:                                              ; preds = %159, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %161

161:                                              ; preds = %160, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %166

162:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %13, align 4, !tbaa !9
  br label %51, !llvm.loop !13

166:                                              ; preds = %161, %119, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %167

167:                                              ; preds = %166, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %222

168:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %195, %168
  %170 = load i32, ptr %21, align 4, !tbaa !9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry17num_branch_pointsEv(ptr noundef nonnull align 8 dereferenceable(8) %171)
          to label %173 unwind label %176

173:                                              ; preds = %169
  %174 = icmp slt i32 %170, %172
  br i1 %174, label %180, label %175

175:                                              ; preds = %173
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %218

176:                                              ; preds = %169
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %7, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %8, align 4
  br label %217

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load i32, ptr %21, align 4, !tbaa !9
  %183 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry12branch_pointEi(ptr noundef nonnull align 8 dereferenceable(8) %181, i32 noundef %182)
          to label %184 unwind label %198

184:                                              ; preds = %180
  store ptr %183, ptr %22, align 8, !tbaa !5
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %185)
          to label %187 unwind label %198

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api11BranchPoint2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier.26") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %188)
          to label %189 unwind label %202

189:                                              ; preds = %187
  %190 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex14GetBranchPointERKNS0_22TypeSpecificIdentifierINS0_11BranchPointEEE(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %191 unwind label %206

191:                                              ; preds = %189
  %192 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_11BranchPointES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.23") align 8 %23, ptr noundef @.str.83, ptr noundef @.str.84, ptr noundef %190, ptr noundef %192)
          to label %193 unwind label %206

193:                                              ; preds = %191
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api11BranchPointEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef @.str.53, i32 noundef 352, ptr noundef @.str.82, ptr noundef %23)
          to label %194 unwind label %210

194:                                              ; preds = %193
  call void @_ZN7maliput6common16ComparisonResultINS_3api11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %21, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !9
  br label %169, !llvm.loop !14

198:                                              ; preds = %184, %180
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %7, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %8, align 4
  br label %216

202:                                              ; preds = %187
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %7, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %8, align 4
  br label %215

206:                                              ; preds = %191, %189
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %7, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %8, align 4
  br label %214

210:                                              ; preds = %193
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %7, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %8, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #5
  br label %214

214:                                              ; preds = %210, %206
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  br label %215

215:                                              ; preds = %214, %202
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  br label %216

216:                                              ; preds = %215, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %217

217:                                              ; preds = %216, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %222

218:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %6, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %6, align 4, !tbaa !9
  br label %25, !llvm.loop !15

222:                                              ; preds = %217, %167, %75, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %223

223:                                              ; preds = %222, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %230

224:                                              ; preds = %31
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %225 unwind label %226

225:                                              ; preds = %224
  store i32 1, ptr %9, align 4
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  ret void

226:                                              ; preds = %224
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %7, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %8, align 4
  br label %230

230:                                              ; preds = %226, %223
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  br label %231

231:                                              ; preds = %230
  %232 = load ptr, ptr %7, align 8
  %233 = load i32, ptr %8, align 4
  %234 = insertvalue { ptr, i32 } poison, ptr %232, 0
  %235 = insertvalue { ptr, i32 } %234, i32 %233, 1
  resume { ptr, i32 } %235
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex11GetJunctionERKNS0_22TypeSpecificIdentifierINS0_8JunctionEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api8Junction2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.24") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex10GetSegmentERKNS0_22TypeSpecificIdentifierINS0_7SegmentEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry17num_branch_pointsEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex14GetBranchPointERKNS0_22TypeSpecificIdentifierINS0_11BranchPointEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api11BranchPoint2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.26") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 = { 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 #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"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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::api::TypeSpecificIdentifier" = 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] }
%"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" }
%"struct.maliput::common::ComparisonResult.20" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.21" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.22" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.23" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.24" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.25" = type { %"class.std::__cxx11::basic_string" }
%"class.maliput::api::TypeSpecificIdentifier.26" = type { %"class.std::__cxx11::basic_string" }

@.str.53 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [156 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

; 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 #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_8JunctionES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.20") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_7SegmentES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.21") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_4LaneES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.22") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_11BranchPointES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.23") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api15CheckIdIndexingB5cxx11EPKNS0_12RoadGeometryE(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8 %0, ptr noundef %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %4 = alloca %"struct.maliput::common::ComparisonResult.20", align 8
  %5 = alloca %"class.maliput::api::TypeSpecificIdentifier.24", align 8
  %6 = alloca %"struct.maliput::common::ComparisonResult.21", align 8
  %7 = alloca %"class.maliput::api::TypeSpecificIdentifier.25", align 8
  %8 = alloca %"struct.maliput::common::ComparisonResult.22", align 8
  %9 = alloca %"class.maliput::api::TypeSpecificIdentifier", align 8
  %10 = alloca %"struct.maliput::common::ComparisonResult.23", align 8
  %11 = alloca %"class.maliput::api::TypeSpecificIdentifier.26", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  br label %12

12:                                               ; preds = %97, %2
  %.0 = phi i32 [ 0, %2 ], [ %98, %97 ]
  %13 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %14 unwind label %17

14:                                               ; preds = %12
  %15 = icmp slt i32 %.0, %13
  br i1 %15, label %19, label %16

16:                                               ; preds = %14
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %122 unwind label %123

17:                                               ; preds = %12
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %125

19:                                               ; preds = %14
  %20 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry8junctionEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %.0)
          to label %21 unwind label %33

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %23 unwind label %33

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  invoke void @_ZNK7maliput3api8Junction2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.24") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %24 unwind label %35

24:                                               ; preds = %23
  %25 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex11GetJunctionERKNS0_22TypeSpecificIdentifierINS0_8JunctionEEE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %26 unwind label %37

26:                                               ; preds = %24
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_8JunctionES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.20") align 8 %4, ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.75, ptr noundef %25, ptr noundef nonnull %20)
          to label %27 unwind label %37

27:                                               ; preds = %26
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8JunctionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @.str.53, i32 noundef 338, ptr noundef nonnull @.str.73, ptr noundef nonnull %4)
          to label %28 unwind label %39

28:                                               ; preds = %27
  call void @_ZN7maliput6common16ComparisonResultINS_3api8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %29

29:                                               ; preds = %59, %28
  %.053 = phi i32 [ 0, %28 ], [ %60, %59 ]
  %30 = invoke noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %31 unwind label %43

31:                                               ; preds = %29
  %32 = icmp slt i32 %.053, %30
  br i1 %32, label %45, label %.preheader

33:                                               ; preds = %21, %19
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %125

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

37:                                               ; preds = %26, %24
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %41

39:                                               ; preds = %27
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  br label %41

41:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_8JunctionEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %42

42:                                               ; preds = %41, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %41 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %125

43:                                               ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %125

45:                                               ; preds = %31
  %46 = invoke noundef ptr @_ZNK7maliput3api8Junction7segmentEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef %.053)
          to label %47 unwind label %61

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %49 unwind label %61

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  invoke void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %50 unwind label %63

50:                                               ; preds = %49
  %51 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex10GetSegmentERKNS0_22TypeSpecificIdentifierINS0_7SegmentEEE(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %52 unwind label %65

52:                                               ; preds = %50
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_7SegmentES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.21") align 8 %6, ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.78, ptr noundef %51, ptr noundef nonnull %46)
          to label %53 unwind label %65

53:                                               ; preds = %52
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api7SegmentEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @.str.53, i32 noundef 342, ptr noundef nonnull @.str.76, ptr noundef nonnull %6)
          to label %54 unwind label %67

54:                                               ; preds = %53
  call void @_ZN7maliput6common16ComparisonResultINS_3api7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  br label %55

55:                                               ; preds = %82, %54
  %.035 = phi i32 [ 0, %54 ], [ %83, %82 ]
  %56 = invoke noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %57 unwind label %71

57:                                               ; preds = %55
  %58 = icmp slt i32 %.035, %56
  br i1 %58, label %73, label %59

59:                                               ; preds = %57
  %60 = add nuw nsw i32 %.053, 1
  br label %29, !llvm.loop !5

61:                                               ; preds = %47, %45
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %125

63:                                               ; preds = %49
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %70

65:                                               ; preds = %52, %50
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %53
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %69

69:                                               ; preds = %67, %65
  %.pn61 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_7SegmentEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %70

70:                                               ; preds = %69, %63
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %69 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  br label %125

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %125

73:                                               ; preds = %57
  %74 = invoke noundef ptr @_ZNK7maliput3api7Segment4laneEi(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %.035)
          to label %75 unwind label %84

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %77 unwind label %84

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZNK7maliput3api4Lane2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %78 unwind label %86

78:                                               ; preds = %77
  %79 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %80 unwind label %88

80:                                               ; preds = %78
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_4LaneES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.22") align 8 %8, ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.81, ptr noundef %79, ptr noundef nonnull %74)
          to label %81 unwind label %88

81:                                               ; preds = %80
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api4LaneEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @.str.53, i32 noundef 346, ptr noundef nonnull @.str.79, ptr noundef nonnull %8)
          to label %82 unwind label %90

82:                                               ; preds = %81
  call void @_ZN7maliput6common16ComparisonResultINS_3api4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %83 = add nuw nsw i32 %.035, 1
  br label %55, !llvm.loop !7

84:                                               ; preds = %75, %73
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %125

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %93

88:                                               ; preds = %80, %78
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %92

92:                                               ; preds = %90, %88
  %.pn64 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_4LaneEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %93

93:                                               ; preds = %92, %86
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %92 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %125

.preheader:                                       ; preds = %31, %110
  %.033 = phi i32 [ %111, %110 ], [ 0, %31 ]
  %94 = invoke noundef i32 @_ZNK7maliput3api12RoadGeometry17num_branch_pointsEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %95 unwind label %99

95:                                               ; preds = %.preheader
  %96 = icmp slt i32 %.033, %94
  br i1 %96, label %101, label %97

97:                                               ; preds = %95
  %98 = add nuw nsw i32 %.0, 1
  br label %12, !llvm.loop !8

99:                                               ; preds = %.preheader
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %125

101:                                              ; preds = %95
  %102 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry12branch_pointEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %.033)
          to label %103 unwind label %112

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7maliput3api12RoadGeometry4ByIdEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %105 unwind label %112

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  invoke void @_ZNK7maliput3api11BranchPoint2idEv(ptr dead_on_unwind nonnull writable sret(%"class.maliput::api::TypeSpecificIdentifier.26") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %106 unwind label %114

106:                                              ; preds = %105
  %107 = invoke noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex14GetBranchPointERKNS0_22TypeSpecificIdentifierINS0_11BranchPointEEE(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %108 unwind label %116

108:                                              ; preds = %106
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_PKNS0_11BranchPointES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.23") align 8 %10, ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.84, ptr noundef %107, ptr noundef nonnull %102)
          to label %109 unwind label %116

109:                                              ; preds = %108
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api11BranchPointEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @.str.53, i32 noundef 352, ptr noundef nonnull @.str.82, ptr noundef nonnull %10)
          to label %110 unwind label %118

110:                                              ; preds = %109
  call void @_ZN7maliput6common16ComparisonResultINS_3api11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  %111 = add nuw nsw i32 %.033, 1
  br label %.preheader, !llvm.loop !9

112:                                              ; preds = %103, %101
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %125

114:                                              ; preds = %105
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %121

116:                                              ; preds = %108, %106
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %109
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %120

120:                                              ; preds = %118, %116
  %.pn56 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @_ZN7maliput3api22TypeSpecificIdentifierINS0_11BranchPointEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %121

121:                                              ; preds = %120, %114
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %120 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %125

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

123:                                              ; preds = %16
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %125

125:                                              ; preds = %17, %99, %121, %112, %43, %71, %93, %84, %70, %61, %42, %33, %123
  %.pn64.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %124, %123 ], [ %18, %17 ], [ %.pn.pn, %42 ], [ %34, %33 ], [ %44, %43 ], [ %.pn61.pn, %70 ], [ %62, %61 ], [ %72, %71 ], [ %.pn64.pn, %93 ], [ %85, %84 ], [ %100, %99 ], [ %.pn56.pn, %121 ], [ %113, %112 ]
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn64.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry13num_junctionsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex11GetJunctionERKNS0_22TypeSpecificIdentifierINS0_8JunctionEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api8Junction2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.24") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api8Junction12num_segmentsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex10GetSegmentERKNS0_22TypeSpecificIdentifierINS0_7SegmentEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api7Segment2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.25") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex7GetLaneERKNS0_22TypeSpecificIdentifierINS0_4LaneEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7maliput3api12RoadGeometry17num_branch_pointsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

declare noundef ptr @_ZNK7maliput3api12RoadGeometry7IdIndex14GetBranchPointERKNS0_22TypeSpecificIdentifierINS0_11BranchPointEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput3api11BranchPoint2idEv(ptr dead_on_unwind noalias writable sret(%"class.maliput::api::TypeSpecificIdentifier.26") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass