; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/stats (stats)

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

%class.Matrix = type { ptr, ptr, i32, i32 }

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z15distMahalanobisPfS_P6Matrix(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  store i32 %17, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %18 = load i32, ptr %8, align 4, !tbaa !11
  %19 = add nsw i32 %18, 1
  %20 = sext i32 %19 to i64
  %21 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %20, i64 4)
  %22 = extractvalue { i64, i1 } %21, 1
  %23 = extractvalue { i64, i1 } %21, 0
  %24 = select i1 %22, i64 -1, i64 %23
  %25 = call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #7
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %26 = load i32, ptr %8, align 4, !tbaa !11
  %27 = add nsw i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 4)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #7
  store ptr %33, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %56, %3
  %35 = load i32, ptr %11, align 4, !tbaa !11
  %36 = load i32, ptr %8, align 4, !tbaa !11
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %59

39:                                               ; preds = %34
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i32, ptr %11, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %40, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load i32, ptr %11, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %45, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fsub float %44, %49
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !11
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %51, i64 %54
  store float %50, ptr %55, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %39
  %57 = load i32, ptr %11, align 4, !tbaa !11
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %11, align 4, !tbaa !11
  br label %34, !llvm.loop !13

59:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %105, %59
  %61 = load i32, ptr %12, align 4, !tbaa !11
  %62 = load i32, ptr %8, align 4, !tbaa !11
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %108

65:                                               ; preds = %60
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i32, ptr %12, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %66, i64 %68
  store float 0.000000e+00, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %101, %65
  %71 = load i32, ptr %14, align 4, !tbaa !11
  %72 = load i32, ptr %8, align 4, !tbaa !11
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %104

75:                                               ; preds = %70
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.Matrix, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = load i32, ptr %12, align 4, !tbaa !11
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i32, ptr %14, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !17
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = fpext float %91 to double
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %12, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %93, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = fpext float %97 to double
  %99 = call double @llvm.fmuladd.f64(double %86, double %92, double %98)
  %100 = fptrunc double %99 to float
  store float %100, ptr %96, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %75
  %102 = load i32, ptr %14, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %14, align 4, !tbaa !11
  br label %70, !llvm.loop !19

104:                                              ; preds = %74
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %12, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %12, align 4, !tbaa !11
  br label %60, !llvm.loop !20

108:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !11
  br label %109

109:                                              ; preds = %127, %108
  %110 = load i32, ptr %15, align 4, !tbaa !11
  %111 = load i32, ptr %8, align 4, !tbaa !11
  %112 = icmp sle i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %130

114:                                              ; preds = %109
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i32, ptr %15, align 4, !tbaa !11
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %115, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !9
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i32, ptr %15, align 4, !tbaa !11
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %120, i64 %122
  %124 = load float, ptr %123, align 4, !tbaa !9
  %125 = load float, ptr %7, align 4, !tbaa !9
  %126 = call float @llvm.fmuladd.f32(float %119, float %124, float %125)
  store float %126, ptr %7, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %114
  %128 = load i32, ptr %15, align 4, !tbaa !11
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !11
  br label %109, !llvm.loop !21

130:                                              ; preds = %113
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = icmp eq ptr %131, null
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  call void @_ZdaPv(ptr noundef %131) #8
  br label %134

134:                                              ; preds = %133, %130
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = icmp eq ptr %135, null
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  call void @_ZdaPv(ptr noundef %135) #8
  br label %138

138:                                              ; preds = %137, %134
  %139 = load float, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret float %139
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTS6Matrix", !6, i64 8, !12, i64 16, !12, i64 20}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z15distMahalanobisPfS_P6Matrix(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef nonnull %2) local_unnamed_addr #4 {
  %4 = tail call noundef i32 @_ZNK6Matrix6nbColsEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %5 = add i32 %4, 1
  %6 = zext i32 %5 to i64
  %7 = icmp slt i32 %4, -1
  %8 = shl nuw nsw i64 %6, 2
  %9 = select i1 %7, i64 -1, i64 %8
  %10 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #5
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #5
  %12 = icmp sgt i32 %4, 0
  br i1 %12, label %.lr.ph.preheader, label %._crit_edge56

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %4 to i64
  %min.iters.check = icmp ult i32 %4, 8
  br i1 %min.iters.check, label %.lr.ph.preheader83, label %vector.ph

.lr.ph.preheader83:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %13 = getelementptr inbounds float, ptr %0, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %wide.load = load <4 x float>, ptr %13, align 4, !tbaa !5
  %wide.load79 = load <4 x float>, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds float, ptr %1, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load80 = load <4 x float>, ptr %15, align 4, !tbaa !5
  %wide.load81 = load <4 x float>, ptr %16, align 4, !tbaa !5
  %17 = fsub <4 x float> %wide.load, %wide.load80
  %18 = fsub <4 x float> %wide.load79, %wide.load81
  %19 = or disjoint i64 %index, 1
  %20 = getelementptr inbounds float, ptr %10, i64 %19
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x float> %17, ptr %20, align 4, !tbaa !5
  store <4 x float> %18, ptr %21, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.lr.ph51, label %.lr.ph.preheader83

.lr.ph51:                                         ; preds = %.lr.ph, %middle.block
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = add nsw i64 %6, -1
  %26 = add nsw i64 %6, -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
  br label %.lr.ph48

.lr.ph:                                           ; preds = %.lr.ph.preheader83, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader83 ]
  %28 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = fsub float %29, %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next
  store float %32, ptr %33, align 4, !tbaa !5
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.lr.ph51, label %.lr.ph, !llvm.loop !17

.lr.ph48:                                         ; preds = %.lr.ph51, %._crit_edge
  %indvars.iv64 = phi i64 [ 1, %.lr.ph51 ], [ %indvars.iv.next65, %._crit_edge ]
  %34 = getelementptr inbounds float, ptr %11, i64 %indvars.iv64
  %35 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv64
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  br i1 %27, label %._crit_edge.unr-lcssa, label %.lr.ph48.new

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph48.new, %.lr.ph48
  %.lcssa82.ph = phi float [ poison, %.lr.ph48 ], [ %62, %.lr.ph48.new ]
  %indvars.iv59.unr = phi i64 [ 1, %.lr.ph48 ], [ %indvars.iv.next60.1, %.lr.ph48.new ]
  %.unr = phi float [ 0.000000e+00, %.lr.ph48 ], [ %62, %.lr.ph48.new ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %37 = getelementptr inbounds double, ptr %36, i64 %indvars.iv59.unr
  %38 = load double, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds float, ptr %10, i64 %indvars.iv59.unr
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fpext float %40 to double
  %42 = fpext float %.unr to double
  %43 = tail call double @llvm.fmuladd.f64(double %38, double %41, double %42)
  %44 = fptrunc double %43 to float
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa82 = phi float [ %.lcssa82.ph, %._crit_edge.unr-lcssa ], [ %44, %._crit_edge.epilog-lcssa ]
  store float %.lcssa82, ptr %34, align 4, !tbaa !5
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %6
  br i1 %exitcond68.not, label %.lr.ph55.preheader, label %.lr.ph48, !llvm.loop !21

.lr.ph55.preheader:                               ; preds = %._crit_edge
  %xtraiter85 = and i64 %25, 3
  %45 = icmp ult i64 %26, 3
  br i1 %45, label %._crit_edge56.loopexit.unr-lcssa, label %.lr.ph55.preheader.new

.lr.ph55.preheader.new:                           ; preds = %.lr.ph55.preheader
  %unroll_iter88 = and i64 %25, -4
  br label %.lr.ph55

.lr.ph48.new:                                     ; preds = %.lr.ph48, %.lr.ph48.new
  %indvars.iv59 = phi i64 [ %indvars.iv.next60.1, %.lr.ph48.new ], [ 1, %.lr.ph48 ]
  %46 = phi float [ %62, %.lr.ph48.new ], [ 0.000000e+00, %.lr.ph48 ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph48.new ], [ 0, %.lr.ph48 ]
  %47 = getelementptr inbounds double, ptr %36, i64 %indvars.iv59
  %48 = load double, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds float, ptr %10, i64 %indvars.iv59
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = fpext float %50 to double
  %52 = fpext float %46 to double
  %53 = tail call double @llvm.fmuladd.f64(double %48, double %51, double %52)
  %54 = fptrunc double %53 to float
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %55 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next60
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next60
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fpext float %58 to double
  %60 = fpext float %54 to double
  %61 = tail call double @llvm.fmuladd.f64(double %56, double %59, double %60)
  %62 = fptrunc double %61 to float
  %indvars.iv.next60.1 = add nuw nsw i64 %indvars.iv59, 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.unr-lcssa, label %.lr.ph48.new, !llvm.loop !22

.lr.ph55:                                         ; preds = %.lr.ph55, %.lr.ph55.preheader.new
  %indvars.iv69 = phi i64 [ 1, %.lr.ph55.preheader.new ], [ %indvars.iv.next70.3, %.lr.ph55 ]
  %.04053 = phi float [ 0.000000e+00, %.lr.ph55.preheader.new ], [ %82, %.lr.ph55 ]
  %niter89 = phi i64 [ 0, %.lr.ph55.preheader.new ], [ %niter89.next.3, %.lr.ph55 ]
  %63 = getelementptr inbounds float, ptr %10, i64 %indvars.iv69
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds float, ptr %11, i64 %indvars.iv69
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = tail call float @llvm.fmuladd.f32(float %64, float %66, float %.04053)
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %68 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next70
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next70
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = tail call float @llvm.fmuladd.f32(float %69, float %71, float %67)
  %indvars.iv.next70.1 = add nuw nsw i64 %indvars.iv69, 2
  %73 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next70.1
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next70.1
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = tail call float @llvm.fmuladd.f32(float %74, float %76, float %72)
  %indvars.iv.next70.2 = add nuw nsw i64 %indvars.iv69, 3
  %78 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next70.2
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next70.2
  %81 = load float, ptr %80, align 4, !tbaa !5
  %82 = tail call float @llvm.fmuladd.f32(float %79, float %81, float %77)
  %indvars.iv.next70.3 = add nuw nsw i64 %indvars.iv69, 4
  %niter89.next.3 = add i64 %niter89, 4
  %niter89.ncmp.3 = icmp eq i64 %niter89.next.3, %unroll_iter88
  br i1 %niter89.ncmp.3, label %._crit_edge56.loopexit.unr-lcssa, label %.lr.ph55, !llvm.loop !23

._crit_edge56.loopexit.unr-lcssa:                 ; preds = %.lr.ph55, %.lr.ph55.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph55.preheader ], [ %82, %.lr.ph55 ]
  %indvars.iv69.unr = phi i64 [ 1, %.lr.ph55.preheader ], [ %indvars.iv.next70.3, %.lr.ph55 ]
  %.04053.unr = phi float [ 0.000000e+00, %.lr.ph55.preheader ], [ %82, %.lr.ph55 ]
  %lcmp.mod86.not = icmp eq i64 %xtraiter85, 0
  br i1 %lcmp.mod86.not, label %._crit_edge56, label %.lr.ph55.epil

.lr.ph55.epil:                                    ; preds = %._crit_edge56.loopexit.unr-lcssa, %.lr.ph55.epil
  %indvars.iv69.epil = phi i64 [ %indvars.iv.next70.epil, %.lr.ph55.epil ], [ %indvars.iv69.unr, %._crit_edge56.loopexit.unr-lcssa ]
  %.04053.epil = phi float [ %87, %.lr.ph55.epil ], [ %.04053.unr, %._crit_edge56.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph55.epil ], [ 0, %._crit_edge56.loopexit.unr-lcssa ]
  %83 = getelementptr inbounds float, ptr %10, i64 %indvars.iv69.epil
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = getelementptr inbounds float, ptr %11, i64 %indvars.iv69.epil
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = tail call float @llvm.fmuladd.f32(float %84, float %86, float %.04053.epil)
  %indvars.iv.next70.epil = add nuw nsw i64 %indvars.iv69.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter85
  br i1 %epil.iter.cmp.not, label %._crit_edge56, label %.lr.ph55.epil, !llvm.loop !24

._crit_edge56:                                    ; preds = %._crit_edge56.loopexit.unr-lcssa, %.lr.ph55.epil, %3
  %.040.lcssa = phi float [ 0.000000e+00, %3 ], [ %.lcssa.ph, %._crit_edge56.loopexit.unr-lcssa ], [ %87, %.lr.ph55.epil ]
  tail call void @_ZdaPv(ptr noundef nonnull %10) #6
  tail call void @_ZdaPv(ptr noundef nonnull %11) #6
  ret float %.040.lcssa
}

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin allocsize(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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { builtin allocsize(0) }
attributes #6 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTS6Matrix", !15, i64 8, !16, i64 16, !16, i64 20}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !10, !12, !11}
!18 = !{!15, !15, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}


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