; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint Aug/Problem G (brute)

; 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.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.PalindromicTree::Node" = type { i32, i32, i64, i64, ptr, %"class.std::map", %"class.std::vector" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, std::pair<const char, PalindromicTree::Node *>, std::_Select1st<std::pair<const char, PalindromicTree::Node *>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, PalindromicTree::Node *>, std::_Select1st<std::pair<const char, PalindromicTree::Node *>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PalindromicTree::Node *, std::allocator<PalindromicTree::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<PalindromicTree::Node *, std::allocator<PalindromicTree::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PalindromicTree::Node *, std::allocator<PalindromicTree::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PalindromicTree::Node *, std::allocator<PalindromicTree::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@Q = external dso_local global i32, align 4
@O = external dso_local global [100111 x %"struct.std::pair"], align 16
@ans = external dso_local global [100111 x ptr], align 16
@cur = external dso_local global i32, align 4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsPN15PalindromicTree4NodeEx(ptr noundef %0, i64 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %10, label %9

9:                                                ; preds = %2
  br label %87

10:                                               ; preds = %2
  %11 = load i32, ptr @cur, align 4, !tbaa !11
  %12 = load i32, ptr @Q, align 4, !tbaa !11
  %13 = icmp eq i32 %11, %12
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  br label %87

15:                                               ; preds = %10
  %16 = load i32, ptr @cur, align 4, !tbaa !11
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [100111 x %"struct.std::pair"], ptr @O, i64 0, i64 %17
  %19 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 16, !tbaa !13
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = sub nsw i64 %20, %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %23, i32 0, i32 3
  %25 = load i64, ptr %24, align 8, !tbaa !15
  %26 = icmp sge i64 %22, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %15
  br label %87

28:                                               ; preds = %15
  br label %29

29:                                               ; preds = %47, %28
  %30 = load i32, ptr @cur, align 4, !tbaa !11
  %31 = load i32, ptr @Q, align 4, !tbaa !11
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %45

33:                                               ; preds = %29
  %34 = load i32, ptr @cur, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100111 x %"struct.std::pair"], ptr @O, i64 0, i64 %35
  %37 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 16, !tbaa !13
  %39 = load i64, ptr %4, align 8, !tbaa !9
  %40 = sub nsw i64 %38, %39
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %41, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !30
  %44 = icmp slt i64 %40, %43
  br label %45

45:                                               ; preds = %33, %29
  %46 = phi i1 [ false, %29 ], [ %44, %33 ]
  br i1 %46, label %47, label %58

47:                                               ; preds = %45
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i32, ptr @cur, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100111 x %"struct.std::pair"], ptr @O, i64 0, i64 %50
  %52 = getelementptr inbounds %"struct.std::pair", ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !31
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100111 x ptr], ptr @ans, i64 0, i64 %54
  store ptr %48, ptr %55, align 8, !tbaa !5
  %56 = load i32, ptr @cur, align 4, !tbaa !11
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr @cur, align 4, !tbaa !11
  br label %29, !llvm.loop !32

58:                                               ; preds = %45
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %59, i32 0, i32 2
  %61 = load i64, ptr %60, align 8, !tbaa !30
  %62 = load i64, ptr %4, align 8, !tbaa !9
  %63 = add nsw i64 %62, %61
  store i64 %63, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %64, i32 0, i32 6
  %66 = call ptr @_ZNSt6vectorIPN15PalindromicTree4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #4
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %68, i32 0, i32 6
  %70 = call ptr @_ZNSt6vectorIPN15PalindromicTree4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #4
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  br label %72

72:                                               ; preds = %85, %58
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %73, label %75, label %74

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %87

75:                                               ; preds = %72
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %4, align 8, !tbaa !9
  call void @_Z3dfsPN15PalindromicTree4NodeEx(ptr noundef %77, i64 noundef %78)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %80, i32 0, i32 3
  %82 = load i64, ptr %81, align 8, !tbaa !15
  %83 = load i64, ptr %4, align 8, !tbaa !9
  %84 = add nsw i64 %83, %82
  store i64 %84, ptr %4, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %75
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  br label %72, !llvm.loop !34

87:                                               ; preds = %74, %27, %14, %9
  ret void
}

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 = { 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 #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 }

!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 long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSSt4pairIxiE", !10, i64 0, !12, i64 8}
!15 = !{!16, !10, i64 16}
!16 = !{!"_ZTSN15PalindromicTree4NodeE", !12, i64 0, !12, i64 4, !10, i64 8, !10, i64 16, !6, i64 24, !17, i64 32, !26, i64 80}
!17 = !{!"_ZTSSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeIcSt4pairIKcPN15PalindromicTree4NodeEESt10_Select1stIS5_ESt4lessIcESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeIcSt4pairIKcPN15PalindromicTree4NodeEESt10_Select1stIS5_ESt4lessIcESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessIcE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !25, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIPN15PalindromicTree4NodeESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!16, !10, i64 8}
!31 = !{!14, !12, i64 8}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


; 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.std::pair" = type <{ i64, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@Q = external dso_local local_unnamed_addr global i32, align 4
@O = external dso_local local_unnamed_addr global [100111 x %"struct.std::pair"], align 16
@ans = external dso_local local_unnamed_addr global [100111 x ptr], align 16
@cur = external dso_local local_unnamed_addr global i32, align 4

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3dfsPN15PalindromicTree4NodeEx(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %44, label %5

5:                                                ; preds = %2
  %6 = load i32, ptr @cur, align 4, !tbaa !5
  %7 = load i32, ptr @Q, align 4, !tbaa !5
  %8 = icmp eq i32 %6, %7
  br i1 %8, label %44, label %9

9:                                                ; preds = %5
  %10 = sext i32 %6 to i64
  %11 = getelementptr inbounds [100111 x %"struct.std::pair"], ptr @O, i64 0, i64 %10
  %12 = load i64, ptr %11, align 16, !tbaa !9
  %13 = sub nsw i64 %12, %1
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !12
  %.not14 = icmp slt i64 %13, %15
  br i1 %.not14, label %.preheader, label %44

.preheader:                                       ; preds = %9
  %16 = icmp slt i32 %6, %7
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i64, ptr %17, align 8, !tbaa !28
  br i1 %16, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.preheader
  %wide.trip.count = sext i32 %7 to i64
  br label %19

19:                                               ; preds = %.lr.ph, %24
  %indvars.iv = phi i64 [ %10, %.lr.ph ], [ %indvars.iv.next, %24 ]
  %20 = getelementptr inbounds [100111 x %"struct.std::pair"], ptr @O, i64 0, i64 %indvars.iv
  %21 = load i64, ptr %20, align 16, !tbaa !9
  %22 = sub nsw i64 %21, %1
  %23 = icmp slt i64 %22, %18
  br i1 %23, label %24, label %.critedge

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %20, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !29
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100111 x ptr], ptr @ans, i64 0, i64 %27
  store ptr %0, ptr %28, align 8, !tbaa !30
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %29 = trunc nsw i64 %indvars.iv.next to i32
  store i32 %29, ptr @cur, align 4, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %19, !llvm.loop !31

.critedge:                                        ; preds = %19, %24, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  %31 = tail call ptr @_ZNSt6vectorIPN15PalindromicTree4NodeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #3
  store ptr %31, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %32 = tail call ptr @_ZNSt6vectorIPN15PalindromicTree4NodeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #3
  store ptr %32, ptr %4, align 8
  %33 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %33, label %.lr.ph17.preheader, label %._crit_edge

.lr.ph17.preheader:                               ; preds = %.critedge
  %34 = add nsw i64 %18, %1
  br label %.lr.ph17

._crit_edge:                                      ; preds = %.lr.ph17, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %44

.lr.ph17:                                         ; preds = %.lr.ph17.preheader, %.lr.ph17
  %.016 = phi i64 [ %41, %.lr.ph17 ], [ %34, %.lr.ph17.preheader ]
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %36 = load ptr, ptr %35, align 8, !tbaa !30
  call void @_Z3dfsPN15PalindromicTree4NodeEx(ptr noundef %36, i64 noundef %.016)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %38 = load ptr, ptr %37, align 8, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load i64, ptr %39, align 8, !tbaa !12
  %41 = add nsw i64 %40, %.016
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN15PalindromicTree4NodeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %43, label %.lr.ph17, label %._crit_edge, !llvm.loop !33

44:                                               ; preds = %9, %5, %2, %._crit_edge
  ret void
}

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 = { 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 #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt4pairIxiE", !11, i64 0, !6, i64 8}
!11 = !{!"long long", !7, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"_ZTSN15PalindromicTree4NodeE", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16, !14, i64 24, !15, i64 32, !24, i64 80}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeIcSt4pairIKcPN15PalindromicTree4NodeEESt10_Select1stIS5_ESt4lessIcESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeIcSt4pairIKcPN15PalindromicTree4NodeEESt10_Select1stIS5_ESt4lessIcESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !19, i64 0}
!19 = !{!"_ZTSSt4lessIcE"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIPN15PalindromicTree4NodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN15PalindromicTree4NodeESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!28 = !{!13, !11, i64 8}
!29 = !{!10, !6, i64 8}
!30 = !{!14, !14, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass