; LLVM IR from erincatto/box2d :: src (shape)

; 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.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2Vec2 = type { float, float }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }
%struct.b2RayCastInput = type { %struct.b2Vec2, %struct.b2Vec2, float }
%struct.b2Shape = type { i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, %struct.b2AABB, %struct.b2AABB, %struct.b2Vec2, i32, %struct.b2Filter, ptr, i32, %union.anon.0, i16, i8, i8, i8, i8, i8 }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2Filter = type { i64, i64, i32 }
%union.anon.0 = type { %struct.b2Polygon }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2ChainSegment = type { %struct.b2Vec2, %struct.b2Segment, %struct.b2Vec2, i32 }
%struct.b2Segment = type { %struct.b2Vec2, %struct.b2Vec2 }

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

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

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

; 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @b2RayCastShape(ptr dead_on_unwind noalias writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef %1, ptr noundef %2, <2 x float> %3, <2 x float> %4) #3 {
  %6 = alloca %struct.b2Transform, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.b2RayCastInput, align 4
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2CastOutput, align 4
  %13 = alloca %struct.b2CastOutput, align 4
  %14 = alloca %struct.b2CastOutput, align 4
  %15 = alloca %struct.b2CastOutput, align 4
  %16 = alloca %struct.b2CastOutput, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %3, ptr %20, align 4
  %21 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %4, ptr %21, align 4
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %9) #6
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %22, i64 20, i1 false), !tbaa.struct !9
  %23 = getelementptr inbounds %struct.b2RayCastInput, ptr %9, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.b2RayCastInput, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %27 = load <2 x float>, ptr %26, align 4
  %28 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %29 = load <2 x float>, ptr %28, align 4
  %30 = load <2 x float>, ptr %25, align 4
  %31 = call <2 x float> @b2InvTransformPoint(<2 x float> %27, <2 x float> %29, <2 x float> %30)
  store <2 x float> %31, ptr %10, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %32 = getelementptr inbounds %struct.b2RayCastInput, ptr %9, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %33 = getelementptr inbounds %struct.b2Transform, ptr %6, i32 0, i32 1
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.b2RayCastInput, ptr %34, i32 0, i32 1
  %36 = load <2 x float>, ptr %33, align 4
  %37 = load <2 x float>, ptr %35, align 4
  %38 = call <2 x float> @b2InvRotateVector(<2 x float> %36, <2 x float> %37)
  store <2 x float> %38, ptr %11, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 28, i1 false)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.b2Shape, ptr %39, i32 0, i32 5
  %41 = load i32, ptr %40, align 4, !tbaa !13
  switch i32 %41, label %58 [
    i32 1, label %42
    i32 0, label %45
    i32 3, label %48
    i32 2, label %51
    i32 4, label %54
  ]

42:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 28, ptr %12) #6
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.b2Shape, ptr %43, i32 0, i32 19
  call void @b2RayCastCapsule(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4 %12, ptr noundef %9, ptr noundef %44)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %12, i64 28, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 28, ptr %12) #6
  br label %59

45:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 28, ptr %13) #6
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.b2Shape, ptr %46, i32 0, i32 19
  call void @b2RayCastCircle(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4 %13, ptr noundef %9, ptr noundef %47)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %13, i64 28, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 28, ptr %13) #6
  br label %59

48:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 28, ptr %14) #6
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.b2Shape, ptr %49, i32 0, i32 19
  call void @b2RayCastPolygon(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4 %14, ptr noundef %9, ptr noundef %50)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %14, i64 28, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 28, ptr %14) #6
  br label %59

51:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 28, ptr %15) #6
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.b2Shape, ptr %52, i32 0, i32 19
  call void @b2RayCastSegment(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4 %15, ptr noundef %9, ptr noundef %53, i1 noundef zeroext false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %15, i64 28, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 28, ptr %15) #6
  br label %59

54:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 28, ptr %16) #6
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2Shape, ptr %55, i32 0, i32 19
  %57 = getelementptr inbounds %struct.b2ChainSegment, ptr %56, i32 0, i32 1
  call void @b2RayCastSegment(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4 %16, ptr noundef %9, ptr noundef %57, i1 noundef zeroext true)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %16, i64 28, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 28, ptr %16) #6
  br label %59

58:                                               ; preds = %5
  store i32 1, ptr %17, align 4
  br label %74

59:                                               ; preds = %54, %51, %48, %45, %42
  %60 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %61 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 1
  %62 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %63 = load <2 x float>, ptr %62, align 4
  %64 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %65 = load <2 x float>, ptr %64, align 4
  %66 = load <2 x float>, ptr %61, align 4
  %67 = call <2 x float> @b2TransformPoint(<2 x float> %63, <2 x float> %65, <2 x float> %66)
  store <2 x float> %67, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %68 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %69 = getelementptr inbounds %struct.b2Transform, ptr %6, i32 0, i32 1
  %70 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 0
  %71 = load <2 x float>, ptr %69, align 4
  %72 = load <2 x float>, ptr %70, align 4
  %73 = call <2 x float> @b2RotateVector(<2 x float> %71, <2 x float> %72)
  store <2 x float> %73, ptr %19, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  store i32 1, ptr %17, align 4
  br label %74

74:                                               ; preds = %59, %58
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvTransformPoint(<2 x float>, <2 x float>, <2 x float>) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvRotateVector(<2 x float>, <2 x float>) #4

declare void @b2RayCastCapsule(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) #5

declare void @b2RayCastCircle(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) #5

declare void @b2RayCastPolygon(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) #5

declare void @b2RayCastSegment(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef, i1 noundef zeroext) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2TransformPoint(<2 x float>, <2 x float>, <2 x float>) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RotateVector(<2 x float>, <2 x float>) #4

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind 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 #4 = { inlinehint nounwind 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 = { "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/C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{i64 0, i64 4, !10, i64 4, i64 4, !10}
!13 = !{!14, !15, i64 20}
!14 = !{!"b2Shape", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !15, i64 44, !16, i64 48, !16, i64 64, !17, i64 80, !15, i64 88, !18, i64 96, !6, i64 120, !15, i64 128, !7, i64 132, !20, i64 276, !21, i64 278, !21, i64 279, !21, i64 280, !21, i64 281, !21, i64 282}
!15 = !{!"int", !7, i64 0}
!16 = !{!"b2AABB", !17, i64 0, !17, i64 8}
!17 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!18 = !{!"b2Filter", !19, i64 0, !19, i64 8, !15, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_Bool", !7, i64 0}
!22 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10, i64 20, i64 4, !23, i64 24, i64 1, !24}
!23 = !{!15, !15, i64 0}
!24 = !{!21, !21, 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"

%struct.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2Vec2 = type { float, float }
%struct.b2RayCastInput = type { %struct.b2Vec2, %struct.b2Vec2, float }

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

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

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

; 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @b2RayCastShape(ptr dead_on_unwind noalias nocapture writable sret(%struct.b2CastOutput) align 4 %0, ptr nocapture noundef readonly %1, ptr noundef %2, <2 x float> %3, <2 x float> %4) local_unnamed_addr #3 {
  %6 = alloca %struct.b2RayCastInput, align 8
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 4 dereferenceable(20) %1, i64 20, i1 false), !tbaa.struct !5
  %7 = load <2 x float>, ptr %1, align 4
  %8 = tail call <2 x float> @b2InvTransformPoint(<2 x float> %3, <2 x float> %4, <2 x float> %7)
  store <2 x float> %8, ptr %6, align 8
  %9 = getelementptr inbounds i8, ptr %6, i64 8
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load <2 x float>, ptr %10, align 4
  %12 = tail call <2 x float> @b2InvRotateVector(<2 x float> %4, <2 x float> %11)
  store <2 x float> %12, ptr %9, align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %0, i8 0, i64 28, i1 false)
  %13 = getelementptr inbounds i8, ptr %2, i64 20
  %14 = load i32, ptr %13, align 4, !tbaa !10
  switch i32 %14, label %31 [
    i32 1, label %15
    i32 0, label %17
    i32 3, label %19
    i32 2, label %21
    i32 4, label %23
  ]

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %2, i64 132
  call void @b2RayCastCapsule(ptr dead_on_unwind nonnull writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef nonnull %6, ptr noundef nonnull %16) #6
  br label %25

17:                                               ; preds = %5
  %18 = getelementptr inbounds i8, ptr %2, i64 132
  call void @b2RayCastCircle(ptr dead_on_unwind nonnull writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef nonnull %6, ptr noundef nonnull %18) #6
  br label %25

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %2, i64 132
  call void @b2RayCastPolygon(ptr dead_on_unwind nonnull writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef nonnull %6, ptr noundef nonnull %20) #6
  br label %25

21:                                               ; preds = %5
  %22 = getelementptr inbounds i8, ptr %2, i64 132
  call void @b2RayCastSegment(ptr dead_on_unwind nonnull writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef nonnull %6, ptr noundef nonnull %22, i1 noundef zeroext false) #6
  br label %25

23:                                               ; preds = %5
  %24 = getelementptr inbounds i8, ptr %2, i64 140
  call void @b2RayCastSegment(ptr dead_on_unwind nonnull writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef nonnull %6, ptr noundef nonnull %24, i1 noundef zeroext true) #6
  br label %25

25:                                               ; preds = %23, %21, %19, %17, %15
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load <2 x float>, ptr %26, align 4
  %28 = call <2 x float> @b2TransformPoint(<2 x float> %3, <2 x float> %4, <2 x float> %27)
  store <2 x float> %28, ptr %26, align 4
  %29 = load <2 x float>, ptr %0, align 4
  %30 = call <2 x float> @b2RotateVector(<2 x float> %4, <2 x float> %29)
  store <2 x float> %30, ptr %0, align 4
  br label %31

31:                                               ; preds = %5, %25
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvTransformPoint(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvRotateVector(<2 x float>, <2 x float>) local_unnamed_addr #4

declare void @b2RayCastCapsule(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @b2RayCastCircle(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @b2RayCastPolygon(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @b2RayCastSegment(ptr dead_on_unwind writable sret(%struct.b2CastOutput) align 4, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2TransformPoint(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RotateVector(<2 x float>, <2 x float>) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind 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 #4 = { inlinehint nounwind 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 = { "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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 20}
!11 = !{!"b2Shape", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !12, i64 44, !13, i64 48, !13, i64 64, !14, i64 80, !12, i64 88, !15, i64 96, !17, i64 120, !12, i64 128, !8, i64 132, !18, i64 276, !19, i64 278, !19, i64 279, !19, i64 280, !19, i64 281, !19, i64 282}
!12 = !{!"int", !8, i64 0}
!13 = !{!"b2AABB", !14, i64 0, !14, i64 8}
!14 = !{!"b2Vec2", !7, i64 0, !7, i64 4}
!15 = !{!"b2Filter", !16, i64 0, !16, i64 8, !12, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!"_Bool", !8, i64 0}


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