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

@b2Vec2_zero = external hidden constant %struct.b2Vec2, align 4

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

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

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

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

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

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

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

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

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

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

39:                                               ; preds = %75, %1
  %40 = load i32, ptr %16, align 4, !tbaa !25
  %41 = load i32, ptr %14, align 4, !tbaa !25
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %78

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !25
  br label %45

45:                                               ; preds = %71, %44
  %46 = load i32, ptr %18, align 4, !tbaa !25
  %47 = load i32, ptr %15, align 4, !tbaa !25
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %74

50:                                               ; preds = %45
  %51 = load i32, ptr %16, align 4, !tbaa !25
  %52 = sitofp i32 %51 to float
  %53 = load float, ptr %10, align 4, !tbaa !18
  %54 = call float @llvm.fmuladd.f32(float %52, float %53, float 3.000000e+01)
  %55 = getelementptr inbounds %struct.b2BodyDef, ptr %12, i32 0, i32 1
  %56 = getelementptr inbounds %struct.b2Vec2, ptr %55, i32 0, i32 0
  store float %54, ptr %56, align 4, !tbaa !26
  %57 = load i32, ptr %18, align 4, !tbaa !25
  %58 = sitofp i32 %57 to float
  %59 = load i32, ptr %15, align 4, !tbaa !25
  %60 = sitofp i32 %59 to float
  %61 = fdiv float %60, 2.000000e+00
  %62 = fsub float %58, %61
  %63 = load float, ptr %10, align 4, !tbaa !18
  %64 = fmul float %62, %63
  %65 = getelementptr inbounds %struct.b2BodyDef, ptr %12, i32 0, i32 1
  %66 = getelementptr inbounds %struct.b2Vec2, ptr %65, i32 0, i32 1
  store float %64, ptr %66, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %67 = load i32, ptr %2, align 2
  %68 = call i64 @b2CreateBody(i32 %67, ptr noundef %12)
  store i64 %68, ptr %19, align 4
  %69 = load i64, ptr %19, align 4
  %70 = call i64 @b2CreatePolygonShape(i64 %69, ptr noundef %13, ptr noundef %11)
  store i64 %70, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %71

71:                                               ; preds = %50
  %72 = load i32, ptr %18, align 4, !tbaa !25
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %18, align 4, !tbaa !25
  br label %45, !llvm.loop !28

74:                                               ; preds = %49
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %16, align 4, !tbaa !25
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %16, align 4, !tbaa !25
  br label %39, !llvm.loop !30

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

declare void @b2World_SetGravity(i32, <2 x float>) #1

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


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

@b2Vec2_zero = external hidden local_unnamed_addr constant %struct.b2Vec2, align 4

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CreateSmash(i32 %0) local_unnamed_addr #3 {
  %2 = alloca %struct.b2Polygon, align 4
  %3 = alloca %struct.b2BodyDef, align 8
  %4 = alloca %struct.b2ShapeDef, align 8
  %5 = alloca %struct.b2Polygon, align 4
  %6 = alloca %struct.b2BodyDef, align 8
  %7 = alloca %struct.b2ShapeDef, align 8
  %8 = load <2 x float>, ptr @b2Vec2_zero, align 4
  tail call void @b2World_SetGravity(i32 %0, <2 x float> %8) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %2) #4
  call void @b2MakeBox(ptr dead_on_unwind nonnull writable sret(%struct.b2Polygon) align 4 %2, float noundef 4.000000e+00, float noundef 4.000000e+00) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #4
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %3) #4
  store i32 2, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %3, i64 4
  store <2 x float> <float -2.000000e+01, float 0.000000e+00>, ptr %9, align 4, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %3, i64 20
  store <2 x float> <float 4.000000e+01, float 0.000000e+00>, ptr %10, align 4, !tbaa !15
  %11 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %3) #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
  %12 = getelementptr inbounds i8, ptr %4, i64 32
  store float 8.000000e+00, ptr %12, align 8, !tbaa !16
  %13 = call i64 @b2CreatePolygonShape(i64 %11, ptr noundef nonnull %4, ptr noundef nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #4
  call void @b2MakeSquare(ptr dead_on_unwind nonnull writable sret(%struct.b2Polygon) align 4 %5, float noundef 0x3FC99999A0000000) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %6) #4
  store i32 2, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %6, i64 65
  store i8 0, ptr %14, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #4
  call void @b2DefaultShapeDef(ptr dead_on_unwind nonnull writable sret(%struct.b2ShapeDef) align 8 %7) #4
  %15 = getelementptr inbounds i8, ptr %6, i64 4
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  br label %.preheader

.preheader:                                       ; preds = %1, %.preheader
  %.022 = phi i32 [ 0, %1 ], [ %39, %.preheader ]
  %17 = uitofp nneg i32 %.022 to float
  %18 = call float @llvm.fmuladd.f32(float %17, float 0x3FD99999A0000000, float 3.000000e+01)
  store float %18, ptr %15, align 4, !tbaa !22
  store float -2.000000e+00, ptr %16, align 8, !tbaa !23
  %19 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %20 = call i64 @b2CreatePolygonShape(i64 %19, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0xBFF99999A0000000, ptr %16, align 8, !tbaa !23
  %21 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %22 = call i64 @b2CreatePolygonShape(i64 %21, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0xBFF3333340000000, ptr %16, align 8, !tbaa !23
  %23 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %24 = call i64 @b2CreatePolygonShape(i64 %23, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0xBFE99999A0000000, ptr %16, align 8, !tbaa !23
  %25 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %26 = call i64 @b2CreatePolygonShape(i64 %25, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0xBFD99999A0000000, ptr %16, align 8, !tbaa !23
  %27 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %28 = call i64 @b2CreatePolygonShape(i64 %27, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0.000000e+00, ptr %16, align 8, !tbaa !23
  %29 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %30 = call i64 @b2CreatePolygonShape(i64 %29, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0x3FD99999A0000000, ptr %16, align 8, !tbaa !23
  %31 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %32 = call i64 @b2CreatePolygonShape(i64 %31, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0x3FE99999A0000000, ptr %16, align 8, !tbaa !23
  %33 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %34 = call i64 @b2CreatePolygonShape(i64 %33, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0x3FF3333340000000, ptr %16, align 8, !tbaa !23
  %35 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %36 = call i64 @b2CreatePolygonShape(i64 %35, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  store float %18, ptr %15, align 4, !tbaa !22
  store float 0x3FF99999A0000000, ptr %16, align 8, !tbaa !23
  %37 = call i64 @b2CreateBody(i32 %0, ptr noundef nonnull %6) #4
  %38 = call i64 @b2CreatePolygonShape(i64 %37, ptr noundef nonnull %7, ptr noundef nonnull %5) #4
  %39 = add nuw nsw i32 %.022, 1
  %exitcond.not = icmp eq i32 %39, 20
  br i1 %exitcond.not, label %40, label %.preheader, !llvm.loop !24

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

declare void @b2World_SetGravity(i32, <2 x float>) local_unnamed_addr #1

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


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