; LLVM IR from maliput/maliput :: src/maliput/routing (phase)

; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.anon.6 = type { i8 }
%class.anon.7 = type { i8 }
%"class.__gnu_cxx::__normal_iterator.83" = type { ptr }
%class.anon.84 = type { ptr, ptr }
%"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::allocator.85" = type { i8 }
%class.anon.88 = type { ptr }
%class.anon.89 = type { ptr }
%"class.maliput::routing::Phase" = type { i32, double, %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector", ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::RoadPosition, std::allocator<maliput::api::RoadPosition>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::api::LaneSRange, std::allocator<maliput::api::LaneSRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %19 = alloca %class.anon.6, align 1
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %22 = alloca %class.anon.7, align 1
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %26 = alloca %class.anon.84, align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.85", align 1
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %31 = alloca %class.anon.88, align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator.85", align 1
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %36 = alloca %class.anon.89, align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator.85", align 1
  %39 = alloca i64, align 8
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator.85", align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store double %2, ptr %10, align 8, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8
  %43 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %44, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 1
  %46 = load double, ptr %10, align 8, !tbaa !11
  store double %46, ptr %45, align 8, !tbaa !23
  %47 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %48)
  %49 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %51 unwind label %63

51:                                               ; preds = %7
  %52 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %54 unwind label %67

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 5
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %56, ptr %55, align 8, !tbaa !24
  br label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !13
  %60 = icmp sge i32 %59, 0
  br i1 %60, label %75, label %61

61:                                               ; preds = %57
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.4, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 85) #5
          to label %62 unwind label %71

62:                                               ; preds = %61
  unreachable

63:                                               ; preds = %7
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  br label %309

67:                                               ; preds = %51
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %15, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %16, align 4
  br label %308

71:                                               ; preds = %150, %141, %133, %120, %115, %107, %94, %89, %81, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  br label %307

75:                                               ; preds = %57
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  %79 = load double, ptr %10, align 8, !tbaa !11
  %80 = fcmp oge double %79, 0.000000e+00
  br i1 %80, label %83, label %81

81:                                               ; preds = %78
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.5, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 86) #5
          to label %82 unwind label %71

82:                                               ; preds = %81
  unreachable

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %88 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #6
  br i1 %88, label %89, label %91

89:                                               ; preds = %86
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.6, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 87) #5
          to label %90 unwind label %71

90:                                               ; preds = %89
  unreachable

91:                                               ; preds = %86
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  %95 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %96 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %17, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %99 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %18, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %17, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %18, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_0EbT_SN_T0_"(ptr %102, ptr %104)
          to label %106 unwind label %71

106:                                              ; preds = %94
  br i1 %105, label %109, label %107

107:                                              ; preds = %106
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.7, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 89) #5
          to label %108 unwind label %71

108:                                              ; preds = %107
  unreachable

109:                                              ; preds = %106
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %114 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.8, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 90) #5
          to label %116 unwind label %71

116:                                              ; preds = %115
  unreachable

117:                                              ; preds = %112
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  %121 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %122 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #6
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %125 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #6
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %21, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %21, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_1EbT_SN_T0_"(ptr %128, ptr %130)
          to label %132 unwind label %71

132:                                              ; preds = %120
  br i1 %131, label %135, label %133

133:                                              ; preds = %132
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.9, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 92) #5
          to label %134 unwind label %71

134:                                              ; preds = %133
  unreachable

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  %139 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %140 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #6
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.10, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 93) #5
          to label %142 unwind label %71

142:                                              ; preds = %141
  unreachable

143:                                              ; preds = %138
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 5
  %148 = load ptr, ptr %147, align 8, !tbaa !24
  %149 = icmp ne ptr %148, null
  br i1 %149, label %152, label %150

150:                                              ; preds = %146
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.11, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 94) #5
          to label %151 unwind label %71

151:                                              ; preds = %150
  unreachable

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %155 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !24
  %157 = invoke noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %156)
          to label %158 unwind label %182

158:                                              ; preds = %154
  store ptr %157, ptr %23, align 8, !tbaa !5
  br label %159

159:                                              ; preds = %158
  %160 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %161 = call ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %24, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  %163 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %164 = call ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %25, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  %166 = getelementptr inbounds %class.anon.84, ptr %26, i32 0, i32 0
  store ptr %42, ptr %166, align 8, !tbaa !25
  %167 = getelementptr inbounds %class.anon.84, ptr %26, i32 0, i32 1
  store ptr %23, ptr %167, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %24, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %25, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = getelementptr inbounds { ptr, ptr }, ptr %26, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8
  %176 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api10LaneSRangeESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS6_INS3_12RoadPositionESaISC_EESG_RKS8_PKNS3_11RoadNetworkEE3$_2EbT_SN_T0_"(ptr %169, ptr %171, ptr %173, ptr %175)
          to label %177 unwind label %182

177:                                              ; preds = %159
  br i1 %176, label %195, label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %179 unwind label %186

179:                                              ; preds = %178
  %180 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %180, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 101) #5
          to label %181 unwind label %190

181:                                              ; preds = %179
  unreachable

182:                                              ; preds = %230, %198, %159, %154
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %15, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %16, align 4
  br label %306

186:                                              ; preds = %178
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %15, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %16, align 4
  br label %194

190:                                              ; preds = %179
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %15, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %194

194:                                              ; preds = %190, %186
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %306

195:                                              ; preds = %177
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %200 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #6
  %201 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %29, i32 0, i32 0
  store ptr %200, ptr %201, align 8
  %202 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 2
  %203 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #6
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %30, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  %205 = getelementptr inbounds %class.anon.88, ptr %31, i32 0, i32 0
  store ptr %42, ptr %205, align 8, !tbaa !27
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %29, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %30, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8
  %210 = getelementptr inbounds %class.anon.88, ptr %31, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8
  %212 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_3EbT_SN_T0_"(ptr %207, ptr %209, ptr %211)
          to label %213 unwind label %182

213:                                              ; preds = %198
  br i1 %212, label %227, label %214

214:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %215 unwind label %218

215:                                              ; preds = %214
  %216 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %216, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 107) #5
          to label %217 unwind label %222

217:                                              ; preds = %215
  unreachable

218:                                              ; preds = %214
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %15, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %16, align 4
  br label %226

222:                                              ; preds = %215
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %15, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %226

226:                                              ; preds = %222, %218
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %306

227:                                              ; preds = %213
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  %231 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %232 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #6
  %233 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  %234 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 3
  %235 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %234) #6
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  store ptr %235, ptr %236, align 8
  %237 = getelementptr inbounds %class.anon.89, ptr %36, i32 0, i32 0
  store ptr %42, ptr %237, align 8, !tbaa !29
  %238 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %34, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %35, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8
  %242 = getelementptr inbounds %class.anon.89, ptr %36, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8
  %244 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_4EbT_SN_T0_"(ptr %239, ptr %241, ptr %243)
          to label %245 unwind label %182

245:                                              ; preds = %230
  br i1 %244, label %259, label %246

246:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %247 unwind label %250

247:                                              ; preds = %246
  %248 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %248, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 113) #5
          to label %249 unwind label %254

249:                                              ; preds = %247
  unreachable

250:                                              ; preds = %246
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %15, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %16, align 4
  br label %258

254:                                              ; preds = %247
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %15, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %258

258:                                              ; preds = %254, %250
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  br label %306

259:                                              ; preds = %245
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store i64 0, ptr %39, align 8, !tbaa !31
  br label %262

262:                                              ; preds = %301, %261
  %263 = load i64, ptr %39, align 8, !tbaa !31
  %264 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %265 = call noundef i64 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %264) #6
  %266 = sub i64 %265, 1
  %267 = icmp ult i64 %263, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %305

269:                                              ; preds = %262
  br label %270

270:                                              ; preds = %269
  %271 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %272 = load i64, ptr %39, align 8, !tbaa !31
  %273 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %271, i64 noundef %272) #6
  %274 = getelementptr inbounds %"class.maliput::routing::Phase", ptr %42, i32 0, i32 4
  %275 = load i64, ptr %39, align 8, !tbaa !31
  %276 = add i64 %275, 1
  %277 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %276) #6
  %278 = load ptr, ptr %23, align 8, !tbaa !5
  %279 = invoke noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_130ValidateLaneSRangesAreAdjacentERKNS_3api10LaneSRangeES5_PKNS2_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48) %273, ptr noundef nonnull align 8 dereferenceable(48) %277, ptr noundef %278)
          to label %280 unwind label %285

280:                                              ; preds = %270
  br i1 %279, label %298, label %281

281:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %282 unwind label %289

282:                                              ; preds = %281
  %283 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %283, ptr noundef @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef @.str.1, i32 noundef 116) #5
          to label %284 unwind label %293

284:                                              ; preds = %282
  unreachable

285:                                              ; preds = %270
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %15, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %16, align 4
  br label %304

289:                                              ; preds = %281
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %15, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %16, align 4
  br label %297

293:                                              ; preds = %282
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %15, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  br label %297

297:                                              ; preds = %293, %289
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  br label %304

298:                                              ; preds = %280
  br label %299

299:                                              ; preds = %298
  br label %300

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300
  %302 = load i64, ptr %39, align 8, !tbaa !31
  %303 = add i64 %302, 1
  store i64 %303, ptr %39, align 8, !tbaa !31
  br label %262, !llvm.loop !33

304:                                              ; preds = %297, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %306

305:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  ret void

306:                                              ; preds = %304, %258, %226, %194, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %307

307:                                              ; preds = %306, %71
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  br label %308

308:                                              ; preds = %307, %67
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  br label %309

309:                                              ; preds = %308, %63
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr %15, align 8
  %312 = load i32, ptr %16, align 4
  %313 = insertvalue { ptr, i32 } poison, ptr %311, 0
  %314 = insertvalue { ptr, i32 } %313, i32 %312, 1
  resume { ptr, i32 } %314
}

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_0EbT_SN_T0_"(ptr, ptr) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_1EbT_SN_T0_"(ptr, ptr) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api10LaneSRangeESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS6_INS3_12RoadPositionESaISC_EESG_RKS8_PKNS3_11RoadNetworkEE3$_2EbT_SN_T0_"(ptr, ptr, ptr, ptr) #3

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_3EbT_SN_T0_"(ptr, ptr, ptr) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_4EbT_SN_T0_"(ptr, ptr, ptr) #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_130ValidateLaneSRangesAreAdjacentERKNS_3api10LaneSRangeES5_PKNS2_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #2

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

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

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

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

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN7maliput7routing5PhaseE", !10, i64 0, !12, i64 8, !15, i64 16, !15, i64 40, !19, i64 64, !6, i64 88}
!15 = !{!"_ZTSSt6vectorIN7maliput3api12RoadPositionESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!14, !12, i64 8}
!24 = !{!14, !6, i64 88}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSZN7maliput7routing5PhaseC1EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkEE3$_2", !6, i64 0, !6, i64 8}
!27 = !{!28, !6, i64 0}
!28 = !{!"_ZTSZN7maliput7routing5PhaseC1EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkEE3$_3", !6, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSZN7maliput7routing5PhaseC1EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkEE3$_4", !6, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"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::__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::allocator.85" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.85", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.85", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.85", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.85", align 1
  store i32 %1, ptr %0, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  store double %2, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %20 unwind label %26

20:                                               ; preds = %7
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %22 unwind label %28

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %6, ptr %23, align 8, !tbaa !21
  %24 = load i32, ptr %0, align 8, !tbaa !5
  %25 = icmp sgt i32 %24, -1
  br i1 %25, label %32, label %.invoke

26:                                               ; preds = %7
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %124

28:                                               ; preds = %20
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %123

30:                                               ; preds = %.invoke, %43, %36
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %122

32:                                               ; preds = %22
  %33 = fcmp ult double %2, 0.000000e+00
  br i1 %33, label %.invoke, label %34

34:                                               ; preds = %32
  %35 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br i1 %35, label %.invoke, label %36

36:                                               ; preds = %34
  %37 = tail call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %38 = tail call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %39 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_0EbT_SN_T0_"(ptr %37, ptr %38)
          to label %40 unwind label %30

40:                                               ; preds = %36
  br i1 %39, label %41, label %.invoke

41:                                               ; preds = %40
  %42 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br i1 %42, label %.invoke, label %43

43:                                               ; preds = %41
  %44 = tail call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %45 = tail call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %46 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_1EbT_SN_T0_"(ptr %44, ptr %45)
          to label %47 unwind label %30

47:                                               ; preds = %43
  br i1 %46, label %48, label %.invoke

48:                                               ; preds = %47
  %49 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br i1 %49, label %.invoke, label %50

50:                                               ; preds = %48
  %51 = load ptr, ptr %23, align 8, !tbaa !21
  %.not = icmp eq ptr %51, null
  br i1 %.not, label %.invoke, label %54

.invoke:                                          ; preds = %22, %50, %48, %47, %41, %40, %34, %32
  %52 = phi ptr [ @.str.5, %32 ], [ @.str.6, %34 ], [ @.str.7, %40 ], [ @.str.8, %41 ], [ @.str.9, %47 ], [ @.str.10, %48 ], [ @.str.11, %50 ], [ @.str.4, %22 ]
  %53 = phi i32 [ 86, %32 ], [ 87, %34 ], [ 89, %40 ], [ 90, %41 ], [ 92, %47 ], [ 93, %48 ], [ 94, %50 ], [ 85, %22 ]
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull %52, ptr noundef nonnull @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef %53) #6
          to label %.cont unwind label %30

.cont:                                            ; preds = %.invoke
  unreachable

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %55 = tail call noundef ptr @_ZNK7maliput3api11RoadNetwork13road_geometryEv(ptr noundef nonnull align 8 dereferenceable(88) %51)
  store ptr %55, ptr %8, align 8, !tbaa !22
  %56 = tail call ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %57 = tail call ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %58 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api10LaneSRangeESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS6_INS3_12RoadPositionESaISC_EESG_RKS8_PKNS3_11RoadNetworkEE3$_2EbT_SN_T0_"(ptr %56, ptr %57, ptr nonnull %0, ptr nonnull %8)
          to label %59 unwind label %64

59:                                               ; preds = %54
  br i1 %58, label %71, label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.12, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %61 unwind label %66

61:                                               ; preds = %60
  %62 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %62, ptr noundef nonnull @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef 101) #6
          to label %63 unwind label %68

63:                                               ; preds = %61
  unreachable

64:                                               ; preds = %85, %71, %54
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %121

66:                                               ; preds = %60
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %61
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %121

71:                                               ; preds = %59
  %72 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %73 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %74 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_3EbT_SN_T0_"(ptr %72, ptr %73, ptr nonnull %0)
          to label %75 unwind label %64

75:                                               ; preds = %71
  br i1 %74, label %85, label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %77 unwind label %80

77:                                               ; preds = %76
  %78 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %78, ptr noundef nonnull @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef 107) #6
          to label %79 unwind label %82

79:                                               ; preds = %77
  unreachable

80:                                               ; preds = %76
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %77
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %84

84:                                               ; preds = %82, %80
  %.pn36 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %121

85:                                               ; preds = %75
  %86 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %87 = call ptr @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %88 = invoke noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_4EbT_SN_T0_"(ptr %86, ptr %87, ptr nonnull %0)
          to label %89 unwind label %64

89:                                               ; preds = %85
  br i1 %88, label %.preheader, label %90

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.14, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %91 unwind label %94

91:                                               ; preds = %90
  %92 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %92, ptr noundef nonnull @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef 113) #6
          to label %93 unwind label %96

93:                                               ; preds = %91
  unreachable

94:                                               ; preds = %90
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %98

98:                                               ; preds = %96, %94
  %.pn38 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  br label %121

.preheader:                                       ; preds = %89, %109
  %.0 = phi i64 [ %105, %109 ], [ 0, %89 ]
  %99 = call noundef i64 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %100 = add i64 %99, -1
  %101 = icmp ult i64 %.0, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret void

103:                                              ; preds = %.preheader
  %104 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %.0) #5
  %105 = add nuw i64 %.0, 1
  %106 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %105) #5
  %107 = load ptr, ptr %8, align 8, !tbaa !22
  %108 = invoke noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_130ValidateLaneSRangesAreAdjacentERKNS_3api10LaneSRangeES5_PKNS2_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48) %104, ptr noundef nonnull align 8 dereferenceable(48) %106, ptr noundef %107)
          to label %109 unwind label %114

109:                                              ; preds = %103
  br i1 %108, label %.preheader, label %110, !llvm.loop !23

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %111 unwind label %116

111:                                              ; preds = %110
  %112 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef %112, ptr noundef nonnull @__func__._ZN7maliput7routing5PhaseC2EidRKSt6vectorINS_3api12RoadPositionESaIS4_EES8_RKS2_INS3_10LaneSRangeESaIS9_EEPKNS3_11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef 116) #6
          to label %113 unwind label %118

113:                                              ; preds = %111
  unreachable

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

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

118:                                              ; preds = %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %120

120:                                              ; preds = %118, %116
  %.pn40 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  br label %121

121:                                              ; preds = %114, %120, %98, %84, %70, %64
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn38, %98 ], [ %65, %64 ], [ %.pn36, %84 ], [ %.pn, %70 ], [ %.pn40, %120 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %122

122:                                              ; preds = %121, %30
  %.pn44 = phi { ptr, i32 } [ %31, %30 ], [ %.pn40.pn.pn, %121 ]
  call void @_ZNSt6vectorIN7maliput3api10LaneSRangeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br label %123

123:                                              ; preds = %122, %28
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %122 ], [ %29, %28 ]
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %124

124:                                              ; preds = %123, %26
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %123 ], [ %27, %26 ]
  call void @_ZNSt6vectorIN7maliput3api12RoadPositionESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  resume { ptr, i32 } %.pn44.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_0EbT_SN_T0_"(ptr, ptr) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_1EbT_SN_T0_"(ptr, ptr) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api10LaneSRangeESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS6_INS3_12RoadPositionESaISC_EESG_RKS8_PKNS3_11RoadNetworkEE3$_2EbT_SN_T0_"(ptr, ptr, ptr, ptr) local_unnamed_addr #3

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_3EbT_SN_T0_"(ptr, ptr, ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIN9__gnu_cxx17__normal_iteratorIPN7maliput3api12RoadPositionESt6vectorIS4_SaIS4_EEEEZNS2_7routing5PhaseC1EidRKS8_SD_RKS6_INS3_10LaneSRangeESaISE_EEPKNS3_11RoadNetworkEE3$_4EbT_SN_T0_"(ptr, ptr, ptr) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7maliput7routing12_GLOBAL__N_130ValidateLaneSRangesAreAdjacentERKNS_3api10LaneSRangeES5_PKNS2_12RoadGeometryE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN7maliput7routing5PhaseE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 40, !16, i64 64, !15, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIN7maliput3api12RoadPositionESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api12RoadPositionESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7maliput3api10LaneSRangeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!6, !10, i64 8}
!21 = !{!6, !15, i64 88}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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