; LLVM IR from jianboqi/CSF :: src/Particle.ll (ZN8Particle21satisfyConstraintSelfEi)

; 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.Vec3 = type { [3 x double] }
%class.Particle = type { i8, double, %class.Vec3, %class.Vec3, double, %class.Vec3, %class.Vec3, i8, i32, i32, i32, i32, %"class.std::vector", %"class.std::vector.0", i64, double, double }
%"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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZL11doubleMove1 = external hidden constant [15 x double], align 16
@_ZL11singleMove1 = external hidden constant [15 x double], align 16

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3mlERKd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Particle21satisfyConstraintSelfEi(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %class.Vec3, align 8
  %9 = alloca %class.Vec3, align 8
  %10 = alloca double, align 8
  %11 = alloca %class.Vec3, align 8
  %12 = alloca %class.Vec3, align 8
  %13 = alloca %class.Vec3, align 8
  %14 = alloca double, align 8
  %15 = alloca %class.Vec3, align 8
  %16 = alloca %class.Vec3, align 8
  %17 = alloca double, align 8
  %18 = alloca %class.Vec3, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr %19, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %20

20:                                               ; preds = %99, %2
  %21 = load i64, ptr %6, align 8, !tbaa !11
  %22 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 12
  %23 = call noundef i64 @_ZNKSt6vectorIP8ParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %24 = icmp ult i64 %21, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %102

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %27 = getelementptr inbounds %class.Particle, ptr %19, i32 0, i32 12
  %28 = load i64, ptr %6, align 8, !tbaa !11
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8ParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %28) #4
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.Particle, ptr %31, i32 0, i32 5
  %33 = getelementptr inbounds %class.Vec3, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds [3 x double], ptr %33, i64 0, i64 1
  %35 = load double, ptr %34, align 8, !tbaa !13
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.Particle, ptr %36, i32 0, i32 5
  %38 = getelementptr inbounds %class.Vec3, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds [3 x double], ptr %38, i64 0, i64 1
  %40 = load double, ptr %39, align 8, !tbaa !13
  %41 = fsub double %35, %40
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef 0.000000e+00, double noundef %41, double noundef 0.000000e+00)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %42)
  br i1 %43, label %44, label %60

44:                                               ; preds = %26
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %45)
  br i1 %46, label %47, label %60

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = icmp sgt i32 %48, 14
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  br label %56

51:                                               ; preds = %47
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [15 x double], ptr @_ZL11doubleMove1, i64 0, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !13
  br label %56

56:                                               ; preds = %51, %50
  %57 = phi double [ 5.000000e-01, %50 ], [ %55, %51 ]
  store double %57, ptr %10, align 8, !tbaa !13
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %9, i64 24, i1 false), !tbaa.struct !15
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %58, ptr noundef byval(%class.Vec3) align 8 %11)
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %59, ptr noundef byval(%class.Vec3) align 8 %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  br label %98

60:                                               ; preds = %44, %26
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %61)
  br i1 %62, label %63, label %78

63:                                               ; preds = %60
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %64)
  br i1 %65, label %78, label %66

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %68 = icmp sgt i32 %67, 14
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  br label %75

70:                                               ; preds = %66
  %71 = load i32, ptr %4, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [15 x double], ptr @_ZL11singleMove1, i64 0, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %70, %69
  %76 = phi double [ 1.000000e+00, %69 ], [ %74, %70 ]
  store double %76, ptr %14, align 8, !tbaa !13
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !15
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %77, ptr noundef byval(%class.Vec3) align 8 %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  br label %97

78:                                               ; preds = %63, %60
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %79)
  br i1 %80, label %96, label %81

81:                                               ; preds = %78
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %82)
  br i1 %83, label %84, label %96

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = icmp sgt i32 %85, 14
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  br label %93

88:                                               ; preds = %84
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [15 x double], ptr @_ZL11singleMove1, i64 0, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !13
  br label %93

93:                                               ; preds = %88, %87
  %94 = phi double [ 1.000000e+00, %87 ], [ %92, %88 ]
  store double %94, ptr %17, align 8, !tbaa !13
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %16)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %95, ptr noundef byval(%class.Vec3) align 8 %18)
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  br label %96

96:                                               ; preds = %93, %81, %78
  br label %97

97:                                               ; preds = %96, %75
  br label %98

98:                                               ; preds = %97, %56
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %6, align 8, !tbaa !11
  %101 = add i64 %100, 1
  store i64 %101, ptr %6, align 8, !tbaa !11
  br label %20, !llvm.loop !17

102:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP8ParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8ParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3ngEv(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i64 0, i64 24, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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"

%class.Vec3 = type { [3 x double] }

@_ZL11doubleMove1 = external hidden local_unnamed_addr constant [15 x double], align 16
@_ZL11singleMove1 = external hidden local_unnamed_addr constant [15 x double], align 16

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3mlERKd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Particle21satisfyConstraintSelfEi(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %class.Vec3, align 8
  %4 = alloca %class.Vec3, align 8
  %5 = alloca double, align 8
  %6 = alloca %class.Vec3, align 8
  %7 = alloca %class.Vec3, align 8
  %8 = alloca double, align 8
  %9 = alloca %class.Vec3, align 8
  %10 = alloca double, align 8
  %11 = alloca %class.Vec3, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  %13 = tail call noundef i64 @_ZNKSt6vectorIP8ParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  %15 = icmp sgt i32 %1, 14
  %16 = sext i32 %1 to i64
  %17 = getelementptr inbounds [15 x double], ptr @_ZL11singleMove1, i64 0, i64 %16
  %18 = getelementptr inbounds [15 x double], ptr @_ZL11doubleMove1, i64 0, i64 %16
  br label %19

._crit_edge:                                      ; preds = %52, %2
  ret void

19:                                               ; preds = %.lr.ph, %52
  %.022 = phi i64 [ 0, %.lr.ph ], [ %53, %52 ]
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8ParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.022) #3
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %22 = getelementptr inbounds i8, ptr %21, i64 80
  %23 = load double, ptr %22, align 8, !tbaa !9
  %24 = load double, ptr %14, align 8, !tbaa !9
  %25 = fsub double %23, %24
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef 0.000000e+00, double noundef %25, double noundef 0.000000e+00)
  %26 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %0)
  br i1 %26, label %27, label %34

27:                                               ; preds = %19
  %28 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %21)
  br i1 %28, label %29, label %34

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  br i1 %15, label %32, label %30

30:                                               ; preds = %29
  %31 = load double, ptr %18, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %29, %30
  %33 = phi double [ %31, %30 ], [ 5.000000e-01, %29 ]
  store double %33, ptr %5, align 8, !tbaa !9
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull byval(%class.Vec3) align 8 %4)
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %21, ptr noundef nonnull byval(%class.Vec3) align 8 %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  br label %52

34:                                               ; preds = %27, %19
  %35 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %0)
  br i1 %35, label %36, label %43

36:                                               ; preds = %34
  %37 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %21)
  br i1 %37, label %43, label %38

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  br i1 %15, label %41, label %39

39:                                               ; preds = %38
  %40 = load double, ptr %17, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %38, %39
  %42 = phi double [ %40, %39 ], [ 1.000000e+00, %38 ]
  store double %42, ptr %8, align 8, !tbaa !9
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull byval(%class.Vec3) align 8 %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  br label %52

43:                                               ; preds = %36, %34
  %44 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %0)
  br i1 %44, label %52, label %45

45:                                               ; preds = %43
  %46 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %21)
  br i1 %46, label %47, label %52

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  br i1 %15, label %50, label %48

48:                                               ; preds = %47
  %49 = load double, ptr %17, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %47, %48
  %51 = phi double [ %49, %48 ], [ 1.000000e+00, %47 ]
  store double %51, ptr %10, align 8, !tbaa !9
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %21, ptr noundef nonnull byval(%class.Vec3) align 8 %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  br label %52

52:                                               ; preds = %41, %50, %45, %43, %32
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  %53 = add nuw i64 %.022, 1
  %54 = call noundef i64 @_ZNKSt6vectorIP8ParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %19, label %._crit_edge, !llvm.loop !11
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP8ParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8ParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3ngEv(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass