; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2020-21/Dec/Gold/genomics.ll (Z5checki)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array" = type { [4 x %"struct.std::array.12"] }
%"struct.std::array.12" = type { [17 x %struct.mi] }
%struct.mi = type { i32 }

@dp = external dso_local global %"struct.std::array", align 4
@DP = external dso_local global %"struct.std::array", align 4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5checki(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 i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %68, %1
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 4
  br i1 %9, label %11, label %10

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

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

12:                                               ; preds = %50, %11
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 4
  br i1 %14, label %16, label %15

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

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

17:                                               ; preds = %46, %16
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 4
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %17
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp ne i32 %22, %23
  br i1 %24, label %25, label %45

25:                                               ; preds = %21
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %27) #3
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = mul nsw i32 4, %29
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = add nsw i32 %30, %31
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %28, i64 noundef %33) #3
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %36) #3
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = mul nsw i32 4, %38
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = add nsw i32 %39, %40
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %37, i64 noundef %42) #3
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %45

45:                                               ; preds = %25, %21
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %6, align 4, !tbaa !5
  br label %17, !llvm.loop !9

49:                                               ; preds = %20
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !5
  br label %12, !llvm.loop !11

53:                                               ; preds = %15
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %55) #3
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %56, i64 noundef 16) #3
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %59) #3
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = mul nsw i32 4, %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %62, %63
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %60, i64 noundef %65) #3
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %57)
  br label %68

68:                                               ; preds = %53
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %3, align 4, !tbaa !5
  br label %7, !llvm.loop !12

71:                                               ; preds = %10
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272), i64 noundef) #2 align 2

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

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

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 = { 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::array" = type { [4 x %"struct.std::array.12"] }
%"struct.std::array.12" = type { [17 x %struct.mi] }
%struct.mi = type { i32 }

@dp = external dso_local global %"struct.std::array", align 4
@DP = external dso_local global %"struct.std::array", align 4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5checki(i32 noundef %0) local_unnamed_addr #0 {
  %2 = mul nsw i32 %0, 5
  %3 = sext i32 %2 to i64
  %4 = sext i32 %0 to i64
  %.not = icmp eq i32 %0, 0
  %.not.1 = icmp eq i32 %0, 1
  %.not.2 = icmp eq i32 %0, 2
  %.not.3 = icmp eq i32 %0, 3
  %5 = add nsw i64 %4, 4
  %6 = add nsw i64 %4, 8
  %7 = add nsw i64 %4, 12
  br label %.preheader21

.preheader21:                                     ; preds = %1, %93
  %indvars.iv27 = phi i64 [ 0, %1 ], [ %indvars.iv.next28, %93 ]
  br i1 %.not, label %.thread, label %9

8:                                                ; preds = %93
  ret void

9:                                                ; preds = %.preheader21
  %10 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %10, i64 noundef 0) #1
  %12 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %12, i64 noundef %4) #1
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %11)
  br i1 %.not.1, label %.thread32, label %.thread

.thread:                                          ; preds = %.preheader21, %9
  %15 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %16 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %15, i64 noundef 1) #1
  %17 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %17, i64 noundef %4) #1
  %19 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %16)
  br i1 %.not.2, label %.thread34, label %.thread32

.thread32:                                        ; preds = %9, %.thread
  %20 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %20, i64 noundef 2) #1
  %22 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %22, i64 noundef %4) #1
  %24 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %21)
  br i1 %.not.3, label %.preheader.1, label %.thread34

.thread34:                                        ; preds = %.thread, %.thread32
  %25 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %26 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %25, i64 noundef 3) #1
  %27 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %27, i64 noundef %4) #1
  %29 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %26)
  br label %.preheader.1

.preheader.1:                                     ; preds = %.thread34, %.thread32
  br i1 %.not, label %.thread.1, label %30

30:                                               ; preds = %.preheader.1
  %31 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %31, i64 noundef 4) #1
  %33 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %33, i64 noundef %5) #1
  %35 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %32)
  br i1 %.not.1, label %.thread32.1, label %.thread.1

.thread.1:                                        ; preds = %30, %.preheader.1
  %36 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %36, i64 noundef 5) #1
  %38 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %39 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %38, i64 noundef %5) #1
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %37)
  br i1 %.not.2, label %.thread34.1, label %.thread32.1

.thread32.1:                                      ; preds = %.thread.1, %30
  %41 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %41, i64 noundef 6) #1
  %43 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %43, i64 noundef %5) #1
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %42)
  br i1 %.not.3, label %.preheader.2, label %.thread34.1

.thread34.1:                                      ; preds = %.thread32.1, %.thread.1
  %46 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %46, i64 noundef 7) #1
  %48 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %48, i64 noundef %5) #1
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %47)
  br label %.preheader.2

.preheader.2:                                     ; preds = %.thread34.1, %.thread32.1
  br i1 %.not, label %.thread.2, label %51

51:                                               ; preds = %.preheader.2
  %52 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %52, i64 noundef 8) #1
  %54 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %55 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %54, i64 noundef %6) #1
  %56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %53)
  br i1 %.not.1, label %.thread32.2, label %.thread.2

.thread.2:                                        ; preds = %51, %.preheader.2
  %57 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %57, i64 noundef 9) #1
  %59 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %59, i64 noundef %6) #1
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %58)
  br i1 %.not.2, label %.thread34.2, label %.thread32.2

.thread32.2:                                      ; preds = %.thread.2, %51
  %62 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %62, i64 noundef 10) #1
  %64 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %65 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %64, i64 noundef %6) #1
  %66 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %63)
  br i1 %.not.3, label %.preheader.3, label %.thread34.2

.thread34.2:                                      ; preds = %.thread32.2, %.thread.2
  %67 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %68 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %67, i64 noundef 11) #1
  %69 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %69, i64 noundef %6) #1
  %71 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %68)
  br label %.preheader.3

.preheader.3:                                     ; preds = %.thread34.2, %.thread32.2
  br i1 %.not, label %.thread.3, label %72

72:                                               ; preds = %.preheader.3
  %73 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %74 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %73, i64 noundef 12) #1
  %75 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %75, i64 noundef %7) #1
  %77 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %76, ptr noundef nonnull align 4 dereferenceable(4) %74)
  br i1 %.not.1, label %.thread32.3, label %.thread.3

.thread.3:                                        ; preds = %72, %.preheader.3
  %78 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %79 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %78, i64 noundef 13) #1
  %80 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %81 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %80, i64 noundef %7) #1
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %81, ptr noundef nonnull align 4 dereferenceable(4) %79)
  br i1 %.not.2, label %.thread34.3, label %.thread32.3

.thread32.3:                                      ; preds = %.thread.3, %72
  %83 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %83, i64 noundef 14) #1
  %85 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %86 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %85, i64 noundef %7) #1
  %87 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %86, ptr noundef nonnull align 4 dereferenceable(4) %84)
  br i1 %.not.3, label %93, label %.thread34.3

.thread34.3:                                      ; preds = %.thread32.3, %.thread.3
  %88 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %89 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %88, i64 noundef 15) #1
  %90 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %91 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %90, i64 noundef %7) #1
  %92 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %91, ptr noundef nonnull align 4 dereferenceable(4) %89)
  br label %93

93:                                               ; preds = %.thread34.3, %.thread32.3
  %94 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @dp, i64 noundef %indvars.iv27) #1
  %95 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %94, i64 noundef 16) #1
  %96 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272) @DP, i64 noundef %indvars.iv27) #1
  %97 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68) %96, i64 noundef %3) #1
  %98 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %95)
  %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1
  %exitcond30.not = icmp eq i64 %indvars.iv.next28, 4
  br i1 %exitcond30.not, label %8, label %.preheader21, !llvm.loop !5
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(68) ptr @_ZNSt5arrayIS_I2miLm17EELm4EEixEm(ptr noundef nonnull align 4 dereferenceable(272), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI2miLm17EEixEm(ptr noundef nonnull align 4 dereferenceable(68), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN2mipLERKS_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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