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

; 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"

%"struct.maliput::routing::Route::LaneSRangeIndex" = type { i64, i64 }
%"class.maliput::routing::Route" = type { %"class.std::vector", %"class.std::unordered_map", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl" }
%"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl" = type { %"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl_data" }
%"struct.std::_Vector_base<maliput::routing::Phase, std::allocator<maliput::routing::Phase>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@__func__._ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.maliput::routing::Route::LaneSRangeIndex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
  %17 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 1
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #5
  %18 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 2
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %19, ptr %18, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %3
  %21 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 0
  %22 = call noundef zeroext i1 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br i1 %22, label %23, label %29

23:                                               ; preds = %20
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str, ptr noundef @__func__._ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE, ptr noundef @.str.1, i32 noundef 48) #6
          to label %24 unwind label %25

24:                                               ; preds = %23
  unreachable

25:                                               ; preds = %36, %23
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %7, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %8, align 4
  br label %95

29:                                               ; preds = %20
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = icmp ne ptr %34, null
  br i1 %35, label %38, label %36

36:                                               ; preds = %32
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE, ptr noundef @.str.1, i32 noundef 49) #6
          to label %37 unwind label %25

37:                                               ; preds = %36
  unreachable

38:                                               ; preds = %32
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !21
  br label %41

41:                                               ; preds = %90, %40
  %42 = load i64, ptr %9, align 8, !tbaa !21
  %43 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 0
  %44 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  %45 = icmp ult i64 %42, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  store i32 6, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %94

47:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %48 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 0
  %49 = load i64, ptr %9, align 8, !tbaa !21
  %50 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #5
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13lane_s_rangesEv(ptr noundef nonnull align 8 dereferenceable(96) %50)
          to label %52 unwind label %59

52:                                               ; preds = %47
  store ptr %51, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !21
  br label %53

53:                                               ; preds = %77, %52
  %54 = load i64, ptr %12, align 8, !tbaa !21
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call noundef i64 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  %57 = icmp ult i64 %54, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %53
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %89

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %93

63:                                               ; preds = %53
  %64 = getelementptr inbounds %"class.maliput::routing::Route", ptr %14, i32 0, i32 1
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = load i64, ptr %12, align 8, !tbaa !21
  %67 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %66) #5
  %68 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api10LaneSRange7lane_idEv(ptr noundef nonnull align 8 dereferenceable(48) %67)
          to label %69 unwind label %80

69:                                               ; preds = %63
  %70 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56) %64, ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %71 unwind label %80

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %72 = getelementptr inbounds %"struct.maliput::routing::Route::LaneSRangeIndex", ptr %13, i32 0, i32 0
  %73 = load i64, ptr %9, align 8, !tbaa !21
  store i64 %73, ptr %72, align 8, !tbaa !22
  %74 = getelementptr inbounds %"struct.maliput::routing::Route::LaneSRangeIndex", ptr %13, i32 0, i32 1
  %75 = load i64, ptr %12, align 8, !tbaa !21
  store i64 %75, ptr %74, align 8, !tbaa !24
  invoke void @_ZNSt6vectorIN7maliput7routing5Route15LaneSRangeIndexESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %76 unwind label %84

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

77:                                               ; preds = %76
  %78 = load i64, ptr %12, align 8, !tbaa !21
  %79 = add i64 %78, 1
  store i64 %79, ptr %12, align 8, !tbaa !21
  br label %53, !llvm.loop !25

80:                                               ; preds = %69, %63
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  br label %88

84:                                               ; preds = %71
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %93

89:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %90

90:                                               ; preds = %89
  %91 = load i64, ptr %9, align 8, !tbaa !21
  %92 = add i64 %91, 1
  store i64 %92, ptr %9, align 8, !tbaa !21
  br label %41, !llvm.loop !27

93:                                               ; preds = %88, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %95

94:                                               ; preds = %46
  ret void

95:                                               ; preds = %93, %25
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #5
  call void @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %7, align 8
  %98 = load i32, ptr %8, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 80}
!10 = !{!"_ZTSN7maliput7routing5RouteE", !11, i64 0, !15, i64 24, !6, i64 80}
!11 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_HashtableIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt4pairIKS4_St6vectorINS0_7routing5Route15LaneSRangeIndexESaISA_EEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32, !6, i64 48}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!19 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !20, i64 0, !17, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!23, !17, i64 0}
!23 = !{!"_ZTSN7maliput7routing5Route15LaneSRangeIndexE", !17, i64 0, !17, i64 8}
!24 = !{!23, !17, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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"

%"struct.maliput::routing::Route::LaneSRangeIndex" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@__func__._ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.maliput::routing::Route::LaneSRangeIndex", align 8
  tail call void @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %2, ptr %6, align 8, !tbaa !5
  %7 = tail call noundef zeroext i1 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br i1 %7, label %.invoke, label %10

8:                                                ; preds = %.invoke
  %9 = landingpad { ptr, i32 }
          cleanup
  br label %35

10:                                               ; preds = %3
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %.invoke, label %.preheader

.preheader:                                       ; preds = %10
  %12 = tail call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not25 = icmp eq i64 %12, 0
  br i1 %.not25, label %._crit_edge24, label %.lr.ph23

.lr.ph23:                                         ; preds = %.preheader
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  br label %16

.invoke:                                          ; preds = %3, %10
  %14 = phi ptr [ @.str.2, %10 ], [ @.str, %3 ]
  %15 = phi i32 [ 49, %10 ], [ 48, %3 ]
  invoke void @_ZN7maliput6common8internal5ThrowEPKcS3_S3_i(ptr noundef nonnull %14, ptr noundef nonnull @__func__._ZN7maliput7routing5RouteC2ERKSt6vectorINS0_5PhaseESaIS3_EEPKNS_3api11RoadNetworkE, ptr noundef nonnull @.str.1, i32 noundef %15) #6
          to label %.cont unwind label %8

.cont:                                            ; preds = %.invoke
  unreachable

._crit_edge24:                                    ; preds = %._crit_edge, %.preheader
  ret void

16:                                               ; preds = %.lr.ph23, %._crit_edge
  %.01522 = phi i64 [ 0, %.lr.ph23 ], [ %20, %._crit_edge ]
  %17 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.01522) #5
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7routing5Phase13lane_s_rangesEv(ptr noundef nonnull align 8 dereferenceable(96) %17)
  %19 = call noundef i64 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %.not26 = icmp eq i64 %19, 0
  br i1 %.not26, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %27, %16
  %20 = add nuw i64 %.01522, 1
  %21 = call noundef i64 @_ZNKSt6vectorIN7maliput7routing5PhaseESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %22 = icmp ult i64 %20, %21
  br i1 %22, label %16, label %._crit_edge24, !llvm.loop !20

.lr.ph:                                           ; preds = %16, %27
  %.021 = phi i64 [ %28, %27 ], [ 0, %16 ]
  %23 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.021) #5
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api10LaneSRange7lane_idEv(ptr noundef nonnull align 8 dereferenceable(48) %23)
  %25 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %26 unwind label %31

26:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  store i64 %.01522, ptr %4, align 8, !tbaa !22
  store i64 %.021, ptr %13, align 8, !tbaa !24
  invoke void @_ZNSt6vectorIN7maliput7routing5Route15LaneSRangeIndexESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %27 unwind label %33

27:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %28 = add nuw i64 %.021, 1
  %29 = call noundef i64 @_ZNKSt6vectorIN7maliput3api10LaneSRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !25

31:                                               ; preds = %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %35

35:                                               ; preds = %31, %33, %8
  %.pn19 = phi { ptr, i32 } [ %9, %8 ], [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #5
  call void @_ZNSt6vectorIN7maliput7routing5PhaseESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn19
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7maliput7routing5Route15LaneSRangeIndexESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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, !11, i64 80}
!6 = !{!"_ZTSN7maliput7routing5RouteE", !7, i64 0, !14, i64 24, !11, i64 80}
!7 = !{!"_ZTSSt6vectorIN7maliput7routing5PhaseESaIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN7maliput7routing5PhaseESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt13unordered_mapIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt6vectorINS0_7routing5Route15LaneSRangeIndexESaIS8_EESt4hashIS4_ESt8equal_toIS4_ESaISt4pairIKS4_SA_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIN7maliput3api22TypeSpecificIdentifierINS1_4LaneEEESt4pairIKS4_St6vectorINS0_7routing5Route15LaneSRangeIndexESaISA_EEESaISD_ENSt8__detail10_Select1stESt8equal_toIS4_ESt4hashIS4_ENSF_18_Mod_range_hashingENSF_20_Default_ranged_hashENSF_20_Prime_rehash_policyENSF_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !11, i64 48}
!16 = !{!"long", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !16, i64 0}
!23 = !{!"_ZTSN7maliput7routing5Route15LaneSRangeIndexE", !16, i64 0, !16, i64 8}
!24 = !{!23, !16, i64 8}
!25 = distinct !{!25, !21}


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