; LLVM IR from Xingyu-Lin/softgym :: PyFlex/extensions (flexExtContainer)

; 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.NvFlexExtContainer = type <{ i32, [4 x i8], ptr, ptr, %struct.NvFlexVector, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %struct.NvFlexVector.10, %struct.NvFlexVector.10, %struct.NvFlexVector.12, %struct.NvFlexVector, %struct.NvFlexVector.10, %struct.NvFlexVector, %struct.NvFlexVector, %struct.NvFlexVector.14, %struct.NvFlexVector.14, %struct.NvFlexVector.14, %struct.NvFlexVector.16, %struct.NvFlexVector.12, %struct.NvFlexVector.12, %struct.NvFlexVector, %struct.NvFlexVector.14, %struct.NvFlexVector.14, %struct.NvFlexVector, %struct.NvFlexVector.12, %struct.NvFlexVector, %struct.NvFlexVector, %struct.NvFlexVector.14, %struct.NvFlexVector.14, %struct.NvFlexVector.14, %struct.NvFlexVector.12, %struct.NvFlexVector.12, i8, i8, [6 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<NvFlexExtInstance *, std::allocator<NvFlexExtInstance *>>::_Vector_impl" }
%"struct.std::_Vector_base<NvFlexExtInstance *, std::allocator<NvFlexExtInstance *>>::_Vector_impl" = type { %"struct.std::_Vector_base<NvFlexExtInstance *, std::allocator<NvFlexExtInstance *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NvFlexExtInstance *, std::allocator<NvFlexExtInstance *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<NvFlexExtSoftJoint *, std::allocator<NvFlexExtSoftJoint *>>::_Vector_impl" }
%"struct.std::_Vector_base<NvFlexExtSoftJoint *, std::allocator<NvFlexExtSoftJoint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<NvFlexExtSoftJoint *, std::allocator<NvFlexExtSoftJoint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NvFlexExtSoftJoint *, std::allocator<NvFlexExtSoftJoint *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.NvFlexVector.10 = type <{ ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>
%struct.NvFlexVector.16 = type <{ ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>
%struct.NvFlexVector = type <{ ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>
%struct.NvFlexVector.14 = type <{ ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>
%struct.NvFlexVector.12 = type <{ ptr, ptr, ptr, i32, i32, i32, [4 x i8] }>

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @NvFlexExtGetActiveList(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12NvFlexVectorIiE3mapEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN12NvFlexVectorIiEixEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @NvFlexExtPushToDevice(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %4, i32 0, i32 34
  %6 = load i8, ptr %5, align 1, !tbaa !9, !range !31, !noundef !32
  %7 = trunc i8 %6 to i1
  br i1 %7, label %8, label %31

8:                                                ; preds = %1
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %9, i32 0, i32 4
  call void @_ZN12NvFlexVectorIiE3mapEi(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %12, i32 0, i32 4
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12NvFlexVectorIiEixEi(ptr noundef nonnull align 8 dereferenceable(36) %13, i32 noundef 0)
  %15 = call i32 @NvFlexExtGetActiveList(ptr noundef %11, ptr noundef %14)
  store i32 %15, ptr %3, align 4, !tbaa !33
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %16, i32 0, i32 4
  call void @_ZN12NvFlexVectorIiE5unmapEv(ptr noundef nonnull align 8 dereferenceable(36) %17)
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !34
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %21, i32 0, i32 4
  %23 = getelementptr inbounds %struct.NvFlexVector, ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !35
  call void @NvFlexSetActive(ptr noundef %20, ptr noundef %24, ptr noundef null)
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !34
  %28 = load i32, ptr %3, align 4, !tbaa !33
  call void @NvFlexSetActiveCount(ptr noundef %27, i32 noundef %28)
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %29, i32 0, i32 34
  store i8 0, ptr %30, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %31

31:                                               ; preds = %8, %1
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !34
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %35, i32 0, i32 8
  %37 = getelementptr inbounds %struct.NvFlexVector.10, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !36
  call void @NvFlexSetParticles(ptr noundef %34, ptr noundef %38, ptr noundef null)
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !34
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %42, i32 0, i32 9
  %44 = getelementptr inbounds %struct.NvFlexVector.10, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !37
  call void @NvFlexSetRestParticles(ptr noundef %41, ptr noundef %45, ptr noundef null)
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !34
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %49, i32 0, i32 10
  %51 = getelementptr inbounds %struct.NvFlexVector.12, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !38
  call void @NvFlexSetVelocities(ptr noundef %48, ptr noundef %52, ptr noundef null)
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !34
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %56, i32 0, i32 11
  %58 = getelementptr inbounds %struct.NvFlexVector, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !39
  call void @NvFlexSetPhases(ptr noundef %55, ptr noundef %59, ptr noundef null)
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !34
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %63, i32 0, i32 12
  %65 = getelementptr inbounds %struct.NvFlexVector.10, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !40
  call void @NvFlexSetNormals(ptr noundef %62, ptr noundef %66, ptr noundef null)
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.NvFlexExtContainer, ptr %67, i32 0, i32 33
  %69 = load i8, ptr %68, align 8, !tbaa !41, !range !31, !noundef !32
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %73

71:                                               ; preds = %31
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_114CompactObjectsEP18NvFlexExtContainer(ptr noundef %72)
  br label %73

73:                                               ; preds = %71, %31
  ret void
}

declare void @NvFlexSetActive(ptr noundef, ptr noundef, ptr noundef) #3

declare void @NvFlexSetActiveCount(ptr noundef, i32 noundef) #3

declare void @NvFlexSetParticles(ptr noundef, ptr noundef, ptr noundef) #3

declare void @NvFlexSetRestParticles(ptr noundef, ptr noundef, ptr noundef) #3

declare void @NvFlexSetVelocities(ptr noundef, ptr noundef, ptr noundef) #3

declare void @NvFlexSetPhases(ptr noundef, ptr noundef, ptr noundef) #3

declare void @NvFlexSetNormals(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_114CompactObjectsEP18NvFlexExtContainer(ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !30, i64 1137}
!10 = !{!"_ZTS18NvFlexExtContainer", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !14, i64 64, !18, i64 88, !22, i64 112, !26, i64 136, !26, i64 176, !27, i64 216, !12, i64 256, !26, i64 296, !12, i64 336, !12, i64 376, !28, i64 416, !28, i64 456, !28, i64 496, !29, i64 536, !27, i64 576, !27, i64 616, !12, i64 656, !28, i64 696, !28, i64 736, !12, i64 776, !27, i64 816, !12, i64 856, !12, i64 896, !28, i64 936, !28, i64 976, !28, i64 1016, !27, i64 1056, !27, i64 1096, !30, i64 1136, !30, i64 1137}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS12NvFlexVectorIiE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !13, i64 32}
!13 = !{!"_ZTS16NvFlexBufferType", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIP17NvFlexExtInstanceSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIP18NvFlexExtSoftJointSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTS12NvFlexVectorI8XVector4IfEE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !13, i64 32}
!27 = !{!"_ZTS12NvFlexVectorI8XVector3IfEE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !13, i64 32}
!28 = !{!"_ZTS12NvFlexVectorIfE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !13, i64 32}
!29 = !{!"_ZTS12NvFlexVectorI5XQuatIfEE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !13, i64 32}
!30 = !{!"bool", !7, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!11, !11, i64 0}
!34 = !{!10, !6, i64 8}
!35 = !{!10, !6, i64 32}
!36 = !{!10, !6, i64 144}
!37 = !{!10, !6, i64 184}
!38 = !{!10, !6, i64 224}
!39 = !{!10, !6, i64 264}
!40 = !{!10, !6, i64 304}
!41 = !{!10, !30, i64 1136}


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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @NvFlexExtGetActiveList(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12NvFlexVectorIiE3mapEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN12NvFlexVectorIiEixEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @NvFlexExtPushToDevice(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 1137
  %3 = load i8, ptr %2, align 1, !tbaa !5, !range !30, !noundef !31
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %5, label %14

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN12NvFlexVectorIiE3mapEi(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12NvFlexVectorIiEixEi(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  %8 = tail call i32 @NvFlexExtGetActiveList(ptr noundef nonnull %0, ptr noundef nonnull %7)
  tail call void @_ZN12NvFlexVectorIiE5unmapEv(ptr noundef nonnull align 8 dereferenceable(36) %6)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !32
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !33
  tail call void @NvFlexSetActive(ptr noundef %10, ptr noundef %12, ptr noundef null)
  %13 = load ptr, ptr %9, align 8, !tbaa !32
  tail call void @NvFlexSetActiveCount(ptr noundef %13, i32 noundef %8)
  store i8 0, ptr %2, align 1, !tbaa !5
  br label %14

14:                                               ; preds = %5, %1
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !32
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  %18 = load ptr, ptr %17, align 8, !tbaa !34
  tail call void @NvFlexSetParticles(ptr noundef %16, ptr noundef %18, ptr noundef null)
  %19 = load ptr, ptr %15, align 8, !tbaa !32
  %20 = getelementptr inbounds i8, ptr %0, i64 184
  %21 = load ptr, ptr %20, align 8, !tbaa !35
  tail call void @NvFlexSetRestParticles(ptr noundef %19, ptr noundef %21, ptr noundef null)
  %22 = load ptr, ptr %15, align 8, !tbaa !32
  %23 = getelementptr inbounds i8, ptr %0, i64 224
  %24 = load ptr, ptr %23, align 8, !tbaa !36
  tail call void @NvFlexSetVelocities(ptr noundef %22, ptr noundef %24, ptr noundef null)
  %25 = load ptr, ptr %15, align 8, !tbaa !32
  %26 = getelementptr inbounds i8, ptr %0, i64 264
  %27 = load ptr, ptr %26, align 8, !tbaa !37
  tail call void @NvFlexSetPhases(ptr noundef %25, ptr noundef %27, ptr noundef null)
  %28 = load ptr, ptr %15, align 8, !tbaa !32
  %29 = getelementptr inbounds i8, ptr %0, i64 304
  %30 = load ptr, ptr %29, align 8, !tbaa !38
  tail call void @NvFlexSetNormals(ptr noundef %28, ptr noundef %30, ptr noundef null)
  %31 = getelementptr inbounds i8, ptr %0, i64 1136
  %32 = load i8, ptr %31, align 8, !tbaa !39, !range !30, !noundef !31
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %34, label %35

34:                                               ; preds = %14
  tail call void @_ZN12_GLOBAL__N_114CompactObjectsEP18NvFlexExtContainer(ptr noundef nonnull %0)
  br label %35

35:                                               ; preds = %34, %14
  ret void
}

declare void @NvFlexSetActive(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @NvFlexSetActiveCount(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @NvFlexSetParticles(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @NvFlexSetRestParticles(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @NvFlexSetVelocities(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @NvFlexSetPhases(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @NvFlexSetNormals(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_114CompactObjectsEP18NvFlexExtContainer(ptr noundef) local_unnamed_addr #3

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

!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, !29, i64 1137}
!6 = !{!"_ZTS18NvFlexExtContainer", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !13, i64 64, !17, i64 88, !21, i64 112, !25, i64 136, !25, i64 176, !26, i64 216, !11, i64 256, !25, i64 296, !11, i64 336, !11, i64 376, !27, i64 416, !27, i64 456, !27, i64 496, !28, i64 536, !26, i64 576, !26, i64 616, !11, i64 656, !27, i64 696, !27, i64 736, !11, i64 776, !26, i64 816, !11, i64 856, !11, i64 896, !27, i64 936, !27, i64 976, !27, i64 1016, !26, i64 1056, !26, i64 1096, !29, i64 1136, !29, i64 1137}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS12NvFlexVectorIiE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !12, i64 32}
!12 = !{!"_ZTS16NvFlexBufferType", !8, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTSSt6vectorIP17NvFlexExtInstanceSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP17NvFlexExtInstanceSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!21 = !{!"_ZTSSt6vectorIP18NvFlexExtSoftJointSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP18NvFlexExtSoftJointSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!25 = !{!"_ZTS12NvFlexVectorI8XVector4IfEE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !12, i64 32}
!26 = !{!"_ZTS12NvFlexVectorI8XVector3IfEE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !12, i64 32}
!27 = !{!"_ZTS12NvFlexVectorIfE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !12, i64 32}
!28 = !{!"_ZTS12NvFlexVectorI5XQuatIfEE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !12, i64 32}
!29 = !{!"bool", !8, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !10, i64 8}
!33 = !{!6, !10, i64 32}
!34 = !{!6, !10, i64 144}
!35 = !{!6, !10, i64 184}
!36 = !{!6, !10, i64 224}
!37 = !{!6, !10, i64 264}
!38 = !{!6, !10, i64 304}
!39 = !{!6, !29, i64 1136}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass