; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::less" = type { i8 }
%"class.std::allocator.77" = type { i8 }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.80" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.maliput::utility::mesh::FaceEdgeIndex" = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7maliput7utility4mesh27IsMeshFaceCoplanarWithPlaneERKNS1_7GeoMeshERKNS1_9IndexFaceERKNS_4math7Vector3ESB_d(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7maliput7utility4mesh16IsMeshFacePlanarERKNS1_7GeoMeshERKNS1_9IndexFaceEdPNS_4math7Vector3ESA_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::set") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(56) %3, double noundef %4, ptr noundef %5) #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i1, align 1
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [1 x i32], align 4
  %17 = alloca %"struct.std::less", align 1
  %18 = alloca %"class.std::allocator.77", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.maliput::math::Vector3", align 8
  %22 = alloca %"class.maliput::math::Vector3", align 8
  %23 = alloca %"class.std::queue", align 8
  %24 = alloca %"class.std::deque", align 8
  %25 = alloca %"class.std::initializer_list", align 8
  %26 = alloca [1 x i32], align 4
  %27 = alloca %"class.std::allocator.77", align 1
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %"struct.std::pair.80", align 8
  %35 = alloca %"struct.std::pair.80", align 8
  %36 = alloca %"struct.std::pair.80", align 8
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store double %4, ptr %11, align 8, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %6
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp sle i32 0, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.6, ptr noundef @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef @.str.1, i32 noundef 117) #5
  unreachable

41:                                               ; preds = %37
  br label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7utility4mesh7GeoMesh5facesEv(ptr noundef nonnull align 8 dereferenceable(184) %43)
  store ptr %44, ptr %13, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %42
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  %49 = trunc i64 %48 to i32
  %50 = icmp slt i32 %46, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.7, ptr noundef @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef @.str.1, i32 noundef 119) #5
  unreachable

52:                                               ; preds = %45
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = load double, ptr %11, align 8, !tbaa !11
  %57 = fcmp ogt double %56, 0.000000e+00
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.8, ptr noundef @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef @.str.1, i32 noundef 120) #5
  unreachable

59:                                               ; preds = %55
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.9, ptr noundef @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef @.str.1, i32 noundef 121) #5
  unreachable

66:                                               ; preds = %62
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %70, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %72 = icmp eq i64 %71, 0
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef @.str.10, ptr noundef @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef @.str.1, i32 noundef 122) #5
  unreachable

74:                                               ; preds = %69
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  store i1 false, ptr %14, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %16, align 4, !tbaa !9
  %78 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %78, align 8, !tbaa !13
  %79 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 1, ptr %79, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  %80 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %83 = load i64, ptr %82, align 8
  invoke void @_ZNSt3setIiSt4lessIiESaIiEEC2ESt16initializer_listIiERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr %81, i64 %83, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %84 unwind label %124

84:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %85 unwind label %128

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %86 unwind label %132

86:                                               ; preds = %85
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #6
  %92 = load double, ptr %11, align 8, !tbaa !11
  %93 = invoke noundef zeroext i1 @_ZN7maliput7utility4mesh16IsMeshFacePlanarERKNS1_7GeoMeshERKNS1_9IndexFaceEdPNS_4math7Vector3ESA_(ptr noundef nonnull align 8 dereferenceable(184) %87, ptr noundef nonnull align 8 dereferenceable(24) %91, double noundef %92, ptr noundef %21, ptr noundef %22)
          to label %94 unwind label %132

94:                                               ; preds = %86
  br i1 %93, label %95, label %225

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %96 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %96, ptr %26, align 4, !tbaa !9
  %97 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 0
  store ptr %26, ptr %97, align 8, !tbaa !13
  %98 = getelementptr inbounds %"class.std::initializer_list", ptr %25, i32 0, i32 1
  store i64 1, ptr %98, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  %99 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %102 = load i64, ptr %101, align 8
  invoke void @_ZNSt5dequeIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %24, ptr %100, i64 %102, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %103 unwind label %136

103:                                              ; preds = %95
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(80) %23, ptr noundef nonnull align 8 dereferenceable(80) %24)
          to label %104 unwind label %140

104:                                              ; preds = %103
  call void @_ZNSt5dequeIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #6
  br label %105

105:                                              ; preds = %214, %104
  %106 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %107 unwind label %145

107:                                              ; preds = %105
  %108 = xor i1 %106, true
  br i1 %108, label %109, label %222

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %110 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %111 unwind label %149

111:                                              ; preds = %109
  %112 = load i32, ptr %110, align 4, !tbaa !9
  store i32 %112, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIiSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS4_EESt4hashIiESt8equal_toIiESaISt4pairIKiS6_EEE2atERSC_(ptr noundef nonnull align 8 dereferenceable(56) %113, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %115 unwind label %153

115:                                              ; preds = %111
  store ptr %114, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %116 = load ptr, ptr %29, align 8, !tbaa !5
  %117 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #6
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %203, %115
  %120 = load i32, ptr %31, align 4, !tbaa !9
  %121 = load i32, ptr %30, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %157, label %123

123:                                              ; preds = %119
  store i32 14, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %206

124:                                              ; preds = %76
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %19, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %239

128:                                              ; preds = %84
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %19, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %20, align 4
  br label %236

132:                                              ; preds = %225, %86, %85
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %19, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %20, align 4
  br label %235

136:                                              ; preds = %95
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %19, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %20, align 4
  br label %144

140:                                              ; preds = %103
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %19, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %20, align 4
  call void @_ZNSt5dequeIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %24) #6
  br label %144

144:                                              ; preds = %140, %136
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #6
  br label %224

145:                                              ; preds = %105
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %19, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %20, align 4
  br label %223

149:                                              ; preds = %109
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %19, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %20, align 4
  br label %221

153:                                              ; preds = %111
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %19, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %20, align 4
  br label %220

157:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %158 = load ptr, ptr %29, align 8, !tbaa !5
  %159 = load i32, ptr %31, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #6
  %162 = getelementptr inbounds %"struct.maliput::utility::mesh::FaceEdgeIndex", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4, !tbaa !17
  store i32 %163, ptr %33, align 4, !tbaa !9
  %164 = load i32, ptr %33, align 4, !tbaa !9
  %165 = icmp eq i32 %164, -1
  br i1 %165, label %166, label %167

166:                                              ; preds = %157
  store i32 16, ptr %32, align 4
  br label %200

167:                                              ; preds = %157
  %168 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %169 unwind label %172

169:                                              ; preds = %167
  %170 = icmp ugt i64 %168, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %169
  store i32 16, ptr %32, align 4
  br label %200

172:                                              ; preds = %193, %191, %182, %176, %167
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %19, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %219

176:                                              ; preds = %169
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %177, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %179 unwind label %172

179:                                              ; preds = %176
  %180 = icmp ugt i64 %178, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  store i32 16, ptr %32, align 4
  br label %200

182:                                              ; preds = %179
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = load i32, ptr %33, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #6
  %188 = load double, ptr %11, align 8, !tbaa !11
  %189 = invoke noundef zeroext i1 @_ZN7maliput7utility4mesh27IsMeshFaceCoplanarWithPlaneERKNS1_7GeoMeshERKNS1_9IndexFaceERKNS_4math7Vector3ESB_d(ptr noundef nonnull align 8 dereferenceable(184) %183, ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22, double noundef %188)
          to label %190 unwind label %172

190:                                              ; preds = %182
  br i1 %189, label %191, label %199

191:                                              ; preds = %190
  %192 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %193 unwind label %172

193:                                              ; preds = %191
  %194 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 0
  %195 = extractvalue { ptr, i8 } %192, 0
  store ptr %195, ptr %194, align 8
  %196 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 1
  %197 = extractvalue { ptr, i8 } %192, 1
  store i8 %197, ptr %196, align 8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %23, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %198 unwind label %172

198:                                              ; preds = %193
  br label %199

199:                                              ; preds = %198, %190
  store i32 0, ptr %32, align 4
  br label %200

200:                                              ; preds = %199, %181, %171, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  %201 = load i32, ptr %32, align 4
  switch i32 %201, label %245 [
    i32 0, label %202
    i32 16, label %203
  ]

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202, %200
  %204 = load i32, ptr %31, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %31, align 4, !tbaa !9
  br label %119, !llvm.loop !19

206:                                              ; preds = %123
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %207, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %209 unwind label %215

209:                                              ; preds = %206
  %210 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 0
  %211 = extractvalue { ptr, i8 } %208, 0
  store ptr %211, ptr %210, align 8
  %212 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 1
  %213 = extractvalue { ptr, i8 } %208, 1
  store i8 %213, ptr %212, align 8
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %214 unwind label %215

214:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %105, !llvm.loop !21

215:                                              ; preds = %209, %206
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %19, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %20, align 4
  br label %219

219:                                              ; preds = %215, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %220

220:                                              ; preds = %219, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %221

221:                                              ; preds = %220, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %223

222:                                              ; preds = %107
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #6
  br label %233

223:                                              ; preds = %221, %145
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #6
  br label %224

224:                                              ; preds = %223, %144
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #6
  br label %235

225:                                              ; preds = %94
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %226, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %228 unwind label %132

228:                                              ; preds = %225
  %229 = getelementptr inbounds { ptr, i8 }, ptr %36, i32 0, i32 0
  %230 = extractvalue { ptr, i8 } %227, 0
  store ptr %230, ptr %229, align 8
  %231 = getelementptr inbounds { ptr, i8 }, ptr %36, i32 0, i32 1
  %232 = extractvalue { ptr, i8 } %227, 1
  store i8 %232, ptr %231, align 8
  br label %233

233:                                              ; preds = %228, %222
  store i1 true, ptr %14, align 1
  store i32 1, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  %234 = load i1, ptr %14, align 1
  br i1 %234, label %238, label %237

235:                                              ; preds = %224, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %236

236:                                              ; preds = %235, %128
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %239

237:                                              ; preds = %233
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %238

238:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret void

239:                                              ; preds = %236, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %19, align 8
  %242 = load i32, ptr %20, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244

245:                                              ; preds = %200
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEEC2ESt16initializer_listIiERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listIiE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN7maliput7utility4mesh13FaceEdgeIndexE", !10, i64 0, !10, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::less" = type { i8 }
%"class.std::allocator.77" = type { i8 }
%"class.maliput::math::Vector3" = type { %"class.maliput::math::VectorBase" }
%"class.maliput::math::VectorBase" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x double] }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7maliput7utility4mesh27IsMeshFaceCoplanarWithPlaneERKNS1_7GeoMeshERKNS1_9IndexFaceERKNS_4math7Vector3ESB_d(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7maliput7utility4mesh16IsMeshFacePlanarERKNS1_7GeoMeshERKNS1_9IndexFaceEdPNS_4math7Vector3ESA_(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE(ptr dead_on_unwind noalias writable sret(%"class.std::set") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(56) %3, double noundef %4, ptr noundef %5) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca [1 x i32], align 4
  %9 = alloca %"struct.std::less", align 1
  %10 = alloca %"class.std::allocator.77", align 1
  %11 = alloca %"class.maliput::math::Vector3", align 8
  %12 = alloca %"class.maliput::math::Vector3", align 8
  %13 = alloca %"class.std::queue", align 8
  %14 = alloca %"class.std::deque", align 8
  %15 = alloca [1 x i32], align 4
  %16 = alloca %"class.std::allocator.77", align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 %2, ptr %7, align 4, !tbaa !5
  %19 = icmp sgt i32 %2, -1
  br i1 %19, label %21, label %20

20:                                               ; preds = %6
  tail call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef nonnull @.str.1, i32 noundef 117) #5
  unreachable

21:                                               ; preds = %6
  %22 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput7utility4mesh7GeoMesh5facesEv(ptr noundef nonnull align 8 dereferenceable(184) %1)
  %23 = tail call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %24 = trunc i64 %23 to i32
  %25 = icmp sgt i32 %24, %2
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  tail call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef nonnull @.str.1, i32 noundef 119) #5
  unreachable

27:                                               ; preds = %21
  %28 = fcmp ogt double %4, 0.000000e+00
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  tail call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef nonnull @.str.1, i32 noundef 120) #5
  unreachable

30:                                               ; preds = %27
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %31, label %32

31:                                               ; preds = %30
  tail call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef nonnull @.str.1, i32 noundef 121) #5
  unreachable

32:                                               ; preds = %30
  %33 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  call void @_ZN7maliput6common8internal5AbortEPKcS3_S3_i(ptr noundef nonnull @.str.10, ptr noundef nonnull @__func__._ZN7maliput7utility4mesh34AggregateAdjacentCoplanarMeshFacesERKNS1_7GeoMeshEiRKSt13unordered_mapIiSt6vectorINS1_13FaceEdgeIndexESaIS7_EESt4hashIiESt8equal_toIiESaISt4pairIKiS9_EEEdPSt3setIiSt4lessIiESaIiEE, ptr noundef nonnull @.str.1, i32 noundef 122) #5
  unreachable

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %37 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %37, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt3setIiSt4lessIiESaIiEEC2ESt16initializer_listIiERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr nonnull %8, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %38 unwind label %59

38:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %39 unwind label %61

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  invoke void @_ZN7maliput4math7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %40 unwind label %63

40:                                               ; preds = %39
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %42) #6
  %44 = invoke noundef zeroext i1 @_ZN7maliput7utility4mesh16IsMeshFacePlanarERKNS1_7GeoMeshERKNS1_9IndexFaceEdPNS_4math7Vector3ESA_(ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(24) %43, double noundef %4, ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %45 unwind label %63

45:                                               ; preds = %40
  br i1 %44, label %46, label %99

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %47 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %47, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt5dequeIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr nonnull %15, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %48 unwind label %65

48:                                               ; preds = %46
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %49 unwind label %67

49:                                               ; preds = %48
  call void @_ZNSt5dequeIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #6
  %50 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  br i1 %50, label %._crit_edge53, label %.lr.ph52

.lr.ph52:                                         ; preds = %49, %93
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  %52 = load i32, ptr %51, align 4, !tbaa !5
  store i32 %52, ptr %17, align 4, !tbaa !5
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt13unordered_mapIiSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS4_EESt4hashIiESt8equal_toIiESaISt4pairIKiS6_EEE2atERSC_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %54 unwind label %70

54:                                               ; preds = %.lr.ph52
  %55 = call noundef i64 @_ZNKSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %56 = trunc i64 %55 to i32
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %54
  %wide.trip.count = and i64 %55, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %92, %54
  %58 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %93 unwind label %95

59:                                               ; preds = %36
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %104

61:                                               ; preds = %38
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %103

63:                                               ; preds = %99, %40, %39
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %102

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

67:                                               ; preds = %48
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt5dequeIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #6
  br label %98

70:                                               ; preds = %.lr.ph52
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %97

.lr.ph:                                           ; preds = %.lr.ph.preheader, %92
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %92 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN7maliput7utility4mesh13FaceEdgeIndexESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %73 = load i32, ptr %72, align 4, !tbaa !9
  store i32 %73, ptr %18, align 4, !tbaa !5
  %74 = icmp eq i32 %73, -1
  br i1 %74, label %92, label %75

75:                                               ; preds = %.lr.ph
  %76 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %77 unwind label %78

77:                                               ; preds = %75
  %.not41 = icmp eq i64 %76, 0
  br i1 %.not41, label %80, label %92

78:                                               ; preds = %91, %89, %83, %80, %75
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  br label %97

80:                                               ; preds = %77
  %81 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %82 unwind label %78

82:                                               ; preds = %80
  %.not42 = icmp eq i64 %81, 0
  br i1 %.not42, label %83, label %92

83:                                               ; preds = %82
  %84 = load i32, ptr %18, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIN7maliput7utility4mesh9IndexFaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %85) #6
  %87 = invoke noundef zeroext i1 @_ZN7maliput7utility4mesh27IsMeshFaceCoplanarWithPlaneERKNS1_7GeoMeshERKNS1_9IndexFaceERKNS_4math7Vector3ESB_d(ptr noundef nonnull align 8 dereferenceable(184) %1, ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %4)
          to label %88 unwind label %78

88:                                               ; preds = %83
  br i1 %87, label %89, label %92

89:                                               ; preds = %88
  %90 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %91 unwind label %78

91:                                               ; preds = %89
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %13, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %92 unwind label %78

92:                                               ; preds = %88, %91, %82, %77, %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

93:                                               ; preds = %._crit_edge
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  %94 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %13)
  br i1 %94, label %._crit_edge53, label %.lr.ph52, !llvm.loop !13

95:                                               ; preds = %._crit_edge
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %97

97:                                               ; preds = %78, %95, %70
  %.pn43.pn = phi { ptr, i32 } [ %71, %70 ], [ %79, %78 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  br label %98

._crit_edge53:                                    ; preds = %93, %49
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  br label %101

98:                                               ; preds = %97, %69
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %97 ], [ %.pn, %69 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #6
  br label %102

99:                                               ; preds = %45
  %100 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %101 unwind label %63

101:                                              ; preds = %99, %._crit_edge53
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  ret void

102:                                              ; preds = %98, %63
  %.pn43.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn, %98 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %103

103:                                              ; preds = %102, %61
  %.pn43.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn.pn, %102 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %104

104:                                              ; preds = %103, %59
  %.pn43.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn43.pn.pn.pn.pn, %103 ], [ %60, %59 ]
  resume { ptr, i32 } %.pn43.pn.pn.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEEC2ESt16initializer_listIiERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5dequeIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN7maliput7utility4mesh13FaceEdgeIndexE", !6, i64 0, !6, i64 4}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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