; LLVM IR from VT-ICAM/cfem :: cfem (cf_local_mass)

; 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.cf_ref_arrays_s = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%struct.cf_local_element_s = type { [3 x double], [3 x double], [4 x double], [2 x double], double, double, ptr }

@__c_N = external dso_local global i8, align 1
@__c_T = external dso_local global i8, align 1
@__d_zero = external dso_local global double, align 8
@__d_one = external dso_local global double, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @cf_diagonal_multiply(i32 noundef, i32 noundef, ptr noundef nonnull align 8, ptr noundef nonnull align 8) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ipow(i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @cf_supg_test_function_value(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @cf_local_mass(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = call i32 @ipow(i32 noundef %20, i32 noundef 2)
  %22 = zext i32 %21 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !13
  store i32 %25, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %29 = load i32, ptr %10, align 4, !tbaa !14
  %30 = load i32, ptr %11, align 4, !tbaa !14
  %31 = mul nsw i32 %29, %30
  store i32 %31, ptr %12, align 4, !tbaa !14
  %32 = load i32, ptr %12, align 4, !tbaa !14
  %33 = zext i32 %32 to i64
  %34 = call ptr @llvm.stacksave.p0()
  store ptr %34, ptr %13, align 8
  %35 = alloca double, i64 %33, align 16
  store i64 %33, ptr %14, align 8
  %36 = load i32, ptr %12, align 4, !tbaa !14
  %37 = zext i32 %36 to i64
  %38 = alloca double, i64 %37, align 16
  store i64 %37, ptr %15, align 8
  %39 = load i32, ptr %10, align 4, !tbaa !14
  %40 = zext i32 %39 to i64
  %41 = alloca double, i64 %40, align 16
  store i64 %40, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !14
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %42, i32 0, i32 5
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = load i32, ptr %12, align 4, !tbaa !14
  %46 = sext i32 %45 to i64
  %47 = mul i64 8, %46
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 8 %44, i64 %47, i1 false)
  store i32 0, ptr %9, align 4, !tbaa !14
  br label %48

48:                                               ; preds = %67, %4
  %49 = load i32, ptr %9, align 4, !tbaa !14
  %50 = load i32, ptr %10, align 4, !tbaa !14
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %70

52:                                               ; preds = %48
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = load i32, ptr %9, align 4, !tbaa !14
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !17
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.cf_local_element_s, ptr %60, i32 0, i32 4
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = fmul double %59, %62
  %64 = load i32, ptr %9, align 4, !tbaa !14
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %41, i64 %65
  store double %63, ptr %66, align 8, !tbaa !17
  br label %67

67:                                               ; preds = %52
  %68 = load i32, ptr %9, align 4, !tbaa !14
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !14
  br label %48, !llvm.loop !20

70:                                               ; preds = %48
  %71 = load i32, ptr %11, align 4, !tbaa !14
  %72 = load i32, ptr %10, align 4, !tbaa !14
  call void @cf_diagonal_multiply(i32 noundef %71, i32 noundef %72, ptr noundef %38, ptr noundef %41)
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %80, label %75

75:                                               ; preds = %70
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.cf_local_element_s, ptr %76, i32 0, i32 5
  %78 = load double, ptr %77, align 8, !tbaa !22
  %79 = fcmp oeq double %78, 0.000000e+00
  br i1 %79, label %80, label %85

80:                                               ; preds = %75, %70
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.cf_ref_arrays_s, ptr %81, i32 0, i32 5
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  call void @dgemm_(ptr noundef @__c_T, ptr noundef @__c_N, ptr noundef %11, ptr noundef %11, ptr noundef %10, ptr noundef @__d_one, ptr noundef %38, ptr noundef %10, ptr noundef %83, ptr noundef %10, ptr noundef @__d_zero, ptr noundef %84, ptr noundef %11)
  br label %90

85:                                               ; preds = %75
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf_supg_test_function_value(ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %35)
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  call void @dgemm_(ptr noundef @__c_T, ptr noundef @__c_N, ptr noundef %11, ptr noundef %11, ptr noundef %10, ptr noundef @__d_one, ptr noundef %38, ptr noundef %10, ptr noundef %35, ptr noundef %10, ptr noundef @__d_zero, ptr noundef %89, ptr noundef %11)
  br label %90

90:                                               ; preds = %85, %80
  %91 = load i32, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %92 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %92)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %91
}

declare void @dgemm_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { 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, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 24}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !12, i64 96}
!19 = !{!"", !7, i64 0, !7, i64 24, !7, i64 48, !7, i64 80, !12, i64 96, !12, i64 104, !6, i64 112}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!19, !12, i64 104}


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

@__c_N = external dso_local global i8, align 1
@__c_T = external dso_local global i8, align 1
@__d_zero = external dso_local global double, align 8
@__d_one = external dso_local global double, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @cf_diagonal_multiply(i32 noundef, i32 noundef, ptr noundef nonnull align 8, ptr noundef nonnull align 8) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ipow(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @cf_supg_test_function_value(ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cf_local_mass(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = tail call i32 @ipow(i32 noundef %8, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %10 = load i32, ptr %0, align 8, !tbaa !12
  store i32 %10, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %11 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %11, ptr %6, align 4, !tbaa !13
  %12 = mul nsw i32 %11, %10
  %13 = zext i32 %12 to i64
  %14 = tail call ptr @llvm.stacksave.p0()
  %15 = alloca double, i64 %13, align 16
  %16 = alloca double, i64 %13, align 16
  %17 = zext i32 %10 to i64
  %18 = alloca double, i64 %17, align 16
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = sext i32 %12 to i64
  %22 = shl nsw i64 %21, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %16, ptr align 8 %20, i64 %22, i1 false)
  %23 = icmp sgt i32 %10, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %24 = ptrtoint ptr %18 to i64
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %1, i64 96
  %28 = load double, ptr %27, align 8, !tbaa !16
  %min.iters.check = icmp ult i32 %10, 4
  %29 = ptrtoint ptr %26 to i64
  %30 = sub i64 %24, %29
  %diff.check = icmp ult i64 %30, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %17, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %28, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %31 = getelementptr inbounds double, ptr %26, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load = load <2 x double>, ptr %31, align 8, !tbaa !18
  %wide.load26 = load <2 x double>, ptr %32, align 8, !tbaa !18
  %33 = fmul <2 x double> %wide.load, %broadcast.splat
  %34 = fmul <2 x double> %wide.load26, %broadcast.splat
  %35 = getelementptr inbounds double, ptr %18, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x double> %33, ptr %35, align 16, !tbaa !18
  store <2 x double> %34, ptr %36, align 16, !tbaa !18
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %17
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %17, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %38 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.prol
  %39 = load double, ptr %38, align 8, !tbaa !18
  %40 = fmul double %39, %28
  %41 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.prol
  store double %40, ptr %41, align 8, !tbaa !18
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !23

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %42 = sub nsw i64 %indvars.iv.ph, %17
  %43 = icmp ugt i64 %42, -4
  br i1 %43, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %44 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %45 = load double, ptr %44, align 8, !tbaa !18
  %46 = fmul double %45, %28
  %47 = getelementptr inbounds double, ptr %18, i64 %indvars.iv
  store double %46, ptr %47, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next
  %49 = load double, ptr %48, align 8, !tbaa !18
  %50 = fmul double %49, %28
  %51 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next
  store double %50, ptr %51, align 8, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %52 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.1
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = fmul double %53, %28
  %55 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next.1
  store double %54, ptr %55, align 8, !tbaa !18
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %56 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.2
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = fmul double %57, %28
  %59 = getelementptr inbounds double, ptr %18, i64 %indvars.iv.next.2
  store double %58, ptr %59, align 8, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %17
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %4
  call void @cf_diagonal_multiply(i32 noundef %11, i32 noundef %10, ptr noundef %16, ptr noundef %18)
  %60 = icmp eq ptr %2, null
  br i1 %60, label %65, label %61

61:                                               ; preds = %._crit_edge
  %62 = getelementptr inbounds i8, ptr %1, i64 104
  %63 = load double, ptr %62, align 8, !tbaa !26
  %64 = fcmp oeq double %63, 0.000000e+00
  br i1 %64, label %65, label %67

65:                                               ; preds = %61, %._crit_edge
  %66 = load ptr, ptr %19, align 8, !tbaa !14
  call void @dgemm_(ptr noundef nonnull @__c_T, ptr noundef nonnull @__c_N, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef nonnull @__d_one, ptr noundef nonnull %16, ptr noundef nonnull %5, ptr noundef %66, ptr noundef nonnull %5, ptr noundef nonnull @__d_zero, ptr noundef nonnull %3, ptr noundef nonnull %6) #5
  br label %68

67:                                               ; preds = %61
  call void @cf_supg_test_function_value(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %15)
  call void @dgemm_(ptr noundef nonnull @__c_T, ptr noundef nonnull @__c_N, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef nonnull @__d_one, ptr noundef nonnull %16, ptr noundef nonnull %5, ptr noundef nonnull %15, ptr noundef nonnull %5, ptr noundef nonnull @__d_zero, ptr noundef nonnull %3, ptr noundef nonnull %6) #5
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.stackrestore.p0(ptr %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret i32 0
}

declare void @dgemm_(ptr noundef, ptr noundef, 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 #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { 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, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !11, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 24}
!16 = !{!17, !11, i64 96}
!17 = !{!"", !8, i64 0, !8, i64 24, !8, i64 48, !8, i64 80, !11, i64 96, !11, i64 104, !10, i64 112}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !20, !21}
!26 = !{!17, !11, i64 104}


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