; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (ap)

; 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.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %0, i64 noundef %1, double noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) #1 {
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  store i64 %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !5
  store double %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !11
  store i64 %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !11
  store double %6, ptr %16, align 8, !tbaa !9
  store ptr %7, ptr %17, align 8, !tbaa !11
  store ptr %8, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %23 = load i64, ptr %10, align 8, !tbaa !5
  %24 = icmp sle i64 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %9
  store i32 1, ptr %22, align 4
  br label %163

26:                                               ; preds = %9
  %27 = load double, ptr %16, align 8, !tbaa !9
  %28 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %27, double noundef 0.000000e+00)
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = load i64, ptr %10, align 8, !tbaa !5
  %31 = load double, ptr %16, align 8, !tbaa !9
  %32 = load ptr, ptr %17, align 8, !tbaa !11
  %33 = load ptr, ptr %18, align 8, !tbaa !11
  call void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %30, double noundef %31, ptr noundef %32, ptr noundef %33)
  br label %38

34:                                               ; preds = %26
  %35 = load i64, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %17, align 8, !tbaa !11
  %37 = load ptr, ptr %18, align 8, !tbaa !11
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %35, double noundef 0.000000e+00, ptr noundef %36, ptr noundef %37)
  br label %38

38:                                               ; preds = %34, %29
  %39 = load i64, ptr %11, align 8, !tbaa !5
  %40 = icmp sle i64 %39, 0
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  %42 = load double, ptr %12, align 8, !tbaa !9
  %43 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %42, double noundef 0.000000e+00)
  br i1 %43, label %44, label %45

44:                                               ; preds = %41, %38
  store i32 1, ptr %22, align 4
  br label %163

45:                                               ; preds = %41
  %46 = load i64, ptr %14, align 8, !tbaa !5
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %104

48:                                               ; preds = %45
  %49 = load i64, ptr %11, align 8, !tbaa !5
  %50 = icmp sge i64 %49, 16
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  br label %52

52:                                               ; preds = %51, %48
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %100, %52
  %54 = load i64, ptr %19, align 8, !tbaa !5
  %55 = load i64, ptr %10, align 8, !tbaa !5
  %56 = sub nsw i64 %55, 1
  %57 = icmp sle i64 %54, %56
  br i1 %57, label %58, label %103

58:                                               ; preds = %53
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %82, %58
  %60 = load i64, ptr %20, align 8, !tbaa !5
  %61 = load i64, ptr %11, align 8, !tbaa !5
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %85

64:                                               ; preds = %59
  %65 = load double, ptr %21, align 8, !tbaa !9
  %66 = load ptr, ptr %13, align 8, !tbaa !11
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %66, i32 0, i32 6
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = load i64, ptr %19, align 8, !tbaa !5
  %70 = getelementptr inbounds ptr, ptr %68, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = load i64, ptr %20, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %15, align 8, !tbaa !11
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = load i64, ptr %20, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = call double @llvm.fmuladd.f64(double %74, double %80, double %65)
  store double %81, ptr %21, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %64
  %83 = load i64, ptr %20, align 8, !tbaa !5
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %20, align 8, !tbaa !5
  br label %59, !llvm.loop !14

85:                                               ; preds = %59
  %86 = load double, ptr %12, align 8, !tbaa !9
  %87 = load double, ptr %21, align 8, !tbaa !9
  %88 = load ptr, ptr %17, align 8, !tbaa !11
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  %91 = load i64, ptr %19, align 8, !tbaa !5
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = call double @llvm.fmuladd.f64(double %86, double %87, double %93)
  %95 = load ptr, ptr %17, align 8, !tbaa !11
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = load i64, ptr %19, align 8, !tbaa !5
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  store double %94, ptr %99, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %85
  %101 = load i64, ptr %19, align 8, !tbaa !5
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %19, align 8, !tbaa !5
  br label %53, !llvm.loop !16

103:                                              ; preds = %53
  store i32 1, ptr %22, align 4
  br label %163

104:                                              ; preds = %45
  %105 = load i64, ptr %14, align 8, !tbaa !5
  %106 = icmp eq i64 %105, 1
  br i1 %106, label %107, label %162

107:                                              ; preds = %104
  %108 = load i64, ptr %10, align 8, !tbaa !5
  %109 = icmp sge i64 %108, 16
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  br label %111

111:                                              ; preds = %110, %107
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %158, %111
  %113 = load i64, ptr %19, align 8, !tbaa !5
  %114 = load i64, ptr %11, align 8, !tbaa !5
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %161

117:                                              ; preds = %112
  %118 = load double, ptr %12, align 8, !tbaa !9
  %119 = load ptr, ptr %15, align 8, !tbaa !11
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  %122 = load i64, ptr %19, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = fmul double %118, %124
  store double %125, ptr %21, align 8, !tbaa !9
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %154, %117
  %127 = load i64, ptr %20, align 8, !tbaa !5
  %128 = load i64, ptr %10, align 8, !tbaa !5
  %129 = sub nsw i64 %128, 1
  %130 = icmp sle i64 %127, %129
  br i1 %130, label %131, label %157

131:                                              ; preds = %126
  %132 = load ptr, ptr %17, align 8, !tbaa !11
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !13
  %135 = load i64, ptr %20, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = load double, ptr %21, align 8, !tbaa !9
  %139 = load ptr, ptr %13, align 8, !tbaa !11
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %139, i32 0, i32 6
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  %142 = load i64, ptr %19, align 8, !tbaa !5
  %143 = getelementptr inbounds ptr, ptr %141, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = load i64, ptr %20, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !9
  %148 = call double @llvm.fmuladd.f64(double %138, double %147, double %137)
  %149 = load ptr, ptr %17, align 8, !tbaa !11
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !13
  %152 = load i64, ptr %20, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  store double %148, ptr %153, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %131
  %155 = load i64, ptr %20, align 8, !tbaa !5
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %20, align 8, !tbaa !5
  br label %126, !llvm.loop !17

157:                                              ; preds = %126
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %19, align 8, !tbaa !5
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %19, align 8, !tbaa !5
  br label %112, !llvm.loop !18

161:                                              ; preds = %112
  store i32 1, ptr %22, align 4
  br label %163

162:                                              ; preds = %104
  store i32 0, ptr %22, align 4
  br label %163

163:                                              ; preds = %162, %161, %103, %44, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  %164 = load i32, ptr %22, align 4
  switch i32 %164, label %166 [
    i32 0, label %165
    i32 1, label %165
  ]

165:                                              ; preds = %163, %163
  ret void

166:                                              ; preds = %163
  unreachable
}

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


; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11alglib_impl5rgemvElldPKNS_9ae_matrixElPKNS_9ae_vectorEdPS3_PNS_8ae_stateE(i64 noundef %0, i64 noundef %1, double noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr nocapture noundef readonly %5, double noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = icmp slt i64 %0, 1
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %9
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %6, double noundef 0.000000e+00)
  br i1 %12, label %13, label %14

13:                                               ; preds = %11
  tail call void @_ZN11alglib_impl5rmulvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %0, double noundef %6, ptr noundef %7, ptr noundef %8)
  br label %15

14:                                               ; preds = %11
  tail call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %0, double noundef 0.000000e+00, ptr noundef %7, ptr noundef %8)
  br label %15

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

17:                                               ; preds = %15
  %18 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %2, double noundef 0.000000e+00)
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %17
  switch i64 %4, label %.loopexit [
    i64 0, label %.preheader.us.preheader
    i64 1, label %.lr.ph.us.preheader
  ]

.lr.ph.us.preheader:                              ; preds = %19
  %20 = getelementptr inbounds i8, ptr %5, i64 56
  %21 = getelementptr inbounds i8, ptr %7, i64 56
  %22 = getelementptr inbounds i8, ptr %3, i64 72
  %xtraiter = and i64 %0, 1
  %23 = icmp eq i64 %0, 1
  %unroll_iter = and i64 %0, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.15164.us = phi i64 [ %57, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %24 = load ptr, ptr %20, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 %.15164.us
  %26 = load double, ptr %25, align 8, !tbaa !8
  %27 = fmul double %26, %2
  br i1 %23, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %.162.us = phi i64 [ %47, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %28 = load ptr, ptr %21, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.162.us
  %30 = load double, ptr %29, align 8, !tbaa !8
  %31 = load ptr, ptr %22, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.15164.us
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  %34 = getelementptr inbounds double, ptr %33, i64 %.162.us
  %35 = load double, ptr %34, align 8, !tbaa !8
  %36 = tail call double @llvm.fmuladd.f64(double %27, double %35, double %30)
  store double %36, ptr %29, align 8, !tbaa !8
  %37 = or disjoint i64 %.162.us, 1
  %38 = load ptr, ptr %21, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 %37
  %40 = load double, ptr %39, align 8, !tbaa !8
  %41 = load ptr, ptr %22, align 8, !tbaa !5
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.15164.us
  %43 = load ptr, ptr %42, align 8, !tbaa !10
  %44 = getelementptr inbounds double, ptr %43, i64 %37
  %45 = load double, ptr %44, align 8, !tbaa !8
  %46 = tail call double @llvm.fmuladd.f64(double %27, double %45, double %40)
  store double %46, ptr %39, align 8, !tbaa !8
  %47 = add nuw nsw i64 %.162.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 %.lr.ph.us.new, !llvm.loop !12

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.162.us.unr = phi i64 [ 0, %.lr.ph.us ], [ %47, %.lr.ph.us.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
  %48 = load ptr, ptr %21, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %.162.us.unr
  %50 = load double, ptr %49, align 8, !tbaa !8
  %51 = load ptr, ptr %22, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.15164.us
  %53 = load ptr, ptr %52, align 8, !tbaa !10
  %54 = getelementptr inbounds double, ptr %53, i64 %.162.us.unr
  %55 = load double, ptr %54, align 8, !tbaa !8
  %56 = tail call double @llvm.fmuladd.f64(double %27, double %55, double %50)
  store double %56, ptr %49, align 8, !tbaa !8
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %57 = add nuw nsw i64 %.15164.us, 1
  %exitcond76.not = icmp eq i64 %57, %1
  br i1 %exitcond76.not, label %.loopexit, label %.lr.ph.us, !llvm.loop !14

.preheader.us.preheader:                          ; preds = %19
  %58 = getelementptr inbounds i8, ptr %3, i64 72
  %59 = getelementptr inbounds i8, ptr %5, i64 56
  %60 = getelementptr inbounds i8, ptr %7, i64 56
  %xtraiter84 = and i64 %1, 3
  %61 = icmp ult i64 %1, 4
  %unroll_iter87 = and i64 %1, 9223372036854775804
  %lcmp.mod85.not = icmp eq i64 %xtraiter84, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us72
  %.05070.us = phi i64 [ %100, %._crit_edge.us72 ], [ 0, %.preheader.us.preheader ]
  %62 = load ptr, ptr %58, align 8, !tbaa !5
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.05070.us
  %64 = load ptr, ptr %63, align 8, !tbaa !10
  %65 = load ptr, ptr %59, align 8, !tbaa !5
  br i1 %61, label %._crit_edge.us72.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.068.us = phi double [ %88, %.preheader.us.new ], [ 0.000000e+00, %.preheader.us ]
  %.04967.us = phi i64 [ %89, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter88 = phi i64 [ %niter88.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %66 = getelementptr inbounds double, ptr %64, i64 %.04967.us
  %67 = load double, ptr %66, align 8, !tbaa !8
  %68 = getelementptr inbounds double, ptr %65, i64 %.04967.us
  %69 = load double, ptr %68, align 8, !tbaa !8
  %70 = tail call double @llvm.fmuladd.f64(double %67, double %69, double %.068.us)
  %71 = or disjoint i64 %.04967.us, 1
  %72 = getelementptr inbounds double, ptr %64, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !8
  %74 = getelementptr inbounds double, ptr %65, i64 %71
  %75 = load double, ptr %74, align 8, !tbaa !8
  %76 = tail call double @llvm.fmuladd.f64(double %73, double %75, double %70)
  %77 = or disjoint i64 %.04967.us, 2
  %78 = getelementptr inbounds double, ptr %64, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !8
  %80 = getelementptr inbounds double, ptr %65, i64 %77
  %81 = load double, ptr %80, align 8, !tbaa !8
  %82 = tail call double @llvm.fmuladd.f64(double %79, double %81, double %76)
  %83 = or disjoint i64 %.04967.us, 3
  %84 = getelementptr inbounds double, ptr %64, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !8
  %86 = getelementptr inbounds double, ptr %65, i64 %83
  %87 = load double, ptr %86, align 8, !tbaa !8
  %88 = tail call double @llvm.fmuladd.f64(double %85, double %87, double %82)
  %89 = add nuw nsw i64 %.04967.us, 4
  %niter88.next.3 = add i64 %niter88, 4
  %niter88.ncmp.3 = icmp eq i64 %niter88.next.3, %unroll_iter87
  br i1 %niter88.ncmp.3, label %._crit_edge.us72.unr-lcssa, label %.preheader.us.new, !llvm.loop !15

._crit_edge.us72.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi double [ poison, %.preheader.us ], [ %88, %.preheader.us.new ]
  %.068.us.unr = phi double [ 0.000000e+00, %.preheader.us ], [ %88, %.preheader.us.new ]
  %.04967.us.unr = phi i64 [ 0, %.preheader.us ], [ %89, %.preheader.us.new ]
  br i1 %lcmp.mod85.not, label %._crit_edge.us72, label %.epil.preheader83

.epil.preheader83:                                ; preds = %._crit_edge.us72.unr-lcssa, %.epil.preheader83
  %.068.us.epil = phi double [ %94, %.epil.preheader83 ], [ %.068.us.unr, %._crit_edge.us72.unr-lcssa ]
  %.04967.us.epil = phi i64 [ %95, %.epil.preheader83 ], [ %.04967.us.unr, %._crit_edge.us72.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader83 ], [ 0, %._crit_edge.us72.unr-lcssa ]
  %90 = getelementptr inbounds double, ptr %64, i64 %.04967.us.epil
  %91 = load double, ptr %90, align 8, !tbaa !8
  %92 = getelementptr inbounds double, ptr %65, i64 %.04967.us.epil
  %93 = load double, ptr %92, align 8, !tbaa !8
  %94 = tail call double @llvm.fmuladd.f64(double %91, double %93, double %.068.us.epil)
  %95 = add nuw nsw i64 %.04967.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter84
  br i1 %epil.iter.cmp.not, label %._crit_edge.us72, label %.epil.preheader83, !llvm.loop !16

._crit_edge.us72:                                 ; preds = %.epil.preheader83, %._crit_edge.us72.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us72.unr-lcssa ], [ %94, %.epil.preheader83 ]
  %96 = load ptr, ptr %60, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 %.05070.us
  %98 = load double, ptr %97, align 8, !tbaa !8
  %99 = tail call double @llvm.fmuladd.f64(double %2, double %.lcssa, double %98)
  store double %99, ptr %97, align 8, !tbaa !8
  %100 = add nuw nsw i64 %.05070.us, 1
  %exitcond79.not = icmp eq i64 %100, %0
  br i1 %exitcond79.not, label %.loopexit, label %.preheader.us, !llvm.loop !18

.loopexit:                                        ; preds = %._crit_edge.us, %._crit_edge.us72, %19, %15, %17, %9
  ret void
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !13}


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