; LLVM IR from faishasj/cpparticles :: src/environment.ll (ZN11Environment6bounceEP8Particle)

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

%class.Environment = type { i32, i32, i8, i8, i8, i8, i8, i8, i8, float, float, %"class.std::vector", %"class.std::vector.0", %struct.Vector }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl" }
%"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Particle *, std::allocator<Particle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl" }
%"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Spring *, std::allocator<Spring *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Vector = type { float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11Environment6bounceEP8Particle(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %6)
  %8 = getelementptr inbounds %class.Environment, ptr %5, i32 0, i32 1
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = sitofp i32 %9 to float
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
  %13 = fsub float %10, %12
  %14 = fcmp ogt float %7, %13
  br i1 %14, label %15, label %37

15:                                               ; preds = %2
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %class.Environment, ptr %5, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = sitofp i32 %18 to float
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %20)
  %22 = fsub float %19, %21
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %23)
  %25 = fneg float %24
  %26 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %22, float %25)
  call void @_ZN8Particle4setXEf(ptr noundef nonnull align 8 dereferenceable(40) %16, float noundef %26)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %28)
  %30 = fneg float %29
  call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %27, float noundef %30)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %32)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %34)
  %36 = fmul float %33, %35
  call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %31, float noundef %36)
  br label %62

37:                                               ; preds = %2
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %38)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %40)
  %42 = fcmp olt float %39, %41
  br i1 %42, label %43, label %61

43:                                               ; preds = %37
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %45)
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %47)
  %49 = fneg float %48
  %50 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %46, float %49)
  call void @_ZN8Particle4setXEf(ptr noundef nonnull align 8 dereferenceable(40) %44, float noundef %50)
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %52)
  %54 = fneg float %53
  call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %51, float noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %56)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %58)
  %60 = fmul float %57, %59
  call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %55, float noundef %60)
  br label %61

61:                                               ; preds = %43, %37
  br label %62

62:                                               ; preds = %61, %15
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %63)
  %65 = getelementptr inbounds %class.Environment, ptr %5, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = sitofp i32 %66 to float
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %68)
  %70 = fsub float %67, %69
  %71 = fcmp ogt float %64, %70
  br i1 %71, label %72, label %96

72:                                               ; preds = %62
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.Environment, ptr %5, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !23
  %76 = sitofp i32 %75 to float
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %77)
  %79 = fsub float %76, %78
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %80)
  %82 = fneg float %81
  %83 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %79, float %82)
  call void @_ZN8Particle4setYEf(ptr noundef nonnull align 8 dereferenceable(40) %73, float noundef %83)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %85)
  %87 = fpext float %86 to double
  %88 = fsub double 0x400921FB54442D18, %87
  %89 = fptrunc double %88 to float
  call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %84, float noundef %89)
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %91)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %93)
  %95 = fmul float %92, %94
  call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %90, float noundef %95)
  br label %123

96:                                               ; preds = %62
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %97)
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %99)
  %101 = fcmp olt float %98, %100
  br i1 %101, label %102, label %122

102:                                              ; preds = %96
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %104)
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %106)
  %108 = fneg float %107
  %109 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %105, float %108)
  call void @_ZN8Particle4setYEf(ptr noundef nonnull align 8 dereferenceable(40) %103, float noundef %109)
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %111)
  %113 = fpext float %112 to double
  %114 = fsub double 0x400921FB54442D18, %113
  %115 = fptrunc double %114 to float
  call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %110, float noundef %115)
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %117)
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %119)
  %121 = fmul float %118, %120
  call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %116, float noundef %121)
  br label %122

122:                                              ; preds = %102, %96
  br label %123

123:                                              ; preds = %122, %72
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle4setXEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle4setYEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) #0 align 2

attributes #0 = { 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 #1 = { mustprogress 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTS11Environment", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 9, !12, i64 10, !12, i64 11, !12, i64 12, !12, i64 13, !12, i64 14, !13, i64 16, !13, i64 20, !14, i64 24, !18, i64 48, !22, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIP8ParticleSaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIP8ParticleSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIP8ParticleSaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP8ParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIP6SpringSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP6SpringSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP6SpringSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP6SpringSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTS6Vector", !13, i64 0, !13, i64 4}
!23 = !{!10, !11, i64 0}


; 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 nounwind uwtable
declare dso_local noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11Environment6bounceEP8Particle(ptr nocapture noundef nonnull readonly align 8 dereferenceable(80) %0, ptr noundef nonnull %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = sitofp i32 %5 to float
  %7 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %8 = fsub float %6, %7
  %9 = fcmp ogt float %3, %8
  br i1 %9, label %10, label %15

10:                                               ; preds = %2
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = sitofp i32 %11 to float
  %13 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %14 = fsub float %12, %13
  br label %.sink.split

15:                                               ; preds = %2
  %16 = tail call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %17 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %18 = fcmp olt float %16, %17
  br i1 %18, label %19, label %29

19:                                               ; preds = %15
  %20 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %.sink.split

.sink.split:                                      ; preds = %10, %19
  %.sink44 = phi float [ %20, %19 ], [ %14, %10 ]
  %21 = tail call noundef float @_ZN8Particle4getXEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %22 = fneg float %21
  %23 = tail call float @llvm.fmuladd.f32(float %.sink44, float 2.000000e+00, float %22)
  tail call void @_ZN8Particle4setXEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %23)
  %24 = tail call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %25 = fneg float %24
  tail call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %25)
  %26 = tail call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %27 = tail call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %28 = fmul float %26, %27
  tail call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %28)
  br label %29

29:                                               ; preds = %.sink.split, %15
  %30 = tail call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %31 = load i32, ptr %0, align 8, !tbaa !22
  %32 = sitofp i32 %31 to float
  %33 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %34 = fsub float %32, %33
  %35 = fcmp ogt float %30, %34
  br i1 %35, label %36, label %41

36:                                               ; preds = %29
  %37 = load i32, ptr %0, align 8, !tbaa !22
  %38 = sitofp i32 %37 to float
  %39 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %40 = fsub float %38, %39
  br label %.sink.split46

41:                                               ; preds = %29
  %42 = tail call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %43 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %44 = fcmp olt float %42, %43
  br i1 %44, label %45, label %57

45:                                               ; preds = %41
  %46 = tail call noundef float @_ZN8Particle7getSizeEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  br label %.sink.split46

.sink.split46:                                    ; preds = %36, %45
  %.sink51 = phi float [ %46, %45 ], [ %40, %36 ]
  %47 = tail call noundef float @_ZN8Particle4getYEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %48 = fneg float %47
  %49 = tail call float @llvm.fmuladd.f32(float %.sink51, float 2.000000e+00, float %48)
  tail call void @_ZN8Particle4setYEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %49)
  %50 = tail call noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %51 = fpext float %50 to double
  %52 = fsub double 0x400921FB54442D18, %51
  %53 = fptrunc double %52 to float
  tail call void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %53)
  %54 = tail call noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %55 = tail call noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %56 = fmul float %54, %55
  tail call void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40) %1, float noundef %56)
  br label %57

57:                                               ; preds = %.sink.split46, %41
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle4setXEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle8setAngleEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle8getAngleEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle8setSpeedEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle8getSpeedEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8Particle13getElasticityEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Particle4setYEf(ptr noundef nonnull align 8 dereferenceable(40), float noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress 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, !7, i64 4}
!6 = !{!"_ZTS11Environment", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !10, i64 12, !10, i64 13, !10, i64 14, !11, i64 16, !11, i64 20, !12, i64 24, !17, i64 48, !21, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIP8ParticleSaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIP8ParticleSaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIP8ParticleSaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIP8ParticleSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIP6SpringSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP6SpringSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP6SpringSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP6SpringSaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTS6Vector", !11, i64 0, !11, i64 4}
!22 = !{!6, !7, i64 0}


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