; LLVM IR from ronan-kerviche/glip-lib :: GLIP-Lib/src/Modules (UniformsLoader)

; 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::_Rb_tree_const_iterator.90" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.88" = type { %"class.std::__cxx11::basic_string", %"class.Glip::Modules::UniformsLoader::Resource" }
%"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.Glip::Modules::UniformsLoader::Resource" = type <{ %"class.std::__cxx11::basic_string", ptr, i8, [7 x i8] }>
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.Glip::Modules::UniformsLoader::Node" }
%"class.Glip::Modules::UniformsLoader::Node" = type { %"class.std::__cxx11::basic_string", %"class.std::map", %"class.std::map.21" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Node>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Node>>, std::less<const std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Node>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Node>>, std::less<const std::__cxx11::basic_string<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::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<const std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Resource>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Resource>>, std::less<const std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Resource>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Glip::Modules::UniformsLoader::Resource>>, std::less<const std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

; 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 zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node5emptyEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node16hasModificationsEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #2 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca %"struct.std::_Rb_tree_const_iterator.90", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator.90", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator.90", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = call noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node5emptyEv(ptr noundef nonnull align 8 dereferenceable(128) %11)
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  br label %61

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #3
  store i8 0, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %15 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node13resourceBeginB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
  %16 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.90", ptr %5, i32 0, i32 0
  store ptr %15, ptr %16, align 8
  br label %17

17:                                               ; preds = %34, %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %18 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node11resourceEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
  %19 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.90", ptr %6, i32 0, i32 0
  store ptr %18, ptr %19, align 8
  %20 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %37

22:                                               ; preds = %17
  %23 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br i1 %24, label %31, label %25

25:                                               ; preds = %22
  %26 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %27 = getelementptr inbounds %"struct.std::pair.88", ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %"class.Glip::Modules::UniformsLoader::Resource", ptr %27, i32 0, i32 2
  %29 = load i8, ptr %28, align 8, !tbaa !13, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  br label %31

31:                                               ; preds = %25, %22
  %32 = phi i1 [ true, %22 ], [ %30, %25 ]
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %4, align 1, !tbaa !9
  br label %34

34:                                               ; preds = %31
  %35 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #3
  %36 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.90", ptr %7, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %17, !llvm.loop !19

37:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %38 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node9nodeBeginB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
  %39 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  br label %40

40:                                               ; preds = %55, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %41 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node7nodeEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
  %42 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %9, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %58

45:                                               ; preds = %40
  %46 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %47 = trunc i8 %46 to i1
  br i1 %47, label %52, label %48

48:                                               ; preds = %45
  %49 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %50 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 1
  %51 = call noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node16hasModificationsEv(ptr noundef nonnull align 8 dereferenceable(128) %50)
  br label %52

52:                                               ; preds = %48, %45
  %53 = phi i1 [ true, %45 ], [ %51, %48 ]
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %4, align 1, !tbaa !9
  br label %55

55:                                               ; preds = %52
  %56 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #3
  %57 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %10, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %40, !llvm.loop !21

58:                                               ; preds = %44
  %59 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  store i1 %60, ptr %2, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #3
  br label %61

61:                                               ; preds = %58, %13
  %62 = load i1, ptr %2, align 1
  ret i1 %62
}

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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 72}
!14 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEE", !15, i64 0, !18, i64 32}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN4Glip7Modules14UniformsLoader8ResourceE", !15, i64 0, !6, i64 32, !10, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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::_Rb_tree_const_iterator.90" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

; 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 zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node5emptyEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node16hasModificationsEv(ptr noundef nonnull align 8 dereferenceable(128) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.std::_Rb_tree_const_iterator.90", align 8
  %3 = alloca %"struct.std::_Rb_tree_const_iterator.90", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = tail call noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node5emptyEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  br i1 %6, label %33, label %7

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #2
  %8 = tail call ptr @_ZNK4Glip7Modules14UniformsLoader4Node13resourceBeginB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %8, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #2
  %9 = tail call ptr @_ZNK4Glip7Modules14UniformsLoader4Node11resourceEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %9, ptr %3, align 8
  %10 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #2
  br i1 %10, label %.critedge, label %._crit_edge

._crit_edge:                                      ; preds = %.critedge, %.lr.ph, %7
  %.05.lcssa = phi i1 [ false, %7 ], [ true, %.lr.ph ], [ %17, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #2
  %11 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node9nodeBeginB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %11, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  %12 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node7nodeEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %12, ptr %5, align 8
  %13 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  br i1 %13, label %.lr.ph9, label %._crit_edge10

.critedge:                                        ; preds = %7, %.lr.ph.peel
  %14 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #2
  %15 = getelementptr inbounds i8, ptr %14, i64 72
  %16 = load i8, ptr %15, align 8, !tbaa !5, !range !15, !noundef !16
  %17 = trunc nuw i8 %16 to i1
  %18 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #2
  %19 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node11resourceEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %19, ptr %3, align 8
  %20 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #2
  br i1 %20, label %.lr.ph.peel, label %._crit_edge, !llvm.loop !17

.lr.ph.peel:                                      ; preds = %.critedge
  br i1 %17, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.peel, %.lr.ph
  %21 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #2
  %22 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node11resourceEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %22, ptr %3, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #2
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge10:                                    ; preds = %28, %._crit_edge
  %.1.lcssa = phi i1 [ %.05.lcssa, %._crit_edge ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #2
  br label %33

.lr.ph9:                                          ; preds = %._crit_edge, %28
  %.17 = phi i1 [ %29, %28 ], [ %.05.lcssa, %._crit_edge ]
  br i1 %.17, label %28, label %24

24:                                               ; preds = %.lr.ph9
  %25 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #2
  %26 = getelementptr inbounds i8, ptr %25, i64 32
  %27 = call noundef zeroext i1 @_ZNK4Glip7Modules14UniformsLoader4Node16hasModificationsEv(ptr noundef nonnull align 8 dereferenceable(128) %26)
  br label %28

28:                                               ; preds = %24, %.lr.ph9
  %29 = phi i1 [ true, %.lr.ph9 ], [ %27, %24 ]
  %30 = call ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  %31 = call ptr @_ZNK4Glip7Modules14UniformsLoader4Node7nodeEndB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(128) %0)
  store ptr %31, ptr %5, align 8
  %32 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader4NodeEEESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  br i1 %32, label %.lr.ph9, label %._crit_edge10, !llvm.loop !19

33:                                               ; preds = %1, %._crit_edge10
  %.0 = phi i1 [ %.1.lcssa, %._crit_edge10 ], [ false, %1 ]
  ret i1 %.0
}

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 = { 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, !14, i64 72}
!6 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN4Glip7Modules14UniformsLoader8ResourceEE", !7, i64 0, !13, i64 32}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN4Glip7Modules14UniformsLoader8ResourceE", !7, i64 0, !9, i64 32, !14, i64 40}
!14 = !{!"bool", !10, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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