; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src (MSNetwork)

; 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_iterator.25" = type { ptr }
%"struct.std::pair.26" = type <{ i32, i8, [3 x i8] }>
%class.MSNetwork = type <{ %class.MultiplierNetwork, %"class.std::map", %"class.std::map.3", i32, i32, i32, [4 x i8] }>
%class.MultiplierNetwork = type { %class.Unit }
%class.Unit = type { ptr, 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] }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, MSwitch *>, std::_Select1st<std::pair<const int, MSwitch *>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, MSwitch *>, std::_Select1st<std::pair<const int, MSwitch *>>, std::less<int>>::_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.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<int, std::pair<const int, Connection *>, std::_Select1st<std::pair<const int, Connection *>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, Connection *>, std::_Select1st<std::pair<const int, Connection *>>, std::less<int>>::_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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9MSNetwork13fwLinksConfigESt3mapIjbSt4lessIjESaISt4pairIKjbEEES7_(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %18 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  %19 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.25", ptr %7, i32 0, i32 0
  store ptr %18, ptr %19, align 8
  br label %20

20:                                               ; preds = %40, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %21 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  %22 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.25", ptr %8, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %42

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %26 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %27 = getelementptr inbounds %"struct.std::pair.26", ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %29 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %30 = getelementptr inbounds %"struct.std::pair.26", ptr %29, i32 0, i32 1
  %31 = load i8, ptr %30, align 4, !tbaa !14, !range !15, !noundef !16
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %10, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %34 = getelementptr inbounds %class.MSNetwork, ptr %17, i32 0, i32 1
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %36, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = load i8, ptr %10, align 1, !tbaa !17, !range !15, !noundef !16
  %39 = trunc i8 %38 to i1
  call void @_ZN7MSwitch26setOutputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264) %37, i1 noundef zeroext %39)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %40

40:                                               ; preds = %25
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjbEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br label %20, !llvm.loop !18

42:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %43 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  %44 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.25", ptr %12, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  br label %45

45:                                               ; preds = %65, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %46 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  %47 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.25", ptr %13, i32 0, i32 0
  store ptr %46, ptr %47, align 8
  %48 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %67

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %51 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %52 = getelementptr inbounds %"struct.std::pair.26", ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %53, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %54 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %55 = getelementptr inbounds %"struct.std::pair.26", ptr %54, i32 0, i32 1
  %56 = load i8, ptr %55, align 4, !tbaa !14, !range !15, !noundef !16
  %57 = trunc i8 %56 to i1
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %15, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %59 = getelementptr inbounds %class.MSNetwork, ptr %17, i32 0, i32 1
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  store ptr %61, ptr %16, align 8, !tbaa !5
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load i8, ptr %15, align 1, !tbaa !17, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  call void @_ZN7MSwitch25setInputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264) %62, i1 noundef zeroext %64)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %65

65:                                               ; preds = %50
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjbEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br label %45, !llvm.loop !20

67:                                               ; preds = %49
  ret void
}

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

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

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

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

declare void @_ZN7MSwitch26setOutputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264), i1 noundef zeroext) #3

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

declare void @_ZN7MSwitch25setInputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264), i1 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSSt4pairIKjbE", !11, i64 0, !12, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !12, i64 4}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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_iterator.25" = 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9MSNetwork13fwLinksConfigESt3mapIjbSt4lessIjESaISt4pairIKjbEEES7_(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef nonnull %1, ptr noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator.25", align 8
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %10 = tail call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %11 = tail call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %11, ptr %5, align 8
  %12 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  br label %18

._crit_edge:                                      ; preds = %18, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %14 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %14, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %15 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %15, ptr %8, align 8
  %16 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %16, label %.lr.ph5, label %._crit_edge6

.lr.ph5:                                          ; preds = %._crit_edge
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  br label %30

18:                                               ; preds = %.lr.ph, %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %19 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %20 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %20, ptr %6, align 4, !tbaa !11
  %21 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  %23 = load i8, ptr %22, align 4, !tbaa !12, !range !13, !noundef !14
  %24 = trunc nuw i8 %23 to i1
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  call void @_ZN7MSwitch26setOutputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264) %26, i1 noundef zeroext %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjbEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %28 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #4
  store ptr %28, ptr %5, align 8
  %29 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %29, label %18, label %._crit_edge, !llvm.loop !17

._crit_edge6:                                     ; preds = %30, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret void

30:                                               ; preds = %.lr.ph5, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %31 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %32 = load i32, ptr %31, align 4, !tbaa !5
  store i32 %32, ptr %9, align 4, !tbaa !11
  %33 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKjbEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = load i8, ptr %34, align 4, !tbaa !12, !range !13, !noundef !14
  %36 = trunc nuw i8 %35 to i1
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIiP7MSwitchSt4lessIiESaISt4pairIKiS1_EEEixERS5_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  call void @_ZN7MSwitch25setInputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264) %38, i1 noundef zeroext %36)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKjbEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %40 = call ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #4
  store ptr %40, ptr %8, align 8
  %41 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKjbEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br i1 %41, label %30, label %._crit_edge6, !llvm.loop !19
}

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

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

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

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

declare void @_ZN7MSwitch26setOutputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264), i1 noundef zeroext) local_unnamed_addr #3

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

declare void @_ZN7MSwitch25setInputForwardingEnabledEb(ptr noundef nonnull align 8 dereferenceable(264), i1 noundef zeroext) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = !{!"_ZTSSt4pairIKjbE", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 4}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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