; LLVM IR from yanglr/leetcode-ac :: algo-basic/acwing1097-lake-counting_flood_fill_readFile.ll (Z3bfsii)

; 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" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global [1010 x [1010 x i8]], align 16
@st = external dso_local global [1010 x [1010 x i8]], align 16
@q = external dso_local global [1020100 x %"struct.std::pair"], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3bfsii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = 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 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 -1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  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)
  %13 = load i32, ptr %6, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %6, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [1020100 x %"struct.std::pair"], ptr @q, i64 0, i64 %15
  %17 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %19
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [1010 x i8], ptr %20, i64 0, i64 %22
  store i8 1, ptr %23, align 1, !tbaa !9
  br label %24

24:                                               ; preds = %119, %2
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %28, label %120

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %5, align 4, !tbaa !5
  %31 = sext i32 %29 to i64
  %32 = getelementptr inbounds [1020100 x %"struct.std::pair"], ptr @q, i64 0, i64 %31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %32, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %33 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = sub nsw i32 %34, 1
  store i32 %35, ptr %9, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %116, %28
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = add nsw i32 %39, 1
  %41 = icmp sle i32 %37, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %119

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %44 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = sub nsw i32 %45, 1
  store i32 %46, ptr %11, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %112, %43
  %48 = load i32, ptr %11, align 4, !tbaa !5
  %49 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = add nsw i32 %50, 1
  %52 = icmp sle i32 %48, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %115

54:                                               ; preds = %47
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !11
  %58 = icmp eq i32 %55, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %54
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = getelementptr inbounds %"struct.std::pair", ptr %8, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = icmp eq i32 %60, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %112

65:                                               ; preds = %59, %54
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %79, label %68

68:                                               ; preds = %65
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = load i32, ptr @n, align 4, !tbaa !5
  %71 = icmp sge i32 %69, %70
  br i1 %71, label %79, label %72

72:                                               ; preds = %68
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %79, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = load i32, ptr @m, align 4, !tbaa !5
  %78 = icmp sge i32 %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75, %72, %68, %65
  br label %112

80:                                               ; preds = %75
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1010 x [1010 x i8]], ptr @g, i64 0, i64 %82
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1010 x i8], ptr %83, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !14
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 46
  br i1 %89, label %99, label %90

90:                                               ; preds = %80
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %92
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1010 x i8], ptr %93, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !9, !range !15, !noundef !16
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %100

99:                                               ; preds = %90, %80
  br label %112

100:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %6, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1020100 x %"struct.std::pair"], ptr @q, i64 0, i64 %103
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %104, ptr noundef nonnull align 4 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %107
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [1010 x i8], ptr %108, i64 0, i64 %110
  store i8 1, ptr %111, align 1, !tbaa !9
  br label %112

112:                                              ; preds = %100, %99, %79, %64
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !5
  br label %47, !llvm.loop !17

115:                                              ; preds = %53
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %9, align 4, !tbaa !5
  br label %36, !llvm.loop !19

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

120:                                              ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = !{!7, !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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::pair" = type { i32, i32 }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local local_unnamed_addr global [1010 x [1010 x i8]], align 16
@st = external dso_local local_unnamed_addr global [1010 x [1010 x i8]], align 16
@q = external dso_local global [1020100 x %"struct.std::pair"], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3bfsii(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 i32, align 4
  %7 = alloca i32, align 4
  %8 = 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) #2
  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)
  %9 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) @q, ptr noundef nonnull align 4 dereferenceable(8) %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %11, i64 %13
  store i8 1, ptr %14, align 1, !tbaa !9
  br label %15

15:                                               ; preds = %2, %20
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %20 ]
  %.01229 = phi i32 [ 0, %2 ], [ %.3, %20 ]
  %16 = getelementptr inbounds [1020100 x %"struct.std::pair"], ptr @q, i64 0, i64 %indvars.iv
  %.sroa.0.0.copyload = load i32, ptr %16, align 8
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 4
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #2
  %17 = add nsw i32 %.sroa.0.0.copyload, -1
  %18 = add nsw i32 %.sroa.6.0.copyload, -1
  store i32 %17, ptr %6, align 4, !tbaa !5
  %19 = icmp slt i32 %.sroa.0.0.copyload, 0
  br label %22

20:                                               ; preds = %24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #2
  %21 = sext i32 %.3 to i64
  %.not.not = icmp slt i64 %indvars.iv, %21
  br i1 %.not.not, label %15, label %63, !llvm.loop !11

22:                                               ; preds = %15, %24
  %23 = phi i32 [ %17, %15 ], [ %25, %24 ]
  %.128 = phi i32 [ %.01229, %15 ], [ %.3, %24 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #2
  store i32 %18, ptr %7, align 4, !tbaa !5
  br label %26

24:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #2
  %25 = add nsw i32 %59, 1
  store i32 %25, ptr %6, align 4, !tbaa !5
  %.not18 = icmp sgt i32 %59, %.sroa.0.0.copyload
  br i1 %.not18, label %20, label %22, !llvm.loop !13

26:                                               ; preds = %22, %58
  %27 = phi i32 [ %23, %22 ], [ %59, %58 ]
  %28 = phi i32 [ %23, %22 ], [ %61, %58 ]
  %.227 = phi i32 [ %.128, %22 ], [ %.3, %58 ]
  %storemerge1926 = phi i32 [ %18, %22 ], [ %62, %58 ]
  %29 = icmp eq i32 %28, %.sroa.0.0.copyload
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  %31 = icmp eq i32 %storemerge1926, %.sroa.6.0.copyload
  %or.cond3 = or i1 %31, %19
  br i1 %or.cond3, label %58, label %33

32:                                               ; preds = %26
  %.old2 = icmp slt i32 %28, 0
  br i1 %.old2, label %58, label %33

33:                                               ; preds = %30, %32
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp slt i32 %28, %34
  %36 = icmp sgt i32 %storemerge1926, -1
  %or.cond.not25 = and i1 %36, %35
  %37 = load i32, ptr @m, align 4
  %.not21 = icmp slt i32 %storemerge1926, %37
  %or.cond22 = select i1 %or.cond.not25, i1 %.not21, i1 false
  br i1 %or.cond22, label %38, label %58

38:                                               ; preds = %33
  %39 = zext nneg i32 %28 to i64
  %40 = zext nneg i32 %storemerge1926 to i64
  %41 = getelementptr inbounds [1010 x [1010 x i8]], ptr @g, i64 0, i64 %39, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !14
  %43 = icmp eq i8 %42, 46
  br i1 %43, label %58, label %44

44:                                               ; preds = %38
  %45 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %39, i64 %40
  %46 = load i8, ptr %45, align 1, !tbaa !9, !range !15, !noundef !16
  %47 = trunc nuw i8 %46 to i1
  br i1 %47, label %58, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #2
  call void @_ZNSt4pairIiiEC2IRiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %49 = add nsw i32 %.227, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [1020100 x %"struct.std::pair"], ptr @q, i64 0, i64 %50
  %52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #2
  %53 = load i32, ptr %6, align 4
  %54 = sext i32 %53 to i64
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [1010 x [1010 x i8]], ptr @st, i64 0, i64 %54, i64 %56
  store i8 1, ptr %57, align 1, !tbaa !9
  br label %58

58:                                               ; preds = %38, %44, %32, %33, %30, %48
  %59 = phi i32 [ %27, %30 ], [ %27, %33 ], [ %27, %38 ], [ %27, %44 ], [ %53, %48 ], [ %27, %32 ]
  %60 = phi i32 [ %storemerge1926, %30 ], [ %storemerge1926, %33 ], [ %storemerge1926, %38 ], [ %storemerge1926, %44 ], [ %55, %48 ], [ %storemerge1926, %32 ]
  %61 = phi i32 [ %.sroa.0.0.copyload, %30 ], [ %28, %33 ], [ %28, %38 ], [ %28, %44 ], [ %53, %48 ], [ %28, %32 ]
  %.3 = phi i32 [ %.227, %30 ], [ %.227, %33 ], [ %.227, %38 ], [ %.227, %44 ], [ %49, %48 ], [ %.227, %32 ]
  %62 = add nsw i32 %60, 1
  store i32 %62, ptr %7, align 4, !tbaa !5
  %.not20 = icmp sgt i32 %60, %.sroa.6.0.copyload
  br i1 %.not20, label %24, label %26, !llvm.loop !17

63:                                               ; preds = %20
  ret void
}

; 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 #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8), 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.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass