; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_fixture.ll (ZN9b2Fixture4DumpEi)

; 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.b2Fixture = type <{ float, [4 x i8], ptr, ptr, ptr, %struct.b2AABB, float, float, float, %struct.b2Filter, i8, [5 x i8], %struct.b2FixtureUserData, i32, [4 x i8] }>
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2Vec2 = type { float, float }
%struct.b2Filter = type { i16, i16, i16 }
%struct.b2FixtureUserData = type { i64 }
%class.b2Shape = type { ptr, i32, float }
%class.b2CircleShape = type { %class.b2Shape, %struct.b2Vec2 }
%class.b2EdgeShape = type <{ %class.b2Shape, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, i8, [7 x i8] }>
%class.b2PolygonShape = type <{ %class.b2Shape, %struct.b2Vec2, [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], i32, [4 x i8] }>

@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 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: mustprogress uwtable
define dso_local void @_ZN9b2Fixture4DumpEi(ptr noundef nonnull align 8 dereferenceable(84) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %9 = load ptr, ptr %3, align 8
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.2)
  %10 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 6
  %11 = load float, ptr %10, align 8, !tbaa !11
  %12 = fpext float %11 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.3, double noundef %12)
  %13 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 7
  %14 = load float, ptr %13, align 4, !tbaa !21
  %15 = fpext float %14 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.4, double noundef %15)
  %16 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 8
  %17 = load float, ptr %16, align 8, !tbaa !22
  %18 = fpext float %17 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.5, double noundef %18)
  %19 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 0
  %20 = load float, ptr %19, align 8, !tbaa !23
  %21 = fpext float %20 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.6, double noundef %21)
  %22 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 10
  %23 = load i8, ptr %22, align 2, !tbaa !24, !range !25, !noundef !26
  %24 = trunc i8 %23 to i1
  %25 = zext i1 %24 to i32
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.7, i32 noundef %25)
  %26 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 9
  %27 = getelementptr inbounds %struct.b2Filter, ptr %26, i32 0, i32 0
  %28 = load i16, ptr %27, align 4, !tbaa !27
  %29 = zext i16 %28 to i32
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.8, i32 noundef %29)
  %30 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 9
  %31 = getelementptr inbounds %struct.b2Filter, ptr %30, i32 0, i32 1
  %32 = load i16, ptr %31, align 2, !tbaa !28
  %33 = zext i16 %32 to i32
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.9, i32 noundef %33)
  %34 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 9
  %35 = getelementptr inbounds %struct.b2Filter, ptr %34, i32 0, i32 2
  %36 = load i16, ptr %35, align 4, !tbaa !29
  %37 = sext i16 %36 to i32
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.10, i32 noundef %37)
  %38 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = getelementptr inbounds %class.b2Shape, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !31
  switch i32 %41, label %146 [
    i32 0, label %42
    i32 1, label %59
    i32 2, label %111
  ]

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %43 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  store ptr %44, ptr %5, align 8, !tbaa !5
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.11)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.b2Shape, ptr %45, i32 0, i32 2
  %47 = load float, ptr %46, align 4, !tbaa !34
  %48 = fpext float %47 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.12, double noundef %48)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.b2CircleShape, ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %struct.b2Vec2, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 8, !tbaa !35
  %53 = fpext float %52 to double
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.b2CircleShape, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.b2Vec2, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !37
  %58 = fpext float %57 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.13, double noundef %53, double noundef %58)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %147

59:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %60 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !30
  store ptr %61, ptr %6, align 8, !tbaa !5
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.14)
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.b2Shape, ptr %62, i32 0, i32 2
  %64 = load float, ptr %63, align 4, !tbaa !34
  %65 = fpext float %64 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.12, double noundef %65)
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %class.b2EdgeShape, ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %struct.b2Vec2, ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 8, !tbaa !38
  %70 = fpext float %69 to double
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.b2EdgeShape, ptr %71, i32 0, i32 3
  %73 = getelementptr inbounds %struct.b2Vec2, ptr %72, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !40
  %75 = fpext float %74 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.15, double noundef %70, double noundef %75)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.b2EdgeShape, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %struct.b2Vec2, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 8, !tbaa !41
  %80 = fpext float %79 to double
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.b2EdgeShape, ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %struct.b2Vec2, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !42
  %85 = fpext float %84 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.16, double noundef %80, double noundef %85)
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.b2EdgeShape, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %struct.b2Vec2, ptr %87, i32 0, i32 0
  %89 = load float, ptr %88, align 8, !tbaa !43
  %90 = fpext float %89 to double
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.b2EdgeShape, ptr %91, i32 0, i32 2
  %93 = getelementptr inbounds %struct.b2Vec2, ptr %92, i32 0, i32 1
  %94 = load float, ptr %93, align 4, !tbaa !44
  %95 = fpext float %94 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.17, double noundef %90, double noundef %95)
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %class.b2EdgeShape, ptr %96, i32 0, i32 4
  %98 = getelementptr inbounds %struct.b2Vec2, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 8, !tbaa !45
  %100 = fpext float %99 to double
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.b2EdgeShape, ptr %101, i32 0, i32 4
  %103 = getelementptr inbounds %struct.b2Vec2, ptr %102, i32 0, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !46
  %105 = fpext float %104 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.18, double noundef %100, double noundef %105)
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.b2EdgeShape, ptr %106, i32 0, i32 5
  %108 = load i8, ptr %107, align 8, !tbaa !47, !range !25, !noundef !26
  %109 = trunc i8 %108 to i1
  %110 = zext i1 %109 to i32
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.19, i32 noundef %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %147

111:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %112 = getelementptr inbounds %class.b2Fixture, ptr %9, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  store ptr %113, ptr %7, align 8, !tbaa !5
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.20)
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.21, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %139, %111
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.b2PolygonShape, ptr %116, i32 0, i32 4
  %118 = load i32, ptr %117, align 8, !tbaa !48
  %119 = icmp slt i32 %115, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %142

121:                                              ; preds = %114
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.b2PolygonShape, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %124, i64 0, i64 %126
  %128 = getelementptr inbounds %struct.b2Vec2, ptr %127, i32 0, i32 0
  %129 = load float, ptr %128, align 8, !tbaa !50
  %130 = fpext float %129 to double
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %class.b2PolygonShape, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %132, i64 0, i64 %134
  %136 = getelementptr inbounds %struct.b2Vec2, ptr %135, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !51
  %138 = fpext float %137 to double
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.22, i32 noundef %122, double noundef %130, double noundef %138)
  br label %139

139:                                              ; preds = %121
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %8, align 4, !tbaa !9
  br label %114, !llvm.loop !52

142:                                              ; preds = %120
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.b2PolygonShape, ptr %143, i32 0, i32 4
  %145 = load i32, ptr %144, align 8, !tbaa !48
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.23, i32 noundef %145)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %147

146:                                              ; preds = %2
  br label %149

147:                                              ; preds = %142, %59, %42
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.24)
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.25)
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.24)
  %148 = load i32, ptr %4, align 4, !tbaa !9
  call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef @.str.26, i32 noundef %148)
  br label %149

149:                                              ; preds = %147, %146
  ret void
}

declare void @_Z6b2DumpPKcz(ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 48}
!12 = !{!"_ZTS9b2Fixture", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !13, i64 48, !13, i64 52, !13, i64 56, !16, i64 60, !18, i64 66, !19, i64 72, !10, i64 80}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS6b2AABB", !15, i64 0, !15, i64 8}
!15 = !{!"_ZTS6b2Vec2", !13, i64 0, !13, i64 4}
!16 = !{!"_ZTS8b2Filter", !17, i64 0, !17, i64 2, !17, i64 4}
!17 = !{!"short", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS17b2FixtureUserData", !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!12, !13, i64 52}
!22 = !{!12, !13, i64 56}
!23 = !{!12, !13, i64 0}
!24 = !{!12, !18, i64 66}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!12, !17, i64 60}
!28 = !{!12, !17, i64 62}
!29 = !{!12, !17, i64 64}
!30 = !{!12, !6, i64 24}
!31 = !{!32, !33, i64 8}
!32 = !{!"_ZTS7b2Shape", !33, i64 8, !13, i64 12}
!33 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!34 = !{!32, !13, i64 12}
!35 = !{!36, !13, i64 16}
!36 = !{!"_ZTS13b2CircleShape", !32, i64 0, !15, i64 16}
!37 = !{!36, !13, i64 20}
!38 = !{!39, !13, i64 32}
!39 = !{!"_ZTS11b2EdgeShape", !32, i64 0, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !18, i64 48}
!40 = !{!39, !13, i64 36}
!41 = !{!39, !13, i64 16}
!42 = !{!39, !13, i64 20}
!43 = !{!39, !13, i64 24}
!44 = !{!39, !13, i64 28}
!45 = !{!39, !13, i64 40}
!46 = !{!39, !13, i64 44}
!47 = !{!39, !18, i64 48}
!48 = !{!49, !10, i64 152}
!49 = !{!"_ZTS14b2PolygonShape", !32, i64 0, !15, i64 16, !7, i64 24, !7, i64 88, !10, i64 152}
!50 = !{!15, !13, i64 0}
!51 = !{!15, !13, i64 4}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}


; 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 }

@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9b2Fixture4DumpEi(ptr nocapture noundef nonnull readonly align 8 dereferenceable(84) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.2)
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  %4 = load float, ptr %3, align 8, !tbaa !5
  %5 = fpext float %4 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.3, double noundef %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 52
  %7 = load float, ptr %6, align 4, !tbaa !19
  %8 = fpext float %7 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.4, double noundef %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load float, ptr %9, align 8, !tbaa !20
  %11 = fpext float %10 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.5, double noundef %11)
  %12 = load float, ptr %0, align 8, !tbaa !21
  %13 = fpext float %12 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.6, double noundef %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 66
  %15 = load i8, ptr %14, align 2, !tbaa !22, !range !23, !noundef !24
  %16 = zext nneg i8 %15 to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.7, i32 noundef %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 60
  %18 = load i16, ptr %17, align 4, !tbaa !25
  %19 = zext i16 %18 to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.8, i32 noundef %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 62
  %21 = load i16, ptr %20, align 2, !tbaa !26
  %22 = zext i16 %21 to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.9, i32 noundef %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 64
  %24 = load i16, ptr %23, align 8, !tbaa !27
  %25 = sext i16 %24 to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.10, i32 noundef %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !28
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !29
  switch i32 %29, label %88 [
    i32 0, label %30
    i32 1, label %40
    i32 2, label %71
  ]

30:                                               ; preds = %2
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.11)
  %31 = getelementptr inbounds i8, ptr %27, i64 12
  %32 = load float, ptr %31, align 4, !tbaa !32
  %33 = fpext float %32 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.12, double noundef %33)
  %34 = getelementptr inbounds i8, ptr %27, i64 16
  %35 = load float, ptr %34, align 8, !tbaa !33
  %36 = fpext float %35 to double
  %37 = getelementptr inbounds i8, ptr %27, i64 20
  %38 = load float, ptr %37, align 4, !tbaa !35
  %39 = fpext float %38 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.13, double noundef %36, double noundef %39)
  br label %87

40:                                               ; preds = %2
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.14)
  %41 = getelementptr inbounds i8, ptr %27, i64 12
  %42 = load float, ptr %41, align 4, !tbaa !32
  %43 = fpext float %42 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.12, double noundef %43)
  %44 = getelementptr inbounds i8, ptr %27, i64 32
  %45 = load float, ptr %44, align 8, !tbaa !36
  %46 = fpext float %45 to double
  %47 = getelementptr inbounds i8, ptr %27, i64 36
  %48 = load float, ptr %47, align 4, !tbaa !38
  %49 = fpext float %48 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.15, double noundef %46, double noundef %49)
  %50 = getelementptr inbounds i8, ptr %27, i64 16
  %51 = load float, ptr %50, align 8, !tbaa !39
  %52 = fpext float %51 to double
  %53 = getelementptr inbounds i8, ptr %27, i64 20
  %54 = load float, ptr %53, align 4, !tbaa !40
  %55 = fpext float %54 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.16, double noundef %52, double noundef %55)
  %56 = getelementptr inbounds i8, ptr %27, i64 24
  %57 = load float, ptr %56, align 8, !tbaa !41
  %58 = fpext float %57 to double
  %59 = getelementptr inbounds i8, ptr %27, i64 28
  %60 = load float, ptr %59, align 4, !tbaa !42
  %61 = fpext float %60 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.17, double noundef %58, double noundef %61)
  %62 = getelementptr inbounds i8, ptr %27, i64 40
  %63 = load float, ptr %62, align 8, !tbaa !43
  %64 = fpext float %63 to double
  %65 = getelementptr inbounds i8, ptr %27, i64 44
  %66 = load float, ptr %65, align 4, !tbaa !44
  %67 = fpext float %66 to double
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.18, double noundef %64, double noundef %67)
  %68 = getelementptr inbounds i8, ptr %27, i64 48
  %69 = load i8, ptr %68, align 8, !tbaa !45, !range !23, !noundef !24
  %70 = zext nneg i8 %69 to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.19, i32 noundef %70)
  br label %87

71:                                               ; preds = %2
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.20)
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.21, i32 noundef 8)
  %72 = getelementptr inbounds i8, ptr %27, i64 152
  %73 = load i32, ptr %72, align 8, !tbaa !46
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %71
  %75 = getelementptr inbounds i8, ptr %27, i64 24
  br label %76

._crit_edge:                                      ; preds = %76, %71
  %.lcssa = phi i32 [ %73, %71 ], [ %84, %76 ]
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.23, i32 noundef %.lcssa)
  br label %87

76:                                               ; preds = %.lr.ph, %76
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %76 ]
  %77 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %75, i64 0, i64 %indvars.iv
  %78 = load float, ptr %77, align 8, !tbaa !48
  %79 = fpext float %78 to double
  %80 = getelementptr inbounds i8, ptr %77, i64 4
  %81 = load float, ptr %80, align 4, !tbaa !49
  %82 = fpext float %81 to double
  %83 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.22, i32 noundef %83, double noundef %79, double noundef %82)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = load i32, ptr %72, align 8, !tbaa !46
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next, %85
  br i1 %86, label %76, label %._crit_edge, !llvm.loop !50

87:                                               ; preds = %._crit_edge, %40, %30
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.24)
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.25)
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.24)
  tail call void (ptr, ...) @_Z6b2DumpPKcz(ptr noundef nonnull @.str.26, i32 noundef %1)
  br label %88

88:                                               ; preds = %2, %87
  ret void
}

declare void @_Z6b2DumpPKcz(ptr noundef, ...) local_unnamed_addr #1

attributes #0 = { 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 #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" }

!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 48}
!6 = !{!"_ZTS9b2Fixture", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !7, i64 48, !7, i64 52, !7, i64 56, !13, i64 60, !15, i64 66, !16, i64 72, !18, i64 80}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS6b2AABB", !12, i64 0, !12, i64 8}
!12 = !{!"_ZTS6b2Vec2", !7, i64 0, !7, i64 4}
!13 = !{!"_ZTS8b2Filter", !14, i64 0, !14, i64 2, !14, i64 4}
!14 = !{!"short", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"_ZTS17b2FixtureUserData", !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!6, !7, i64 52}
!20 = !{!6, !7, i64 56}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !15, i64 66}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!6, !14, i64 60}
!26 = !{!6, !14, i64 62}
!27 = !{!6, !14, i64 64}
!28 = !{!6, !10, i64 24}
!29 = !{!30, !31, i64 8}
!30 = !{!"_ZTS7b2Shape", !31, i64 8, !7, i64 12}
!31 = !{!"_ZTSN7b2Shape4TypeE", !8, i64 0}
!32 = !{!30, !7, i64 12}
!33 = !{!34, !7, i64 16}
!34 = !{!"_ZTS13b2CircleShape", !30, i64 0, !12, i64 16}
!35 = !{!34, !7, i64 20}
!36 = !{!37, !7, i64 32}
!37 = !{!"_ZTS11b2EdgeShape", !30, i64 0, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !15, i64 48}
!38 = !{!37, !7, i64 36}
!39 = !{!37, !7, i64 16}
!40 = !{!37, !7, i64 20}
!41 = !{!37, !7, i64 24}
!42 = !{!37, !7, i64 28}
!43 = !{!37, !7, i64 40}
!44 = !{!37, !7, i64 44}
!45 = !{!37, !15, i64 48}
!46 = !{!47, !18, i64 152}
!47 = !{!"_ZTS14b2PolygonShape", !30, i64 0, !12, i64 16, !8, i64 24, !8, i64 88, !18, i64 152}
!48 = !{!12, !7, i64 0}
!49 = !{!12, !7, i64 4}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass