; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (RotatedTranslatedShape)

; 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.JPH::TransformedShape" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::RefConst.3", %"class.JPH::Float3", %"class.JPH::BodyID", %"class.JPH::SubShapeIDCreator" }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::RefConst.3" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::RotatedTranslatedShape" = type { %"class.JPH::DecoratedShape", i8, %"class.JPH::Vec3", %"class.JPH::Quat" }
%"class.JPH::DecoratedShape" = type { %"class.JPH::Shape.base", %"class.JPH::RefConst.3" }
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.6", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.6" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; 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: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH22RotatedTranslatedShape14TransformScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH22RotatedTranslatedShape27GetSubShapeTransformedShapeERKNS_10SubShapeIDENS_4Vec3ENS_4QuatES4_RS1_(ptr dead_on_unwind noalias writable sret(%"class.JPH::TransformedShape") align 16 %0, ptr noundef nonnull align 16 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, double %3, double %4, double %5, double %6, double %7, double %8, ptr noundef nonnull align 4 dereferenceable(4) %9) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca ptr, align 8
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i1, align 1
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Quat", align 16
  %21 = alloca %"class.JPH::Quat", align 16
  %22 = alloca %"class.JPH::BodyID", align 4
  %23 = alloca %"class.JPH::SubShapeIDCreator", align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %11, align 8
  %28 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %3, ptr %28, align 16
  %29 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %4, ptr %29, align 8
  %30 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %5, ptr %30, align 16
  %31 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %6, ptr %31, align 8
  %32 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %7, ptr %32, align 16
  %33 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %8, ptr %33, align 8
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %9, ptr %17, align 8, !tbaa !5
  %34 = load ptr, ptr %15, align 8
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  %36 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %35, i64 4, i1 false), !tbaa.struct !9
  store i1 false, ptr %18, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !12
  %37 = getelementptr inbounds %"class.JPH::RotatedTranslatedShape", ptr %34, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %37, i64 16, i1 false), !tbaa.struct !12
  %38 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %39 = load double, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %41 = load double, ptr %40, align 8
  %42 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %39, double %41)
  %43 = getelementptr inbounds %"class.JPH::Quat", ptr %20, i32 0, i32 0
  %44 = getelementptr inbounds %"class.JPH::Vec4", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %union.anon.5, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %47 = extractvalue { double, double } %42, 0
  store double %47, ptr %46, align 16
  %48 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %49 = extractvalue { double, double } %42, 1
  store double %49, ptr %48, align 8
  %50 = getelementptr inbounds %"class.JPH::DecoratedShape", ptr %34, i32 0, i32 1
  %51 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %50)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %23) #8
  %52 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %53 = load double, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %55 = load double, ptr %54, align 8
  %56 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %57 = load double, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %59 = load double, ptr %58, align 8
  call void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64) %0, double %53, double %55, double %57, double %59, ptr noundef %51, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !12
  %60 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %61 = load double, ptr %60, align 16
  %62 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %63 = load double, ptr %62, align 8
  %64 = invoke { double, double } @_ZNK3JPH22RotatedTranslatedShape14TransformScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %34, double %61, double %63)
          to label %65 unwind label %78

65:                                               ; preds = %10
  %66 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon.4, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %64, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %64, 1
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %73 = load double, ptr %72, align 16
  %74 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %75 = load double, ptr %74, align 8
  invoke void @_ZN3JPH16TransformedShape13SetShapeScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %0, double %73, double %75)
          to label %76 unwind label %78

76:                                               ; preds = %65
  store i1 true, ptr %18, align 1
  %77 = load i1, ptr %18, align 1
  br i1 %77, label %83, label %82

78:                                               ; preds = %65, %10
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %26, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %27, align 4
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %0) #8
  br label %84

82:                                               ; preds = %76
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %0) #8
  br label %83

83:                                               ; preds = %82, %76
  ret void

84:                                               ; preds = %78
  %85 = load ptr, ptr %26, align 8
  %86 = load i32, ptr %27, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16TransformedShape13SetShapeScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { alwaysinline 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 = { inlinehint 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{i64 0, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 16, !13}
!13 = !{!7, !7, 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.JPH::TransformedShape" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::RefConst.3", %"class.JPH::Float3", %"class.JPH::BodyID", %"class.JPH::SubShapeIDCreator" }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::RefConst.3" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::SubShapeIDCreator" = type { %"class.JPH::SubShapeID", i32 }
%"class.JPH::SubShapeID" = type { i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH22RotatedTranslatedShape14TransformScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH22RotatedTranslatedShape27GetSubShapeTransformedShapeERKNS_10SubShapeIDENS_4Vec3ENS_4QuatES4_RS1_(ptr dead_on_unwind noalias writable sret(%"class.JPH::TransformedShape") align 16 %0, ptr noundef nonnull align 16 dereferenceable(80) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %2, double %3, double %4, double %5, double %6, double %7, double %8, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %9) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::BodyID", align 4
  %13 = alloca %"class.JPH::SubShapeIDCreator", align 8
  store double %5, ptr %11, align 16
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  store double %6, ptr %14, align 8
  %15 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %15, ptr %9, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 64
  %.sroa.03.0.copyload = load double, ptr %16, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 72
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !9
  %17 = call { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %18 = extractvalue { double, double } %17, 0
  %19 = extractvalue { double, double } %17, 1
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store i64 0, ptr %13, align 8
  call void @_ZN3JPH17SubShapeIDCreatorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13) #6
  call void @_ZN3JPH16TransformedShapeC2ENS_4Vec3ENS_4QuatEPKNS_5ShapeERKNS_6BodyIDERKNS_17SubShapeIDCreatorE(ptr noundef nonnull align 16 dereferenceable(64) %0, double %3, double %4, double %18, double %19, ptr noundef %21, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  %22 = invoke { double, double } @_ZNK3JPH22RotatedTranslatedShape14TransformScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %1, double %7, double %8)
          to label %23 unwind label %26

23:                                               ; preds = %10
  %24 = extractvalue { double, double } %22, 0
  %25 = extractvalue { double, double } %22, 1
  invoke void @_ZN3JPH16TransformedShape13SetShapeScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %0, double %24, double %25)
          to label %28 unwind label %26

26:                                               ; preds = %23, %10
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %0) #6
  resume { ptr, i32 } %27

28:                                               ; preds = %23
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16TransformedShape13SetShapeScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16TransformedShapeD2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { alwaysinline 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 #4 = { inlinehint 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}


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