; LLVM IR from jakobkogler/Algorithm-DataStructures :: CodingExercise/chess_top_down.ll (Z13compute_stateii)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, 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 }
%"struct.std::pair" = type { i32, i32 }

@dp = external dso_local global %"class.std::map", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13compute_stateii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i1, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca i8, align 1
  %9 = alloca %"struct.std::pair", align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %10 = call noundef i64 @_ZNKSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %11 = icmp ne i64 %10, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br i1 %11, label %12, label %16

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %14 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %15 = trunc i8 %14 to i1
  store i1 %15, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %89

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  store i8 0, ptr %8, align 1, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sub nsw i32 %17, 2
  %19 = icmp sge i32 %18, 0
  br i1 %19, label %20, label %33

20:                                               ; preds = %16
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  %23 = icmp slt i32 %22, 15
  br i1 %23, label %24, label %33

24:                                               ; preds = %20
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = sub nsw i32 %25, 2
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  %29 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %26, i32 noundef %28)
  %30 = zext i1 %29 to i32
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %24
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %33

33:                                               ; preds = %32, %24, %20, %16
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sub nsw i32 %34, 2
  %36 = icmp sge i32 %35, 0
  br i1 %36, label %37, label %50

37:                                               ; preds = %33
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sub nsw i32 %38, 1
  %40 = icmp sge i32 %39, 0
  br i1 %40, label %41, label %50

41:                                               ; preds = %37
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sub nsw i32 %42, 2
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sub nsw i32 %44, 1
  %46 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %43, i32 noundef %45)
  %47 = zext i1 %46 to i32
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %49, %41, %37, %33
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  %53 = icmp slt i32 %52, 15
  br i1 %53, label %54, label %67

54:                                               ; preds = %50
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sub nsw i32 %55, 2
  %57 = icmp sge i32 %56, 0
  br i1 %57, label %58, label %67

58:                                               ; preds = %54
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 2
  %63 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %60, i32 noundef %62)
  %64 = zext i1 %63 to i32
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %58
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %67

67:                                               ; preds = %66, %58, %54, %50
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sub nsw i32 %68, 1
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %71, label %84

71:                                               ; preds = %67
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 2
  %74 = icmp sge i32 %73, 0
  br i1 %74, label %75, label %84

75:                                               ; preds = %71
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = sub nsw i32 %76, 1
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 2
  %80 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %77, i32 noundef %79)
  %81 = zext i1 %80 to i32
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %75
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %84

84:                                               ; preds = %83, %75, %71, %67
  %85 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %86 = trunc i8 %85 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %88 = zext i1 %86 to i8
  store i8 %88, ptr %87, align 1, !tbaa !9
  store i1 %86, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  br label %89

89:                                               ; preds = %84, %12
  %90 = load i1, ptr %3, align 1
  ret i1 %90
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, bool>, std::_Select1st<std::pair<const std::pair<int, int>, bool>>, std::less<std::pair<int, 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 }
%"struct.std::pair" = type { i32, i32 }

@dp = external dso_local global %"class.std::map", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13compute_stateii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair", align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %8 = call noundef i64 @_ZNKSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %.not = icmp eq i64 %8, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br i1 %.not, label %12, label %9

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %10 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %11 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %44

12:                                               ; preds = %2
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = add nsw i32 %13, -2
  %15 = icmp sgt i32 %13, 1
  %.pre28 = load i32, ptr %4, align 4, !tbaa !5
  br i1 %15, label %16, label %.thread17

16:                                               ; preds = %12
  %17 = icmp slt i32 %.pre28, 14
  br i1 %17, label %18, label %.thread43

18:                                               ; preds = %16
  %19 = add nsw i32 %.pre28, 1
  %20 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %14, i32 noundef %19)
  %not. = xor i1 %20, true
  %spec.select = zext i1 %not. to i8
  %.pr.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre29.pre = load i32, ptr %4, align 4, !tbaa !5
  %21 = icmp sgt i32 %.pr.pre, 1
  br i1 %21, label %22, label %.thread17

22:                                               ; preds = %18
  %.pre = add nsw i32 %.pr.pre, -2
  %23 = icmp sgt i32 %.pre29.pre, 0
  br i1 %23, label %.thread43, label %26

.thread43:                                        ; preds = %16, %22
  %.pre-phi3950 = phi i32 [ %.pre, %22 ], [ %14, %16 ]
  %.pre294049 = phi i32 [ %.pre29.pre, %22 ], [ %.pre28, %16 ]
  %.0.ph4248 = phi i8 [ %spec.select, %22 ], [ 0, %16 ]
  %24 = add nsw i32 %.pre294049, -1
  %25 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %.pre-phi3950, i32 noundef %24)
  %spec.select10 = select i1 %25, i8 %.0.ph4248, i8 1
  %.pr15.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre32.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %.thread43, %22
  %.pre32 = phi i32 [ %.pre32.pre, %.thread43 ], [ %.pre29.pre, %22 ]
  %.pr15 = phi i32 [ %.pr15.pre, %.thread43 ], [ %.pr.pre, %22 ]
  %.1.ph = phi i8 [ %spec.select10, %.thread43 ], [ %spec.select, %22 ]
  %27 = icmp slt i32 %.pr15, 14
  br i1 %27, label %.thread17, label %.thread22

.thread17:                                        ; preds = %26, %12, %18
  %28 = phi i32 [ %.pre29.pre, %18 ], [ %.pre28, %12 ], [ %.pre32, %26 ]
  %.in = phi i32 [ %.pr.pre, %18 ], [ %13, %12 ], [ %.pr15, %26 ]
  %.119 = phi i8 [ %spec.select, %18 ], [ 0, %12 ], [ %.1.ph, %26 ]
  %29 = icmp sgt i32 %28, 1
  br i1 %29, label %30, label %34

30:                                               ; preds = %.thread17
  %31 = add nsw i32 %.in, 1
  %32 = add nsw i32 %28, -2
  %33 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %31, i32 noundef %32)
  %spec.select11 = select i1 %33, i8 %.119, i8 1
  %.pr21.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %30, %.thread17
  %.pr21 = phi i32 [ %.pr21.pre, %30 ], [ %.in, %.thread17 ]
  %.2.ph = phi i8 [ %spec.select11, %30 ], [ %.119, %.thread17 ]
  %35 = icmp sgt i32 %.pr21, 0
  br i1 %35, label %..thread22_crit_edge, label %42

..thread22_crit_edge:                             ; preds = %34
  %.pre31 = load i32, ptr %4, align 4, !tbaa !5
  br label %.thread22

.thread22:                                        ; preds = %..thread22_crit_edge, %26
  %36 = phi i32 [ %.pre31, %..thread22_crit_edge ], [ %.pre32, %26 ]
  %.in25 = phi i32 [ %.pr21, %..thread22_crit_edge ], [ %.pr15, %26 ]
  %.224 = phi i8 [ %.2.ph, %..thread22_crit_edge ], [ %.1.ph, %26 ]
  %37 = icmp sgt i32 %36, 1
  br i1 %37, label %38, label %42

38:                                               ; preds = %.thread22
  %39 = add nsw i32 %.in25, -1
  %40 = add nsw i32 %36, -2
  %41 = call noundef zeroext i1 @_Z13compute_stateii(i32 noundef %39, i32 noundef %40)
  %spec.select12 = select i1 %41, i8 %.224, i8 1
  br label %42

42:                                               ; preds = %38, %.thread22, %34
  %.3 = phi i8 [ %.224, %.thread22 ], [ %.2.ph, %34 ], [ %spec.select12, %38 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @dp, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store i8 %.3, ptr %43, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %44

44:                                               ; preds = %42, %9
  %.01.in = phi i8 [ %11, %9 ], [ %.3, %42 ]
  %.01 = trunc nuw i8 %.01.in to i1
  ret i1 %.01
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapISt4pairIiiEbSt4lessIS1_ESaIS0_IKS1_bEEE5countERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SCCPPass,SROAPass,SimplifyCFGPass