; LLVM IR from faishasj/cpparticles :: src/particle.ll (ZN8Particle7collideEPS_)

; 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.Vector = type { float, float }
%class.Particle = type { float, float, float, float, float, float, float, float, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5hypotff(float noundef, float noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Particle7collideEPS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.Vector, align 4
  %12 = alloca %struct.Vector, align 4
  %13 = alloca %struct.Vector, align 4
  %14 = alloca %struct.Vector, align 4
  %15 = alloca %struct.Vector, align 4
  %16 = alloca %struct.Vector, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %20 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 6
  %21 = load float, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.Particle, ptr %22, i32 0, i32 6
  %24 = load float, ptr %23, align 8, !tbaa !9
  %25 = fsub float %21, %24
  store float %25, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %26 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 7
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.Particle, ptr %28, i32 0, i32 7
  %30 = load float, ptr %29, align 4, !tbaa !13
  %31 = fsub float %27, %30
  store float %31, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %32 = load float, ptr %5, align 4, !tbaa !12
  %33 = load float, ptr %6, align 4, !tbaa !12
  %34 = call noundef float @_ZSt5hypotff(float noundef %32, float noundef %33)
  store float %34, ptr %7, align 4, !tbaa !12
  %35 = load float, ptr %7, align 4, !tbaa !12
  %36 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 4
  %37 = load float, ptr %36, align 8, !tbaa !14
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.Particle, ptr %38, i32 0, i32 4
  %40 = load float, ptr %39, align 8, !tbaa !14
  %41 = fadd float %37, %40
  %42 = fcmp olt float %35, %41
  br i1 %42, label %43, label %187

43:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %44 = load float, ptr %6, align 4, !tbaa !12
  %45 = load float, ptr %5, align 4, !tbaa !12
  %46 = call noundef float @_ZSt5atan2ff(float noundef %44, float noundef %45)
  store float %46, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %47 = load float, ptr %8, align 4, !tbaa !12
  %48 = fpext float %47 to double
  %49 = fadd double 0x3FF921FB54442D18, %48
  %50 = fptrunc double %49 to float
  store float %50, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %51 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 3
  %52 = load float, ptr %51, align 4, !tbaa !15
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.Particle, ptr %53, i32 0, i32 3
  %55 = load float, ptr %54, align 4, !tbaa !15
  %56 = fadd float %52, %55
  store float %56, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %57 = getelementptr inbounds %struct.Vector, ptr %12, i32 0, i32 0
  %58 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 0
  %59 = load float, ptr %58, align 8, !tbaa !16
  store float %59, ptr %57, align 4, !tbaa !17
  %60 = getelementptr inbounds %struct.Vector, ptr %12, i32 0, i32 1
  %61 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 5
  %62 = load float, ptr %61, align 4, !tbaa !19
  %63 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 3
  %64 = load float, ptr %63, align 4, !tbaa !15
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Particle, ptr %65, i32 0, i32 3
  %67 = load float, ptr %66, align 4, !tbaa !15
  %68 = fsub float %64, %67
  %69 = fmul float %62, %68
  %70 = load float, ptr %10, align 4, !tbaa !12
  %71 = fdiv float %69, %70
  store float %71, ptr %60, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %72 = getelementptr inbounds %struct.Vector, ptr %13, i32 0, i32 0
  %73 = load float, ptr %9, align 4, !tbaa !12
  store float %73, ptr %72, align 4, !tbaa !17
  %74 = getelementptr inbounds %struct.Vector, ptr %13, i32 0, i32 1
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.Particle, ptr %75, i32 0, i32 5
  %77 = load float, ptr %76, align 4, !tbaa !19
  %78 = fmul float 2.000000e+00, %77
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.Particle, ptr %79, i32 0, i32 3
  %81 = load float, ptr %80, align 4, !tbaa !15
  %82 = fmul float %78, %81
  %83 = load float, ptr %10, align 4, !tbaa !12
  %84 = fdiv float %82, %83
  store float %84, ptr %74, align 4, !tbaa !20
  %85 = call <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %85, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %86 = getelementptr inbounds %struct.Vector, ptr %15, i32 0, i32 0
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.Particle, ptr %87, i32 0, i32 0
  %89 = load float, ptr %88, align 8, !tbaa !16
  store float %89, ptr %86, align 4, !tbaa !17
  %90 = getelementptr inbounds %struct.Vector, ptr %15, i32 0, i32 1
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.Particle, ptr %91, i32 0, i32 5
  %93 = load float, ptr %92, align 4, !tbaa !19
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.Particle, ptr %94, i32 0, i32 3
  %96 = load float, ptr %95, align 4, !tbaa !15
  %97 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 3
  %98 = load float, ptr %97, align 4, !tbaa !15
  %99 = fsub float %96, %98
  %100 = fmul float %93, %99
  %101 = load float, ptr %10, align 4, !tbaa !12
  %102 = fdiv float %100, %101
  store float %102, ptr %90, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %103 = getelementptr inbounds %struct.Vector, ptr %16, i32 0, i32 0
  %104 = load float, ptr %9, align 4, !tbaa !12
  %105 = fpext float %104 to double
  %106 = fadd double %105, 0x400921FB54442D18
  %107 = fptrunc double %106 to float
  store float %107, ptr %103, align 4, !tbaa !17
  %108 = getelementptr inbounds %struct.Vector, ptr %16, i32 0, i32 1
  %109 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 5
  %110 = load float, ptr %109, align 4, !tbaa !19
  %111 = fmul float 2.000000e+00, %110
  %112 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 3
  %113 = load float, ptr %112, align 4, !tbaa !15
  %114 = fmul float %111, %113
  %115 = load float, ptr %10, align 4, !tbaa !12
  %116 = fdiv float %114, %115
  store float %116, ptr %108, align 4, !tbaa !20
  %117 = call <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %117, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %118 = getelementptr inbounds %struct.Vector, ptr %11, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !17
  %120 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 0
  store float %119, ptr %120, align 8, !tbaa !16
  %121 = getelementptr inbounds %struct.Vector, ptr %11, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !20
  %123 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 5
  store float %122, ptr %123, align 4, !tbaa !19
  %124 = getelementptr inbounds %struct.Vector, ptr %14, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !17
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.Particle, ptr %126, i32 0, i32 0
  store float %125, ptr %127, align 8, !tbaa !16
  %128 = getelementptr inbounds %struct.Vector, ptr %14, i32 0, i32 1
  %129 = load float, ptr %128, align 4, !tbaa !20
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %class.Particle, ptr %130, i32 0, i32 5
  store float %129, ptr %131, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %132 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 2
  %133 = load float, ptr %132, align 8, !tbaa !21
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %class.Particle, ptr %134, i32 0, i32 2
  %136 = load float, ptr %135, align 8, !tbaa !21
  %137 = fmul float %133, %136
  store float %137, ptr %17, align 4, !tbaa !12
  %138 = load float, ptr %17, align 4, !tbaa !12
  %139 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 5
  %140 = load float, ptr %139, align 4, !tbaa !19
  %141 = fmul float %140, %138
  store float %141, ptr %139, align 4, !tbaa !19
  %142 = load float, ptr %17, align 4, !tbaa !12
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.Particle, ptr %143, i32 0, i32 5
  %145 = load float, ptr %144, align 4, !tbaa !19
  %146 = fmul float %145, %142
  store float %146, ptr %144, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %147 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 4
  %148 = load float, ptr %147, align 8, !tbaa !14
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.Particle, ptr %149, i32 0, i32 4
  %151 = load float, ptr %150, align 8, !tbaa !14
  %152 = fadd float %148, %151
  %153 = load float, ptr %7, align 4, !tbaa !12
  %154 = fsub float %152, %153
  %155 = fadd float %154, 1.000000e+00
  %156 = fpext float %155 to double
  %157 = fmul double 5.000000e-01, %156
  %158 = fptrunc double %157 to float
  store float %158, ptr %18, align 4, !tbaa !12
  %159 = load float, ptr %9, align 4, !tbaa !12
  %160 = call noundef float @_ZSt3sinf(float noundef %159)
  %161 = load float, ptr %18, align 4, !tbaa !12
  %162 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 6
  %163 = load float, ptr %162, align 8, !tbaa !9
  %164 = call float @llvm.fmuladd.f32(float %160, float %161, float %163)
  store float %164, ptr %162, align 8, !tbaa !9
  %165 = load float, ptr %9, align 4, !tbaa !12
  %166 = call noundef float @_ZSt3cosf(float noundef %165)
  %167 = load float, ptr %18, align 4, !tbaa !12
  %168 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 7
  %169 = load float, ptr %168, align 4, !tbaa !13
  %170 = fneg float %166
  %171 = call float @llvm.fmuladd.f32(float %170, float %167, float %169)
  store float %171, ptr %168, align 4, !tbaa !13
  %172 = load float, ptr %9, align 4, !tbaa !12
  %173 = call noundef float @_ZSt3sinf(float noundef %172)
  %174 = load float, ptr %18, align 4, !tbaa !12
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %class.Particle, ptr %175, i32 0, i32 6
  %177 = load float, ptr %176, align 8, !tbaa !9
  %178 = fneg float %173
  %179 = call float @llvm.fmuladd.f32(float %178, float %174, float %177)
  store float %179, ptr %176, align 8, !tbaa !9
  %180 = load float, ptr %9, align 4, !tbaa !12
  %181 = call noundef float @_ZSt3cosf(float noundef %180)
  %182 = load float, ptr %18, align 4, !tbaa !12
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %class.Particle, ptr %183, i32 0, i32 7
  %185 = load float, ptr %184, align 4, !tbaa !13
  %186 = call float @llvm.fmuladd.f32(float %181, float %182, float %185)
  store float %186, ptr %184, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %187

187:                                              ; preds = %43, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"_ZTS8Particle", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !6, i64 32}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 28}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !11, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTS6Vector", !11, i64 0, !11, i64 4}
!19 = !{!10, !11, i64 20}
!20 = !{!18, !11, i64 4}
!21 = !{!10, !11, i64 8}


; 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.Vector = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5hypotff(float noundef, float noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Particle7collideEPS_(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture noundef %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %struct.Vector, align 4
  %4 = alloca %struct.Vector, align 4
  %5 = alloca %struct.Vector, align 4
  %6 = alloca %struct.Vector, align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load float, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load float, ptr %9, align 8, !tbaa !5
  %11 = fsub float %8, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %13 = load float, ptr %12, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %1, i64 28
  %15 = load float, ptr %14, align 4, !tbaa !11
  %16 = fsub float %13, %15
  %17 = tail call noundef float @_ZSt5hypotff(float noundef %11, float noundef %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load float, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  %21 = load float, ptr %20, align 8, !tbaa !12
  %22 = fadd float %19, %21
  %23 = fcmp olt float %17, %22
  br i1 %23, label %24, label %94

24:                                               ; preds = %2
  %25 = tail call noundef float @_ZSt5atan2ff(float noundef %16, float noundef %11)
  %26 = fpext float %25 to double
  %27 = fadd double %26, 0x3FF921FB54442D18
  %28 = fptrunc double %27 to float
  %29 = getelementptr inbounds i8, ptr %0, i64 12
  %30 = load float, ptr %29, align 4, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %1, i64 12
  %32 = load float, ptr %31, align 4, !tbaa !13
  %33 = fadd float %30, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %34 = load float, ptr %0, align 8, !tbaa !14
  store float %34, ptr %3, align 4, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = getelementptr inbounds i8, ptr %0, i64 20
  %37 = load float, ptr %36, align 4, !tbaa !17
  %38 = fsub float %30, %32
  %39 = fmul float %38, %37
  %40 = fdiv float %39, %33
  store float %40, ptr %35, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store float %28, ptr %4, align 4, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %4, i64 4
  %42 = getelementptr inbounds i8, ptr %1, i64 20
  %43 = load float, ptr %42, align 4, !tbaa !17
  %44 = fmul float %43, 2.000000e+00
  %45 = fmul float %32, %44
  %46 = fdiv float %45, %33
  store float %46, ptr %41, align 4, !tbaa !18
  %47 = call <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %48 = load float, ptr %1, align 8, !tbaa !14
  store float %48, ptr %5, align 4, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %5, i64 4
  %50 = load float, ptr %42, align 4, !tbaa !17
  %51 = load float, ptr %31, align 4, !tbaa !13
  %52 = load float, ptr %29, align 4, !tbaa !13
  %53 = fsub float %51, %52
  %54 = fmul float %50, %53
  %55 = fdiv float %54, %33
  store float %55, ptr %49, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %56 = fpext float %28 to double
  %57 = fadd double %56, 0x400921FB54442D18
  %58 = fptrunc double %57 to float
  store float %58, ptr %6, align 4, !tbaa !15
  %59 = getelementptr inbounds i8, ptr %6, i64 4
  %60 = load float, ptr %36, align 4, !tbaa !17
  %61 = fmul float %60, 2.000000e+00
  %62 = fmul float %52, %61
  %63 = fdiv float %62, %33
  store float %63, ptr %59, align 4, !tbaa !18
  %64 = call <2 x float> @_ZplRK6VectorS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %.sroa.06.0.vec.extract = extractelement <2 x float> %47, i64 0
  store float %.sroa.06.0.vec.extract, ptr %0, align 8, !tbaa !14
  %.sroa.06.4.vec.extract = extractelement <2 x float> %47, i64 1
  store float %.sroa.06.4.vec.extract, ptr %36, align 4, !tbaa !17
  %.sroa.0.0.vec.extract = extractelement <2 x float> %64, i64 0
  store float %.sroa.0.0.vec.extract, ptr %1, align 8, !tbaa !14
  %.sroa.0.4.vec.extract = extractelement <2 x float> %64, i64 1
  store float %.sroa.0.4.vec.extract, ptr %42, align 4, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %0, i64 8
  %66 = load float, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %1, i64 8
  %68 = load float, ptr %67, align 8, !tbaa !19
  %69 = fmul float %66, %68
  %70 = load float, ptr %36, align 4, !tbaa !17
  %71 = fmul float %70, %69
  store float %71, ptr %36, align 4, !tbaa !17
  %72 = load float, ptr %42, align 4, !tbaa !17
  %73 = fmul float %69, %72
  store float %73, ptr %42, align 4, !tbaa !17
  %74 = load float, ptr %18, align 8, !tbaa !12
  %75 = load float, ptr %20, align 8, !tbaa !12
  %76 = fadd float %74, %75
  %77 = fsub float %76, %17
  %78 = fadd float %77, 1.000000e+00
  %79 = fmul float %78, 5.000000e-01
  %80 = call noundef float @_ZSt3sinf(float noundef %28)
  %81 = load float, ptr %7, align 8, !tbaa !5
  %82 = call float @llvm.fmuladd.f32(float %80, float %79, float %81)
  store float %82, ptr %7, align 8, !tbaa !5
  %83 = call noundef float @_ZSt3cosf(float noundef %28)
  %84 = load float, ptr %12, align 4, !tbaa !11
  %85 = fneg float %83
  %86 = call float @llvm.fmuladd.f32(float %85, float %79, float %84)
  store float %86, ptr %12, align 4, !tbaa !11
  %87 = call noundef float @_ZSt3sinf(float noundef %28)
  %88 = load float, ptr %9, align 8, !tbaa !5
  %89 = fneg float %87
  %90 = call float @llvm.fmuladd.f32(float %89, float %79, float %88)
  store float %90, ptr %9, align 8, !tbaa !5
  %91 = call noundef float @_ZSt3cosf(float noundef %28)
  %92 = load float, ptr %14, align 4, !tbaa !11
  %93 = call float @llvm.fmuladd.f32(float %91, float %79, float %92)
  store float %93, ptr %14, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %24, %2
  ret void
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 24}
!6 = !{!"_ZTS8Particle", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 28}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTS6Vector", !7, i64 0, !7, i64 4}
!17 = !{!6, !7, i64 20}
!18 = !{!16, !7, i64 4}
!19 = !{!6, !7, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass