; LLVM IR from erincatto/box2d :: shared (benchmarks)

; 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.b2ShapeDef = type { ptr, %struct.b2SurfaceMaterial, float, %struct.b2Filter, i8, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2SurfaceMaterial = type { float, float, float, float, i32, i32 }
%struct.b2Filter = type { i64, i64, i32 }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { float, float }
%struct.b2Vec2 = type { float, float }
%struct.b2WorldId = type { i16, i16 }
%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2ShapeId = type { i32, i16, i16 }

declare void @b2World_EnableSleeping(i32, i1 noundef zeroext) #0

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

declare void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8) #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) #2

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) #0

declare i64 @b2CreateBody(i32, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @CreateLargePyramid(i32 %0) #3 {
  %2 = alloca %struct.b2WorldId, align 2
  %3 = alloca i32, align 4
  %4 = alloca %struct.b2BodyDef, align 8
  %5 = alloca %struct.b2Vec2, align 4
  %6 = alloca %struct.b2BodyId, align 4
  %7 = alloca %struct.b2Polygon, align 4
  %8 = alloca %struct.b2ShapeDef, align 8
  %9 = alloca %struct.b2ShapeId, align 4
  %10 = alloca %struct.b2BodyDef, align 8
  %11 = alloca %struct.b2ShapeDef, align 8
  %12 = alloca float, align 4
  %13 = alloca %struct.b2Polygon, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2BodyId, align 4
  %22 = alloca %struct.b2ShapeId, align 4
  store i32 %0, ptr %2, align 2
  %23 = load i32, ptr %2, align 2
  call void @b2World_EnableSleeping(i32 %23, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 20, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #5
  call void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8 %4)
  %24 = getelementptr inbounds %struct.b2BodyDef, ptr %4, i32 0, i32 1
  %25 = getelementptr inbounds %struct.b2Vec2, ptr %5, i32 0, i32 0
  store float 0.000000e+00, ptr %25, align 4, !tbaa !9
  %26 = getelementptr inbounds %struct.b2Vec2, ptr %5, i32 0, i32 1
  store float -1.000000e+00, ptr %26, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %27 = load i32, ptr %2, align 2
  %28 = call i64 @b2CreateBody(i32 %27, ptr noundef %4)
  store i64 %28, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 144, ptr %7) #5
  call void @b2MakeBox(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4 %7, float noundef 1.000000e+02, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  call void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8 %8)
  %29 = load i64, ptr %6, align 4
  %30 = call i64 @b2CreatePolygonShape(i64 %29, ptr noundef %8, ptr noundef %7)
  store i64 %30, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %10) #5
  call void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8 %10)
  %31 = getelementptr inbounds %struct.b2BodyDef, ptr %10, i32 0, i32 0
  store i32 2, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #5
  call void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8 %11)
  %32 = getelementptr inbounds %struct.b2ShapeDef, ptr %11, i32 0, i32 2
  store float 1.000000e+00, ptr %32, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store float 5.000000e-01, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #5
  %33 = load float, ptr %12, align 4, !tbaa !14
  call void @b2MakeSquare(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4 %13, float noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %34 = load float, ptr %12, align 4, !tbaa !14
  %35 = fmul float 1.000000e+00, %34
  store float %35, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %84, %1
  %37 = load i32, ptr %15, align 4, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %87

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %42 = load i32, ptr %15, align 4, !tbaa !5
  %43 = sitofp i32 %42 to float
  %44 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %43, float 1.000000e+00)
  %45 = load float, ptr %14, align 4, !tbaa !14
  %46 = fmul float %44, %45
  store float %46, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %47 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %47, ptr %18, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %80, %41
  %49 = load i32, ptr %18, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %83

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %54 = load i32, ptr %15, align 4, !tbaa !5
  %55 = sitofp i32 %54 to float
  %56 = fadd float %55, 1.000000e+00
  %57 = load float, ptr %14, align 4, !tbaa !14
  %58 = load i32, ptr %18, align 4, !tbaa !5
  %59 = load i32, ptr %15, align 4, !tbaa !5
  %60 = sub nsw i32 %58, %59
  %61 = sitofp i32 %60 to float
  %62 = fmul float 2.000000e+00, %61
  %63 = load float, ptr %14, align 4, !tbaa !14
  %64 = fmul float %62, %63
  %65 = call float @llvm.fmuladd.f32(float %56, float %57, float %64)
  %66 = load float, ptr %12, align 4, !tbaa !14
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = sitofp i32 %67 to float
  %69 = fneg float %66
  %70 = call float @llvm.fmuladd.f32(float %69, float %68, float %65)
  store float %70, ptr %19, align 4, !tbaa !14
  %71 = getelementptr inbounds %struct.b2BodyDef, ptr %10, i32 0, i32 1
  %72 = getelementptr inbounds %struct.b2Vec2, ptr %20, i32 0, i32 0
  %73 = load float, ptr %19, align 4, !tbaa !14
  store float %73, ptr %72, align 4, !tbaa !9
  %74 = getelementptr inbounds %struct.b2Vec2, ptr %20, i32 0, i32 1
  %75 = load float, ptr %17, align 4, !tbaa !14
  store float %75, ptr %74, align 4, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %76 = load i32, ptr %2, align 2
  %77 = call i64 @b2CreateBody(i32 %76, ptr noundef %10)
  store i64 %77, ptr %21, align 4
  %78 = load i64, ptr %21, align 4
  %79 = call i64 @b2CreatePolygonShape(i64 %78, ptr noundef %11, ptr noundef %13)
  store i64 %79, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %80

80:                                               ; preds = %53
  %81 = load i32, ptr %18, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %18, align 4, !tbaa !5
  br label %48, !llvm.loop !25

83:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %15, align 4, !tbaa !5
  br label %36, !llvm.loop !27

87:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

declare void @b2MakeBox(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, float noundef, float noundef) #0

declare i64 @b2CreatePolygonShape(i64, ptr noundef, ptr noundef) #0

declare void @b2MakeSquare(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, float noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #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 = { 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"="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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"b2BodyDef", !6, i64 0, !10, i64 4, !17, i64 12, !10, i64 20, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !18, i64 48, !18, i64 56, !19, i64 64, !19, i64 65, !19, i64 66, !19, i64 67, !19, i64 68, !19, i64 69, !6, i64 72}
!17 = !{!"b2Rot", !11, i64 0, !11, i64 4}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_Bool", !7, i64 0}
!20 = !{!21, !11, i64 32}
!21 = !{!"b2ShapeDef", !18, i64 0, !22, i64 8, !11, i64 32, !23, i64 40, !19, i64 64, !19, i64 65, !19, i64 66, !19, i64 67, !19, i64 68, !19, i64 69, !19, i64 70, !6, i64 72}
!22 = !{!"b2SurfaceMaterial", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 20}
!23 = !{!"b2Filter", !24, i64 0, !24, i64 8, !6, i64 16}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.b2ShapeDef = type { ptr, %struct.b2SurfaceMaterial, float, %struct.b2Filter, i8, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2SurfaceMaterial = type { float, float, float, float, i32, i32 }
%struct.b2Filter = type { i64, i64, i32 }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { float, float }
%struct.b2Vec2 = type { float, float }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }

declare void @b2World_EnableSleeping(i32, i1 noundef zeroext) local_unnamed_addr #0

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

declare void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8) local_unnamed_addr #0

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) local_unnamed_addr #0

declare i64 @b2CreateBody(i32, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @CreateLargePyramid(i32 %0) local_unnamed_addr #2 {
  %2 = alloca %struct.b2BodyDef, align 8
  %3 = alloca %struct.b2Polygon, align 4
  %4 = alloca %struct.b2ShapeDef, align 8
  %5 = alloca %struct.b2BodyDef, align 8
  %6 = alloca %struct.b2ShapeDef, align 8
  %7 = alloca %struct.b2Polygon, align 4
  tail call void @b2World_EnableSleeping(i32 %0, i1 noundef zeroext false) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #4
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %2) #4
  %8 = getelementptr inbounds i8, ptr %2, i64 4
  store <2 x float> <float 0.000000e+00, float -1.000000e+00>, ptr %8, align 4, !tbaa !5
  %9 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #4
  call void @b2MakeBox(ptr dead_on_unwind nonnull writable sret(%struct.b2Polygon) align 4 %3, float noundef 1.000000e+02, float noundef 1.000000e+00) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  call void @b2DefaultShapeDef(ptr dead_on_unwind nonnull writable sret(%struct.b2ShapeDef) align 8 %4) #4
  %10 = call i64 @b2CreatePolygonShape(i64 %9, ptr noundef nonnull %4, ptr noundef nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #4
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %5) #4
  store i32 2, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  call void @b2DefaultShapeDef(ptr dead_on_unwind nonnull writable sret(%struct.b2ShapeDef) align 8 %6) #4
  %11 = getelementptr inbounds i8, ptr %6, i64 32
  store float 1.000000e+00, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %7) #4
  call void @b2MakeSquare(ptr dead_on_unwind nonnull writable sret(%struct.b2Polygon) align 4 %7, float noundef 5.000000e-01) #4
  %12 = getelementptr inbounds i8, ptr %5, i64 4
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  br label %14

13:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #4
  ret void

14:                                               ; preds = %1, %19
  %.030 = phi i32 [ 0, %1 ], [ %20, %19 ]
  %15 = uitofp nneg i32 %.030 to float
  %16 = call float @llvm.fmuladd.f32(float %15, float 2.000000e+00, float 1.000000e+00)
  %17 = fmul float %16, 5.000000e-01
  %18 = fadd float %15, 1.000000e+00
  br label %21

19:                                               ; preds = %21
  %20 = add nuw nsw i32 %.030, 1
  %exitcond31.not = icmp eq i32 %20, 20
  br i1 %exitcond31.not, label %13, label %14, !llvm.loop !21

21:                                               ; preds = %14, %21
  %.02829 = phi i32 [ %.030, %14 ], [ %30, %21 ]
  %22 = sub nuw nsw i32 %.02829, %.030
  %23 = uitofp nneg i32 %22 to float
  %24 = fmul float %23, 2.000000e+00
  %25 = fmul float %24, 5.000000e-01
  %26 = call float @llvm.fmuladd.f32(float %18, float 5.000000e-01, float %25)
  %27 = fadd float %26, -1.000000e+01
  store float %27, ptr %12, align 4, !tbaa !5
  store float %17, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !5
  %28 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %5) #4
  %29 = call i64 @b2CreatePolygonShape(i64 %28, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  %30 = add nuw nsw i32 %.02829, 1
  %exitcond.not = icmp eq i32 %30, 20
  br i1 %exitcond.not, label %19, label %21, !llvm.loop !23
}

declare void @b2MakeBox(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, float noundef, float noundef) local_unnamed_addr #0

declare i64 @b2CreatePolygonShape(i64, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @b2MakeSquare(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

attributes #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"b2BodyDef", !11, i64 0, !12, i64 4, !13, i64 12, !12, i64 20, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !14, i64 48, !14, i64 56, !15, i64 64, !15, i64 65, !15, i64 66, !15, i64 67, !15, i64 68, !15, i64 69, !11, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"b2Vec2", !6, i64 0, !6, i64 4}
!13 = !{!"b2Rot", !6, i64 0, !6, i64 4}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!17, !6, i64 32}
!17 = !{!"b2ShapeDef", !14, i64 0, !18, i64 8, !6, i64 32, !19, i64 40, !15, i64 64, !15, i64 65, !15, i64 66, !15, i64 67, !15, i64 68, !15, i64 69, !15, i64 70, !11, i64 72}
!18 = !{!"b2SurfaceMaterial", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16, !11, i64 20}
!19 = !{!"b2Filter", !20, i64 0, !20, i64 8, !11, i64 16}
!20 = !{!"long", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass