; LLVM IR from doyubkim/fluid-engine-dev :: src/jet (grid_smoke_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.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = 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.jet::GridSmokeSolver2" = type { %"class.jet::GridFluidSolver2", i64, i64, double, double, double, double, double, double }
%"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.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = 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.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = 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" }

@_ZTVN3jet16GridSmokeSolver2E = 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 @_ZN3jet16GridSmokeSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(256) %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 %"class.std::shared_ptr", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::shared_ptr.26", align 8
  %13 = alloca %"class.std::shared_ptr.29", align 8
  %14 = alloca %"class.std::shared_ptr.26", align 8
  %15 = alloca %"class.std::shared_ptr.29", 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
  %16 = load ptr, ptr %5, align 8
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN3jet16GridFluidSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(192) %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
  store ptr getelementptr inbounds inrange(-16, 104) ({ [15 x ptr] }, ptr @_ZTVN3jet16GridSmokeSolver2E, i32 0, i32 0, i32 2), ptr %16, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 3
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 4
  store double 0.000000e+00, ptr %21, align 8, !tbaa !37
  %22 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 5
  store double -6.250000e-04, ptr %22, align 8, !tbaa !38
  %23 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 6
  store double 5.000000e+00, ptr %23, align 8, !tbaa !39
  %24 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 7
  store double 1.000000e-03, ptr %24, align 8, !tbaa !40
  %25 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 8
  store double 1.000000e-03, ptr %25, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver214gridSystemDataEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %27 unwind label %38

27:                                               ; preds = %4
  call void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  %28 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  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_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.29") align 8 %13)
          to label %29 unwind label %42

29:                                               ; preds = %27
  call void @_ZNSt10shared_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  %30 = invoke noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176) %28, ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 0.000000e+00)
          to label %31 unwind label %46

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 1
  store i64 %30, ptr %32, align 8, !tbaa !42
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__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
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #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_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.29") align 8 %15)
          to label %34 unwind label %51

34:                                               ; preds = %31
  call void @_ZNSt10shared_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  %35 = invoke noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176) %33, ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0.000000e+00)
          to label %36 unwind label %55

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.jet::GridSmokeSolver2", ptr %16, i32 0, i32 2
  store i64 %35, ptr %37, align 8, !tbaa !43
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__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 @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  ret void

38:                                               ; preds = %4
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  br label %61

42:                                               ; preds = %27
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %10, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %11, align 4
  br label %50

46:                                               ; preds = %29
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %10, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %50

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

51:                                               ; preds = %31
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  br label %59

55:                                               ; preds = %34
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %59

59:                                               ; preds = %55, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %60

60:                                               ; preds = %59, %50
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %61

61:                                               ; preds = %60, %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @_ZN3jet16GridFluidSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(192) %16) #6
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %10, align 8
  %64 = load i32, ptr %11, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

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

declare void @_ZN3jet16GridFluidSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver214gridSystemDataEv(ptr noundef nonnull align 8 dereferenceable(192)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2ERKS2_(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 noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

declare noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16), double noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_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_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_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_ptrIN3jet18ScalarGridBuilder2ELN9__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_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__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_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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, !18, i64 208}
!12 = !{!"_ZTSN3jet16GridSmokeSolver2E", !13, i64 0, !36, i64 192, !36, i64 200, !18, i64 208, !18, i64 216, !18, i64 224, !18, i64 232, !18, i64 240, !18, i64 248}
!13 = !{!"_ZTSN3jet16GridFluidSolver2E", !14, i64 0, !20, i64 40, !18, i64 56, !18, i64 64, !19, i64 72, !17, i64 76, !21, i64 80, !24, i64 96, !26, i64 112, !28, i64 128, !30, i64 144, !32, i64 160, !34, i64 176}
!14 = !{!"_ZTSN3jet16PhysicsAnimationE", !15, i64 0, !16, i64 8, !19, i64 24, !17, i64 28, !18, i64 32}
!15 = !{!"_ZTSN3jet9AnimationE"}
!16 = !{!"_ZTSN3jet5FrameE", !17, i64 0, !18, i64 8}
!17 = !{!"int", !7, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN3jet6VectorIdLm2EEE", !18, i64 0, !18, i64 8}
!21 = !{!"_ZTSSt10shared_ptrIN3jet15GridSystemData2EE", !22, i64 0}
!22 = !{!"_ZTSSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!23 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!24 = !{!"_ZTSSt10shared_ptrIN3jet9Collider2EE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN3jet9Collider2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!26 = !{!"_ZTSSt10shared_ptrIN3jet12GridEmitter2EE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN3jet12GridEmitter2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!28 = !{!"_ZTSSt10shared_ptrIN3jet16AdvectionSolver2EE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN3jet16AdvectionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!30 = !{!"_ZTSSt10shared_ptrIN3jet20GridDiffusionSolver2EE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN3jet20GridDiffusionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!32 = !{!"_ZTSSt10shared_ptrIN3jet19GridPressureSolver2EE", !33, i64 0}
!33 = !{!"_ZTSSt12__shared_ptrIN3jet19GridPressureSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!34 = !{!"_ZTSSt10shared_ptrIN3jet28GridBoundaryConditionSolver2EE", !35, i64 0}
!35 = !{!"_ZTSSt12__shared_ptrIN3jet28GridBoundaryConditionSolver2ELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!36 = !{!"long", !7, i64 0}
!37 = !{!12, !18, i64 216}
!38 = !{!12, !18, i64 224}
!39 = !{!12, !18, i64 232}
!40 = !{!12, !18, i64 240}
!41 = !{!12, !18, i64 248}
!42 = !{!12, !36, i64 192}
!43 = !{!12, !36, i64 200}


; 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.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = 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" }

@_ZTVN3jet16GridSmokeSolver2E = 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 @_ZN3jet16GridSmokeSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(256) %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.26", align 8
  %7 = alloca %"class.std::shared_ptr.29", align 8
  %8 = alloca %"class.std::shared_ptr.26", align 8
  %9 = alloca %"class.std::shared_ptr.29", align 8
  tail call 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)
  store ptr getelementptr inbounds inrange(-16, 104) (i8, ptr @_ZTVN3jet16GridSmokeSolver2E, i64 16), ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 208
  %11 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  store <2 x double> <double -6.250000e-04, double 5.000000e+00>, ptr %11, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 240
  store <2 x double> <double 1.000000e-03, double 1.000000e-03>, ptr %12, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver214gridSystemDataEv(ptr noundef nonnull align 8 dereferenceable(192) %0)
          to label %14 unwind label %25

14:                                               ; preds = %4
  call void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  %15 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  invoke void @_ZSt11make_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.29") align 8 %7)
          to label %16 unwind label %27

16:                                               ; preds = %14
  call void @_ZNSt10shared_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %17 = invoke noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176) %15, ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00)
          to label %18 unwind label %29

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 %17, ptr %19, align 8, !tbaa !11
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %20 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZSt11make_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.29") align 8 %9)
          to label %21 unwind label %32

21:                                               ; preds = %18
  call void @_ZNSt10shared_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %22 = invoke noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176) %20, ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00)
          to label %23 unwind label %34

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %22, ptr %24, align 8, !tbaa !37
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  ret void

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

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

29:                                               ; preds = %16
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %37

32:                                               ; preds = %18
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %36

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3jet18ScalarGridBuilder2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZNSt12__shared_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %36

36:                                               ; preds = %34, %32
  %.pn10 = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %37

37:                                               ; preds = %36, %31
  %.pn10.pn = phi { ptr, i32 } [ %.pn10, %36 ], [ %.pn, %31 ]
  call void @_ZNSt12__shared_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %38

38:                                               ; preds = %37, %25
  %.pn10.pn.pn = phi { ptr, i32 } [ %.pn10.pn, %37 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN3jet16GridFluidSolver2D2Ev(ptr noundef nonnull align 8 dereferenceable(192) %0) #7
  resume { ptr, i32 } %.pn10.pn.pn
}

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

declare void @_ZN3jet16GridFluidSolver2C2ERKNS_5Size2ERKNS_6VectorIdLm2EEES7_(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3jet16GridFluidSolver214gridSystemDataEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3jet15GridSystemData2EEC2ERKS2_(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 noundef ptr @_ZNKSt19__shared_ptr_accessIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

declare noundef i64 @_ZN3jet15GridSystemData223addAdvectableScalarDataERKSt10shared_ptrINS_18ScalarGridBuilder2EEd(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3jet23CellCenteredScalarGrid27BuilderEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES5_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_ptrIN3jet18ScalarGridBuilder2EEC2INS0_23CellCenteredScalarGrid27BuilderEvEEOS_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_ptrIN3jet18ScalarGridBuilder2ELN9__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_ptrIN3jet23CellCenteredScalarGrid27BuilderELN9__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_ptrIN3jet15GridSystemData2ELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

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


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