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

; 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::Generator" = type { i32, i8, %"class.std::__cxx11::basic_string", i32, double, double, %"class.std::complex", i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.std::complex" = type { { 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 @_ZNKSt6vectorIN9elabtsaot9GeneratorESaIS1_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 @_ZN9elabtsaot11Powersystem17_rebuildBusGenMapEv(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 %"struct.std::pair.102", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 13
  call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  %8 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 13
  %9 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 4
  %10 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot3BusESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %11

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

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %38

17:                                               ; preds = %11
  %18 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 8
  %19 = getelementptr inbounds %"class.boost::bimaps::bimap", ptr %18, i32 0, i32 2
  %20 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 6
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN9elabtsaot9GeneratorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %21) #3
  %23 = getelementptr inbounds %"class.elabtsaot::Generator", ptr %22, i32 0, i32 3
  %24 = 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) %19, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = zext i32 %25 to i64
  store i64 %26, ptr %3, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.elabtsaot::Powersystem", ptr %6, i32 0, i32 13
  %28 = load i64, ptr %3, align 8, !tbaa !9
  %29 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt3setImSt4lessImESaImEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %28) #3
  %30 = call { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %31 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
  %32 = extractvalue { ptr, i8 } %30, 0
  store ptr %32, ptr %31, align 8
  %33 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
  %34 = extractvalue { ptr, i8 } %30, 1
  store i8 %34, ptr %33, align 8
  br label %35

35:                                               ; preds = %17
  %36 = load i64, ptr %4, align 8, !tbaa !9
  %37 = add i64 %36, 1
  store i64 %37, ptr %4, align 8, !tbaa !9
  br label %11, !llvm.loop !13

38:                                               ; preds = %16
  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(216) ptr @_ZNSt6vectorIN9elabtsaot9GeneratorESaIS1_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 @_ZNKSt6vectorIN9elabtsaot9GeneratorESaIS1_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 @_ZN9elabtsaot11Powersystem17_rebuildBusGenMapEv(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 432
  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 104
  store i64 0, ptr %2, align 8, !tbaa !5
  %7 = tail call noundef i64 @_ZNKSt6vectorIN9elabtsaot9GeneratorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not1 = icmp eq i64 %7, 0
  br i1 %.not1, 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(216) ptr @_ZNSt6vectorIN9elabtsaot9GeneratorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %10) #3
  %12 = getelementptr inbounds i8, ptr %11, i64 40
  %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 = add i64 %18, 1
  store i64 %19, ptr %2, align 8, !tbaa !5
  %20 = call noundef i64 @_ZNKSt6vectorIN9elabtsaot9GeneratorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  %.not = icmp eq i64 %19, %20
  br i1 %.not, label %._crit_edge, label %9, !llvm.loop !11
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN9elabtsaot9GeneratorESaIS1_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