; LLVM IR from thepowersgang/mrustc :: tools/minicargo/manifest.ll (ZNK18PackageVersionSpec7acceptsERK14PackageVersion)

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

%"class.__gnu_cxx::__normal_iterator.181" = type { ptr }
%struct.PackageVersion = type { i32, i32, i32, i8, %"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.PackageVersionSpec = type { %"class.std::vector.39" }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl" }
%"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackageVersionSpec::Bound, std::allocator<PackageVersionSpec::Bound>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.PackageVersionSpec::Bound" = type { i32, %struct.PackageVersion }

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.PackageVersion, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.PackageVersion, align 8
  %15 = alloca %struct.PackageVersion, align 8
  %16 = alloca %struct.PackageVersion, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %18 = getelementptr inbounds %struct.PackageVersionSpec, ptr %17, i32 0, i32 0
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call ptr @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %21 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %7, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call ptr @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.181", ptr %8, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  br label %25

25:                                               ; preds = %122, %2
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  store i32 2, ptr %9, align 4
  br label %125

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  store ptr %29, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !9
  switch i32 %32, label %118 [
    i32 0, label %33
    i32 1, label %58
    i32 3, label %83
    i32 2, label %90
    i32 4, label %97
    i32 5, label %104
    i32 6, label %111
  ]

33:                                               ; preds = %28
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #4
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %35, i32 0, i32 1
  call void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind writable sret(%struct.PackageVersion) align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %36)
  %37 = invoke noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %38 unwind label %41

38:                                               ; preds = %33
  %39 = xor i1 %37, true
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  br i1 %39, label %40, label %45

40:                                               ; preds = %38
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

41:                                               ; preds = %33
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #4
  br label %124

45:                                               ; preds = %38
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #4
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %47, i32 0, i32 1
  call void @_ZNK14PackageVersion13next_breakingEv(ptr dead_on_unwind writable sret(%struct.PackageVersion) align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %48)
  %49 = invoke noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %50 unwind label %53

50:                                               ; preds = %45
  %51 = xor i1 %49, true
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #4
  br i1 %51, label %52, label %57

52:                                               ; preds = %50
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %12, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %13, align 4
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #4
  br label %124

57:                                               ; preds = %50
  br label %118

58:                                               ; preds = %28
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #4
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %60, i32 0, i32 1
  call void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind writable sret(%struct.PackageVersion) align 8 %15, ptr noundef nonnull align 8 dereferenceable(48) %61)
  %62 = invoke noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %63 unwind label %66

63:                                               ; preds = %58
  %64 = xor i1 %62, true
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  br i1 %64, label %65, label %70

65:                                               ; preds = %63
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

66:                                               ; preds = %58
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %12, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %13, align 4
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  br label %124

70:                                               ; preds = %63
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #4
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %72, i32 0, i32 1
  call void @_ZNK14PackageVersion10next_minorEv(ptr dead_on_unwind writable sret(%struct.PackageVersion) align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %73)
  %74 = invoke noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %71, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %75 unwind label %78

75:                                               ; preds = %70
  %76 = xor i1 %74, true
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #4
  br i1 %76, label %77, label %82

77:                                               ; preds = %75
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

78:                                               ; preds = %70
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #4
  br label %124

82:                                               ; preds = %75
  br label %118

83:                                               ; preds = %28
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %85, i32 0, i32 1
  %87 = call noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %84, ptr noundef nonnull align 8 dereferenceable(48) %86)
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

89:                                               ; preds = %83
  br label %118

90:                                               ; preds = %28
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %92, i32 0, i32 1
  %94 = call noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48) %91, ptr noundef nonnull align 8 dereferenceable(48) %93)
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

96:                                               ; preds = %90
  br label %118

97:                                               ; preds = %28
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %99, i32 0, i32 1
  %101 = call noundef zeroext i1 @_ZNK14PackageVersionneERKS_(ptr noundef nonnull align 8 dereferenceable(48) %98, ptr noundef nonnull align 8 dereferenceable(48) %100)
  br i1 %101, label %102, label %103

102:                                              ; preds = %97
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

103:                                              ; preds = %97
  br label %118

104:                                              ; preds = %28
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %106, i32 0, i32 1
  %108 = call noundef zeroext i1 @_ZNK14PackageVersionleERKS_(ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 8 dereferenceable(48) %107)
  br i1 %108, label %110, label %109

109:                                              ; preds = %104
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

110:                                              ; preds = %104
  br label %118

111:                                              ; preds = %28
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.PackageVersionSpec::Bound", ptr %113, i32 0, i32 1
  %115 = call noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %112, ptr noundef nonnull align 8 dereferenceable(48) %114)
  br i1 %115, label %117, label %116

116:                                              ; preds = %111
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %119

117:                                              ; preds = %111
  br label %118

118:                                              ; preds = %117, %110, %103, %96, %89, %82, %57, %28
  store i32 0, ptr %9, align 4
  br label %119

119:                                              ; preds = %118, %116, %109, %102, %95, %88, %77, %65, %52, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %120 = load i32, ptr %9, align 4
  switch i32 %120, label %125 [
    i32 0, label %121
  ]

121:                                              ; preds = %119
  br label %122

122:                                              ; preds = %121
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %25

124:                                              ; preds = %78, %66, %53, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %130

125:                                              ; preds = %119, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %126 = load i32, ptr %9, align 4
  switch i32 %126, label %135 [
    i32 2, label %127
    i32 1, label %128
  ]

127:                                              ; preds = %125
  store i1 true, ptr %3, align 1
  br label %128

128:                                              ; preds = %127, %125
  %129 = load i1, ptr %3, align 1
  ret i1 %129

130:                                              ; preds = %124
  %131 = load ptr, ptr %12, align 8
  %132 = load i32, ptr %13, align 4
  %133 = insertvalue { ptr, i32 } poison, ptr %131, 0
  %134 = insertvalue { ptr, i32 } %133, i32 %132, 1
  resume { ptr, i32 } %134

135:                                              ; preds = %125
  unreachable
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion13next_breakingEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion10next_minorEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

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

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

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


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

%"class.__gnu_cxx::__normal_iterator.181" = type { ptr }
%struct.PackageVersion = type { i32, i32, i32, i8, %"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] }

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK18PackageVersionSpec7acceptsERK14PackageVersion(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.181", align 8
  %5 = alloca %struct.PackageVersion, align 8
  %6 = alloca %struct.PackageVersion, align 8
  %7 = alloca %struct.PackageVersion, align 8
  %8 = alloca %struct.PackageVersion, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %9 = tail call ptr @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  store ptr %9, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %10 = tail call ptr @_ZNKSt6vectorIN18PackageVersionSpec5BoundESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  store ptr %10, ptr %4, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.critedge
  %12 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %13 = load i32, ptr %12, align 8, !tbaa !5
  switch i32 %13, label %.critedge [
    i32 0, label %14
    i32 1, label %22
    i32 3, label %30
    i32 2, label %33
    i32 4, label %36
    i32 5, label %39
    i32 6, label %42
  ]

14:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  %15 = getelementptr inbounds i8, ptr %12, i64 8
  call void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind nonnull writable sret(%struct.PackageVersion) align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %15)
  %16 = invoke noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %17 unwind label %18

17:                                               ; preds = %14
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br i1 %16, label %20, label %._crit_edge

18:                                               ; preds = %14
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  br label %47

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @_ZNK14PackageVersion13next_breakingEv(ptr dead_on_unwind nonnull writable sret(%struct.PackageVersion) align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %15)
  %21 = call noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %6)
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  br i1 %21, label %.critedge, label %._crit_edge

22:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  %23 = getelementptr inbounds i8, ptr %12, i64 8
  call void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind nonnull writable sret(%struct.PackageVersion) align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %23)
  %24 = invoke noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %25 unwind label %26

25:                                               ; preds = %22
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  br i1 %24, label %28, label %._crit_edge

26:                                               ; preds = %22
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  br label %47

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #4
  call void @_ZNK14PackageVersion10next_minorEv(ptr dead_on_unwind nonnull writable sret(%struct.PackageVersion) align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %23)
  %29 = call noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %8)
  call void @_ZN14PackageVersionD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  br i1 %29, label %.critedge, label %._crit_edge

30:                                               ; preds = %.lr.ph
  %31 = getelementptr inbounds i8, ptr %12, i64 8
  %32 = call noundef zeroext i1 @_ZNK14PackageVersiongeERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %31)
  br i1 %32, label %.critedge, label %._crit_edge

33:                                               ; preds = %.lr.ph
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  %35 = call noundef zeroext i1 @_ZNK14PackageVersiongtERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %34)
  br i1 %35, label %.critedge, label %._crit_edge

36:                                               ; preds = %.lr.ph
  %37 = getelementptr inbounds i8, ptr %12, i64 8
  %38 = call noundef zeroext i1 @_ZNK14PackageVersionneERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %37)
  br i1 %38, label %._crit_edge, label %.critedge

39:                                               ; preds = %.lr.ph
  %40 = getelementptr inbounds i8, ptr %12, i64 8
  %41 = call noundef zeroext i1 @_ZNK14PackageVersionleERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %40)
  br i1 %41, label %.critedge, label %._crit_edge

42:                                               ; preds = %.lr.ph
  %43 = getelementptr inbounds i8, ptr %12, i64 8
  %44 = call noundef zeroext i1 @_ZNK14PackageVersionltERKS_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %43)
  br i1 %44, label %.critedge, label %._crit_edge

.critedge:                                        ; preds = %42, %39, %36, %33, %30, %28, %20, %.lr.ph
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN18PackageVersionSpec5BoundESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %46, label %.lr.ph, label %._crit_edge

47:                                               ; preds = %26, %18
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %.critedge, %42, %39, %36, %33, %30, %28, %25, %20, %17, %2
  %.lcssa = phi i1 [ true, %2 ], [ false, %17 ], [ false, %20 ], [ false, %25 ], [ false, %28 ], [ false, %30 ], [ false, %33 ], [ false, %36 ], [ false, %39 ], [ false, %42 ], [ true, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i1 %.lcssa
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion11prev_compatEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion13next_breakingEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK14PackageVersion10next_minorEv(ptr dead_on_unwind noalias writable sret(%struct.PackageVersion) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

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

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

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


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