; LLVM IR from PyCee/NUS_library :: src/physics (NUS_mass)

; 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.NUS_physics_state = type { %struct.NUS_vector, %struct.NUS_axes }
%struct.NUS_vector = type { double, double, double }
%struct.NUS_axes = type { %struct.NUS_vector, %struct.NUS_vector, %struct.NUS_vector }
%struct.NUS_matrix = type { [4 x [4 x float]] }
%struct.NUS_mass = type { ptr, ptr, %struct.NUS_physics_state, %struct.NUS_physics_state, %struct.NUS_physics_state, %struct.NUS_matrix }

@nus_mass_batch_update.step_progress = external hidden global double, align 8

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @nus_mass_batch_update(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, double noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.NUS_physics_state, align 8
  %15 = alloca %struct.NUS_physics_state, align 8
  %16 = alloca %struct.NUS_matrix, align 4
  %17 = alloca %struct.NUS_vector, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store double %4, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %18 = load double, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !13
  %19 = load double, ptr %10, align 8, !tbaa !13
  %20 = fadd double %19, %18
  store double %20, ptr %10, align 8, !tbaa !13
  store double 0.000000e+00, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !13
  br label %21

21:                                               ; preds = %56, %5
  %22 = load double, ptr %10, align 8, !tbaa !13
  %23 = fcmp oge double %22, 1.600000e-02
  br i1 %23, label %24, label %59

24:                                               ; preds = %21
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %53, %24
  %26 = load i32, ptr %13, align 4, !tbaa !11
  %27 = load i32, ptr %9, align 4, !tbaa !11
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %29, label %56

29:                                               ; preds = %25
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load i64, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %30, i64 %31
  %33 = load i64, ptr %8, align 8, !tbaa !9
  %34 = add i64 368, %33
  %35 = load i32, ptr %13, align 4, !tbaa !11
  %36 = zext i32 %35 to i64
  %37 = mul i64 %34, %36
  %38 = getelementptr inbounds i8, ptr %32, i64 %37
  store ptr %38, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.NUS_mass, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.NUS_mass, ptr %41, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %42, i64 96, i1 false), !tbaa.struct !15
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.NUS_mass, ptr %43, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 96, ptr %14) #4
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.NUS_mass, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.NUS_mass, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.NUS_mass, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  call void @nus_physics_state_step(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8 %14, ptr noundef byval(%struct.NUS_physics_state) align 8 %46, ptr noundef %49, ptr noundef %52)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %14, i64 96, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #4
  br label %53

53:                                               ; preds = %29
  %54 = load i32, ptr %13, align 4, !tbaa !11
  %55 = add i32 %54, 1
  store i32 %55, ptr %13, align 4, !tbaa !11
  br label %25, !llvm.loop !23

56:                                               ; preds = %25
  %57 = load double, ptr %10, align 8, !tbaa !13
  %58 = fsub double %57, 1.600000e-02
  store double %58, ptr %10, align 8, !tbaa !13
  br label %21, !llvm.loop !25

59:                                               ; preds = %21
  %60 = load double, ptr %10, align 8, !tbaa !13
  store double %60, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !13
  %61 = load double, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !13
  %62 = fdiv double %61, 1.600000e-02
  store double %62, ptr %12, align 8, !tbaa !13
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %92, %59
  %64 = load i32, ptr %13, align 4, !tbaa !11
  %65 = load i32, ptr %9, align 4, !tbaa !11
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %67, label %95

67:                                               ; preds = %63
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load i64, ptr %7, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %68, i64 %69
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = add i64 368, %71
  %73 = load i32, ptr %13, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = mul i64 %72, %74
  %76 = getelementptr inbounds i8, ptr %70, i64 %75
  store ptr %76, ptr %11, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.NUS_mass, ptr %77, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 96, ptr %15) #4
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.NUS_mass, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.NUS_mass, ptr %81, i32 0, i32 3
  %83 = load double, ptr %12, align 8, !tbaa !13
  call void @nus_physics_state_lerp(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8 %15, ptr noundef byval(%struct.NUS_physics_state) align 8 %80, ptr noundef byval(%struct.NUS_physics_state) align 8 %82, double noundef %83)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %15, i64 96, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 96, ptr %15) #4
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.NUS_mass, ptr %84, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.NUS_mass, ptr %86, i32 0, i32 4
  %88 = getelementptr inbounds %struct.NUS_physics_state, ptr %87, i32 0, i32 0
  call void @nus_vector_build(ptr dead_on_unwind writable sret(%struct.NUS_vector) align 8 %17, double noundef 1.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e+00)
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.NUS_mass, ptr %89, i32 0, i32 4
  %91 = getelementptr inbounds %struct.NUS_physics_state, ptr %90, i32 0, i32 1
  call void @nus_matrix_build_transformation(ptr dead_on_unwind writable sret(%struct.NUS_matrix) align 4 %16, ptr noundef byval(%struct.NUS_vector) align 8 %88, ptr noundef byval(%struct.NUS_vector) align 8 %17, ptr noundef byval(%struct.NUS_axes) align 8 %91)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 4 %16, i64 64, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  br label %92

92:                                               ; preds = %67
  %93 = load i32, ptr %13, align 4, !tbaa !11
  %94 = add i32 %93, 1
  store i32 %94, ptr %13, align 4, !tbaa !11
  br label %63, !llvm.loop !28

95:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

declare void @nus_physics_state_step(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, ptr noundef, ptr noundef) #3

declare void @nus_physics_state_lerp(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, double noundef) #3

declare void @nus_matrix_build_transformation(ptr dead_on_unwind writable sret(%struct.NUS_matrix) align 4, ptr noundef byval(%struct.NUS_vector) align 8, ptr noundef byval(%struct.NUS_vector) align 8, ptr noundef byval(%struct.NUS_axes) align 8) #3

declare void @nus_vector_build(ptr dead_on_unwind writable sret(%struct.NUS_vector) align 8, double noundef, double noundef, double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i64 0, i64 8, !13, i64 8, i64 8, !13, i64 16, i64 8, !13, i64 24, i64 8, !13, i64 32, i64 8, !13, i64 40, i64 8, !13, i64 48, i64 8, !13, i64 56, i64 8, !13, i64 64, i64 8, !13, i64 72, i64 8, !13, i64 80, i64 8, !13, i64 88, i64 8, !13}
!16 = !{!17, !6, i64 0}
!17 = !{!"NUS_mass", !6, i64 0, !6, i64 8, !18, i64 16, !18, i64 112, !18, i64 208, !21, i64 304}
!18 = !{!"NUS_physics_state", !19, i64 0, !20, i64 24}
!19 = !{!"NUS_vector", !14, i64 0, !14, i64 8, !14, i64 16}
!20 = !{!"NUS_axes", !19, i64 0, !19, i64 24, !19, i64 48}
!21 = !{!"NUS_matrix", !7, i64 0}
!22 = !{!17, !6, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{i64 0, i64 64, !27}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !24}


; 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.NUS_physics_state = type { %struct.NUS_vector, %struct.NUS_axes }
%struct.NUS_vector = type { double, double, double }
%struct.NUS_axes = type { %struct.NUS_vector, %struct.NUS_vector, %struct.NUS_vector }
%struct.NUS_matrix = type { [4 x [4 x float]] }

@nus_mass_batch_update.step_progress = external hidden local_unnamed_addr global double, align 8

; 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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @nus_mass_batch_update(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, double noundef %4) local_unnamed_addr #2 {
  %6 = alloca %struct.NUS_physics_state, align 8
  %7 = alloca %struct.NUS_physics_state, align 8
  %8 = alloca %struct.NUS_matrix, align 4
  %9 = alloca %struct.NUS_vector, align 8
  %10 = load double, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !5
  %11 = fadd double %10, %4
  store double 0.000000e+00, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !5
  %12 = fcmp ult double %11, 1.600000e-02
  br i1 %12, label %._crit_edge33, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %5
  %.not = icmp eq i32 %3, 0
  %13 = getelementptr inbounds i8, ptr %0, i64 %1
  %14 = add i64 %2, 368
  br i1 %.not, label %.preheader, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count = zext i32 %3 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03032.us = phi double [ %23, %._crit_edge.us ], [ %11, %.preheader.us.preheader ]
  br label %15

15:                                               ; preds = %.preheader.us, %15
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %15 ]
  %16 = mul i64 %14, %indvars.iv
  %17 = getelementptr inbounds i8, ptr %13, i64 %16
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = getelementptr inbounds i8, ptr %17, i64 112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef nonnull align 8 dereferenceable(96) %19, i64 96, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #4
  %20 = load ptr, ptr %17, align 8, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %17, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  call void @nus_physics_state_step(ptr dead_on_unwind nonnull writable sret(%struct.NUS_physics_state) align 8 %6, ptr noundef nonnull byval(%struct.NUS_physics_state) align 8 %19, ptr noundef %20, ptr noundef %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %19, ptr noundef nonnull align 8 dereferenceable(96) %6, i64 96, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %15, !llvm.loop !18

._crit_edge.us:                                   ; preds = %15
  %23 = fadd double %.03032.us, -1.600000e-02
  %24 = fcmp ult double %23, 1.600000e-02
  br i1 %24, label %._crit_edge33, label %.preheader.us, !llvm.loop !20

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %.03032 = phi double [ %25, %.preheader ], [ %11, %.preheader.lr.ph ]
  %25 = fadd double %.03032, -1.600000e-02
  %26 = fcmp ult double %25, 1.600000e-02
  br i1 %26, label %._crit_edge33, label %.preheader, !llvm.loop !20

._crit_edge33:                                    ; preds = %._crit_edge.us, %.preheader, %5
  %.030.lcssa = phi double [ %11, %5 ], [ %25, %.preheader ], [ %23, %._crit_edge.us ]
  store double %.030.lcssa, ptr @nus_mass_batch_update.step_progress, align 8, !tbaa !5
  %27 = fdiv double %.030.lcssa, 1.600000e-02
  %.not35 = icmp eq i32 %3, 0
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %._crit_edge33
  %28 = getelementptr inbounds i8, ptr %0, i64 %1
  %29 = add i64 %2, 368
  %wide.trip.count42 = zext i32 %3 to i64
  br label %30

30:                                               ; preds = %.lr.ph, %30
  %indvars.iv39 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next40, %30 ]
  %31 = mul i64 %29, %indvars.iv39
  %32 = getelementptr inbounds i8, ptr %28, i64 %31
  %33 = getelementptr inbounds i8, ptr %32, i64 208
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %7) #4
  %34 = getelementptr inbounds i8, ptr %32, i64 16
  %35 = getelementptr inbounds i8, ptr %32, i64 112
  call void @nus_physics_state_lerp(ptr dead_on_unwind nonnull writable sret(%struct.NUS_physics_state) align 8 %7, ptr noundef nonnull byval(%struct.NUS_physics_state) align 8 %34, ptr noundef nonnull byval(%struct.NUS_physics_state) align 8 %35, double noundef %27) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %33, ptr noundef nonnull align 8 dereferenceable(96) %7, i64 96, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %7) #4
  %36 = getelementptr inbounds i8, ptr %32, i64 304
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @nus_vector_build(ptr dead_on_unwind nonnull writable sret(%struct.NUS_vector) align 8 %9, double noundef 1.000000e+00, double noundef 1.000000e+00, double noundef 1.000000e+00) #4
  %37 = getelementptr inbounds i8, ptr %32, i64 232
  call void @nus_matrix_build_transformation(ptr dead_on_unwind nonnull writable sret(%struct.NUS_matrix) align 4 %8, ptr noundef nonnull byval(%struct.NUS_vector) align 8 %33, ptr noundef nonnull byval(%struct.NUS_vector) align 8 %9, ptr noundef nonnull byval(%struct.NUS_axes) align 8 %37) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %36, ptr noundef nonnull align 4 dereferenceable(64) %8, i64 64, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %exitcond43.not = icmp eq i64 %indvars.iv.next40, %wide.trip.count42
  br i1 %exitcond43.not, label %._crit_edge, label %30, !llvm.loop !23

._crit_edge:                                      ; preds = %30, %._crit_edge33
  ret void
}

declare void @nus_physics_state_step(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @nus_physics_state_lerp(ptr dead_on_unwind writable sret(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, ptr noundef byval(%struct.NUS_physics_state) align 8, double noundef) local_unnamed_addr #3

declare void @nus_matrix_build_transformation(ptr dead_on_unwind writable sret(%struct.NUS_matrix) align 4, ptr noundef byval(%struct.NUS_vector) align 8, ptr noundef byval(%struct.NUS_vector) align 8, ptr noundef byval(%struct.NUS_axes) align 8) local_unnamed_addr #3

declare void @nus_vector_build(ptr dead_on_unwind writable sret(%struct.NUS_vector) align 8, double noundef, double noundef, double noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 8, !5, i64 72, i64 8, !5, i64 80, i64 8, !5, i64 88, i64 8, !5}
!10 = !{!11, !12, i64 0}
!11 = !{!"NUS_mass", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 112, !13, i64 208, !16, i64 304}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"NUS_physics_state", !14, i64 0, !15, i64 24}
!14 = !{!"NUS_vector", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"NUS_axes", !14, i64 0, !14, i64 24, !14, i64 48}
!16 = !{!"NUS_matrix", !7, i64 0}
!17 = !{!11, !12, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{i64 0, i64 64, !22}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass