; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dlarzt)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c_b8 = external hidden global double, align 8
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dlarzt_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %30, ptr %21, align 4, !tbaa !9
  %31 = load i32, ptr %21, align 4, !tbaa !9
  %32 = mul nsw i32 %31, 1
  %33 = add nsw i32 1, %32
  store i32 %33, ptr %22, align 4, !tbaa !9
  %34 = load i32, ptr %22, align 4, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = sext i32 %34 to i64
  %37 = sub i64 0, %36
  %38 = getelementptr inbounds double, ptr %35, i64 %37
  store ptr %38, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i32 -1
  store ptr %40, ptr %16, align 8, !tbaa !5
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %42, ptr %19, align 4, !tbaa !9
  %43 = load i32, ptr %19, align 4, !tbaa !9
  %44 = mul nsw i32 %43, 1
  %45 = add nsw i32 1, %44
  store i32 %45, ptr %20, align 4, !tbaa !9
  %46 = load i32, ptr %20, align 4, !tbaa !9
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  %48 = sext i32 %46 to i64
  %49 = sub i64 0, %48
  %50 = getelementptr inbounds double, ptr %47, i64 %49
  store ptr %50, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %25, align 4, !tbaa !9
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call i32 @lsame_(ptr noundef %51, ptr noundef @.str)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %55, label %54

54:                                               ; preds = %9
  store i32 -1, ptr %25, align 4, !tbaa !9
  br label %61

55:                                               ; preds = %9
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call i32 @lsame_(ptr noundef %56, ptr noundef @.str.1)
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 -2, ptr %25, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %59, %55
  br label %61

61:                                               ; preds = %60, %54
  %62 = load i32, ptr %25, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = load i32, ptr %25, align 4, !tbaa !9
  %66 = sub nsw i32 0, %65
  store i32 %66, ptr %23, align 4, !tbaa !9
  %67 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %28, align 4
  br label %186

68:                                               ; preds = %61
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  store i32 %70, ptr %26, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %182, %68
  %72 = load i32, ptr %26, align 4, !tbaa !9
  %73 = icmp sge i32 %72, 1
  br i1 %73, label %74, label %185

74:                                               ; preds = %71
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load i32, ptr %26, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fcmp oeq double %79, 0.000000e+00
  br i1 %80, label %81, label %102

81:                                               ; preds = %74
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  store i32 %83, ptr %23, align 4, !tbaa !9
  %84 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %84, ptr %27, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %98, %81
  %86 = load i32, ptr %27, align 4, !tbaa !9
  %87 = load i32, ptr %23, align 4, !tbaa !9
  %88 = icmp sle i32 %86, %87
  br i1 %88, label %89, label %101

89:                                               ; preds = %85
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = load i32, ptr %27, align 4, !tbaa !9
  %92 = load i32, ptr %26, align 4, !tbaa !9
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = mul nsw i32 %92, %93
  %95 = add nsw i32 %91, %94
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %90, i64 %96
  store double 0.000000e+00, ptr %97, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %89
  %99 = load i32, ptr %27, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %27, align 4, !tbaa !9
  br label %85, !llvm.loop !13

101:                                              ; preds = %85
  br label %181

102:                                              ; preds = %74
  %103 = load i32, ptr %26, align 4, !tbaa !9
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp slt i32 %103, %105
  br i1 %106, label %107, label %167

107:                                              ; preds = %102
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load i32, ptr %26, align 4, !tbaa !9
  %111 = sub nsw i32 %109, %110
  store i32 %111, ptr %23, align 4, !tbaa !9
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = load i32, ptr %26, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !11
  %117 = fneg double %116
  store double %117, ptr %24, align 8, !tbaa !11
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i32, ptr %26, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  %122 = load i32, ptr %21, align 4, !tbaa !9
  %123 = add nsw i32 %121, %122
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %119, i64 %124
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = load i32, ptr %26, align 4, !tbaa !9
  %129 = load i32, ptr %21, align 4, !tbaa !9
  %130 = add nsw i32 %128, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %127, i64 %131
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = load i32, ptr %26, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  %137 = load i32, ptr %26, align 4, !tbaa !9
  %138 = load i32, ptr %19, align 4, !tbaa !9
  %139 = mul nsw i32 %137, %138
  %140 = add nsw i32 %136, %139
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %134, i64 %141
  call void @dgemv_(ptr noundef @.str.3, ptr noundef %23, ptr noundef %118, ptr noundef %24, ptr noundef %125, ptr noundef %126, ptr noundef %132, ptr noundef %133, ptr noundef @c_b8, ptr noundef %142, ptr noundef @c__1)
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = sub nsw i32 %144, %145
  store i32 %146, ptr %23, align 4, !tbaa !9
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = load i32, ptr %26, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  %150 = load i32, ptr %26, align 4, !tbaa !9
  %151 = add nsw i32 %150, 1
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = mul nsw i32 %151, %152
  %154 = add nsw i32 %149, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %147, i64 %155
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = load i32, ptr %26, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = load i32, ptr %19, align 4, !tbaa !9
  %163 = mul nsw i32 %161, %162
  %164 = add nsw i32 %160, %163
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %158, i64 %165
  call void @dtrmv_(ptr noundef @.str.4, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef %23, ptr noundef %156, ptr noundef %157, ptr noundef %166, ptr noundef @c__1)
  br label %167

167:                                              ; preds = %107, %102
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = load i32, ptr %26, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load i32, ptr %26, align 4, !tbaa !9
  %175 = load i32, ptr %26, align 4, !tbaa !9
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = mul nsw i32 %175, %176
  %178 = add nsw i32 %174, %177
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %173, i64 %179
  store double %172, ptr %180, align 8, !tbaa !11
  br label %181

181:                                              ; preds = %167, %101
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %26, align 4, !tbaa !9
  br label %71, !llvm.loop !15

185:                                              ; preds = %71
  store i32 1, ptr %28, align 4
  br label %186

186:                                              ; preds = %185, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  ret void
}

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

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

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

declare void @dgemv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @dtrmv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; 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 = { 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 = !{!"int", !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}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c_b8 = external hidden global double, align 8
@c__1 = external hidden global i32, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dlarzt_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %narrow = xor i32 %12, -1
  %13 = sext i32 %narrow to i64
  %14 = getelementptr inbounds double, ptr %4, i64 %13
  %15 = getelementptr inbounds i8, ptr %6, i64 -8
  %16 = load i32, ptr %8, align 4, !tbaa !5
  %narrow64 = xor i32 %16, -1
  %17 = sext i32 %narrow64 to i64
  %18 = getelementptr inbounds double, ptr %7, i64 %17
  %19 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %.thread, label %20

20:                                               ; preds = %9
  %21 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %.not65.not = icmp eq i32 %21, 0
  br i1 %.not65.not, label %.thread, label %23

.thread:                                          ; preds = %9, %20
  %.062.neg71 = phi i32 [ 2, %20 ], [ 1, %9 ]
  store i32 %.062.neg71, ptr %10, align 4, !tbaa !5
  %22 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %10, i32 noundef 6) #4
  br label %.loopexit72

23:                                               ; preds = %20
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph77, label %.loopexit72

.lr.ph77:                                         ; preds = %23
  %26 = add i32 %16, 1
  %27 = shl nsw i64 %17, 3
  %scevgep = getelementptr i8, ptr %7, i64 %27
  %28 = mul i32 %24, %26
  %29 = zext nneg i32 %24 to i64
  %30 = sext i32 %12 to i64
  %31 = sext i32 %16 to i64
  %wide.trip.count = zext nneg i32 %24 to i64
  %invariant.gep = getelementptr double, ptr %14, i64 %30
  %invariant.gep88 = getelementptr double, ptr %14, i64 %30
  br label %32

32:                                               ; preds = %.lr.ph77, %.loopexit
  %indvars.iv82 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next83, %.loopexit ]
  %indvars.iv = phi i64 [ %29, %.lr.ph77 ], [ %indvars.iv.next, %.loopexit ]
  %33 = trunc nuw nsw i64 %indvars.iv82 to i32
  %34 = mul i32 %narrow64, %33
  %35 = add i32 %28, %34
  %36 = sext i32 %35 to i64
  %37 = shl nsw i64 %36, 3
  %scevgep78 = getelementptr i8, ptr %scevgep, i64 %37
  %38 = sub i32 %33, %24
  %39 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = fcmp oeq double %40, 0.000000e+00
  %42 = load i32, ptr %3, align 4, !tbaa !5
  br i1 %41, label %43, label %49

43:                                               ; preds = %32
  store i32 %42, ptr %10, align 4, !tbaa !5
  %44 = sext i32 %42 to i64
  %.not6773 = icmp sgt i64 %indvars.iv, %44
  br i1 %.not6773, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %43
  %45 = add i32 %42, %38
  %46 = zext i32 %45 to i64
  %47 = shl nuw nsw i64 %46, 3
  %48 = add nuw nsw i64 %47, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep78, i8 0, i64 %48, i1 false), !tbaa !9
  br label %.loopexit

49:                                               ; preds = %32
  %50 = sext i32 %42 to i64
  %51 = icmp slt i64 %indvars.iv, %50
  %52 = trunc nuw nsw i64 %indvars.iv to i32
  br i1 %51, label %53, label %._crit_edge

53:                                               ; preds = %49
  %54 = sub nsw i32 %42, %52
  store i32 %54, ptr %10, align 4, !tbaa !5
  %55 = fneg double %40
  store double %55, ptr %11, align 8, !tbaa !9
  %56 = add nuw nsw i64 %indvars.iv, 1
  %gep = getelementptr double, ptr %invariant.gep, i64 %56
  %gep89 = getelementptr double, ptr %invariant.gep88, i64 %indvars.iv
  %57 = mul nsw i64 %indvars.iv, %31
  %58 = getelementptr double, ptr %18, i64 %56
  %59 = getelementptr double, ptr %58, i64 %57
  call void @dgemv_(ptr noundef nonnull @.str.3, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull %11, ptr noundef %gep, ptr noundef nonnull %5, ptr noundef %gep89, ptr noundef nonnull %5, ptr noundef nonnull @c_b8, ptr noundef %59, ptr noundef nonnull @c__1) #4
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sub nsw i32 %60, %52
  store i32 %61, ptr %10, align 4, !tbaa !5
  %62 = trunc nsw i64 %56 to i32
  %63 = mul i32 %26, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %18, i64 %64
  call void @dtrmv_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.5, ptr noundef nonnull %10, ptr noundef %65, ptr noundef nonnull %8, ptr noundef %59, ptr noundef nonnull @c__1) #4
  %.pre = load double, ptr %39, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %49, %53
  %66 = phi double [ %.pre, %53 ], [ %40, %49 ]
  %67 = mul i32 %26, %52
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %18, i64 %68
  store double %66, ptr %69, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %43, %._crit_edge
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit72, label %32, !llvm.loop !11

.loopexit72:                                      ; preds = %.loopexit, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  ret void
}

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

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

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

declare void @dgemv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @dtrmv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !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"}


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