; LLVM IR from kazunetakahashi/atcoder :: 2019/0504_AGC033/D.ll (Z8fill_dp1i)

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

@dp1 = external dso_local global [17 x [186 x [186 x [186 x i16]]]], align 16
@dp2 = external dso_local global [17 x [186 x [186 x [186 x i16]]]], align 16
@H = external dso_local global i16, align 2
@W = external dso_local global i16, align 2
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__._Z8fill_dp1i = external hidden unnamed_addr constant [19 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #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)) #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8), i16 noundef signext) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8fill_dp1i(i32 noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %142, %1
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = load i16, ptr @H, align 2, !tbaa !9
  %11 = sext i16 %10 to i32
  %12 = icmp sle i32 %9, %11
  br i1 %12, label %14, label %13

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

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

16:                                               ; preds = %138, %14
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = load i16, ptr @H, align 2, !tbaa !9
  %19 = sext i16 %18 to i32
  %20 = icmp sle i32 %17, %19
  br i1 %20, label %22, label %21

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

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #5
  %23 = load i16, ptr @W, align 2, !tbaa !9
  store i16 %23, ptr %6, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #5
  %24 = load i16, ptr @W, align 2, !tbaa !9
  store i16 %24, ptr %7, align 2, !tbaa !9
  br label %25

25:                                               ; preds = %136, %22
  %26 = load i16, ptr %6, align 2, !tbaa !9
  %27 = sext i16 %26 to i32
  %28 = icmp sge i32 %27, 0
  br i1 %28, label %29, label %137

29:                                               ; preds = %25
  %30 = load i16, ptr %6, align 2, !tbaa !9
  %31 = sext i16 %30 to i32
  %32 = load i16, ptr %7, align 2, !tbaa !9
  %33 = sext i16 %32 to i32
  %34 = icmp sle i32 %31, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  br label %38

36:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 352, ptr noundef @__PRETTY_FUNCTION__._Z8fill_dp1i) #6
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr %42, i64 0, i64 %44
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [186 x [186 x i16]], ptr %45, i64 0, i64 %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %51
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [186 x [186 x i16]], ptr %55, i64 0, i64 %57
  %59 = load i16, ptr %6, align 2, !tbaa !9
  %60 = sext i16 %59 to i64
  %61 = getelementptr inbounds [186 x i16], ptr %58, i64 0, i64 %60
  %62 = load i16, ptr %61, align 2, !tbaa !9
  %63 = sext i16 %62 to i64
  %64 = getelementptr inbounds [186 x i16], ptr %48, i64 0, i64 %63
  %65 = load i16, ptr %64, align 2, !tbaa !9
  %66 = sext i16 %65 to i32
  %67 = load i16, ptr %7, align 2, !tbaa !9
  %68 = sext i16 %67 to i32
  %69 = icmp sge i32 %66, %68
  br i1 %69, label %101, label %70

70:                                               ; preds = %38
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sub nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp2, i64 0, i64 %73
  %75 = load i16, ptr %6, align 2, !tbaa !9
  %76 = sext i16 %75 to i64
  %77 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr %74, i64 0, i64 %76
  %78 = load i16, ptr %7, align 2, !tbaa !9
  %79 = sext i16 %78 to i64
  %80 = getelementptr inbounds [186 x [186 x i16]], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp2, i64 0, i64 %83
  %85 = load i16, ptr %6, align 2, !tbaa !9
  %86 = sext i16 %85 to i64
  %87 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr %84, i64 0, i64 %86
  %88 = load i16, ptr %7, align 2, !tbaa !9
  %89 = sext i16 %88 to i64
  %90 = getelementptr inbounds [186 x [186 x i16]], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [186 x i16], ptr %90, i64 0, i64 %92
  %94 = load i16, ptr %93, align 2, !tbaa !9
  %95 = sext i16 %94 to i64
  %96 = getelementptr inbounds [186 x i16], ptr %80, i64 0, i64 %95
  %97 = load i16, ptr %96, align 2, !tbaa !9
  %98 = sext i16 %97 to i32
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = icmp sge i32 %98, %99
  br i1 %100, label %101, label %133

101:                                              ; preds = %70, %38
  %102 = load i16, ptr %7, align 2, !tbaa !9
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %104
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr %105, i64 0, i64 %107
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [186 x [186 x i16]], ptr %108, i64 0, i64 %110
  %112 = load i16, ptr %6, align 2, !tbaa !9
  %113 = sext i16 %112 to i64
  %114 = getelementptr inbounds [186 x i16], ptr %111, i64 0, i64 %113
  store i16 %102, ptr %114, align 2, !tbaa !9
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.6)
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef %116)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str.7)
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.7)
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %121, i32 noundef %122)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.7)
  %125 = load i16, ptr %6, align 2, !tbaa !9
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8) %124, i16 noundef signext %125)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @.str.8)
  %128 = load i16, ptr %7, align 2, !tbaa !9
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8) %127, i16 noundef signext %128)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %131 = load i16, ptr %6, align 2, !tbaa !9
  %132 = add i16 %131, -1
  store i16 %132, ptr %6, align 2, !tbaa !9
  br label %136

133:                                              ; preds = %70
  %134 = load i16, ptr %7, align 2, !tbaa !9
  %135 = add i16 %134, -1
  store i16 %135, ptr %7, align 2, !tbaa !9
  br label %136

136:                                              ; preds = %133, %101
  br label %25, !llvm.loop !11

137:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #5
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %5, align 4, !tbaa !5
  br label %16, !llvm.loop !13

141:                                              ; preds = %21
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %3, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %3, align 4, !tbaa !5
  br label %8, !llvm.loop !14

145:                                              ; preds = %13
  ret void
}

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

attributes #0 = { 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 #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 = { "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 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!"short", !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 }

@dp1 = external dso_local local_unnamed_addr global [17 x [186 x [186 x [186 x i16]]]], align 16
@dp2 = external dso_local local_unnamed_addr global [17 x [186 x [186 x [186 x i16]]]], align 16
@H = external dso_local local_unnamed_addr global i16, align 2
@W = external dso_local local_unnamed_addr global i16, align 2
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__._Z8fill_dp1i = external hidden unnamed_addr constant [19 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #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)) #0

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8), i16 noundef signext) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8fill_dp1i(i32 noundef %0) local_unnamed_addr #1 {
  %2 = load i16, ptr @H, align 2, !tbaa !5
  %.not52 = icmp slt i16 %2, 0
  br i1 %.not52, label %._crit_edge55, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %1
  %3 = add nsw i32 %0, -1
  %4 = sext i32 %3 to i64
  %5 = sext i32 %0 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge51
  %6 = phi i16 [ %2, %.preheader.lr.ph ], [ %11, %._crit_edge51 ]
  %indvars.iv = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next, %._crit_edge51 ]
  %7 = sext i16 %6 to i64
  %.not4248 = icmp sgt i64 %indvars.iv, %7
  br i1 %.not4248, label %._crit_edge51, label %.lr.ph50

.lr.ph50:                                         ; preds = %.preheader
  %8 = load i16, ptr @W, align 2, !tbaa !5
  %9 = icmp sgt i16 %8, -1
  br i1 %9, label %.lr.ph50.split.preheader, label %._crit_edge51

.lr.ph50.split.preheader:                         ; preds = %.lr.ph50
  %10 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.lr.ph50.split

._crit_edge55:                                    ; preds = %._crit_edge51, %1
  ret void

._crit_edge51.loopexit:                           ; preds = %._crit_edge
  %.pre62 = sext i16 %52 to i64
  br label %._crit_edge51

._crit_edge51:                                    ; preds = %.lr.ph50, %._crit_edge51.loopexit, %.preheader
  %.pre-phi63 = phi i64 [ %.pre62, %._crit_edge51.loopexit ], [ %7, %.preheader ], [ %7, %.lr.ph50 ]
  %11 = phi i16 [ %52, %._crit_edge51.loopexit ], [ %6, %.preheader ], [ %6, %.lr.ph50 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not.not = icmp slt i64 %indvars.iv, %.pre-phi63
  br i1 %.not.not, label %.preheader, label %._crit_edge55, !llvm.loop !9

.lr.ph50.splitthread-pre-split:                   ; preds = %._crit_edge
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %.pr = load i16, ptr @W, align 2, !tbaa !5
  br label %.lr.ph50.split

.lr.ph50.split:                                   ; preds = %.lr.ph50.splitthread-pre-split, %.lr.ph50.split.preheader
  %12 = phi i16 [ %.pr, %.lr.ph50.splitthread-pre-split ], [ %8, %.lr.ph50.split.preheader ]
  %13 = phi i16 [ %52, %.lr.ph50.splitthread-pre-split ], [ %6, %.lr.ph50.split.preheader ]
  %14 = phi i16 [ %53, %.lr.ph50.splitthread-pre-split ], [ %6, %.lr.ph50.split.preheader ]
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %.lr.ph50.splitthread-pre-split ], [ %indvars.iv, %.lr.ph50.split.preheader ]
  %15 = icmp sgt i16 %12, -1
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph50.split
  %16 = trunc nuw nsw i64 %indvars.iv57 to i32
  br label %17

17:                                               ; preds = %.lr.ph, %50
  %.047 = phi i16 [ %12, %.lr.ph ], [ %.1, %50 ]
  %.03646 = phi i16 [ %12, %.lr.ph ], [ %.137, %50 ]
  %.not43 = icmp sgt i16 %.03646, %.047
  br i1 %.not43, label %18, label %19

18:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 352, ptr noundef nonnull @__PRETTY_FUNCTION__._Z8fill_dp1i) #4
  unreachable

19:                                               ; preds = %17
  %20 = zext nneg i16 %.03646 to i64
  %21 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %4, i64 %indvars.iv, i64 %indvars.iv57, i64 %20
  %22 = load i16, ptr %21, align 2, !tbaa !5
  %23 = sext i16 %22 to i64
  %24 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %4, i64 %indvars.iv, i64 %indvars.iv57, i64 %23
  %25 = load i16, ptr %24, align 2, !tbaa !5
  %.not44 = icmp slt i16 %25, %.047
  br i1 %.not44, label %26, label %34

26:                                               ; preds = %19
  %27 = zext nneg i16 %.047 to i64
  %28 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp2, i64 0, i64 %4, i64 %20, i64 %27, i64 %indvars.iv
  %29 = load i16, ptr %28, align 2, !tbaa !5
  %30 = sext i16 %29 to i64
  %31 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp2, i64 0, i64 %4, i64 %20, i64 %27, i64 %30
  %32 = load i16, ptr %31, align 2, !tbaa !5
  %33 = sext i16 %32 to i64
  %.not45 = icmp sgt i64 %indvars.iv57, %33
  br i1 %.not45, label %48, label %34

34:                                               ; preds = %26, %19
  %35 = getelementptr inbounds [17 x [186 x [186 x [186 x i16]]]], ptr @dp1, i64 0, i64 %5, i64 %indvars.iv, i64 %indvars.iv57, i64 %20
  store i16 %.047, ptr %35, align 2, !tbaa !5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.6)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef %0)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.7)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %10)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.7)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %16)
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @.str.7)
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8) %42, i16 noundef signext %.03646)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.8)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEs(ptr noundef nonnull align 8 dereferenceable(8) %44, i16 noundef signext %.047)
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %47 = add nsw i16 %.03646, -1
  br label %50

48:                                               ; preds = %26
  %49 = add nsw i16 %.047, -1
  br label %50

50:                                               ; preds = %48, %34
  %.137 = phi i16 [ %47, %34 ], [ %.03646, %48 ]
  %.1 = phi i16 [ %.047, %34 ], [ %49, %48 ]
  %51 = icmp sgt i16 %.137, -1
  br i1 %51, label %17, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %50
  %.pre = load i16, ptr @H, align 2, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph50.split
  %52 = phi i16 [ %.pre, %._crit_edge.loopexit ], [ %13, %.lr.ph50.split ]
  %53 = phi i16 [ %.pre, %._crit_edge.loopexit ], [ %14, %.lr.ph50.split ]
  %54 = sext i16 %53 to i64
  %.not42.not = icmp slt i64 %indvars.iv57, %54
  br i1 %.not42.not, label %.lr.ph50.splitthread-pre-split, label %._crit_edge51.loopexit, !llvm.loop !12
}

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

attributes #0 = { 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 #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 = { "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 = { noreturn nounwind "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 = { noreturn 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 = !{!"short", !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}
!13 = !{!"llvm.loop.unswitch.partial.disable"}


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