; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/字符串算法/后缀自动机.ll (Z10preprocessv)

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

@par = external dso_local global [210000 x i32], align 16
@cur = external dso_local global i32, align 4
@id = external dso_local global [210000 x i32], align 16
@anc = external dso_local global [210000 x [25 x i32]], align 16
@trans = external dso_local global %"class.std::map", align 8

; 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
define dso_local void @_Z10preprocessv() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @trans) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %26, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = load i32, ptr @cur, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %13, label %12

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

13:                                               ; preds = %8
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [210000 x i32], ptr @id, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = icmp ne i32 %17, -1
  br i1 %18, label %19, label %25

19:                                               ; preds = %13
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [210000 x i32], ptr @id, i64 0, i64 %22
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @trans, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store i32 %20, ptr %24, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %19, %13
  br label %26

26:                                               ; preds = %25
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !9

29:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %62, %29
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = load i32, ptr @cur, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %65

35:                                               ; preds = %30
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %41
  %43 = getelementptr inbounds [25 x i32], ptr %42, i64 0, i64 0
  store i32 %39, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %58, %35
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sub nsw i32 %45, 1
  %47 = shl i32 1, %46
  %48 = load i32, ptr @cur, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %44
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %61

51:                                               ; preds = %44
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [25 x i32], ptr %54, i64 0, i64 %56
  store i32 0, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %44, !llvm.loop !11

61:                                               ; preds = %50
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %30, !llvm.loop !12

65:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %116, %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = shl i32 1, %67
  %69 = load i32, ptr @cur, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %119

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %112, %72
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = load i32, ptr @cur, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %115

78:                                               ; preds = %73
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %80
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [25 x i32], ptr %81, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %111

88:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %90
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sub nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [25 x i32], ptr %91, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  store i32 %96, ptr %7, align 4, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %98
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sub nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [25 x i32], ptr %99, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %106
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [25 x i32], ptr %107, i64 0, i64 %109
  store i32 %104, ptr %110, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %111

111:                                              ; preds = %88, %78
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %6, align 4, !tbaa !5
  br label %73, !llvm.loop !13

115:                                              ; preds = %77
  br label %116

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

119:                                              ; preds = %71
  ret void
}

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

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

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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@par = external dso_local local_unnamed_addr global [210000 x i32], align 16
@cur = external dso_local local_unnamed_addr global i32, align 4
@id = external dso_local global [210000 x i32], align 16
@anc = external dso_local local_unnamed_addr global [210000 x [25 x i32]], align 16
@trans = external dso_local global %"class.std::map", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10preprocessv() local_unnamed_addr #0 {
  tail call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @trans) #2
  %1 = load i32, ptr @cur, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 1
  br i1 %2, label %.lr.ph, label %._crit_edge41

.preheader32:                                     ; preds = %29
  %3 = icmp sgt i32 %30, 1
  br i1 %3, label %.lr.ph35.us.preheader, label %._crit_edge41

.lr.ph35.us.preheader:                            ; preds = %.preheader32
  %wide.trip.count = zext nneg i32 %30 to i64
  %4 = add nsw i64 %wide.trip.count, -1
  %5 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %4, 1
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %.preheader31.unr-lcssa, label %.lr.ph35.us.preheader.new

.lr.ph35.us.preheader.new:                        ; preds = %.lr.ph35.us.preheader
  %unroll_iter = and i64 %4, -2
  br label %.lr.ph35.us

.lr.ph35.us:                                      ; preds = %._crit_edge.us.1, %.lr.ph35.us.preheader.new
  %indvars.iv48 = phi i64 [ 1, %.lr.ph35.us.preheader.new ], [ %indvars.iv.next49.1, %._crit_edge.us.1 ]
  %niter = phi i64 [ 0, %.lr.ph35.us.preheader.new ], [ %niter.next.1, %._crit_edge.us.1 ]
  %7 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %indvars.iv48
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv48
  store i32 %8, ptr %9, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %.lr.ph35.us, %10
  %indvars.iv45 = phi i64 [ 1, %.lr.ph35.us ], [ %indvars.iv.next46, %10 ]
  %11 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv48, i64 %indvars.iv45
  store i32 0, ptr %11, align 4, !tbaa !5
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %12 = trunc nuw nsw i64 %indvars.iv45 to i32
  %13 = shl nuw i32 1, %12
  %14 = icmp slt i32 %13, %30
  br i1 %14, label %10, label %._crit_edge.us, !llvm.loop !9

._crit_edge.us:                                   ; preds = %10
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %15 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %indvars.iv.next49
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv.next49
  store i32 %16, ptr %17, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %18, %._crit_edge.us
  %indvars.iv45.1 = phi i64 [ 1, %._crit_edge.us ], [ %indvars.iv.next46.1, %18 ]
  %19 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv.next49, i64 %indvars.iv45.1
  store i32 0, ptr %19, align 4, !tbaa !5
  %indvars.iv.next46.1 = add nuw nsw i64 %indvars.iv45.1, 1
  %20 = trunc nuw nsw i64 %indvars.iv45.1 to i32
  %21 = shl nuw i32 1, %20
  %22 = icmp slt i32 %21, %30
  br i1 %22, label %18, label %._crit_edge.us.1, !llvm.loop !9

._crit_edge.us.1:                                 ; preds = %18
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader31.unr-lcssa, label %.lr.ph35.us, !llvm.loop !11

.lr.ph:                                           ; preds = %0, %29
  %23 = phi i32 [ %30, %29 ], [ %1, %0 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %29 ], [ 1, %0 ]
  %24 = getelementptr inbounds [210000 x i32], ptr @id, i64 0, i64 %indvars.iv
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %.not30 = icmp eq i32 %25, -1
  br i1 %.not30, label %29, label %26

26:                                               ; preds = %.lr.ph
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @trans, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %28, ptr %27, align 4, !tbaa !5
  %.pre = load i32, ptr @cur, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %.lr.ph, %26
  %30 = phi i32 [ %23, %.lr.ph ], [ %.pre, %26 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next, %31
  br i1 %32, label %.lr.ph, label %.preheader32, !llvm.loop !12

.preheader31.unr-lcssa:                           ; preds = %._crit_edge.us.1, %.lr.ph35.us.preheader
  %indvars.iv48.unr = phi i64 [ 1, %.lr.ph35.us.preheader ], [ %indvars.iv.next49.1, %._crit_edge.us.1 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader31, label %.lr.ph35.us.epil

.lr.ph35.us.epil:                                 ; preds = %.preheader31.unr-lcssa
  %33 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %indvars.iv48.unr
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv48.unr
  store i32 %34, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %36, %.lr.ph35.us.epil
  %indvars.iv45.epil = phi i64 [ 1, %.lr.ph35.us.epil ], [ %indvars.iv.next46.epil, %36 ]
  %37 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv48.unr, i64 %indvars.iv45.epil
  store i32 0, ptr %37, align 4, !tbaa !5
  %indvars.iv.next46.epil = add nuw nsw i64 %indvars.iv45.epil, 1
  %38 = trunc nuw nsw i64 %indvars.iv45.epil to i32
  %39 = shl nuw i32 1, %38
  %40 = icmp slt i32 %39, %30
  br i1 %40, label %36, label %.preheader31, !llvm.loop !9

.preheader31:                                     ; preds = %36, %.preheader31.unr-lcssa
  %.not = icmp eq i32 %30, 2
  br i1 %.not, label %._crit_edge41, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader31
  %xtraiter62 = and i64 %4, 1
  %41 = icmp eq i64 %5, 0
  %unroll_iter64 = and i64 %4, -2
  %lcmp.mod63.not = icmp eq i64 %xtraiter62, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us42
  %indvars.iv56 = phi i64 [ 1, %.preheader.us.preheader ], [ %indvars.iv.next57, %._crit_edge.us42 ]
  %42 = add nsw i64 %indvars.iv56, -1
  br i1 %41, label %._crit_edge.us42.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %58
  %indvars.iv51 = phi i64 [ %indvars.iv.next52.1, %58 ], [ 1, %.preheader.us ]
  %niter65 = phi i64 [ %niter65.next.1, %58 ], [ 0, %.preheader.us ]
  %43 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv51, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %.not.us = icmp eq i32 %44, 0
  br i1 %.not.us, label %50, label %45

45:                                               ; preds = %.preheader.us.new
  %46 = sext i32 %44 to i64
  %47 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %46, i64 %42
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv51, i64 %indvars.iv56
  store i32 %48, ptr %49, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %45, %.preheader.us.new
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %51 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv.next52, i64 %42
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %.not.us.1 = icmp eq i32 %52, 0
  br i1 %.not.us.1, label %58, label %53

53:                                               ; preds = %50
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %54, i64 %42
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv.next52, i64 %indvars.iv56
  store i32 %56, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %53, %50
  %indvars.iv.next52.1 = add nuw nsw i64 %indvars.iv51, 2
  %niter65.next.1 = add i64 %niter65, 2
  %niter65.ncmp.1 = icmp eq i64 %niter65.next.1, %unroll_iter64
  br i1 %niter65.ncmp.1, label %._crit_edge.us42.unr-lcssa, label %.preheader.us.new, !llvm.loop !13

._crit_edge.us42.unr-lcssa:                       ; preds = %58, %.preheader.us
  %indvars.iv51.unr = phi i64 [ 1, %.preheader.us ], [ %indvars.iv.next52.1, %58 ]
  br i1 %lcmp.mod63.not, label %._crit_edge.us42, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us42.unr-lcssa
  %59 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv51.unr, i64 %42
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %.not.us.epil = icmp eq i32 %60, 0
  br i1 %.not.us.epil, label %._crit_edge.us42, label %61

61:                                               ; preds = %.epil.preheader
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %62, i64 %42
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds [210000 x [25 x i32]], ptr @anc, i64 0, i64 %indvars.iv51.unr, i64 %indvars.iv56
  store i32 %64, ptr %65, align 4, !tbaa !5
  br label %._crit_edge.us42

._crit_edge.us42:                                 ; preds = %.epil.preheader, %61, %._crit_edge.us42.unr-lcssa
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %66 = trunc nuw nsw i64 %indvars.iv56 to i32
  %67 = shl nuw i32 2, %66
  %68 = icmp slt i32 %67, %30
  br i1 %68, label %.preheader.us, label %._crit_edge41, !llvm.loop !14

._crit_edge41:                                    ; preds = %._crit_edge.us42, %0, %.preheader32, %.preheader31
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) 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 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass