; LLVM IR from KhawajaAbaid/machine-learning-in-c :: nn (update_weights_)

; 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.mlp = type { ptr, i64 }
%struct.layer = type { ptr, ptr, i64, i64 }

; 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: nounwind uwtable
define dso_local void @update_weights_(ptr noundef %0, ptr noundef %1, double noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %11

11:                                               ; preds = %109, %3
  %12 = load i64, ptr %7, align 8, !tbaa !11
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.mlp, ptr %13, i32 0, i32 1
  %15 = load i64, ptr %14, align 8, !tbaa !13
  %16 = icmp ult i64 %12, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %11
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %112

18:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %19

19:                                               ; preds = %105, %18
  %20 = load i64, ptr %9, align 8, !tbaa !11
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.mlp, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = load i64, ptr %7, align 8, !tbaa !11
  %25 = getelementptr inbounds ptr, ptr %23, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.layer, ptr %26, i32 0, i32 3
  %28 = load i64, ptr %27, align 8, !tbaa !16
  %29 = icmp ult i64 %20, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %19
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %108

31:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %76, %31
  %33 = load i64, ptr %10, align 8, !tbaa !11
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.mlp, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = load i64, ptr %7, align 8, !tbaa !11
  %38 = getelementptr inbounds ptr, ptr %36, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.layer, ptr %39, i32 0, i32 2
  %41 = load i64, ptr %40, align 8, !tbaa !18
  %42 = icmp ult i64 %33, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %32
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %79

44:                                               ; preds = %32
  %45 = load double, ptr %6, align 8, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mlp, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = load i64, ptr %7, align 8, !tbaa !11
  %50 = getelementptr inbounds ptr, ptr %48, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.layer, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = load i64, ptr %9, align 8, !tbaa !11
  %55 = getelementptr inbounds ptr, ptr %53, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i64, ptr %10, align 8, !tbaa !11
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mlp, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = getelementptr inbounds ptr, ptr %62, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.layer, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  %68 = load i64, ptr %9, align 8, !tbaa !11
  %69 = getelementptr inbounds ptr, ptr %67, i64 %68
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = load i64, ptr %10, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = fneg double %45
  %75 = call double @llvm.fmuladd.f64(double %74, double %59, double %73)
  store double %75, ptr %72, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %44
  %77 = load i64, ptr %10, align 8, !tbaa !11
  %78 = add i64 %77, 1
  store i64 %78, ptr %10, align 8, !tbaa !11
  br label %32, !llvm.loop !20

79:                                               ; preds = %43
  %80 = load double, ptr %6, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.mlp, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i64, ptr %7, align 8, !tbaa !11
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.layer, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load i64, ptr %9, align 8, !tbaa !11
  %90 = getelementptr inbounds double, ptr %88, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.mlp, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = load i64, ptr %7, align 8, !tbaa !11
  %96 = getelementptr inbounds ptr, ptr %94, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.layer, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = load i64, ptr %9, align 8, !tbaa !11
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fneg double %80
  %104 = call double @llvm.fmuladd.f64(double %103, double %91, double %102)
  store double %104, ptr %101, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %79
  %106 = load i64, ptr %9, align 8, !tbaa !11
  %107 = add i64 %106, 1
  store i64 %107, ptr %9, align 8, !tbaa !11
  br label %19, !llvm.loop !23

108:                                              ; preds = %30
  br label %109

109:                                              ; preds = %108
  %110 = load i64, ptr %7, align 8, !tbaa !11
  %111 = add i64 %110, 1
  store i64 %111, ptr %7, align 8, !tbaa !11
  br label %11, !llvm.loop !24

112:                                              ; preds = %17
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = !{!"any pointer", !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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"", !6, i64 0, !12, i64 8}
!15 = !{!14, !6, i64 0}
!16 = !{!17, !12, i64 24}
!17 = !{!"", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 24}
!18 = !{!17, !12, i64 16}
!19 = !{!17, !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!17, !6, i64 8}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @update_weights_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, double noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge, label %.preheader28.lr.ph

.preheader28.lr.ph:                               ; preds = %3
  %6 = load ptr, ptr %0, align 8, !tbaa !11
  %7 = fneg double %2
  %broadcast.splatinsert65 = insertelement <2 x double> poison, double %7, i64 0
  %broadcast.splat66 = shufflevector <2 x double> %broadcast.splatinsert65, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert = insertelement <2 x double> poison, double %7, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %.preheader28

.preheader28:                                     ; preds = %.preheader28.lr.ph, %._crit_edge31
  %.02732 = phi i64 [ 0, %.preheader28.lr.ph ], [ %87, %._crit_edge31 ]
  %8 = getelementptr inbounds ptr, ptr %6, i64 %.02732
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load i64, ptr %10, align 8, !tbaa !13
  %.not34 = icmp eq i64 %11, 0
  br i1 %.not34, label %._crit_edge31, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader28
  %12 = getelementptr inbounds i8, ptr %9, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !15
  %.not35 = icmp eq i64 %13, 0
  %14 = load ptr, ptr %1, align 8, !tbaa !11
  %15 = getelementptr inbounds ptr, ptr %14, i64 %.02732
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  br i1 %.not35, label %.preheader.preheader, label %.preheader.lr.ph.split.us

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %min.iters.check = icmp ult i64 %11, 4
  br i1 %min.iters.check, label %.preheader.preheader69, label %vector.memcheck

.preheader.preheader69:                           ; preds = %middle.block, %vector.memcheck, %.preheader.preheader
  %.02630.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.preheader ], [ %n.vec, %middle.block ]
  %.neg73 = or disjoint i64 %.02630.ph, 1
  %xtraiter71 = and i64 %11, 1
  %lcmp.mod72.not = icmp eq i64 %xtraiter71, 0
  br i1 %lcmp.mod72.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader69
  %21 = getelementptr inbounds double, ptr %18, i64 %.02630.ph
  %22 = load double, ptr %21, align 8, !tbaa !17
  %23 = getelementptr inbounds double, ptr %20, i64 %.02630.ph
  %24 = load double, ptr %23, align 8, !tbaa !17
  %25 = tail call double @llvm.fmuladd.f64(double %7, double %22, double %24)
  store double %25, ptr %23, align 8, !tbaa !17
  %26 = or disjoint i64 %.02630.ph, 1
  br label %.preheader.prol.loopexit

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader69
  %.02630.unr = phi i64 [ %.02630.ph, %.preheader.preheader69 ], [ %26, %.preheader.prol ]
  %27 = icmp eq i64 %11, %.neg73
  br i1 %27, label %._crit_edge31, label %.preheader

vector.memcheck:                                  ; preds = %.preheader.preheader
  %28 = shl i64 %11, 3
  %scevgep = getelementptr i8, ptr %20, i64 %28
  %scevgep42 = getelementptr i8, ptr %18, i64 %28
  %bound0 = icmp ult ptr %20, %scevgep42
  %bound1 = icmp ult ptr %18, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.preheader.preheader69, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %11, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %29 = getelementptr inbounds double, ptr %18, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load = load <2 x double>, ptr %29, align 8, !tbaa !17, !alias.scope !19
  %wide.load43 = load <2 x double>, ptr %30, align 8, !tbaa !17, !alias.scope !19
  %31 = getelementptr inbounds double, ptr %20, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load44 = load <2 x double>, ptr %31, align 8, !tbaa !17, !alias.scope !22, !noalias !19
  %wide.load45 = load <2 x double>, ptr %32, align 8, !tbaa !17, !alias.scope !22, !noalias !19
  %33 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load44)
  %34 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load43, <2 x double> %wide.load45)
  store <2 x double> %33, ptr %31, align 8, !tbaa !17, !alias.scope !22, !noalias !19
  store <2 x double> %34, ptr %32, align 8, !tbaa !17, !alias.scope !22, !noalias !19
  %index.next = add nuw i64 %index, 4
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %11, %n.vec
  br i1 %cmp.n, label %._crit_edge31, label %.preheader.preheader69

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %36 = load ptr, ptr %16, align 8, !tbaa !28
  %37 = load ptr, ptr %9, align 8, !tbaa !28
  %38 = shl i64 %13, 3
  %min.iters.check54 = icmp ult i64 %13, 4
  %n.vec57 = and i64 %13, -4
  %cmp.n68 = icmp eq i64 %13, %n.vec57
  %xtraiter = and i64 %13, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %.02630.us = phi i64 [ 0, %.preheader.lr.ph.split.us ], [ %74, %._crit_edge.us ]
  %39 = getelementptr inbounds ptr, ptr %36, i64 %.02630.us
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = getelementptr inbounds ptr, ptr %37, i64 %.02630.us
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  br i1 %min.iters.check54, label %scalar.ph53.preheader, label %vector.memcheck46

vector.memcheck46:                                ; preds = %.preheader.us
  %scevgep47 = getelementptr i8, ptr %42, i64 %38
  %scevgep48 = getelementptr i8, ptr %40, i64 %38
  %bound049 = icmp ult ptr %42, %scevgep48
  %bound150 = icmp ult ptr %40, %scevgep47
  %found.conflict51 = and i1 %bound049, %bound150
  br i1 %found.conflict51, label %scalar.ph53.preheader, label %vector.body59

vector.body59:                                    ; preds = %vector.memcheck46, %vector.body59
  %index60 = phi i64 [ %index.next67, %vector.body59 ], [ 0, %vector.memcheck46 ]
  %43 = getelementptr inbounds double, ptr %40, i64 %index60
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load61 = load <2 x double>, ptr %43, align 8, !tbaa !17, !alias.scope !29
  %wide.load62 = load <2 x double>, ptr %44, align 8, !tbaa !17, !alias.scope !29
  %45 = getelementptr inbounds double, ptr %42, i64 %index60
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load63 = load <2 x double>, ptr %45, align 8, !tbaa !17, !alias.scope !32, !noalias !29
  %wide.load64 = load <2 x double>, ptr %46, align 8, !tbaa !17, !alias.scope !32, !noalias !29
  %47 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat66, <2 x double> %wide.load61, <2 x double> %wide.load63)
  %48 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat66, <2 x double> %wide.load62, <2 x double> %wide.load64)
  store <2 x double> %47, ptr %45, align 8, !tbaa !17, !alias.scope !32, !noalias !29
  store <2 x double> %48, ptr %46, align 8, !tbaa !17, !alias.scope !32, !noalias !29
  %index.next67 = add nuw i64 %index60, 4
  %49 = icmp eq i64 %index.next67, %n.vec57
  br i1 %49, label %middle.block52, label %vector.body59, !llvm.loop !34

middle.block52:                                   ; preds = %vector.body59
  br i1 %cmp.n68, label %._crit_edge.us, label %scalar.ph53.preheader

scalar.ph53.preheader:                            ; preds = %middle.block52, %vector.memcheck46, %.preheader.us
  %.029.us.ph = phi i64 [ 0, %vector.memcheck46 ], [ 0, %.preheader.us ], [ %n.vec57, %middle.block52 ]
  %.neg = or disjoint i64 %.029.us.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph53.prol.loopexit, label %scalar.ph53.prol

scalar.ph53.prol:                                 ; preds = %scalar.ph53.preheader
  %50 = getelementptr inbounds double, ptr %40, i64 %.029.us.ph
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds double, ptr %42, i64 %.029.us.ph
  %53 = load double, ptr %52, align 8, !tbaa !17
  %54 = tail call double @llvm.fmuladd.f64(double %7, double %51, double %53)
  store double %54, ptr %52, align 8, !tbaa !17
  %55 = or disjoint i64 %.029.us.ph, 1
  br label %scalar.ph53.prol.loopexit

scalar.ph53.prol.loopexit:                        ; preds = %scalar.ph53.prol, %scalar.ph53.preheader
  %.029.us.unr = phi i64 [ %.029.us.ph, %scalar.ph53.preheader ], [ %55, %scalar.ph53.prol ]
  %56 = icmp eq i64 %13, %.neg
  br i1 %56, label %._crit_edge.us, label %scalar.ph53

scalar.ph53:                                      ; preds = %scalar.ph53.prol.loopexit, %scalar.ph53
  %.029.us = phi i64 [ %68, %scalar.ph53 ], [ %.029.us.unr, %scalar.ph53.prol.loopexit ]
  %57 = getelementptr inbounds double, ptr %40, i64 %.029.us
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %42, i64 %.029.us
  %60 = load double, ptr %59, align 8, !tbaa !17
  %61 = tail call double @llvm.fmuladd.f64(double %7, double %58, double %60)
  store double %61, ptr %59, align 8, !tbaa !17
  %62 = add nuw i64 %.029.us, 1
  %63 = getelementptr inbounds double, ptr %40, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds double, ptr %42, i64 %62
  %66 = load double, ptr %65, align 8, !tbaa !17
  %67 = tail call double @llvm.fmuladd.f64(double %7, double %64, double %66)
  store double %67, ptr %65, align 8, !tbaa !17
  %68 = add nuw i64 %.029.us, 2
  %exitcond.not.1 = icmp eq i64 %68, %13
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph53, !llvm.loop !35

._crit_edge.us:                                   ; preds = %scalar.ph53.prol.loopexit, %scalar.ph53, %middle.block52
  %69 = getelementptr inbounds double, ptr %18, i64 %.02630.us
  %70 = load double, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds double, ptr %20, i64 %.02630.us
  %72 = load double, ptr %71, align 8, !tbaa !17
  %73 = tail call double @llvm.fmuladd.f64(double %7, double %70, double %72)
  store double %73, ptr %71, align 8, !tbaa !17
  %74 = add nuw i64 %.02630.us, 1
  %exitcond37.not = icmp eq i64 %74, %11
  br i1 %exitcond37.not, label %._crit_edge31, label %.preheader.us, !llvm.loop !36

._crit_edge:                                      ; preds = %._crit_edge31, %3
  ret void

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %.02630 = phi i64 [ %86, %.preheader ], [ %.02630.unr, %.preheader.prol.loopexit ]
  %75 = getelementptr inbounds double, ptr %18, i64 %.02630
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds double, ptr %20, i64 %.02630
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = tail call double @llvm.fmuladd.f64(double %7, double %76, double %78)
  store double %79, ptr %77, align 8, !tbaa !17
  %80 = add nuw i64 %.02630, 1
  %81 = getelementptr inbounds double, ptr %18, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds double, ptr %20, i64 %80
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = tail call double @llvm.fmuladd.f64(double %7, double %82, double %84)
  store double %85, ptr %83, align 8, !tbaa !17
  %86 = add nuw i64 %.02630, 2
  %exitcond38.not.1 = icmp eq i64 %86, %11
  br i1 %exitcond38.not.1, label %._crit_edge31, label %.preheader, !llvm.loop !37

._crit_edge31:                                    ; preds = %._crit_edge.us, %.preheader.prol.loopexit, %.preheader, %middle.block, %.preheader28
  %87 = add nuw i64 %.02732, 1
  %exitcond39.not = icmp eq i64 %87, %5
  br i1 %exitcond39.not, label %._crit_edge, label %.preheader28, !llvm.loop !38
}

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

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

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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) }
attributes #2 = { 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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !7, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = !{!14, !7, i64 0}
!29 = !{!30}
!30 = distinct !{!30, !31}
!31 = distinct !{!31, !"LVerDomain"}
!32 = !{!33}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !25, !26, !27}
!35 = distinct !{!35, !25, !26}
!36 = distinct !{!36, !25}
!37 = distinct !{!37, !25, !26}
!38 = distinct !{!38, !25}


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