; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/fluidbrickgrid.ll (ZN14FluidBrickGrid16_updateBrickGridER8LevelSetR17FluidMaterialGrid)

; 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.vmath::vec3" = type { float, float, float }
%struct.Brick = type <{ float, i8, [3 x i8] }>
%struct.GridIndex = type { i32, i32, i32 }
%class.FluidBrickGrid = type <{ i32, i32, i32, [4 x i8], double, %class.AABB, %class.Array3d, %class.Array3d.0, [3 x %class.Array3d.0], i32, [4 x i8], %class.Array3d.0, i8, [3 x i8], i32, i32, float, float, float, i32, i32, i8, [7 x i8] }>
%class.AABB = type { %"class.vmath::vec3", double, double, double }
%class.Array3d = type <{ i32, i32, i32, [4 x i8], ptr, i8, [3 x i8], %"struct.FluidBrickGrid::DensityNode", i32, [4 x i8] }>
%"struct.FluidBrickGrid::DensityNode" = type { float, float, float }
%class.Array3d.0 = type { i32, i32, i32, ptr, i8, [3 x i8], %struct.Brick, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1

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

declare void @_ZN5vmathplERKNS_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)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGrid16_updateBrickGridER8LevelSetR17FluidMaterialGrid(ptr noundef nonnull align 8 dereferenceable(353) %0, ptr noundef nonnull align 8 dereferenceable(448) %1, ptr noundef nonnull align 8 dereferenceable(88) %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.Brick, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.GridIndex, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.vmath::vec3", align 4
  %21 = alloca %"class.vmath::vec3", align 4
  %22 = alloca %struct.GridIndex, align 4
  %23 = alloca %"class.vmath::vec3", align 4
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca %"class.vmath::vec3", align 4
  %26 = alloca %"class.vmath::vec3", align 4
  %27 = alloca i1, align 1
  %28 = alloca %struct.GridIndex, align 4
  %29 = alloca { i64, i32 }, align 4
  %30 = alloca float, align 4
  %31 = alloca %struct.Brick, align 4
  %32 = alloca %struct.Brick, align 4
  %33 = alloca ptr, align 8
  %34 = alloca %struct.GridIndex, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.Brick, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8
  %40 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  call void @_ZN5BrickC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %7)
  %41 = load i64, ptr %7, align 4
  call void @_ZN7Array3dI5BrickE4fillES0_(ptr noundef nonnull align 8 dereferenceable(40) %40, i64 %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %42 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 5
  %43 = getelementptr inbounds %class.AABB, ptr %42, i32 0, i32 1
  %44 = load double, ptr %43, align 8, !tbaa !9
  store double %44, ptr %8, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %45 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 5
  %46 = getelementptr inbounds %class.AABB, ptr %45, i32 0, i32 2
  %47 = load double, ptr %46, align 8, !tbaa !22
  store double %47, ptr %9, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %48 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 5
  %49 = getelementptr inbounds %class.AABB, ptr %48, i32 0, i32 3
  %50 = load double, ptr %49, align 8, !tbaa !23
  store double %50, ptr %10, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #9
  %51 = load double, ptr %8, align 8, !tbaa !21
  %52 = fmul double 5.000000e-01, %51
  %53 = fptrunc double %52 to float
  %54 = load double, ptr %9, align 8, !tbaa !21
  %55 = fmul double 5.000000e-01, %54
  %56 = fptrunc double %55 to float
  %57 = load double, ptr %10, align 8, !tbaa !21
  %58 = fmul double 5.000000e-01, %57
  %59 = fptrunc double %58 to float
  call void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %53, float noundef %56, float noundef %59)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #9
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %60 unwind label %69

60:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #9
  invoke void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %61 unwind label %73

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !24
  br label %62

62:                                               ; preds = %201, %61
  %63 = load i32, ptr %16, align 4, !tbaa !24
  %64 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %65 = getelementptr inbounds %class.Array3d.0, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !25
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %77, label %68

68:                                               ; preds = %62
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %204

69:                                               ; preds = %3
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %13, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %14, align 4
  br label %286

73:                                               ; preds = %60
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  br label %285

77:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !24
  br label %78

78:                                               ; preds = %197, %77
  %79 = load i32, ptr %18, align 4, !tbaa !24
  %80 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %81 = getelementptr inbounds %class.Array3d.0, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !26
  %83 = icmp slt i32 %79, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %78
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %200

85:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %86

86:                                               ; preds = %192, %85
  %87 = load i32, ptr %19, align 4, !tbaa !24
  %88 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %89 = getelementptr inbounds %class.Array3d.0, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !27
  %91 = icmp slt i32 %87, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %196

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #9
  %94 = load i32, ptr %19, align 4, !tbaa !24
  %95 = sitofp i32 %94 to double
  %96 = load double, ptr %8, align 8, !tbaa !21
  %97 = fmul double %95, %96
  %98 = fptrunc double %97 to float
  %99 = load i32, ptr %18, align 4, !tbaa !24
  %100 = sitofp i32 %99 to double
  %101 = load double, ptr %9, align 8, !tbaa !21
  %102 = fmul double %100, %101
  %103 = fptrunc double %102 to float
  %104 = load i32, ptr %16, align 4, !tbaa !24
  %105 = sitofp i32 %104 to double
  %106 = load double, ptr %10, align 8, !tbaa !21
  %107 = fmul double %105, %106
  %108 = fptrunc double %107 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %98, float noundef %103, float noundef %108)
          to label %109 unwind label %157

109:                                              ; preds = %93
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %110 unwind label %161

110:                                              ; preds = %109
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !28
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !28
  %111 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 4
  %112 = load double, ptr %111, align 8, !tbaa !30
  %113 = invoke { i64, i32 } @_ZN6Grid3d19positionToGridIndexEN5vmath4vec3Ed(ptr noundef %23, double noundef %112)
          to label %114 unwind label %166

114:                                              ; preds = %110
  store { i64, i32 } %113, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %22, i64 12, i1 false), !tbaa.struct !31
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !28
  %115 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 4
  %116 = load double, ptr %115, align 8, !tbaa !30
  %117 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 0
  %118 = load i32, ptr %117, align 8, !tbaa !32
  %119 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !33
  %121 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 2
  %122 = load i32, ptr %121, align 8, !tbaa !34
  store i1 false, ptr %27, align 1
  %123 = invoke noundef zeroext i1 @_ZN6Grid3d16isPositionInGridEN5vmath4vec3Ediii(ptr noundef %25, double noundef %116, i32 noundef %118, i32 noundef %120, i32 noundef %122)
          to label %124 unwind label %170

124:                                              ; preds = %114
  br i1 %123, label %125, label %137

125:                                              ; preds = %124
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !28
  store i1 true, ptr %27, align 1
  %127 = invoke noundef zeroext i1 @_ZN8LevelSet19isPointInInsideCellEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(448) %126, ptr noundef %26)
          to label %128 unwind label %174

128:                                              ; preds = %125
  br i1 %127, label %129, label %137

129:                                              ; preds = %128
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %15, i64 12, i1 false), !tbaa.struct !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %28, i64 12, i1 false)
  %131 = getelementptr inbounds { i64, i32 }, ptr %29, i32 0, i32 0
  %132 = load i64, ptr %131, align 4
  %133 = getelementptr inbounds { i64, i32 }, ptr %29, i32 0, i32 1
  %134 = load i32, ptr %133, align 4
  %135 = invoke noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellFluidE9GridIndex(ptr noundef nonnull align 8 dereferenceable(88) %130, i64 %132, i32 %134)
          to label %136 unwind label %174

136:                                              ; preds = %129
  br label %137

137:                                              ; preds = %136, %128, %124
  %138 = phi i1 [ false, %128 ], [ false, %124 ], [ %135, %136 ]
  %139 = load i1, ptr %27, align 1
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %26) #9
  br label %141

141:                                              ; preds = %140, %137
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #9
  br i1 %138, label %142, label %191

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %143 = load i32, ptr %19, align 4, !tbaa !24
  %144 = load i32, ptr %18, align 4, !tbaa !24
  %145 = load i32, ptr %16, align 4, !tbaa !24
  %146 = invoke noundef float @_ZN14FluidBrickGrid18_getBrickIntensityEiii(ptr noundef nonnull align 8 dereferenceable(353) %39, i32 noundef %143, i32 noundef %144, i32 noundef %145)
          to label %147 unwind label %182

147:                                              ; preds = %142
  store float %146, ptr %30, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %148 = load float, ptr %30, align 4, !tbaa !29
  invoke void @_ZN5BrickC2Ef(ptr noundef nonnull align 4 dereferenceable(5) %31, float noundef %148)
          to label %149 unwind label %186

149:                                              ; preds = %147
  %150 = getelementptr inbounds %struct.Brick, ptr %31, i32 0, i32 1
  store i8 1, ptr %150, align 4, !tbaa !35
  %151 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %152 = load i32, ptr %19, align 4, !tbaa !24
  %153 = load i32, ptr %18, align 4, !tbaa !24
  %154 = load i32, ptr %16, align 4, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !36
  %155 = load i64, ptr %32, align 4
  invoke void @_ZN7Array3dI5BrickE3setEiiiS0_(ptr noundef nonnull align 8 dereferenceable(40) %151, i32 noundef %152, i32 noundef %153, i32 noundef %154, i64 %155)
          to label %156 unwind label %186

156:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %191

157:                                              ; preds = %93
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %13, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %14, align 4
  br label %165

161:                                              ; preds = %109
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %13, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %14, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #9
  br label %165

165:                                              ; preds = %161, %157
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #9
  br label %195

166:                                              ; preds = %110
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %13, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %14, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  br label %195

170:                                              ; preds = %114
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %13, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %14, align 4
  br label %181

174:                                              ; preds = %129, %125
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %13, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %14, align 4
  %178 = load i1, ptr %27, align 1
  br i1 %178, label %179, label %180

179:                                              ; preds = %174
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %26) #9
  br label %180

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

181:                                              ; preds = %180, %170
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #9
  br label %195

182:                                              ; preds = %142
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %13, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %14, align 4
  br label %190

186:                                              ; preds = %149, %147
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %13, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %190

190:                                              ; preds = %186, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %195

191:                                              ; preds = %156, %141
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %19, align 4, !tbaa !24
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %19, align 4, !tbaa !24
  br label %86, !llvm.loop !38

195:                                              ; preds = %190, %181, %166, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %285

196:                                              ; preds = %92
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %18, align 4, !tbaa !24
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %18, align 4, !tbaa !24
  br label %78, !llvm.loop !40

200:                                              ; preds = %84
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %16, align 4, !tbaa !24
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %16, align 4, !tbaa !24
  br label %62, !llvm.loop !41

204:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #9
  invoke void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %205 unwind label %213

205:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !24
  br label %206

206:                                              ; preds = %280, %205
  %207 = load i32, ptr %35, align 4, !tbaa !24
  %208 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %209 = getelementptr inbounds %class.Array3d.0, ptr %208, i32 0, i32 2
  %210 = load i32, ptr %209, align 8, !tbaa !25
  %211 = icmp slt i32 %207, %210
  br i1 %211, label %217, label %212

212:                                              ; preds = %206
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %283

213:                                              ; preds = %204
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %13, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %14, align 4
  br label %284

217:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 0, ptr %36, align 4, !tbaa !24
  br label %218

218:                                              ; preds = %276, %217
  %219 = load i32, ptr %36, align 4, !tbaa !24
  %220 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %221 = getelementptr inbounds %class.Array3d.0, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !26
  %223 = icmp slt i32 %219, %222
  br i1 %223, label %225, label %224

224:                                              ; preds = %218
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %279

225:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 0, ptr %37, align 4, !tbaa !24
  br label %226

226:                                              ; preds = %271, %225
  %227 = load i32, ptr %37, align 4, !tbaa !24
  %228 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %229 = getelementptr inbounds %class.Array3d.0, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 8, !tbaa !27
  %231 = icmp slt i32 %227, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %226
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %275

233:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %234 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %235 = load i32, ptr %37, align 4, !tbaa !24
  %236 = load i32, ptr %36, align 4, !tbaa !24
  %237 = load i32, ptr %35, align 4, !tbaa !24
  %238 = invoke i64 @_ZN7Array3dI5BrickEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %234, i32 noundef %235, i32 noundef %236, i32 noundef %237)
          to label %239 unwind label %262

239:                                              ; preds = %233
  %240 = trunc i64 %238 to i40
  store i40 %240, ptr %38, align 4
  %241 = getelementptr inbounds %struct.Brick, ptr %38, i32 0, i32 1
  %242 = load i8, ptr %241, align 4, !tbaa !35, !range !42, !noundef !43
  %243 = trunc i8 %242 to i1
  br i1 %243, label %244, label %251

244:                                              ; preds = %239
  %245 = load i32, ptr %37, align 4, !tbaa !24
  %246 = load i32, ptr %36, align 4, !tbaa !24
  %247 = load i32, ptr %35, align 4, !tbaa !24
  %248 = invoke noundef zeroext i1 @_ZN14FluidBrickGrid29_isBrickNextToActiveNeighbourEiii(ptr noundef nonnull align 8 dereferenceable(353) %39, i32 noundef %245, i32 noundef %246, i32 noundef %247)
          to label %249 unwind label %262

249:                                              ; preds = %244
  %250 = xor i1 %248, true
  br label %251

251:                                              ; preds = %249, %239
  %252 = phi i1 [ false, %239 ], [ %250, %249 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br i1 %252, label %253, label %270

253:                                              ; preds = %251
  %254 = getelementptr inbounds %class.FluidBrickGrid, ptr %39, i32 0, i32 7
  %255 = load i32, ptr %37, align 4, !tbaa !24
  %256 = load i32, ptr %36, align 4, !tbaa !24
  %257 = load i32, ptr %35, align 4, !tbaa !24
  %258 = invoke noundef ptr @_ZN7Array3dI5BrickE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(40) %254, i32 noundef %255, i32 noundef %256, i32 noundef %257)
          to label %259 unwind label %266

259:                                              ; preds = %253
  store ptr %258, ptr %33, align 8, !tbaa !5
  %260 = load ptr, ptr %33, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.Brick, ptr %260, i32 0, i32 1
  store i8 0, ptr %261, align 4, !tbaa !35
  br label %270

262:                                              ; preds = %244, %233
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %13, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %274

266:                                              ; preds = %253
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %13, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %14, align 4
  br label %274

270:                                              ; preds = %259, %251
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %37, align 4, !tbaa !24
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %37, align 4, !tbaa !24
  br label %226, !llvm.loop !44

274:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %284

275:                                              ; preds = %232
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %36, align 4, !tbaa !24
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %36, align 4, !tbaa !24
  br label %218, !llvm.loop !45

279:                                              ; preds = %224
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %35, align 4, !tbaa !24
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %35, align 4, !tbaa !24
  br label %206, !llvm.loop !46

283:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  ret void

284:                                              ; preds = %274, %213
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %285

285:                                              ; preds = %284, %195, %73
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #9
  br label %286

286:                                              ; preds = %285, %69
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %287

287:                                              ; preds = %286
  %288 = load ptr, ptr %13, align 8
  %289 = load i32, ptr %14, align 4
  %290 = insertvalue { ptr, i32 } poison, ptr %288, 0
  %291 = insertvalue { ptr, i32 } %290, i32 %289, 1
  resume { ptr, i32 } %291
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN6Grid3d19positionToGridIndexEN5vmath4vec3Ed(ptr noundef, double noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN14FluidBrickGrid18_getBrickIntensityEiii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef, i32 noundef) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14FluidBrickGrid29_isBrickNextToActiveNeighbourEiii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef, i32 noundef) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Grid3d16isPositionInGridEN5vmath4vec3Ediii(ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef) #8

declare noundef zeroext i1 @_ZN8LevelSet19isPointInInsideCellEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef) #1

declare noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellFluidE9GridIndex(ptr noundef nonnull align 8 dereferenceable(88), i64, i32) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5BrickC2Ef(ptr noundef nonnull align 4 dereferenceable(5), float noundef) unnamed_addr #5 align 2

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

!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, !12, i64 40}
!10 = !{!"_ZTS14FluidBrickGrid", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !13, i64 24, !16, i64 64, !19, i64 112, !7, i64 152, !11, i64 272, !19, i64 280, !17, i64 320, !11, i64 324, !11, i64 328, !15, i64 332, !15, i64 336, !15, i64 340, !11, i64 344, !11, i64 348, !17, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS4AABB", !14, i64 0, !12, i64 16, !12, i64 24, !12, i64 32}
!14 = !{!"_ZTSN5vmath4vec3E", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS7Array3dIN14FluidBrickGrid11DensityNodeEE", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !17, i64 24, !18, i64 28, !11, i64 40}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN14FluidBrickGrid11DensityNodeE", !15, i64 0, !15, i64 4, !15, i64 8}
!19 = !{!"_ZTS7Array3dI5BrickE", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !17, i64 24, !20, i64 28, !11, i64 36}
!20 = !{!"_ZTS5Brick", !15, i64 0, !17, i64 4}
!21 = !{!12, !12, i64 0}
!22 = !{!10, !12, i64 48}
!23 = !{!10, !12, i64 56}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 120}
!26 = !{!10, !11, i64 116}
!27 = !{!10, !11, i64 112}
!28 = !{i64 0, i64 4, !29, i64 4, i64 4, !29, i64 8, i64 4, !29}
!29 = !{!15, !15, i64 0}
!30 = !{!10, !12, i64 16}
!31 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24}
!32 = !{!10, !11, i64 0}
!33 = !{!10, !11, i64 4}
!34 = !{!10, !11, i64 8}
!35 = !{!20, !17, i64 4}
!36 = !{i64 0, i64 4, !29, i64 4, i64 1, !37}
!37 = !{!17, !17, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = distinct !{!41, !39}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !39}
!45 = distinct !{!45, !39}
!46 = distinct !{!46, !39}


; 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.vmath::vec3" = type { float, float, float }
%struct.Brick = type <{ float, i8, [3 x i8] }>
%struct.GridIndex = type { i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1

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

declare void @_ZN5vmathplERKNS_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 #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGrid16_updateBrickGridER8LevelSetR17FluidMaterialGrid(ptr noundef nonnull align 8 dereferenceable(353) %0, ptr noundef nonnull align 8 dereferenceable(448) %1, ptr noundef nonnull align 8 dereferenceable(88) %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.Brick, align 8
  %5 = alloca %"class.vmath::vec3", align 4
  %6 = alloca %"class.vmath::vec3", align 4
  %7 = alloca %struct.GridIndex, align 8
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %"class.vmath::vec3", align 4
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %struct.Brick, align 8
  %14 = alloca %struct.GridIndex, align 4
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZN5BrickC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %4)
  %16 = load i64, ptr %4, align 8
  call void @_ZN7Array3dI5BrickE4fillES0_(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = load double, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = load double, ptr %21, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #9
  %23 = fmul double %18, 5.000000e-01
  %24 = fptrunc double %23 to float
  %25 = fmul double %20, 5.000000e-01
  %26 = fptrunc double %25 to float
  %27 = fmul double %22, 5.000000e-01
  %28 = fptrunc double %27 to float
  call void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %24, float noundef %26, float noundef %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %29 unwind label %54

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %30 = getelementptr inbounds i8, ptr %0, i64 120
  %31 = load i32, ptr %30, align 8, !tbaa !22
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.preheader78.lr.ph, label %._crit_edge90

.preheader78.lr.ph:                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 116
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %35 = getelementptr inbounds i8, ptr %0, i64 4
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = getelementptr inbounds i8, ptr %13, i64 4
  %38 = load i32, ptr %33, align 4, !tbaa !23
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.preheader78, label %._crit_edge90

.preheader78:                                     ; preds = %.preheader78.lr.ph, %._crit_edge87
  %40 = phi i32 [ %62, %._crit_edge87 ], [ %31, %.preheader78.lr.ph ]
  %41 = phi i32 [ %63, %._crit_edge87 ], [ %38, %.preheader78.lr.ph ]
  %42 = phi i32 [ %64, %._crit_edge87 ], [ %38, %.preheader78.lr.ph ]
  %.06088 = phi i32 [ %65, %._crit_edge87 ], [ 0, %.preheader78.lr.ph ]
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.preheader77.lr.ph, label %._crit_edge87

.preheader77.lr.ph:                               ; preds = %.preheader78
  %44 = uitofp nneg i32 %.06088 to double
  %45 = fmul double %22, %44
  %46 = fptrunc double %45 to float
  %47 = load i32, ptr %15, align 8, !tbaa !24
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.preheader77, label %._crit_edge87

._crit_edge90:                                    ; preds = %._crit_edge87, %.preheader78.lr.ph, %29
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #9
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %14)
  %49 = load i32, ptr %30, align 8, !tbaa !22
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.preheader76.lr.ph, label %._crit_edge98

.preheader76.lr.ph:                               ; preds = %._crit_edge90
  %51 = getelementptr inbounds i8, ptr %0, i64 116
  %52 = load i32, ptr %51, align 4, !tbaa !23
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.preheader76, label %._crit_edge98

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

.preheader77:                                     ; preds = %.preheader77.lr.ph, %._crit_edge
  %56 = phi i32 [ %67, %._crit_edge ], [ %41, %.preheader77.lr.ph ]
  %57 = phi i32 [ %68, %._crit_edge ], [ %47, %.preheader77.lr.ph ]
  %.06186 = phi i32 [ %69, %._crit_edge ], [ 0, %.preheader77.lr.ph ]
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader77
  %59 = uitofp nneg i32 %.06186 to double
  %60 = fmul double %20, %59
  %61 = fptrunc double %60 to float
  br label %71

._crit_edge87.loopexit:                           ; preds = %._crit_edge
  %.pre103 = load i32, ptr %30, align 8, !tbaa !22
  br label %._crit_edge87

._crit_edge87:                                    ; preds = %.preheader77.lr.ph, %._crit_edge87.loopexit, %.preheader78
  %62 = phi i32 [ %.pre103, %._crit_edge87.loopexit ], [ %40, %.preheader78 ], [ %40, %.preheader77.lr.ph ]
  %63 = phi i32 [ %67, %._crit_edge87.loopexit ], [ %41, %.preheader78 ], [ %41, %.preheader77.lr.ph ]
  %64 = phi i32 [ %67, %._crit_edge87.loopexit ], [ %42, %.preheader78 ], [ %42, %.preheader77.lr.ph ]
  %65 = add nuw nsw i32 %.06088, 1
  %66 = icmp slt i32 %65, %62
  br i1 %66, label %.preheader78, label %._crit_edge90, !llvm.loop !25

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader77
  %67 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %56, %.preheader77 ]
  %68 = phi i32 [ %110, %._crit_edge.loopexit ], [ %57, %.preheader77 ]
  %69 = add nuw nsw i32 %.06186, 1
  %70 = icmp slt i32 %69, %67
  br i1 %70, label %.preheader77, label %._crit_edge87.loopexit, !llvm.loop !28

71:                                               ; preds = %.lr.ph, %108
  %.06285 = phi i32 [ 0, %.lr.ph ], [ %109, %108 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  %72 = uitofp nneg i32 %.06285 to double
  %73 = fmul double %18, %72
  %74 = fptrunc double %73 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %74, float noundef %61, float noundef %46)
          to label %75 unwind label %95

75:                                               ; preds = %71
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %76 unwind label %97

76:                                               ; preds = %75
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !29
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #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 %8) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !29
  %77 = load double, ptr %34, align 8, !tbaa !31
  %78 = invoke { i64, i32 } @_ZN6Grid3d19positionToGridIndexEN5vmath4vec3Ed(ptr noundef nonnull %10, double noundef %77)
          to label %79 unwind label %100

79:                                               ; preds = %76
  %.fca.0.extract = extractvalue { i64, i32 } %78, 0
  %.fca.1.extract = extractvalue { i64, i32 } %78, 1
  store i64 %.fca.0.extract, ptr %7, align 8
  store i32 %.fca.1.extract, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !32
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !29
  %80 = load double, ptr %34, align 8, !tbaa !31
  %81 = load i32, ptr %0, align 8, !tbaa !33
  %82 = load i32, ptr %35, align 4, !tbaa !34
  %83 = load i32, ptr %36, align 8, !tbaa !35
  %84 = call noundef zeroext i1 @_ZN6Grid3d16isPositionInGridEN5vmath4vec3Ediii(ptr noundef nonnull %11, double noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %83)
  br i1 %84, label %85, label %.thread73

.thread73:                                        ; preds = %79
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  br label %108

85:                                               ; preds = %79
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !29
  %86 = invoke noundef zeroext i1 @_ZN8LevelSet19isPointInInsideCellEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(448) %1, ptr noundef nonnull %12)
          to label %87 unwind label %102

87:                                               ; preds = %85
  br i1 %86, label %88, label %.critedge75

88:                                               ; preds = %87
  %.sroa.018.0.copyload = load i64, ptr %7, align 8
  %.sroa.219.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !32
  %89 = invoke noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellFluidE9GridIndex(ptr noundef nonnull align 8 dereferenceable(88) %2, i64 %.sroa.018.0.copyload, i32 %.sroa.219.0.copyload)
          to label %90 unwind label %102

90:                                               ; preds = %88
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  br i1 %89, label %91, label %108

91:                                               ; preds = %90
  %92 = invoke noundef float @_ZN14FluidBrickGrid18_getBrickIntensityEiii(ptr noundef nonnull align 8 dereferenceable(353) %0, i32 noundef %.06285, i32 noundef %.06186, i32 noundef %.06088)
          to label %93 unwind label %104

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  call void @_ZN5BrickC2Ef(ptr noundef nonnull align 4 dereferenceable(5) %13, float noundef %92)
  store i8 1, ptr %37, align 4, !tbaa !36
  %.sroa.015.0.copyload = load i64, ptr %13, align 8
  invoke void @_ZN7Array3dI5BrickE3setEiiiS0_(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %.06285, i32 noundef %.06186, i32 noundef %.06088, i64 %.sroa.015.0.copyload)
          to label %94 unwind label %106

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %108

95:                                               ; preds = %71
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %75
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #9
  br label %99

99:                                               ; preds = %97, %95
  %.pn66 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  br label %148

100:                                              ; preds = %76
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #9
  br label %148

102:                                              ; preds = %88, %85
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  br label %148

104:                                              ; preds = %91
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %148

106:                                              ; preds = %93
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %148

.critedge75:                                      ; preds = %87
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #9
  br label %108

108:                                              ; preds = %.critedge75, %.thread73, %90, %94
  %109 = add nuw nsw i32 %.06285, 1
  %110 = load i32, ptr %15, align 8, !tbaa !24
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %71, label %._crit_edge.loopexit, !llvm.loop !37

.preheader76:                                     ; preds = %.preheader76.lr.ph, %._crit_edge95
  %112 = phi i32 [ %121, %._crit_edge95 ], [ %49, %.preheader76.lr.ph ]
  %113 = phi i32 [ %122, %._crit_edge95 ], [ %52, %.preheader76.lr.ph ]
  %114 = phi i32 [ %123, %._crit_edge95 ], [ %52, %.preheader76.lr.ph ]
  %.05996 = phi i32 [ %124, %._crit_edge95 ], [ 0, %.preheader76.lr.ph ]
  %115 = icmp sgt i32 %114, 0
  %116 = load i32, ptr %15, align 8
  %117 = icmp sgt i32 %116, 0
  %or.cond = select i1 %115, i1 %117, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge95

._crit_edge98:                                    ; preds = %._crit_edge95, %.preheader76.lr.ph, %._crit_edge90
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  ret void

.preheader:                                       ; preds = %.preheader76, %._crit_edge93
  %118 = phi i32 [ %126, %._crit_edge93 ], [ %113, %.preheader76 ]
  %119 = phi i32 [ %127, %._crit_edge93 ], [ %116, %.preheader76 ]
  %.05894 = phi i32 [ %128, %._crit_edge93 ], [ 0, %.preheader76 ]
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %.lr.ph92, label %._crit_edge93

._crit_edge95.loopexit:                           ; preds = %._crit_edge93
  %.pre105 = load i32, ptr %30, align 8, !tbaa !22
  br label %._crit_edge95

._crit_edge95:                                    ; preds = %._crit_edge95.loopexit, %.preheader76
  %121 = phi i32 [ %.pre105, %._crit_edge95.loopexit ], [ %112, %.preheader76 ]
  %122 = phi i32 [ %126, %._crit_edge95.loopexit ], [ %113, %.preheader76 ]
  %123 = phi i32 [ %126, %._crit_edge95.loopexit ], [ %114, %.preheader76 ]
  %124 = add nuw nsw i32 %.05996, 1
  %125 = icmp slt i32 %124, %121
  br i1 %125, label %.preheader76, label %._crit_edge98, !llvm.loop !38

._crit_edge93.loopexit:                           ; preds = %.critedge
  %.pre104 = load i32, ptr %51, align 4, !tbaa !23
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %.preheader
  %126 = phi i32 [ %.pre104, %._crit_edge93.loopexit ], [ %118, %.preheader ]
  %127 = phi i32 [ %145, %._crit_edge93.loopexit ], [ %119, %.preheader ]
  %128 = add nuw nsw i32 %.05894, 1
  %129 = icmp slt i32 %128, %126
  br i1 %129, label %.preheader, label %._crit_edge95.loopexit, !llvm.loop !39

.lr.ph92:                                         ; preds = %.preheader, %.critedge
  %.05791 = phi i32 [ %144, %.critedge ], [ 0, %.preheader ]
  %130 = invoke i64 @_ZN7Array3dI5BrickEclEiii(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %.05791, i32 noundef %.05894, i32 noundef %.05996)
          to label %131 unwind label %140

131:                                              ; preds = %.lr.ph92
  %132 = and i64 %130, 4294967296
  %.not = icmp eq i64 %132, 0
  br i1 %.not, label %.critedge, label %133

133:                                              ; preds = %131
  %134 = invoke noundef zeroext i1 @_ZN14FluidBrickGrid29_isBrickNextToActiveNeighbourEiii(ptr noundef nonnull align 8 dereferenceable(353) %0, i32 noundef %.05791, i32 noundef %.05894, i32 noundef %.05996)
          to label %135 unwind label %140

135:                                              ; preds = %133
  br i1 %134, label %.critedge, label %136

136:                                              ; preds = %135
  %137 = invoke noundef ptr @_ZN7Array3dI5BrickE10getPointerEiii(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef %.05791, i32 noundef %.05894, i32 noundef %.05996)
          to label %138 unwind label %142

138:                                              ; preds = %136
  %139 = getelementptr inbounds i8, ptr %137, i64 4
  store i8 0, ptr %139, align 4, !tbaa !36
  br label %.critedge

140:                                              ; preds = %133, %.lr.ph92
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %147

142:                                              ; preds = %136
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %147

.critedge:                                        ; preds = %131, %135, %138
  %144 = add nuw nsw i32 %.05791, 1
  %145 = load i32, ptr %15, align 8, !tbaa !24
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %.lr.ph92, label %._crit_edge93.loopexit, !llvm.loop !40

147:                                              ; preds = %142, %140
  %.pn = phi { ptr, i32 } [ %143, %142 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  br label %148

148:                                              ; preds = %99, %100, %102, %106, %104, %147
  %.pn68.pn.pn = phi { ptr, i32 } [ %.pn, %147 ], [ %103, %102 ], [ %101, %100 ], [ %.pn66, %99 ], [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #9
  br label %149

149:                                              ; preds = %148, %54
  %.pn68.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn, %148 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn68.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN6Grid3d19positionToGridIndexEN5vmath4vec3Ed(ptr noundef, double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN14FluidBrickGrid18_getBrickIntensityEiii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14FluidBrickGrid29_isBrickNextToActiveNeighbourEiii(ptr noundef nonnull align 8 dereferenceable(353), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Grid3d16isPositionInGridEN5vmath4vec3Ediii(ptr noundef, double noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

declare noundef zeroext i1 @_ZN8LevelSet19isPointInInsideCellEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(448), ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellFluidE9GridIndex(ptr noundef nonnull align 8 dereferenceable(88), i64, i32) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5BrickC2Ef(ptr noundef nonnull align 4 dereferenceable(5), float noundef) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 40}
!6 = !{!"_ZTS14FluidBrickGrid", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !11, i64 24, !14, i64 64, !18, i64 112, !8, i64 152, !7, i64 272, !18, i64 280, !16, i64 320, !7, i64 324, !7, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !7, i64 344, !7, i64 348, !16, i64 352}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTS4AABB", !12, i64 0, !10, i64 16, !10, i64 24, !10, i64 32}
!12 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !8, i64 0}
!14 = !{!"_ZTS7Array3dIN14FluidBrickGrid11DensityNodeEE", !7, i64 0, !7, i64 4, !7, i64 8, !15, i64 16, !16, i64 24, !17, i64 28, !7, i64 40}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSN14FluidBrickGrid11DensityNodeE", !13, i64 0, !13, i64 4, !13, i64 8}
!18 = !{!"_ZTS7Array3dI5BrickE", !7, i64 0, !7, i64 4, !7, i64 8, !15, i64 16, !16, i64 24, !19, i64 28, !7, i64 36}
!19 = !{!"_ZTS5Brick", !13, i64 0, !16, i64 4}
!20 = !{!6, !10, i64 48}
!21 = !{!6, !10, i64 56}
!22 = !{!6, !7, i64 120}
!23 = !{!6, !7, i64 116}
!24 = !{!6, !7, i64 112}
!25 = distinct !{!25, !26, !27}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.unswitch.partial.disable"}
!28 = distinct !{!28, !26, !27}
!29 = !{i64 0, i64 4, !30, i64 4, i64 4, !30, i64 8, i64 4, !30}
!30 = !{!13, !13, i64 0}
!31 = !{!6, !10, i64 16}
!32 = !{!7, !7, i64 0}
!33 = !{!6, !7, i64 0}
!34 = !{!6, !7, i64 4}
!35 = !{!6, !7, i64 8}
!36 = !{!19, !16, i64 4}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !26, !27}
!39 = distinct !{!39, !26, !27}
!40 = distinct !{!40, !26}


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