; LLVM IR from lzyrapx/Competitive-Programming :: LibreOJ/2002（容斥+dp+矩阵快速幂）.ll (Z6solve1v)

; 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.matrix = type { [110 x [110 x i32]] }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@A = external dso_local global %struct.matrix, align 4
@dp = external dso_local global [110 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8multipow6matrixi(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef byval(%struct.matrix) align 8, i32 noundef) #0

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

; 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6solve1v() #0 {
  %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 %struct.matrix, align 4
  %7 = alloca %struct.matrix, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %23, %0
  %11 = load i32, ptr %1, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  br label %26

15:                                               ; preds = %10
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = load i32, ptr @p, align 4, !tbaa !5
  %18 = srem i32 %16, %17
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %15
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %1, align 4, !tbaa !5
  br label %10, !llvm.loop !9

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

27:                                               ; preds = %46, %26
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp sle i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %49

32:                                               ; preds = %27
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sub nsw i32 0, %33
  %35 = load i32, ptr @p, align 4, !tbaa !5
  %36 = srem i32 %34, %35
  %37 = load i32, ptr @p, align 4, !tbaa !5
  %38 = add nsw i32 %36, %37
  %39 = load i32, ptr @p, align 4, !tbaa !5
  %40 = srem i32 %38, %39
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %41
  %43 = getelementptr inbounds [110 x i32], ptr %42, i64 0, i64 0
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %43, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %32
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %2, align 4, !tbaa !5
  br label %27, !llvm.loop !11

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

50:                                               ; preds = %85, %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = load i32, ptr @p, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

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

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

56:                                               ; preds = %81, %55
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = load i32, ptr @p, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %56
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = sub nsw i32 %62, 1
  %64 = load i32, ptr @p, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  %66 = load i32, ptr @p, align 4, !tbaa !5
  %67 = srem i32 %65, %66
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %68
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [110 x i32], ptr %69, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %76
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [110 x i32], ptr %77, i64 0, i64 %79
  store i32 %74, ptr %80, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %61
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !5
  br label %56, !llvm.loop !12

84:                                               ; preds = %60
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %3, align 4, !tbaa !5
  br label %50, !llvm.loop !13

88:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 48400, ptr %6) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @A, i64 48400, i1 false), !tbaa.struct !14
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 1
  call void @_Z8multipow6matrixi(ptr dead_on_unwind writable sret(%struct.matrix) align 4 %6, ptr noundef byval(%struct.matrix) align 8 %7, i32 noundef %90)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @A, ptr align 4 %6, i64 48400, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 48400, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %116, %88
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = load i32, ptr @p, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

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

96:                                               ; preds = %91
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = mul nsw i64 1, %103
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %106
  %108 = getelementptr inbounds [110 x i32], ptr %107, i64 0, i64 0
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = mul nsw i64 %104, %110
  %112 = srem i64 %111, 20170408
  %113 = add nsw i64 %98, %112
  %114 = srem i64 %113, 20170408
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %8, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %96
  %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 %91, !llvm.loop !16

119:                                              ; preds = %95
  %120 = load i32, ptr %8, align 4, !tbaa !5
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  ret i32 %120
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 48400, !15}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !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"

%struct.matrix = type { [110 x [110 x i32]] }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local local_unnamed_addr global i32, align 4
@A = external dso_local local_unnamed_addr global %struct.matrix, align 4
@dp = external dso_local local_unnamed_addr global [110 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8multipow6matrixi(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef byval(%struct.matrix) align 8, i32 noundef) local_unnamed_addr #0

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -20170407, 20170408) i32 @_Z6solve1v() local_unnamed_addr #0 {
  %1 = alloca %struct.matrix, align 4
  %2 = alloca %struct.matrix, align 8
  %3 = load i32, ptr @m, align 4, !tbaa !5
  %.not29 = icmp slt i32 %3, 1
  %.pre.pre = load i32, ptr @p, align 4, !tbaa !5
  br i1 %.not29, label %.preheader27, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %xtraiter = and i32 %3, 1
  %4 = icmp eq i32 %3, 1
  br i1 %4, label %.preheader28.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %3, 2147483646
  br label %.lr.ph

.preheader28.unr-lcssa:                           ; preds = %.lr.ph, %.lr.ph.preheader
  %.02430.unr = phi i32 [ 1, %.lr.ph.preheader ], [ %21, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader28, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader28.unr-lcssa
  %5 = srem i32 %.02430.unr, %.pre.pre
  %6 = zext nneg i32 %5 to i64
  %7 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  store i32 %9, ptr %7, align 4, !tbaa !5
  br label %.preheader28

.preheader28:                                     ; preds = %.preheader28.unr-lcssa, %.lr.ph.epil
  br i1 %.not29, label %.preheader27, label %.lr.ph33

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.02430 = phi i32 [ 1, %.lr.ph.preheader.new ], [ %21, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %10 = srem i32 %.02430, %.pre.pre
  %11 = zext nneg i32 %10 to i64
  %12 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %12, align 4, !tbaa !5
  %15 = add nuw i32 %.02430, 1
  %16 = srem i32 %15, %.pre.pre
  %17 = zext nneg i32 %16 to i64
  %18 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !5
  %21 = add nuw i32 %.02430, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader28.unr-lcssa, label %.lr.ph, !llvm.loop !9

.preheader27:                                     ; preds = %.lr.ph33, %0, %.preheader28
  %22 = icmp sgt i32 %.pre.pre, 1
  br i1 %22, label %.preheader.lr.ph, label %._crit_edge37

.preheader.lr.ph:                                 ; preds = %.preheader27
  %23 = add nsw i32 %.pre.pre, -1
  %wide.trip.count48 = zext nneg i32 %.pre.pre to i64
  %xtraiter55 = and i64 %wide.trip.count48, 1
  %unroll_iter57 = and i64 %wide.trip.count48, 2147483646
  %lcmp.mod56.not = icmp eq i64 %xtraiter55, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %._crit_edge.us ], [ 1, %.preheader.lr.ph ]
  %24 = add nsw i64 %indvars.iv45, -1
  br label %25

25:                                               ; preds = %25, %.preheader.us
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next.1, %25 ]
  %niter58 = phi i64 [ 0, %.preheader.us ], [ %niter58.next.1, %25 ]
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  %27 = add i32 %23, %26
  %28 = srem i32 %27, %.pre.pre
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %29, i64 %24
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 %indvars.iv45
  store i32 %31, ptr %32, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %33 = trunc nuw nsw i64 %indvars.iv.next to i32
  %34 = add i32 %23, %33
  %35 = srem i32 %34, %.pre.pre
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %36, i64 %24
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %indvars.iv.next, i64 %indvars.iv45
  store i32 %38, ptr %39, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter58.next.1 = add i64 %niter58, 2
  %niter58.ncmp.1 = icmp eq i64 %niter58.next.1, %unroll_iter57
  br i1 %niter58.ncmp.1, label %._crit_edge.us.unr-lcssa, label %25, !llvm.loop !11

._crit_edge.us.unr-lcssa:                         ; preds = %25
  br i1 %lcmp.mod56.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %40 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  %41 = add i32 %23, %40
  %42 = srem i32 %41, %.pre.pre
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %43, i64 %24
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %indvars.iv.next.1, i64 %indvars.iv45
  store i32 %45, ptr %46, align 4, !tbaa !5
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next46, %wide.trip.count48
  br i1 %exitcond49.not, label %._crit_edge37, label %.preheader.us, !llvm.loop !12

.lr.ph33:                                         ; preds = %.preheader28, %.lr.ph33
  %.02332 = phi i32 [ %54, %.lr.ph33 ], [ 1, %.preheader28 ]
  %47 = srem i32 %.02332, %.pre.pre
  %48 = sub i32 %.pre.pre, %47
  %49 = srem i32 %48, %.pre.pre
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !5
  %54 = add nuw i32 %.02332, 1
  %exitcond42.not = icmp eq i32 %.02332, %3
  br i1 %exitcond42.not, label %.preheader27, label %.lr.ph33, !llvm.loop !13

._crit_edge37:                                    ; preds = %._crit_edge.us, %.preheader27
  call void @llvm.lifetime.start.p0(i64 48400, ptr nonnull %1) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48400) %2, ptr noundef nonnull align 4 dereferenceable(48400) @A, i64 48400, i1 false), !tbaa.struct !14
  %55 = load i32, ptr @n, align 4, !tbaa !5
  %56 = add nsw i32 %55, -1
  call void @_Z8multipow6matrixi(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 4 %1, ptr noundef nonnull byval(%struct.matrix) align 8 %2, i32 noundef %56)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(48400) @A, ptr noundef nonnull align 4 dereferenceable(48400) %1, i64 48400, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 48400, ptr nonnull %1) #3
  %57 = load i32, ptr @p, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph40.preheader, label %._crit_edge

.lr.ph40.preheader:                               ; preds = %._crit_edge37
  %wide.trip.count53 = zext nneg i32 %57 to i64
  br label %.lr.ph40

._crit_edge.loopexit:                             ; preds = %.lr.ph40
  %59 = trunc nsw i64 %69 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %._crit_edge37
  %.020.lcssa = phi i32 [ 0, %._crit_edge37 ], [ %59, %._crit_edge.loopexit ]
  ret i32 %.020.lcssa

.lr.ph40:                                         ; preds = %.lr.ph40.preheader, %.lr.ph40
  %indvars.iv50 = phi i64 [ 0, %.lr.ph40.preheader ], [ %indvars.iv.next51, %.lr.ph40 ]
  %.02038 = phi i64 [ 0, %.lr.ph40.preheader ], [ %69, %.lr.ph40 ]
  %60 = getelementptr inbounds [110 x i32], ptr @dp, i64 0, i64 %indvars.iv50
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [110 x [110 x i32]], ptr @A, i64 0, i64 %indvars.iv50
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = mul nsw i64 %65, %62
  %67 = srem i64 %66, 20170408
  %68 = add nsw i64 %67, %.02038
  %69 = srem i64 %68, 20170408
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next51, %wide.trip.count53
  br i1 %exitcond54.not, label %._crit_edge.loopexit, label %.lr.ph40, !llvm.loop !16
}

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 48400, !15}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !10}


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