; LLVM IR from sbischoff-ai/simple-molecular-dynamics :: SimpleMolecularDynamics/SimpleMolecularDynamics (AndersonThermostat)

; 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.AndersonThermostat = type { double, double, double, ptr }
%class.MDSim = type <{ ptr, i8, [7 x i8], ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, ptr, %class.vec, %class.vec, %class.mat, i32, i32, i32, i32, i8, [7 x i8] }>
%class.vec = type <{ ptr, i32, [4 x i8] }>
%class.mat = type { ptr, i32, i32 }
%class.MDParticle = type { i32, [4 x i8], %class.vec, %class.vec, %class.vec, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z15mersenneTwisterv() #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18AndersonThermostat7executeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 3
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds %class.MDSim, ptr %13, i32 0, i32 1
  %15 = load i8, ptr %14, align 8, !tbaa !12, !range !18, !noundef !19
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  br label %124

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %19 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 3
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %class.MDSim, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  store ptr %23, ptr %3, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %120, %18
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %123

27:                                               ; preds = %24
  %28 = call noundef double @_Z15mersenneTwisterv()
  %29 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 2
  %30 = load double, ptr %29, align 8, !tbaa !21
  %31 = fcmp olt double %28, %30
  br i1 %31, label %32, label %119

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %33 = call noundef double @_Z15mersenneTwisterv()
  %34 = fsub double 1.000000e+00, %33
  %35 = call double @log(double noundef %34) #5
  store double %35, ptr %4, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %36 = call noundef double @_Z15mersenneTwisterv()
  %37 = fmul double 0x401921FB54442D18, %36
  store double %37, ptr %5, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %38 = load double, ptr %5, align 8, !tbaa !22
  %39 = call double @sin(double noundef %38) #5
  store double %39, ptr %6, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %40 = load double, ptr %5, align 8, !tbaa !22
  %41 = call double @cos(double noundef %40) #5
  store double %41, ptr %7, align 8, !tbaa !22
  %42 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185) %43)
  %45 = icmp eq i32 %44, 2
  br i1 %45, label %46, label %69

46:                                               ; preds = %32
  %47 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 0
  %48 = load double, ptr %47, align 8, !tbaa !23
  %49 = load double, ptr %4, align 8, !tbaa !22
  %50 = fmul double %48, %49
  %51 = call double @sqrt(double noundef %50) #5
  %52 = load double, ptr %7, align 8, !tbaa !22
  %53 = fmul double %51, %52
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %54)
  %56 = getelementptr inbounds %class.MDParticle, ptr %55, i32 0, i32 3
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %56, i32 noundef 1)
  store double %53, ptr %57, align 8, !tbaa !22
  %58 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 0
  %59 = load double, ptr %58, align 8, !tbaa !23
  %60 = load double, ptr %4, align 8, !tbaa !22
  %61 = fmul double %59, %60
  %62 = call double @sqrt(double noundef %61) #5
  %63 = load double, ptr %6, align 8, !tbaa !22
  %64 = fmul double %62, %63
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %65)
  %67 = getelementptr inbounds %class.MDParticle, ptr %66, i32 0, i32 3
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %67, i32 noundef 2)
  store double %64, ptr %68, align 8, !tbaa !22
  br label %69

69:                                               ; preds = %46, %32
  %70 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = call noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185) %71)
  %73 = icmp eq i32 %72, 3
  br i1 %73, label %74, label %118

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %75 = call noundef double @_Z15mersenneTwisterv()
  %76 = fmul double 0x400921FB54442D18, %75
  store double %76, ptr %8, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %77 = load double, ptr %8, align 8, !tbaa !22
  %78 = call double @sin(double noundef %77) #5
  store double %78, ptr %9, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %79 = load double, ptr %8, align 8, !tbaa !22
  %80 = call double @cos(double noundef %79) #5
  store double %80, ptr %10, align 8, !tbaa !22
  %81 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 0
  %82 = load double, ptr %81, align 8, !tbaa !23
  %83 = load double, ptr %4, align 8, !tbaa !22
  %84 = fmul double %82, %83
  %85 = call double @sqrt(double noundef %84) #5
  %86 = load double, ptr %9, align 8, !tbaa !22
  %87 = fmul double %85, %86
  %88 = load double, ptr %7, align 8, !tbaa !22
  %89 = fmul double %87, %88
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %90)
  %92 = getelementptr inbounds %class.MDParticle, ptr %91, i32 0, i32 3
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %92, i32 noundef 1)
  store double %89, ptr %93, align 8, !tbaa !22
  %94 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 0
  %95 = load double, ptr %94, align 8, !tbaa !23
  %96 = load double, ptr %4, align 8, !tbaa !22
  %97 = fmul double %95, %96
  %98 = call double @sqrt(double noundef %97) #5
  %99 = load double, ptr %9, align 8, !tbaa !22
  %100 = fmul double %98, %99
  %101 = load double, ptr %6, align 8, !tbaa !22
  %102 = fmul double %100, %101
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %103)
  %105 = getelementptr inbounds %class.MDParticle, ptr %104, i32 0, i32 3
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %105, i32 noundef 2)
  store double %102, ptr %106, align 8, !tbaa !22
  %107 = getelementptr inbounds %class.AndersonThermostat, ptr %11, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !23
  %109 = load double, ptr %4, align 8, !tbaa !22
  %110 = fmul double %108, %109
  %111 = call double @sqrt(double noundef %110) #5
  %112 = load double, ptr %10, align 8, !tbaa !22
  %113 = fmul double %111, %112
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %114)
  %116 = getelementptr inbounds %class.MDParticle, ptr %115, i32 0, i32 3
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %116, i32 noundef 3)
  store double %113, ptr %117, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %118

118:                                              ; preds = %74, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %119

119:                                              ; preds = %118, %27
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %121)
  store ptr %122, ptr %3, align 8, !tbaa !5
  br label %24, !llvm.loop !24

123:                                              ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %124

124:                                              ; preds = %123, %17
  ret void
}

declare noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: nounwind
declare double @log(double noundef) #4

; Function Attrs: nounwind
declare double @sin(double noundef) #4

; Function Attrs: nounwind
declare double @cos(double noundef) #4

declare noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185)) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

declare noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #3

declare noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

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 = { nocallback nofree nosync 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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTS18AndersonThermostat", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !14, i64 8}
!13 = !{!"_ZTS5MDSim", !6, i64 0, !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !6, i64 112, !15, i64 120, !15, i64 136, !17, i64 152, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !14, i64 184}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS3vec", !6, i64 0, !16, i64 8}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS3mat", !6, i64 0, !16, i64 8, !16, i64 12}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!13, !6, i64 0}
!21 = !{!10, !11, i64 16}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !11, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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"

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z15mersenneTwisterv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18AndersonThermostat7executeEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load i8, ptr %4, align 8, !tbaa !11, !range !17, !noundef !18
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %1
  %8 = load ptr, ptr %3, align 8, !tbaa !19
  %9 = tail call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not24 = icmp eq ptr %9, null
  br i1 %.not24, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  br label %11

11:                                               ; preds = %.lr.ph, %73
  %.025 = phi ptr [ %9, %.lr.ph ], [ %74, %73 ]
  %12 = tail call noundef double @_Z15mersenneTwisterv()
  %13 = load double, ptr %10, align 8, !tbaa !20
  %14 = fcmp olt double %12, %13
  br i1 %14, label %15, label %73

15:                                               ; preds = %11
  %16 = tail call noundef double @_Z15mersenneTwisterv()
  %17 = fsub double 1.000000e+00, %16
  %18 = tail call double @log(double noundef %17) #4
  %19 = tail call noundef double @_Z15mersenneTwisterv()
  %20 = fmul double %19, 0x401921FB54442D18
  %21 = tail call double @sin(double noundef %20) #4
  %22 = tail call double @cos(double noundef %20) #4
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = tail call noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185) %23)
  %25 = icmp eq i32 %24, 2
  br i1 %25, label %26, label %41

26:                                               ; preds = %15
  %27 = load double, ptr %0, align 8, !tbaa !21
  %28 = fmul double %18, %27
  %29 = tail call double @sqrt(double noundef %28) #4
  %30 = fmul double %22, %29
  %31 = tail call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %32 = getelementptr inbounds i8, ptr %31, i64 24
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %32, i32 noundef 1)
  store double %30, ptr %33, align 8, !tbaa !22
  %34 = load double, ptr %0, align 8, !tbaa !21
  %35 = fmul double %18, %34
  %36 = tail call double @sqrt(double noundef %35) #4
  %37 = fmul double %21, %36
  %38 = tail call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %39 = getelementptr inbounds i8, ptr %38, i64 24
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %39, i32 noundef 2)
  store double %37, ptr %40, align 8, !tbaa !22
  br label %41

41:                                               ; preds = %26, %15
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = tail call noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185) %42)
  %44 = icmp eq i32 %43, 3
  br i1 %44, label %45, label %73

45:                                               ; preds = %41
  %46 = tail call noundef double @_Z15mersenneTwisterv()
  %47 = fmul double %46, 0x400921FB54442D18
  %48 = tail call double @sin(double noundef %47) #4
  %49 = tail call double @cos(double noundef %47) #4
  %50 = load double, ptr %0, align 8, !tbaa !21
  %51 = fmul double %18, %50
  %52 = tail call double @sqrt(double noundef %51) #4
  %53 = fmul double %48, %52
  %54 = fmul double %22, %53
  %55 = tail call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %56 = getelementptr inbounds i8, ptr %55, i64 24
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %56, i32 noundef 1)
  store double %54, ptr %57, align 8, !tbaa !22
  %58 = load double, ptr %0, align 8, !tbaa !21
  %59 = fmul double %18, %58
  %60 = tail call double @sqrt(double noundef %59) #4
  %61 = fmul double %48, %60
  %62 = fmul double %21, %61
  %63 = tail call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %64 = getelementptr inbounds i8, ptr %63, i64 24
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %64, i32 noundef 2)
  store double %62, ptr %65, align 8, !tbaa !22
  %66 = load double, ptr %0, align 8, !tbaa !21
  %67 = fmul double %18, %66
  %68 = tail call double @sqrt(double noundef %67) #4
  %69 = fmul double %49, %68
  %70 = tail call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %71 = getelementptr inbounds i8, ptr %70, i64 24
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %71, i32 noundef 3)
  store double %69, ptr %72, align 8, !tbaa !22
  br label %73

73:                                               ; preds = %41, %45, %11
  %74 = tail call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  %.not = icmp eq ptr %74, null
  br i1 %.not, label %.loopexit, label %11, !llvm.loop !23

.loopexit:                                        ; preds = %73, %7, %1
  ret void
}

declare noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

declare noundef i32 @_ZN5MDSim6getDimEv(ptr noundef nonnull align 8 dereferenceable(185)) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

declare noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #2

declare noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #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 = { "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 nofree nounwind willreturn memory(write) "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, !10, i64 24}
!6 = !{!"_ZTS18AndersonThermostat", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_ZTS5MDSim", !10, i64 0, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !10, i64 112, !14, i64 120, !14, i64 136, !16, i64 152, !15, i64 168, !15, i64 172, !15, i64 176, !15, i64 180, !13, i64 184}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS3vec", !10, i64 0, !15, i64 8}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS3mat", !10, i64 0, !15, i64 8, !15, i64 12}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!12, !10, i64 0}
!20 = !{!6, !7, i64 16}
!21 = !{!6, !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass