; LLVM IR from maliput/maliput :: src/maliput/api/rules/compare.ll (ZN7maliput3api5rules7IsEqualEPKNS1_12TrafficLightES4_)

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

%"struct.maliput::common::ComparisonResult.2" = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::common::ComparisonResult.297" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.298" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.305" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.312" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.maliput::common::ComparisonResult.313" = type { %"class.std::optional" }
%"class.std::vector.319" = type { %"struct.std::_Vector_base.320" }
%"struct.std::_Vector_base.320" = type { %"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl" }
%"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [50 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

declare void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

declare void @_ZN7maliput3api7IsEqualERKNS0_16InertialPositionES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.297") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

declare void @_ZN7maliput3api7IsEqualERKNS0_8RotationES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.298") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_9BulbGroupES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.305") align 8, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_12TrafficLightES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.312") align 8 %0, ptr noundef %1, ptr noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %8 = alloca %"struct.maliput::common::ComparisonResult.313", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.maliput::common::ComparisonResult.297", align 8
  %12 = alloca %"struct.maliput::common::ComparisonResult.298", align 8
  %13 = alloca %"class.std::vector.319", align 8
  %14 = alloca %"class.std::vector.319", align 8
  %15 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"struct.maliput::common::ComparisonResult.305", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight2idEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
          to label %23 unwind label %64

23:                                               ; preds = %3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight2idEv(ptr noundef nonnull align 8 dereferenceable(112) %24)
          to label %26 unwind label %64

26:                                               ; preds = %23
  invoke void @_ZN7maliput3api7IsEqualINS0_5rules12TrafficLightEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.313") align 8 %8, ptr noundef @.str.99, ptr noundef @.str.100, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %27 unwind label %64

27:                                               ; preds = %26
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules12TrafficLightEEEEEvPKciS9_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 451, ptr noundef @.str.98, ptr noundef %8)
          to label %28 unwind label %68

28:                                               ; preds = %27
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules12TrafficLightEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules12TrafficLight21position_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %29)
          to label %31 unwind label %64

31:                                               ; preds = %28
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules12TrafficLight21position_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %32)
          to label %34 unwind label %64

34:                                               ; preds = %31
  invoke void @_ZN7maliput3api7IsEqualERKNS0_16InertialPositionES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.297") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %35 unwind label %64

35:                                               ; preds = %34
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api16InertialPositionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 452, ptr noundef @.str.117, ptr noundef %11)
          to label %36 unwind label %72

36:                                               ; preds = %35
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight24orientation_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %37)
          to label %39 unwind label %64

39:                                               ; preds = %36
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight24orientation_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %40)
          to label %42 unwind label %64

42:                                               ; preds = %39
  invoke void @_ZN7maliput3api7IsEqualERKNS0_8RotationES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.298") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %43 unwind label %64

43:                                               ; preds = %42
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8RotationEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 453, ptr noundef @.str.118, ptr noundef %12)
          to label %44 unwind label %76

44:                                               ; preds = %43
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind writable sret(%"class.std::vector.319") align 8 %13, ptr noundef nonnull align 8 dereferenceable(112) %45)
          to label %46 unwind label %80

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind writable sret(%"class.std::vector.319") align 8 %14, ptr noundef nonnull align 8 dereferenceable(112) %47)
          to label %48 unwind label %84

48:                                               ; preds = %46
  %49 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %50 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %15, ptr noundef @.str.120, ptr noundef @.str.121, i64 noundef %49, i64 noundef %50)
          to label %51 unwind label %88

51:                                               ; preds = %48
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 457, ptr noundef @.str.119, ptr noundef %15)
          to label %52 unwind label %92

52:                                               ; preds = %51
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %53 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store i64 %53, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %54 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  store i64 %54, ptr %18, align 8, !tbaa !9
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %56 unwind label %96

56:                                               ; preds = %52
  %57 = load i64, ptr %55, align 8, !tbaa !9
  %58 = trunc i64 %57 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  store i32 %58, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %113, %56
  %60 = load i32, ptr %19, align 4, !tbaa !11
  %61 = load i32, ptr %16, align 4, !tbaa !11
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %100, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %125

64:                                               ; preds = %42, %39, %36, %34, %31, %28, %26, %23, %3
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  br label %136

68:                                               ; preds = %27
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules12TrafficLightEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %136

72:                                               ; preds = %35
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  br label %136

76:                                               ; preds = %43
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %136

80:                                               ; preds = %44
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %135

84:                                               ; preds = %46
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %9, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %10, align 4
  br label %134

88:                                               ; preds = %48
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %133

92:                                               ; preds = %51
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  br label %133

96:                                               ; preds = %52
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %132

100:                                              ; preds = %59
  %101 = load i32, ptr %19, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %102)
          to label %104 unwind label %116

104:                                              ; preds = %100
  %105 = load ptr, ptr %103, align 8, !tbaa !5
  %106 = load i32, ptr %19, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %107)
          to label %109 unwind label %116

109:                                              ; preds = %104
  %110 = load ptr, ptr %108, align 8, !tbaa !5
  invoke void @_ZN7maliput3api5rules7IsEqualEPKNS1_9BulbGroupES4_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.305") align 8 %20, ptr noundef %105, ptr noundef %110)
          to label %111 unwind label %116

111:                                              ; preds = %109
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbGroupEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 460, ptr noundef @.str.122, ptr noundef %20)
          to label %112 unwind label %120

112:                                              ; preds = %111
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbGroupEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %19, align 4, !tbaa !11
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %19, align 4, !tbaa !11
  br label %59, !llvm.loop !13

116:                                              ; preds = %109, %104, %100
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %9, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %10, align 4
  br label %124

120:                                              ; preds = %111
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %9, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbGroupEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %124

124:                                              ; preds = %120, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %132

125:                                              ; preds = %63
  %126 = getelementptr inbounds %"struct.maliput::common::ComparisonResult.312", ptr %0, i32 0, i32 0
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %126, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %127 unwind label %128

127:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  ret void

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %132

132:                                              ; preds = %128, %124, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %133

133:                                              ; preds = %132, %92, %88
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %134

134:                                              ; preds = %133, %84
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %135

135:                                              ; preds = %134, %80
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %136

136:                                              ; preds = %135, %76, %72, %68, %64
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  br label %137

137:                                              ; preds = %136
  %138 = load ptr, ptr %9, align 8
  %139 = load i32, ptr %10, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualINS0_5rules12TrafficLightEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.313") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

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

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

declare void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind writable sret(%"class.std::vector.319") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #3

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.maliput::common::ComparisonResult.2" = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::__cxx11::basic_string<char>>::_Storage" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.maliput::common::ComparisonResult.297" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.298" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.305" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.312" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.maliput::common::ComparisonResult.313" = type { %"class.std::optional" }
%"class.std::vector.319" = type { %"struct.std::_Vector_base.320" }
%"struct.std::_Vector_base.320" = type { %"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl" }
%"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const maliput::api::rules::BulbGroup *, std::allocator<const maliput::api::rules::BulbGroup *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [50 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

declare void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::optional") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

declare void @_ZN7maliput3api7IsEqualERKNS0_16InertialPositionES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.297") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

declare void @_ZN7maliput3api7IsEqualERKNS0_8RotationES3_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.298") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_9BulbGroupES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.305") align 8, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_12TrafficLightES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.312") align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.maliput::common::ComparisonResultCollector", align 8
  %5 = alloca %"struct.maliput::common::ComparisonResult.313", align 8
  %6 = alloca %"struct.maliput::common::ComparisonResult.297", align 8
  %7 = alloca %"struct.maliput::common::ComparisonResult.298", align 8
  %8 = alloca %"class.std::vector.319", align 8
  %9 = alloca %"class.std::vector.319", align 8
  %10 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.maliput::common::ComparisonResult.305", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  %14 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight2idEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %15 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight2idEv(ptr noundef nonnull align 8 dereferenceable(112) %2)
  invoke void @_ZN7maliput3api7IsEqualINS0_5rules12TrafficLightEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.313") align 8 %5, ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.100, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %16 unwind label %38

16:                                               ; preds = %3
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules12TrafficLightEEEEEvPKciS9_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 451, ptr noundef nonnull @.str.98, ptr noundef nonnull %5)
          to label %17 unwind label %40

17:                                               ; preds = %16
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules12TrafficLightEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules12TrafficLight21position_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules12TrafficLight21position_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %2)
  invoke void @_ZN7maliput3api7IsEqualERKNS0_16InertialPositionES3_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.297") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %20 unwind label %38

20:                                               ; preds = %17
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api16InertialPositionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 452, ptr noundef nonnull @.str.117, ptr noundef nonnull %6)
          to label %21 unwind label %42

21:                                               ; preds = %20
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight24orientation_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %1)
  %23 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules12TrafficLight24orientation_road_networkEv(ptr noundef nonnull align 8 dereferenceable(112) %2)
  invoke void @_ZN7maliput3api7IsEqualERKNS0_8RotationES3_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.298") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %24 unwind label %38

24:                                               ; preds = %21
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8RotationEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 453, ptr noundef nonnull @.str.118, ptr noundef nonnull %7)
          to label %25 unwind label %44

25:                                               ; preds = %24
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  invoke void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.319") align 8 %8, ptr noundef nonnull align 8 dereferenceable(112) %1)
          to label %26 unwind label %46

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.319") align 8 %9, ptr noundef nonnull align 8 dereferenceable(112) %2)
          to label %27 unwind label %48

27:                                               ; preds = %26
  %28 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %29 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %10, ptr noundef nonnull @.str.120, ptr noundef nonnull @.str.121, i64 noundef %28, i64 noundef %29)
          to label %30 unwind label %50

30:                                               ; preds = %27
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 457, ptr noundef nonnull @.str.119, ptr noundef nonnull %10)
          to label %31 unwind label %52

31:                                               ; preds = %30
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %32 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  store i64 %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %33 = call noundef i64 @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  store i64 %33, ptr %12, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = trunc i64 %35 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph.preheader, label %._crit_edge

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

._crit_edge:                                      ; preds = %61, %31
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %66 unwind label %67

38:                                               ; preds = %21, %17, %3
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %72

40:                                               ; preds = %16
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules12TrafficLightEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  br label %72

42:                                               ; preds = %20
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %72

44:                                               ; preds = %24
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br label %72

46:                                               ; preds = %25
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %71

48:                                               ; preds = %26
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %70

50:                                               ; preds = %27
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %69

52:                                               ; preds = %30
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %69

.lr.ph:                                           ; preds = %.lr.ph.preheader, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %61 ]
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv)
          to label %55 unwind label %62

55:                                               ; preds = %.lr.ph
  %56 = load ptr, ptr %54, align 8, !tbaa !9
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv)
          to label %58 unwind label %62

58:                                               ; preds = %55
  %59 = load ptr, ptr %57, align 8, !tbaa !9
  invoke void @_ZN7maliput3api5rules7IsEqualEPKNS1_9BulbGroupES4_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.305") align 8 %13, ptr noundef %56, ptr noundef %59)
          to label %60 unwind label %62

60:                                               ; preds = %58
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbGroupEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 460, ptr noundef nonnull @.str.122, ptr noundef nonnull %13)
          to label %61 unwind label %64

61:                                               ; preds = %60
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbGroupEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  %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

62:                                               ; preds = %58, %55, %.lr.ph
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %69

64:                                               ; preds = %60
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbGroupEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %69

66:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  ret void

67:                                               ; preds = %._crit_edge
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %69

69:                                               ; preds = %67, %64, %62, %52, %50
  %.pn.pn.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ], [ %68, %67 ], [ %65, %64 ], [ %63, %62 ]
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %70

70:                                               ; preds = %69, %48
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %69 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIPKN7maliput3api5rules9BulbGroupESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %71

71:                                               ; preds = %70, %46
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %70 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %72

72:                                               ; preds = %71, %44, %42, %40, %38
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %71 ], [ %45, %44 ], [ %39, %38 ], [ %43, %42 ], [ %41, %40 ]
  call void @_ZN7maliput6common25ComparisonResultCollectorD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput3api7IsEqualINS0_5rules12TrafficLightEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.313") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

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

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

declare void @_ZNK7maliput3api5rules12TrafficLight11bulb_groupsEv(ptr dead_on_unwind writable sret(%"class.std::vector.319") align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3

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

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

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

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

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

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


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