; LLVM IR from sbischoff-ai/simple-molecular-dynamics :: SimpleMolecularDynamics/SimpleMolecularDynamics/MDSim.ll (ZN5MDSim19velocityVerletForceEv)

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #0

declare void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1

declare void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #4

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca %class.vec, align 8
  %7 = alloca %class.vec, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %class.vec, align 8
  %13 = alloca %class.vec, align 8
  %14 = alloca %class.vec, align 8
  %15 = alloca %class.vec, align 8
  %16 = alloca %class.vec, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %18 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 9
  %19 = load double, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 9
  %21 = load double, ptr %20, align 8, !tbaa !11
  %22 = fmul double %19, %21
  store double %22, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  call void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  invoke void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %23 unwind label %39

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %24 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
  store ptr %26, ptr %10, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %36, %23
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %47

30:                                               ; preds = %27
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %31)
  %33 = getelementptr inbounds %class.MDParticle, ptr %32, i32 0, i32 4
  %34 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmLEd(ptr noundef nonnull align 8 dereferenceable(12) %33, double noundef 0.000000e+00)
          to label %35 unwind label %43

35:                                               ; preds = %30
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  store ptr %38, ptr %10, align 8, !tbaa !5
  br label %27, !llvm.loop !18

39:                                               ; preds = %1
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  br label %199

43:                                               ; preds = %30
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %8, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %9, align 4
  br label %198

47:                                               ; preds = %27
  %48 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  store ptr %50, ptr %10, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %192, %47
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %196

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %55)
  %57 = getelementptr inbounds %class.MDParticle, ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  store ptr %59, ptr %11, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %170, %54
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %191

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %64)
  %66 = getelementptr inbounds %class.MDParticle, ptr %65, i32 0, i32 2
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(12) %66)
          to label %67 unwind label %113

67:                                               ; preds = %63
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %68)
  %70 = getelementptr inbounds %class.MDParticle, ptr %69, i32 0, i32 2
  invoke void @_Zmi3vecRKS_(ptr dead_on_unwind writable sret(%class.vec) align 8 %12, ptr noundef %13, ptr noundef nonnull align 8 dereferenceable(12) %70)
          to label %71 unwind label %117

71:                                               ; preds = %67
  %72 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %12)
          to label %73 unwind label %121

73:                                               ; preds = %71
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %12) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %74 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 23
  %75 = load i8, ptr %74, align 8, !tbaa !22, !range !23, !noundef !24
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %136

77:                                               ; preds = %73
  store i32 1, ptr %3, align 4, !tbaa !25
  br label %78

78:                                               ; preds = %132, %77
  %79 = load i32, ptr %3, align 4, !tbaa !25
  %80 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 21
  %81 = load i32, ptr %80, align 8, !tbaa !26
  %82 = icmp sle i32 %79, %81
  br i1 %82, label %83, label %135

83:                                               ; preds = %78
  %84 = load i32, ptr %3, align 4, !tbaa !25
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %84)
          to label %86 unwind label %127

86:                                               ; preds = %83
  %87 = load double, ptr %85, align 8, !tbaa !9
  %88 = invoke noundef double @_ZSt3absd(double noundef %87)
          to label %89 unwind label %127

89:                                               ; preds = %86
  %90 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 16
  %91 = load i32, ptr %3, align 4, !tbaa !25
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %90, i32 noundef %91)
          to label %93 unwind label %127

93:                                               ; preds = %89
  %94 = load double, ptr %92, align 8, !tbaa !9
  %95 = fmul double 5.000000e-01, %94
  %96 = fcmp ogt double %88, %95
  br i1 %96, label %97, label %131

97:                                               ; preds = %93
  %98 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 16
  %99 = load i32, ptr %3, align 4, !tbaa !25
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %98, i32 noundef %99)
          to label %101 unwind label %127

101:                                              ; preds = %97
  %102 = load double, ptr %100, align 8, !tbaa !9
  %103 = load i32, ptr %3, align 4, !tbaa !25
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %103)
          to label %105 unwind label %127

105:                                              ; preds = %101
  %106 = load double, ptr %104, align 8, !tbaa !9
  %107 = call double @llvm.copysign.f64(double %102, double %106)
  %108 = load i32, ptr %3, align 4, !tbaa !25
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %7, i32 noundef %108)
          to label %110 unwind label %127

110:                                              ; preds = %105
  %111 = load double, ptr %109, align 8, !tbaa !9
  %112 = fsub double %111, %107
  store double %112, ptr %109, align 8, !tbaa !9
  br label %131

113:                                              ; preds = %63
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %8, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %9, align 4
  br label %126

117:                                              ; preds = %67
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %8, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %9, align 4
  br label %125

121:                                              ; preds = %71
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %8, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %9, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %12) #8
  br label %125

125:                                              ; preds = %121, %117
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %13) #8
  br label %126

126:                                              ; preds = %125, %113
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %195

127:                                              ; preds = %164, %157, %152, %139, %105, %101, %97, %89, %86, %83
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %9, align 4
  br label %195

131:                                              ; preds = %110, %93
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %3, align 4, !tbaa !25
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %3, align 4, !tbaa !25
  br label %78, !llvm.loop !27

135:                                              ; preds = %78
  br label %136

136:                                              ; preds = %135, %73
  %137 = load double, ptr %5, align 8, !tbaa !9
  %138 = fcmp ogt double %137, 0.000000e+00
  br i1 %138, label %139, label %146

139:                                              ; preds = %136
  %140 = invoke noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %141 unwind label %127

141:                                              ; preds = %139
  %142 = load double, ptr %5, align 8, !tbaa !9
  %143 = fcmp ogt double %140, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  br label %170

145:                                              ; preds = %141
  br label %146

146:                                              ; preds = %145, %136
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %147 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 15
  %148 = load ptr, ptr %147, align 8, !tbaa !28
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %149 unwind label %173

149:                                              ; preds = %146
  invoke void %148(ptr dead_on_unwind writable sret(%class.vec) align 8 %14, ptr noundef %15)
          to label %150 unwind label %177

150:                                              ; preds = %149
  %151 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %14)
          to label %152 unwind label %181

152:                                              ; preds = %150
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %14) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  %153 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 6
  %154 = load ptr, ptr %153, align 8, !tbaa !29
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %155 unwind label %127

155:                                              ; preds = %152
  %156 = invoke noundef double %154(ptr noundef %16)
          to label %157 unwind label %187

157:                                              ; preds = %155
  %158 = load double, ptr %4, align 8, !tbaa !9
  %159 = fadd double %158, %156
  store double %159, ptr %4, align 8, !tbaa !9
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %16) #8
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %160)
  %162 = getelementptr inbounds %class.MDParticle, ptr %161, i32 0, i32 4
  %163 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %162, ptr noundef nonnull align 8 dereferenceable(12) %6)
          to label %164 unwind label %127

164:                                              ; preds = %157
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %165)
  %167 = getelementptr inbounds %class.MDParticle, ptr %166, i32 0, i32 4
  %168 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmIERKS_(ptr noundef nonnull align 8 dereferenceable(12) %167, ptr noundef nonnull align 8 dereferenceable(12) %6)
          to label %169 unwind label %127

169:                                              ; preds = %164
  br label %170

170:                                              ; preds = %169, %144
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %171)
  store ptr %172, ptr %11, align 8, !tbaa !5
  br label %60, !llvm.loop !30

173:                                              ; preds = %146
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %8, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %9, align 4
  br label %186

177:                                              ; preds = %149
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %8, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %9, align 4
  br label %185

181:                                              ; preds = %150
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %8, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %9, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %14) #8
  br label %185

185:                                              ; preds = %181, %177
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #8
  br label %186

186:                                              ; preds = %185, %173
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %195

187:                                              ; preds = %155
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %8, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %9, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %16) #8
  br label %195

191:                                              ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %193)
  store ptr %194, ptr %10, align 8, !tbaa !5
  br label %51, !llvm.loop !31

195:                                              ; preds = %187, %186, %127, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %198

196:                                              ; preds = %51
  %197 = load double, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret double %197

198:                                              ; preds = %195, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  br label %199

199:                                              ; preds = %198, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %200

200:                                              ; preds = %199
  %201 = load ptr, ptr %8, align 8
  %202 = load i32, ptr %9, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204
}

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmLEd(ptr noundef nonnull align 8 dereferenceable(12), double noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Zmi3vecRKS_(ptr dead_on_unwind noalias writable sret(%class.vec) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #7

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmIERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #1

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { 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 #6 = { inlinehint 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!12, !10, i64 64}
!12 = !{!"_ZTS5MDSim", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !6, 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", !7, i64 0}
!14 = !{!"_ZTS3vec", !6, i64 0, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS3mat", !6, i64 0, !15, i64 8, !15, i64 12}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 56}
!21 = !{!"_ZTS10MDParticle", !15, i64 0, !14, i64 8, !14, i64 24, !14, i64 40, !6, i64 56}
!22 = !{!12, !13, i64 184}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!15, !15, i64 0}
!26 = !{!12, !15, i64 176}
!27 = distinct !{!27, !19}
!28 = !{!12, !6, i64 112}
!29 = !{!12, !6, i64 40}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}


; 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.vec = type <{ ptr, i32, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #0

declare void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1

declare void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #1

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

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

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

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

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185) %0) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.vec, align 8
  %3 = alloca %class.vec, align 8
  %4 = alloca %class.vec, align 8
  %5 = alloca %class.vec, align 8
  %6 = alloca %class.vec, align 8
  %7 = alloca %class.vec, align 8
  %8 = alloca %class.vec, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = fmul double %10, %10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  call void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  invoke void @_ZN3vecC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %12 unwind label %20

12:                                               ; preds = %1
  %13 = load ptr, ptr %0, align 8, !tbaa !15
  %14 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %.not72 = icmp eq ptr %14, null
  br i1 %.not72, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12, %18
  %.02573 = phi ptr [ %19, %18 ], [ %14, %12 ]
  %15 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.02573)
  %16 = getelementptr inbounds i8, ptr %15, i64 40
  %17 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmLEd(ptr noundef nonnull align 8 dereferenceable(12) %16, double noundef 0.000000e+00)
          to label %18 unwind label %22

18:                                               ; preds = %.lr.ph
  %19 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.02573)
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

20:                                               ; preds = %1
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %115

22:                                               ; preds = %.lr.ph
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %114

._crit_edge:                                      ; preds = %18, %12
  %24 = load ptr, ptr %0, align 8, !tbaa !15
  %25 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %.not4083 = icmp eq ptr %25, null
  br i1 %.not4083, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %._crit_edge
  %26 = getelementptr inbounds i8, ptr %0, i64 184
  %27 = getelementptr inbounds i8, ptr %0, i64 176
  %28 = getelementptr inbounds i8, ptr %0, i64 120
  %29 = fcmp ogt double %11, 0.000000e+00
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  br label %32

32:                                               ; preds = %.lr.ph87, %._crit_edge82
  %.185 = phi ptr [ %25, %.lr.ph87 ], [ %113, %._crit_edge82 ]
  %.03684 = phi double [ 0.000000e+00, %.lr.ph87 ], [ %.137.lcssa, %._crit_edge82 ]
  %33 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.185)
  %34 = getelementptr inbounds i8, ptr %33, i64 56
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  %36 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %.not4177 = icmp eq ptr %36, null
  br i1 %.not4177, label %._crit_edge82, label %.lr.ph81

.lr.ph81:                                         ; preds = %32, %101
  %.079 = phi ptr [ %102, %101 ], [ %36, %32 ]
  %.13778 = phi double [ %.238, %101 ], [ %.03684, %32 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %37 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.185)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %38)
          to label %39 unwind label %69

39:                                               ; preds = %.lr.ph81
  %40 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.079)
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  invoke void @_Zmi3vecRKS_(ptr dead_on_unwind nonnull writable sret(%class.vec) align 8 %4, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(12) %41)
          to label %42 unwind label %71

42:                                               ; preds = %39
  %43 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %4)
          to label %44 unwind label %73

44:                                               ; preds = %42
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  %45 = load i8, ptr %26, align 8, !tbaa !20, !range !21, !noundef !22
  %46 = trunc nuw i8 %45 to i1
  %47 = load i32, ptr %27, align 8
  %.not4474 = icmp sgt i32 %47, 0
  %or.cond.not = select i1 %46, i1 %.not4474, i1 false
  br i1 %or.cond.not, label %.lr.ph76, label %.loopexit

.lr.ph76:                                         ; preds = %44, %77
  %.03575 = phi i32 [ %78, %77 ], [ 1, %44 ]
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.03575)
          to label %49 unwind label %.loopexit53

49:                                               ; preds = %.lr.ph76
  %50 = load double, ptr %48, align 8, !tbaa !23
  %51 = call noundef double @_ZSt3absd(double noundef %50)
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %28, i32 noundef %.03575)
          to label %53 unwind label %.loopexit53

53:                                               ; preds = %49
  %54 = load double, ptr %52, align 8, !tbaa !23
  %55 = fmul double %54, 5.000000e-01
  %56 = fcmp ogt double %51, %55
  br i1 %56, label %57, label %77

57:                                               ; preds = %53
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %28, i32 noundef %.03575)
          to label %59 unwind label %.loopexit53

59:                                               ; preds = %57
  %60 = load double, ptr %58, align 8, !tbaa !23
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.03575)
          to label %62 unwind label %.loopexit53

62:                                               ; preds = %59
  %63 = load double, ptr %61, align 8, !tbaa !23
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.03575)
          to label %65 unwind label %.loopexit53

65:                                               ; preds = %62
  %66 = call double @llvm.copysign.f64(double %60, double %63)
  %67 = load double, ptr %64, align 8, !tbaa !23
  %68 = fsub double %67, %66
  store double %68, ptr %64, align 8, !tbaa !23
  br label %77

69:                                               ; preds = %.lr.ph81
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %39
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %42
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #8
  br label %75

75:                                               ; preds = %73, %71
  %.pn = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #8
  br label %76

76:                                               ; preds = %75, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %114

.loopexit53:                                      ; preds = %.lr.ph76, %49, %57, %59, %62
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %114

.loopexit.split-lp:                               ; preds = %88, %92, %96
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %114

77:                                               ; preds = %53, %65
  %78 = add nuw nsw i32 %.03575, 1
  %79 = load i32, ptr %27, align 8, !tbaa !24
  %.not44.not = icmp slt i32 %.03575, %79
  br i1 %.not44.not, label %.lr.ph76, label %.loopexit, !llvm.loop !25

.loopexit:                                        ; preds = %77, %44
  br i1 %29, label %80, label %83

80:                                               ; preds = %.loopexit
  %81 = call noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %3)
  %82 = fcmp ogt double %81, %11
  br i1 %82, label %101, label %83

83:                                               ; preds = %80, %.loopexit
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %84 = load ptr, ptr %30, align 8, !tbaa !26
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %85 unwind label %103

85:                                               ; preds = %83
  invoke void %84(ptr dead_on_unwind nonnull writable sret(%class.vec) align 8 %6, ptr noundef nonnull %7)
          to label %86 unwind label %105

86:                                               ; preds = %85
  %87 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecaSERKS_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %6)
          to label %88 unwind label %107

88:                                               ; preds = %86
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  %89 = load ptr, ptr %31, align 8, !tbaa !27
  invoke void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %90 unwind label %.loopexit.split-lp

90:                                               ; preds = %88
  %91 = invoke noundef double %89(ptr noundef nonnull %8)
          to label %92 unwind label %111

92:                                               ; preds = %90
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  %93 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.185)
  %94 = getelementptr inbounds i8, ptr %93, i64 40
  %95 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %94, ptr noundef nonnull align 8 dereferenceable(12) %2)
          to label %96 unwind label %.loopexit.split-lp

96:                                               ; preds = %92
  %97 = fadd double %.13778, %91
  %98 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.079)
  %99 = getelementptr inbounds i8, ptr %98, i64 40
  %100 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmIERKS_(ptr noundef nonnull align 8 dereferenceable(12) %99, ptr noundef nonnull align 8 dereferenceable(12) %2)
          to label %101 unwind label %.loopexit.split-lp

101:                                              ; preds = %96, %80
  %.238 = phi double [ %.13778, %80 ], [ %97, %96 ]
  %102 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.079)
  %.not41 = icmp eq ptr %102, null
  br i1 %.not41, label %._crit_edge82, label %.lr.ph81, !llvm.loop !28

103:                                              ; preds = %83
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %110

105:                                              ; preds = %85
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %86
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  br label %109

109:                                              ; preds = %107, %105
  %.pn45 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  br label %110

110:                                              ; preds = %109, %103
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %109 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  br label %114

111:                                              ; preds = %90
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  br label %114

._crit_edge82:                                    ; preds = %101, %32
  %.137.lcssa = phi double [ %.03684, %32 ], [ %.238, %101 ]
  %113 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.185)
  %.not40 = icmp eq ptr %113, null
  br i1 %.not40, label %._crit_edge88, label %32, !llvm.loop !29

._crit_edge88:                                    ; preds = %._crit_edge82, %._crit_edge
  %.036.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %.137.lcssa, %._crit_edge82 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  ret double %.036.lcssa

114:                                              ; preds = %.loopexit53, %.loopexit.split-lp, %76, %110, %111, %22
  %.pn50 = phi { ptr, i32 } [ %23, %22 ], [ %112, %111 ], [ %.pn45.pn, %110 ], [ %.pn.pn, %76 ], [ %lpad.loopexit, %.loopexit53 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #8
  br label %115

115:                                              ; preds = %114, %20
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %114 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn50.pn
}

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmLEd(ptr noundef nonnull align 8 dereferenceable(12), double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Zmi3vecRKS_(ptr dead_on_unwind noalias writable sret(%class.vec) align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #7

declare noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecmIERKS_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { 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 #6 = { inlinehint 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !11, i64 64}
!6 = !{!"_ZTS5MDSim", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, 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, !7, i64 112, !12, i64 120, !12, i64 136, !14, i64 152, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !10, i64 184}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTS3vec", !7, i64 0, !13, i64 8}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTS3mat", !7, i64 0, !13, i64 8, !13, i64 12}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !7, i64 56}
!19 = !{!"_ZTS10MDParticle", !13, i64 0, !12, i64 8, !12, i64 24, !12, i64 40, !7, i64 56}
!20 = !{!6, !10, i64 184}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!11, !11, i64 0}
!24 = !{!6, !13, i64 176}
!25 = distinct !{!25, !17}
!26 = !{!6, !7, i64 112}
!27 = !{!6, !7, i64 40}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass