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

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

%struct.Vector3_t = type { float, float, float }
%"class.vmath::vec3" = type { float, float, float }

@_ZN9CBindings7SUCCESSE = external global i32, align 4
@_ZTISt9exception = external constant ptr
@_ZN9CBindings4FAILE = external global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local ptr @SphericalFluidSource_new(<2 x float> %0, float %1, double noundef %2, <2 x float> %3, float %4, ptr noundef %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.Vector3_t, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca %struct.Vector3_t, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = alloca %"class.vmath::vec3", align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.vmath::vec3", align 4
  %19 = alloca %"class.vmath::vec3", align 4
  %20 = alloca i1, align 1
  %21 = alloca ptr, align 8
  %22 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  store <2 x float> %0, ptr %22, align 4
  %23 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  store float %1, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %8, i64 12, i1 false)
  %24 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  store <2 x float> %3, ptr %24, align 4
  %25 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  store float %4, ptr %25, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %10, i64 12, i1 false)
  store double %2, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #9
  %26 = getelementptr inbounds %struct.Vector3_t, ptr %7, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = getelementptr inbounds %struct.Vector3_t, ptr %7, i32 0, i32 1
  %29 = load float, ptr %28, align 4, !tbaa !14
  %30 = getelementptr inbounds %struct.Vector3_t, ptr %7, i32 0, i32 2
  %31 = load float, ptr %30, align 4, !tbaa !15
  call void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %27, float noundef %29, float noundef %31)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #9
  %32 = getelementptr inbounds %struct.Vector3_t, ptr %9, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !11
  %34 = getelementptr inbounds %struct.Vector3_t, ptr %9, i32 0, i32 1
  %35 = load float, ptr %34, align 4, !tbaa !14
  %36 = getelementptr inbounds %struct.Vector3_t, ptr %9, i32 0, i32 2
  %37 = load float, ptr %36, align 4, !tbaa !15
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %33, float noundef %35, float noundef %37)
          to label %38 unwind label %45

38:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store ptr null, ptr %17, align 8, !tbaa !9
  %39 = load i32, ptr @_ZN9CBindings7SUCCESSE, align 4, !tbaa !16
  %40 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 %39, ptr %40, align 4, !tbaa !16
  %41 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #10
          to label %42 unwind label %49

42:                                               ; preds = %38
  store i1 true, ptr %20, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !18
  %43 = load double, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !18
  invoke void @_ZN20SphericalFluidSourceC1EN5vmath4vec3EdS1_(ptr noundef nonnull align 8 dereferenceable(64) %41, ptr noundef %18, double noundef %43, ptr noundef %19)
          to label %44 unwind label %53

44:                                               ; preds = %42
  store i1 false, ptr %20, align 1
  store ptr %41, ptr %17, align 8, !tbaa !9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #9
  br label %72

45:                                               ; preds = %6
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %15, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %16, align 4
  br label %85

49:                                               ; preds = %38
  %50 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %15, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %16, align 4
  br label %60

53:                                               ; preds = %42
  %54 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %15, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %16, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #9
  %57 = load i1, ptr %20, align 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %53
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 64) #11
  br label %59

59:                                               ; preds = %58, %53
  br label %60

60:                                               ; preds = %59, %49
  %61 = load i32, ptr %16, align 4
  %62 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %84

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %65 = load ptr, ptr %15, align 8
  %66 = call ptr @__cxa_begin_catch(ptr %65) #9
  store ptr %66, ptr %21, align 8
  %67 = load ptr, ptr %21, align 8, !tbaa !9
  invoke void @_ZN9CBindings17set_error_messageERSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %67)
          to label %68 unwind label %74

68:                                               ; preds = %64
  %69 = load i32, ptr @_ZN9CBindings4FAILE, align 4, !tbaa !16
  %70 = load ptr, ptr %12, align 8, !tbaa !9
  store i32 %69, ptr %70, align 4, !tbaa !16
  invoke void @__cxa_end_catch()
          to label %71 unwind label %78

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %72

72:                                               ; preds = %71, %44
  %73 = load ptr, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #9
  ret ptr %73

74:                                               ; preds = %64
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  invoke void @__cxa_end_catch()
          to label %82 unwind label %91

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %15, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %16, align 4
  br label %83

82:                                               ; preds = %74
  br label %83

83:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %84

84:                                               ; preds = %83, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #9
  br label %85

85:                                               ; preds = %84, %45
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #9
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %15, align 8
  %88 = load i32, ptr %16, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90

91:                                               ; preds = %74
  %92 = landingpad { ptr, i32 }
          catch ptr null
  %93 = extractvalue { ptr, i32 } %92, 0
  call void @__clang_call_terminate(ptr %93) #12
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN20SphericalFluidSourceC1EN5vmath4vec3EdS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, double noundef, ptr noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr)

declare void @_ZN9CBindings17set_error_messageERSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind memory(none) }
attributes #8 = { noinline noreturn nounwind uwtable "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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS9Vector3_t", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19}
!19 = !{!13, !13, i64 0}


; 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.vmath::vec3" = type { float, float, float }

@_ZN9CBindings7SUCCESSE = external local_unnamed_addr global i32, align 4
@_ZTISt9exception = external constant ptr
@_ZN9CBindings4FAILE = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @SphericalFluidSource_new(<2 x float> %0, float %1, double noundef %2, <2 x float> %3, float %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.vmath::vec3", align 4
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %"class.vmath::vec3", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %.sroa.012.0.vec.extract = extractelement <2 x float> %0, i64 0
  %.sroa.012.4.vec.extract = extractelement <2 x float> %0, i64 1
  call void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %.sroa.012.0.vec.extract, float noundef %.sroa.012.4.vec.extract, float noundef %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #9
  %.sroa.09.0.vec.extract = extractelement <2 x float> %3, i64 0
  %.sroa.09.4.vec.extract = extractelement <2 x float> %3, i64 1
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %.sroa.09.0.vec.extract, float noundef %.sroa.09.4.vec.extract, float noundef %4)
          to label %11 unwind label %16

11:                                               ; preds = %6
  %12 = load i32, ptr @_ZN9CBindings7SUCCESSE, align 4, !tbaa !5
  store i32 %12, ptr %5, align 4, !tbaa !5
  %13 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #10
          to label %14 unwind label %20

14:                                               ; preds = %11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !9
  invoke void @_ZN20SphericalFluidSourceC1EN5vmath4vec3EdS1_(ptr noundef nonnull align 8 dereferenceable(64) %13, ptr noundef nonnull %9, double noundef %2, ptr noundef nonnull %10)
          to label %15 unwind label %22

15:                                               ; preds = %14
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #9
  br label %31

16:                                               ; preds = %6
  %17 = landingpad { ptr, i32 }
          cleanup
  %18 = extractvalue { ptr, i32 } %17, 0
  %19 = extractvalue { ptr, i32 } %17, 1
  br label %38

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %24

22:                                               ; preds = %14
  %23 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #9
  call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 64) #11
  br label %24

24:                                               ; preds = %22, %20
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %21, %20 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.015 = extractvalue { ptr, i32 } %.pn, 1
  %25 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %26 = icmp eq i32 %.015, %25
  br i1 %26, label %27, label %37

27:                                               ; preds = %24
  %28 = call ptr @__cxa_begin_catch(ptr %.0) #9
  invoke void @_ZN9CBindings17set_error_messageERSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %29 unwind label %32

29:                                               ; preds = %27
  %30 = load i32, ptr @_ZN9CBindings4FAILE, align 4, !tbaa !5
  store i32 %30, ptr %5, align 4, !tbaa !5
  invoke void @__cxa_end_catch()
          to label %31 unwind label %34

31:                                               ; preds = %29, %15
  %.014 = phi ptr [ %13, %15 ], [ null, %29 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  ret ptr %.014

32:                                               ; preds = %27
  %33 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %36 unwind label %41

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %36

36:                                               ; preds = %32, %34
  %.pn20 = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  %.1 = extractvalue { ptr, i32 } %.pn20, 0
  %.116 = extractvalue { ptr, i32 } %.pn20, 1
  br label %37

37:                                               ; preds = %36, %24
  %.217 = phi i32 [ %.116, %36 ], [ %.015, %24 ]
  %.2 = phi ptr [ %.1, %36 ], [ %.0, %24 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #9
  br label %38

38:                                               ; preds = %37, %16
  %.318 = phi i32 [ %.217, %37 ], [ %19, %16 ]
  %.3 = phi ptr [ %.2, %37 ], [ %18, %16 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  %39 = insertvalue { ptr, i32 } poison, ptr %.3, 0
  %40 = insertvalue { ptr, i32 } %39, i32 %.318, 1
  resume { ptr, i32 } %40

41:                                               ; preds = %32
  %42 = landingpad { ptr, i32 }
          catch ptr null
  %43 = extractvalue { ptr, i32 } %42, 0
  call void @__clang_call_terminate(ptr %43) #12
  unreachable
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare void @_ZN20SphericalFluidSourceC1EN5vmath4vec3EdS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, double noundef, ptr noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @_ZN9CBindings17set_error_messageERSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #8

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { noinline noreturn nounwind uwtable "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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass