; LLVM IR from kazunetakahashi/atcoder :: 2019/0219_ABC032/D.ll (Z6solve3v)

; 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 }

@N = external dso_local global i32, align 4
@W = external dso_local global i64, align 8
@v = external dso_local global [210 x i64], align 16
@w = external dso_local global [210 x i64], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@DP = external dso_local global [210 x [200010 x i64]], align 16
@_ZL5infty = external hidden constant i64, 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
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6solve3v() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  call void @_ZSt4fillIPxxEvT_S1_RKT0_(ptr noundef @DP, ptr noundef getelementptr inbounds (i64, ptr @DP, i64 42002100), ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty)
  store i64 0, ptr @DP, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 200001, ptr %1, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %105, %0
  %8 = load i32, ptr %2, align 4, !tbaa !9
  %9 = load i32, ptr @N, align 4, !tbaa !9
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %12, label %11

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

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

13:                                               ; preds = %101, %12
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = load i32, ptr %1, align 4, !tbaa !9
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  %19 = load i32, ptr %2, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %20
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [200010 x i64], ptr %21, i64 0, i64 %23
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = icmp eq i64 %25, 1000000000000000000
  br i1 %26, label %27, label %28

27:                                               ; preds = %18
  br label %101

28:                                               ; preds = %18
  %29 = load i32, ptr %2, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %31
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [200010 x i64], ptr %32, i64 0, i64 %34
  %36 = load i32, ptr %2, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %37
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [200010 x i64], ptr %38, i64 0, i64 %40
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %41)
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %46
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [200010 x i64], ptr %47, i64 0, i64 %49
  store i64 %43, ptr %50, align 8, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = load i32, ptr %2, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [210 x i64], ptr @v, i64 0, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = add nsw i64 %52, %56
  %58 = load i32, ptr %1, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %100

61:                                               ; preds = %28
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %64
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = load i32, ptr %2, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [210 x i64], ptr @v, i64 0, i64 %69
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = add nsw i64 %67, %71
  %73 = getelementptr inbounds [200010 x i64], ptr %65, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %74 = load i32, ptr %2, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %75
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200010 x i64], ptr %76, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %2, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [210 x i64], ptr @w, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = add nsw i64 %80, %84
  store i64 %85, ptr %5, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = load i32, ptr %2, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %90
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [210 x i64], ptr @v, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !5
  %98 = add nsw i64 %93, %97
  %99 = getelementptr inbounds [200010 x i64], ptr %91, i64 0, i64 %98
  store i64 %87, ptr %99, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %100

100:                                              ; preds = %61, %28
  br label %101

101:                                              ; preds = %100, %27
  %102 = load i32, ptr %4, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %4, align 4, !tbaa !9
  br label %13, !llvm.loop !11

104:                                              ; preds = %17
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %2, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %2, align 4, !tbaa !9
  br label %7, !llvm.loop !13

108:                                              ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %109 = load i32, ptr %1, align 4, !tbaa !9
  %110 = sub nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %130, %108
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = icmp sge i32 %112, 0
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 8, ptr %3, align 4
  br label %133

115:                                              ; preds = %111
  %116 = load i32, ptr @N, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %117
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [200010 x i64], ptr %118, i64 0, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !5
  %123 = load i64, ptr @W, align 8, !tbaa !5
  %124 = icmp sle i64 %122, %123
  br i1 %124, label %125, label %129

125:                                              ; preds = %115
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %126)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 1, ptr %3, align 4
  br label %133

129:                                              ; preds = %115
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %6, align 4, !tbaa !9
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %6, align 4, !tbaa !9
  br label %111, !llvm.loop !14

133:                                              ; preds = %125, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %134 = load i32, ptr %3, align 4
  switch i32 %134, label %136 [
    i32 8, label %135
  ]

135:                                              ; preds = %133
  store i32 0, ptr %3, align 4
  br label %136

136:                                              ; preds = %135, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  %137 = load i32, ptr %3, align 4
  switch i32 %137, label %139 [
    i32 0, label %138
    i32 1, label %138
  ]

138:                                              ; preds = %136, %136
  ret void

139:                                              ; preds = %136
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxxEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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 = { inlinehint 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 #4 = { "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 #5 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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::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 }

@N = external dso_local local_unnamed_addr global i32, align 4
@W = external dso_local local_unnamed_addr global i64, align 8
@v = external dso_local local_unnamed_addr global [210 x i64], align 16
@w = external dso_local local_unnamed_addr global [210 x i64], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@DP = external dso_local global [210 x [200010 x i64]], align 16
@_ZL5infty = external hidden constant i64, align 8

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6solve3v() local_unnamed_addr #1 {
  %1 = alloca i64, align 8
  tail call void @_ZSt4fillIPxxEvT_S1_RKT0_(ptr noundef nonnull @DP, ptr noundef nonnull getelementptr inbounds (i8, ptr @DP, i64 336016800), ptr noundef nonnull align 8 dereferenceable(8) @_ZL5infty)
  store i64 0, ptr @DP, align 16, !tbaa !5
  %2 = load i32, ptr @N, align 4, !tbaa !9
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.preheader35, label %..preheader_crit_edge

..preheader_crit_edge:                            ; preds = %0
  %.pre = sext i32 %2 to i64
  br label %.preheader

.preheader35:                                     ; preds = %0, %7
  %indvars.iv43 = phi i64 [ %indvars.iv.next44, %7 ], [ 0, %0 ]
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %4 = getelementptr inbounds [210 x i64], ptr @v, i64 0, i64 %indvars.iv43
  %5 = getelementptr inbounds [210 x i64], ptr @w, i64 0, i64 %indvars.iv43
  br label %11

.preheader:                                       ; preds = %7, %..preheader_crit_edge
  %.pre-phi = phi i64 [ %.pre, %..preheader_crit_edge ], [ %9, %7 ]
  %6 = load i64, ptr @W, align 8, !tbaa !5
  br label %33

7:                                                ; preds = %32
  %8 = load i32, ptr @N, align 4, !tbaa !9
  %9 = sext i32 %8 to i64
  %10 = icmp slt i64 %indvars.iv.next44, %9
  br i1 %10, label %.preheader35, label %.preheader, !llvm.loop !11

11:                                               ; preds = %.preheader35, %32
  %indvars.iv = phi i64 [ 0, %.preheader35 ], [ %indvars.iv.next, %32 ]
  %12 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %indvars.iv43, i64 %indvars.iv
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = icmp eq i64 %13, 1000000000000000000
  br i1 %14, label %32, label %15

15:                                               ; preds = %11
  %16 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %indvars.iv.next44, i64 %indvars.iv
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %18 = load i64, ptr %17, align 8, !tbaa !5
  store i64 %18, ptr %16, align 8, !tbaa !5
  %19 = load i64, ptr %4, align 8, !tbaa !5
  %20 = add nsw i64 %19, %indvars.iv
  %21 = icmp slt i64 %20, 200002
  br i1 %21, label %22, label %32

22:                                               ; preds = %15
  %23 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %indvars.iv.next44, i64 %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %24 = load i64, ptr %12, align 8, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !5
  %26 = add nsw i64 %25, %24
  store i64 %26, ptr %1, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = load i64, ptr %4, align 8, !tbaa !5
  %30 = add nsw i64 %29, %indvars.iv
  %31 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %indvars.iv.next44, i64 %30
  store i64 %28, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  br label %32

32:                                               ; preds = %15, %22, %11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 200002
  br i1 %exitcond.not, label %7, label %11, !llvm.loop !13

33:                                               ; preds = %50, %.preheader
  %.039 = phi i32 [ 200000, %.preheader ], [ %51, %50 ]
  %34 = zext nneg i32 %.039 to i64
  %35 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %.pre-phi, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %.not = icmp sgt i64 %36, %6
  br i1 %.not, label %40, label %37

37:                                               ; preds = %45, %40, %33
  %.039.lcssa = phi i32 [ %.039, %33 ], [ %41, %40 ], [ %46, %45 ]
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.039.lcssa)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.loopexit

40:                                               ; preds = %33
  %41 = add nsw i32 %.039, -1
  %42 = zext nneg i32 %41 to i64
  %43 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %.pre-phi, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %.not.1 = icmp sgt i64 %44, %6
  br i1 %.not.1, label %45, label %37

45:                                               ; preds = %40
  %46 = add nsw i32 %.039, -2
  %47 = zext nneg i32 %46 to i64
  %48 = getelementptr inbounds [210 x [200010 x i64]], ptr @DP, i64 0, i64 %.pre-phi, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %.not.2 = icmp sgt i64 %49, %6
  br i1 %.not.2, label %50, label %37

50:                                               ; preds = %45
  %51 = add nsw i32 %.039, -3
  %.not46.2 = icmp eq i32 %46, 0
  br i1 %.not46.2, label %.loopexit, label %33, !llvm.loop !14

.loopexit:                                        ; preds = %50, %37
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPxxEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress 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 = { inlinehint 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 #4 = { "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 #5 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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