; 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_InputType = type { ptr, 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: nounwind
declare double @cos(double noundef) #1

; Function Attrs: nounwind
declare double @sin(double noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @increment_phi_dof_by_delta(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [3 x [3 x double]], align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.Vessel_t, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %struct.EulerAngle_t, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.VarType_t, ptr %17, i32 0, i32 2
  %19 = load double, ptr %18, align 8, !tbaa !13
  store double %19, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %20 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %21 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
  store double 1.000000e+00, ptr %21, align 16, !tbaa !9
  %22 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %23 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  store double 0.000000e+00, ptr %23, align 8, !tbaa !9
  %24 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 2
  store double 0.000000e+00, ptr %25, align 16, !tbaa !9
  %26 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 1
  %27 = getelementptr inbounds [3 x double], ptr %26, i64 0, i64 0
  store double 0.000000e+00, ptr %27, align 8, !tbaa !9
  %28 = load double, ptr %11, align 8, !tbaa !9
  %29 = load double, ptr %7, align 8, !tbaa !9
  %30 = fadd double %28, %29
  %31 = call double @cos(double noundef %30) #4
  %32 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 1
  %33 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 1
  store double %31, ptr %33, align 8, !tbaa !9
  %34 = load double, ptr %11, align 8, !tbaa !9
  %35 = load double, ptr %7, align 8, !tbaa !9
  %36 = fadd double %34, %35
  %37 = call double @sin(double noundef %36) #4
  %38 = fneg double %37
  %39 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 1
  %40 = getelementptr inbounds [3 x double], ptr %39, i64 0, i64 2
  store double %38, ptr %40, align 8, !tbaa !9
  %41 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 2
  %42 = getelementptr inbounds [3 x double], ptr %41, i64 0, i64 0
  store double 0.000000e+00, ptr %42, align 16, !tbaa !9
  %43 = load double, ptr %11, align 8, !tbaa !9
  %44 = load double, ptr %7, align 8, !tbaa !9
  %45 = fadd double %43, %44
  %46 = call double @sin(double noundef %45) #4
  %47 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 2
  %48 = getelementptr inbounds [3 x double], ptr %47, i64 0, i64 1
  store double %46, ptr %48, align 8, !tbaa !9
  %49 = load double, ptr %11, align 8, !tbaa !9
  %50 = load double, ptr %7, align 8, !tbaa !9
  %51 = fadd double %49, %50
  %52 = call double @cos(double noundef %51) #4
  %53 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 2
  %54 = getelementptr inbounds [3 x double], ptr %53, i64 0, i64 2
  store double %52, ptr %54, align 16, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %124, %4
  %56 = load i32, ptr %9, align 4, !tbaa !11
  %57 = load i32, ptr %8, align 4, !tbaa !11
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %127

59:                                               ; preds = %55
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Vessel_t, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load i32, ptr %9, align 4, !tbaa !11
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !9
  store double %66, ptr %12, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Vessel_t, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = load i32, ptr %9, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %69, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !9
  store double %73, ptr %13, align 8, !tbaa !9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Vessel_t, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %77 = load i32, ptr %9, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !9
  store double %80, ptr %14, align 8, !tbaa !9
  %81 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %82 = getelementptr inbounds [3 x double], ptr %81, i64 0, i64 0
  %83 = load double, ptr %82, align 16, !tbaa !9
  %84 = load double, ptr %12, align 8, !tbaa !9
  %85 = fmul double %83, %84
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MAP_InputType, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = load i32, ptr %9, align 4, !tbaa !11
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  store double %85, ptr %91, align 8, !tbaa !9
  %92 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 1
  %93 = getelementptr inbounds [3 x double], ptr %92, i64 0, i64 1
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = load double, ptr %13, align 8, !tbaa !9
  %96 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 1
  %97 = getelementptr inbounds [3 x double], ptr %96, i64 0, i64 2
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = load double, ptr %14, align 8, !tbaa !9
  %100 = fmul double %98, %99
  %101 = call double @llvm.fmuladd.f64(double %94, double %95, double %100)
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.MAP_InputType, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = load i32, ptr %9, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double %101, ptr %107, align 8, !tbaa !9
  %108 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 2
  %109 = getelementptr inbounds [3 x double], ptr %108, i64 0, i64 1
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = load double, ptr %13, align 8, !tbaa !9
  %112 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 2
  %113 = getelementptr inbounds [3 x double], ptr %112, i64 0, i64 2
  %114 = load double, ptr %113, align 16, !tbaa !9
  %115 = load double, ptr %14, align 8, !tbaa !9
  %116 = fmul double %114, %115
  %117 = call double @llvm.fmuladd.f64(double %110, double %111, double %116)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MAP_InputType, ptr %118, i32 0, i32 5
  %120 = load ptr, ptr %119, align 8, !tbaa !26
  %121 = load i32, ptr %9, align 4, !tbaa !11
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  store double %117, ptr %123, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %59
  %125 = load i32, ptr %9, align 4, !tbaa !11
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %9, align 4, !tbaa !11
  br label %55, !llvm.loop !27

127:                                              ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 16}
!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, !10, i64 16, !17, i64 24, !17, i64 25, !12, i64 28, !12, 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 120}
!21 = !{!14, !6, i64 128}
!22 = !{!14, !6, i64 136}
!23 = !{!24, !6, i64 8}
!24 = !{!"MAP_InputType", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48}
!25 = !{!24, !6, i64 24}
!26 = !{!24, !6, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"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 nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(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: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local noundef i32 @increment_phi_dof_by_delta(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, double noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = fadd double %6, %2
  %8 = tail call double @cos(double noundef %7) #4
  %9 = tail call double @sin(double noundef %7) #4
  %10 = fneg double %9
  %11 = tail call double @sin(double noundef %7) #4
  %12 = tail call double @cos(double noundef %7) #4
  %13 = icmp sgt i32 %3, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

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

vector.memcheck:                                  ; preds = %.lr.ph
  %26 = ptrtoint ptr %25 to i64
  %27 = ptrtoint ptr %23 to i64
  %28 = ptrtoint ptr %21 to i64
  %29 = ptrtoint ptr %19 to i64
  %30 = ptrtoint ptr %17 to i64
  %31 = ptrtoint ptr %15 to i64
  %32 = sub i64 %27, %28
  %diff.check = icmp ult i64 %32, 16
  %33 = sub i64 %26, %28
  %diff.check30 = icmp ult i64 %33, 16
  %conflict.rdx = or i1 %diff.check, %diff.check30
  %34 = sub i64 %28, %31
  %diff.check31 = icmp ult i64 %34, 16
  %conflict.rdx32 = or i1 %conflict.rdx, %diff.check31
  %35 = sub i64 %28, %30
  %diff.check33 = icmp ult i64 %35, 16
  %conflict.rdx34 = or i1 %conflict.rdx32, %diff.check33
  %36 = sub i64 %28, %29
  %diff.check35 = icmp ult i64 %36, 16
  %conflict.rdx36 = or i1 %conflict.rdx34, %diff.check35
  %37 = sub i64 %26, %27
  %diff.check37 = icmp ult i64 %37, 16
  %conflict.rdx38 = or i1 %conflict.rdx36, %diff.check37
  %38 = sub i64 %27, %31
  %diff.check39 = icmp ult i64 %38, 16
  %conflict.rdx40 = or i1 %conflict.rdx38, %diff.check39
  %39 = sub i64 %27, %30
  %diff.check41 = icmp ult i64 %39, 16
  %conflict.rdx42 = or i1 %conflict.rdx40, %diff.check41
  %40 = sub i64 %27, %29
  %diff.check43 = icmp ult i64 %40, 16
  %conflict.rdx44 = or i1 %conflict.rdx42, %diff.check43
  %41 = sub i64 %26, %31
  %diff.check45 = icmp ult i64 %41, 16
  %conflict.rdx46 = or i1 %conflict.rdx44, %diff.check45
  %42 = sub i64 %26, %30
  %diff.check47 = icmp ult i64 %42, 16
  %conflict.rdx48 = or i1 %conflict.rdx46, %diff.check47
  %43 = sub i64 %26, %29
  %diff.check49 = icmp ult i64 %43, 16
  %conflict.rdx50 = or i1 %conflict.rdx48, %diff.check49
  br i1 %conflict.rdx50, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  %broadcast.splatinsert = insertelement <2 x double> poison, double %10, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert53 = insertelement <2 x double> poison, double %8, i64 0
  %broadcast.splat54 = shufflevector <2 x double> %broadcast.splatinsert53, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert55 = insertelement <2 x double> poison, double %12, i64 0
  %broadcast.splat56 = shufflevector <2 x double> %broadcast.splatinsert55, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert57 = insertelement <2 x double> poison, double %11, i64 0
  %broadcast.splat58 = shufflevector <2 x double> %broadcast.splatinsert57, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %44 = getelementptr inbounds double, ptr %15, i64 %index
  %wide.load = load <2 x double>, ptr %44, align 8, !tbaa !24
  %45 = getelementptr inbounds double, ptr %17, i64 %index
  %wide.load51 = load <2 x double>, ptr %45, align 8, !tbaa !24
  %46 = getelementptr inbounds double, ptr %19, i64 %index
  %wide.load52 = load <2 x double>, ptr %46, align 8, !tbaa !24
  %47 = getelementptr inbounds double, ptr %21, i64 %index
  store <2 x double> %wide.load, ptr %47, align 8, !tbaa !24
  %48 = fmul <2 x double> %wide.load52, %broadcast.splat
  %49 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat54, <2 x double> %wide.load51, <2 x double> %48)
  %50 = getelementptr inbounds double, ptr %23, i64 %index
  store <2 x double> %49, ptr %50, align 8, !tbaa !24
  %51 = fmul <2 x double> %broadcast.splat56, %wide.load52
  %52 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat58, <2 x double> %wide.load51, <2 x double> %51)
  %53 = getelementptr inbounds double, ptr %25, i64 %index
  store <2 x double> %52, ptr %53, align 8, !tbaa !24
  %index.next = add nuw i64 %index, 2
  %54 = icmp eq i64 %index.next, %n.vec
  br i1 %54, label %middle.block, label %vector.body, !llvm.loop !25

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 ]
  %55 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  %56 = load double, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  %58 = load double, ptr %57, align 8, !tbaa !24
  %59 = getelementptr inbounds double, ptr %19, i64 %indvars.iv
  %60 = load double, ptr %59, align 8, !tbaa !24
  %61 = getelementptr inbounds double, ptr %21, i64 %indvars.iv
  store double %56, ptr %61, align 8, !tbaa !24
  %62 = fmul double %60, %10
  %63 = tail call double @llvm.fmuladd.f64(double %8, double %58, double %62)
  %64 = getelementptr inbounds double, ptr %23, i64 %indvars.iv
  store double %63, ptr %64, align 8, !tbaa !24
  %65 = fmul double %12, %60
  %66 = tail call double @llvm.fmuladd.f64(double %11, double %58, double %65)
  %67 = getelementptr inbounds double, ptr %25, i64 %indvars.iv
  store double %66, ptr %67, align 8, !tbaa !24
  %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 !29

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %4
  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>) #3

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !12, i64 16}
!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 120}
!18 = !{!6, !9, i64 128}
!19 = !{!6, !9, i64 136}
!20 = !{!21, !9, i64 8}
!21 = !{!"MAP_InputType", !9, i64 0, !9, i64 8, !14, i64 16, !9, i64 24, !14, i64 32, !9, i64 40, !14, i64 48}
!22 = !{!21, !9, i64 24}
!23 = !{!21, !9, i64 40}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}


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