; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (grid_fluid_solver2)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.29" = type { %"class.std::__shared_ptr.30" }
%"class.std::__shared_ptr.30" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.32" = type { %"class.std::__shared_ptr.33" }
%"class.std::__shared_ptr.33" = type { ptr, %"class.std::__shared_count" }
%"class.jet::GridFluidSolver2" = type { %"class.jet::PhysicsAnimation", %"class.jet::Vector", double, double, i8, i32, %"class.std::shared_ptr", %"class.std::shared_ptr.0", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.std::shared_ptr.9", %"class.std::shared_ptr.12", %"class.std::shared_ptr.15" }
%"class.jet::PhysicsAnimation" = type { %"class.jet::Animation", %"struct.jet::Frame", i8, i32, double }
%"class.jet::Animation" = type { ptr }
%"struct.jet::Frame" = type { i32, double }
%"class.jet::Vector" = type { double, double }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }

@_ZTVN3jet16GridFluidSolver2E = external dso_local unnamed_addr constant { [15 x ptr] }, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet16GridFluidSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca %"class.std::shared_ptr.6", align 8
  %13 = alloca %"class.std::shared_ptr.26", align 8
  %14 = alloca %"class.std::shared_ptr.9", align 8
  %15 = alloca %"class.std::shared_ptr.29", align 8
  %16 = alloca %"class.std::shared_ptr.12", align 8
  %17 = alloca %"class.std::shared_ptr.32", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8
  call void @_ZN3jet16PhysicsAnimationC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
  store ptr getelementptr inbounds inrange(-16, 104) ({ [15 x ptr] }, ptr @_ZTVN3jet16GridFluidSolver2E, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 1
  invoke void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 0.000000e+00, double noundef -9.800000e+00)
          to label %20 unwind label %48

20:                                               ; preds = %4
  %21 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 2
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 3
  store double 5.000000e+00, ptr %22, align 8, !tbaa !35
  %23 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 4
  store i8 0, ptr %23, align 8, !tbaa !36
  %24 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 5
  store i32 63, ptr %24, align 4, !tbaa !37
  %25 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 6
  call void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  %26 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN3jet9Collider2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  %27 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 8
  call void @_ZNSt10shared_ptrIN3jet12GridEmitter2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  %28 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 9
  call void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  %29 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 10
  call void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  %30 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 11
  call void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  %31 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 12
  call void @_ZNSt10shared_ptrIN3jet28GridBoundaryConditionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  invoke void @_ZSt11make_sharedIN3jet15GridSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %11)
          to label %32 unwind label %52

32:                                               ; preds = %20
  %33 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 6
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3jet15GridSystemData2EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %35 = getelementptr inbounds %"class.jet::GridFluidSolver2", ptr %18, i32 0, i32 6
  %36 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %35) #6
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3jet15GridSystemData26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(176) %36, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %40 unwind label %56

40:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  invoke void @_ZSt11make_sharedIN3jet20CubicSemiLagrangian2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.26") align 8 %13)
          to label %41 unwind label %60

41:                                               ; preds = %40
  call void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2INS0_20CubicSemiLagrangian2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  invoke void @_ZN3jet16GridFluidSolver218setAdvectionSolverERKSt10shared_ptrINS_16AdvectionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %18, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %42 unwind label %64

42:                                               ; preds = %41
  call void @_ZNSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrIN3jet20CubicSemiLagrangian2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZSt11make_sharedIN3jet33GridBackwardEulerDiffusionSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.29") align 8 %15)
          to label %43 unwind label %69

43:                                               ; preds = %42
  call void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2INS0_33GridBackwardEulerDiffusionSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  invoke void @_ZN3jet16GridFluidSolver218setDiffusionSolverERKSt10shared_ptrINS_20GridDiffusionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %18, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %44 unwind label %73

44:                                               ; preds = %43
  call void @_ZNSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @_ZNSt12__shared_ptrIN3jet33GridBackwardEulerDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  invoke void @_ZSt11make_sharedIN3jet40GridFractionalSinglePhasePressureSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.32") align 8 %17)
          to label %45 unwind label %78

45:                                               ; preds = %44
  call void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2INS0_40GridFractionalSinglePhasePressureSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  invoke void @_ZN3jet16GridFluidSolver217setPressureSolverERKSt10shared_ptrINS_19GridPressureSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %18, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %46 unwind label %82

46:                                               ; preds = %45
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZNSt12__shared_ptrIN3jet40GridFractionalSinglePhasePressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  invoke void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40) %18, i1 noundef zeroext false)
          to label %47 unwind label %56

47:                                               ; preds = %46
  ret void

48:                                               ; preds = %4
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %88

52:                                               ; preds = %20
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %87

56:                                               ; preds = %46, %32
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %87

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  br label %68

64:                                               ; preds = %41
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrIN3jet20CubicSemiLagrangian2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %68

68:                                               ; preds = %64, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %87

69:                                               ; preds = %42
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %77

73:                                               ; preds = %43
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @_ZNSt12__shared_ptrIN3jet33GridBackwardEulerDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %87

78:                                               ; preds = %44
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %9, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %10, align 4
  br label %86

82:                                               ; preds = %45
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZNSt12__shared_ptrIN3jet40GridFractionalSinglePhasePressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  br label %87

87:                                               ; preds = %86, %77, %68, %56, %52
  call void @_ZNSt12__shared_ptrIN3jet28GridBoundaryConditionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @_ZNSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @_ZNSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @_ZNSt12__shared_ptrIN3jet12GridEmitter2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZNSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %88

88:                                               ; preds = %87, %48
  call void @_ZN3jet16PhysicsAnimationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %9, align 8
  %91 = load i32, ptr %10, align 4
  %92 = insertvalue { ptr, i32 } poison, ptr %90, 0
  %93 = insertvalue { ptr, i32 } %92, i32 %91, 1
  resume { ptr, i32 } %93
}

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

declare void @_ZN3jet16PhysicsAnimationC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet15GridSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3jet15GridSystemData2EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

declare void @_ZN3jet15GridSystemData26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet16GridFluidSolver218setAdvectionSolverERKSt10shared_ptrINS_16AdvectionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet20CubicSemiLagrangian2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.26") align 8) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2INS0_20CubicSemiLagrangian2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet16GridFluidSolver218setDiffusionSolverERKSt10shared_ptrINS_20GridDiffusionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet33GridBackwardEulerDiffusionSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.29") align 8) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2INS0_33GridBackwardEulerDiffusionSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver217setPressureSolverERKSt10shared_ptrINS_19GridPressureSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet40GridFractionalSinglePhasePressureSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.32") align 8) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2INS0_40GridFractionalSinglePhasePressureSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

declare void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !17, i64 56}
!12 = !{!"_ZTSN3jet16GridFluidSolver2E", !13, i64 0, !19, i64 40, !17, i64 56, !17, i64 64, !18, i64 72, !16, i64 76, !20, i64 80, !23, i64 96, !25, i64 112, !27, i64 128, !29, i64 144, !31, i64 160, !33, i64 176}
!13 = !{!"_ZTSN3jet16PhysicsAnimationE", !14, i64 0, !15, i64 8, !18, i64 24, !16, i64 28, !17, i64 32}
!14 = !{!"_ZTSN3jet9AnimationE"}
!15 = !{!"_ZTSN3jet5FrameE", !16, i64 0, !17, i64 8}
!16 = !{!"int", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN3jet6VectorIdLm2EEE", !17, i64 0, !17, i64 8}
!20 = !{!"_ZTSSt10shared_ptrIN3jet15GridSystemData2EE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIN3jet9Collider2EE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!25 = !{!"_ZTSSt10shared_ptrIN3jet12GridEmitter2EE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN3jet12GridEmitter2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!27 = !{!"_ZTSSt10shared_ptrIN3jet16AdvectionSolver2EE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!29 = !{!"_ZTSSt10shared_ptrIN3jet20GridDiffusionSolver2EE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!31 = !{!"_ZTSSt10shared_ptrIN3jet19GridPressureSolver2EE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!33 = !{!"_ZTSSt10shared_ptrIN3jet28GridBoundaryConditionSolver2EE", !34, i64 0}
!34 = !{!"_ZTSSt12__shared_ptrIN3jet28GridBoundaryConditionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !22, i64 8}
!35 = !{!12, !17, i64 64}
!36 = !{!12, !18, i64 72}
!37 = !{!12, !16, i64 76}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.29" = type { %"class.std::__shared_ptr.30" }
%"class.std::__shared_ptr.30" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.32" = type { %"class.std::__shared_ptr.33" }
%"class.std::__shared_ptr.33" = type { ptr, %"class.std::__shared_count" }

@_ZTVN3jet16GridFluidSolver2E = external dso_local unnamed_addr constant { [15 x ptr] }, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3jet16GridFluidSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.std::shared_ptr.6", align 8
  %7 = alloca %"class.std::shared_ptr.26", align 8
  %8 = alloca %"class.std::shared_ptr.9", align 8
  %9 = alloca %"class.std::shared_ptr.29", align 8
  %10 = alloca %"class.std::shared_ptr.12", align 8
  %11 = alloca %"class.std::shared_ptr.32", align 8
  tail call void @_ZN3jet16PhysicsAnimationC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  store ptr getelementptr inbounds inrange(-16, 104) (i8, ptr @_ZTVN3jet16GridFluidSolver2E, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 0.000000e+00, double noundef -9.800000e+00)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  store <2 x double> <double 0.000000e+00, double 5.000000e+00>, ptr %13, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 0, ptr %14, align 8, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 63, ptr %15, align 4, !tbaa !35
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZNSt10shared_ptrIN3jet9Collider2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt10shared_ptrIN3jet12GridEmitter2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt10shared_ptrIN3jet28GridBoundaryConditionSolver2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  invoke void @_ZSt11make_sharedIN3jet15GridSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %5)
          to label %23 unwind label %32

23:                                               ; preds = %4
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3jet15GridSystemData2EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZN3jet15GridSystemData26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(176) %25, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %26 unwind label %34

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZSt11make_sharedIN3jet20CubicSemiLagrangian2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.26") align 8 %7)
          to label %27 unwind label %36

27:                                               ; preds = %26
  call void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2INS0_20CubicSemiLagrangian2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @_ZN3jet16GridFluidSolver218setAdvectionSolverERKSt10shared_ptrINS_16AdvectionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @_ZNSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZNSt12__shared_ptrIN3jet20CubicSemiLagrangian2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  invoke void @_ZSt11make_sharedIN3jet33GridBackwardEulerDiffusionSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.29") align 8 %9)
          to label %28 unwind label %38

28:                                               ; preds = %27
  call void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2INS0_33GridBackwardEulerDiffusionSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZN3jet16GridFluidSolver218setDiffusionSolverERKSt10shared_ptrINS_20GridDiffusionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @_ZNSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @_ZNSt12__shared_ptrIN3jet33GridBackwardEulerDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZSt11make_sharedIN3jet40GridFractionalSinglePhasePressureSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.32") align 8 %11)
          to label %29 unwind label %40

29:                                               ; preds = %28
  call void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2INS0_40GridFractionalSinglePhasePressureSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  invoke void @_ZN3jet16GridFluidSolver217setPressureSolverERKSt10shared_ptrINS_19GridPressureSolver2EE(ptr noundef nonnull align 8 dereferenceable(192) %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %30 unwind label %42

30:                                               ; preds = %29
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrIN3jet40GridFractionalSinglePhasePressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  invoke void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40) %0, i1 noundef zeroext false)
          to label %31 unwind label %34

31:                                               ; preds = %30
  ret void

32:                                               ; preds = %4
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %45

34:                                               ; preds = %30, %23
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %45

36:                                               ; preds = %26
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %45

38:                                               ; preds = %27
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %45

40:                                               ; preds = %28
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %29
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZNSt12__shared_ptrIN3jet40GridFractionalSinglePhasePressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %45

45:                                               ; preds = %44, %38, %36, %34, %32
  %.pn8 = phi { ptr, i32 } [ %35, %34 ], [ %.pn, %44 ], [ %39, %38 ], [ %37, %36 ], [ %33, %32 ]
  call void @_ZNSt12__shared_ptrIN3jet28GridBoundaryConditionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @_ZNSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @_ZNSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @_ZNSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZNSt12__shared_ptrIN3jet12GridEmitter2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @_ZNSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZN3jet16PhysicsAnimationD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #6
  resume { ptr, i32 } %.pn8
}

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

declare void @_ZN3jet16PhysicsAnimationC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet6VectorIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet15GridSystemData2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3jet15GridSystemData2EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

declare void @_ZN3jet15GridSystemData26resizeERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet16GridFluidSolver218setAdvectionSolverERKSt10shared_ptrINS_16AdvectionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet20CubicSemiLagrangian2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.26") align 8) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet16AdvectionSolver2EEC2INS0_20CubicSemiLagrangian2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3jet16GridFluidSolver218setDiffusionSolverERKSt10shared_ptrINS_20GridDiffusionSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet33GridBackwardEulerDiffusionSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.29") align 8) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet20GridDiffusionSolver2EEC2INS0_33GridBackwardEulerDiffusionSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3jet16GridFluidSolver217setPressureSolverERKSt10shared_ptrINS_19GridPressureSolver2EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet40GridFractionalSinglePhasePressureSolver2EJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.32") align 8) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet19GridPressureSolver2EEC2INS0_40GridFractionalSinglePhasePressureSolver2EvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

declare void @_ZN3jet16PhysicsAnimation27setIsUsingFixedSubTimeStepsEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !17, i64 72}
!12 = !{!"_ZTSN3jet16GridFluidSolver2E", !13, i64 0, !18, i64 40, !9, i64 56, !9, i64 64, !17, i64 72, !16, i64 76, !19, i64 80, !23, i64 96, !25, i64 112, !27, i64 128, !29, i64 144, !31, i64 160, !33, i64 176}
!13 = !{!"_ZTSN3jet16PhysicsAnimationE", !14, i64 0, !15, i64 8, !17, i64 24, !16, i64 28, !9, i64 32}
!14 = !{!"_ZTSN3jet9AnimationE"}
!15 = !{!"_ZTSN3jet5FrameE", !16, i64 0, !9, i64 8}
!16 = !{!"int", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!"_ZTSN3jet6VectorIdLm2EEE", !9, i64 0, !9, i64 8}
!19 = !{!"_ZTSSt10shared_ptrIN3jet15GridSystemData2EE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!21 = !{!"any pointer", !10, i64 0}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIN3jet9Collider2EE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!25 = !{!"_ZTSSt10shared_ptrIN3jet12GridEmitter2EE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN3jet12GridEmitter2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!27 = !{!"_ZTSSt10shared_ptrIN3jet16AdvectionSolver2EE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!29 = !{!"_ZTSSt10shared_ptrIN3jet20GridDiffusionSolver2EE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!31 = !{!"_ZTSSt10shared_ptrIN3jet19GridPressureSolver2EE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!33 = !{!"_ZTSSt10shared_ptrIN3jet28GridBoundaryConditionSolver2EE", !34, i64 0}
!34 = !{!"_ZTSSt12__shared_ptrIN3jet28GridBoundaryConditionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !21, i64 0, !22, i64 8}
!35 = !{!12, !16, i64 76}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass