; LLVM IR from kostya/crystal-benchmarks-game :: nbody (nbody)

; 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.planet = type { double, double, double, double, double, double, double }

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

17:                                               ; preds = %142, %3
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %145

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.planet, ptr %22, i64 %24
  store ptr %25, ptr %9, align 8, !tbaa !9
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %8, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %138, %21
  %29 = load i32, ptr %8, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %32, label %141

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.planet, ptr %33, i64 %35
  store ptr %36, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.planet, ptr %37, i32 0, i32 0
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = load ptr, ptr %10, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.planet, ptr %40, i32 0, i32 0
  %42 = load double, ptr %41, align 8, !tbaa !13
  %43 = fsub double %39, %42
  store double %43, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %44 = load ptr, ptr %9, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.planet, ptr %44, i32 0, i32 1
  %46 = load double, ptr %45, align 8, !tbaa !15
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.planet, ptr %47, i32 0, i32 1
  %49 = load double, ptr %48, align 8, !tbaa !15
  %50 = fsub double %46, %49
  store double %50, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.planet, ptr %51, i32 0, i32 2
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = load ptr, ptr %10, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.planet, ptr %54, i32 0, i32 2
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = fsub double %53, %56
  store double %57, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %58 = load double, ptr %11, align 8, !tbaa !11
  %59 = load double, ptr %11, align 8, !tbaa !11
  %60 = load double, ptr %12, align 8, !tbaa !11
  %61 = load double, ptr %12, align 8, !tbaa !11
  %62 = fmul double %60, %61
  %63 = call double @llvm.fmuladd.f64(double %58, double %59, double %62)
  %64 = load double, ptr %13, align 8, !tbaa !11
  %65 = load double, ptr %13, align 8, !tbaa !11
  %66 = call double @llvm.fmuladd.f64(double %64, double %65, double %63)
  %67 = call double @sqrt(double noundef %66) #4
  store double %67, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %68 = load double, ptr %6, align 8, !tbaa !11
  %69 = load double, ptr %14, align 8, !tbaa !11
  %70 = load double, ptr %14, align 8, !tbaa !11
  %71 = fmul double %69, %70
  %72 = load double, ptr %14, align 8, !tbaa !11
  %73 = fmul double %71, %72
  %74 = fdiv double %68, %73
  store double %74, ptr %15, align 8, !tbaa !11
  %75 = load double, ptr %11, align 8, !tbaa !11
  %76 = load ptr, ptr %10, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.planet, ptr %76, i32 0, i32 6
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = fmul double %75, %78
  %80 = load double, ptr %15, align 8, !tbaa !11
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.planet, ptr %81, i32 0, i32 3
  %83 = load double, ptr %82, align 8, !tbaa !18
  %84 = fneg double %79
  %85 = call double @llvm.fmuladd.f64(double %84, double %80, double %83)
  store double %85, ptr %82, align 8, !tbaa !18
  %86 = load double, ptr %12, align 8, !tbaa !11
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.planet, ptr %87, i32 0, i32 6
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = fmul double %86, %89
  %91 = load double, ptr %15, align 8, !tbaa !11
  %92 = load ptr, ptr %9, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.planet, ptr %92, i32 0, i32 4
  %94 = load double, ptr %93, align 8, !tbaa !19
  %95 = fneg double %90
  %96 = call double @llvm.fmuladd.f64(double %95, double %91, double %94)
  store double %96, ptr %93, align 8, !tbaa !19
  %97 = load double, ptr %13, align 8, !tbaa !11
  %98 = load ptr, ptr %10, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.planet, ptr %98, i32 0, i32 6
  %100 = load double, ptr %99, align 8, !tbaa !17
  %101 = fmul double %97, %100
  %102 = load double, ptr %15, align 8, !tbaa !11
  %103 = load ptr, ptr %9, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.planet, ptr %103, i32 0, i32 5
  %105 = load double, ptr %104, align 8, !tbaa !20
  %106 = fneg double %101
  %107 = call double @llvm.fmuladd.f64(double %106, double %102, double %105)
  store double %107, ptr %104, align 8, !tbaa !20
  %108 = load double, ptr %11, align 8, !tbaa !11
  %109 = load ptr, ptr %9, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.planet, ptr %109, i32 0, i32 6
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = fmul double %108, %111
  %113 = load double, ptr %15, align 8, !tbaa !11
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.planet, ptr %114, i32 0, i32 3
  %116 = load double, ptr %115, align 8, !tbaa !18
  %117 = call double @llvm.fmuladd.f64(double %112, double %113, double %116)
  store double %117, ptr %115, align 8, !tbaa !18
  %118 = load double, ptr %12, align 8, !tbaa !11
  %119 = load ptr, ptr %9, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.planet, ptr %119, i32 0, i32 6
  %121 = load double, ptr %120, align 8, !tbaa !17
  %122 = fmul double %118, %121
  %123 = load double, ptr %15, align 8, !tbaa !11
  %124 = load ptr, ptr %10, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.planet, ptr %124, i32 0, i32 4
  %126 = load double, ptr %125, align 8, !tbaa !19
  %127 = call double @llvm.fmuladd.f64(double %122, double %123, double %126)
  store double %127, ptr %125, align 8, !tbaa !19
  %128 = load double, ptr %13, align 8, !tbaa !11
  %129 = load ptr, ptr %9, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.planet, ptr %129, i32 0, i32 6
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = fmul double %128, %131
  %133 = load double, ptr %15, align 8, !tbaa !11
  %134 = load ptr, ptr %10, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.planet, ptr %134, i32 0, i32 5
  %136 = load double, ptr %135, align 8, !tbaa !20
  %137 = call double @llvm.fmuladd.f64(double %132, double %133, double %136)
  store double %137, ptr %135, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  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 8, ptr %10) #4
  br label %138

138:                                              ; preds = %32
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %8, align 4, !tbaa !5
  br label %28, !llvm.loop !21

141:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %7, align 4, !tbaa !5
  br label %17, !llvm.loop !23

145:                                              ; preds = %17
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %179, %145
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %182

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %151 = load ptr, ptr %5, align 8, !tbaa !9
  %152 = load i32, ptr %7, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.planet, ptr %151, i64 %153
  store ptr %154, ptr %16, align 8, !tbaa !9
  %155 = load double, ptr %6, align 8, !tbaa !11
  %156 = load ptr, ptr %16, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.planet, ptr %156, i32 0, i32 3
  %158 = load double, ptr %157, align 8, !tbaa !18
  %159 = load ptr, ptr %16, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.planet, ptr %159, i32 0, i32 0
  %161 = load double, ptr %160, align 8, !tbaa !13
  %162 = call double @llvm.fmuladd.f64(double %155, double %158, double %161)
  store double %162, ptr %160, align 8, !tbaa !13
  %163 = load double, ptr %6, align 8, !tbaa !11
  %164 = load ptr, ptr %16, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.planet, ptr %164, i32 0, i32 4
  %166 = load double, ptr %165, align 8, !tbaa !19
  %167 = load ptr, ptr %16, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.planet, ptr %167, i32 0, i32 1
  %169 = load double, ptr %168, align 8, !tbaa !15
  %170 = call double @llvm.fmuladd.f64(double %163, double %166, double %169)
  store double %170, ptr %168, align 8, !tbaa !15
  %171 = load double, ptr %6, align 8, !tbaa !11
  %172 = load ptr, ptr %16, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.planet, ptr %172, i32 0, i32 5
  %174 = load double, ptr %173, align 8, !tbaa !20
  %175 = load ptr, ptr %16, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.planet, ptr %175, i32 0, i32 2
  %177 = load double, ptr %176, align 8, !tbaa !16
  %178 = call double @llvm.fmuladd.f64(double %171, double %174, double %177)
  store double %178, ptr %176, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %179

179:                                              ; preds = %150
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %7, align 4, !tbaa !5
  br label %146, !llvm.loop !24

182:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"planet", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 16}
!17 = !{!14, !12, i64 48}
!18 = !{!14, !12, i64 24}
!19 = !{!14, !12, i64 32}
!20 = !{!14, !12, i64 40}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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"

%struct.planet = type { double, double, double, double, double, double, double }

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @advance(i32 noundef %0, ptr nocapture noundef %1, double noundef %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %0, 0
  br i1 %4, label %.lr.ph69.preheader, label %._crit_edge

.lr.ph69.preheader:                               ; preds = %3
  %5 = zext nneg i32 %0 to i64
  %wide.trip.count78 = zext nneg i32 %0 to i64
  br label %.lr.ph69

.loopexit:                                        ; preds = %20, %.lr.ph69
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count78
  br i1 %exitcond79.not, label %.preheader, label %.lr.ph69, !llvm.loop !5

.preheader:                                       ; preds = %.loopexit
  br i1 %4, label %.lr.ph71.preheader, label %._crit_edge

.lr.ph71.preheader:                               ; preds = %.preheader
  %6 = insertelement <2 x double> poison, double %2, i64 0
  %7 = shufflevector <2 x double> %6, <2 x double> poison, <2 x i32> zeroinitializer
  %xtraiter = and i64 %wide.trip.count78, 1
  %8 = icmp eq i32 %0, 1
  br i1 %8, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph71.preheader.new

.lr.ph71.preheader.new:                           ; preds = %.lr.ph71.preheader
  %unroll_iter = and i64 %wide.trip.count78, 2147483646
  br label %.lr.ph71

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %.loopexit
  %indvars.iv75 = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next76, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph69.preheader ], [ %indvars.iv.next, %.loopexit ]
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %9 = icmp ult i64 %indvars.iv.next76, %5
  br i1 %9, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph69
  %10 = getelementptr inbounds %struct.planet, ptr %1, i64 %indvars.iv75
  %11 = load <2 x double>, ptr %10, align 8, !tbaa !7
  %12 = getelementptr inbounds i8, ptr %10, i64 16
  %13 = load double, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %10, i64 24
  %15 = getelementptr inbounds i8, ptr %10, i64 40
  %16 = getelementptr inbounds i8, ptr %10, i64 48
  %17 = load double, ptr %16, align 8, !tbaa !13
  %18 = insertelement <2 x double> poison, double %17, i64 0
  %19 = shufflevector <2 x double> %18, <2 x double> poison, <2 x i32> zeroinitializer
  br label %20

20:                                               ; preds = %.lr.ph, %20
  %indvars.iv72 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next73, %20 ]
  %21 = getelementptr inbounds %struct.planet, ptr %1, i64 %indvars.iv72
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = fsub double %13, %23
  %25 = getelementptr inbounds i8, ptr %21, i64 48
  %26 = load double, ptr %25, align 8, !tbaa !13
  %27 = load double, ptr %15, align 8, !tbaa !14
  %28 = fneg double %24
  %29 = fmul double %26, %28
  %30 = getelementptr inbounds i8, ptr %21, i64 24
  %31 = load <2 x double>, ptr %21, align 8, !tbaa !7
  %32 = fsub <2 x double> %11, %31
  %33 = fmul <2 x double> %32, %32
  %34 = extractelement <2 x double> %33, i64 1
  %35 = extractelement <2 x double> %32, i64 0
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %34)
  %37 = tail call double @llvm.fmuladd.f64(double %24, double %24, double %36)
  %sqrt = tail call double @llvm.sqrt.f64(double %37)
  %38 = fmul double %sqrt, %sqrt
  %39 = fmul double %sqrt, %38
  %40 = fdiv double %2, %39
  %41 = load <2 x double>, ptr %14, align 8, !tbaa !7
  %42 = fneg <2 x double> %32
  %43 = insertelement <2 x double> poison, double %26, i64 0
  %44 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> zeroinitializer
  %45 = fmul <2 x double> %44, %42
  %46 = insertelement <2 x double> poison, double %40, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %47, <2 x double> %41)
  store <2 x double> %48, ptr %14, align 8, !tbaa !7
  %49 = tail call double @llvm.fmuladd.f64(double %29, double %40, double %27)
  store double %49, ptr %15, align 8, !tbaa !14
  %50 = fmul <2 x double> %32, %19
  %51 = load <2 x double>, ptr %30, align 8, !tbaa !7
  %52 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %50, <2 x double> %47, <2 x double> %51)
  store <2 x double> %52, ptr %30, align 8, !tbaa !7
  %53 = fmul double %24, %17
  %54 = getelementptr inbounds i8, ptr %21, i64 40
  %55 = load double, ptr %54, align 8, !tbaa !14
  %56 = tail call double @llvm.fmuladd.f64(double %53, double %40, double %55)
  store double %56, ptr %54, align 8, !tbaa !14
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next73, %wide.trip.count78
  br i1 %exitcond.not, label %.loopexit, label %20, !llvm.loop !15

.lr.ph71:                                         ; preds = %.lr.ph71, %.lr.ph71.preheader.new
  %indvars.iv80 = phi i64 [ 0, %.lr.ph71.preheader.new ], [ %indvars.iv.next81.1, %.lr.ph71 ]
  %niter = phi i64 [ 0, %.lr.ph71.preheader.new ], [ %niter.next.1, %.lr.ph71 ]
  %57 = getelementptr inbounds %struct.planet, ptr %1, i64 %indvars.iv80
  %58 = getelementptr inbounds i8, ptr %57, i64 24
  %59 = load <2 x double>, ptr %58, align 8, !tbaa !7
  %60 = load <2 x double>, ptr %57, align 8, !tbaa !7
  %61 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %7, <2 x double> %59, <2 x double> %60)
  store <2 x double> %61, ptr %57, align 8, !tbaa !7
  %62 = getelementptr inbounds i8, ptr %57, i64 40
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %57, i64 16
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = tail call double @llvm.fmuladd.f64(double %2, double %63, double %65)
  store double %66, ptr %64, align 8, !tbaa !11
  %indvars.iv.next81 = or disjoint i64 %indvars.iv80, 1
  %67 = getelementptr inbounds %struct.planet, ptr %1, i64 %indvars.iv.next81
  %68 = getelementptr inbounds i8, ptr %67, i64 24
  %69 = load <2 x double>, ptr %68, align 8, !tbaa !7
  %70 = load <2 x double>, ptr %67, align 8, !tbaa !7
  %71 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %7, <2 x double> %69, <2 x double> %70)
  store <2 x double> %71, ptr %67, align 8, !tbaa !7
  %72 = getelementptr inbounds i8, ptr %67, i64 40
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = getelementptr inbounds i8, ptr %67, i64 16
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = tail call double @llvm.fmuladd.f64(double %2, double %73, double %75)
  store double %76, ptr %74, align 8, !tbaa !11
  %indvars.iv.next81.1 = add nuw nsw i64 %indvars.iv80, 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.loopexit.unr-lcssa, label %.lr.ph71, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph71, %.lr.ph71.preheader
  %indvars.iv80.unr = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next81.1, %.lr.ph71 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph71.epil

.lr.ph71.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa
  %77 = getelementptr inbounds %struct.planet, ptr %1, i64 %indvars.iv80.unr
  %78 = getelementptr inbounds i8, ptr %77, i64 24
  %79 = load <2 x double>, ptr %78, align 8, !tbaa !7
  %80 = load <2 x double>, ptr %77, align 8, !tbaa !7
  %81 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %7, <2 x double> %79, <2 x double> %80)
  store <2 x double> %81, ptr %77, align 8, !tbaa !7
  %82 = getelementptr inbounds i8, ptr %77, i64 40
  %83 = load double, ptr %82, align 8, !tbaa !14
  %84 = getelementptr inbounds i8, ptr %77, i64 16
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = tail call double @llvm.fmuladd.f64(double %2, double %83, double %85)
  store double %86, ptr %84, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph71.epil, %._crit_edge.loopexit.unr-lcssa, %3, %.preheader
  ret void
}

; 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 double @llvm.sqrt.f64(double) #2

; 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(argmem: readwrite) 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 16}
!12 = !{!"planet", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!13 = !{!12, !8, i64 48}
!14 = !{!12, !8, i64 40}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass