; LLVM IR from thekyria/elabtsaot2 :: powersystem/powersystem.ll (ZN9elabtsaot11Powersystem16_rebuildBusBrMapEv)

; 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.102" = type <{ %"struct.std::_Rb_tree_const_iterator.104", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.104" = type { ptr }
%"class.elabtsaot::Powersystem" = type { %"class.std::__cxx11::basic_string", double, double, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %"class.std::vector.13", %"class.boost::bimaps::bimap", %"class.boost::bimaps::bimap", %"class.boost::bimaps::bimap", %"class.boost::bimaps::bimap", %"class.std::vector.65", %"class.std::vector.65", %"class.std::vector.65" }
%"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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<elabtsaot::Bus, std::allocator<elabtsaot::Bus>>::_Vector_impl" }
%"struct.std::_Vector_base<elabtsaot::Bus, std::allocator<elabtsaot::Bus>>::_Vector_impl" = type { %"struct.std::_Vector_base<elabtsaot::Bus, std::allocator<elabtsaot::Bus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<elabtsaot::Bus, std::allocator<elabtsaot::Bus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<elabtsaot::Branch, std::allocator<elabtsaot::Branch>>::_Vector_impl" }
%"struct.std::_Vector_base<elabtsaot::Branch, std::allocator<elabtsaot::Branch>>::_Vector_impl" = type { %"struct.std::_Vector_base<elabtsaot::Branch, std::allocator<elabtsaot::Branch>>::_Vector_impl_data" }
%"struct.std::_Vector_base<elabtsaot::Branch, std::allocator<elabtsaot::Branch>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<elabtsaot::Generator, std::allocator<elabtsaot::Generator>>::_Vector_impl" }
%"struct.std::_Vector_base<elabtsaot::Generator, std::allocator<elabtsaot::Generator>>::_Vector_impl" = type { %"struct.std::_Vector_base<elabtsaot::Generator, std::allocator<elabtsaot::Generator>>::_Vector_impl_data" }
%"struct.std::_Vector_base<elabtsaot::Generator, std::allocator<elabtsaot::Generator>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<elabtsaot::Load, std::allocator<elabtsaot::Load>>::_Vector_impl" }
%"struct.std::_Vector_base<elabtsaot::Load, std::allocator<elabtsaot::Load>>::_Vector_impl" = type { %"struct.std::_Vector_base<elabtsaot::Load, std::allocator<elabtsaot::Load>>::_Vector_impl_data" }
%"struct.std::_Vector_base<elabtsaot::Load, std::allocator<elabtsaot::Load>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::bimaps::bimap" = type { %"class.boost::bimaps::views::set_view", %"class.boost::multi_index::multi_index_container", %"class.boost::bimaps::views::map_view", %"class.boost::bimaps::views::map_view.42" }
%"class.boost::bimaps::views::set_view" = type { %"class.boost::bimaps::container_adaptor::set_adaptor" }
%"class.boost::bimaps::container_adaptor::set_adaptor" = type { %"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor" }
%"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor" = type { %"class.boost::bimaps::container_adaptor::associative_container_adaptor" }
%"class.boost::bimaps::container_adaptor::associative_container_adaptor" = type { %"class.boost::bimaps::container_adaptor::container_adaptor" }
%"class.boost::bimaps::container_adaptor::container_adaptor" = type { %"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag" }
%"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag" = type { [8 x i8], ptr }
%"class.boost::multi_index::multi_index_container" = type { [8 x i8], %"struct.boost::multi_index::detail::header_holder", [8 x i8], i64 }
%"struct.boost::multi_index::detail::header_holder" = type { ptr }
%"class.boost::bimaps::views::map_view" = type { %"class.boost::bimaps::container_adaptor::map_adaptor" }
%"class.boost::bimaps::container_adaptor::map_adaptor" = type { %"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor.25" }
%"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor.25" = type { %"class.boost::bimaps::container_adaptor::associative_container_adaptor.26" }
%"class.boost::bimaps::container_adaptor::associative_container_adaptor.26" = type { %"class.boost::bimaps::container_adaptor::container_adaptor.27" }
%"class.boost::bimaps::container_adaptor::container_adaptor.27" = type { %"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag.28" }
%"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag.28" = type { ptr }
%"class.boost::bimaps::views::map_view.42" = type { %"class.boost::bimaps::container_adaptor::map_adaptor.43" }
%"class.boost::bimaps::container_adaptor::map_adaptor.43" = type { %"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor.44" }
%"class.boost::bimaps::container_adaptor::ordered_associative_container_adaptor.44" = type { %"class.boost::bimaps::container_adaptor::associative_container_adaptor.45" }
%"class.boost::bimaps::container_adaptor::associative_container_adaptor.45" = type { %"class.boost::bimaps::container_adaptor::container_adaptor.46" }
%"class.boost::bimaps::container_adaptor::container_adaptor.46" = type { %"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag.47" }
%"struct.boost::bimaps::container_adaptor::detail::data_with_functor_bag.47" = type { ptr }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<std::set<unsigned long>, std::allocator<std::set<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<unsigned long>, std::allocator<std::set<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<unsigned long>, std::allocator<std::set<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<unsigned long>, std::allocator<std::set<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.elabtsaot::Branch" = type { i32, i8, i32, i32, double, double, double, double, double, double, double, double }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot11Powersystem16_rebuildBusBrMapEv(ptr noundef nonnull align 8 dereferenceable(480) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::pair.102", align 8
  %7 = alloca %"struct.std::pair.102", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 12
  call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  %10 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 12
  %11 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 4
  %12 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot3BusESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %13

13:                                               ; preds = %54, %1
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 5
  %16 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot6BranchESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #3
  %17 = icmp ne i64 %14, %16
  br i1 %17, label %19, label %18

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

19:                                               ; preds = %13
  %20 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 8
  %21 = getelementptr inbounds %"class.boost::bimaps::bimap", ptr %20, i32 0, i32 2
  %22 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 5
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN9elabtsaot6BranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %23) #3
  %25 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %24, i32 0, i32 2
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = zext i32 %27 to i64
  store i64 %28, ptr %3, align 8, !tbaa !9
  %29 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 12
  %30 = load i64, ptr %3, align 8, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %30) #3
  %32 = call { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %33 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 0
  %34 = extractvalue { ptr, i8 } %32, 0
  store ptr %34, ptr %33, align 8
  %35 = getelementptr inbounds { ptr, i8 }, ptr %6, i32 0, i32 1
  %36 = extractvalue { ptr, i8 } %32, 1
  store i8 %36, ptr %35, align 8
  %37 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 8
  %38 = getelementptr inbounds %"class.boost::bimaps::bimap", ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 5
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN9elabtsaot6BranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %40) #3
  %42 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %41, i32 0, i32 3
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1) %38, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  store i64 %45, ptr %4, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %8, i32 0, i32 12
  %47 = load i64, ptr %4, align 8, !tbaa !9
  %48 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %47) #3
  %49 = call { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %48, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %50 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %51 = extractvalue { ptr, i8 } %49, 0
  store ptr %51, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %53 = extractvalue { ptr, i8 } %49, 1
  store i8 %53, ptr %52, align 8
  br label %54

54:                                               ; preds = %19
  %55 = load i64, ptr %5, align 8, !tbaa !9
  %56 = add i64 %55, 1
  store i64 %56, ptr %5, align 8, !tbaa !9
  br label %13, !llvm.loop !13

57:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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"

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot11Powersystem16_rebuildBusBrMapEv(ptr noundef nonnull align 8 dereferenceable(480) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca i64, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 408
  tail call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = tail call noundef i64 @_ZNKSt6vectorIN9elabtsaot3BusESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  tail call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 0, ptr %2, align 8, !tbaa !5
  %7 = tail call noundef i64 @_ZNKSt6vectorIN9elabtsaot6BranchESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not4 = icmp eq i64 %7, 0
  br i1 %.not4, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 200
  br label %9

._crit_edge:                                      ; preds = %9, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret void

9:                                                ; preds = %.lr.ph, %9
  %10 = load i64, ptr %2, align 8, !tbaa !5
  %11 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN9elabtsaot6BranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #3
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = zext i32 %14 to i64
  %16 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %15) #3
  %17 = call { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %18 = load i64, ptr %2, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN9elabtsaot6BranchESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %18) #3
  %20 = getelementptr inbounds i8, ptr %19, i64 12
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %23) #3
  %25 = call { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = add i64 %26, 1
  store i64 %27, ptr %2, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot6BranchESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not = icmp eq i64 %27, %28
  br i1 %.not, label %._crit_edge, label %9, !llvm.loop !11
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5boost6bimaps6detail39non_mutable_data_unique_map_view_accessINS0_5views8map_viewINS0_8relation9member_at4leftENS1_10bimap_coreIjjN4mpl_2naESA_SA_EEEES7_SB_E2atIiEERKjRKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass