; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src (spatialpointgrid)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.GridIndex = type { i32, i32, i32 }
%"class.vmath::vec3" = type { float, float, float }
%struct.GridPoint = type { %"class.vmath::vec3", %struct.GridPointReference }
%struct.GridPointReference = type { i32 }
%"struct.SpatialPointGrid::CellNode" = type { i32, i32 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%class.SpatialPointGrid = type { i32, i32, i32, double, %"class.std::vector", %"class.std::vector.0", %class.Array3d, %class.AABB }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GridPoint, std::allocator<GridPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%class.Array3d = type { i32, i32, i32, ptr, i8, %"struct.SpatialPointGrid::CellNode", i32 }
%class.AABB = type { %"class.vmath::vec3", double, double, double }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@__FUNCTION__._ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16SpatialPointGrid8CellNodeC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN5vmath4vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: noreturn nounwind
declare void @abort() #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.GridIndex, align 4
  %12 = alloca %struct.GridIndex, align 4
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.vmath::vec3", align 4
  %19 = alloca %struct.GridPoint, align 4
  %20 = alloca %"struct.SpatialPointGrid::CellNode", align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.SpatialPointGrid::CellNode", align 4
  %26 = alloca %"struct.SpatialPointGrid::CellNode", align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca %"class.vmath::vec3", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %31) #9
  %33 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 4
  %34 = call noundef i64 @_ZNKSt6vectorI9GridPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %35 = icmp eq i64 %32, %34
  br i1 %35, label %46, label %36

36:                                               ; preds = %5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str.6)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.2)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @.str.3)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @.str.4)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @__FUNCTION__._ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @.str.5)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef 365)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @abort() #10
  unreachable

46:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %1, i64 12, i1 false), !tbaa.struct !11
  %47 = load double, ptr %8, align 8, !tbaa !9
  %48 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 3
  %49 = load double, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !30
  %52 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !31
  %54 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 2
  %55 = load i32, ptr %54, align 8, !tbaa !32
  invoke void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef %13, double noundef %47, double noundef %49, i32 noundef %51, i32 noundef %53, i32 noundef %55, ptr noundef %11, ptr noundef %12)
          to label %56 unwind label %70

56:                                               ; preds = %46
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %57 = load double, ptr %8, align 8, !tbaa !9
  %58 = load double, ptr %8, align 8, !tbaa !9
  %59 = fmul double %57, %58
  store double %59, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #9
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  invoke void @_ZN9GridPointC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19)
          to label %60 unwind label %74

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  invoke void @_ZN16SpatialPointGrid8CellNodeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %61 unwind label %78

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %62 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !33
  store i32 %63, ptr %21, align 4, !tbaa !35
  br label %64

64:                                               ; preds = %196, %61
  %65 = load i32, ptr %21, align 4, !tbaa !35
  %66 = getelementptr inbounds %struct.GridIndex, ptr %12, i32 0, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !33
  %68 = icmp sle i32 %65, %67
  br i1 %68, label %82, label %69

69:                                               ; preds = %64
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %199

70:                                               ; preds = %46
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %14, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %15, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  br label %202

74:                                               ; preds = %56
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %14, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %15, align 4
  br label %201

78:                                               ; preds = %60
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %14, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %15, align 4
  br label %200

82:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %83 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !36
  store i32 %84, ptr %23, align 4, !tbaa !35
  br label %85

85:                                               ; preds = %192, %82
  %86 = load i32, ptr %23, align 4, !tbaa !35
  %87 = getelementptr inbounds %struct.GridIndex, ptr %12, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !36
  %89 = icmp sle i32 %86, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %195

91:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %92 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !37
  store i32 %93, ptr %24, align 4, !tbaa !35
  br label %94

94:                                               ; preds = %187, %91
  %95 = load i32, ptr %24, align 4, !tbaa !35
  %96 = getelementptr inbounds %struct.GridIndex, ptr %12, i32 0, i32 0
  %97 = load i32, ptr %96, align 4, !tbaa !37
  %98 = icmp sle i32 %95, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %94
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %191

100:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %101 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 6
  %102 = load i32, ptr %24, align 4, !tbaa !35
  %103 = load i32, ptr %23, align 4, !tbaa !35
  %104 = load i32, ptr %21, align 4, !tbaa !35
  %105 = invoke i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %101, i32 noundef %102, i32 noundef %103, i32 noundef %104)
          to label %106 unwind label %128

106:                                              ; preds = %100
  store i64 %105, ptr %25, align 4
  %107 = getelementptr inbounds %"struct.SpatialPointGrid::CellNode", ptr %25, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !38
  %109 = icmp sgt i32 %108, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br i1 %109, label %110, label %186

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %111 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 6
  %112 = load i32, ptr %24, align 4, !tbaa !35
  %113 = load i32, ptr %23, align 4, !tbaa !35
  %114 = load i32, ptr %21, align 4, !tbaa !35
  %115 = invoke i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %111, i32 noundef %112, i32 noundef %113, i32 noundef %114)
          to label %116 unwind label %132

116:                                              ; preds = %110
  store i64 %115, ptr %26, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %117 = getelementptr inbounds %"struct.SpatialPointGrid::CellNode", ptr %20, i32 0, i32 0
  %118 = load i32, ptr %117, align 4, !tbaa !40
  store i32 %118, ptr %27, align 4, !tbaa !35
  br label %119

119:                                              ; preds = %181, %116
  %120 = load i32, ptr %27, align 4, !tbaa !35
  %121 = getelementptr inbounds %"struct.SpatialPointGrid::CellNode", ptr %20, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !40
  %123 = getelementptr inbounds %"struct.SpatialPointGrid::CellNode", ptr %20, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !38
  %125 = add nsw i32 %122, %124
  %126 = icmp slt i32 %120, %125
  br i1 %126, label %136, label %127

127:                                              ; preds = %119
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %185

128:                                              ; preds = %100
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %14, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %190

132:                                              ; preds = %110
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %14, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %190

136:                                              ; preds = %119
  %137 = getelementptr inbounds %class.SpatialPointGrid, ptr %30, i32 0, i32 4
  %138 = load i32, ptr %27, align 4, !tbaa !35
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI9GridPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %140, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.GridPoint, ptr %19, i32 0, i32 1
  %143 = getelementptr inbounds %struct.GridPointReference, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 4, !tbaa !42
  %145 = sext i32 %144 to i64
  %146 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %141, i64 noundef %145)
          to label %147 unwind label %167

147:                                              ; preds = %136
  %148 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %149 = extractvalue { ptr, i64 } %146, 0
  store ptr %149, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %151 = extractvalue { ptr, i64 } %146, 1
  store i64 %151, ptr %150, align 8
  %152 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  %153 = xor i1 %152, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br i1 %153, label %154, label %180

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #9
  %155 = getelementptr inbounds %struct.GridPoint, ptr %19, i32 0, i32 0
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(12) %155, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %156 unwind label %171

156:                                              ; preds = %154
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !11
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %29) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #9
  %157 = invoke noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %158 unwind label %175

158:                                              ; preds = %156
  %159 = fpext float %157 to double
  store double %159, ptr %17, align 8, !tbaa !9
  %160 = load double, ptr %17, align 8, !tbaa !9
  %161 = load double, ptr %16, align 8, !tbaa !9
  %162 = fcmp olt double %160, %161
  br i1 %162, label %163, label %179

163:                                              ; preds = %158
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.GridPoint, ptr %19, i32 0, i32 0
  invoke void @_ZNSt6vectorIN5vmath4vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %164, ptr noundef nonnull align 4 dereferenceable(12) %165)
          to label %166 unwind label %175

166:                                              ; preds = %163
  br label %179

167:                                              ; preds = %136
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %14, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %184

171:                                              ; preds = %154
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %14, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #9
  br label %184

175:                                              ; preds = %163, %156
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %14, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %15, align 4
  br label %184

179:                                              ; preds = %166, %158
  br label %180

180:                                              ; preds = %179, %147
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %27, align 4, !tbaa !35
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %27, align 4, !tbaa !35
  br label %119, !llvm.loop !45

184:                                              ; preds = %175, %171, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %190

185:                                              ; preds = %127
  br label %186

186:                                              ; preds = %185, %106
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %24, align 4, !tbaa !35
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %24, align 4, !tbaa !35
  br label %94, !llvm.loop !47

190:                                              ; preds = %184, %132, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %200

191:                                              ; preds = %99
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %23, align 4, !tbaa !35
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %23, align 4, !tbaa !35
  br label %85, !llvm.loop !48

195:                                              ; preds = %90
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %21, align 4, !tbaa !35
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %21, align 4, !tbaa !35
  br label %64, !llvm.loop !49

199:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #9
  ret void

200:                                              ; preds = %190, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #9
  br label %201

201:                                              ; preds = %200, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %202

202:                                              ; preds = %201, %70
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #9
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %14, align 8
  %205 = load i32, ptr %15, align 4
  %206 = insertvalue { ptr, i32 } poison, ptr %204, 0
  %207 = insertvalue { ptr, i32 } %206, i32 %205, 1
  resume { ptr, i32 } %207
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9GridPointC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #6

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

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

attributes #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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !10, i64 16}
!15 = !{!"_ZTS16SpatialPointGrid", !16, i64 0, !16, i64 4, !16, i64 8, !10, i64 16, !17, i64 24, !21, i64 48, !25, i64 72, !28, i64 112}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt6vectorI9GridPointSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI9GridPointSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS7Array3dIN16SpatialPointGrid8CellNodeEE", !16, i64 0, !16, i64 4, !16, i64 8, !6, i64 16, !26, i64 24, !27, i64 28, !16, i64 36}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN16SpatialPointGrid8CellNodeE", !16, i64 0, !16, i64 4}
!28 = !{!"_ZTS4AABB", !29, i64 0, !10, i64 16, !10, i64 24, !10, i64 32}
!29 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!30 = !{!15, !16, i64 0}
!31 = !{!15, !16, i64 4}
!32 = !{!15, !16, i64 8}
!33 = !{!34, !16, i64 8}
!34 = !{!"_ZTS9GridIndex", !16, i64 0, !16, i64 4, !16, i64 8}
!35 = !{!16, !16, i64 0}
!36 = !{!34, !16, i64 4}
!37 = !{!34, !16, i64 0}
!38 = !{!27, !16, i64 4}
!39 = !{i64 0, i64 4, !35, i64 4, i64 4, !35}
!40 = !{!27, !16, i64 0}
!41 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !35}
!42 = !{!43, !16, i64 12}
!43 = !{!"_ZTS9GridPoint", !29, i64 0, !44, i64 12}
!44 = !{!"_ZTS18GridPointReference", !16, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}
!48 = distinct !{!48, !46}
!49 = distinct !{!49, !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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.GridIndex = type { i32, i32, i32 }
%"class.vmath::vec3" = type { float, float, float }
%struct.GridPoint = type { %"class.vmath::vec3", %struct.GridPointReference }
%struct.GridPointReference = type { i32 }
%"struct.SpatialPointGrid::CellNode" = type { i32, i32 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@__FUNCTION__._ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16SpatialPointGrid8CellNodeC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) 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 uwtable
declare dso_local void @_ZNSt6vectorIN5vmath4vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.GridIndex, align 4
  %7 = alloca %struct.GridIndex, align 4
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %struct.GridPoint, align 4
  %11 = alloca %"struct.SpatialPointGrid::CellNode", align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = tail call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %3) #9
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = tail call noundef i64 @_ZNKSt6vectorI9GridPointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %17 = icmp eq i64 %14, %16
  br i1 %17, label %28, label %18

18:                                               ; preds = %5
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @.str.6)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.2)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.3)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.4)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @__FUNCTION__._ZN16SpatialPointGrid24_queryPointsInsideSphereEN5vmath4vec3EdRSt6vectorIbSaIbEERS2_IS1_SaIS1_EE)
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.5)
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 365)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @abort() #10
  unreachable

28:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %1, i64 12, i1 false), !tbaa.struct !5
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load double, ptr %29, align 8, !tbaa !10
  %31 = load i32, ptr %0, align 8, !tbaa !28
  %32 = getelementptr inbounds i8, ptr %0, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i32, ptr %34, align 8, !tbaa !30
  invoke void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef nonnull %8, double noundef %2, double noundef %30, i32 noundef %31, i32 noundef %33, i32 noundef %35, ptr noundef nonnull %6, ptr noundef nonnull %7)
          to label %36 unwind label %52

36:                                               ; preds = %28
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #9
  %37 = fmul double %2, %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  invoke void @_ZN9GridPointC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %38 unwind label %54

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN16SpatialPointGrid8CellNodeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = load i32, ptr %39, align 4, !tbaa !31
  %41 = getelementptr inbounds i8, ptr %7, i64 8
  %42 = load i32, ptr %41, align 4, !tbaa !31
  %.not49 = icmp sgt i32 %40, %42
  br i1 %.not49, label %._crit_edge54, label %.lr.ph53

.lr.ph53:                                         ; preds = %38
  %43 = getelementptr inbounds i8, ptr %6, i64 4
  %44 = getelementptr inbounds i8, ptr %7, i64 4
  %45 = getelementptr inbounds i8, ptr %0, i64 72
  %46 = getelementptr inbounds i8, ptr %11, i64 4
  %47 = getelementptr inbounds i8, ptr %10, i64 12
  %48 = getelementptr inbounds i8, ptr %12, i64 8
  %49 = load i32, ptr %43, align 4, !tbaa !33
  %50 = load i32, ptr %44, align 4, !tbaa !33
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %._crit_edge54, label %.lr.ph53.split

._crit_edge54:                                    ; preds = %._crit_edge48, %.lr.ph53, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  ret void

52:                                               ; preds = %28
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #9
  br label %117

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %116

.lr.ph53.split:                                   ; preds = %.lr.ph53, %._crit_edge48
  %56 = phi i32 [ %63, %._crit_edge48 ], [ %42, %.lr.ph53 ]
  %57 = phi i32 [ %64, %._crit_edge48 ], [ %50, %.lr.ph53 ]
  %58 = phi i32 [ %65, %._crit_edge48 ], [ %50, %.lr.ph53 ]
  %.03150 = phi i32 [ %66, %._crit_edge48 ], [ %40, %.lr.ph53 ]
  %59 = load i32, ptr %43, align 4, !tbaa !33
  %.not3444 = icmp sgt i32 %59, %58
  br i1 %.not3444, label %._crit_edge48, label %.lr.ph47

.lr.ph47:                                         ; preds = %.lr.ph53.split
  %60 = load i32, ptr %6, align 4, !tbaa !34
  %61 = load i32, ptr %7, align 4, !tbaa !34
  %62 = icmp sgt i32 %60, %61
  br i1 %62, label %._crit_edge48, label %.lr.ph47.split

._crit_edge48.loopexit55:                         ; preds = %._crit_edge
  %.pre58 = load i32, ptr %41, align 4, !tbaa !31
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %.lr.ph47, %._crit_edge48.loopexit55, %.lr.ph53.split
  %63 = phi i32 [ %.pre58, %._crit_edge48.loopexit55 ], [ %56, %.lr.ph53.split ], [ %56, %.lr.ph47 ]
  %64 = phi i32 [ %70, %._crit_edge48.loopexit55 ], [ %57, %.lr.ph53.split ], [ %57, %.lr.ph47 ]
  %65 = phi i32 [ %70, %._crit_edge48.loopexit55 ], [ %58, %.lr.ph53.split ], [ %58, %.lr.ph47 ]
  %66 = add nsw i32 %.03150, 1
  %.not.not = icmp slt i32 %.03150, %63
  br i1 %.not.not, label %.lr.ph53.split, label %._crit_edge54, !llvm.loop !35

.lr.ph47.split:                                   ; preds = %.lr.ph47, %._crit_edge
  %67 = phi i32 [ %70, %._crit_edge ], [ %57, %.lr.ph47 ]
  %68 = phi i32 [ %71, %._crit_edge ], [ %61, %.lr.ph47 ]
  %.03345 = phi i32 [ %72, %._crit_edge ], [ %59, %.lr.ph47 ]
  %69 = load i32, ptr %6, align 4, !tbaa !34
  %.not3541 = icmp sgt i32 %69, %68
  br i1 %.not3541, label %._crit_edge, label %.lr.ph43

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre = load i32, ptr %44, align 4, !tbaa !33
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph47.split
  %70 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %67, %.lr.ph47.split ]
  %71 = phi i32 [ %114, %._crit_edge.loopexit ], [ %68, %.lr.ph47.split ]
  %72 = add nsw i32 %.03345, 1
  %.not34.not = icmp slt i32 %.03345, %70
  br i1 %.not34.not, label %.lr.ph47.split, label %._crit_edge48.loopexit55, !llvm.loop !38

.lr.ph43:                                         ; preds = %.lr.ph47.split, %.loopexit
  %.03242 = phi i32 [ %113, %.loopexit ], [ %69, %.lr.ph47.split ]
  %73 = invoke i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %45, i32 noundef %.03242, i32 noundef %.03345, i32 noundef %.03150)
          to label %74 unwind label %83

74:                                               ; preds = %.lr.ph43
  %.sroa.4.0.extract.shift = lshr i64 %73, 32
  %.sroa.4.0.extract.trunc = trunc nuw i64 %.sroa.4.0.extract.shift to i32
  %75 = icmp sgt i32 %.sroa.4.0.extract.trunc, 0
  br i1 %75, label %76, label %.loopexit

76:                                               ; preds = %74
  %77 = invoke i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %45, i32 noundef %.03242, i32 noundef %.03345, i32 noundef %.03150)
          to label %78 unwind label %85

78:                                               ; preds = %76
  store i64 %77, ptr %11, align 8
  %79 = lshr i64 %77, 32
  %80 = trunc nuw i64 %79 to i32
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %78
  %sext = shl i64 %77, 32
  %82 = ashr exact i64 %sext, 32
  br label %.lr.ph

83:                                               ; preds = %.lr.ph43
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %115

85:                                               ; preds = %76
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %115

.lr.ph:                                           ; preds = %.lr.ph.preheader, %107
  %indvars.iv = phi i64 [ %82, %.lr.ph.preheader ], [ %indvars.iv.next, %107 ]
  %87 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI9GridPointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %87, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %88 = load i32, ptr %47, align 4, !tbaa !41
  %89 = sext i32 %88 to i64
  %90 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %89)
          to label %91 unwind label %101

91:                                               ; preds = %.lr.ph
  %92 = extractvalue { ptr, i64 } %90, 0
  store ptr %92, ptr %12, align 8
  %93 = extractvalue { ptr, i64 } %90, 1
  store i64 %93, ptr %48, align 8
  %94 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br i1 %94, label %107, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #9
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %96 unwind label %103

96:                                               ; preds = %95
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #9
  %97 = call noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %98 = fpext float %97 to double
  %99 = fcmp ogt double %37, %98
  br i1 %99, label %100, label %107

100:                                              ; preds = %96
  invoke void @_ZNSt6vectorIN5vmath4vec3ESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %107 unwind label %105

101:                                              ; preds = %.lr.ph
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  br label %115

103:                                              ; preds = %95
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #9
  br label %115

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

107:                                              ; preds = %91, %100, %96
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %108 = load i32, ptr %11, align 8, !tbaa !44
  %109 = load i32, ptr %46, align 4, !tbaa !45
  %110 = add nsw i32 %109, %108
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next, %111
  br i1 %112, label %.lr.ph, label %.loopexit, !llvm.loop !46

.loopexit:                                        ; preds = %107, %78, %74
  %113 = add nsw i32 %.03242, 1
  %114 = load i32, ptr %7, align 4, !tbaa !34
  %.not35.not = icmp slt i32 %.03242, %114
  br i1 %.not35.not, label %.lr.ph43, label %._crit_edge.loopexit, !llvm.loop !47

115:                                              ; preds = %101, %103, %105, %85, %83
  %.pn.pn = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ], [ %106, %105 ], [ %104, %103 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN9GridPointD2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #9
  br label %116

116:                                              ; preds = %115, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %115 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  br label %117

117:                                              ; preds = %116, %52
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %116 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9GridPointC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN7Array3dIN16SpatialPointGrid8CellNodeEEclEiii(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

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

attributes #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 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !13, i64 16}
!11 = !{!"_ZTS16SpatialPointGrid", !12, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !14, i64 24, !19, i64 48, !23, i64 72, !26, i64 112}
!12 = !{!"int", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"_ZTSSt6vectorI9GridPointSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI9GridPointSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI9GridPointSaIS0_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTS7Array3dIN16SpatialPointGrid8CellNodeEE", !12, i64 0, !12, i64 4, !12, i64 8, !18, i64 16, !24, i64 24, !25, i64 28, !12, i64 36}
!24 = !{!"bool", !8, i64 0}
!25 = !{!"_ZTSN16SpatialPointGrid8CellNodeE", !12, i64 0, !12, i64 4}
!26 = !{!"_ZTS4AABB", !27, i64 0, !13, i64 16, !13, i64 24, !13, i64 32}
!27 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!28 = !{!11, !12, i64 0}
!29 = !{!11, !12, i64 4}
!30 = !{!11, !12, i64 8}
!31 = !{!32, !12, i64 8}
!32 = !{!"_ZTS9GridIndex", !12, i64 0, !12, i64 4, !12, i64 8}
!33 = !{!32, !12, i64 4}
!34 = !{!32, !12, i64 0}
!35 = distinct !{!35, !36, !37}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!"llvm.loop.unswitch.partial.disable"}
!38 = distinct !{!38, !36, !37}
!39 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !40}
!40 = !{!12, !12, i64 0}
!41 = !{!42, !12, i64 12}
!42 = !{!"_ZTS9GridPoint", !27, i64 0, !43, i64 12}
!43 = !{!"_ZTS18GridPointReference", !12, i64 0}
!44 = !{!25, !12, i64 0}
!45 = !{!25, !12, i64 4}
!46 = distinct !{!46, !36}
!47 = distinct !{!47, !36}


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