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

; 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] }
%"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 }

@_ZN15PalindromicTree5root0E = external dso_local global ptr, align 8
@_ZN15PalindromicTree6suffixE = external dso_local global ptr, align 8
@_ZN15PalindromicTree1sB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN15PalindromicTree8new_nodeEii(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15PalindromicTree3addEi(i32 noundef %0) #0 {
  %2 = alloca i1, align 1
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %11 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  store ptr %11, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %13)
  %15 = load i8, ptr %14, align 1, !tbaa !11
  %16 = sext i8 %15 to i32
  %17 = sub nsw i32 %16, 97
  store i32 %17, ptr %5, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %45, %1
  br label %19

19:                                               ; preds = %18
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sub nsw i32 %20, 1
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  %23 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !12
  %25 = sub nsw i32 %21, %24
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %27, label %45

27:                                               ; preds = %19
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  %31 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !12
  %33 = sub nsw i32 %29, %32
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %34)
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %39)
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %37, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %27
  br label %49

45:                                               ; preds = %27, %19
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !28
  store ptr %48, ptr %4, align 8, !tbaa !9
  br label %18, !llvm.loop !29

49:                                               ; preds = %44
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  %51 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %50, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = trunc i32 %52 to i8
  store i8 %53, ptr %6, align 1, !tbaa !11
  %54 = call noundef i64 @_ZNKSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %51, ptr noundef nonnull align 1 dereferenceable(1) %6)
  %55 = icmp ne i64 %54, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  br i1 %55, label %56, label %67

56:                                               ; preds = %49
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %57, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = trunc i32 %59 to i8
  store i8 %60, ptr %7, align 1, !tbaa !11
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  store ptr %62, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  %63 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %64 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %63, i32 0, i32 2
  %65 = load i64, ptr %64, align 8, !tbaa !31
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %64, align 8, !tbaa !31
  store i1 false, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %130

67:                                               ; preds = %49
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = call noundef ptr @_ZN15PalindromicTree8new_nodeEii(i32 noundef %68, i32 noundef 1)
  store ptr %69, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  %71 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !12
  %73 = add nsw i32 %72, 2
  %74 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %75 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %74, i32 0, i32 0
  store i32 %73, ptr %75, align 8, !tbaa !12
  %76 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %77, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = trunc i32 %79 to i8
  store i8 %80, ptr %9, align 1, !tbaa !11
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 1 dereferenceable(1) %9)
  store ptr %76, ptr %81, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  %82 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %83 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !12
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %90

86:                                               ; preds = %67
  %87 = load ptr, ptr @_ZN15PalindromicTree5root0E, align 8, !tbaa !9
  %88 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %89 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %88, i32 0, i32 4
  store ptr %87, ptr %89, align 8, !tbaa !28
  store i1 true, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %130

90:                                               ; preds = %67
  br label %91

91:                                               ; preds = %129, %90
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !28
  store ptr %95, ptr %4, align 8, !tbaa !9
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !12
  %101 = sub nsw i32 %97, %100
  %102 = icmp sge i32 %101, 0
  br i1 %102, label %103, label %129

103:                                              ; preds = %92
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = sub nsw i32 %104, 1
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !12
  %109 = sub nsw i32 %105, %108
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %110)
  %112 = load i8, ptr %111, align 1, !tbaa !11
  %113 = sext i8 %112 to i32
  %114 = load i32, ptr %3, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %115)
  %117 = load i8, ptr %116, align 1, !tbaa !11
  %118 = sext i8 %117 to i32
  %119 = icmp eq i32 %113, %118
  br i1 %119, label %120, label %129

120:                                              ; preds = %103
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  %122 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %121, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = trunc i32 %123 to i8
  store i8 %124, ptr %10, align 1, !tbaa !11
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %122, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  %127 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !9
  %128 = getelementptr inbounds %"struct.PalindromicTree::Node", ptr %127, i32 0, i32 4
  store ptr %126, ptr %128, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  store i1 true, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %130

129:                                              ; preds = %103, %92
  br label %91, !llvm.loop !32

130:                                              ; preds = %120, %86, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %131 = load i1, ptr %2, align 1
  ret i1 %131
}

; 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 uwtable
declare dso_local noundef i64 @_ZNKSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSN15PalindromicTree4NodeE", !6, i64 0, !6, i64 4, !14, i64 8, !14, i64 16, !10, i64 24, !15, i64 32, !24, i64 80}
!14 = !{!"long long", !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, !10, i64 8, !10, i64 16, !10, 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", !10, i64 0, !10, i64 8, !10, i64 16}
!28 = !{!13, !10, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!13, !14, i64 8}
!32 = distinct !{!32, !30}


; 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] }

@_ZN15PalindromicTree5root0E = external dso_local local_unnamed_addr global ptr, align 8
@_ZN15PalindromicTree6suffixE = external dso_local local_unnamed_addr global ptr, align 8
@_ZN15PalindromicTree1sB5cxx11E = external dso_local global %"class.std::__cxx11::basic_string", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN15PalindromicTree8new_nodeEii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15PalindromicTree3addEi(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i8, align 1
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !5
  %7 = sext i32 %0 to i64
  %8 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %7)
  %9 = load i8, ptr %8, align 1, !tbaa !9
  %10 = add nsw i32 %0, -1
  br label %11

11:                                               ; preds = %22, %1
  %.023 = phi ptr [ %6, %1 ], [ %24, %22 ]
  %12 = load i32, ptr %.023, align 8, !tbaa !10
  %13 = sub nsw i32 %10, %12
  %14 = icmp sgt i32 %13, -1
  br i1 %14, label %15, label %22

15:                                               ; preds = %11
  %16 = zext nneg i32 %13 to i64
  %17 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %16)
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %7)
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = icmp eq i8 %18, %20
  br i1 %21, label %25, label %22

22:                                               ; preds = %15, %11
  %23 = getelementptr inbounds i8, ptr %.023, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !27
  br label %11, !llvm.loop !28

25:                                               ; preds = %15
  %26 = add i8 %9, -97
  %27 = getelementptr inbounds i8, ptr %.023, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #3
  store i8 %26, ptr %2, align 1, !tbaa !9
  %28 = call noundef i64 @_ZNKSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 1 dereferenceable(1) %2)
  %.not = icmp eq i64 %28, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #3
  br i1 %.not, label %35, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  store i8 %26, ptr %3, align 1, !tbaa !9
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %31, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !30
  %34 = add nsw i64 %33, 1
  store i64 %34, ptr %32, align 8, !tbaa !30
  br label %64

35:                                               ; preds = %25
  %36 = call noundef ptr @_ZN15PalindromicTree8new_nodeEii(i32 noundef %0, i32 noundef 1)
  store ptr %36, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !5
  %37 = load i32, ptr %.023, align 8, !tbaa !10
  %38 = add nsw i32 %37, 2
  store i32 %38, ptr %36, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  store i8 %26, ptr %4, align 1, !tbaa !9
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 1 dereferenceable(1) %4)
  store ptr %36, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  %40 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 8, !tbaa !10
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %.preheader

43:                                               ; preds = %35
  %44 = load ptr, ptr @_ZN15PalindromicTree5root0E, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %40, i64 24
  store ptr %44, ptr %45, align 8, !tbaa !27
  br label %64

.preheader:                                       ; preds = %35, %.preheader.backedge
  %.1 = phi ptr [ %47, %.preheader.backedge ], [ %.023, %35 ]
  %46 = getelementptr inbounds i8, ptr %.1, i64 24
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %48 = load i32, ptr %47, align 8, !tbaa !10
  %49 = sub nsw i32 %10, %48
  %50 = icmp sgt i32 %49, -1
  br i1 %50, label %51, label %.preheader.backedge

51:                                               ; preds = %.preheader
  %52 = zext nneg i32 %49 to i64
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %52)
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_ZN15PalindromicTree1sB5cxx11E, i64 noundef %7)
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %57 = icmp eq i8 %54, %56
  br i1 %57, label %58, label %.preheader.backedge

.preheader.backedge:                              ; preds = %51, %.preheader
  br label %.preheader, !llvm.loop !31

58:                                               ; preds = %51
  %59 = getelementptr inbounds i8, ptr %47, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  store i8 %26, ptr %5, align 1, !tbaa !9
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load ptr, ptr @_ZN15PalindromicTree6suffixE, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  store ptr %61, ptr %63, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  br label %64

64:                                               ; preds = %58, %43, %29
  ret i1 %.not
}

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIcPN15PalindromicTree4NodeESt4lessIcESaISt4pairIKcS2_EEEixEOc(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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


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