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

; 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

; 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

; 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: mustprogress uwtable
declare dso_local noundef double @_ZN5MDSim18refreshVerletListsEbb(ptr noundef nonnull align 8 dereferenceable(185), i1 noundef zeroext, i1 noundef zeroext) #4 align 2

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

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

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

25:                                               ; preds = %105, %21
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %109

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %29)
  store ptr %30, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %31 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 7
  %32 = load double, ptr %31, align 8, !tbaa !20
  %33 = fmul double 5.000000e-01, %32
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.MDParticle, ptr %34, i32 0, i32 4
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(12) %35)
  invoke void @_Zmld3vec(ptr dead_on_unwind writable sret(%class.vec) align 8 %8, double noundef %33, ptr noundef %9)
          to label %36 unwind label %85

36:                                               ; preds = %28
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.MDParticle, ptr %37, i32 0, i32 3
  %39 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %38, ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %40 unwind label %89

40:                                               ; preds = %36
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %41 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 7
  %42 = load double, ptr %41, align 8, !tbaa !20
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.MDParticle, ptr %43, i32 0, i32 3
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(12) %44)
  invoke void @_Zmld3vec(ptr dead_on_unwind writable sret(%class.vec) align 8 %12, double noundef %42, ptr noundef %13)
          to label %45 unwind label %94

45:                                               ; preds = %40
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.MDParticle, ptr %46, i32 0, i32 2
  %48 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %47, ptr noundef nonnull align 8 dereferenceable(12) %12)
          to label %49 unwind label %98

49:                                               ; preds = %45
  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
  %50 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 23
  %51 = load i8, ptr %50, align 8, !tbaa !21, !range !17, !noundef !18
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %104

53:                                               ; preds = %49
  store i32 1, ptr %5, align 4, !tbaa !22
  br label %54

54:                                               ; preds = %82, %53
  %55 = load i32, ptr %5, align 4, !tbaa !22
  %56 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 21
  %57 = load i32, ptr %56, align 8, !tbaa !23
  %58 = icmp sle i32 %55, %57
  br i1 %58, label %59, label %103

59:                                               ; preds = %54
  %60 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 16
  %61 = load i32, ptr %5, align 4, !tbaa !22
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %60, i32 noundef %61)
  %63 = load double, ptr %62, align 8, !tbaa !24
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.MDParticle, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %5, align 4, !tbaa !22
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %65, i32 noundef %66)
  %68 = load double, ptr %67, align 8, !tbaa !24
  %69 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 16
  %70 = load i32, ptr %5, align 4, !tbaa !22
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %69, i32 noundef %70)
  %72 = load double, ptr %71, align 8, !tbaa !24
  %73 = fdiv double %68, %72
  %74 = call double @llvm.floor.f64(double %73)
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.MDParticle, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %5, align 4, !tbaa !22
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %76, i32 noundef %77)
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = fneg double %63
  %81 = call double @llvm.fmuladd.f64(double %80, double %74, double %79)
  store double %81, ptr %78, align 8, !tbaa !24
  br label %82

82:                                               ; preds = %59
  %83 = load i32, ptr %5, align 4, !tbaa !22
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !22
  br label %54, !llvm.loop !25

85:                                               ; preds = %28
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %10, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %11, align 4
  br label %93

89:                                               ; preds = %36
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  br label %93

93:                                               ; preds = %89, %85
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %108

94:                                               ; preds = %40
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %10, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %11, align 4
  br label %102

98:                                               ; preds = %45
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %10, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %11, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %12) #8
  br label %102

102:                                              ; preds = %98, %94
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %108

103:                                              ; preds = %54
  br label %104

104:                                              ; preds = %103, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %106)
  store ptr %107, ptr %6, align 8, !tbaa !5
  br label %25, !llvm.loop !27

108:                                              ; preds = %102, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %190

109:                                              ; preds = %25
  %110 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 19
  %111 = load i32, ptr %110, align 8, !tbaa !28
  %112 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 20
  %113 = load i32, ptr %112, align 4, !tbaa !29
  %114 = icmp sgt i32 %111, %113
  br i1 %114, label %115, label %121

115:                                              ; preds = %109
  %116 = load i8, ptr %4, align 1, !tbaa !9, !range !17, !noundef !18
  %117 = trunc i8 %116 to i1
  %118 = call noundef double @_ZN5MDSim18refreshVerletListsEbb(ptr noundef nonnull align 8 dereferenceable(185) %17, i1 noundef zeroext true, i1 noundef zeroext %117)
  %119 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 12
  store double %118, ptr %119, align 8, !tbaa !30
  %120 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 19
  store i32 0, ptr %120, align 8, !tbaa !28
  br label %124

121:                                              ; preds = %109
  %122 = call noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185) %17)
  %123 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 12
  store double %122, ptr %123, align 8, !tbaa !30
  br label %124

124:                                              ; preds = %121, %115
  %125 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 19
  %126 = load i32, ptr %125, align 8, !tbaa !28
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %125, align 8, !tbaa !28
  %128 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !19
  %130 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %129)
  store ptr %130, ptr %6, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %147, %124
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %159

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %135 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 7
  %136 = load double, ptr %135, align 8, !tbaa !20
  %137 = fmul double 5.000000e-01, %136
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %138)
  %140 = getelementptr inbounds %class.MDParticle, ptr %139, i32 0, i32 4
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(12) %140)
  invoke void @_Zmld3vec(ptr dead_on_unwind writable sret(%class.vec) align 8 %14, double noundef %137, ptr noundef %15)
          to label %141 unwind label %150

141:                                              ; preds = %134
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %142)
  %144 = getelementptr inbounds %class.MDParticle, ptr %143, i32 0, i32 3
  %145 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %144, ptr noundef nonnull align 8 dereferenceable(12) %14)
          to label %146 unwind label %154

146:                                              ; preds = %141
  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
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %148)
  store ptr %149, ptr %6, align 8, !tbaa !5
  br label %131, !llvm.loop !31

150:                                              ; preds = %134
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  br label %158

154:                                              ; preds = %141
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %10, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %11, align 4
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %14) #8
  br label %158

158:                                              ; preds = %154, %150
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %190

159:                                              ; preds = %131
  %160 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 11
  store double 0.000000e+00, ptr %160, align 8, !tbaa !32
  %161 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %162)
  store ptr %163, ptr %6, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %178, %159
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = icmp ne ptr %165, null
  br i1 %166, label %167, label %181

167:                                              ; preds = %164
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %168)
  %170 = getelementptr inbounds %class.MDParticle, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %171)
  %173 = getelementptr inbounds %class.MDParticle, ptr %172, i32 0, i32 3
  %174 = call noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12) %170, ptr noundef nonnull align 8 dereferenceable(12) %173)
  %175 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 11
  %176 = load double, ptr %175, align 8, !tbaa !32
  %177 = fadd double %176, %174
  store double %177, ptr %175, align 8, !tbaa !32
  br label %178

178:                                              ; preds = %167
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %179)
  store ptr %180, ptr %6, align 8, !tbaa !5
  br label %164, !llvm.loop !33

181:                                              ; preds = %164
  %182 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 11
  %183 = load double, ptr %182, align 8, !tbaa !32
  %184 = fmul double %183, 5.000000e-01
  store double %184, ptr %182, align 8, !tbaa !32
  %185 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 7
  %186 = load double, ptr %185, align 8, !tbaa !20
  %187 = getelementptr inbounds %class.MDSim, ptr %17, i32 0, i32 8
  %188 = load double, ptr %187, align 8, !tbaa !34
  %189 = fadd double %188, %186
  store double %189, ptr %187, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %191

190:                                              ; preds = %158, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %192

191:                                              ; preds = %181, %2
  ret void

192:                                              ; preds = %190
  %193 = load ptr, ptr %10, align 8
  %194 = load i32, ptr %11, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

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

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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185)) #4 align 2

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 = { 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 #5 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS5MDSim", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, 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, !10, i64 184}
!13 = !{!"double", !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 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!12, !6, i64 0}
!20 = !{!12, !13, i64 48}
!21 = !{!12, !10, i64 184}
!22 = !{!15, !15, i64 0}
!23 = !{!12, !15, i64 176}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!12, !15, i64 168}
!29 = !{!12, !15, i64 172}
!30 = !{!12, !13, i64 88}
!31 = distinct !{!31, !26}
!32 = !{!12, !13, i64 80}
!33 = distinct !{!33, !26}
!34 = !{!12, !13, i64 56}


; 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

; 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

; 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: mustprogress uwtable
declare dso_local noundef double @_ZN5MDSim18refreshVerletListsEbb(ptr noundef nonnull align 8 dereferenceable(185), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4 align 2

; 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 #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5MDSim18velocityVerletStepEb(ptr noundef nonnull align 8 dereferenceable(185) %0, i1 noundef zeroext %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %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 8
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !15, !noundef !16
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %112, label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %0, align 8, !tbaa !17
  %14 = tail call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %.not47 = icmp eq ptr %14, null
  br i1 %.not47, label %._crit_edge, label %.lr.ph49

.lr.ph49:                                         ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  %16 = getelementptr inbounds i8, ptr %0, i64 184
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  %18 = getelementptr inbounds i8, ptr %0, i64 120
  br label %19

19:                                               ; preds = %.lr.ph49, %.loopexit
  %.03248 = phi ptr [ %14, %.lr.ph49 ], [ %60, %.loopexit ]
  %20 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.03248)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %21 = load double, ptr %15, align 8, !tbaa !18
  %22 = fmul double %21, 5.000000e-01
  %23 = getelementptr inbounds i8, ptr %20, i64 40
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %23)
  invoke void @_Zmld3vec(ptr dead_on_unwind nonnull writable sret(%class.vec) align 8 %3, double noundef %22, ptr noundef nonnull %4)
          to label %24 unwind label %50

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %20, i64 24
  %26 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %25, ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %27 unwind label %52

27:                                               ; preds = %24
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %28 = load double, ptr %15, align 8, !tbaa !18
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %25)
  invoke void @_Zmld3vec(ptr dead_on_unwind nonnull writable sret(%class.vec) align 8 %5, double noundef %28, ptr noundef nonnull %6)
          to label %29 unwind label %55

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %20, i64 8
  %31 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef nonnull align 8 dereferenceable(12) %5)
          to label %32 unwind label %57

32:                                               ; preds = %29
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %33 = load i8, ptr %16, align 8, !tbaa !19, !range !15, !noundef !16
  %34 = trunc nuw i8 %33 to i1
  %35 = load i32, ptr %17, align 8
  %.not4445 = icmp sgt i32 %35, 0
  %or.cond.not = select i1 %34, i1 %.not4445, i1 false
  br i1 %or.cond.not, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %32, %.lr.ph
  %.03146 = phi i32 [ %48, %.lr.ph ], [ 1, %32 ]
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %18, i32 noundef %.03146)
  %37 = load double, ptr %36, align 8, !tbaa !20
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %30, i32 noundef %.03146)
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %18, i32 noundef %.03146)
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = fdiv double %39, %41
  %43 = call double @llvm.floor.f64(double %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vecixEi(ptr noundef nonnull align 8 dereferenceable(12) %30, i32 noundef %.03146)
  %45 = load double, ptr %44, align 8, !tbaa !20
  %46 = fneg double %37
  %47 = call double @llvm.fmuladd.f64(double %46, double %43, double %45)
  store double %47, ptr %44, align 8, !tbaa !20
  %48 = add nuw nsw i32 %.03146, 1
  %49 = load i32, ptr %17, align 8, !tbaa !21
  %.not44.not = icmp slt i32 %.03146, %49
  br i1 %.not44.not, label %.lr.ph, label %.loopexit, !llvm.loop !22

50:                                               ; preds = %19
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %24
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #8
  br label %54

54:                                               ; preds = %52, %50
  %.pn38 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %111

55:                                               ; preds = %27
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %29
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %5) #8
  br label %59

59:                                               ; preds = %57, %55
  %.pn40 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %111

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

._crit_edge:                                      ; preds = %.loopexit, %12
  %61 = getelementptr inbounds i8, ptr %0, i64 168
  %62 = load i32, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds i8, ptr %0, i64 172
  %64 = load i32, ptr %63, align 4, !tbaa !26
  %65 = icmp sgt i32 %62, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %._crit_edge
  %67 = call noundef double @_ZN5MDSim18refreshVerletListsEbb(ptr noundef nonnull align 8 dereferenceable(185) %0, i1 noundef zeroext true, i1 noundef zeroext %1)
  store i32 0, ptr %61, align 8, !tbaa !25
  br label %71

68:                                               ; preds = %._crit_edge
  %69 = call noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185) %0)
  %.pre = load i32, ptr %61, align 8, !tbaa !25
  %70 = add nsw i32 %.pre, 1
  br label %71

71:                                               ; preds = %68, %66
  %72 = phi i32 [ 1, %66 ], [ %70, %68 ]
  %.sink = phi double [ %67, %66 ], [ %69, %68 ]
  %73 = getelementptr inbounds i8, ptr %0, i64 88
  store double %.sink, ptr %73, align 8
  store i32 %72, ptr %61, align 8, !tbaa !25
  %74 = load ptr, ptr %0, align 8, !tbaa !17
  %75 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %74)
  %.not3550 = icmp eq ptr %75, null
  br i1 %.not3550, label %._crit_edge54, label %.lr.ph53

.lr.ph53:                                         ; preds = %71
  %76 = getelementptr inbounds i8, ptr %0, i64 48
  br label %77

77:                                               ; preds = %.lr.ph53, %86
  %.13351 = phi ptr [ %75, %.lr.ph53 ], [ %87, %86 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %78 = load double, ptr %76, align 8, !tbaa !18
  %79 = fmul double %78, 5.000000e-01
  %80 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.13351)
  %81 = getelementptr inbounds i8, ptr %80, i64 40
  call void @_ZN3vecC1ERKS_(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 8 dereferenceable(12) %81)
  invoke void @_Zmld3vec(ptr dead_on_unwind nonnull writable sret(%class.vec) align 8 %7, double noundef %79, ptr noundef nonnull %8)
          to label %82 unwind label %88

82:                                               ; preds = %77
  %83 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.13351)
  %84 = getelementptr inbounds i8, ptr %83, i64 24
  %85 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3vecpLERKS_(ptr noundef nonnull align 8 dereferenceable(12) %84, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %86 unwind label %90

86:                                               ; preds = %82
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %7) #8
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %87 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.13351)
  %.not35 = icmp eq ptr %87, null
  br i1 %.not35, label %._crit_edge54, label %77, !llvm.loop !27

88:                                               ; preds = %77
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

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

92:                                               ; preds = %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @_ZN3vecD1Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %111

._crit_edge54:                                    ; preds = %86, %71
  %93 = getelementptr inbounds i8, ptr %0, i64 80
  store double 0.000000e+00, ptr %93, align 8, !tbaa !28
  %94 = load ptr, ptr %0, align 8, !tbaa !17
  %95 = call noundef ptr @_ZN14MDParticleList8getFirstEv(ptr noundef nonnull align 8 dereferenceable(24) %94)
  %.not3655 = icmp eq ptr %95, null
  br i1 %.not3655, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %._crit_edge54, %.lr.ph58
  %.23456 = phi ptr [ %103, %.lr.ph58 ], [ %95, %._crit_edge54 ]
  %96 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.23456)
  %97 = getelementptr inbounds i8, ptr %96, i64 24
  %98 = call noundef ptr @_ZN19MDParticleListEntry7getThisEv(ptr noundef nonnull align 8 dereferenceable(32) %.23456)
  %99 = getelementptr inbounds i8, ptr %98, i64 24
  %100 = call noundef double @_ZmlRK3vecS1_(ptr noundef nonnull align 8 dereferenceable(12) %97, ptr noundef nonnull align 8 dereferenceable(12) %99)
  %101 = load double, ptr %93, align 8, !tbaa !28
  %102 = fadd double %100, %101
  store double %102, ptr %93, align 8, !tbaa !28
  %103 = call noundef ptr @_ZN19MDParticleListEntry7getNextEv(ptr noundef nonnull align 8 dereferenceable(32) %.23456)
  %.not36 = icmp eq ptr %103, null
  br i1 %.not36, label %._crit_edge59, label %.lr.ph58, !llvm.loop !29

._crit_edge59:                                    ; preds = %.lr.ph58, %._crit_edge54
  %104 = load double, ptr %93, align 8, !tbaa !28
  %105 = fmul double %104, 5.000000e-01
  store double %105, ptr %93, align 8, !tbaa !28
  %106 = getelementptr inbounds i8, ptr %0, i64 48
  %107 = load double, ptr %106, align 8, !tbaa !18
  %108 = getelementptr inbounds i8, ptr %0, i64 56
  %109 = load double, ptr %108, align 8, !tbaa !30
  %110 = fadd double %107, %109
  store double %110, ptr %108, align 8, !tbaa !30
  br label %112

111:                                              ; preds = %54, %59, %92
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn, %92 ], [ %.pn40, %59 ], [ %.pn38, %54 ]
  resume { ptr, i32 } %.pn40.pn.pn

112:                                              ; preds = %._crit_edge59, %2
  ret void
}

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5MDSim19velocityVerletForceEv(ptr noundef nonnull align 8 dereferenceable(185)) local_unnamed_addr #4 align 2

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 = { 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 #5 = { 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 #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, !10, i64 8}
!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 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !11, i64 48}
!19 = !{!6, !10, i64 184}
!20 = !{!11, !11, i64 0}
!21 = !{!6, !13, i64 176}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!6, !13, i64 168}
!26 = !{!6, !13, i64 172}
!27 = distinct !{!27, !23}
!28 = !{!6, !11, i64 80}
!29 = distinct !{!29, !23}
!30 = !{!6, !11, i64 56}


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