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

; 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 }
%"class.vmath::vec3" = type { float, float, float }
%class.FluidMaterialGrid = type { i32, i32, i32, %class.SubdividedArray3d }
%class.SubdividedArray3d = type { i32, i32, i32, i32, i32, i32, %class.Array3d, i32, double }
%class.Array3d = type { i32, i32, i32, ptr, i8, i8, i32 }
%struct.GridIndex = type { i32, i32, i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__FUNCTION__._ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex(ptr noundef %0, ptr noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %4) #2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %49 = load double, ptr %9, align 8, !tbaa !9
  %50 = fdiv double 1.000000e+00, %49
  store double %50, ptr %12, align 8, !tbaa !9
  %51 = load double, ptr %12, align 8, !tbaa !9
  %52 = fptrunc double %51 to float
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12) %0, float noundef %52)
  %54 = load double, ptr %12, align 8, !tbaa !9
  %55 = fptrunc double %54 to float
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %57 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 0
  %58 = load float, ptr %57, align 4, !tbaa !11
  %59 = call noundef float @_ZSt5floorf(float noundef %58)
  %60 = fptosi float %59 to i32
  store i32 %60, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %61 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !16
  %63 = call noundef float @_ZSt5floorf(float noundef %62)
  %64 = fptosi float %63 to i32
  store i32 %64, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %65 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 2
  %66 = load float, ptr %65, align 4, !tbaa !17
  %67 = call noundef float @_ZSt5floorf(float noundef %66)
  %68 = fptosi float %67 to i32
  store i32 %68, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %69 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 0
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = call noundef float @_ZSt5floorf(float noundef %70)
  %72 = fptosi float %71 to i32
  store i32 %72, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %73 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !16
  %75 = call noundef float @_ZSt5floorf(float noundef %74)
  %76 = fptosi float %75 to i32
  store i32 %76, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %77 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 2
  %78 = load float, ptr %77, align 4, !tbaa !17
  %79 = call noundef float @_ZSt5floorf(float noundef %78)
  %80 = fptosi float %79 to i32
  store i32 %80, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %81 = load i32, ptr %16, align 4, !tbaa !14
  %82 = load i32, ptr %13, align 4, !tbaa !14
  %83 = icmp sgt i32 %81, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %5
  br label %91

85:                                               ; preds = %5
  %86 = load i32, ptr %16, align 4, !tbaa !14
  %87 = load i32, ptr %13, align 4, !tbaa !14
  %88 = icmp slt i32 %86, %87
  %89 = zext i1 %88 to i64
  %90 = select i1 %88, i32 -1, i32 0
  br label %91

91:                                               ; preds = %85, %84
  %92 = phi i32 [ 1, %84 ], [ %90, %85 ]
  store i32 %92, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %93 = load i32, ptr %17, align 4, !tbaa !14
  %94 = load i32, ptr %14, align 4, !tbaa !14
  %95 = icmp sgt i32 %93, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  br label %103

97:                                               ; preds = %91
  %98 = load i32, ptr %17, align 4, !tbaa !14
  %99 = load i32, ptr %14, align 4, !tbaa !14
  %100 = icmp slt i32 %98, %99
  %101 = zext i1 %100 to i64
  %102 = select i1 %100, i32 -1, i32 0
  br label %103

103:                                              ; preds = %97, %96
  %104 = phi i32 [ 1, %96 ], [ %102, %97 ]
  store i32 %104, ptr %20, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %105 = load i32, ptr %18, align 4, !tbaa !14
  %106 = load i32, ptr %15, align 4, !tbaa !14
  %107 = icmp sgt i32 %105, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %103
  br label %115

109:                                              ; preds = %103
  %110 = load i32, ptr %18, align 4, !tbaa !14
  %111 = load i32, ptr %15, align 4, !tbaa !14
  %112 = icmp slt i32 %110, %111
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 -1, i32 0
  br label %115

115:                                              ; preds = %109, %108
  %116 = phi i32 [ 1, %108 ], [ %114, %109 ]
  store i32 %116, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %117 = load i32, ptr %13, align 4, !tbaa !14
  store i32 %117, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %118 = load i32, ptr %14, align 4, !tbaa !14
  store i32 %118, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %119 = load i32, ptr %15, align 4, !tbaa !14
  store i32 %119, ptr %24, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %120 = load i32, ptr %13, align 4, !tbaa !14
  %121 = load i32, ptr %16, align 4, !tbaa !14
  %122 = load i32, ptr %13, align 4, !tbaa !14
  %123 = icmp sgt i32 %121, %122
  %124 = zext i1 %123 to i64
  %125 = select i1 %123, i32 1, i32 0
  %126 = add nsw i32 %120, %125
  %127 = sitofp i32 %126 to double
  store double %127, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %128 = load i32, ptr %14, align 4, !tbaa !14
  %129 = load i32, ptr %17, align 4, !tbaa !14
  %130 = load i32, ptr %14, align 4, !tbaa !14
  %131 = icmp sgt i32 %129, %130
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 1, i32 0
  %134 = add nsw i32 %128, %133
  %135 = sitofp i32 %134 to double
  store double %135, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %136 = load i32, ptr %15, align 4, !tbaa !14
  %137 = load i32, ptr %18, align 4, !tbaa !14
  %138 = load i32, ptr %15, align 4, !tbaa !14
  %139 = icmp sgt i32 %137, %138
  %140 = zext i1 %139 to i64
  %141 = select i1 %139, i32 1, i32 0
  %142 = add nsw i32 %136, %141
  %143 = sitofp i32 %142 to double
  store double %143, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %144 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 0
  %147 = load float, ptr %146, align 4, !tbaa !11
  %148 = fcmp oeq float %145, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %115
  br label %156

150:                                              ; preds = %115
  %151 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 0
  %152 = load float, ptr %151, align 4, !tbaa !11
  %153 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !11
  %155 = fsub float %152, %154
  br label %156

156:                                              ; preds = %150, %149
  %157 = phi float [ 1.000000e+00, %149 ], [ %155, %150 ]
  %158 = fpext float %157 to double
  store double %158, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %159 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 1
  %160 = load float, ptr %159, align 4, !tbaa !16
  %161 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 1
  %162 = load float, ptr %161, align 4, !tbaa !16
  %163 = fcmp oeq float %160, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %156
  br label %171

165:                                              ; preds = %156
  %166 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 1
  %167 = load float, ptr %166, align 4, !tbaa !16
  %168 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !16
  %170 = fsub float %167, %169
  br label %171

171:                                              ; preds = %165, %164
  %172 = phi float [ 1.000000e+00, %164 ], [ %170, %165 ]
  %173 = fpext float %172 to double
  store double %173, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %174 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 2
  %175 = load float, ptr %174, align 4, !tbaa !17
  %176 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 2
  %177 = load float, ptr %176, align 4, !tbaa !17
  %178 = fcmp oeq float %175, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %171
  br label %186

180:                                              ; preds = %171
  %181 = getelementptr inbounds %"class.vmath::vec3", ptr %1, i32 0, i32 2
  %182 = load float, ptr %181, align 4, !tbaa !17
  %183 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 2
  %184 = load float, ptr %183, align 4, !tbaa !17
  %185 = fsub float %182, %184
  br label %186

186:                                              ; preds = %180, %179
  %187 = phi float [ 1.000000e+00, %179 ], [ %185, %180 ]
  %188 = fpext float %187 to double
  store double %188, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %189 = load double, ptr %28, align 8, !tbaa !9
  %190 = load double, ptr %29, align 8, !tbaa !9
  %191 = fmul double %189, %190
  store double %191, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %192 = load double, ptr %28, align 8, !tbaa !9
  %193 = load double, ptr %30, align 8, !tbaa !9
  %194 = fmul double %192, %193
  store double %194, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %195 = load double, ptr %29, align 8, !tbaa !9
  %196 = load double, ptr %30, align 8, !tbaa !9
  %197 = fmul double %195, %196
  store double %197, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %198 = load double, ptr %25, align 8, !tbaa !9
  %199 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !11
  %201 = fpext float %200 to double
  %202 = fsub double %198, %201
  %203 = load double, ptr %33, align 8, !tbaa !9
  %204 = fmul double %202, %203
  store double %204, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %205 = load double, ptr %26, align 8, !tbaa !9
  %206 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !16
  %208 = fpext float %207 to double
  %209 = fsub double %205, %208
  %210 = load double, ptr %32, align 8, !tbaa !9
  %211 = fmul double %209, %210
  store double %211, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %212 = load double, ptr %27, align 8, !tbaa !9
  %213 = getelementptr inbounds %"class.vmath::vec3", ptr %0, i32 0, i32 2
  %214 = load float, ptr %213, align 4, !tbaa !17
  %215 = fpext float %214 to double
  %216 = fsub double %212, %215
  %217 = load double, ptr %31, align 8, !tbaa !9
  %218 = fmul double %216, %217
  store double %218, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %219 = load i32, ptr %19, align 4, !tbaa !14
  %220 = sitofp i32 %219 to double
  %221 = load double, ptr %33, align 8, !tbaa !9
  %222 = fmul double %220, %221
  store double %222, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %223 = load i32, ptr %20, align 4, !tbaa !14
  %224 = sitofp i32 %223 to double
  %225 = load double, ptr %32, align 8, !tbaa !9
  %226 = fmul double %224, %225
  store double %226, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %227 = load i32, ptr %21, align 4, !tbaa !14
  %228 = sitofp i32 %227 to double
  %229 = load double, ptr %31, align 8, !tbaa !9
  %230 = fmul double %228, %229
  store double %230, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = getelementptr inbounds %class.FluidMaterialGrid, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 8, !tbaa !18
  store i32 %233, ptr %40, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = getelementptr inbounds %class.FluidMaterialGrid, ptr %234, i32 0, i32 1
  %236 = load i32, ptr %235, align 4, !tbaa !24
  store i32 %236, ptr %41, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %class.FluidMaterialGrid, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 8, !tbaa !25
  store i32 %239, ptr %42, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 1000000, ptr %43, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !14
  br label %240

240:                                              ; preds = %353, %186
  %241 = load i32, ptr %22, align 4, !tbaa !14
  %242 = load i32, ptr %23, align 4, !tbaa !14
  %243 = load i32, ptr %24, align 4, !tbaa !14
  %244 = load i32, ptr %40, align 4, !tbaa !14
  %245 = load i32, ptr %41, align 4, !tbaa !14
  %246 = load i32, ptr %42, align 4, !tbaa !14
  %247 = call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246)
  br i1 %247, label %248, label %265

248:                                              ; preds = %240
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  %250 = load i32, ptr %22, align 4, !tbaa !14
  %251 = load i32, ptr %23, align 4, !tbaa !14
  %252 = load i32, ptr %24, align 4, !tbaa !14
  %253 = call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %249, i32 noundef %250, i32 noundef %251, i32 noundef %252)
  br i1 %253, label %254, label %264

254:                                              ; preds = %248
  %255 = load i32, ptr %22, align 4, !tbaa !14
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.GridIndex, ptr %256, i32 0, i32 0
  store i32 %255, ptr %257, align 4, !tbaa !26
  %258 = load i32, ptr %23, align 4, !tbaa !14
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.GridIndex, ptr %259, i32 0, i32 1
  store i32 %258, ptr %260, align 4, !tbaa !28
  %261 = load i32, ptr %24, align 4, !tbaa !14
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.GridIndex, ptr %262, i32 0, i32 2
  store i32 %261, ptr %263, align 4, !tbaa !29
  store i1 true, ptr %6, align 1
  store i32 1, ptr %45, align 4
  br label %355

264:                                              ; preds = %248
  br label %265

265:                                              ; preds = %264, %240
  %266 = load i32, ptr %22, align 4, !tbaa !14
  %267 = load i32, ptr %16, align 4, !tbaa !14
  %268 = icmp eq i32 %266, %267
  br i1 %268, label %269, label %278

269:                                              ; preds = %265
  %270 = load i32, ptr %23, align 4, !tbaa !14
  %271 = load i32, ptr %17, align 4, !tbaa !14
  %272 = icmp eq i32 %270, %271
  br i1 %272, label %273, label %278

273:                                              ; preds = %269
  %274 = load i32, ptr %24, align 4, !tbaa !14
  %275 = load i32, ptr %18, align 4, !tbaa !14
  %276 = icmp eq i32 %274, %275
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  br label %354

278:                                              ; preds = %273, %269, %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %279 = load double, ptr %34, align 8, !tbaa !9
  %280 = call double @llvm.fabs.f64(double %279)
  store double %280, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %281 = load double, ptr %35, align 8, !tbaa !9
  %282 = call double @llvm.fabs.f64(double %281)
  store double %282, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %283 = load double, ptr %36, align 8, !tbaa !9
  %284 = call double @llvm.fabs.f64(double %283)
  store double %284, ptr %48, align 8, !tbaa !9
  %285 = load i32, ptr %19, align 4, !tbaa !14
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %308

287:                                              ; preds = %278
  %288 = load i32, ptr %20, align 4, !tbaa !14
  %289 = icmp eq i32 %288, 0
  br i1 %289, label %294, label %290

290:                                              ; preds = %287
  %291 = load double, ptr %46, align 8, !tbaa !9
  %292 = load double, ptr %47, align 8, !tbaa !9
  %293 = fcmp olt double %291, %292
  br i1 %293, label %294, label %308

294:                                              ; preds = %290, %287
  %295 = load i32, ptr %21, align 4, !tbaa !14
  %296 = icmp eq i32 %295, 0
  br i1 %296, label %301, label %297

297:                                              ; preds = %294
  %298 = load double, ptr %46, align 8, !tbaa !9
  %299 = load double, ptr %48, align 8, !tbaa !9
  %300 = fcmp olt double %298, %299
  br i1 %300, label %301, label %308

301:                                              ; preds = %297, %294
  %302 = load i32, ptr %19, align 4, !tbaa !14
  %303 = load i32, ptr %22, align 4, !tbaa !14
  %304 = add nsw i32 %303, %302
  store i32 %304, ptr %22, align 4, !tbaa !14
  %305 = load double, ptr %37, align 8, !tbaa !9
  %306 = load double, ptr %34, align 8, !tbaa !9
  %307 = fadd double %306, %305
  store double %307, ptr %34, align 8, !tbaa !9
  br label %337

308:                                              ; preds = %297, %290, %278
  %309 = load i32, ptr %20, align 4, !tbaa !14
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %311, label %325

311:                                              ; preds = %308
  %312 = load i32, ptr %21, align 4, !tbaa !14
  %313 = icmp eq i32 %312, 0
  br i1 %313, label %318, label %314

314:                                              ; preds = %311
  %315 = load double, ptr %47, align 8, !tbaa !9
  %316 = load double, ptr %48, align 8, !tbaa !9
  %317 = fcmp olt double %315, %316
  br i1 %317, label %318, label %325

318:                                              ; preds = %314, %311
  %319 = load i32, ptr %20, align 4, !tbaa !14
  %320 = load i32, ptr %23, align 4, !tbaa !14
  %321 = add nsw i32 %320, %319
  store i32 %321, ptr %23, align 4, !tbaa !14
  %322 = load double, ptr %38, align 8, !tbaa !9
  %323 = load double, ptr %35, align 8, !tbaa !9
  %324 = fadd double %323, %322
  store double %324, ptr %35, align 8, !tbaa !9
  br label %336

325:                                              ; preds = %314, %308
  %326 = load i32, ptr %21, align 4, !tbaa !14
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %328, label %335

328:                                              ; preds = %325
  %329 = load i32, ptr %21, align 4, !tbaa !14
  %330 = load i32, ptr %24, align 4, !tbaa !14
  %331 = add nsw i32 %330, %329
  store i32 %331, ptr %24, align 4, !tbaa !14
  %332 = load double, ptr %39, align 8, !tbaa !9
  %333 = load double, ptr %36, align 8, !tbaa !9
  %334 = fadd double %333, %332
  store double %334, ptr %36, align 8, !tbaa !9
  br label %335

335:                                              ; preds = %328, %325
  br label %336

336:                                              ; preds = %335, %318
  br label %337

337:                                              ; preds = %336, %301
  %338 = load i32, ptr %44, align 4, !tbaa !14
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %44, align 4, !tbaa !14
  %340 = load i32, ptr %44, align 4, !tbaa !14
  %341 = load i32, ptr %43, align 4, !tbaa !14
  %342 = icmp slt i32 %340, %341
  br i1 %342, label %353, label %343

343:                                              ; preds = %337
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %345 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %344, ptr noundef @.str.1)
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %345, ptr noundef @.str.2)
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef @.str.3)
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef @.str.4)
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef @__FUNCTION__._ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex)
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %349, ptr noundef @.str.5)
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %350, i32 noundef 389)
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %351, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @abort() #8
  unreachable

353:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %240, !llvm.loop !30

354:                                              ; preds = %277
  store i1 false, ptr %6, align 1
  store i32 1, ptr %45, align 4
  br label %355

355:                                              ; preds = %354, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %356 = load i1, ptr %6, align 1
  ret i1 %356
}

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { "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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !13, i64 4}
!17 = !{!12, !13, i64 8}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTS17FluidMaterialGrid", !15, i64 0, !15, i64 4, !15, i64 8, !20, i64 16}
!20 = !{!"_ZTS17SubdividedArray3dI8MaterialE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !21, i64 24, !15, i64 56, !10, i64 64}
!21 = !{!"_ZTS7Array3dI8MaterialE", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !22, i64 24, !23, i64 25, !15, i64 28}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTS8Material", !7, i64 0}
!24 = !{!19, !15, i64 4}
!25 = !{!19, !15, i64 8}
!26 = !{!27, !15, i64 0}
!27 = !{!"_ZTS9GridIndex", !15, i64 0, !15, i64 4, !15, i64 8}
!28 = !{!27, !15, i64 4}
!29 = !{!27, !15, i64 8}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; 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 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__FUNCTION__._ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex(ptr noundef nonnull %0, ptr noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(88) %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #1 {
  %6 = fdiv double 1.000000e+00, %2
  %7 = fptrunc double %6 to float
  %8 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12) %0, float noundef %7)
  %9 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %7)
  %10 = load float, ptr %0, align 4, !tbaa !5
  %11 = tail call noundef float @_ZSt5floorf(float noundef %10)
  %12 = fptosi float %11 to i32
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load float, ptr %13, align 4, !tbaa !10
  %15 = tail call noundef float @_ZSt5floorf(float noundef %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load float, ptr %16, align 4, !tbaa !11
  %18 = tail call noundef float @_ZSt5floorf(float noundef %17)
  %19 = load float, ptr %1, align 4, !tbaa !5
  %20 = tail call noundef float @_ZSt5floorf(float noundef %19)
  %21 = fptosi float %20 to i32
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !10
  %24 = tail call noundef float @_ZSt5floorf(float noundef %23)
  %25 = getelementptr inbounds i8, ptr %1, i64 8
  %26 = load float, ptr %25, align 4, !tbaa !11
  %27 = tail call noundef float @_ZSt5floorf(float noundef %26)
  %28 = icmp sgt i32 %21, %12
  %29 = icmp slt i32 %21, %12
  %30 = sext i1 %29 to i32
  %31 = select i1 %28, i32 1, i32 %30
  %.fr203 = freeze i32 %31
  %32 = zext i1 %28 to i32
  %33 = add nsw i32 %32, %12
  %34 = sitofp i32 %33 to double
  %35 = load float, ptr %1, align 4, !tbaa !5
  %36 = load float, ptr %0, align 4, !tbaa !5
  %37 = fcmp oeq float %35, %36
  %38 = fsub float %35, %36
  %39 = fpext float %38 to double
  %40 = select i1 %37, double 1.000000e+00, double %39
  %41 = fpext float %36 to double
  %42 = fsub double %34, %41
  %43 = insertelement <2 x float> poison, float %18, i64 0
  %44 = insertelement <2 x float> %43, float %15, i64 1
  %45 = fptosi <2 x float> %44 to <2 x i32>
  %46 = insertelement <2 x float> poison, float %27, i64 0
  %47 = insertelement <2 x float> %46, float %24, i64 1
  %48 = fptosi <2 x float> %47 to <2 x i32>
  %49 = icmp sgt <2 x i32> %48, %45
  %50 = extractelement <2 x i1> %49, i64 1
  %51 = icmp slt <2 x i32> %48, %45
  %52 = extractelement <2 x i1> %51, i64 1
  %53 = sext i1 %52 to i32
  %54 = select i1 %50, i32 1, i32 %53
  %.fr = freeze i32 %54
  %55 = extractelement <2 x i1> %51, i64 0
  %56 = sext i1 %55 to i32
  %57 = extractelement <2 x i1> %49, i64 0
  %58 = select i1 %57, i32 1, i32 %56
  %.fr204 = freeze i32 %58
  %59 = zext <2 x i1> %49 to <2 x i32>
  %60 = add nsw <2 x i32> %59, %45
  %61 = sitofp <2 x i32> %60 to <2 x double>
  %62 = load <2 x float>, ptr %22, align 4, !tbaa !12
  %63 = load <2 x float>, ptr %13, align 4, !tbaa !12
  %64 = fcmp oeq <2 x float> %62, %63
  %65 = fsub <2 x float> %62, %63
  %66 = fpext <2 x float> %65 to <2 x double>
  %67 = select <2 x i1> %64, <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double> %66
  %68 = insertelement <2 x double> poison, double %40, i64 0
  %69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
  %70 = fmul <2 x double> %69, %67
  %shift = shufflevector <2 x double> %67, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %71 = fmul <2 x double> %67, %shift
  %72 = extractelement <2 x double> %71, i64 0
  %73 = fmul double %42, %72
  %74 = fpext <2 x float> %63 to <2 x double>
  %75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %76 = fsub <2 x double> %61, %75
  %77 = fmul <2 x double> %76, %70
  %78 = sitofp i32 %.fr203 to double
  %79 = fmul double %72, %78
  %80 = sitofp i32 %.fr to double
  %81 = extractelement <2 x double> %70, i64 1
  %82 = fmul double %81, %80
  %83 = sitofp i32 %.fr204 to double
  %84 = extractelement <2 x double> %70, i64 0
  %85 = fmul double %84, %83
  %86 = load i32, ptr %3, align 8, !tbaa !13
  %87 = getelementptr inbounds i8, ptr %3, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !22
  %89 = getelementptr inbounds i8, ptr %3, i64 8
  %90 = load i32, ptr %89, align 8, !tbaa !23
  %.not = icmp eq i32 %.fr203, 0
  %91 = icmp eq i32 %.fr, 0
  %92 = icmp eq i32 %.fr204, 0
  br i1 %.not, label %.split.us, label %.split

.split.us:                                        ; preds = %5
  %93 = icmp eq i32 %12, %21
  %.fr201 = freeze i1 %93
  %94 = extractelement <2 x i32> %45, i64 0
  %95 = extractelement <2 x i32> %45, i64 1
  br i1 %.fr201, label %.split.us.split.preheader, label %.split.us.split.us.preheader

.split.us.split.us.preheader:                     ; preds = %.split.us
  %96 = extractelement <2 x double> %77, i64 1
  %97 = extractelement <2 x double> %77, i64 0
  br label %.split.us.split.us

.split.us.split.preheader:                        ; preds = %.split.us
  %98 = extractelement <2 x i32> %48, i64 1
  %99 = extractelement <2 x i32> %48, i64 0
  br label %.split.us.split

.split.us.split.us:                               ; preds = %.split.us.split.us.preheader, %113
  %.0110.us.us = phi double [ %.1111.us.us, %113 ], [ %97, %.split.us.split.us.preheader ]
  %.0108.us.us = phi double [ %.1109.us.us, %113 ], [ %96, %.split.us.split.us.preheader ]
  %.0104.us.us = phi i32 [ %.1105.us.us, %113 ], [ %94, %.split.us.split.us.preheader ]
  %.0103.us.us = phi i32 [ %114, %113 ], [ 0, %.split.us.split.us.preheader ]
  %.0101.us.us = phi i32 [ %.1102.us.us, %113 ], [ %95, %.split.us.split.us.preheader ]
  %100 = tail call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %12, i32 noundef %.0101.us.us, i32 noundef %.0104.us.us, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  br i1 %100, label %101, label %103

101:                                              ; preds = %.split.us.split.us
  %102 = tail call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %3, i32 noundef %12, i32 noundef %.0101.us.us, i32 noundef %.0104.us.us)
  br i1 %102, label %.split144.us, label %103

103:                                              ; preds = %101, %.split.us.split.us
  br i1 %91, label %110, label %.thread.us.us

.thread.us.us:                                    ; preds = %103
  %104 = tail call double @llvm.fabs.f64(double %.0110.us.us)
  %105 = tail call double @llvm.fabs.f64(double %.0108.us.us)
  %106 = fcmp olt double %105, %104
  %or.cond133.us.us = select i1 %92, i1 true, i1 %106
  br i1 %or.cond133.us.us, label %107, label %.thread135.us.us

107:                                              ; preds = %.thread.us.us
  %108 = add nsw i32 %.0101.us.us, %.fr
  %109 = fadd double %82, %.0108.us.us
  br label %113

110:                                              ; preds = %103
  br i1 %92, label %113, label %.thread135.us.us

.thread135.us.us:                                 ; preds = %110, %.thread.us.us
  %111 = add nsw i32 %.0104.us.us, %.fr204
  %112 = fadd double %85, %.0110.us.us
  br label %113

113:                                              ; preds = %.thread135.us.us, %110, %107
  %.1111.us.us = phi double [ %.0110.us.us, %107 ], [ %112, %.thread135.us.us ], [ %.0110.us.us, %110 ]
  %.1109.us.us = phi double [ %109, %107 ], [ %.0108.us.us, %.thread135.us.us ], [ %.0108.us.us, %110 ]
  %.1105.us.us = phi i32 [ %.0104.us.us, %107 ], [ %111, %.thread135.us.us ], [ %.0104.us.us, %110 ]
  %.1102.us.us = phi i32 [ %108, %107 ], [ %.0101.us.us, %.thread135.us.us ], [ %.0101.us.us, %110 ]
  %114 = add nuw nsw i32 %.0103.us.us, 1
  %exitcond238.not = icmp eq i32 %114, 1000000
  br i1 %exitcond238.not, label %.split148.us, label %.split.us.split.us, !llvm.loop !24

.split.us.split:                                  ; preds = %.split.us.split.preheader, %137
  %.0104.us = phi i32 [ %.1105.us, %137 ], [ %94, %.split.us.split.preheader ]
  %.0103.us = phi i32 [ %139, %137 ], [ 0, %.split.us.split.preheader ]
  %.0101.us = phi i32 [ %.1102.us, %137 ], [ %95, %.split.us.split.preheader ]
  %115 = phi <2 x double> [ %138, %137 ], [ %77, %.split.us.split.preheader ]
  %116 = tail call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %12, i32 noundef %.0101.us, i32 noundef %.0104.us, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  br i1 %116, label %117, label %119

117:                                              ; preds = %.split.us.split
  %118 = tail call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %3, i32 noundef %12, i32 noundef %.0101.us, i32 noundef %.0104.us)
  br i1 %118, label %.split144.us, label %119

119:                                              ; preds = %117, %.split.us.split
  %120 = icmp eq i32 %.0101.us, %98
  %121 = icmp eq i32 %.0104.us, %99
  %or.cond130.us = select i1 %120, i1 %121, i1 false
  br i1 %or.cond130.us, label %.loopexit, label %122

122:                                              ; preds = %119
  br i1 %91, label %132, label %.thread.us

.thread.us:                                       ; preds = %122
  %123 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %115)
  %124 = extractelement <2 x double> %123, i64 0
  %125 = extractelement <2 x double> %123, i64 1
  %126 = fcmp olt double %125, %124
  %or.cond133.us = select i1 %92, i1 true, i1 %126
  br i1 %or.cond133.us, label %127, label %.thread135.us

127:                                              ; preds = %.thread.us
  %128 = add nsw i32 %.0101.us, %.fr
  %129 = extractelement <2 x double> %115, i64 1
  %130 = fadd double %82, %129
  %131 = insertelement <2 x double> %115, double %130, i64 1
  br label %137

132:                                              ; preds = %122
  br i1 %92, label %137, label %.thread135.us

.thread135.us:                                    ; preds = %132, %.thread.us
  %133 = add nsw i32 %.0104.us, %.fr204
  %134 = extractelement <2 x double> %115, i64 0
  %135 = fadd double %85, %134
  %136 = insertelement <2 x double> %115, double %135, i64 0
  br label %137

137:                                              ; preds = %.thread135.us, %132, %127
  %.1105.us = phi i32 [ %.0104.us, %127 ], [ %133, %.thread135.us ], [ %.0104.us, %132 ]
  %.1102.us = phi i32 [ %128, %127 ], [ %.0101.us, %.thread135.us ], [ %.0101.us, %132 ]
  %138 = phi <2 x double> [ %131, %127 ], [ %136, %.thread135.us ], [ %115, %132 ]
  %139 = add nuw nsw i32 %.0103.us, 1
  %exitcond239.not = icmp eq i32 %139, 1000000
  br i1 %exitcond239.not, label %.split148.us, label %.split.us.split, !llvm.loop !24

.split:                                           ; preds = %5
  br i1 %92, label %.split.split.us.preheader, label %.split.split

.split.split.us.preheader:                        ; preds = %.split
  %140 = extractelement <2 x i32> %45, i64 0
  %141 = icmp eq <2 x i32> %45, %48
  %142 = extractelement <2 x i1> %141, i64 0
  %143 = extractelement <2 x double> %77, i64 1
  %144 = extractelement <2 x i32> %45, i64 1
  %145 = extractelement <2 x i32> %48, i64 1
  br label %.split.split.us

.split.split.us:                                  ; preds = %.split.split.us.preheader, %161
  %.0108.us150 = phi double [ %.1109.us162, %161 ], [ %143, %.split.split.us.preheader ]
  %.0106.us151 = phi double [ %.1107.us163, %161 ], [ %73, %.split.split.us.preheader ]
  %.0103.us153 = phi i32 [ %162, %161 ], [ 0, %.split.split.us.preheader ]
  %.0101.us154 = phi i32 [ %.1102.us165, %161 ], [ %144, %.split.split.us.preheader ]
  %.0100.us155 = phi i32 [ %.1.us166, %161 ], [ %12, %.split.split.us.preheader ]
  %146 = tail call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %.0100.us155, i32 noundef %.0101.us154, i32 noundef %140, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  br i1 %146, label %147, label %149

147:                                              ; preds = %.split.split.us
  %148 = tail call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %3, i32 noundef %.0100.us155, i32 noundef %.0101.us154, i32 noundef %140)
  br i1 %148, label %.split144.us, label %149

149:                                              ; preds = %147, %.split.split.us
  %150 = icmp eq i32 %.0100.us155, %21
  %151 = icmp eq i32 %.0101.us154, %145
  %or.cond.us156 = select i1 %150, i1 %151, i1 false
  %or.cond130.us157 = select i1 %or.cond.us156, i1 %142, i1 false
  br i1 %or.cond130.us157, label %.loopexit, label %152

152:                                              ; preds = %149
  %153 = tail call double @llvm.fabs.f64(double %.0106.us151)
  %154 = tail call double @llvm.fabs.f64(double %.0108.us150)
  %155 = fcmp olt double %153, %154
  %or.cond131.us = select i1 %91, i1 true, i1 %155
  br i1 %or.cond131.us, label %156, label %.thread.us158

156:                                              ; preds = %152
  %157 = add nsw i32 %.0100.us155, %.fr203
  %158 = fadd double %79, %.0106.us151
  br label %161

.thread.us158:                                    ; preds = %152
  %159 = add nsw i32 %.0101.us154, %.fr
  %160 = fadd double %82, %.0108.us150
  br label %161

161:                                              ; preds = %.thread.us158, %156
  %.1109.us162 = phi double [ %.0108.us150, %156 ], [ %160, %.thread.us158 ]
  %.1107.us163 = phi double [ %158, %156 ], [ %.0106.us151, %.thread.us158 ]
  %.1102.us165 = phi i32 [ %.0101.us154, %156 ], [ %159, %.thread.us158 ]
  %.1.us166 = phi i32 [ %157, %156 ], [ %.0100.us155, %.thread.us158 ]
  %162 = add nuw nsw i32 %.0103.us153, 1
  %exitcond237.not = icmp eq i32 %162, 1000000
  br i1 %exitcond237.not, label %.split148.us, label %.split.split.us, !llvm.loop !24

.split.split:                                     ; preds = %.split
  %163 = extractelement <2 x double> %77, i64 0
  %164 = extractelement <2 x i32> %45, i64 0
  %165 = extractelement <2 x i32> %45, i64 1
  br i1 %91, label %.split.split.split.us.preheader, label %.split.split.split.preheader

.split.split.split.preheader:                     ; preds = %.split.split
  %166 = extractelement <2 x double> %77, i64 1
  %167 = extractelement <2 x i32> %48, i64 1
  %168 = extractelement <2 x i32> %48, i64 0
  br label %.split.split.split

.split.split.split.us.preheader:                  ; preds = %.split.split
  %169 = icmp eq <2 x i32> %45, %48
  %170 = extractelement <2 x i1> %169, i64 1
  %171 = extractelement <2 x i32> %48, i64 0
  br label %.split.split.split.us

.split.split.split.us:                            ; preds = %.split.split.split.us.preheader, %187
  %.0110.us173 = phi double [ %.1111.us186, %187 ], [ %163, %.split.split.split.us.preheader ]
  %.0106.us175 = phi double [ %.1107.us188, %187 ], [ %73, %.split.split.split.us.preheader ]
  %.0104.us176 = phi i32 [ %.1105.us189, %187 ], [ %164, %.split.split.split.us.preheader ]
  %.0103.us177 = phi i32 [ %188, %187 ], [ 0, %.split.split.split.us.preheader ]
  %.0100.us179 = phi i32 [ %.1.us191, %187 ], [ %12, %.split.split.split.us.preheader ]
  %172 = tail call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %.0100.us179, i32 noundef %165, i32 noundef %.0104.us176, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  br i1 %172, label %173, label %175

173:                                              ; preds = %.split.split.split.us
  %174 = tail call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %3, i32 noundef %.0100.us179, i32 noundef %165, i32 noundef %.0104.us176)
  br i1 %174, label %.split144.us, label %175

175:                                              ; preds = %173, %.split.split.split.us
  %176 = icmp eq i32 %.0100.us179, %21
  %or.cond.us180 = select i1 %176, i1 %170, i1 false
  %177 = icmp eq i32 %.0104.us176, %171
  %or.cond130.us181 = select i1 %or.cond.us180, i1 %177, i1 false
  br i1 %or.cond130.us181, label %.loopexit, label %178

178:                                              ; preds = %175
  %179 = tail call double @llvm.fabs.f64(double %.0110.us173)
  %180 = tail call double @llvm.fabs.f64(double %.0106.us175)
  %181 = fcmp olt double %180, %179
  br i1 %181, label %182, label %.thread135.us185

182:                                              ; preds = %178
  %183 = add nsw i32 %.0100.us179, %.fr203
  %184 = fadd double %79, %.0106.us175
  br label %187

.thread135.us185:                                 ; preds = %178
  %185 = add nsw i32 %.0104.us176, %.fr204
  %186 = fadd double %85, %.0110.us173
  br label %187

187:                                              ; preds = %.thread135.us185, %182
  %.1111.us186 = phi double [ %.0110.us173, %182 ], [ %186, %.thread135.us185 ]
  %.1107.us188 = phi double [ %184, %182 ], [ %.0106.us175, %.thread135.us185 ]
  %.1105.us189 = phi i32 [ %.0104.us176, %182 ], [ %185, %.thread135.us185 ]
  %.1.us191 = phi i32 [ %183, %182 ], [ %.0100.us179, %.thread135.us185 ]
  %188 = add nuw nsw i32 %.0103.us177, 1
  %exitcond236.not = icmp eq i32 %188, 1000000
  br i1 %exitcond236.not, label %.split148.us, label %.split.split.split.us, !llvm.loop !24

.split.split.split:                               ; preds = %.split.split.split.preheader, %213
  %.0110 = phi double [ %.1111, %213 ], [ %163, %.split.split.split.preheader ]
  %.0108 = phi double [ %.1109, %213 ], [ %166, %.split.split.split.preheader ]
  %.0106 = phi double [ %.1107, %213 ], [ %73, %.split.split.split.preheader ]
  %.0104 = phi i32 [ %.1105, %213 ], [ %164, %.split.split.split.preheader ]
  %.0103 = phi i32 [ %214, %213 ], [ 0, %.split.split.split.preheader ]
  %.0101 = phi i32 [ %.1102, %213 ], [ %165, %.split.split.split.preheader ]
  %.0100 = phi i32 [ %.1, %213 ], [ %12, %.split.split.split.preheader ]
  %189 = tail call noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef %.0100, i32 noundef %.0101, i32 noundef %.0104, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  br i1 %189, label %190, label %194

190:                                              ; preds = %.split.split.split
  %191 = tail call noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88) %3, i32 noundef %.0100, i32 noundef %.0101, i32 noundef %.0104)
  br i1 %191, label %.split144.us, label %194

.split144.us:                                     ; preds = %190, %173, %147, %101, %117
  %.us-phi = phi i32 [ %.0104.us, %117 ], [ %.0104.us.us, %101 ], [ %140, %147 ], [ %.0104.us176, %173 ], [ %.0104, %190 ]
  %.us-phi145 = phi i32 [ %.0101.us, %117 ], [ %.0101.us.us, %101 ], [ %.0101.us154, %147 ], [ %165, %173 ], [ %.0101, %190 ]
  %.us-phi146 = phi i32 [ %12, %117 ], [ %12, %101 ], [ %.0100.us155, %147 ], [ %.0100.us179, %173 ], [ %.0100, %190 ]
  store i32 %.us-phi146, ptr %4, align 4, !tbaa !26
  %192 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %.us-phi145, ptr %192, align 4, !tbaa !28
  %193 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %.us-phi, ptr %193, align 4, !tbaa !29
  br label %.loopexit

194:                                              ; preds = %190, %.split.split.split
  %195 = icmp eq i32 %.0100, %21
  %196 = icmp eq i32 %.0101, %167
  %or.cond = select i1 %195, i1 %196, i1 false
  %197 = icmp eq i32 %.0104, %168
  %or.cond130 = select i1 %or.cond, i1 %197, i1 false
  br i1 %or.cond130, label %.loopexit, label %198

198:                                              ; preds = %194
  %199 = tail call double @llvm.fabs.f64(double %.0106)
  %200 = tail call double @llvm.fabs.f64(double %.0108)
  %201 = tail call double @llvm.fabs.f64(double %.0110)
  %202 = fcmp olt double %199, %200
  %203 = fcmp olt double %199, %201
  %or.cond202 = select i1 %202, i1 %203, i1 false
  br i1 %or.cond202, label %204, label %.thread

204:                                              ; preds = %198
  %205 = add nsw i32 %.0100, %.fr203
  %206 = fadd double %79, %.0106
  br label %213

.thread:                                          ; preds = %198
  %207 = fcmp olt double %200, %201
  br i1 %207, label %208, label %.thread135

208:                                              ; preds = %.thread
  %209 = add nsw i32 %.0101, %.fr
  %210 = fadd double %82, %.0108
  br label %213

.thread135:                                       ; preds = %.thread
  %211 = add nsw i32 %.0104, %.fr204
  %212 = fadd double %85, %.0110
  br label %213

213:                                              ; preds = %208, %.thread135, %204
  %.1111 = phi double [ %.0110, %204 ], [ %.0110, %208 ], [ %212, %.thread135 ]
  %.1109 = phi double [ %.0108, %204 ], [ %210, %208 ], [ %.0108, %.thread135 ]
  %.1107 = phi double [ %206, %204 ], [ %.0106, %208 ], [ %.0106, %.thread135 ]
  %.1105 = phi i32 [ %.0104, %204 ], [ %.0104, %208 ], [ %211, %.thread135 ]
  %.1102 = phi i32 [ %.0101, %204 ], [ %209, %208 ], [ %.0101, %.thread135 ]
  %.1 = phi i32 [ %205, %204 ], [ %.0100, %208 ], [ %.0100, %.thread135 ]
  %214 = add nuw nsw i32 %.0103, 1
  %exitcond.not = icmp eq i32 %214, 1000000
  br i1 %exitcond.not, label %.split148.us, label %.split.split.split, !llvm.loop !24

.split148.us:                                     ; preds = %213, %187, %161, %113, %137
  %215 = 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)
  %216 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef nonnull @.str.1)
  %217 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull @.str.2)
  %218 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull @.str.3)
  %219 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %218, ptr noundef nonnull @.str.4)
  %220 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef nonnull @__FUNCTION__._ZN9Collision31getLineSegmentVoxelIntersectionEN5vmath4vec3ES1_dR17FluidMaterialGridP9GridIndex)
  %221 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef nonnull @.str.5)
  %222 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %221, i32 noundef 389)
  %223 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @abort() #7
  unreachable

.loopexit:                                        ; preds = %194, %175, %149, %119, %.split144.us
  %.0 = phi i1 [ true, %.split144.us ], [ false, %119 ], [ false, %149 ], [ false, %175 ], [ false, %194 ]
  ret i1 %.0
}

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmLERNS_4vec3Ef(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Grid3d18isGridIndexInRangeEiiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN17FluidMaterialGrid11isCellSolidEiii(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 #4

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

; 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 #1 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)) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { "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 = { 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 #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS17FluidMaterialGrid", !15, i64 0, !15, i64 4, !15, i64 8, !16, i64 16}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS17SubdividedArray3dI8MaterialE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !17, i64 24, !15, i64 56, !21, i64 64}
!17 = !{!"_ZTS7Array3dI8MaterialE", !15, i64 0, !15, i64 4, !15, i64 8, !18, i64 16, !19, i64 24, !20, i64 25, !15, i64 28}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTS8Material", !8, i64 0}
!21 = !{!"double", !8, i64 0}
!22 = !{!14, !15, i64 4}
!23 = !{!14, !15, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !15, i64 0}
!27 = !{!"_ZTS9GridIndex", !15, i64 0, !15, i64 4, !15, i64 8}
!28 = !{!27, !15, i64 4}
!29 = !{!27, !15, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass