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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGridC2Eiiid4AABB(ptr noundef nonnull align 8 dereferenceable(353) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !5
  %15 = load ptr, ptr %7, align 8
  %16 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %17, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 1
  %19 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %19, ptr %18, align 4, !tbaa !23
  %20 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 2
  %21 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %21, ptr %20, align 8, !tbaa !24
  %22 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 4
  %23 = load double, ptr %11, align 8, !tbaa !11
  store double %23, ptr %22, align 8, !tbaa !25
  %24 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %5, i64 40, i1 false), !tbaa.struct !26
  %25 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 6
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(44) %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
          to label %29 unwind label %54

29:                                               ; preds = %6
  %30 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 7
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %31 unwind label %58

31:                                               ; preds = %29
  %32 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 8
  %33 = getelementptr inbounds [3 x %class.Array3d.0], ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %class.Array3d.0, ptr %33, i64 3
  br label %35

35:                                               ; preds = %37, %31
  %36 = phi ptr [ %33, %31 ], [ %38, %37 ]
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %36)
          to label %37 unwind label %62

37:                                               ; preds = %35
  %38 = getelementptr inbounds %class.Array3d.0, ptr %36, i64 1
  %39 = icmp eq ptr %38, %34
  br i1 %39, label %40, label %35

40:                                               ; preds = %37
  %41 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 9
  store i32 0, ptr %41, align 8, !tbaa !28
  %42 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 11
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %43 unwind label %72

43:                                               ; preds = %40
  %44 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 12
  store i8 0, ptr %44, align 8, !tbaa !29
  %45 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 14
  store i32 0, ptr %45, align 4, !tbaa !30
  %46 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 15
  store i32 8, ptr %46, align 8, !tbaa !31
  %47 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 16
  store float 1.000000e+01, ptr %47, align 4, !tbaa !32
  %48 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 17
  store float 1.000000e+01, ptr %48, align 8, !tbaa !33
  %49 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 18
  store float 0x3FA99999A0000000, ptr %49, align 4, !tbaa !34
  %50 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 19
  store i32 0, ptr %50, align 8, !tbaa !35
  %51 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 20
  store i32 0, ptr %51, align 4, !tbaa !36
  %52 = getelementptr inbounds %class.FluidBrickGrid, ptr %15, i32 0, i32 21
  store i8 0, ptr %52, align 8, !tbaa !37
  invoke void @_ZN14FluidBrickGrid11_initializeEv(ptr noundef nonnull align 8 dereferenceable(353) %15)
          to label %53 unwind label %76

53:                                               ; preds = %43
  ret void

54:                                               ; preds = %6
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %13, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %14, align 4
  br label %90

58:                                               ; preds = %29
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %13, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %14, align 4
  br label %89

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  %66 = icmp eq ptr %33, %36
  br i1 %66, label %71, label %67

67:                                               ; preds = %67, %62
  %68 = phi ptr [ %36, %62 ], [ %69, %67 ]
  %69 = getelementptr inbounds %class.Array3d.0, ptr %68, i64 -1
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %69) #4
  %70 = icmp eq ptr %69, %33
  br i1 %70, label %71, label %67

71:                                               ; preds = %67, %62
  br label %88

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

76:                                               ; preds = %43
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %13, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %14, align 4
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #4
  br label %80

80:                                               ; preds = %76, %72
  %81 = getelementptr inbounds [3 x %class.Array3d.0], ptr %32, i32 0, i32 0
  %82 = getelementptr inbounds %class.Array3d.0, ptr %81, i64 3
  br label %83

83:                                               ; preds = %83, %80
  %84 = phi ptr [ %82, %80 ], [ %85, %83 ]
  %85 = getelementptr inbounds %class.Array3d.0, ptr %84, i64 -1
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %85) #4
  %86 = icmp eq ptr %85, %81
  br i1 %86, label %87, label %83

87:                                               ; preds = %83
  br label %88

88:                                               ; preds = %87, %71
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #4
  br label %89

89:                                               ; preds = %88, %58
  call void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %25) #4
  br label %90

90:                                               ; preds = %89, %54
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #4
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %13, align 8
  %93 = load i32, ptr %14, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FluidBrickGrid11_initializeEv(ptr noundef nonnull align 8 dereferenceable(353)) #0 align 2

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

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

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


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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGridC2Eiiid4AABB(ptr noundef nonnull align 8 dereferenceable(353) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, ptr nocapture noundef readonly %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store i32 %1, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %2, ptr %7, align 4, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %3, ptr %8, align 8, !tbaa !21
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store double %4, ptr %9, align 8, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %5, i64 40, i1 false), !tbaa.struct !23
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(44) %11, i32 noundef %1, i32 noundef %2, i32 noundef %3)
          to label %12 unwind label %25

12:                                               ; preds = %6
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %.preheader31.preheader unwind label %27

.preheader31.preheader:                           ; preds = %12
  %.ptr.ptr = getelementptr inbounds i8, ptr %0, i64 152
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr)
          to label %.preheader31.1 unwind label %29

.preheader31.1:                                   ; preds = %.preheader31.preheader
  %.ptr.ptr.1 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr.1)
          to label %.preheader31.2 unwind label %.preheader.preheader

.preheader31.2:                                   ; preds = %.preheader31.1
  %.ptr.ptr.2 = getelementptr inbounds i8, ptr %0, i64 232
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr.2)
          to label %14 unwind label %.preheader.preheader

14:                                               ; preds = %.preheader31.2
  %15 = getelementptr inbounds i8, ptr %0, i64 272
  store i32 0, ptr %15, align 8, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 280
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %17 unwind label %31

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 320
  store i8 0, ptr %18, align 8, !tbaa !27
  %19 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 0, ptr %19, align 4, !tbaa !28
  %20 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 8, ptr %20, align 8, !tbaa !29
  %21 = getelementptr inbounds i8, ptr %0, i64 332
  store <2 x float> <float 1.000000e+01, float 1.000000e+01>, ptr %21, align 4, !tbaa !24
  %22 = getelementptr inbounds i8, ptr %0, i64 340
  store float 0x3FA99999A0000000, ptr %22, align 4, !tbaa !30
  %23 = getelementptr inbounds i8, ptr %0, i64 344
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(9) %23, i8 0, i64 9, i1 false)
  invoke void @_ZN14FluidBrickGrid11_initializeEv(ptr noundef nonnull align 8 dereferenceable(353) %0)
          to label %24 unwind label %33

24:                                               ; preds = %17
  ret void

25:                                               ; preds = %6
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %36

27:                                               ; preds = %12
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %35

29:                                               ; preds = %.preheader31.preheader
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.preheader.preheader:                             ; preds = %.preheader31.1, %.preheader31.2
  %.idx.lcssa.ph = phi i64 [ 232, %.preheader31.2 ], [ 192, %.preheader31.1 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.idx18 = phi i64 [ %.add19, %.preheader ], [ %.idx.lcssa.ph, %.preheader.preheader ]
  %.add19 = add nsw i64 %.idx18, -40
  %.ptr21 = getelementptr inbounds i8, ptr %0, i64 %.add19
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr21) #5
  %30 = icmp eq i64 %.add19, 152
  br i1 %30, label %.loopexit, label %.preheader

31:                                               ; preds = %14
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

33:                                               ; preds = %17
  %34 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr.2) #5
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr.1) #5
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr.ptr) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %29, %.loopexit.loopexit
  %.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %29 ], [ %.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader ]
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %35

35:                                               ; preds = %.loopexit, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %28, %27 ]
  tail call void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %11) #5
  br label %36

36:                                               ; preds = %35, %25
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %35 ], [ %26, %25 ]
  tail call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Eiii(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FluidBrickGrid11_initializeEv(ptr noundef nonnull align 8 dereferenceable(353)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!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, !7, i64 4}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !10, i64 16}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 16, i64 8, !25, i64 24, i64 8, !25, i64 32, i64 8, !25}
!24 = !{!13, !13, i64 0}
!25 = !{!10, !10, i64 0}
!26 = !{!6, !7, i64 272}
!27 = !{!6, !16, i64 320}
!28 = !{!6, !7, i64 324}
!29 = !{!6, !7, i64 328}
!30 = !{!6, !13, i64 340}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass