; LLVM IR from maliput/maliput :: src/maliput/utility (mesh_simplification)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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 }
%"struct.maliput::utility::mesh::DirectedEdgeIndex" = type { i32, i32 }
%"struct.maliput::utility::mesh::FaceEdgeIndex" = type { i32, i32 }
%"struct.maliput::utility::mesh::IndexFace::Vertex" = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@__func__._ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: noreturn
declare void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.std::unordered_map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.maliput::utility::mesh::DirectedEdgeIndex", align 4
  %17 = alloca %"struct.maliput::utility::mesh::FaceEdgeIndex", align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %93, %2
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %97

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7utility4mesh9IndexFace8verticesEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %33 unwind label %42

33:                                               ; preds = %26
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %36 = trunc i64 %35 to i32
  store i32 %36, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %84, %33
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = load i32, ptr %13, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %46, label %41

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

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  br label %96

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = srem i32 %48, %49
  store i32 %50, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %51 = getelementptr inbounds %"struct.maliput::utility::mesh::DirectedEdgeIndex", ptr %16, i32 0, i32 0
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
  %56 = getelementptr inbounds %"struct.maliput::utility::mesh::IndexFace::Vertex", ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !11
  store i32 %57, ptr %51, align 4, !tbaa !13
  %58 = getelementptr inbounds %"struct.maliput::utility::mesh::DirectedEdgeIndex", ptr %16, i32 0, i32 1
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #6
  %63 = getelementptr inbounds %"struct.maliput::utility::mesh::IndexFace::Vertex", ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !11
  store i32 %64, ptr %58, align 4, !tbaa !15
  br label %65

65:                                               ; preds = %46
  %66 = invoke noundef i64 @_ZNKSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %67 unwind label %71

67:                                               ; preds = %65
  %68 = icmp eq i64 %66, 0
  br i1 %68, label %75, label %69

69:                                               ; preds = %67
  invoke void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.2, ptr noundef @__func__._ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE, ptr noundef @.str.1, i32 noundef 63) #7
          to label %70 unwind label %71

70:                                               ; preds = %69
  unreachable

71:                                               ; preds = %69, %65
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  br label %91

75:                                               ; preds = %67
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %78 = getelementptr inbounds %"struct.maliput::utility::mesh::FaceEdgeIndex", ptr %17, i32 0, i32 0
  %79 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %79, ptr %78, align 4, !tbaa !16
  %80 = getelementptr inbounds %"struct.maliput::utility::mesh::FaceEdgeIndex", ptr %17, i32 0, i32 1
  %81 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %81, ptr %80, align 4, !tbaa !18
  %82 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %83 unwind label %87

83:                                               ; preds = %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %14, align 4, !tbaa !9
  br label %37, !llvm.loop !20

87:                                               ; preds = %77
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %91

91:                                               ; preds = %87, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %96

92:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !9
  br label %21, !llvm.loop !22

96:                                               ; preds = %91, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #6
  br label %101

97:                                               ; preds = %25
  store i1 true, ptr %5, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %98 = load i1, ptr %5, align 1
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  call void @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #6
  br label %100

100:                                              ; preds = %99, %97
  ret void

101:                                              ; preds = %96
  %102 = load ptr, ptr %11, align 8
  %103 = load i32, ptr %12, align 4
  %104 = insertvalue { ptr, i32 } poison, ptr %102, 0
  %105 = insertvalue { ptr, i32 } %104, i32 %103, 1
  resume { ptr, i32 } %105
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN7maliput7utility4mesh9IndexFace6VertexE", !10, i64 0, !10, i64 4}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN7maliput7utility4mesh17DirectedEdgeIndexE", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN7maliput7utility4mesh13FaceEdgeIndexE", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 4}
!19 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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::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 }
%"struct.maliput::utility::mesh::DirectedEdgeIndex" = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@__func__._ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE = external hidden unnamed_addr constant [26 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::unordered_map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.maliput::utility::mesh::DirectedEdgeIndex", align 4
  tail call void @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  %4 = tail call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %5 = trunc i64 %4 to i32
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph29, label %._crit_edge30

.lr.ph29:                                         ; preds = %2
  %7 = getelementptr inbounds i8, ptr %3, i64 4
  %wide.trip.count35 = and i64 %4, 2147483647
  br label %8

8:                                                ; preds = %.lr.ph29, %._crit_edge
  %indvars.iv32 = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next33, %._crit_edge ]
  %9 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv32) #5
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7utility4mesh9IndexFace8verticesEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %12 = trunc i64 %11 to i32
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %8
  %14 = and i64 %11, 2147483647
  %15 = trunc nuw nsw i64 %indvars.iv32 to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %30, %8
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %exitcond36.not = icmp eq i64 %indvars.iv.next33, %wide.trip.count35
  br i1 %exitcond36.not, label %._crit_edge30, label %8, !llvm.loop !5

.lr.ph:                                           ; preds = %.lr.ph.preheader, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %30 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = icmp eq i64 %indvars.iv.next, %14
  %17 = and i64 %indvars.iv.next, 4294967295
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %18 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv) #5
  %19 = load i32, ptr %18, align 4, !tbaa !7
  store i32 %19, ptr %3, align 4, !tbaa !12
  %20 = select i1 %16, i64 0, i64 %17
  %21 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFace6VertexESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %20) #5
  %22 = load i32, ptr %21, align 4, !tbaa !7
  store i32 %22, ptr %7, align 4, !tbaa !14
  %23 = invoke noundef i64 @_ZNKSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %24 unwind label %.loopexit

24:                                               ; preds = %.lr.ph
  %25 = icmp eq i64 %23, 0
  br i1 %25, label %28, label %26

26:                                               ; preds = %24
  invoke void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh25ComputeInverseFaceEdgeMapERKSt6vectorINS1_9IndexFaceESaIS3_EE, ptr noundef nonnull @.str.1, i32 noundef 63) #6
          to label %27 unwind label %.loopexit.split-lp

27:                                               ; preds = %26
  unreachable

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %34

.loopexit.split-lp:                               ; preds = %26
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %34

28:                                               ; preds = %24
  %29 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEEixERSD_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %30 unwind label %32

30:                                               ; preds = %28
  store i32 %15, ptr %29, align 4, !tbaa !15
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 4
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %31, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %exitcond.not = icmp eq i64 %indvars.iv.next, %14
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

32:                                               ; preds = %28
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %34

34:                                               ; preds = %.loopexit, %.loopexit.split-lp, %32
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @_ZNSt13unordered_mapIN7maliput7utility4mesh17DirectedEdgeIndexENS2_13FaceEdgeIndexENS0_6common5uhashINS5_8internal11FNV1aHasherEEESt8equal_toIS3_ESaISt4pairIKS3_S4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  resume { ptr, i32 } %.pn

._crit_edge30:                                    ; preds = %._crit_edge, %2
  ret void
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTSN7maliput7utility4mesh9IndexFace6VertexE", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!13, !9, i64 0}
!13 = !{!"_ZTSN7maliput7utility4mesh17DirectedEdgeIndexE", !9, i64 0, !9, i64 4}
!14 = !{!13, !9, i64 4}
!15 = !{!9, !9, i64 0}
!16 = distinct !{!16, !6}


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