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

; 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_set" = 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 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl" }
%"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl" = type { %"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.maliput::api::LaneEnd" = type <{ ptr, i32, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility21FindConfluentSegmentsEPKNS_3api7SegmentE(ptr dead_on_unwind noalias writable sret(%"class.std::unordered_set") align 8 %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::queue", align 8
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::initializer_list", align 8
  %15 = alloca [2 x i32], align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #5
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEEC2IS7_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  store i1 false, ptr %6, align 1
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  invoke void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %25 unwind label %42

25:                                               ; preds = %2
  br label %26

26:                                               ; preds = %171, %25
  %27 = invoke noundef zeroext i1 @_ZNKSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %28 unwind label %42

28:                                               ; preds = %26
  %29 = xor i1 %27, true
  br i1 %29, label %30, label %173

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %32 unwind label %46

32:                                               ; preds = %30
  %33 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %33, ptr %9, align 8, !tbaa !5
  invoke void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %34 unwind label %46

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %166, %34
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = invoke noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %39 unwind label %50

39:                                               ; preds = %35
  %40 = icmp slt i32 %36, %38
  br i1 %40, label %54, label %41

41:                                               ; preds = %39
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %171

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

46:                                               ; preds = %32, %30
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %172

50:                                               ; preds = %35
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %170

54:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = invoke noundef ptr @_ZNK7maliput3api7Segment4laneEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %56)
          to label %58 unwind label %62

58:                                               ; preds = %54
  store ptr %57, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %66, label %61

61:                                               ; preds = %58
  store i32 6, ptr %11, align 4
  br label %163

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

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !11
  %67 = getelementptr inbounds i32, ptr %15, i64 1
  store i32 1, ptr %67, align 4, !tbaa !11
  %68 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 0
  store ptr %15, ptr %68, align 8, !tbaa !13
  %69 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 1
  store i64 2, ptr %69, align 8, !tbaa !16
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = call noundef ptr @_ZNKSt16initializer_listIN7maliput3api7LaneEnd5WhichEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %70) #5
  store ptr %71, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = call noundef ptr @_ZNKSt16initializer_listIN7maliput3api7LaneEnd5WhichEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %72) #5
  store ptr %73, ptr %17, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %158, %66
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = icmp ne ptr %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %162

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !11
  store i32 %81, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i32, ptr %18, align 4, !tbaa !11
  %84 = invoke noundef ptr @_ZNK7maliput3api4Lane20GetConfluentBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %83)
          to label %85 unwind label %89

85:                                               ; preds = %79
  store ptr %84, ptr %19, align 8, !tbaa !5
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  store i32 8, ptr %11, align 4
  br label %152

89:                                               ; preds = %79
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %161

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %146, %93
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = invoke noundef i32 @_ZNK7maliput3api10LaneEndSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %96)
          to label %98 unwind label %101

98:                                               ; preds = %94
  %99 = icmp slt i32 %95, %97
  br i1 %99, label %105, label %100

100:                                              ; preds = %98
  store i32 9, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %151

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %150

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7maliput3api10LaneEndSet3getEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %107)
          to label %109 unwind label %117

109:                                              ; preds = %105
  %110 = getelementptr inbounds %"struct.maliput::api::LaneEnd", ptr %108, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  %112 = invoke noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8) %111)
          to label %113 unwind label %117

113:                                              ; preds = %109
  store ptr %112, ptr %21, align 8, !tbaa !5
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %121, label %116

116:                                              ; preds = %113
  store i32 11, ptr %11, align 4
  br label %143

117:                                              ; preds = %131, %130, %109, %105
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %8, align 4
  br label %149

121:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %122 = invoke ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %123 unwind label %138

123:                                              ; preds = %121
  %124 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %22, i32 0, i32 0
  %125 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %124, i32 0, i32 0
  store ptr %122, ptr %125, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %126 = call ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  %127 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %128 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %127, i32 0, i32 0
  store ptr %126, ptr %128, align 8
  %129 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseIPKN7maliput3api7SegmentELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br i1 %129, label %130, label %142

130:                                              ; preds = %123
  invoke void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %131 unwind label %117

131:                                              ; preds = %130
  %132 = invoke { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %133 unwind label %117

133:                                              ; preds = %131
  %134 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %135 = extractvalue { ptr, i8 } %132, 0
  store ptr %135, ptr %134, align 8
  %136 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %137 = extractvalue { ptr, i8 } %132, 1
  store i8 %137, ptr %136, align 8
  br label %142

138:                                              ; preds = %121
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %149

142:                                              ; preds = %133, %123
  store i32 0, ptr %11, align 4
  br label %143

143:                                              ; preds = %142, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %144 = load i32, ptr %11, align 4
  switch i32 %144, label %183 [
    i32 0, label %145
    i32 11, label %146
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %143
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %20, align 4, !tbaa !9
  br label %94, !llvm.loop !19

149:                                              ; preds = %138, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %150

150:                                              ; preds = %149, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %161

151:                                              ; preds = %100
  store i32 0, ptr %11, align 4
  br label %152

152:                                              ; preds = %151, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %153 = load i32, ptr %11, align 4
  switch i32 %153, label %155 [
    i32 0, label %154
  ]

154:                                              ; preds = %152
  store i32 0, ptr %11, align 4
  br label %155

155:                                              ; preds = %154, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %156 = load i32, ptr %11, align 4
  switch i32 %156, label %183 [
    i32 0, label %157
    i32 8, label %158
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157, %155
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = getelementptr inbounds i32, ptr %159, i32 1
  store ptr %160, ptr %16, align 8, !tbaa !5
  br label %74

161:                                              ; preds = %150, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %169

162:                                              ; preds = %78
  store i32 0, ptr %11, align 4
  br label %163

163:                                              ; preds = %162, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %164 = load i32, ptr %11, align 4
  switch i32 %164, label %183 [
    i32 0, label %165
    i32 6, label %166
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165, %163
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %10, align 4, !tbaa !9
  br label %35, !llvm.loop !21

169:                                              ; preds = %161, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %170

170:                                              ; preds = %169, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %172

171:                                              ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %26, !llvm.loop !22

172:                                              ; preds = %170, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %177

173:                                              ; preds = %28
  store i1 true, ptr %6, align 1
  store i32 1, ptr %11, align 4
  %174 = load i1, ptr %6, align 1
  br i1 %174, label %176, label %175

175:                                              ; preds = %173
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %176

176:                                              ; preds = %175, %173
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #5
  ret void

177:                                              ; preds = %172, %42
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #5
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %7, align 8
  %180 = load i32, ptr %8, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182

183:                                              ; preds = %163, %155, %143
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef ptr @_ZNK7maliput3api4Lane20GetConfluentBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

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

declare noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

!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 = !{!"_ZTSN7maliput3api7LaneEnd5WhichE", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listIN7maliput3api7LaneEnd5WhichEE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN7maliput3api7LaneEndE", !6, i64 0, !12, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !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::unordered_set" = 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 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl" }
%"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl" = type { %"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<const maliput::api::Segment *, std::allocator<const maliput::api::Segment *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput7utility21FindConfluentSegmentsEPKNS_3api7SegmentE(ptr dead_on_unwind noalias writable sret(%"class.std::unordered_set") align 8 %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::queue", align 8
  %5 = alloca %"class.std::initializer_list", align 8
  %6 = alloca [2 x i32], align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #5
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEEC2IS7_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  invoke void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.preheader45 unwind label %21

.preheader45:                                     ; preds = %2
  %10 = call noundef zeroext i1 @_ZNKSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %10, label %._crit_edge49, label %.lr.ph48

.lr.ph48:                                         ; preds = %.preheader45
  %11 = getelementptr inbounds i8, ptr %6, i64 4
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  br label %14

.loopexit44:                                      ; preds = %19
  %13 = call noundef zeroext i1 @_ZNKSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %13, label %._crit_edge49, label %14, !llvm.loop !9

14:                                               ; preds = %.lr.ph48, %.loopexit44
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br label %17

17:                                               ; preds = %66, %14
  %.030 = phi i32 [ 0, %14 ], [ %67, %66 ]
  %18 = invoke noundef i32 @_ZNK7maliput3api7Segment9num_lanesEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %19 unwind label %23

19:                                               ; preds = %17
  %20 = icmp slt i32 %.030, %18
  br i1 %20, label %25, label %.loopexit44

21:                                               ; preds = %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %68

23:                                               ; preds = %17
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %68

25:                                               ; preds = %19
  %26 = invoke noundef ptr @_ZNK7maliput3api7Segment4laneEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %.030)
          to label %27 unwind label %28

27:                                               ; preds = %25
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %66, label %30

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

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !11
  store i32 1, ptr %11, align 4, !tbaa !11
  store ptr %6, ptr %5, align 8, !tbaa !13
  store i64 2, ptr %12, align 8, !tbaa !16
  %31 = call noundef ptr @_ZNKSt16initializer_listIN7maliput3api7LaneEnd5WhichEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %32 = call noundef ptr @_ZNKSt16initializer_listIN7maliput3api7LaneEnd5WhichEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %.not3546 = icmp eq ptr %31, %32
  br i1 %.not3546, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.loopexit, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %66

.lr.ph:                                           ; preds = %30, %.loopexit
  %.03247 = phi ptr [ %64, %.loopexit ], [ %31, %30 ]
  %33 = load i32, ptr %.03247, align 4, !tbaa !11
  %34 = invoke noundef ptr @_ZNK7maliput3api4Lane20GetConfluentBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef %33)
          to label %35 unwind label %36

35:                                               ; preds = %.lr.ph
  %.not36 = icmp eq ptr %34, null
  br i1 %.not36, label %.loopexit, label %.preheader

36:                                               ; preds = %.lr.ph
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %65

.preheader:                                       ; preds = %35, %61
  %.023 = phi i32 [ %62, %61 ], [ 0, %35 ]
  %38 = invoke noundef i32 @_ZNK7maliput3api10LaneEndSet4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %39 unwind label %41

39:                                               ; preds = %.preheader
  %40 = icmp slt i32 %.023, %38
  br i1 %40, label %43, label %.loopexit

41:                                               ; preds = %.preheader
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %65

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %44 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7maliput3api10LaneEndSet3getEi(ptr noundef nonnull align 8 dereferenceable(8) %34, i32 noundef %.023)
          to label %45 unwind label %49

45:                                               ; preds = %43
  %46 = load ptr, ptr %44, align 8, !tbaa !17
  %47 = invoke noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %48 unwind label %49

48:                                               ; preds = %45
  store ptr %47, ptr %7, align 8, !tbaa !5
  %.not37 = icmp eq ptr %47, null
  br i1 %.not37, label %61, label %51

49:                                               ; preds = %57, %56, %45, %43
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %63

51:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %52 = invoke ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %53 unwind label %59

53:                                               ; preds = %51
  store ptr %52, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %54 = call ptr @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  store ptr %54, ptr %9, align 8
  %55 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseIPKN7maliput3api7SegmentELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  invoke void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %57 unwind label %49

57:                                               ; preds = %56
  %58 = invoke { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %61 unwind label %49

59:                                               ; preds = %51
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %63

61:                                               ; preds = %53, %57, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %62 = add nuw nsw i32 %.023, 1
  br label %.preheader, !llvm.loop !19

63:                                               ; preds = %59, %49
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %65

.loopexit:                                        ; preds = %39, %35
  %64 = getelementptr inbounds i8, ptr %.03247, i64 4
  %.not35 = icmp eq ptr %64, %32
  br i1 %.not35, label %._crit_edge, label %.lr.ph

65:                                               ; preds = %41, %63, %36
  %.pn.pn.pn = phi { ptr, i32 } [ %37, %36 ], [ %.pn, %63 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %68

66:                                               ; preds = %27, %._crit_edge
  %67 = add nuw nsw i32 %.030, 1
  br label %17, !llvm.loop !20

._crit_edge49:                                    ; preds = %.loopexit44, %.preheader45
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #5
  ret void

68:                                               ; preds = %23, %65, %28, %21
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %22, %21 ], [ %24, %23 ], [ %.pn.pn.pn, %65 ], [ %29, %28 ]
  call void @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  call void @_ZNSt5queueIPKN7maliput3api7SegmentESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare noundef ptr @_ZNK7maliput3api4Lane20GetConfluentBranchesENS0_7LaneEnd5WhichE(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

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

declare noundef ptr @_ZNK7maliput3api4Lane7segmentEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIPKN7maliput3api7SegmentESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE6insertERKS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN7maliput3api7LaneEnd5WhichE", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSSt16initializer_listIN7maliput3api7LaneEnd5WhichEE", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN7maliput3api7LaneEndE", !6, i64 0, !12, i64 8}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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