; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (dptts2)

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

; Function Attrs: nounwind uwtable
define dso_local i32 @dptts2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i32 -1
  store ptr %23, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i32 -1
  store ptr %25, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  %27 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %27, ptr %14, align 8, !tbaa !9
  %28 = load i64, ptr %14, align 8, !tbaa !9
  %29 = add nsw i64 1, %28
  store i64 %29, ptr %15, align 8, !tbaa !9
  %30 = load i64, ptr %15, align 8, !tbaa !9
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = sub i64 0, %30
  %33 = getelementptr inbounds double, ptr %31, i64 %32
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = icmp sle i64 %35, 1
  br i1 %36, label %37, label %53

37:                                               ; preds = %6
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = icmp eq i64 %39, 1
  br i1 %40, label %41, label %52

41:                                               ; preds = %37
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 1
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = fdiv double 1.000000e+00, %44
  store double %45, ptr %18, align 8, !tbaa !11
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load i64, ptr %15, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = call i32 @f2c_dscal(ptr noundef %46, ptr noundef %18, ptr noundef %49, ptr noundef %50)
  br label %52

52:                                               ; preds = %41, %37
  store i32 0, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %161

53:                                               ; preds = %6
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  store i64 %55, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %157, %53
  %57 = load i64, ptr %20, align 8, !tbaa !9
  %58 = load i64, ptr %16, align 8, !tbaa !9
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %60, label %160

60:                                               ; preds = %56
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  store i64 %62, ptr %17, align 8, !tbaa !9
  store i64 2, ptr %19, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %92, %60
  %64 = load i64, ptr %19, align 8, !tbaa !9
  %65 = load i64, ptr %17, align 8, !tbaa !9
  %66 = icmp sle i64 %64, %65
  br i1 %66, label %67, label %95

67:                                               ; preds = %63
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load i64, ptr %19, align 8, !tbaa !9
  %70 = sub nsw i64 %69, 1
  %71 = load i64, ptr %20, align 8, !tbaa !9
  %72 = load i64, ptr %14, align 8, !tbaa !9
  %73 = mul nsw i64 %71, %72
  %74 = add nsw i64 %70, %73
  %75 = getelementptr inbounds double, ptr %68, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i64, ptr %19, align 8, !tbaa !9
  %79 = sub nsw i64 %78, 1
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i64, ptr %19, align 8, !tbaa !9
  %84 = load i64, ptr %20, align 8, !tbaa !9
  %85 = load i64, ptr %14, align 8, !tbaa !9
  %86 = mul nsw i64 %84, %85
  %87 = add nsw i64 %83, %86
  %88 = getelementptr inbounds double, ptr %82, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fneg double %76
  %91 = call double @llvm.fmuladd.f64(double %90, double %81, double %89)
  store double %91, ptr %88, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %67
  %93 = load i64, ptr %19, align 8, !tbaa !9
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %19, align 8, !tbaa !9
  br label %63, !llvm.loop !13

95:                                               ; preds = %63
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = load i64, ptr %20, align 8, !tbaa !9
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = mul nsw i64 %104, %105
  %107 = add nsw i64 %103, %106
  %108 = getelementptr inbounds double, ptr %101, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !11
  %110 = fdiv double %109, %100
  store double %110, ptr %108, align 8, !tbaa !11
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = sub nsw i64 %112, 1
  store i64 %113, ptr %19, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %153, %95
  %115 = load i64, ptr %19, align 8, !tbaa !9
  %116 = icmp sge i64 %115, 1
  br i1 %116, label %117, label %156

117:                                              ; preds = %114
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i64, ptr %19, align 8, !tbaa !9
  %120 = load i64, ptr %20, align 8, !tbaa !9
  %121 = load i64, ptr %14, align 8, !tbaa !9
  %122 = mul nsw i64 %120, %121
  %123 = add nsw i64 %119, %122
  %124 = getelementptr inbounds double, ptr %118, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load i64, ptr %19, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fdiv double %125, %129
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i64, ptr %19, align 8, !tbaa !9
  %133 = add nsw i64 %132, 1
  %134 = load i64, ptr %20, align 8, !tbaa !9
  %135 = load i64, ptr %14, align 8, !tbaa !9
  %136 = mul nsw i64 %134, %135
  %137 = add nsw i64 %133, %136
  %138 = getelementptr inbounds double, ptr %131, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = load i64, ptr %19, align 8, !tbaa !9
  %142 = getelementptr inbounds double, ptr %140, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = fneg double %139
  %145 = call double @llvm.fmuladd.f64(double %144, double %143, double %130)
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = load i64, ptr %19, align 8, !tbaa !9
  %148 = load i64, ptr %20, align 8, !tbaa !9
  %149 = load i64, ptr %14, align 8, !tbaa !9
  %150 = mul nsw i64 %148, %149
  %151 = add nsw i64 %147, %150
  %152 = getelementptr inbounds double, ptr %146, i64 %151
  store double %145, ptr %152, align 8, !tbaa !11
  br label %153

153:                                              ; preds = %117
  %154 = load i64, ptr %19, align 8, !tbaa !9
  %155 = add nsw i64 %154, -1
  store i64 %155, ptr %19, align 8, !tbaa !9
  br label %114, !llvm.loop !15

156:                                              ; preds = %114
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %20, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %20, align 8, !tbaa !9
  br label %56, !llvm.loop !16

160:                                              ; preds = %56
  store i32 0, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %161

161:                                              ; preds = %160, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %162 = load i32, ptr %7, align 4
  ret i32 %162
}

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

declare i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dptts2_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %8 = getelementptr inbounds i8, ptr %2, i64 -8
  %9 = getelementptr inbounds i8, ptr %3, i64 -8
  %10 = load i64, ptr %5, align 8, !tbaa !5
  %11 = xor i64 %10, -1
  %12 = getelementptr inbounds double, ptr %4, i64 %11
  %13 = load i64, ptr %0, align 8, !tbaa !5
  %14 = icmp slt i64 %13, 2
  br i1 %14, label %15, label %21

15:                                               ; preds = %6
  %16 = icmp eq i64 %13, 1
  br i1 %16, label %17, label %.loopexit

17:                                               ; preds = %15
  %18 = load double, ptr %2, align 8, !tbaa !9
  %19 = fdiv double 1.000000e+00, %18
  store double %19, ptr %7, align 8, !tbaa !9
  %20 = call i32 @f2c_dscal(ptr noundef %1, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %5) #4
  br label %.loopexit

21:                                               ; preds = %6
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %.not72 = icmp slt i64 %22, 1
  br i1 %.not72, label %.loopexit, label %.preheader.us74.preheader

.preheader.us74.preheader:                        ; preds = %21
  %23 = getelementptr inbounds double, ptr %8, i64 %13
  %24 = getelementptr double, ptr %12, i64 %13
  %invariant.gep = getelementptr i8, ptr %3, i64 -16
  %25 = add nsw i64 %13, -1
  %26 = add nsw i64 %13, -2
  %xtraiter = and i64 %25, 1
  %27 = icmp eq i64 %26, 0
  %unroll_iter = and i64 %25, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter88 = and i64 %25, 1
  %lcmp.mod89.not = icmp eq i64 %xtraiter88, 0
  %.1.us78.prol = add nsw i64 %13, -1
  %28 = getelementptr inbounds double, ptr %8, i64 %.1.us78.prol
  %29 = getelementptr inbounds double, ptr %9, i64 %.1.us78.prol
  %30 = icmp eq i64 %26, 0
  br label %.preheader.us74

.preheader.us74:                                  ; preds = %.preheader.us74.preheader, %._crit_edge71.us84
  %.073.us75 = phi i64 [ %75, %._crit_edge71.us84 ], [ 1, %.preheader.us74.preheader ]
  %31 = mul nsw i64 %.073.us75, %10
  %invariant.gep.us = getelementptr double, ptr %12, i64 %31
  %gep.us.phi.trans.insert = getelementptr i8, ptr %invariant.gep.us, i64 8
  %.pre = load double, ptr %gep.us.phi.trans.insert, align 8, !tbaa !9
  br i1 %27, label %._crit_edge.us.unr-lcssa, label %.preheader.us74.new

.preheader.us74.new:                              ; preds = %.preheader.us74, %.preheader.us74.new
  %32 = phi double [ %41, %.preheader.us74.new ], [ %.pre, %.preheader.us74 ]
  %.05661.us = phi i64 [ %42, %.preheader.us74.new ], [ 2, %.preheader.us74 ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us74.new ], [ 0, %.preheader.us74 ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %.05661.us
  %33 = load double, ptr %gep, align 8, !tbaa !9
  %gep63.us = getelementptr double, ptr %invariant.gep.us, i64 %.05661.us
  %34 = load double, ptr %gep63.us, align 8, !tbaa !9
  %35 = fneg double %32
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %33, double %34)
  store double %36, ptr %gep63.us, align 8, !tbaa !9
  %37 = or disjoint i64 %.05661.us, 1
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %37
  %38 = load double, ptr %gep.1, align 8, !tbaa !9
  %gep63.us.1 = getelementptr double, ptr %invariant.gep.us, i64 %37
  %39 = load double, ptr %gep63.us.1, align 8, !tbaa !9
  %40 = fneg double %36
  %41 = tail call double @llvm.fmuladd.f64(double %40, double %38, double %39)
  store double %41, ptr %gep63.us.1, align 8, !tbaa !9
  %42 = add nuw i64 %.05661.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader.us74.new, !llvm.loop !11

._crit_edge.us.new:                               ; preds = %.prol.loopexit, %._crit_edge.us.new
  %43 = phi double [ %59, %._crit_edge.us.new ], [ %.unr90, %.prol.loopexit ]
  %.1.in68.us77 = phi i64 [ %.1.us78.1, %._crit_edge.us.new ], [ %.1.in68.us77.unr, %.prol.loopexit ]
  %.1.us78 = add nsw i64 %.1.in68.us77, -1
  %gep65.us79 = getelementptr double, ptr %invariant.gep.us, i64 %.1.us78
  %44 = load double, ptr %gep65.us79, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %8, i64 %.1.us78
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = fdiv double %44, %46
  %48 = getelementptr inbounds double, ptr %9, i64 %.1.us78
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fneg double %43
  %51 = tail call double @llvm.fmuladd.f64(double %50, double %49, double %47)
  store double %51, ptr %gep65.us79, align 8, !tbaa !9
  %.1.us78.1 = add nsw i64 %.1.in68.us77, -2
  %gep65.us79.1 = getelementptr double, ptr %invariant.gep.us, i64 %.1.us78.1
  %52 = load double, ptr %gep65.us79.1, align 8, !tbaa !9
  %53 = getelementptr inbounds double, ptr %8, i64 %.1.us78.1
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fdiv double %52, %54
  %56 = getelementptr inbounds double, ptr %9, i64 %.1.us78.1
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fneg double %51
  %59 = tail call double @llvm.fmuladd.f64(double %58, double %57, double %55)
  store double %59, ptr %gep65.us79.1, align 8, !tbaa !9
  %60 = icmp sgt i64 %.1.in68.us77, 3
  br i1 %60, label %._crit_edge.us.new, label %._crit_edge71.us84, !llvm.loop !13

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us74.new, %.preheader.us74
  %.unr = phi double [ %.pre, %.preheader.us74 ], [ %41, %.preheader.us74.new ]
  %.05661.us.unr = phi i64 [ 2, %.preheader.us74 ], [ %42, %.preheader.us74.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %gep.epil = getelementptr double, ptr %invariant.gep, i64 %.05661.us.unr
  %61 = load double, ptr %gep.epil, align 8, !tbaa !9
  %gep63.us.epil = getelementptr double, ptr %invariant.gep.us, i64 %.05661.us.unr
  %62 = load double, ptr %gep63.us.epil, align 8, !tbaa !9
  %63 = fneg double %.unr
  %64 = tail call double @llvm.fmuladd.f64(double %63, double %61, double %62)
  store double %64, ptr %gep63.us.epil, align 8, !tbaa !9
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %65 = load double, ptr %23, align 8, !tbaa !9
  %66 = getelementptr double, ptr %24, i64 %31
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = fdiv double %67, %65
  store double %68, ptr %66, align 8, !tbaa !9
  br i1 %lcmp.mod89.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %._crit_edge.us
  %gep65.us79.prol = getelementptr double, ptr %invariant.gep.us, i64 %.1.us78.prol
  %69 = load double, ptr %gep65.us79.prol, align 8, !tbaa !9
  %70 = load double, ptr %28, align 8, !tbaa !9
  %71 = fdiv double %69, %70
  %72 = load double, ptr %29, align 8, !tbaa !9
  %73 = fneg double %68
  %74 = tail call double @llvm.fmuladd.f64(double %73, double %72, double %71)
  store double %74, ptr %gep65.us79.prol, align 8, !tbaa !9
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %._crit_edge.us
  %.unr90 = phi double [ %68, %._crit_edge.us ], [ %74, %.prol.loopexit.unr-lcssa ]
  %.1.in68.us77.unr = phi i64 [ %13, %._crit_edge.us ], [ %.1.us78.prol, %.prol.loopexit.unr-lcssa ]
  br i1 %30, label %._crit_edge71.us84, label %._crit_edge.us.new

._crit_edge71.us84:                               ; preds = %._crit_edge.us.new, %.prol.loopexit
  %75 = add nuw i64 %.073.us75, 1
  %exitcond86.not = icmp eq i64 %.073.us75, %22
  br i1 %exitcond86.not, label %.loopexit, label %.preheader.us74, !llvm.loop !14

.loopexit:                                        ; preds = %._crit_edge71.us84, %21, %15, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret i32 0
}

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

declare i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

attributes #0 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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