; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/400/G/G.ll (Z3getSt6vectorIiSaIiEE)

; 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.__gnu_cxx::__normal_iterator.3" = type { ptr }

@dp = external dso_local global [17 x [2 x [2 x i64]]], align 16

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3getSt6vectorIiSaIiEE(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %3, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  %21 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %4, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %3, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %4, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %24, ptr %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %27 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %177, %1
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 16
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %8, align 4
  br label %180

33:                                               ; preds = %29
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sdiv i32 %34, 4
  %36 = add nsw i32 %35, 1
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = icmp sgt i32 %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  store i32 2, ptr %8, align 4
  br label %180

40:                                               ; preds = %33
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 544, i1 false)
  store i64 1, ptr getelementptr inbounds ([2 x [2 x i64]], ptr @dp, i64 0, i64 1), align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %154, %40
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %157

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %150, %46
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 2
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %153

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %146, %51
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 2
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %149

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %58
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x [2 x i64]], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [2 x i64], ptr %62, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !11
  store i64 %66, ptr %12, align 8, !tbaa !11
  %67 = load i64, ptr %12, align 8, !tbaa !11
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %70, label %69

69:                                               ; preds = %56
  store i32 13, ptr %8, align 4
  br label %143

70:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  br label %79

74:                                               ; preds = %70
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %76) #6
  %78 = load i32, ptr %77, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %74, %73
  %80 = phi i32 [ 15, %73 ], [ %78, %74 ]
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %82 = load i32, ptr %81, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  store i32 %82, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %139, %79
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %142

88:                                               ; preds = %83
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = sub nsw i32 %89, %90
  %92 = sub nsw i32 %91, 1
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = sdiv i32 %93, 4
  %95 = icmp eq i32 %92, %94
  br i1 %95, label %96, label %104

96:                                               ; preds = %88
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  %99 = srem i32 %98, 4
  %100 = shl i32 1, %99
  %101 = and i32 %97, %100
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %96
  br label %139

104:                                              ; preds = %96, %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %114

107:                                              ; preds = %104
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %110) #6
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = icmp eq i32 %108, %112
  br label %114

114:                                              ; preds = %107, %104
  %115 = phi i1 [ false, %104 ], [ %113, %107 ]
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %123, label %119

119:                                              ; preds = %114
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = icmp eq i32 %120, %121
  br label %123

123:                                              ; preds = %119, %114
  %124 = phi i1 [ true, %114 ], [ %122, %119 ]
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %17, align 4, !tbaa !9
  %126 = load i64, ptr %12, align 8, !tbaa !11
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %129
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [2 x [2 x i64]], ptr %130, i64 0, i64 %132
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [2 x i64], ptr %133, i64 0, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = add nsw i64 %137, %126
  store i64 %138, ptr %136, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %139

139:                                              ; preds = %123, %103
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %15, align 4, !tbaa !9
  br label %83, !llvm.loop !13

142:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  store i32 0, ptr %8, align 4
  br label %143

143:                                              ; preds = %142, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %144 = load i32, ptr %8, align 4
  switch i32 %144, label %183 [
    i32 0, label %145
    i32 13, label %146
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %143
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %11, align 4, !tbaa !9
  br label %52, !llvm.loop !15

149:                                              ; preds = %55
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %10, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %10, align 4, !tbaa !9
  br label %47, !llvm.loop !16

153:                                              ; preds = %50
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %9, align 4, !tbaa !9
  br label %41, !llvm.loop !17

157:                                              ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %173, %157
  %159 = load i32, ptr %18, align 4, !tbaa !9
  %160 = icmp slt i32 %159, 2
  br i1 %160, label %162, label %161

161:                                              ; preds = %158
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %176

162:                                              ; preds = %158
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %164
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [2 x [2 x i64]], ptr %165, i64 0, i64 %167
  %169 = getelementptr inbounds [2 x i64], ptr %168, i64 0, i64 1
  %170 = load i64, ptr %169, align 8, !tbaa !11
  %171 = load i64, ptr %6, align 8, !tbaa !11
  %172 = add nsw i64 %171, %170
  store i64 %172, ptr %6, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %162
  %174 = load i32, ptr %18, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %18, align 4, !tbaa !9
  br label %158, !llvm.loop !18

176:                                              ; preds = %161
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %7, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %7, align 4, !tbaa !9
  br label %29, !llvm.loop !19

180:                                              ; preds = %39, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %181

181:                                              ; preds = %180
  %182 = load i64, ptr %6, align 8, !tbaa !11
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i64 %182

183:                                              ; preds = %143
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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

@dp = external dso_local local_unnamed_addr global [17 x [2 x [2 x i64]]], align 16

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3getSt6vectorIiSaIiEE(ptr noundef nonnull %0) local_unnamed_addr #3 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %5 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  tail call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %4, ptr %5)
  %6 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %7 = trunc i64 %6 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  %.not61 = icmp sgt i32 %7, 0
  br i1 %.not61, label %.lr.ph63, label %._crit_edge

.lr.ph63:                                         ; preds = %1
  %sext = and i64 %6, 2147483647
  %wide.trip.count = and i64 %6, 2147483647
  %8 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %sext, i64 0, i64 1
  %9 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %sext, i64 1, i64 1
  br label %.preheader47.lr.ph.us

.preheader47.lr.ph.us:                            ; preds = %..preheader48_crit_edge.us.preheader, %.lr.ph63
  %.03662.us = phi i64 [ 0, %.lr.ph63 ], [ %14, %..preheader48_crit_edge.us.preheader ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(544) @dp, i8 0, i64 544, i1 false)
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 16), align 16, !tbaa !9
  br label %.preheader47.us

10:                                               ; preds = %.split.us64
  %exitcond82.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count
  br i1 %exitcond82.not, label %..preheader48_crit_edge.us.preheader, label %.preheader47.us, !llvm.loop !11

..preheader48_crit_edge.us.preheader:             ; preds = %10
  %11 = load i64, ptr %8, align 8, !tbaa !9
  %12 = add nsw i64 %11, %.03662.us
  %13 = load i64, ptr %9, align 8, !tbaa !9
  %14 = add nsw i64 %13, %12
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %2, align 4, !tbaa !5
  %17 = icmp slt i32 %15, 15
  %18 = sdiv i32 %16, 4
  %.not.us = icmp slt i32 %18, %7
  %or.cond.us = and i1 %17, %.not.us
  br i1 %or.cond.us, label %.preheader47.lr.ph.us, label %._crit_edge, !llvm.loop !13

19:                                               ; preds = %.preheader.split.us70.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv79) #7
  %21 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %21, ptr %3, align 4, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %.not4549.us67 = icmp slt i32 %23, 0
  br i1 %.not4549.us67, label %.loopexit.us68, label %.lr.ph.us69

24:                                               ; preds = %.lr.ph.us69, %44
  %25 = phi i32 [ %.pre, %.lr.ph.us69 ], [ %45, %44 ]
  %.03750.us = phi i32 [ 0, %.lr.ph.us69 ], [ %46, %44 ]
  %26 = sdiv i32 %25, 4
  %27 = icmp eq i32 %78, %26
  br i1 %27, label %28, label %33

28:                                               ; preds = %24
  %29 = and i32 %25, 3
  %30 = shl nuw nsw i32 1, %29
  %31 = and i32 %30, %.03750.us
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %44, label %33

33:                                               ; preds = %28, %24
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv79) #7
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = icmp eq i32 %.03750.us, %35
  %37 = load i32, ptr %2, align 4
  %38 = icmp eq i32 %.03750.us, %37
  %39 = zext i1 %36 to i64
  %40 = zext i1 %38 to i64
  %41 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 %39, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = add nsw i64 %42, %74
  store i64 %43, ptr %41, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %33, %28
  %45 = phi i32 [ %37, %33 ], [ %25, %28 ]
  %46 = add nuw i32 %.03750.us, 1
  %exitcond.not = icmp eq i32 %.03750.us, %23
  br i1 %exitcond.not, label %.loopexit.us68, label %24, !llvm.loop !14

.loopexit.us68:                                   ; preds = %44, %19, %.preheader.split.us70.preheader
  %47 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv79, i64 %indvars.iv, i64 1
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %.not44.us66.1 = icmp eq i64 %48, 0
  br i1 %.not44.us66.1, label %.split.us64, label %49

49:                                               ; preds = %.loopexit.us68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv79) #7
  %51 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %51, ptr %3, align 4, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %53 = load i32, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %.not4549.us67.1 = icmp slt i32 %53, 0
  br i1 %.not4549.us67.1, label %.split.us64, label %.lr.ph.us69.1

.lr.ph.us69.1:                                    ; preds = %49, %70
  %.03750.us.1 = phi i32 [ %71, %70 ], [ 0, %49 ]
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sdiv i32 %54, 4
  %56 = icmp eq i32 %78, %55
  br i1 %56, label %57, label %62

57:                                               ; preds = %.lr.ph.us69.1
  %58 = and i32 %54, 3
  %59 = shl nuw nsw i32 1, %58
  %60 = and i32 %59, %.03750.us.1
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %70, label %62

62:                                               ; preds = %57, %.lr.ph.us69.1
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv79) #7
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp eq i32 %.03750.us.1, %64
  %66 = zext i1 %65 to i64
  %67 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 %66, i64 1
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = add nsw i64 %68, %48
  store i64 %69, ptr %67, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %62, %57
  %71 = add nuw i32 %.03750.us.1, 1
  %exitcond.1.not = icmp eq i32 %.03750.us.1, %53
  br i1 %exitcond.1.not, label %.split.us64, label %.lr.ph.us69.1, !llvm.loop !14

.preheader.us:                                    ; preds = %.split.us64, %.preheader47.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.split.us64 ], [ 0, %.preheader47.us ]
  %72 = icmp eq i64 %indvars.iv, 0
  br i1 %72, label %.preheader.split.us.us.preheader, label %.preheader.split.us70.preheader

.preheader.split.us70.preheader:                  ; preds = %.preheader.us
  %73 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv79, i64 %indvars.iv, i64 0
  %74 = load i64, ptr %73, align 16, !tbaa !9
  %.not44.us66 = icmp eq i64 %74, 0
  br i1 %.not44.us66, label %.loopexit.us68, label %19

.preheader.split.us.us.preheader:                 ; preds = %.preheader.us
  %75 = load i64, ptr %79, align 16, !tbaa !9
  %.not44.us.us = icmp eq i64 %75, 0
  br i1 %.not44.us.us, label %.loopexit.us.us, label %88

.preheader47.us:                                  ; preds = %.preheader47.lr.ph.us, %10
  %indvars.iv79 = phi i64 [ 0, %.preheader47.lr.ph.us ], [ %indvars.iv.next80, %10 ]
  %76 = trunc nuw nsw i64 %indvars.iv79 to i32
  %77 = xor i32 %76, -1
  %78 = add nsw i32 %77, %7
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %79 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv79, i64 0, i64 0
  %80 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv79, i64 0, i64 1
  %.phi.trans.insert = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 1
  %81 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 1
  br label %.preheader.us

.lr.ph.us69:                                      ; preds = %19
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %24

.split.us64.loopexit87:                           ; preds = %.lr.ph.split.us.split.us56.us.1, %middle.block
  %.lcssa = phi i64 [ %122, %middle.block ], [ %124, %.lr.ph.split.us.split.us56.us.1 ]
  store i64 %.lcssa, ptr %.phi.trans.insert, align 8, !tbaa !9
  br label %.split.us64

.split.us64.loopexit.unr-lcssa:                   ; preds = %137, %.lr.ph.split.us.split.us.us.us.1.preheader
  %.03750.us.us.us.us.1.unr = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.1.preheader ], [ %138, %137 ]
  %82 = and i32 %109, 1
  %lcmp.mod110.not.not = icmp ne i32 %82, 0
  %83 = and i32 %114, %.03750.us.us.us.us.1.unr
  %84 = icmp eq i32 %83, 0
  %or.cond = select i1 %lcmp.mod110.not.not, i1 true, i1 %84
  br i1 %or.cond, label %.split.us64, label %85

85:                                               ; preds = %.split.us64.loopexit.unr-lcssa
  %86 = load i64, ptr %81, align 8, !tbaa !9
  %87 = add nsw i64 %86, %106
  store i64 %87, ptr %81, align 8, !tbaa !9
  br label %.split.us64

.split.us64:                                      ; preds = %70, %.split.us64.loopexit.unr-lcssa, %85, %.split.us64.loopexit87, %.loopexit.us.us, %107, %.loopexit.us68, %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next, 2
  br i1 %exitcond78.not, label %10, label %.preheader.us, !llvm.loop !15

88:                                               ; preds = %.preheader.split.us.us.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 15, ptr %3, align 4, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %90 = load i32, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %.not4549.us.us = icmp slt i32 %90, 0
  br i1 %.not4549.us.us, label %.loopexit.us.us, label %.lr.ph.us.us

.loopexit.us.us.loopexit.unr-lcssa:               ; preds = %177, %.lr.ph.split.us.split.us.us.us.preheader
  %.03750.us.us.us.us.unr = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.preheader ], [ %178, %177 ]
  %91 = and i32 %90, 1
  %lcmp.mod104.not.not = icmp ne i32 %91, 0
  %92 = and i32 %143, %.03750.us.us.us.us.unr
  %93 = icmp eq i32 %92, 0
  %or.cond122 = select i1 %lcmp.mod104.not.not, i1 true, i1 %93
  br i1 %or.cond122, label %.loopexit.us.us, label %94

94:                                               ; preds = %.loopexit.us.us.loopexit.unr-lcssa
  %95 = icmp eq i32 %.03750.us.us.us.us.unr, %139
  %96 = zext i1 %95 to i64
  %97 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = add nsw i64 %98, %75
  store i64 %99, ptr %97, align 8, !tbaa !9
  br label %.loopexit.us.us

.loopexit.us.us.loopexit95.unr-lcssa:             ; preds = %.lr.ph.split.us.split.us56.us, %.lr.ph.split.us.split.us56.us.preheader
  %.03750.us.us53.us.unr = phi i32 [ 0, %.lr.ph.split.us.split.us56.us.preheader ], [ %159, %.lr.ph.split.us.split.us56.us ]
  %100 = and i32 %90, 1
  %lcmp.mod.not.not = icmp eq i32 %100, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph.split.us.split.us56.us.epil, label %.loopexit.us.us

.lr.ph.split.us.split.us56.us.epil:               ; preds = %.loopexit.us.us.loopexit95.unr-lcssa
  %101 = icmp eq i32 %.03750.us.us53.us.unr, %139
  %102 = zext i1 %101 to i64
  %103 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = add nsw i64 %104, %75
  store i64 %105, ptr %103, align 8, !tbaa !9
  br label %.loopexit.us.us

.loopexit.us.us:                                  ; preds = %.lr.ph.split.us.split.us56.us.epil, %.loopexit.us.us.loopexit95.unr-lcssa, %.loopexit.us.us.loopexit.unr-lcssa, %94, %88, %.preheader.split.us.us.preheader
  %106 = load i64, ptr %80, align 8, !tbaa !9
  %.not44.us.us.1 = icmp eq i64 %106, 0
  br i1 %.not44.us.us.1, label %.split.us64, label %107

107:                                              ; preds = %.loopexit.us.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 15, ptr %3, align 4, !tbaa !5
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %109 = load i32, ptr %108, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %.not4549.us.us.1 = icmp slt i32 %109, 0
  br i1 %.not4549.us.us.1, label %.split.us64, label %.lr.ph.us.us.1

.lr.ph.us.us.1:                                   ; preds = %107
  %110 = load i32, ptr %2, align 4
  %111 = sdiv i32 %110, 4
  %112 = icmp eq i32 %78, %111
  %113 = and i32 %110, 3
  %114 = shl nuw nsw i32 1, %113
  br i1 %112, label %.lr.ph.split.us.split.us.us.us.1.preheader, label %.lr.ph.split.us.split.us56.us.preheader.1

.lr.ph.split.us.split.us.us.us.1.preheader:       ; preds = %.lr.ph.us.us.1
  %115 = icmp eq i32 %109, 0
  br i1 %115, label %.split.us64.loopexit.unr-lcssa, label %.lr.ph.split.us.split.us.us.us.1.preheader.new

.lr.ph.split.us.split.us.us.us.1.preheader.new:   ; preds = %.lr.ph.split.us.split.us.us.us.1.preheader
  %116 = add nuw i32 %109, 1
  %unroll_iter111 = and i32 %116, -2
  br label %.lr.ph.split.us.split.us.us.us.1

.lr.ph.split.us.split.us56.us.preheader.1:        ; preds = %.lr.ph.us.us.1
  %.pre86 = load i64, ptr %.phi.trans.insert, align 8, !tbaa !9
  %117 = add nuw i32 %109, 1
  %min.iters.check = icmp ult i32 %109, 3
  br i1 %min.iters.check, label %.lr.ph.split.us.split.us56.us.1.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.split.us.split.us56.us.preheader.1
  %n.vec = and i32 %117, -4
  %118 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.pre86, i64 0
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %106, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %118, %vector.ph ], [ %119, %vector.body ]
  %vec.phi94 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %120, %vector.body ]
  %119 = add <2 x i64> %vec.phi, %broadcast.splat
  %120 = add <2 x i64> %vec.phi94, %broadcast.splat
  %index.next = add nuw i32 %index, 4
  %121 = icmp eq i32 %index.next, %n.vec
  br i1 %121, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %120, %119
  %122 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i32 %117, %n.vec
  br i1 %cmp.n, label %.split.us64.loopexit87, label %.lr.ph.split.us.split.us56.us.1.preheader

.lr.ph.split.us.split.us56.us.1.preheader:        ; preds = %middle.block, %.lr.ph.split.us.split.us56.us.preheader.1
  %.ph = phi i64 [ %.pre86, %.lr.ph.split.us.split.us56.us.preheader.1 ], [ %122, %middle.block ]
  %.03750.us.us53.us.1.ph = phi i32 [ 0, %.lr.ph.split.us.split.us56.us.preheader.1 ], [ %n.vec, %middle.block ]
  br label %.lr.ph.split.us.split.us56.us.1

.lr.ph.split.us.split.us56.us.1:                  ; preds = %.lr.ph.split.us.split.us56.us.1.preheader, %.lr.ph.split.us.split.us56.us.1
  %123 = phi i64 [ %124, %.lr.ph.split.us.split.us56.us.1 ], [ %.ph, %.lr.ph.split.us.split.us56.us.1.preheader ]
  %.03750.us.us53.us.1 = phi i32 [ %125, %.lr.ph.split.us.split.us56.us.1 ], [ %.03750.us.us53.us.1.ph, %.lr.ph.split.us.split.us56.us.1.preheader ]
  %124 = add nsw i64 %123, %106
  %125 = add nuw i32 %.03750.us.us53.us.1, 1
  %exitcond74.1.not = icmp eq i32 %.03750.us.us53.us.1, %109
  br i1 %exitcond74.1.not, label %.split.us64.loopexit87, label %.lr.ph.split.us.split.us56.us.1, !llvm.loop !19

.lr.ph.split.us.split.us.us.us.1:                 ; preds = %137, %.lr.ph.split.us.split.us.us.us.1.preheader.new
  %.03750.us.us.us.us.1 = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.1.preheader.new ], [ %138, %137 ]
  %niter112 = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.1.preheader.new ], [ %niter112.next.1, %137 ]
  %126 = and i32 %114, %.03750.us.us.us.us.1
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %.lr.ph.split.us.split.us.us.us.1.1, label %128

128:                                              ; preds = %.lr.ph.split.us.split.us.us.us.1
  %129 = load i64, ptr %81, align 8, !tbaa !9
  %130 = add nsw i64 %129, %106
  store i64 %130, ptr %81, align 8, !tbaa !9
  br label %.lr.ph.split.us.split.us.us.us.1.1

.lr.ph.split.us.split.us.us.us.1.1:               ; preds = %128, %.lr.ph.split.us.split.us.us.us.1
  %131 = or disjoint i32 %.03750.us.us.us.us.1, 1
  %132 = and i32 %114, %131
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %137, label %134

134:                                              ; preds = %.lr.ph.split.us.split.us.us.us.1.1
  %135 = load i64, ptr %81, align 8, !tbaa !9
  %136 = add nsw i64 %135, %106
  store i64 %136, ptr %81, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %134, %.lr.ph.split.us.split.us.us.us.1.1
  %138 = add nuw i32 %.03750.us.us.us.us.1, 2
  %niter112.next.1 = add i32 %niter112, 2
  %niter112.ncmp.1 = icmp eq i32 %niter112.next.1, %unroll_iter111
  br i1 %niter112.ncmp.1, label %.split.us64.loopexit.unr-lcssa, label %.lr.ph.split.us.split.us.us.us.1, !llvm.loop !14

.lr.ph.us.us:                                     ; preds = %88
  %139 = load i32, ptr %2, align 4
  %140 = sdiv i32 %139, 4
  %141 = icmp eq i32 %78, %140
  %142 = and i32 %139, 3
  %143 = shl nuw nsw i32 1, %142
  br i1 %141, label %.lr.ph.split.us.split.us.us.us.preheader, label %.lr.ph.split.us.split.us56.us.preheader

.lr.ph.split.us.split.us56.us.preheader:          ; preds = %.lr.ph.us.us
  %144 = icmp eq i32 %90, 0
  br i1 %144, label %.loopexit.us.us.loopexit95.unr-lcssa, label %.lr.ph.split.us.split.us56.us.preheader.new

.lr.ph.split.us.split.us56.us.preheader.new:      ; preds = %.lr.ph.split.us.split.us56.us.preheader
  %145 = add nuw i32 %90, 1
  %unroll_iter = and i32 %145, -2
  br label %.lr.ph.split.us.split.us56.us

.lr.ph.split.us.split.us.us.us.preheader:         ; preds = %.lr.ph.us.us
  %146 = icmp eq i32 %90, 0
  br i1 %146, label %.loopexit.us.us.loopexit.unr-lcssa, label %.lr.ph.split.us.split.us.us.us.preheader.new

.lr.ph.split.us.split.us.us.us.preheader.new:     ; preds = %.lr.ph.split.us.split.us.us.us.preheader
  %147 = add nuw i32 %90, 1
  %unroll_iter105 = and i32 %147, -2
  br label %.lr.ph.split.us.split.us.us.us

.lr.ph.split.us.split.us56.us:                    ; preds = %.lr.ph.split.us.split.us56.us, %.lr.ph.split.us.split.us56.us.preheader.new
  %.03750.us.us53.us = phi i32 [ 0, %.lr.ph.split.us.split.us56.us.preheader.new ], [ %159, %.lr.ph.split.us.split.us56.us ]
  %niter = phi i32 [ 0, %.lr.ph.split.us.split.us56.us.preheader.new ], [ %niter.next.1, %.lr.ph.split.us.split.us56.us ]
  %148 = icmp eq i32 %.03750.us.us53.us, %139
  %149 = zext i1 %148 to i64
  %150 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %149
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = add nsw i64 %151, %75
  store i64 %152, ptr %150, align 8, !tbaa !9
  %153 = or disjoint i32 %.03750.us.us53.us, 1
  %154 = icmp eq i32 %153, %139
  %155 = zext i1 %154 to i64
  %156 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %155
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = add nsw i64 %157, %75
  store i64 %158, ptr %156, align 8, !tbaa !9
  %159 = add nuw i32 %.03750.us.us53.us, 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 %.loopexit.us.us.loopexit95.unr-lcssa, label %.lr.ph.split.us.split.us56.us, !llvm.loop !14

.lr.ph.split.us.split.us.us.us:                   ; preds = %177, %.lr.ph.split.us.split.us.us.us.preheader.new
  %.03750.us.us.us.us = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.preheader.new ], [ %178, %177 ]
  %niter106 = phi i32 [ 0, %.lr.ph.split.us.split.us.us.us.preheader.new ], [ %niter106.next.1, %177 ]
  %160 = and i32 %143, %.03750.us.us.us.us
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %.lr.ph.split.us.split.us.us.us.1108, label %162

162:                                              ; preds = %.lr.ph.split.us.split.us.us.us
  %163 = icmp eq i32 %.03750.us.us.us.us, %139
  %164 = zext i1 %163 to i64
  %165 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = add nsw i64 %166, %75
  store i64 %167, ptr %165, align 8, !tbaa !9
  br label %.lr.ph.split.us.split.us.us.us.1108

.lr.ph.split.us.split.us.us.us.1108:              ; preds = %162, %.lr.ph.split.us.split.us.us.us
  %168 = or disjoint i32 %.03750.us.us.us.us, 1
  %169 = and i32 %143, %168
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %177, label %171

171:                                              ; preds = %.lr.ph.split.us.split.us.us.us.1108
  %172 = icmp eq i32 %168, %139
  %173 = zext i1 %172 to i64
  %174 = getelementptr inbounds [17 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 %indvars.iv.next80, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = add nsw i64 %175, %75
  store i64 %176, ptr %174, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %171, %.lr.ph.split.us.split.us.us.us.1108
  %178 = add nuw i32 %.03750.us.us.us.us, 2
  %niter106.next.1 = add i32 %niter106, 2
  %niter106.ncmp.1 = icmp eq i32 %niter106.next.1, %unroll_iter105
  br i1 %niter106.ncmp.1, label %.loopexit.us.us.loopexit.unr-lcssa, label %.lr.ph.split.us.split.us.us.us, !llvm.loop !14

._crit_edge:                                      ; preds = %..preheader48_crit_edge.us.preheader, %1
  %.036.lcssa = phi i64 [ 0, %1 ], [ %14, %..preheader48_crit_edge.us.preheader ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  ret i64 %.036.lcssa
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !12, !18, !17}


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