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

; 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.80" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.229" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.248" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.266" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.289" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.290" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.maliput::common::ComparisonResult.291" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.297" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.298" = type { %"class.std::optional" }
%"class.std::optional.71" = type { %"struct.std::_Optional_base.72" }
%"struct.std::_Optional_base.72" = type { %"struct.std::_Optional_payload.74" }
%"struct.std::_Optional_payload.74" = type { %"struct.std::_Optional_payload_base.base.76", [7 x i8] }
%"struct.std::_Optional_payload_base.base.76" = type <{ %"union.std::_Optional_payload_base<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }

@.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.101 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [46 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: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultISt8optionalIdEEEvPKciS6_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 @_ZN7maliput3api5rules7IsEqualERKSt8optionalIdES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.80") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

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

; 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 @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbColorES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.229") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_4BulbES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.290") 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.291", 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 %"struct.maliput::common::ComparisonResult.229", align 8
  %14 = alloca %"struct.maliput::common::ComparisonResult.248", align 8
  %15 = alloca %"struct.maliput::common::ComparisonResult.80", align 8
  %16 = alloca %"class.std::optional.71", align 8
  %17 = alloca %"class.std::optional.71", align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"struct.maliput::common::ComparisonResult.266", align 8
  %26 = alloca %"struct.maliput::common::ComparisonResult.289", 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
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192) %27)
          to label %29 unwind label %112

29:                                               ; preds = %3
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192) %30)
          to label %32 unwind label %112

32:                                               ; preds = %29
  invoke void @_ZN7maliput3api7IsEqualINS0_5rules4BulbEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.291") align 8 %8, ptr noundef @.str.99, ptr noundef @.str.100, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %33 unwind label %112

33:                                               ; preds = %32
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules4BulbEEEEEvPKciS9_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 411, ptr noundef @.str.98, ptr noundef %8)
          to label %34 unwind label %116

34:                                               ; preds = %33
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules4BulbEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %35)
          to label %37 unwind label %112

37:                                               ; preds = %34
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %38)
          to label %40 unwind label %112

40:                                               ; preds = %37
  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) %36, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %41 unwind label %112

41:                                               ; preds = %40
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api16InertialPositionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 412, ptr noundef @.str.101, ptr noundef %11)
          to label %42 unwind label %120

42:                                               ; preds = %41
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %43)
          to label %45 unwind label %112

45:                                               ; preds = %42
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %46)
          to label %48 unwind label %112

48:                                               ; preds = %45
  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) %44, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %49 unwind label %112

49:                                               ; preds = %48
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8RotationEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 413, ptr noundef @.str.102, ptr noundef %12)
          to label %50 unwind label %124

50:                                               ; preds = %49
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb5colorEv(ptr noundef nonnull align 8 dereferenceable(192) %51)
          to label %53 unwind label %112

53:                                               ; preds = %50
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb5colorEv(ptr noundef nonnull align 8 dereferenceable(192) %54)
          to label %56 unwind label %112

56:                                               ; preds = %53
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbColorES4_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.229") align 8 %13, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %57 unwind label %112

57:                                               ; preds = %56
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbColorEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 414, ptr noundef @.str.103, ptr noundef %13)
          to label %58 unwind label %128

58:                                               ; preds = %57
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbColorEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %59)
          to label %61 unwind label %112

61:                                               ; preds = %58
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %62)
          to label %64 unwind label %112

64:                                               ; preds = %61
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_8BulbTypeES4_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.248") align 8 %14, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %65 unwind label %112

65:                                               ; preds = %64
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules8BulbTypeEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 415, ptr noundef @.str.104, ptr noundef %14)
          to label %66 unwind label %132

66:                                               ; preds = %65
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules8BulbTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = invoke { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192) %67)
          to label %69 unwind label %136

69:                                               ; preds = %66
  %70 = getelementptr inbounds %"class.std::optional.71", ptr %16, i32 0, i32 0
  %71 = getelementptr inbounds %"struct.std::_Optional_base.72", ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds { double, i8 }, ptr %71, i32 0, i32 0
  %73 = extractvalue { double, i8 } %68, 0
  store double %73, ptr %72, align 8
  %74 = getelementptr inbounds { double, i8 }, ptr %71, i32 0, i32 1
  %75 = extractvalue { double, i8 } %68, 1
  store i8 %75, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = invoke { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192) %76)
          to label %78 unwind label %140

78:                                               ; preds = %69
  %79 = getelementptr inbounds %"class.std::optional.71", ptr %17, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::_Optional_base.72", ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds { double, i8 }, ptr %80, i32 0, i32 0
  %82 = extractvalue { double, i8 } %77, 0
  store double %82, ptr %81, align 8
  %83 = getelementptr inbounds { double, i8 }, ptr %80, i32 0, i32 1
  %84 = extractvalue { double, i8 } %77, 1
  store i8 %84, ptr %83, align 8
  invoke void @_ZN7maliput3api5rules7IsEqualERKSt8optionalIdES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.80") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %85 unwind label %140

85:                                               ; preds = %78
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultISt8optionalIdEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 416, ptr noundef @.str.105, ptr noundef %15)
          to label %86 unwind label %144

86:                                               ; preds = %85
  call void @_ZN7maliput6common16ComparisonResultISt8optionalIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb6statesEv(ptr noundef nonnull align 8 dereferenceable(192) %87)
          to label %89 unwind label %150

89:                                               ; preds = %86
  store ptr %88, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb6statesEv(ptr noundef nonnull align 8 dereferenceable(192) %90)
          to label %92 unwind label %154

92:                                               ; preds = %89
  store ptr %91, ptr %19, align 8, !tbaa !5
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #5
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %20, ptr noundef @.str.107, ptr noundef @.str.108, i64 noundef %94, i64 noundef %96)
          to label %97 unwind label %154

97:                                               ; preds = %92
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 419, ptr noundef @.str.106, ptr noundef %20)
          to label %98 unwind label %158

98:                                               ; preds = %97
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #5
  store i64 %100, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #5
  store i64 %102, ptr %23, align 8, !tbaa !9
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %104 unwind label %162

104:                                              ; preds = %98
  %105 = load i64, ptr %103, align 8, !tbaa !9
  %106 = trunc i64 %105 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  store i32 %106, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %179, %104
  %108 = load i32, ptr %24, align 4, !tbaa !11
  %109 = load i32, ptr %21, align 4, !tbaa !11
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %166, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %191

112:                                              ; preds = %64, %61, %58, %56, %53, %50, %48, %45, %42, %40, %37, %34, %32, %29, %3
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  br label %213

116:                                              ; preds = %33
  %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
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules4BulbEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %213

120:                                              ; preds = %41
  %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_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  br label %213

124:                                              ; preds = %49
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %9, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %213

128:                                              ; preds = %57
  %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
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbColorEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %213

132:                                              ; preds = %65
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules8BulbTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  br label %213

136:                                              ; preds = %66
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %149

140:                                              ; preds = %78, %69
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %148

144:                                              ; preds = %85
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultISt8optionalIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %149

149:                                              ; preds = %148, %136
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %213

150:                                              ; preds = %86
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  br label %212

154:                                              ; preds = %92, %89
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %9, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %10, align 4
  br label %211

158:                                              ; preds = %97
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %211

162:                                              ; preds = %98
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %9, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %210

166:                                              ; preds = %107
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  %168 = load i32, ptr %24, align 4, !tbaa !11
  %169 = sext i32 %168 to i64
  %170 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169)
          to label %171 unwind label %182

171:                                              ; preds = %166
  %172 = load ptr, ptr %19, align 8, !tbaa !5
  %173 = load i32, ptr %24, align 4, !tbaa !11
  %174 = sext i32 %173 to i64
  %175 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174)
          to label %176 unwind label %182

176:                                              ; preds = %171
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbStateES4_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.266") align 8 %25, ptr noundef nonnull align 4 dereferenceable(4) %170, ptr noundef nonnull align 4 dereferenceable(4) %175)
          to label %177 unwind label %182

177:                                              ; preds = %176
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbStateEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 422, ptr noundef @.str.109, ptr noundef %25)
          to label %178 unwind label %186

178:                                              ; preds = %177
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbStateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %24, align 4, !tbaa !11
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %24, align 4, !tbaa !11
  br label %107, !llvm.loop !13

182:                                              ; preds = %176, %171, %166
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %9, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %10, align 4
  br label %190

186:                                              ; preds = %177
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %9, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbStateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #5
  br label %190

190:                                              ; preds = %186, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %210

191:                                              ; preds = %111
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK7maliput3api5rules4Bulb12bounding_boxEv(ptr noundef nonnull align 8 dereferenceable(192) %192)
          to label %194 unwind label %202

194:                                              ; preds = %191
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK7maliput3api5rules4Bulb12bounding_boxEv(ptr noundef nonnull align 8 dereferenceable(192) %195)
          to label %197 unwind label %202

197:                                              ; preds = %194
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_4Bulb11BoundingBoxES5_(ptr dead_on_unwind writable sret(%"struct.maliput::common::ComparisonResult.289") align 8 %26, ptr noundef nonnull align 8 dereferenceable(48) %193, ptr noundef nonnull align 8 dereferenceable(48) %196)
          to label %198 unwind label %202

198:                                              ; preds = %197
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules4Bulb11BoundingBoxEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef @.str, i32 noundef 424, ptr noundef @.str.110, ptr noundef %26)
          to label %199 unwind label %206

199:                                              ; preds = %198
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  %200 = getelementptr inbounds %"struct.maliput::common::ComparisonResult.290", ptr %0, i32 0, i32 0
  invoke void @_ZNK7maliput6common25ComparisonResultCollector6resultB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::optional") align 8 %200, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %201 unwind label %202

201:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #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

202:                                              ; preds = %199, %197, %194, %191
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  br label %210

206:                                              ; preds = %198
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %9, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %10, align 4
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #5
  br label %210

210:                                              ; preds = %206, %202, %190, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %211

211:                                              ; preds = %210, %158, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %212

212:                                              ; preds = %211, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %213

213:                                              ; preds = %212, %149, %132, %128, %124, %120, %116, %112
  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 %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %9, align 8
  %216 = load i32, ptr %10, align 4
  %217 = insertvalue { ptr, i32 } poison, ptr %215, 0
  %218 = insertvalue { ptr, i32 } %217, i32 %216, 1
  resume { ptr, i32 } %218
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules4BulbEEEEEvPKciS9_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_5rules4BulbEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.291") 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 @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

; 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 @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbColorEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 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.80" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.229" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.248" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.266" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.289" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.290" = type { %"class.std::optional" }
%"class.maliput::common::ComparisonResultCollector" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"struct.maliput::common::ComparisonResult.291" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.297" = type { %"class.std::optional" }
%"struct.maliput::common::ComparisonResult.298" = type { %"class.std::optional" }
%"class.std::optional.71" = type { %"struct.std::_Optional_base.72" }
%"struct.std::_Optional_base.72" = type { %"struct.std::_Optional_payload.74" }
%"struct.std::_Optional_payload.74" = type { %"struct.std::_Optional_payload_base.base.76", [7 x i8] }
%"struct.std::_Optional_payload_base.base.76" = type <{ %"union.std::_Optional_payload_base<double>::_Storage", i8 }>
%"union.std::_Optional_payload_base<double>::_Storage" = type { double }

@.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.101 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [46 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: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultISt8optionalIdEEEvPKciS6_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 @_ZN7maliput3api5rules7IsEqualERKSt8optionalIdES5_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.80") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

; 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 @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbColorES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.229") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbStateEEEvPKciS7_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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbStateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7maliput3api5rules7IsEqualEPKNS1_4BulbES4_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.290") 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.291", align 8
  %6 = alloca %"struct.maliput::common::ComparisonResult.297", align 8
  %7 = alloca %"struct.maliput::common::ComparisonResult.298", align 8
  %8 = alloca %"struct.maliput::common::ComparisonResult.229", align 8
  %9 = alloca %"struct.maliput::common::ComparisonResult.248", align 8
  %10 = alloca %"struct.maliput::common::ComparisonResult.80", align 8
  %11 = alloca %"class.std::optional.71", align 8
  %12 = alloca %"class.std::optional.71", align 8
  %13 = alloca %"struct.maliput::common::ComparisonResult.2", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.maliput::common::ComparisonResult.266", align 8
  %17 = alloca %"struct.maliput::common::ComparisonResult.289", 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
  %18 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %19 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  invoke void @_ZN7maliput3api7IsEqualINS0_5rules4BulbEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.291") align 8 %5, ptr noundef nonnull @.str.99, ptr noundef nonnull @.str.100, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %20 unwind label %62

20:                                               ; preds = %3
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules4BulbEEEEEvPKciS9_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 411, ptr noundef nonnull @.str.98, ptr noundef nonnull %5)
          to label %21 unwind label %64

21:                                               ; preds = %20
  call void @_ZN7maliput6common16ComparisonResultINS_3api22TypeSpecificIdentifierINS2_5rules4BulbEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %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) %22, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %24 unwind label %62

24:                                               ; preds = %21
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api16InertialPositionEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 412, ptr noundef nonnull @.str.101, ptr noundef nonnull %6)
          to label %25 unwind label %66

25:                                               ; preds = %24
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %27 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192) %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) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %28 unwind label %62

28:                                               ; preds = %25
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api8RotationEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 413, ptr noundef nonnull @.str.102, ptr noundef nonnull %7)
          to label %29 unwind label %68

29:                                               ; preds = %28
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb5colorEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb5colorEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbColorES4_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.229") align 8 %8, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %32 unwind label %62

32:                                               ; preds = %29
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbColorEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 414, ptr noundef nonnull @.str.103, ptr noundef nonnull %8)
          to label %33 unwind label %70

33:                                               ; preds = %32
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbColorEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb4typeEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_8BulbTypeES4_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.248") align 8 %9, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %36 unwind label %62

36:                                               ; preds = %33
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules8BulbTypeEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 415, ptr noundef nonnull @.str.104, ptr noundef nonnull %9)
          to label %37 unwind label %72

37:                                               ; preds = %36
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules8BulbTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %38 = call { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %39 = extractvalue { double, i8 } %38, 0
  store double %39, ptr %11, align 8
  %40 = getelementptr inbounds i8, ptr %11, i64 8
  %41 = extractvalue { double, i8 } %38, 1
  store i8 %41, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %42 = call { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  %43 = extractvalue { double, i8 } %42, 0
  store double %43, ptr %12, align 8
  %44 = getelementptr inbounds i8, ptr %12, i64 8
  %45 = extractvalue { double, i8 } %42, 1
  store i8 %45, ptr %44, align 8
  invoke void @_ZN7maliput3api5rules7IsEqualERKSt8optionalIdES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.80") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %46 unwind label %74

46:                                               ; preds = %37
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultISt8optionalIdEEEvPKciS6_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 416, ptr noundef nonnull @.str.105, ptr noundef nonnull %10)
          to label %47 unwind label %76

47:                                               ; preds = %46
  call void @_ZN7maliput6common16ComparisonResultISt8optionalIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb6statesEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb6statesEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  %50 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  %51 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  invoke void @_ZN7maliput3api7IsEqualEPKcS2_mm(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.2") align 8 %13, ptr noundef nonnull @.str.107, ptr noundef nonnull @.str.108, i64 noundef %50, i64 noundef %51)
          to label %52 unwind label %79

52:                                               ; preds = %47
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultImEEvPKciS4_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 419, ptr noundef nonnull @.str.106, ptr noundef nonnull %13)
          to label %53 unwind label %81

53:                                               ; preds = %52
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %54 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  store i64 %54, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %55 = call noundef i64 @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  store i64 %55, ptr %15, align 8, !tbaa !5
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = trunc i64 %57 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph.preheader, label %._crit_edge

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

._crit_edge:                                      ; preds = %88, %53
  %60 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK7maliput3api5rules4Bulb12bounding_boxEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %61 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK7maliput3api5rules4Bulb12bounding_boxEv(ptr noundef nonnull align 8 dereferenceable(192) %2)
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_4Bulb11BoundingBoxES5_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.289") align 8 %17, ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef nonnull align 8 dereferenceable(48) %61)
          to label %93 unwind label %96

62:                                               ; preds = %33, %29, %25, %21, %3
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %100

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

66:                                               ; preds = %24
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api16InertialPositionEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %100

68:                                               ; preds = %28
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api8RotationEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  br label %100

70:                                               ; preds = %32
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbColorEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %100

72:                                               ; preds = %36
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules8BulbTypeEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  br label %100

74:                                               ; preds = %37
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %46
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultISt8optionalIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %78

78:                                               ; preds = %76, %74
  %.pn = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %100

79:                                               ; preds = %47
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %100

81:                                               ; preds = %52
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultImED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %100

.lr.ph:                                           ; preds = %.lr.ph.preheader, %88
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %88 ]
  %83 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %indvars.iv)
          to label %84 unwind label %89

84:                                               ; preds = %.lr.ph
  %85 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7maliput3api5rules9BulbStateESaIS3_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %indvars.iv)
          to label %86 unwind label %89

86:                                               ; preds = %84
  invoke void @_ZN7maliput3api5rules7IsEqualERKNS1_9BulbStateES4_(ptr dead_on_unwind nonnull writable sret(%"struct.maliput::common::ComparisonResult.266") align 8 %16, ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %85)
          to label %87 unwind label %89

87:                                               ; preds = %86
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbStateEEEvPKciS7_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 422, ptr noundef nonnull @.str.109, ptr noundef nonnull %16)
          to label %88 unwind label %91

88:                                               ; preds = %87
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbStateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #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 !9

89:                                               ; preds = %86, %84, %.lr.ph
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %100

91:                                               ; preds = %87
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules9BulbStateEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %100

93:                                               ; preds = %._crit_edge
  invoke void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules4Bulb11BoundingBoxEEEvPKciS8_NS0_16ComparisonResultIT_EE(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull @.str, i32 noundef 424, ptr noundef nonnull @.str.110, ptr noundef nonnull %17)
          to label %94 unwind label %98

94:                                               ; preds = %93
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  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 %95 unwind label %96

95:                                               ; preds = %94
  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

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

98:                                               ; preds = %93
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #5
  br label %100

100:                                              ; preds = %79, %81, %89, %91, %98, %96, %78, %72, %70, %68, %66, %64, %62
  %.pn35.pn.pn.pn = phi { ptr, i32 } [ %.pn, %78 ], [ %73, %72 ], [ %63, %62 ], [ %71, %70 ], [ %69, %68 ], [ %67, %66 ], [ %65, %64 ], [ %82, %81 ], [ %80, %79 ], [ %97, %96 ], [ %99, %98 ], [ %92, %91 ], [ %90, %89 ]
  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 } %.pn35.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api22TypeSpecificIdentifierINS3_5rules4BulbEEEEEvPKciS9_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_5rules4BulbEEENS_6common16ComparisonResultINS0_22TypeSpecificIdentifierIT_EEEEPKcSB_RKS8_SD_(ptr dead_on_unwind noalias writable sret(%"struct.maliput::common::ComparisonResult.291") 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 @_ZNK7maliput3api5rules4Bulb2idEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7maliput3api5rules4Bulb19position_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7maliput3api5rules4Bulb22orientation_bulb_groupEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

; 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 @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules9BulbColorEEEvPKciS7_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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb5colorEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules8BulbTypeEEEvPKciS7_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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7maliput3api5rules4Bulb4typeEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, i8 } @_ZNK7maliput3api5rules4Bulb21arrow_orientation_radEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7maliput6common25ComparisonResultCollector9AddResultINS_3api5rules4Bulb11BoundingBoxEEEvPKciS8_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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK7maliput3api5rules4Bulb12bounding_boxEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7maliput6common16ComparisonResultINS_3api5rules4Bulb11BoundingBoxEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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