; LLVM IR from jianboqi/CSF :: src/Constraint.ll (ZN10Constraint17satisfyConstraintEi)

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

@_ZL10doubleMove = external hidden constant [14 x double], align 16
@_ZL10singleMove = external hidden constant [14 x double], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Constraint17satisfyConstraintEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %class.Vec3, align 8
  %6 = alloca %class.Vec3, align 8
  %7 = alloca double, align 8
  %8 = alloca %class.Vec3, align 8
  %9 = alloca %class.Vec3, align 8
  %10 = alloca %class.Vec3, align 8
  %11 = alloca double, 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  %17 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %class.Particle, ptr %18, i32 0, i32 5
  %20 = getelementptr inbounds %class.Vec3, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 1
  %22 = load double, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds %class.Particle, ptr %24, i32 0, i32 5
  %26 = getelementptr inbounds %class.Vec3, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds [3 x double], ptr %26, i64 0, i64 1
  %28 = load double, ptr %27, align 8, !tbaa !14
  %29 = fsub double %22, %28
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef 0.000000e+00, double noundef %29, double noundef 0.000000e+00)
  %30 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %31)
  br i1 %32, label %33, label %53

33:                                               ; preds = %2
  %34 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %35)
  br i1 %36, label %37, label %53

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = icmp sgt i32 %38, 14
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  br label %47

41:                                               ; preds = %37
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = sub nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [14 x double], ptr @_ZL10doubleMove, i64 0, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !14
  br label %47

47:                                               ; preds = %41, %40
  %48 = phi double [ 5.000000e-01, %40 ], [ %46, %41 ]
  store double %48, ptr %7, align 8, !tbaa !14
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %49 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %6, i64 24, i1 false), !tbaa.struct !16
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %50, ptr noundef byval(%class.Vec3) align 8 %8)
  %51 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %52, ptr noundef byval(%class.Vec3) align 8 %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #4
  br label %99

53:                                               ; preds = %33, %2
  %54 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %55)
  br i1 %56, label %57, label %75

57:                                               ; preds = %53
  %58 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %59)
  br i1 %60, label %75, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %62 = load i32, ptr %4, align 4, !tbaa !9
  %63 = icmp sgt i32 %62, 14
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  br label %71

65:                                               ; preds = %61
  %66 = load i32, ptr %4, align 4, !tbaa !9
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [14 x double], ptr @_ZL10singleMove, i64 0, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !14
  br label %71

71:                                               ; preds = %65, %64
  %72 = phi double [ 1.000000e+00, %64 ], [ %70, %65 ]
  store double %72, ptr %11, align 8, !tbaa !14
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %73 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %10, i64 24, i1 false), !tbaa.struct !16
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %74, ptr noundef byval(%class.Vec3) align 8 %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  br label %98

75:                                               ; preds = %57, %53
  %76 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %77)
  br i1 %78, label %97, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %81)
  br i1 %82, label %83, label %97

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

86:                                               ; preds = %83
  br label %93

87:                                               ; preds = %83
  %88 = load i32, ptr %4, align 4, !tbaa !9
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [14 x double], ptr @_ZL10singleMove, i64 0, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !14
  br label %93

93:                                               ; preds = %87, %86
  %94 = phi double [ 1.000000e+00, %86 ], [ %92, %87 ]
  store double %94, ptr %14, align 8, !tbaa !14
  call void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %95 = getelementptr inbounds %class.Constraint, ptr %16, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !11
  call void @_ZN4Vec3ngEv(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %96, ptr noundef byval(%class.Vec3) align 8 %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  br label %97

97:                                               ; preds = %93, %79, %75
  br label %98

98:                                               ; preds = %97, %71
  br label %99

99:                                               ; preds = %98, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #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: 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)) #2 align 2

; 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)) #0 align 2

; 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
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) #0 align 2

; 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) #3

; 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)) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 16}
!12 = !{!"_ZTS10Constraint", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 8}
!16 = !{i64 0, i64 24, !17}
!17 = !{!7, !7, 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"

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

@_ZL10doubleMove = external hidden local_unnamed_addr constant [14 x double], align 16
@_ZL10singleMove = external hidden local_unnamed_addr constant [14 x double], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Constraint17satisfyConstraintEi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, i32 noundef %1) local_unnamed_addr #0 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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 80
  %15 = load double, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %17, i64 80
  %19 = load double, ptr %18, align 8, !tbaa !11
  %20 = fsub double %15, %19
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef 0.000000e+00, double noundef %20, double noundef 0.000000e+00)
  %21 = load ptr, ptr %16, align 8, !tbaa !12
  %22 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %21)
  br i1 %22, label %23, label %37

23:                                               ; preds = %2
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %24)
  br i1 %25, label %26, label %37

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %27 = icmp sgt i32 %1, 14
  br i1 %27, label %33, label %28

28:                                               ; preds = %26
  %29 = add nsw i32 %1, -1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [14 x double], ptr @_ZL10doubleMove, i64 0, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !11
  br label %33

33:                                               ; preds = %26, %28
  %34 = phi double [ %32, %28 ], [ 5.000000e-01, %26 ]
  store double %34, ptr %5, align 8, !tbaa !11
  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
  %35 = load ptr, ptr %16, align 8, !tbaa !12
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %35, ptr noundef nonnull byval(%class.Vec3) align 8 %4)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  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) %36, ptr noundef nonnull byval(%class.Vec3) align 8 %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  br label %69

37:                                               ; preds = %23, %2
  %38 = load ptr, ptr %16, align 8, !tbaa !12
  %39 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %38)
  br i1 %39, label %40, label %53

40:                                               ; preds = %37
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %41)
  br i1 %42, label %53, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %44 = icmp sgt i32 %1, 14
  br i1 %44, label %50, label %45

45:                                               ; preds = %43
  %46 = add nsw i32 %1, -1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [14 x double], ptr @_ZL10singleMove, i64 0, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %43, %45
  %51 = phi double [ %49, %45 ], [ 1.000000e+00, %43 ]
  store double %51, ptr %8, align 8, !tbaa !11
  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
  %52 = load ptr, ptr %16, align 8, !tbaa !12
  call void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216) %52, ptr noundef nonnull byval(%class.Vec3) align 8 %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  br label %69

53:                                               ; preds = %40, %37
  %54 = load ptr, ptr %16, align 8, !tbaa !12
  %55 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %54)
  br i1 %55, label %69, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN8Particle9isMovableEv(ptr noundef nonnull align 8 dereferenceable(216) %57)
  br i1 %58, label %59, label %69

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  %60 = icmp sgt i32 %1, 14
  br i1 %60, label %66, label %61

61:                                               ; preds = %59
  %62 = add nsw i32 %1, -1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [14 x double], ptr @_ZL10singleMove, i64 0, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %59, %61
  %67 = phi double [ %65, %61 ], [ 1.000000e+00, %59 ]
  store double %67, ptr %10, align 8, !tbaa !11
  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
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  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) %68, ptr noundef nonnull byval(%class.Vec3) align 8 %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  br label %69

69:                                               ; preds = %50, %66, %56, %53, %33
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  ret void
}

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

; 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 @_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 #0 align 2

; 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
declare dso_local void @_ZN8Particle9offsetPosE4Vec3(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef byval(%class.Vec3) align 8) local_unnamed_addr #0 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 #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 16}
!6 = !{!"_ZTS10Constraint", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}


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