; LLVM IR from OpenFAST/openfast :: modules/map/src (lineroutines)

; 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.Vessel_t = type { %struct.EulerAngle_t, ptr, ptr, ptr, %struct.Point_t, %struct.Point_t, %struct.Force_t }
%struct.EulerAngle_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Point_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.MAP_OutputType = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @set_moment_plus(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %112, %6
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %12, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %115

24:                                               ; preds = %20
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Vessel_t, ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = load i32, ptr %13, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %27, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !11
  store double %31, ptr %14, align 8, !tbaa !11
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.Vessel_t, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %34, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !11
  store double %38, ptr %15, align 8, !tbaa !11
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.Vessel_t, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %41, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !11
  store double %45, ptr %16, align 8, !tbaa !11
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MAP_OutputType, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  store double %52, ptr %17, align 8, !tbaa !11
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MAP_OutputType, ptr %53, i32 0, i32 3
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !11
  store double %59, ptr %18, align 8, !tbaa !11
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MAP_OutputType, ptr %60, i32 0, i32 5
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !11
  store double %66, ptr %19, align 8, !tbaa !11
  %67 = load double, ptr %19, align 8, !tbaa !11
  %68 = fneg double %67
  %69 = load double, ptr %15, align 8, !tbaa !11
  %70 = load double, ptr %18, align 8, !tbaa !11
  %71 = fneg double %70
  %72 = load double, ptr %16, align 8, !tbaa !11
  %73 = fmul double %71, %72
  %74 = fneg double %73
  %75 = call double @llvm.fmuladd.f64(double %68, double %69, double %74)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = fadd double %80, %75
  store double %81, ptr %79, align 8, !tbaa !11
  %82 = load double, ptr %17, align 8, !tbaa !11
  %83 = fneg double %82
  %84 = load double, ptr %16, align 8, !tbaa !11
  %85 = load double, ptr %19, align 8, !tbaa !11
  %86 = fneg double %85
  %87 = load double, ptr %14, align 8, !tbaa !11
  %88 = fmul double %86, %87
  %89 = fneg double %88
  %90 = call double @llvm.fmuladd.f64(double %83, double %84, double %89)
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %91, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = fadd double %95, %90
  store double %96, ptr %94, align 8, !tbaa !11
  %97 = load double, ptr %18, align 8, !tbaa !11
  %98 = fneg double %97
  %99 = load double, ptr %14, align 8, !tbaa !11
  %100 = load double, ptr %17, align 8, !tbaa !11
  %101 = fneg double %100
  %102 = load double, ptr %15, align 8, !tbaa !11
  %103 = fmul double %101, %102
  %104 = fneg double %103
  %105 = call double @llvm.fmuladd.f64(double %98, double %99, double %104)
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = fadd double %110, %105
  store double %111, ptr %109, align 8, !tbaa !11
  br label %112

112:                                              ; preds = %24
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !9
  br label %20, !llvm.loop !26

115:                                              ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 120}
!14 = !{!"Vessel_t", !15, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !18, i64 144, !18, i64 264, !19, i64 384}
!15 = !{!"EulerAngle_t", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"VarType_t", !6, i64 0, !6, i64 8, !12, i64 16, !17, i64 24, !17, i64 25, !10, i64 28, !10, i64 32}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"Point_t", !16, i64 0, !16, i64 40, !16, i64 80}
!19 = !{!"Force_t", !16, i64 0, !16, i64 40, !16, i64 80}
!20 = !{!14, !6, i64 128}
!21 = !{!14, !6, i64 136}
!22 = !{!23, !6, i64 8}
!23 = !{!"MAP_OutputType", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80}
!24 = !{!23, !6, i64 24}
!25 = !{!23, !6, i64 40}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @set_moment_plus(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = icmp sgt i32 %5, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %8 = getelementptr inbounds i8, ptr %1, i64 120
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 128
  %11 = load ptr, ptr %10, align 8, !tbaa !17
  %12 = getelementptr inbounds i8, ptr %1, i64 136
  %13 = load ptr, ptr %12, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !21
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  %wide.trip.count = zext nneg i32 %5 to i64
  %min.iters.check = icmp ult i32 %5, 22
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %20 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %2, i64 %20
  %scevgep34 = getelementptr i8, ptr %3, i64 %20
  %scevgep35 = getelementptr i8, ptr %4, i64 %20
  %scevgep36 = getelementptr i8, ptr %9, i64 %20
  %scevgep37 = getelementptr i8, ptr %11, i64 %20
  %scevgep38 = getelementptr i8, ptr %13, i64 %20
  %scevgep39 = getelementptr i8, ptr %15, i64 %20
  %scevgep40 = getelementptr i8, ptr %17, i64 %20
  %scevgep41 = getelementptr i8, ptr %19, i64 %20
  %21 = insertelement <8 x ptr> poison, ptr %scevgep34, i64 0
  %22 = insertelement <8 x ptr> %21, ptr %scevgep35, i64 1
  %23 = insertelement <8 x ptr> %22, ptr %scevgep36, i64 2
  %24 = insertelement <8 x ptr> %23, ptr %scevgep37, i64 3
  %25 = insertelement <8 x ptr> %24, ptr %scevgep38, i64 4
  %26 = insertelement <8 x ptr> %25, ptr %scevgep39, i64 5
  %27 = insertelement <8 x ptr> %26, ptr %scevgep40, i64 6
  %28 = insertelement <8 x ptr> %27, ptr %scevgep41, i64 7
  %29 = insertelement <8 x ptr> poison, ptr %2, i64 0
  %30 = shufflevector <8 x ptr> %29, <8 x ptr> poison, <8 x i32> zeroinitializer
  %31 = icmp ugt <8 x ptr> %28, %30
  %32 = insertelement <8 x ptr> poison, ptr %scevgep, i64 0
  %33 = shufflevector <8 x ptr> %32, <8 x ptr> poison, <8 x i32> zeroinitializer
  %34 = insertelement <8 x ptr> poison, ptr %3, i64 0
  %35 = insertelement <8 x ptr> %34, ptr %4, i64 1
  %36 = insertelement <8 x ptr> %35, ptr %9, i64 2
  %37 = insertelement <8 x ptr> %36, ptr %11, i64 3
  %38 = insertelement <8 x ptr> %37, ptr %13, i64 4
  %39 = insertelement <8 x ptr> %38, ptr %15, i64 5
  %40 = insertelement <8 x ptr> %39, ptr %17, i64 6
  %41 = insertelement <8 x ptr> %40, ptr %19, i64 7
  %42 = icmp ugt <8 x ptr> %33, %41
  %43 = and <8 x i1> %31, %42
  %44 = insertelement <4 x ptr> poison, ptr %scevgep35, i64 0
  %45 = insertelement <4 x ptr> %44, ptr %scevgep36, i64 1
  %46 = insertelement <4 x ptr> %45, ptr %scevgep37, i64 2
  %47 = insertelement <4 x ptr> %46, ptr %scevgep38, i64 3
  %48 = insertelement <4 x ptr> poison, ptr %3, i64 0
  %49 = shufflevector <4 x ptr> %48, <4 x ptr> poison, <4 x i32> zeroinitializer
  %50 = icmp ugt <4 x ptr> %47, %49
  %51 = insertelement <4 x ptr> poison, ptr %scevgep34, i64 0
  %52 = shufflevector <4 x ptr> %51, <4 x ptr> poison, <4 x i32> zeroinitializer
  %53 = insertelement <4 x ptr> poison, ptr %4, i64 0
  %54 = insertelement <4 x ptr> %53, ptr %9, i64 1
  %55 = insertelement <4 x ptr> %54, ptr %11, i64 2
  %56 = insertelement <4 x ptr> %55, ptr %13, i64 3
  %57 = icmp ugt <4 x ptr> %52, %56
  %58 = and <4 x i1> %50, %57
  %bound085 = icmp ugt ptr %scevgep39, %3
  %bound186 = icmp ult ptr %15, %scevgep34
  %found.conflict87 = and i1 %bound085, %bound186
  %bound089 = icmp ugt ptr %scevgep40, %3
  %bound190 = icmp ult ptr %17, %scevgep34
  %found.conflict91 = and i1 %bound089, %bound190
  %bound093 = icmp ugt ptr %scevgep41, %3
  %bound194 = icmp ult ptr %19, %scevgep34
  %found.conflict95 = and i1 %bound093, %bound194
  %59 = insertelement <4 x ptr> poison, ptr %scevgep36, i64 0
  %60 = insertelement <4 x ptr> %59, ptr %scevgep37, i64 1
  %61 = insertelement <4 x ptr> %60, ptr %scevgep38, i64 2
  %62 = insertelement <4 x ptr> %61, ptr %scevgep39, i64 3
  %63 = shufflevector <4 x ptr> %53, <4 x ptr> poison, <4 x i32> zeroinitializer
  %64 = icmp ugt <4 x ptr> %62, %63
  %65 = insertelement <4 x ptr> poison, ptr %9, i64 0
  %66 = insertelement <4 x ptr> %65, ptr %11, i64 1
  %67 = insertelement <4 x ptr> %66, ptr %13, i64 2
  %68 = insertelement <4 x ptr> %67, ptr %15, i64 3
  %69 = shufflevector <4 x ptr> %44, <4 x ptr> poison, <4 x i32> zeroinitializer
  %70 = icmp ult <4 x ptr> %68, %69
  %71 = and <4 x i1> %64, %70
  %bound0113 = icmp ugt ptr %scevgep40, %4
  %bound1114 = icmp ult ptr %17, %scevgep35
  %found.conflict115 = and i1 %bound0113, %bound1114
  %bound0117 = icmp ugt ptr %scevgep41, %4
  %bound1118 = icmp ult ptr %19, %scevgep35
  %found.conflict119 = and i1 %bound0117, %bound1118
  %72 = bitcast <8 x i1> %43 to i8
  %73 = icmp ne i8 %72, 0
  %74 = or <4 x i1> %58, %71
  %75 = bitcast <4 x i1> %74 to i4
  %76 = icmp ne i4 %75, 0
  %op.rdx129 = or i1 %73, %76
  %op.rdx130 = or i1 %op.rdx129, %found.conflict87
  %op.rdx131 = or i1 %found.conflict91, %found.conflict95
  %op.rdx132 = or i1 %found.conflict115, %found.conflict119
  %op.rdx133 = or i1 %op.rdx130, %op.rdx131
  %op.rdx134 = or i1 %op.rdx133, %op.rdx132
  br i1 %op.rdx134, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %77 = getelementptr inbounds double, ptr %9, i64 %index
  %wide.load = load <2 x double>, ptr %77, align 8, !tbaa !23, !alias.scope !24
  %78 = getelementptr inbounds double, ptr %11, i64 %index
  %wide.load121 = load <2 x double>, ptr %78, align 8, !tbaa !23, !alias.scope !27
  %79 = getelementptr inbounds double, ptr %13, i64 %index
  %wide.load122 = load <2 x double>, ptr %79, align 8, !tbaa !23, !alias.scope !29
  %80 = getelementptr inbounds double, ptr %15, i64 %index
  %wide.load123 = load <2 x double>, ptr %80, align 8, !tbaa !23, !alias.scope !31
  %81 = getelementptr inbounds double, ptr %17, i64 %index
  %wide.load124 = load <2 x double>, ptr %81, align 8, !tbaa !23, !alias.scope !33
  %82 = getelementptr inbounds double, ptr %19, i64 %index
  %wide.load125 = load <2 x double>, ptr %82, align 8, !tbaa !23, !alias.scope !35
  %83 = fneg <2 x double> %wide.load125
  %84 = fneg <2 x double> %wide.load124
  %85 = fmul <2 x double> %wide.load122, %wide.load124
  %86 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %83, <2 x double> %wide.load121, <2 x double> %85)
  %87 = getelementptr inbounds double, ptr %2, i64 %index
  %wide.load126 = load <2 x double>, ptr %87, align 8, !tbaa !23, !alias.scope !37, !noalias !39
  %88 = fadd <2 x double> %wide.load126, %86
  store <2 x double> %88, ptr %87, align 8, !tbaa !23, !alias.scope !37, !noalias !39
  %89 = fneg <2 x double> %wide.load123
  %90 = fmul <2 x double> %wide.load, %wide.load125
  %91 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %89, <2 x double> %wide.load122, <2 x double> %90)
  %92 = getelementptr inbounds double, ptr %3, i64 %index
  %wide.load127 = load <2 x double>, ptr %92, align 8, !tbaa !23, !alias.scope !42, !noalias !43
  %93 = fadd <2 x double> %91, %wide.load127
  store <2 x double> %93, ptr %92, align 8, !tbaa !23, !alias.scope !42, !noalias !43
  %94 = fmul <2 x double> %wide.load121, %wide.load123
  %95 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %84, <2 x double> %wide.load, <2 x double> %94)
  %96 = getelementptr inbounds double, ptr %4, i64 %index
  %wide.load128 = load <2 x double>, ptr %96, align 8, !tbaa !23, !alias.scope !44, !noalias !45
  %97 = fadd <2 x double> %95, %wide.load128
  store <2 x double> %97, ptr %96, align 8, !tbaa !23, !alias.scope !44, !noalias !45
  %index.next = add nuw i64 %index, 2
  %98 = icmp eq i64 %index.next, %n.vec
  br i1 %98, label %middle.block, label %vector.body, !llvm.loop !46

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

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

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %99 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %100 = load double, ptr %99, align 8, !tbaa !23
  %101 = getelementptr inbounds double, ptr %11, i64 %indvars.iv
  %102 = load double, ptr %101, align 8, !tbaa !23
  %103 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  %106 = load double, ptr %105, align 8, !tbaa !23
  %107 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  %108 = load double, ptr %107, align 8, !tbaa !23
  %109 = getelementptr inbounds double, ptr %19, i64 %indvars.iv
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = fneg double %110
  %112 = fneg double %108
  %113 = fmul double %104, %108
  %114 = tail call double @llvm.fmuladd.f64(double %111, double %102, double %113)
  %115 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %116 = load double, ptr %115, align 8, !tbaa !23
  %117 = fadd double %116, %114
  store double %117, ptr %115, align 8, !tbaa !23
  %118 = fneg double %106
  %119 = fmul double %100, %110
  %120 = tail call double @llvm.fmuladd.f64(double %118, double %104, double %119)
  %121 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %122 = load double, ptr %121, align 8, !tbaa !23
  %123 = fadd double %120, %122
  store double %123, ptr %121, align 8, !tbaa !23
  %124 = fmul double %102, %106
  %125 = tail call double @llvm.fmuladd.f64(double %112, double %100, double %124)
  %126 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %127 = load double, ptr %126, align 8, !tbaa !23
  %128 = fadd double %125, %127
  store double %128, ptr %126, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !50

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %6
  ret i32 0
}

; 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nofree norecurse nosync nounwind memory(read, argmem: 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 #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, !9, i64 120}
!6 = !{!"Vessel_t", !7, i64 0, !9, i64 120, !9, i64 128, !9, i64 136, !15, i64 144, !15, i64 264, !16, i64 384}
!7 = !{!"EulerAngle_t", !8, i64 0, !8, i64 40, !8, i64 80}
!8 = !{!"VarType_t", !9, i64 0, !9, i64 8, !12, i64 16, !13, i64 24, !13, i64 25, !14, i64 28, !14, i64 32}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"double", !10, i64 0}
!13 = !{!"_Bool", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"Point_t", !8, i64 0, !8, i64 40, !8, i64 80}
!16 = !{!"Force_t", !8, i64 0, !8, i64 40, !8, i64 80}
!17 = !{!6, !9, i64 128}
!18 = !{!6, !9, i64 136}
!19 = !{!20, !9, i64 8}
!20 = !{!"MAP_OutputType", !9, i64 0, !9, i64 8, !14, i64 16, !9, i64 24, !14, i64 32, !9, i64 40, !14, i64 48, !9, i64 56, !14, i64 64, !9, i64 72, !14, i64 80}
!21 = !{!20, !9, i64 24}
!22 = !{!20, !9, i64 40}
!23 = !{!12, !12, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = !{!30}
!30 = distinct !{!30, !26}
!31 = !{!32}
!32 = distinct !{!32, !26}
!33 = !{!34}
!34 = distinct !{!34, !26}
!35 = !{!36}
!36 = distinct !{!36, !26}
!37 = !{!38}
!38 = distinct !{!38, !26}
!39 = !{!40, !41, !25, !28, !30, !32, !34, !36}
!40 = distinct !{!40, !26}
!41 = distinct !{!41, !26}
!42 = !{!40}
!43 = !{!41, !25, !28, !30, !32, !34, !36}
!44 = !{!41}
!45 = !{!25, !28, !30, !32, !34, !36}
!46 = distinct !{!46, !47, !48, !49}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!"llvm.loop.isvectorized", i32 1}
!49 = !{!"llvm.loop.unroll.runtime.disable"}
!50 = distinct !{!50, !47, !48}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass