; LLVM IR from JayXon/Leanify :: lib/pugixml/pugixml.ll (ZNK4pugi8xml_node4pathB5cxx11Ec)

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

%"class.std::__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] }
%"class.pugi::xml_node" = type { ptr }
%"struct.pugi::xml_node_struct" = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4pugi8xml_node4pathB5cxx11Ec = external hidden unnamed_addr constant [44 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4pugi8xml_node4pathB5cxx11Ec(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i8 noundef signext %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i8 %2, ptr %6, align 1, !tbaa !9
  %16 = load ptr, ptr %5, align 8
  %17 = getelementptr inbounds %"class.pugi::xml_node", ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !10
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %121

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %22 = getelementptr inbounds %"class.pugi::xml_node", ptr %16, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !10
  store ptr %23, ptr %8, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %49, %21
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %53

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.pugi::xml_node_struct", ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  store ptr %31, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.pugi::xml_node", ptr %16, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !10
  %35 = icmp ne ptr %32, %34
  %36 = zext i1 %35 to i64
  %37 = load i64, ptr %7, align 8, !tbaa !12
  %38 = add i64 %37, %36
  store i64 %38, ptr %7, align 8, !tbaa !12
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %28
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef %42)
  br label %45

44:                                               ; preds = %28
  br label %45

45:                                               ; preds = %44, %41
  %46 = phi i64 [ %43, %41 ], [ 0, %44 ]
  %47 = load i64, ptr %7, align 8, !tbaa !12
  %48 = add i64 %47, %46
  store i64 %48, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.pugi::xml_node_struct", ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  store ptr %52, ptr %8, align 8, !tbaa !5
  br label %24, !llvm.loop !17

53:                                               ; preds = %27
  store i1 false, ptr %10, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  %54 = load i64, ptr %7, align 8, !tbaa !12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %54)
          to label %55 unwind label %62

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %56 = getelementptr inbounds %"class.pugi::xml_node", ptr %16, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !10
  store ptr %57, ptr %13, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %105, %55
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %66, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %110

62:                                               ; preds = %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  br label %120

66:                                               ; preds = %58
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.pugi::xml_node", ptr %16, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !10
  %70 = icmp ne ptr %67, %69
  br i1 %70, label %71, label %81

71:                                               ; preds = %66
  %72 = load i8, ptr %6, align 1, !tbaa !9
  %73 = load i64, ptr %7, align 8, !tbaa !12
  %74 = add i64 %73, -1
  store i64 %74, ptr %7, align 8, !tbaa !12
  %75 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %74)
          to label %76 unwind label %77

76:                                               ; preds = %71
  store i8 %72, ptr %75, align 1, !tbaa !9
  br label %81

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  br label %109

81:                                               ; preds = %76, %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.pugi::xml_node_struct", ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  store ptr %84, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %104

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = invoke noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef %88)
          to label %90 unwind label %100

90:                                               ; preds = %87
  store i64 %89, ptr %15, align 8, !tbaa !12
  %91 = load i64, ptr %15, align 8, !tbaa !12
  %92 = load i64, ptr %7, align 8, !tbaa !12
  %93 = sub i64 %92, %91
  store i64 %93, ptr %7, align 8, !tbaa !12
  %94 = load i64, ptr %7, align 8, !tbaa !12
  %95 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %94)
          to label %96 unwind label %100

96:                                               ; preds = %90
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load i64, ptr %15, align 8, !tbaa !12
  %99 = mul i64 %98, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %95, ptr align 1 %97, i64 %99, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %104

100:                                              ; preds = %90, %87
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %109

104:                                              ; preds = %96, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.pugi::xml_node_struct", ptr %106, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !16
  store ptr %108, ptr %13, align 8, !tbaa !5
  br label %58, !llvm.loop !19

109:                                              ; preds = %100, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %120

110:                                              ; preds = %61
  %111 = load i64, ptr %7, align 8, !tbaa !12
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  br label %116

114:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 6433, ptr noundef @__PRETTY_FUNCTION__._ZNK4pugi8xml_node4pathB5cxx11Ec) #6
  unreachable

115:                                              ; No predecessors!
  br label %116

116:                                              ; preds = %115, %113
  store i1 true, ptr %10, align 1
  %117 = load i1, ptr %10, align 1
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  br label %119

119:                                              ; preds = %118, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %121

120:                                              ; preds = %109, %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %122

121:                                              ; preds = %119, %20
  ret void

122:                                              ; preds = %120
  %123 = load ptr, ptr %11, align 8
  %124 = load i32, ptr %12, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTSN4pugi8xml_nodeE", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTSN4pugi15xml_node_structE", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!16 = !{!15, !6, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

%"class.std::__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] }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4pugi8xml_node4pathB5cxx11Ec = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4pugi8xml_node4pathB5cxx11Ec(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %1, i8 noundef signext %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %.preheader36

5:                                                ; preds = %3
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  br label %37

6:                                                ; preds = %15
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %17)
          to label %.preheader unwind label %21

.preheader:                                       ; preds = %6
  %.02739 = load ptr, ptr %1, align 8, !tbaa !10
  %.not3240 = icmp eq ptr %.02739, null
  br i1 %.not3240, label %._crit_edge, label %.lr.ph

.preheader36:                                     ; preds = %3, %15
  %.038 = phi i64 [ %17, %15 ], [ 0, %3 ]
  %.02637 = phi ptr [ %19, %15 ], [ %4, %3 ]
  %7 = getelementptr inbounds i8, ptr %.02637, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = icmp ne ptr %.02637, %9
  %11 = zext i1 %10 to i64
  %12 = add i64 %.038, %11
  %.not35 = icmp eq ptr %8, null
  br i1 %.not35, label %15, label %13

13:                                               ; preds = %.preheader36
  %14 = tail call noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef nonnull %8)
  br label %15

15:                                               ; preds = %.preheader36, %13
  %16 = phi i64 [ %14, %13 ], [ 0, %.preheader36 ]
  %17 = add i64 %12, %16
  %18 = getelementptr inbounds i8, ptr %.02637, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %.not31 = icmp eq ptr %19, null
  br i1 %.not31, label %6, label %.preheader36, !llvm.loop !15

._crit_edge:                                      ; preds = %34, %.preheader
  %.1.lcssa = phi i64 [ %17, %.preheader ], [ %.3, %34 ]
  %20 = icmp eq i64 %.1.lcssa, 0
  br i1 %20, label %37, label %36

21:                                               ; preds = %6
  %22 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #4
  resume { ptr, i32 } %22

.lr.ph:                                           ; preds = %.preheader, %34
  %.02742 = phi ptr [ %.027, %34 ], [ %.02739, %.preheader ]
  %.141 = phi i64 [ %.3, %34 ], [ %17, %.preheader ]
  %23 = load ptr, ptr %1, align 8, !tbaa !5
  %.not33 = icmp eq ptr %.02742, %23
  br i1 %.not33, label %27, label %24

24:                                               ; preds = %.lr.ph
  %25 = add i64 %.141, -1
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %25)
  store i8 %2, ptr %26, align 1, !tbaa !17
  br label %27

27:                                               ; preds = %24, %.lr.ph
  %.2 = phi i64 [ %25, %24 ], [ %.141, %.lr.ph ]
  %28 = getelementptr inbounds i8, ptr %.02742, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %.not34 = icmp eq ptr %29, null
  br i1 %.not34, label %34, label %30

30:                                               ; preds = %27
  %31 = tail call noundef i64 @_ZN4pugi4impl12_GLOBAL__N_19strlengthEPKc(ptr noundef nonnull %29)
  %32 = sub i64 %.2, %31
  %33 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %32)
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %33, ptr nonnull align 1 %29, i64 %31, i1 false)
  br label %34

34:                                               ; preds = %30, %27
  %.3 = phi i64 [ %32, %30 ], [ %.2, %27 ]
  %35 = getelementptr inbounds i8, ptr %.02742, i64 24
  %.027 = load ptr, ptr %35, align 8, !tbaa !10
  %.not32 = icmp eq ptr %.027, null
  br i1 %.not32, label %._crit_edge, label %.lr.ph, !llvm.loop !18

36:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 6433, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4pugi8xml_node4pathB5cxx11Ec) #5
  unreachable

37:                                               ; preds = %._crit_edge, %5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!"_ZTSN4pugi8xml_nodeE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"_ZTSN4pugi15xml_node_structE", !13, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!13 = !{!"long", !8, i64 0}
!14 = !{!12, !7, i64 24}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !16}


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