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

; 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 void @_ZN4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGridC2ER23FluidBrickGridSaveState(ptr noundef nonnull align 8 dereferenceable(353) %0, ptr noundef nonnull align 8 dereferenceable(625) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 0
  store i32 0, ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 1
  store i32 0, ptr %9, align 4, !tbaa !21
  %10 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 2
  store i32 0, ptr %10, align 8, !tbaa !22
  %11 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 4
  store double 0.000000e+00, ptr %11, align 8, !tbaa !23
  %12 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 5
  call void @_ZN4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %13 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 6
  invoke void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %13)
          to label %14 unwind label %40

14:                                               ; preds = %2
  %15 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 7
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %16 unwind label %44

16:                                               ; preds = %14
  %17 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 8
  %18 = getelementptr inbounds [3 x %class.Array3d.0], ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %class.Array3d.0, ptr %18, i64 3
  br label %20

20:                                               ; preds = %22, %16
  %21 = phi ptr [ %18, %16 ], [ %23, %22 ]
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21)
          to label %22 unwind label %48

22:                                               ; preds = %20
  %23 = getelementptr inbounds %class.Array3d.0, ptr %21, i64 1
  %24 = icmp eq ptr %23, %19
  br i1 %24, label %25, label %20

25:                                               ; preds = %22
  %26 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 9
  store i32 0, ptr %26, align 8, !tbaa !24
  %27 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 11
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %28 unwind label %58

28:                                               ; preds = %25
  %29 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 12
  store i8 0, ptr %29, align 8, !tbaa !25
  %30 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 14
  store i32 0, ptr %30, align 4, !tbaa !26
  %31 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 15
  store i32 8, ptr %31, align 8, !tbaa !27
  %32 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 16
  store float 1.000000e+01, ptr %32, align 4, !tbaa !28
  %33 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 17
  store float 1.000000e+01, ptr %33, align 8, !tbaa !29
  %34 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 18
  store float 0x3FA99999A0000000, ptr %34, align 4, !tbaa !30
  %35 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 19
  store i32 0, ptr %35, align 8, !tbaa !31
  %36 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 20
  store i32 0, ptr %36, align 4, !tbaa !32
  %37 = getelementptr inbounds %class.FluidBrickGrid, ptr %7, i32 0, i32 21
  store i8 0, ptr %37, align 8, !tbaa !33
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN14FluidBrickGrid24_initializeFromSaveStateER23FluidBrickGridSaveState(ptr noundef nonnull align 8 dereferenceable(353) %7, ptr noundef nonnull align 8 dereferenceable(625) %38)
          to label %39 unwind label %62

39:                                               ; preds = %28
  ret void

40:                                               ; preds = %2
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  br label %76

44:                                               ; preds = %14
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %6, align 4
  br label %75

48:                                               ; preds = %20
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %5, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %6, align 4
  %52 = icmp eq ptr %18, %21
  br i1 %52, label %57, label %53

53:                                               ; preds = %53, %48
  %54 = phi ptr [ %21, %48 ], [ %55, %53 ]
  %55 = getelementptr inbounds %class.Array3d.0, ptr %54, i64 -1
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %55) #4
  %56 = icmp eq ptr %55, %18
  br i1 %56, label %57, label %53

57:                                               ; preds = %53, %48
  br label %74

58:                                               ; preds = %25
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  br label %66

62:                                               ; preds = %28
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #4
  br label %66

66:                                               ; preds = %62, %58
  %67 = getelementptr inbounds [3 x %class.Array3d.0], ptr %17, i32 0, i32 0
  %68 = getelementptr inbounds %class.Array3d.0, ptr %67, i64 3
  br label %69

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

73:                                               ; preds = %69
  br label %74

74:                                               ; preds = %73, %57
  call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #4
  br label %75

75:                                               ; preds = %74, %44
  call void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %13) #4
  br label %76

76:                                               ; preds = %75, %40
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #4
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %5, align 8
  %79 = load i32, ptr %6, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FluidBrickGrid24_initializeFromSaveStateER23FluidBrickGridSaveState(ptr noundef nonnull align 8 dereferenceable(353), ptr noundef nonnull align 8 dereferenceable(625)) #1 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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, !11, i64 0}
!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 = !{!10, !11, i64 4}
!22 = !{!10, !11, i64 8}
!23 = !{!10, !12, i64 16}
!24 = !{!10, !11, i64 272}
!25 = !{!10, !17, i64 320}
!26 = !{!10, !11, i64 324}
!27 = !{!10, !11, i64 328}
!28 = !{!10, !15, i64 332}
!29 = !{!10, !15, i64 336}
!30 = !{!10, !15, i64 340}
!31 = !{!10, !11, i64 344}
!32 = !{!10, !11, i64 348}
!33 = !{!10, !17, 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 void @_ZN4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FluidBrickGridC2ER23FluidBrickGridSaveState(ptr noundef nonnull align 8 dereferenceable(353) %0, ptr noundef nonnull align 8 dereferenceable(625) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  store i32 0, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %3, align 4, !tbaa !20
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %4, align 8, !tbaa !21
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  store double 0.000000e+00, ptr %5, align 8, !tbaa !22
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7)
          to label %8 unwind label %21

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

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

.preheader25.1:                                   ; preds = %.preheader25.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 %.preheader25.2 unwind label %.preheader.preheader

.preheader25.2:                                   ; preds = %.preheader25.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 %10 unwind label %.preheader.preheader

10:                                               ; preds = %.preheader25.2
  %11 = getelementptr inbounds i8, ptr %0, i64 272
  store i32 0, ptr %11, align 8, !tbaa !23
  %12 = getelementptr inbounds i8, ptr %0, i64 280
  invoke void @_ZN7Array3dI5BrickEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %13 unwind label %27

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

20:                                               ; preds = %13
  ret void

21:                                               ; preds = %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %32

23:                                               ; preds = %8
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %31

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

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

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

27:                                               ; preds = %10
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

29:                                               ; preds = %13
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  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, %25, %.loopexit.loopexit
  %.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %25 ], [ %.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader ]
  tail call void @_ZN7Array3dI5BrickED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #5
  br label %31

31:                                               ; preds = %.loopexit, %23
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %24, %23 ]
  tail call void @_ZN7Array3dIN14FluidBrickGrid11DensityNodeEED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #5
  br label %32

32:                                               ; preds = %31, %21
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %31 ], [ %22, %21 ]
  tail call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FluidBrickGrid24_initializeFromSaveStateER23FluidBrickGridSaveState(ptr noundef nonnull align 8 dereferenceable(353), ptr noundef nonnull align 8 dereferenceable(625)) local_unnamed_addr #1 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 = { "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 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!6, !7, i64 272}
!24 = !{!6, !16, i64 320}
!25 = !{!6, !7, i64 324}
!26 = !{!6, !7, i64 328}
!27 = !{!13, !13, i64 0}
!28 = !{!6, !13, i64 340}


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