; LLVM IR from Eydcao/Yan-CG-SnowSim :: src/Grid.ll (ZNK8GridMesh23calculateParticleVolumeEv)

; 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.Eigen::CwiseBinaryOp.42" = type <{ ptr, ptr, [8 x i8] }>
%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { %"struct.Eigen::internal::plain_array" }
%"struct.Eigen::internal::plain_array" = type { [3 x float] }
%class.GridMesh = type { %class.Bounds3, %class.Bounds3, %"class.Eigen::Matrix.9", %"class.Eigen::Matrix", ptr, float, i32, %"class.std::vector.19", i32, %"class.std::vector.19" }
%class.Bounds3 = type { %"class.Eigen::Matrix", %"class.Eigen::Matrix" }
%"class.Eigen::Matrix.9" = type { %"class.Eigen::PlainObjectBase.10" }
%"class.Eigen::PlainObjectBase.10" = type { %"class.Eigen::DenseStorage.17" }
%"class.Eigen::DenseStorage.17" = type { %"struct.Eigen::internal::plain_array.18" }
%"struct.Eigen::internal::plain_array.18" = type { [3 x i32] }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<GridCell *, std::allocator<GridCell *>>::_Vector_impl" }
%"struct.std::_Vector_base<GridCell *, std::allocator<GridCell *>>::_Vector_impl" = type { %"struct.std::_Vector_base<GridCell *, std::allocator<GridCell *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GridCell *, std::allocator<GridCell *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.SnowParticleSet = type <{ %"class.std::vector", float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SnowParticle *, std::allocator<SnowParticle *>>::_Vector_impl" }
%"struct.std::_Vector_base<SnowParticle *, std::allocator<SnowParticle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SnowParticle *, std::allocator<SnowParticle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SnowParticle *, std::allocator<SnowParticle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.SnowParticle = type { float, float, float, %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", %"class.Eigen::Matrix.58", [64 x %"class.Eigen::Matrix"], [64 x float], ptr }
%"class.Eigen::Matrix.58" = type { %"class.Eigen::PlainObjectBase.59" }
%"class.Eigen::PlainObjectBase.59" = type { %"class.Eigen::DenseStorage.66" }
%"class.Eigen::DenseStorage.66" = type { %"struct.Eigen::internal::plain_array.67" }
%"struct.Eigen::internal::plain_array.67" = type { [9 x float] }
%class.GridCell = type { i8, i32, i32, i32, float, %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.std::vector", %"class.std::vector.3", %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix", %"class.Eigen::Matrix", float }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEmiIS2_EEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIfNS6_6traitsIT_E6ScalarEEEKS2_KS9_EERKNS0_IS9_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseBinaryOp.42") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKS1_S7_EEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8GridMesh23calculateParticleVolumeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.Eigen::Matrix", align 4
  %7 = alloca %"class.Eigen::CwiseBinaryOp.42", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %199, %1
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 4
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %class.SnowParticleSet, ptr %25, i32 0, i32 0
  %27 = call noundef i64 @_ZNKSt6vectorIP12SnowParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %28 = icmp ult i64 %23, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %21
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %202

30:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %31 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %class.SnowParticleSet, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12SnowParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #5
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %37, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.SnowParticle, ptr %38, i32 0, i32 3
  %40 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 0
  %41 = getelementptr inbounds %class.Bounds3, ptr %40, i32 0, i32 0
  call void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEmiIS2_EEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIfNS6_6traitsIT_E6ScalarEEEKS2_KS9_EERKNS0_IS9_EE(ptr dead_on_unwind writable sret(%"class.Eigen::CwiseBinaryOp.42") align 8 %7, ptr noundef nonnull align 1 dereferenceable(1) %39, ptr noundef nonnull align 1 dereferenceable(1) %41)
  call void @_ZN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKS1_S7_EEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.SnowParticle, ptr %42, i32 0, i32 2
  store float 0.000000e+00, ptr %43, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  %45 = load float, ptr %44, align 4, !tbaa !33
  %46 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 3
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %46)
  %48 = load float, ptr %47, align 4, !tbaa !33
  %49 = fdiv float %45, %48
  %50 = fptosi float %49 to i32
  store i32 %50, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  store i32 %52, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = add nsw i32 %53, 3
  store i32 %54, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %180, %30
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %183

60:                                               ; preds = %55
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %176

63:                                               ; preds = %60
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %65)
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %69, label %176

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  %71 = load float, ptr %70, align 4, !tbaa !33
  %72 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 3
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %72)
  %74 = load float, ptr %73, align 4, !tbaa !33
  %75 = fdiv float %71, %74
  %76 = fptosi float %75 to i32
  store i32 %76, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 1
  store i32 %78, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = add nsw i32 %79, 3
  store i32 %80, ptr %14, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %172, %69
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %175

86:                                               ; preds = %81
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = icmp sge i32 %87, 0
  br i1 %88, label %89, label %168

89:                                               ; preds = %86
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %91)
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %90, %93
  br i1 %94, label %95, label %168

95:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  %97 = load float, ptr %96, align 4, !tbaa !33
  %98 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 3
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %98)
  %100 = load float, ptr %99, align 4, !tbaa !33
  %101 = fdiv float %97, %100
  %102 = fptosi float %101 to i32
  store i32 %102, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = sub nsw i32 %103, 1
  store i32 %104, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = add nsw i32 %105, 3
  store i32 %106, ptr %17, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %164, %95
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %167

112:                                              ; preds = %107
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = icmp sge i32 %113, 0
  br i1 %114, label %115, label %161

115:                                              ; preds = %112
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %117)
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp slt i32 %116, %119
  br i1 %120, label %121, label %161

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.SnowParticle, ptr %122, i32 0, i32 15
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [64 x float], ptr %123, i64 0, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !33
  store float %127, ptr %18, align 4, !tbaa !33
  %128 = load float, ptr %18, align 4, !tbaa !33
  %129 = fcmp ogt float %128, 0x3F1A36E2E0000000
  br i1 %129, label %130, label %160

130:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %132)
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = mul nsw i32 %131, %134
  %136 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %136)
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = mul nsw i32 %135, %138
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 2
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %141)
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = mul nsw i32 %140, %143
  %145 = add nsw i32 %139, %144
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  store i32 %147, ptr %19, align 4, !tbaa !9
  %148 = load float, ptr %18, align 4, !tbaa !33
  %149 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 7
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP8GridCellSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.GridCell, ptr %153, i32 0, i32 4
  %155 = load float, ptr %154, align 8, !tbaa !34
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %class.SnowParticle, ptr %156, i32 0, i32 2
  %158 = load float, ptr %157, align 8, !tbaa !27
  %159 = call float @llvm.fmuladd.f32(float %148, float %155, float %158)
  store float %159, ptr %157, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %160

160:                                              ; preds = %130, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %161

161:                                              ; preds = %160, %115, %112
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %8, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %161
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %16, align 4, !tbaa !9
  br label %107, !llvm.loop !45

167:                                              ; preds = %111
  br label %171

168:                                              ; preds = %89, %86
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = add nsw i32 %169, 4
  store i32 %170, ptr %8, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %168, %167
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %13, align 4, !tbaa !9
  br label %81, !llvm.loop !47

175:                                              ; preds = %85
  br label %179

176:                                              ; preds = %63, %60
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = add nsw i32 %177, 16
  store i32 %178, ptr %8, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %176, %175
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %10, align 4, !tbaa !9
  br label %55, !llvm.loop !48

183:                                              ; preds = %59
  %184 = getelementptr inbounds %class.GridMesh, ptr %20, i32 0, i32 5
  %185 = load float, ptr %184, align 8, !tbaa !49
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %class.SnowParticle, ptr %186, i32 0, i32 2
  %188 = load float, ptr %187, align 8, !tbaa !27
  %189 = fdiv float %188, %185
  store float %189, ptr %187, align 8, !tbaa !27
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %class.SnowParticle, ptr %190, i32 0, i32 1
  %192 = load float, ptr %191, align 4, !tbaa !50
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %class.SnowParticle, ptr %193, i32 0, i32 2
  %195 = load float, ptr %194, align 8, !tbaa !27
  %196 = fdiv float %192, %195
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %class.SnowParticle, ptr %197, i32 0, i32 0
  store float %196, ptr %198, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %199

199:                                              ; preds = %183
  %200 = load i32, ptr %3, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %3, align 4, !tbaa !9
  br label %21, !llvm.loop !52

202:                                              ; preds = %29
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 72}
!12 = !{!"_ZTS8GridMesh", !13, i64 0, !13, i64 24, !18, i64 48, !14, i64 60, !6, i64 72, !22, i64 80, !10, i64 84, !23, i64 88, !10, i64 112, !23, i64 120}
!13 = !{!"_ZTS7Bounds3", !14, i64 0, !14, i64 12}
!14 = !{!"_ZTSN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEE", !15, i64 0}
!15 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEE", !16, i64 0}
!16 = !{!"_ZTSN5Eigen12DenseStorageIfLi3ELi3ELi1ELi0EEE", !17, i64 0}
!17 = !{!"_ZTSN5Eigen8internal11plain_arrayIfLi3ELi0ELi0EEE", !7, i64 0}
!18 = !{!"_ZTSN5Eigen6MatrixIiLi3ELi1ELi0ELi3ELi1EEE", !19, i64 0}
!19 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEEEE", !20, i64 0}
!20 = !{!"_ZTSN5Eigen12DenseStorageIiLi3ELi3ELi1ELi0EEE", !21, i64 0}
!21 = !{!"_ZTSN5Eigen8internal11plain_arrayIiLi3ELi0ELi0EEE", !7, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSSt6vectorIP8GridCellSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP8GridCellSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP8GridCellSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP8GridCellSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!28, !22, i64 8}
!28 = !{!"_ZTS12SnowParticle", !22, i64 0, !22, i64 4, !22, i64 8, !14, i64 12, !14, i64 24, !29, i64 36, !29, i64 72, !29, i64 108, !29, i64 144, !29, i64 180, !14, i64 216, !29, i64 228, !29, i64 264, !29, i64 300, !7, i64 336, !7, i64 1104, !6, i64 1360}
!29 = !{!"_ZTSN5Eigen6MatrixIfLi3ELi3ELi0ELi3ELi3EEE", !30, i64 0}
!30 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIfLi3ELi3ELi0ELi3ELi3EEEEE", !31, i64 0}
!31 = !{!"_ZTSN5Eigen12DenseStorageIfLi9ELi3ELi3ELi0EEE", !32, i64 0}
!32 = !{!"_ZTSN5Eigen8internal11plain_arrayIfLi9ELi0ELi0EEE", !7, i64 0}
!33 = !{!22, !22, i64 0}
!34 = !{!35, !22, i64 16}
!35 = !{!"_ZTS8GridCell", !36, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !22, i64 16, !14, i64 20, !14, i64 32, !14, i64 44, !37, i64 56, !41, i64 80, !14, i64 104, !14, i64 116, !14, i64 128, !14, i64 140, !14, i64 152, !22, i64 164}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTSSt6vectorIP12SnowParticleSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP12SnowParticleSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP12SnowParticleSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP12SnowParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt6vectorIiSaIiEE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}
!48 = distinct !{!48, !46}
!49 = !{!12, !22, i64 80}
!50 = !{!28, !22, i64 4}
!51 = !{!28, !22, i64 0}
!52 = distinct !{!52, !46}


; 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.Eigen::CwiseBinaryOp.42" = type <{ ptr, ptr, [8 x i8] }>
%"class.Eigen::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { %"struct.Eigen::internal::plain_array" }
%"struct.Eigen::internal::plain_array" = type { [3 x float] }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEmiIS2_EEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIfNS6_6traitsIT_E6ScalarEEEKS2_KS9_EERKNS0_IS9_EE(ptr dead_on_unwind noalias writable sret(%"class.Eigen::CwiseBinaryOp.42") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKS1_S7_EEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8GridMesh23calculateParticleVolumeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca %"class.Eigen::Matrix", align 4
  %3 = alloca %"class.Eigen::CwiseBinaryOp.42", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 72
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef i64 @_ZNKSt6vectorIP12SnowParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 60
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 88
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  br label %11

._crit_edge:                                      ; preds = %26, %1
  ret void

11:                                               ; preds = %.lr.ph, %26
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next59, %26 ]
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12SnowParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #5
  %14 = load ptr, ptr %13, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 12
  call void @_ZNK5Eigen10MatrixBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEmiIS2_EEKNS_13CwiseBinaryOpINS_8internal20scalar_difference_opIfNS6_6traitsIT_E6ScalarEEEKS2_KS9_EERKNS0_IS9_EE(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::CwiseBinaryOp.42") align 8 %3, ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %0)
  call void @_ZN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEC2INS_13CwiseBinaryOpINS_8internal20scalar_difference_opIffEEKS1_S7_EEEERKNS_9EigenBaseIT_EE(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %16 = getelementptr inbounds i8, ptr %14, i64 8
  store float 0.000000e+00, ptr %16, align 8, !tbaa !26
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  %18 = load float, ptr %17, align 4, !tbaa !32
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  %20 = load float, ptr %19, align 4, !tbaa !32
  %21 = fdiv float %18, %20
  %22 = fptosi float %21 to i32
  %23 = add nsw i32 %22, -1
  %24 = getelementptr inbounds i8, ptr %14, i64 1104
  %25 = add nsw i32 %22, 2
  br label %36

26:                                               ; preds = %.loopexit48
  %27 = load float, ptr %10, align 8, !tbaa !33
  %28 = load float, ptr %16, align 8, !tbaa !26
  %29 = fdiv float %28, %27
  store float %29, ptr %16, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %14, i64 4
  %31 = load float, ptr %30, align 4, !tbaa !34
  %32 = fdiv float %31, %29
  store float %32, ptr %14, align 8, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv, 1
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef i64 @_ZNKSt6vectorIP12SnowParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  %35 = icmp ugt i64 %34, %indvars.iv.next59
  br i1 %35, label %11, label %._crit_edge, !llvm.loop !36

36:                                               ; preds = %11, %.loopexit48
  %.04256 = phi i32 [ 0, %11 ], [ %.4, %.loopexit48 ]
  %.04454 = phi i32 [ %23, %11 ], [ %184, %.loopexit48 ]
  %37 = icmp sgt i32 %.04454, -1
  br i1 %37, label %38, label %182

38:                                               ; preds = %36
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %40 = load i32, ptr %39, align 4, !tbaa !38
  %41 = icmp slt i32 %.04454, %40
  br i1 %41, label %42, label %182

42:                                               ; preds = %38
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  %44 = load float, ptr %43, align 4, !tbaa !32
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  %46 = load float, ptr %45, align 4, !tbaa !32
  %47 = fdiv float %44, %46
  %48 = fptosi float %47 to i32
  %49 = add nsw i32 %48, -1
  %50 = add nsw i32 %48, 2
  br label %51

51:                                               ; preds = %42, %.loopexit
  %.153 = phi i32 [ %.04256, %42 ], [ %.3, %.loopexit ]
  %.04551 = phi i32 [ %49, %42 ], [ %180, %.loopexit ]
  %52 = icmp sgt i32 %.04551, -1
  br i1 %52, label %53, label %.loopexit

53:                                               ; preds = %51
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %55 = load i32, ptr %54, align 4, !tbaa !38
  %56 = icmp slt i32 %.04551, %55
  br i1 %56, label %57, label %.loopexit

57:                                               ; preds = %53
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi1EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %2)
  %59 = load float, ptr %58, align 4, !tbaa !32
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  %61 = load float, ptr %60, align 4, !tbaa !32
  %62 = fdiv float %59, %61
  %63 = fptosi float %62 to i32
  %64 = add nsw i32 %63, -1
  %65 = sext i32 %.153 to i64
  %66 = icmp sgt i32 %63, 0
  br i1 %66, label %67, label %93

67:                                               ; preds = %57
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %69 = load i32, ptr %68, align 4, !tbaa !38
  %.not61 = icmp slt i32 %69, %63
  br i1 %.not61, label %.thread, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds [64 x float], ptr %24, i64 0, i64 %65
  %72 = load float, ptr %71, align 4, !tbaa !32
  %73 = fcmp ogt float %72, 0x3F1A36E2E0000000
  br i1 %73, label %74, label %.thread

74:                                               ; preds = %70
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %76 = load i32, ptr %75, align 4, !tbaa !38
  %77 = mul nsw i32 %76, %.04454
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %79 = load i32, ptr %78, align 4, !tbaa !38
  %80 = mul nsw i32 %77, %79
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %82 = load i32, ptr %81, align 4, !tbaa !38
  %83 = mul nsw i32 %82, %.04551
  %84 = add i32 %80, %64
  %85 = add i32 %84, %83
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP8GridCellSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %86) #5
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %90 = load float, ptr %89, align 8, !tbaa !39
  %91 = load float, ptr %16, align 8, !tbaa !26
  %92 = call float @llvm.fmuladd.f32(float %72, float %90, float %91)
  store float %92, ptr %16, align 8, !tbaa !26
  br label %.thread

93:                                               ; preds = %57
  %94 = icmp sgt i32 %63, -1
  br i1 %94, label %.thread, label %122

.thread:                                          ; preds = %70, %74, %67, %93
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %96 = load i32, ptr %95, align 4, !tbaa !38
  %97 = icmp sgt i32 %96, %63
  br i1 %97, label %98, label %.thread65

98:                                               ; preds = %.thread
  %indvars.iv.next63 = add nsw i64 %65, 1
  %99 = getelementptr inbounds [64 x float], ptr %24, i64 0, i64 %indvars.iv.next63
  %100 = load float, ptr %99, align 4, !tbaa !32
  %101 = fcmp ogt float %100, 0x3F1A36E2E0000000
  br i1 %101, label %102, label %.thread65

102:                                              ; preds = %98
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %104 = load i32, ptr %103, align 4, !tbaa !38
  %105 = mul nsw i32 %104, %.04454
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %107 = load i32, ptr %106, align 4, !tbaa !38
  %108 = mul nsw i32 %105, %107
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %110 = load i32, ptr %109, align 4, !tbaa !38
  %111 = mul nsw i32 %110, %.04551
  %112 = add i32 %108, %63
  %113 = add i32 %112, %111
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP8GridCellSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %114) #5
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load float, ptr %117, align 8, !tbaa !39
  %119 = load float, ptr %16, align 8, !tbaa !26
  %120 = call float @llvm.fmuladd.f32(float %100, float %118, float %119)
  store float %120, ptr %16, align 8, !tbaa !26
  br label %.thread65

.thread65:                                        ; preds = %102, %98, %.thread
  %121 = add nuw nsw i32 %63, 1
  br label %123

122:                                              ; preds = %93
  switch i32 %63, label %.loopexit [
    i32 -1, label %123
    i32 -2, label %152
  ]

123:                                              ; preds = %122, %.thread65
  %124 = phi i32 [ %121, %.thread65 ], [ 0, %122 ]
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %126 = load i32, ptr %125, align 4, !tbaa !38
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %128, label %.thread69

128:                                              ; preds = %123
  %indvars.iv.next.167 = add nsw i64 %65, 2
  %129 = getelementptr inbounds [64 x float], ptr %24, i64 0, i64 %indvars.iv.next.167
  %130 = load float, ptr %129, align 4, !tbaa !32
  %131 = fcmp ogt float %130, 0x3F1A36E2E0000000
  br i1 %131, label %132, label %.thread69

132:                                              ; preds = %128
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %134 = load i32, ptr %133, align 4, !tbaa !38
  %135 = mul nsw i32 %134, %.04454
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %137 = load i32, ptr %136, align 4, !tbaa !38
  %138 = mul nsw i32 %135, %137
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %140 = load i32, ptr %139, align 4, !tbaa !38
  %141 = mul nsw i32 %140, %.04551
  %142 = add i32 %138, %124
  %143 = add i32 %142, %141
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP8GridCellSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %144) #5
  %146 = load ptr, ptr %145, align 8, !tbaa !25
  %147 = getelementptr inbounds i8, ptr %146, i64 16
  %148 = load float, ptr %147, align 8, !tbaa !39
  %149 = load float, ptr %16, align 8, !tbaa !26
  %150 = call float @llvm.fmuladd.f32(float %130, float %148, float %149)
  store float %150, ptr %16, align 8, !tbaa !26
  br label %.thread69

.thread69:                                        ; preds = %132, %128, %123
  %151 = add nsw i32 %63, 2
  br label %152

152:                                              ; preds = %122, %.thread69
  %153 = phi i32 [ %151, %.thread69 ], [ 0, %122 ]
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %155 = load i32, ptr %154, align 4, !tbaa !38
  %156 = icmp slt i32 %153, %155
  br i1 %156, label %157, label %.loopexit

157:                                              ; preds = %152
  %indvars.iv.next.271 = add nsw i64 %65, 3
  %158 = getelementptr inbounds [64 x float], ptr %24, i64 0, i64 %indvars.iv.next.271
  %159 = load float, ptr %158, align 4, !tbaa !32
  %160 = fcmp ogt float %159, 0x3F1A36E2E0000000
  br i1 %160, label %161, label %.loopexit

161:                                              ; preds = %157
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %163 = load i32, ptr %162, align 4, !tbaa !38
  %164 = mul nsw i32 %163, %.04454
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %166 = load i32, ptr %165, align 4, !tbaa !38
  %167 = mul nsw i32 %164, %166
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %169 = load i32, ptr %168, align 4, !tbaa !38
  %170 = mul nsw i32 %169, %.04551
  %171 = add i32 %167, %153
  %172 = add i32 %171, %170
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIP8GridCellSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %173) #5
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = getelementptr inbounds i8, ptr %175, i64 16
  %177 = load float, ptr %176, align 8, !tbaa !39
  %178 = load float, ptr %16, align 8, !tbaa !26
  %179 = call float @llvm.fmuladd.f32(float %159, float %177, float %178)
  store float %179, ptr %16, align 8, !tbaa !26
  br label %.loopexit

.loopexit:                                        ; preds = %122, %161, %157, %152, %51, %53
  %.3 = add i32 %.153, 4
  %180 = add nsw i32 %.04551, 1
  %181 = icmp slt i32 %.04551, %50
  br i1 %181, label %51, label %.loopexit48, !llvm.loop !50

182:                                              ; preds = %38, %36
  %183 = add nsw i32 %.04256, 16
  br label %.loopexit48

.loopexit48:                                      ; preds = %.loopexit, %182
  %.4 = phi i32 [ %183, %182 ], [ %.3, %.loopexit ]
  %184 = add nsw i32 %.04454, 1
  %185 = icmp slt i32 %.04454, %25
  br i1 %185, label %36, label %26, !llvm.loop !51
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1xEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1yEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK5Eigen15DenseCoeffsBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEELi0EE1zEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !18, i64 72}
!6 = !{!"_ZTS8GridMesh", !7, i64 0, !7, i64 24, !14, i64 48, !8, i64 60, !18, i64 72, !19, i64 80, !20, i64 84, !21, i64 88, !20, i64 112, !21, i64 120}
!7 = !{!"_ZTS7Bounds3", !8, i64 0, !8, i64 12}
!8 = !{!"_ZTSN5Eigen6MatrixIfLi3ELi1ELi0ELi3ELi1EEE", !9, i64 0}
!9 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIfLi3ELi1ELi0ELi3ELi1EEEEE", !10, i64 0}
!10 = !{!"_ZTSN5Eigen12DenseStorageIfLi3ELi3ELi1ELi0EEE", !11, i64 0}
!11 = !{!"_ZTSN5Eigen8internal11plain_arrayIfLi3ELi0ELi0EEE", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN5Eigen6MatrixIiLi3ELi1ELi0ELi3ELi1EEE", !15, i64 0}
!15 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIiLi3ELi1ELi0ELi3ELi1EEEEE", !16, i64 0}
!16 = !{!"_ZTSN5Eigen12DenseStorageIiLi3ELi3ELi1ELi0EEE", !17, i64 0}
!17 = !{!"_ZTSN5Eigen8internal11plain_arrayIiLi3ELi0ELi0EEE", !12, i64 0}
!18 = !{!"any pointer", !12, i64 0}
!19 = !{!"float", !12, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!"_ZTSSt6vectorIP8GridCellSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP8GridCellSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP8GridCellSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP8GridCellSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!25 = !{!18, !18, i64 0}
!26 = !{!27, !19, i64 8}
!27 = !{!"_ZTS12SnowParticle", !19, i64 0, !19, i64 4, !19, i64 8, !8, i64 12, !8, i64 24, !28, i64 36, !28, i64 72, !28, i64 108, !28, i64 144, !28, i64 180, !8, i64 216, !28, i64 228, !28, i64 264, !28, i64 300, !12, i64 336, !12, i64 1104, !18, i64 1360}
!28 = !{!"_ZTSN5Eigen6MatrixIfLi3ELi3ELi0ELi3ELi3EEE", !29, i64 0}
!29 = !{!"_ZTSN5Eigen15PlainObjectBaseINS_6MatrixIfLi3ELi3ELi0ELi3ELi3EEEEE", !30, i64 0}
!30 = !{!"_ZTSN5Eigen12DenseStorageIfLi9ELi3ELi3ELi0EEE", !31, i64 0}
!31 = !{!"_ZTSN5Eigen8internal11plain_arrayIfLi9ELi0ELi0EEE", !12, i64 0}
!32 = !{!19, !19, i64 0}
!33 = !{!6, !19, i64 80}
!34 = !{!27, !19, i64 4}
!35 = !{!27, !19, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!20, !20, i64 0}
!39 = !{!40, !19, i64 16}
!40 = !{!"_ZTS8GridCell", !41, i64 0, !20, i64 4, !20, i64 8, !20, i64 12, !19, i64 16, !8, i64 20, !8, i64 32, !8, i64 44, !42, i64 56, !46, i64 80, !8, i64 104, !8, i64 116, !8, i64 128, !8, i64 140, !8, i64 152, !19, i64 164}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSSt6vectorIP12SnowParticleSaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIP12SnowParticleSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIP12SnowParticleSaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP12SnowParticleSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!46 = !{!"_ZTSSt6vectorIiSaIiEE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!50 = distinct !{!50, !37}
!51 = distinct !{!51, !37}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass