; LLVM IR from xirc/cp-algorithm :: aoj/ALDS1/ALDS7B/main.ll (Z16update_tree_infoiii)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Node = type { i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@root = external dso_local global i32, align 4
@nodes = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16update_tree_infoiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %12) #4
  %14 = getelementptr inbounds %struct.Node, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  store i32 %15, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %17) #4
  %19 = getelementptr inbounds %struct.Node, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !15
  store i32 %20, ptr %8, align 4, !tbaa !5
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %23) #4
  %25 = getelementptr inbounds %struct.Node, ptr %24, i32 0, i32 2
  store i32 %21, ptr %25, align 8, !tbaa !16
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %27) #4
  %29 = getelementptr inbounds %struct.Node, ptr %28, i32 0, i32 4
  store i32 0, ptr %29, align 8, !tbaa !17
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load i32, ptr @root, align 4, !tbaa !5
  %32 = icmp eq i32 %30, %31
  br i1 %32, label %33, label %38

33:                                               ; preds = %3
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %35) #4
  %37 = getelementptr inbounds %struct.Node, ptr %36, i32 0, i32 3
  store i32 -1, ptr %37, align 4, !tbaa !18
  br label %38

38:                                               ; preds = %33, %3
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = icmp ne i32 %39, -1
  br i1 %40, label %41, label %53

41:                                               ; preds = %38
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %43) #4
  %45 = getelementptr inbounds %struct.Node, ptr %44, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !17
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 8, !tbaa !17
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %50) #4
  %52 = getelementptr inbounds %struct.Node, ptr %51, i32 0, i32 3
  store i32 %48, ptr %52, align 4, !tbaa !18
  br label %53

53:                                               ; preds = %41, %38
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = icmp ne i32 %54, -1
  br i1 %55, label %56, label %68

56:                                               ; preds = %53
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %58) #4
  %60 = getelementptr inbounds %struct.Node, ptr %59, i32 0, i32 4
  %61 = load i32, ptr %60, align 8, !tbaa !17
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 8, !tbaa !17
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %65) #4
  %67 = getelementptr inbounds %struct.Node, ptr %66, i32 0, i32 3
  store i32 %63, ptr %67, align 4, !tbaa !18
  br label %68

68:                                               ; preds = %56, %53
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %71) #4
  %73 = getelementptr inbounds %struct.Node, ptr %72, i32 0, i32 5
  store i32 %69, ptr %73, align 4, !tbaa !19
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = load i32, ptr @root, align 4, !tbaa !5
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %77, label %83

77:                                               ; preds = %68
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %79) #4
  %81 = getelementptr inbounds %struct.Node, ptr %80, i32 0, i32 7
  %82 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef @.str)
  br label %102

83:                                               ; preds = %68
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %86, label %95

86:                                               ; preds = %83
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = icmp eq i32 %87, -1
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %91) #4
  %93 = getelementptr inbounds %struct.Node, ptr %92, i32 0, i32 7
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %93, ptr noundef @.str.2)
  br label %101

95:                                               ; preds = %86, %83
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %97) #4
  %99 = getelementptr inbounds %struct.Node, ptr %98, i32 0, i32 7
  %100 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %99, ptr noundef @.str.3)
  br label %101

101:                                              ; preds = %95, %89
  br label %102

102:                                              ; preds = %101, %77
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %104) #4
  %106 = getelementptr inbounds %struct.Node, ptr %105, i32 0, i32 6
  store i32 0, ptr %106, align 8, !tbaa !20
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = icmp ne i32 %107, -1
  br i1 %108, label %109, label %130

109:                                              ; preds = %102
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  call void @_Z16update_tree_infoiii(i32 noundef %110, i32 noundef %111, i32 noundef %113)
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %115) #4
  %117 = getelementptr inbounds %struct.Node, ptr %116, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %119) #4
  %121 = getelementptr inbounds %struct.Node, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %121, align 8, !tbaa !20
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %9, align 4, !tbaa !5
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %117, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %127) #4
  %129 = getelementptr inbounds %struct.Node, ptr %128, i32 0, i32 6
  store i32 %125, ptr %129, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %130

130:                                              ; preds = %109, %102
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = icmp ne i32 %131, -1
  br i1 %132, label %133, label %154

133:                                              ; preds = %130
  %134 = load i32, ptr %8, align 4, !tbaa !5
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  call void @_Z16update_tree_infoiii(i32 noundef %134, i32 noundef %135, i32 noundef %137)
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %139) #4
  %141 = getelementptr inbounds %struct.Node, ptr %140, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %143) #4
  %145 = getelementptr inbounds %struct.Node, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %145, align 8, !tbaa !20
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %10, align 4, !tbaa !5
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %141, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %151) #4
  %153 = getelementptr inbounds %struct.Node, ptr %152, i32 0, i32 6
  store i32 %149, ptr %153, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %154

154:                                              ; preds = %133, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !11, i64 32}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !6, i64 4}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !6, i64 12}
!19 = !{!10, !6, i64 20}
!20 = !{!10, !6, i64 24}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Node, std::allocator<Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@root = external dso_local local_unnamed_addr global i32, align 4
@nodes = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1

; 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 noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16update_tree_infoiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = sext i32 %0 to i64
  %7 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %10 = getelementptr inbounds i8, ptr %9, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !14
  %12 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  store i32 %1, ptr %13, align 8, !tbaa !15
  %14 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store i32 0, ptr %15, align 8, !tbaa !16
  %16 = load i32, ptr @root, align 4, !tbaa !17
  %17 = icmp eq i32 %16, %0
  br i1 %17, label %18, label %21

18:                                               ; preds = %3
  %19 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %20 = getelementptr inbounds i8, ptr %19, i64 12
  store i32 -1, ptr %20, align 4, !tbaa !18
  br label %21

21:                                               ; preds = %18, %3
  %.not = icmp eq i32 %8, -1
  br i1 %.not, label %30, label %22

22:                                               ; preds = %21
  %23 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 8, !tbaa !16
  %27 = sext i32 %8 to i64
  %28 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %27) #4
  %29 = getelementptr inbounds i8, ptr %28, i64 12
  store i32 %11, ptr %29, align 4, !tbaa !18
  br label %30

30:                                               ; preds = %22, %21
  %.not41 = icmp eq i32 %11, -1
  br i1 %.not41, label %39, label %31

31:                                               ; preds = %30
  %32 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load i32, ptr %33, align 8, !tbaa !16
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 8, !tbaa !16
  %36 = sext i32 %11 to i64
  %37 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %36) #4
  %38 = getelementptr inbounds i8, ptr %37, i64 12
  store i32 %8, ptr %38, align 4, !tbaa !18
  br label %39

39:                                               ; preds = %31, %30
  %40 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %41 = getelementptr inbounds i8, ptr %40, i64 20
  store i32 %2, ptr %41, align 4, !tbaa !19
  %42 = load i32, ptr @root, align 4, !tbaa !17
  %43 = icmp eq i32 %42, %0
  br i1 %43, label %44, label %48

44:                                               ; preds = %39
  %45 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %46 = getelementptr inbounds i8, ptr %45, i64 32
  %47 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull @.str)
  br label %57

48:                                               ; preds = %39
  %49 = and i32 %11, %8
  %or.cond = icmp eq i32 %49, -1
  %50 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  br i1 %or.cond, label %.thread42, label %55

.thread42:                                        ; preds = %48
  %52 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull @.str.2)
  %53 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %54 = getelementptr inbounds i8, ptr %53, i64 24
  store i32 0, ptr %54, align 8, !tbaa !20
  br label %87

55:                                               ; preds = %48
  %56 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull @.str.3)
  br label %57

57:                                               ; preds = %55, %44
  %58 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  store i32 0, ptr %59, align 8, !tbaa !20
  br i1 %.not, label %73, label %60

60:                                               ; preds = %57
  %61 = add nsw i32 %2, 1
  tail call void @_Z16update_tree_infoiii(i32 noundef %8, i32 noundef %0, i32 noundef %61)
  %62 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %64 = sext i32 %8 to i64
  %65 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %64) #4
  %66 = getelementptr inbounds i8, ptr %65, i64 24
  %67 = load i32, ptr %66, align 8, !tbaa !20
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %4, align 4, !tbaa !17
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %70 = load i32, ptr %69, align 4, !tbaa !17
  %71 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %72 = getelementptr inbounds i8, ptr %71, i64 24
  store i32 %70, ptr %72, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %73

73:                                               ; preds = %60, %57
  br i1 %.not41, label %87, label %74

74:                                               ; preds = %73
  %75 = add nsw i32 %2, 1
  call void @_Z16update_tree_infoiii(i32 noundef %11, i32 noundef %0, i32 noundef %75)
  %76 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %78 = sext i32 %11 to i64
  %79 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %78) #4
  %80 = getelementptr inbounds i8, ptr %79, i64 24
  %81 = load i32, ptr %80, align 8, !tbaa !20
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %5, align 4, !tbaa !17
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %77, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %84 = load i32, ptr %83, align 4, !tbaa !17
  %85 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI4NodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @nodes, i64 noundef %6) #4
  %86 = getelementptr inbounds i8, ptr %85, i64 24
  store i32 %84, ptr %86, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %87

87:                                               ; preds = %.thread42, %74, %73
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS4Node", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 4}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 16}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 12}
!19 = !{!6, !7, i64 20}
!20 = !{!6, !7, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass