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

; 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.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2Hull = type { [8 x %struct.b2Vec2], i32 }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1

; 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: nounwind uwtable
define dso_local void @b2MakePolygon(ptr dead_on_unwind noalias writable sret(%struct.b2Polygon) align 4 %0, ptr noundef %1, float noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  store float %2, ptr %5, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call zeroext i1 @b2ValidateHull(ptr noundef %15)
  br i1 %16, label %21, label %17

17:                                               ; preds = %14
  %18 = call i32 @b2InternalAssertFcn(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 58)
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  call void @llvm.trap()
  br label %21

21:                                               ; preds = %20, %17, %14
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.b2Hull, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = icmp slt i32 %25, 3
  br i1 %26, label %27, label %28

27:                                               ; preds = %22
  call void @b2MakeSquare(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4 %0, float noundef 5.000000e-01)
  br label %115

28:                                               ; preds = %22
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 144, i1 false)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2Hull, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 4
  store i32 %31, ptr %32, align 4, !tbaa !14
  %33 = load float, ptr %5, align 4, !tbaa !9
  %34 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 3
  store float %33, ptr %34, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %35

35:                                               ; preds = %51, %28
  %36 = load i32, ptr %6, align 4, !tbaa !18
  %37 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 4
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %54

41:                                               ; preds = %35
  %42 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 0
  %43 = load i32, ptr %6, align 4, !tbaa !18
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %42, i64 0, i64 %44
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.b2Hull, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %6, align 4, !tbaa !18
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %47, i64 0, i64 %49
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !19
  br label %51

51:                                               ; preds = %41
  %52 = load i32, ptr %6, align 4, !tbaa !18
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %6, align 4, !tbaa !18
  br label %35, !llvm.loop !20

54:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %55

55:                                               ; preds = %105, %54
  %56 = load i32, ptr %7, align 4, !tbaa !18
  %57 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 4
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = icmp slt i32 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %108

61:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %62 = load i32, ptr %7, align 4, !tbaa !18
  store i32 %62, ptr %8, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %63 = load i32, ptr %7, align 4, !tbaa !18
  %64 = add nsw i32 %63, 1
  %65 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !14
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %68, label %71

68:                                               ; preds = %61
  %69 = load i32, ptr %7, align 4, !tbaa !18
  %70 = add nsw i32 %69, 1
  br label %72

71:                                               ; preds = %61
  br label %72

72:                                               ; preds = %71, %68
  %73 = phi i32 [ %70, %68 ], [ 0, %71 ]
  store i32 %73, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %74 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 0
  %75 = load i32, ptr %9, align 4, !tbaa !18
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %74, i64 0, i64 %76
  %78 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 0
  %79 = load i32, ptr %8, align 4, !tbaa !18
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %78, i64 0, i64 %80
  %82 = load <2 x float>, ptr %77, align 4
  %83 = load <2 x float>, ptr %81, align 4
  %84 = call <2 x float> @b2Sub(<2 x float> %82, <2 x float> %83)
  store <2 x float> %84, ptr %10, align 4
  br label %85

85:                                               ; preds = %72
  %86 = load <2 x float>, ptr %10, align 4
  %87 = load <2 x float>, ptr %10, align 4
  %88 = call float @b2Dot(<2 x float> %86, <2 x float> %87)
  %89 = fcmp ogt float %88, 0x3D10000000000000
  br i1 %89, label %94, label %90

90:                                               ; preds = %85
  %91 = call i32 @b2InternalAssertFcn(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 82)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  call void @llvm.trap()
  br label %94

94:                                               ; preds = %93, %90, %85
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 1
  %98 = load i32, ptr %7, align 4, !tbaa !18
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %97, i64 0, i64 %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %101 = load <2 x float>, ptr %10, align 4
  %102 = call <2 x float> @b2CrossVS(<2 x float> %101, float noundef 1.000000e+00)
  store <2 x float> %102, ptr %12, align 4
  %103 = load <2 x float>, ptr %12, align 4
  %104 = call <2 x float> @b2Normalize(<2 x float> %103)
  store <2 x float> %104, ptr %11, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %105

105:                                              ; preds = %96
  %106 = load i32, ptr %7, align 4, !tbaa !18
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !18
  br label %55, !llvm.loop !22

108:                                              ; preds = %60
  %109 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %110 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 0
  %111 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %110, i64 0, i64 0
  %112 = getelementptr inbounds %struct.b2Polygon, ptr %0, i32 0, i32 4
  %113 = load i32, ptr %112, align 4, !tbaa !14
  %114 = call <2 x float> @b2ComputePolygonCentroid(ptr noundef %111, i32 noundef %113)
  store <2 x float> %114, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %115

115:                                              ; preds = %108, %27
  ret void
}

declare zeroext i1 @b2ValidateHull(ptr noundef) #2

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #3

; Function Attrs: nounwind uwtable
declare dso_local void @b2MakeSquare(ptr dead_on_unwind noalias writable sret(%struct.b2Polygon) align 4, float noundef) #4

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2CrossVS(<2 x float>, float noundef) #7

; Function Attrs: nounwind uwtable
declare hidden <2 x float> @b2ComputePolygonCentroid(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 64}
!12 = !{!"b2Hull", !7, i64 0, !13, i64 64}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 140}
!15 = !{!"b2Polygon", !7, i64 0, !7, i64 64, !16, i64 128, !10, i64 136, !13, i64 140}
!16 = !{!"b2Vec2", !10, i64 0, !10, i64 4}
!17 = !{!15, !10, i64 136}
!18 = !{!13, !13, i64 0}
!19 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2Vec2 = type { float, float }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @b2MakePolygon(ptr dead_on_unwind noalias writable sret(%struct.b2Polygon) align 4 %0, ptr noundef %1, float noundef %2) local_unnamed_addr #0 {
  %4 = tail call zeroext i1 @b2ValidateHull(ptr noundef %1) #6
  br i1 %4, label %8, label %5

5:                                                ; preds = %3
  %6 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 58) #6
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %8, label %7

7:                                                ; preds = %5
  tail call void @llvm.trap()
  unreachable

8:                                                ; preds = %3, %5
  %9 = getelementptr inbounds i8, ptr %1, i64 64
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 3
  br i1 %11, label %12, label %.lr.ph.preheader

12:                                               ; preds = %8
  tail call void @b2MakeSquare(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4 %0, float noundef 5.000000e-01)
  br label %48

.lr.ph.preheader:                                 ; preds = %8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(144) %0, i8 0, i64 136, i1 false)
  %13 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %10, ptr %13, align 4, !tbaa !10
  %14 = getelementptr inbounds i8, ptr %0, i64 136
  store float %2, ptr %14, align 4, !tbaa !14
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %15 = icmp sgt i32 %20, 0
  br i1 %15, label %.lr.ph27, label %._crit_edge

.lr.ph27:                                         ; preds = %.preheader
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  br label %25

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %17 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %0, i64 0, i64 %indvars.iv
  %18 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %1, i64 0, i64 %indvars.iv
  %19 = load i64, ptr %18, align 4
  store i64 %19, ptr %17, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i32, ptr %13, align 4, !tbaa !10
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next, %21
  br i1 %22, label %.lr.ph, label %.preheader, !llvm.loop !15

._crit_edge:                                      ; preds = %41, %.preheader
  %.lcssa = phi i32 [ %20, %.preheader ], [ %45, %41 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 128
  %24 = tail call <2 x float> @b2ComputePolygonCentroid(ptr noundef nonnull %0, i32 noundef %.lcssa)
  store <2 x float> %24, ptr %23, align 4
  br label %48

25:                                               ; preds = %.lr.ph27, %41
  %indvars.iv30 = phi i64 [ 0, %.lr.ph27 ], [ %indvars.iv.next31, %41 ]
  %26 = phi i32 [ %20, %.lr.ph27 ], [ %45, %41 ]
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next31, %27
  %29 = and i64 %indvars.iv.next31, 4294967295
  %30 = select i1 %28, i64 %29, i64 0
  %31 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %0, i64 0, i64 %30
  %32 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %0, i64 0, i64 %indvars.iv30
  %33 = load <2 x float>, ptr %31, align 4
  %34 = load <2 x float>, ptr %32, align 4
  %35 = tail call <2 x float> @b2Sub(<2 x float> %33, <2 x float> %34)
  %36 = tail call float @b2Dot(<2 x float> %35, <2 x float> %35)
  %37 = fcmp ogt float %36, 0x3D10000000000000
  br i1 %37, label %41, label %38

38:                                               ; preds = %25
  %39 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 82) #6
  %.not23 = icmp eq i32 %39, 0
  br i1 %.not23, label %41, label %40

40:                                               ; preds = %38
  tail call void @llvm.trap()
  unreachable

41:                                               ; preds = %38, %25
  %42 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %16, i64 0, i64 %indvars.iv30
  %43 = tail call <2 x float> @b2CrossVS(<2 x float> %35, float noundef 1.000000e+00)
  %44 = tail call <2 x float> @b2Normalize(<2 x float> %43)
  store <2 x float> %44, ptr %42, align 4
  %45 = load i32, ptr %13, align 4, !tbaa !10
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next31, %46
  br i1 %47, label %25, label %._crit_edge, !llvm.loop !17

48:                                               ; preds = %._crit_edge, %12
  ret void
}

declare zeroext i1 @b2ValidateHull(ptr noundef) local_unnamed_addr #1

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #2

; Function Attrs: nounwind uwtable
declare dso_local void @b2MakeSquare(ptr dead_on_unwind noalias writable sret(%struct.b2Polygon) align 4, float noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
declare hidden <2 x float> @b2ComputePolygonCentroid(ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #3 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #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, !9, i64 64}
!6 = !{!"b2Hull", !7, i64 0, !9, i64 64}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!11, !9, i64 140}
!11 = !{!"b2Polygon", !7, i64 0, !7, i64 64, !12, i64 128, !13, i64 136, !9, i64 140}
!12 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!11, !13, i64 136}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass