; LLVM IR from lzyrapx/Competitive-Programming :: Retired_code/String/BZOJ 1030（AC自动机+dp）.ll (Z5solvev)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@End = external dso_local global [500100 x i32], align 16
@ch = external dso_local global [500100 x [26 x i32]], align 16
@sz = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@dp = external dso_local global [123 x [10010 x i32]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", 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 @_Z5solvev() #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
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  store i32 1, ptr @dp, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %73, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr @m, align 4, !tbaa !5
  %13 = icmp sle i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %76

15:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %69, %15
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load i32, ptr @sz, align 4, !tbaa !5
  %19 = icmp sle i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %72

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %65, %21
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 26
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %68

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [500100 x [26 x i32]], ptr @ch, i64 0, i64 %28
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [26 x i32], ptr %29, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %33, ptr %6, align 4, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [500100 x i32], ptr @End, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %64

39:                                               ; preds = %26
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sub nsw i32 %40, 1
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %42
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [10010 x i32], ptr %43, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [10010 x i32], ptr %50, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, %47
  store i32 %55, ptr %53, align 4, !tbaa !5
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10010 x i32], ptr %58, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = srem i32 %62, 10007
  store i32 %63, ptr %61, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %39, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !5
  br label %22, !llvm.loop !9

68:                                               ; preds = %25
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %4, align 4, !tbaa !5
  br label %16, !llvm.loop !11

72:                                               ; preds = %20
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !5
  br label %10, !llvm.loop !12

76:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %94, %76
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = load i32, ptr @sz, align 4, !tbaa !5
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %97

82:                                               ; preds = %77
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %84
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [10010 x i32], ptr %85, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = add nsw i32 %90, %89
  store i32 %91, ptr %1, align 4, !tbaa !5
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = srem i32 %92, 10007
  store i32 %93, ptr %1, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %82
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !5
  br label %77, !llvm.loop !13

97:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %109, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr @m, align 4, !tbaa !5
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %112

103:                                              ; preds = %98
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = mul nsw i32 %104, 26
  %106 = srem i32 %105, 10007
  store i32 %106, ptr %8, align 4, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = srem i32 %107, 10007
  store i32 %108, ptr %8, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %103
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !14

112:                                              ; preds = %102
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = load i32, ptr %1, align 4, !tbaa !5
  %115 = sub nsw i32 %113, %114
  %116 = add nsw i32 %115, 10007
  %117 = srem i32 %116, 10007
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %117)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %118, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #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 = { inlinehint 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 = { "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 = !{!"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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@End = external dso_local local_unnamed_addr global [500100 x i32], align 16
@ch = external dso_local local_unnamed_addr global [500100 x [26 x i32]], align 16
@sz = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local local_unnamed_addr global [123 x [10010 x i32]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  store i32 1, ptr @dp, align 16, !tbaa !5
  %1 = load i32, ptr @m, align 4, !tbaa !5
  %.not41 = icmp slt i32 %1, 1
  %.pre = load i32, ptr @sz, align 4, !tbaa !5
  br i1 %.not41, label %.preheader35, label %.preheader37.lr.ph

.preheader37.lr.ph:                               ; preds = %0
  %.not3439 = icmp slt i32 %.pre, 0
  br i1 %.not3439, label %.lr.ph50.preheader, label %.preheader37.preheader

.preheader37.preheader:                           ; preds = %.preheader37.lr.ph
  %2 = add nuw i32 %.pre, 1
  %3 = add nuw i32 %1, 1
  %wide.trip.count63 = zext i32 %3 to i64
  %wide.trip.count = zext i32 %2 to i64
  br label %.preheader37

.preheader37:                                     ; preds = %.preheader37.preheader, %._crit_edge
  %indvars.iv60 = phi i64 [ 1, %.preheader37.preheader ], [ %indvars.iv.next61, %._crit_edge ]
  %4 = add nsw i64 %indvars.iv60, -1
  br label %.preheader36

.preheader35:                                     ; preds = %._crit_edge, %0
  %.not3243 = icmp slt i32 %.pre, 0
  br i1 %.not3243, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader35
  %5 = sext i32 %1 to i64
  %6 = add nuw i32 %.pre, 1
  %wide.trip.count68 = zext i32 %6 to i64
  %xtraiter = and i64 %wide.trip.count68, 1
  %7 = icmp eq i32 %.pre, 0
  br i1 %7, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count68, 4294967294
  br label %30

.preheader36:                                     ; preds = %.preheader37, %9
  %indvars.iv56 = phi i64 [ 0, %.preheader37 ], [ %indvars.iv.next57, %9 ]
  %8 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %4, i64 %indvars.iv56
  br label %10

._crit_edge:                                      ; preds = %9
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %wide.trip.count63
  br i1 %exitcond64.not, label %.preheader35, label %.preheader37, !llvm.loop !9

9:                                                ; preds = %23
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count
  br i1 %exitcond59.not, label %._crit_edge, label %.preheader36, !llvm.loop !11

10:                                               ; preds = %.preheader36, %23
  %indvars.iv = phi i64 [ 0, %.preheader36 ], [ %indvars.iv.next, %23 ]
  %11 = getelementptr inbounds [500100 x [26 x i32]], ptr @ch, i64 0, i64 %indvars.iv56, i64 %indvars.iv
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [500100 x i32], ptr @End, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %23

17:                                               ; preds = %10
  %18 = load i32, ptr %8, align 4, !tbaa !5
  %19 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %indvars.iv60, i64 %13
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = add nsw i32 %20, %18
  %22 = srem i32 %21, 10007
  store i32 %22, ptr %19, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %17, %10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 26
  br i1 %exitcond.not, label %9, label %10, !llvm.loop !12

.preheader.loopexit.unr-lcssa:                    ; preds = %30, %.lr.ph
  %.lcssa77.ph = phi i32 [ poison, %.lr.ph ], [ %38, %30 ]
  %indvars.iv65.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next66.1, %30 ]
  %.02844.unr = phi i32 [ 0, %.lr.ph ], [ %38, %30 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

.preheader.loopexit.epilog-lcssa:                 ; preds = %.preheader.loopexit.unr-lcssa
  %24 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %5, i64 %indvars.iv65.unr
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add nsw i32 %25, %.02844.unr
  %27 = srem i32 %26, 10007
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %.preheader35
  %.028.lcssa = phi i32 [ 0, %.preheader35 ], [ %.lcssa77.ph, %.preheader.loopexit.unr-lcssa ], [ %27, %.preheader.loopexit.epilog-lcssa ]
  br i1 %.not41, label %._crit_edge51, label %.lr.ph50.preheader

.lr.ph50.preheader:                               ; preds = %.preheader37.lr.ph, %.preheader
  %.028.lcssa73 = phi i32 [ %.028.lcssa, %.preheader ], [ 0, %.preheader37.lr.ph ]
  %28 = add i32 %1, -1
  %xtraiter79 = and i32 %1, 3
  %29 = icmp ult i32 %28, 3
  br i1 %29, label %._crit_edge51.loopexit.unr-lcssa, label %.lr.ph50.preheader.new

.lr.ph50.preheader.new:                           ; preds = %.lr.ph50.preheader
  %unroll_iter82 = and i32 %1, -4
  br label %.lr.ph50

30:                                               ; preds = %30, %.lr.ph.new
  %indvars.iv65 = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next66.1, %30 ]
  %.02844 = phi i32 [ 0, %.lr.ph.new ], [ %38, %30 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %30 ]
  %31 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %5, i64 %indvars.iv65
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = add nsw i32 %32, %.02844
  %34 = srem i32 %33, 10007
  %indvars.iv.next66 = or disjoint i64 %indvars.iv65, 1
  %35 = getelementptr inbounds [123 x [10010 x i32]], ptr @dp, i64 0, i64 %5, i64 %indvars.iv.next66
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = add nsw i32 %36, %34
  %38 = srem i32 %37, 10007
  %indvars.iv.next66.1 = add nuw nsw i64 %indvars.iv65, 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 %.preheader.loopexit.unr-lcssa, label %30, !llvm.loop !13

._crit_edge51.loopexit.unr-lcssa:                 ; preds = %.lr.ph50, %.lr.ph50.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph50.preheader ], [ %52, %.lr.ph50 ]
  %.02648.unr = phi i32 [ 1, %.lr.ph50.preheader ], [ %52, %.lr.ph50 ]
  %lcmp.mod80.not = icmp eq i32 %xtraiter79, 0
  br i1 %lcmp.mod80.not, label %._crit_edge51, label %.lr.ph50.epil

.lr.ph50.epil:                                    ; preds = %._crit_edge51.loopexit.unr-lcssa, %.lr.ph50.epil
  %.02648.epil = phi i32 [ %40, %.lr.ph50.epil ], [ %.02648.unr, %._crit_edge51.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph50.epil ], [ 0, %._crit_edge51.loopexit.unr-lcssa ]
  %39 = mul nsw i32 %.02648.epil, 26
  %40 = srem i32 %39, 10007
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter79
  br i1 %epil.iter.cmp.not, label %._crit_edge51, label %.lr.ph50.epil, !llvm.loop !14

._crit_edge51:                                    ; preds = %._crit_edge51.loopexit.unr-lcssa, %.lr.ph50.epil, %.preheader
  %.028.lcssa74 = phi i32 [ %.028.lcssa, %.preheader ], [ %.028.lcssa73, %.lr.ph50.epil ], [ %.028.lcssa73, %._crit_edge51.loopexit.unr-lcssa ]
  %.026.lcssa = phi i32 [ 1, %.preheader ], [ %.lcssa.ph, %._crit_edge51.loopexit.unr-lcssa ], [ %40, %.lr.ph50.epil ]
  %reass.sub = sub nsw i32 %.026.lcssa, %.028.lcssa74
  %41 = add nsw i32 %reass.sub, 10007
  %42 = srem i32 %41, 10007
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %43, i8 noundef signext 10)
  ret void

.lr.ph50:                                         ; preds = %.lr.ph50, %.lr.ph50.preheader.new
  %.02648 = phi i32 [ 1, %.lr.ph50.preheader.new ], [ %52, %.lr.ph50 ]
  %niter83 = phi i32 [ 0, %.lr.ph50.preheader.new ], [ %niter83.next.3, %.lr.ph50 ]
  %45 = mul nsw i32 %.02648, 26
  %46 = srem i32 %45, 10007
  %47 = mul nsw i32 %46, 26
  %48 = srem i32 %47, 10007
  %49 = mul nsw i32 %48, 26
  %50 = srem i32 %49, 10007
  %51 = mul nsw i32 %50, 26
  %52 = srem i32 %51, 10007
  %niter83.next.3 = add i32 %niter83, 4
  %niter83.ncmp.3 = icmp eq i32 %niter83.next.3, %unroll_iter82
  br i1 %niter83.ncmp.3, label %._crit_edge51.loopexit.unr-lcssa, label %.lr.ph50, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 = { inlinehint 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 = { "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" }

!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, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}


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