; LLVM IR from tyoma/agge :: tests/agge.text/helpers_layout.ll (ZNK4agge5tests13ref_glyph_runeqERKNS_9glyph_runE)

; 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" = type { ptr }
%"class.agge::tests::ref_glyph_run" = type <{ %"class.std::shared_ptr", %"struct.agge::agge_vector", %"class.std::vector", i8, [7 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.agge::agge_vector" = type { float, float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<agge::positioned_glyph, std::allocator<agge::positioned_glyph>>::_Vector_impl" }
%"struct.std::_Vector_base<agge::positioned_glyph, std::allocator<agge::positioned_glyph>>::_Vector_impl" = type { %"struct.std::_Vector_base<agge::positioned_glyph, std::allocator<agge::positioned_glyph>>::_Vector_impl_data" }
%"struct.std::_Vector_base<agge::positioned_glyph, std::allocator<agge::positioned_glyph>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.agge::glyph_run" = type { %"class.agge::range", %"class.std::shared_ptr", %"struct.agge::agge_vector" }
%"class.agge::range" = type { i64, i64, ptr }
%"struct.agge::positioned_glyph" = type { i32, %"struct.agge::agge_vector" }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4agge5tests13ref_glyph_runeqERKNS_9glyph_runE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.agge::glyph_run", ptr %13, i32 0, i32 1
  %15 = call noundef zeroext i1 @_ZSteqIN4agge4fontES1_EbRKSt10shared_ptrIT_ERKS2_IT0_E(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br i1 %15, label %16, label %76

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 1
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.agge::glyph_run", ptr %18, i32 0, i32 2
  %20 = call noundef zeroext i1 @_ZN4aggeeqERKNS_11agge_vectorIfEES3_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %19)
  br i1 %20, label %21, label %76

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %22 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 2
  %23 = call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  store ptr %26, ptr %7, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %59, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %28 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 2
  %29 = call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %31, label %32, label %37

32:                                               ; preds = %27
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = icmp ne ptr %33, %35
  br label %37

37:                                               ; preds = %32, %27
  %38 = phi i1 [ false, %27 ], [ %36, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br i1 %38, label %39, label %63

39:                                               ; preds = %37
  %40 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %41 = getelementptr inbounds %"struct.agge::positioned_glyph", ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.agge::positioned_glyph", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp ne i32 %42, %45
  br i1 %46, label %57, label %47

47:                                               ; preds = %39
  %48 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 3
  %49 = load i8, ptr %48, align 8, !tbaa !14, !range !24, !noundef !25
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %58

51:                                               ; preds = %47
  %52 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %53 = getelementptr inbounds %"struct.agge::positioned_glyph", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.agge::positioned_glyph", ptr %54, i32 0, i32 1
  %56 = call noundef zeroext i1 @_ZN4aggeeqERKNS_11agge_vectorIfEES3_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %55)
  br i1 %56, label %58, label %57

57:                                               ; preds = %51, %39
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %75

58:                                               ; preds = %51, %47
  br label %59

59:                                               ; preds = %58
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.agge::positioned_glyph", ptr %61, i32 1
  store ptr %62, ptr %7, align 8, !tbaa !5
  br label %27, !llvm.loop !26

63:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %64 = getelementptr inbounds %"class.agge::tests::ref_glyph_run", ptr %11, i32 0, i32 2
  %65 = call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #5
  %66 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %67, label %68, label %73

68:                                               ; preds = %63
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70)
  %72 = icmp eq ptr %69, %71
  br label %73

73:                                               ; preds = %68, %63
  %74 = phi i1 [ false, %63 ], [ %72, %68 ]
  store i1 %74, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  store i32 1, ptr %9, align 4
  br label %75

75:                                               ; preds = %73, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %77

76:                                               ; preds = %16, %2
  store i1 false, ptr %3, align 1
  br label %77

77:                                               ; preds = %76, %75
  %78 = load i1, ptr %3, align 1
  ret i1 %78
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4agge16positioned_glyphESt6vectorIS2_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 ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !11, i64 0}
!10 = !{!"_ZTSN4agge16positioned_glyphE", !11, i64 0, !12, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4agge11agge_vectorIfEE", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !23, i64 48}
!15 = !{!"_ZTSN4agge5tests13ref_glyph_runE", !16, i64 0, !12, i64 16, !19, i64 24, !23, i64 48}
!16 = !{!"_ZTSSt10shared_ptrIN4agge4fontEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN4agge4fontELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!19 = !{!"_ZTSSt6vectorIN4agge16positioned_glyphESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !27}
!27 = !{!"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"

%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4agge5tests13ref_glyph_runeqERKNS_9glyph_runE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = tail call noundef zeroext i1 @_ZSteqIN4agge4fontES1_EbRKSt10shared_ptrIT_ERKS2_IT0_E(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br i1 %7, label %8, label %45

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = tail call noundef zeroext i1 @_ZN4aggeeqERKNS_11agge_vectorIfEES3_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  br i1 %11, label %12, label %45

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = tail call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %14, ptr %3, align 8
  %15 = tail call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %16 = tail call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %16, ptr %4, align 8
  %17 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %17, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  br label %19

19:                                               ; preds = %.lr.ph, %33
  %.018 = phi ptr [ %15, %.lr.ph ], [ %35, %33 ]
  %20 = call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not = icmp eq ptr %.018, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br i1 %.not, label %.loopexit, label %21

21:                                               ; preds = %19
  %22 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = load i32, ptr %.018, align 4, !tbaa !5
  %.not13 = icmp eq i32 %23, %24
  br i1 %.not13, label %25, label %.loopexit14

25:                                               ; preds = %21
  %26 = load i8, ptr %18, align 8, !tbaa !12, !range !23, !noundef !24
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %30 = getelementptr inbounds i8, ptr %29, i64 4
  %31 = getelementptr inbounds i8, ptr %.018, i64 4
  %32 = call noundef zeroext i1 @_ZN4aggeeqERKNS_11agge_vectorIfEES3_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31)
  br i1 %32, label %33, label %.loopexit14

33:                                               ; preds = %25, %28
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %35 = getelementptr inbounds i8, ptr %.018, i64 12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %36 = call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %36, ptr %4, align 8
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %37, label %19, label %.critedge, !llvm.loop !25

.critedge:                                        ; preds = %33, %12
  %.0.lcssa = phi ptr [ %15, %12 ], [ %35, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %.loopexit

.loopexit:                                        ; preds = %19, %.critedge
  %.017 = phi ptr [ %.0.lcssa, %.critedge ], [ %.018, %19 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %38 = call ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %38, ptr %5, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN4agge16positioned_glyphESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %39, label %40, label %43

40:                                               ; preds = %.loopexit
  %41 = call noundef ptr @_ZNK4agge5rangeIKNS_10pod_vectorINS_16positioned_glyphEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %42 = icmp eq ptr %.017, %41
  br label %43

43:                                               ; preds = %40, %.loopexit
  %44 = phi i1 [ false, %.loopexit ], [ %42, %40 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.loopexit14

.loopexit14:                                      ; preds = %21, %28, %43
  %.012 = phi i1 [ %44, %43 ], [ false, %28 ], [ false, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %45

45:                                               ; preds = %2, %8, %.loopexit14
  %.1 = phi i1 [ %.012, %.loopexit14 ], [ false, %8 ], [ false, %2 ]
  ret i1 %.1
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4agge16positioned_glyphESt6vectorIS2_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 ptr @_ZNKSt6vectorIN4agge16positioned_glyphESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN4agge16positioned_glyphESt6vectorIS2_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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { inlinehint 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"_ZTSN4agge16positioned_glyphE", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4agge11agge_vectorIfEE", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !22, i64 48}
!13 = !{!"_ZTSN4agge5tests13ref_glyph_runE", !14, i64 0, !10, i64 16, !18, i64 24, !22, i64 48}
!14 = !{!"_ZTSSt10shared_ptrIN4agge4fontEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN4agge4fontELN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0, !17, i64 8}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !16, i64 0}
!18 = !{!"_ZTSSt6vectorIN4agge16positioned_glyphESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4agge16positioned_glyphESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!22 = !{!"bool", !8, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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