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

; 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.b2World = type { %struct.b2ArenaAllocator, %struct.b2BroadPhase, %struct.b2ConstraintGraph, %struct.b2IdPool, %struct.b2BodyArray, %struct.b2IdPool, %struct.b2SolverSetArray, %struct.b2IdPool, %struct.b2JointArray, %struct.b2IdPool, %struct.b2ContactArray, %struct.b2IdPool, %struct.b2IslandArray, %struct.b2IdPool, %struct.b2IdPool, %struct.b2ShapeArray, %struct.b2ChainShapeArray, %struct.b2SensorArray, %struct.b2TaskContextArray, %struct.b2SensorTaskContextArray, %struct.b2BodyMoveEventArray, %struct.b2SensorBeginTouchEventArray, %struct.b2ContactBeginTouchEventArray, [2 x %struct.b2SensorEndTouchEventArray], [2 x %struct.b2ContactEndTouchEventArray], i32, %struct.b2ContactHitEventArray, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, i64, i32, %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i16, %struct.b2Profile, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, float, i32, i32, i16, i8, i8, i8, i8, i8, i8 }
%struct.b2ArenaAllocator = type { ptr, i32, i32, i32, i32, %struct.b2ArenaEntryArray }
%struct.b2ArenaEntryArray = type { ptr, i32, i32 }
%struct.b2BroadPhase = type { [3 x %struct.b2DynamicTree], i32, %struct.b2HashSet, %struct.b2IntArray, ptr, ptr, i32, %struct.b2AtomicInt, %struct.b2HashSet }
%struct.b2DynamicTree = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2IntArray = type { ptr, i32, i32 }
%struct.b2AtomicInt = type { i32 }
%struct.b2HashSet = type { ptr, i32, i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }
%struct.b2BodyArray = type { ptr, i32, i32 }
%struct.b2SolverSetArray = type { ptr, i32, i32 }
%struct.b2JointArray = type { ptr, i32, i32 }
%struct.b2ContactArray = type { ptr, i32, i32 }
%struct.b2IslandArray = type { ptr, i32, i32 }
%struct.b2IdPool = type { %struct.b2IntArray, i32 }
%struct.b2ShapeArray = type { ptr, i32, i32 }
%struct.b2ChainShapeArray = type { ptr, i32, i32 }
%struct.b2SensorArray = type { ptr, i32, i32 }
%struct.b2TaskContextArray = type { ptr, i32, i32 }
%struct.b2SensorTaskContextArray = type { ptr, i32, i32 }
%struct.b2BodyMoveEventArray = type { ptr, i32, i32 }
%struct.b2SensorBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactHitEventArray = type { ptr, i32, i32 }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2Profile = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@b2_worlds = external dso_local global [128 x %struct.b2World], align 16
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @b2Body_IsValid(i64 %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca %struct.b2BodyId, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store i64 %0, ptr %3, align 4
  %7 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 1
  %8 = load i16, ptr %7, align 4, !tbaa !5
  %9 = zext i16 %8 to i32
  %10 = icmp sle i32 128, %9
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  br label %80

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %13 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 1
  %14 = load i16, ptr %13, align 4, !tbaa !5
  %15 = zext i16 %14 to i32
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds %struct.b2World, ptr @b2_worlds, i64 %16
  store ptr %17, ptr %4, align 8, !tbaa !11
  %18 = load ptr, ptr %4, align 8, !tbaa !11
  %19 = getelementptr inbounds %struct.b2World, ptr %18, i32 0, i32 59
  %20 = load i16, ptr %19, align 4, !tbaa !13
  %21 = zext i16 %20 to i32
  %22 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 1
  %23 = load i16, ptr %22, align 4, !tbaa !5
  %24 = zext i16 %23 to i32
  %25 = icmp ne i32 %21, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %12
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %79

27:                                               ; preds = %12
  %28 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !28
  %30 = icmp slt i32 %29, 1
  br i1 %30, label %39, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr %4, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.b2World, ptr %32, i32 0, i32 4
  %34 = getelementptr inbounds %struct.b2BodyArray, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !29
  %36 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !28
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %31, %27
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %79

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %41 = load ptr, ptr %4, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.b2World, ptr %41, i32 0, i32 4
  %43 = getelementptr inbounds %struct.b2BodyArray, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  %45 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !28
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.b2Body, ptr %44, i64 %48
  store ptr %49, ptr %6, align 8, !tbaa !11
  %50 = load ptr, ptr %6, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.b2Body, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !31
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %54, label %55

54:                                               ; preds = %40
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %78

55:                                               ; preds = %40
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %6, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.b2Body, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 4, !tbaa !33
  %60 = icmp ne i32 %59, -1
  br i1 %60, label %65, label %61

61:                                               ; preds = %56
  %62 = call i32 @b2InternalAssertFcn(ptr noundef @.str.23, ptr noundef @.str.1, i32 noundef 1609)
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  call void @llvm.trap()
  br label %65

65:                                               ; preds = %64, %61, %56
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %6, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.b2Body, ptr %68, i32 0, i32 21
  %70 = load i16, ptr %69, align 4, !tbaa !34
  %71 = zext i16 %70 to i32
  %72 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 2
  %73 = load i16, ptr %72, align 2, !tbaa !35
  %74 = zext i16 %73 to i32
  %75 = icmp ne i32 %71, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %78

77:                                               ; preds = %67
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %78

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

79:                                               ; preds = %78, %39, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %80

80:                                               ; preds = %79, %11
  %81 = load i1, ptr %2, align 1
  ret i1 %81
}

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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #2 = { nocallback nofree nosync 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 = { 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, !10, i64 4}
!6 = !{!"b2BodyId", !7, i64 0, !10, i64 4, !10, i64 6}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !10, i64 1796}
!14 = !{!"b2World", !15, i64 0, !17, i64 40, !20, i64 336, !21, i64 1008, !16, i64 1032, !21, i64 1048, !16, i64 1072, !21, i64 1088, !16, i64 1112, !21, i64 1128, !16, i64 1152, !21, i64 1168, !16, i64 1192, !21, i64 1208, !21, i64 1232, !16, i64 1256, !16, i64 1272, !16, i64 1288, !16, i64 1304, !16, i64 1320, !16, i64 1336, !16, i64 1352, !16, i64 1368, !8, i64 1384, !8, i64 1416, !7, i64 1448, !16, i64 1456, !22, i64 1472, !22, i64 1488, !22, i64 1504, !22, i64 1520, !23, i64 1536, !7, i64 1544, !24, i64 1548, !25, i64 1556, !25, i64 1560, !25, i64 1564, !25, i64 1568, !25, i64 1572, !25, i64 1576, !25, i64 1580, !25, i64 1584, !12, i64 1592, !12, i64 1600, !10, i64 1608, !26, i64 1612, !12, i64 1704, !12, i64 1712, !12, i64 1720, !12, i64 1728, !7, i64 1736, !12, i64 1744, !12, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !25, i64 1784, !7, i64 1788, !7, i64 1792, !10, i64 1796, !27, i64 1798, !27, i64 1799, !27, i64 1800, !27, i64 1801, !27, i64 1802, !27, i64 1803}
!15 = !{!"b2ArenaAllocator", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !16, i64 24}
!16 = !{!"", !12, i64 0, !7, i64 8, !7, i64 12}
!17 = !{!"b2BroadPhase", !8, i64 0, !7, i64 216, !18, i64 224, !16, i64 240, !12, i64 256, !12, i64 264, !7, i64 272, !19, i64 276, !18, i64 280}
!18 = !{!"b2HashSet", !12, i64 0, !7, i64 8, !7, i64 12}
!19 = !{!"b2AtomicInt", !7, i64 0}
!20 = !{!"b2ConstraintGraph", !8, i64 0}
!21 = !{!"b2IdPool", !16, i64 0, !7, i64 16}
!22 = !{!"b2BitSet", !12, i64 0, !7, i64 8, !7, i64 12}
!23 = !{!"long", !8, i64 0}
!24 = !{!"b2Vec2", !25, i64 0, !25, i64 4}
!25 = !{!"float", !8, i64 0}
!26 = !{!"b2Profile", !25, i64 0, !25, i64 4, !25, i64 8, !25, i64 12, !25, i64 16, !25, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36, !25, i64 40, !25, i64 44, !25, i64 48, !25, i64 52, !25, i64 56, !25, i64 60, !25, i64 64, !25, i64 68, !25, i64 72, !25, i64 76, !25, i64 80, !25, i64 84}
!27 = !{!"_Bool", !8, i64 0}
!28 = !{!6, !7, i64 0}
!29 = !{!14, !7, i64 1040}
!30 = !{!14, !12, i64 1032}
!31 = !{!32, !7, i64 40}
!32 = !{!"b2Body", !8, i64 0, !12, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !25, i64 88, !25, i64 92, !25, i64 96, !25, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !10, i64 116, !27, i64 118, !27, i64 119, !27, i64 120, !27, i64 121}
!33 = !{!32, !7, i64 44}
!34 = !{!32, !10, i64 116}
!35 = !{!6, !10, i64 6}


; 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.b2World = type { %struct.b2ArenaAllocator, %struct.b2BroadPhase, %struct.b2ConstraintGraph, %struct.b2IdPool, %struct.b2BodyArray, %struct.b2IdPool, %struct.b2SolverSetArray, %struct.b2IdPool, %struct.b2JointArray, %struct.b2IdPool, %struct.b2ContactArray, %struct.b2IdPool, %struct.b2IslandArray, %struct.b2IdPool, %struct.b2IdPool, %struct.b2ShapeArray, %struct.b2ChainShapeArray, %struct.b2SensorArray, %struct.b2TaskContextArray, %struct.b2SensorTaskContextArray, %struct.b2BodyMoveEventArray, %struct.b2SensorBeginTouchEventArray, %struct.b2ContactBeginTouchEventArray, [2 x %struct.b2SensorEndTouchEventArray], [2 x %struct.b2ContactEndTouchEventArray], i32, %struct.b2ContactHitEventArray, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, i64, i32, %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i16, %struct.b2Profile, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, float, i32, i32, i16, i8, i8, i8, i8, i8, i8 }
%struct.b2ArenaAllocator = type { ptr, i32, i32, i32, i32, %struct.b2ArenaEntryArray }
%struct.b2ArenaEntryArray = type { ptr, i32, i32 }
%struct.b2BroadPhase = type { [3 x %struct.b2DynamicTree], i32, %struct.b2HashSet, %struct.b2IntArray, ptr, ptr, i32, %struct.b2AtomicInt, %struct.b2HashSet }
%struct.b2DynamicTree = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2IntArray = type { ptr, i32, i32 }
%struct.b2AtomicInt = type { i32 }
%struct.b2HashSet = type { ptr, i32, i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }
%struct.b2BodyArray = type { ptr, i32, i32 }
%struct.b2SolverSetArray = type { ptr, i32, i32 }
%struct.b2JointArray = type { ptr, i32, i32 }
%struct.b2ContactArray = type { ptr, i32, i32 }
%struct.b2IslandArray = type { ptr, i32, i32 }
%struct.b2IdPool = type { %struct.b2IntArray, i32 }
%struct.b2ShapeArray = type { ptr, i32, i32 }
%struct.b2ChainShapeArray = type { ptr, i32, i32 }
%struct.b2SensorArray = type { ptr, i32, i32 }
%struct.b2TaskContextArray = type { ptr, i32, i32 }
%struct.b2SensorTaskContextArray = type { ptr, i32, i32 }
%struct.b2BodyMoveEventArray = type { ptr, i32, i32 }
%struct.b2SensorBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactHitEventArray = type { ptr, i32, i32 }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2Profile = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@b2_worlds = external dso_local local_unnamed_addr global [128 x %struct.b2World], align 16
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @b2Body_IsValid(i64 %0) local_unnamed_addr #2 {
  %.sroa.0.0.extract.trunc = trunc i64 %0 to i32
  %.sroa.7.0.extract.shift = lshr i64 %0, 48
  %2 = and i64 %0, 280925220896768
  %.not12 = icmp eq i64 %2, 0
  br i1 %.not12, label %3, label %33

3:                                                ; preds = %1
  %.sroa.4.0.extract.shift = lshr i64 %0, 32
  %4 = and i64 %.sroa.4.0.extract.shift, 127
  %5 = getelementptr inbounds %struct.b2World, ptr @b2_worlds, i64 %4
  %6 = getelementptr inbounds i8, ptr %5, i64 1796
  %7 = load i16, ptr %6, align 4, !tbaa !5
  %8 = trunc i64 %.sroa.4.0.extract.shift to i16
  %.not = icmp ne i16 %7, %8
  %9 = icmp slt i32 %.sroa.0.0.extract.trunc, 1
  %or.cond = or i1 %9, %.not
  br i1 %or.cond, label %33, label %10

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %5, i64 1040
  %12 = load i32, ptr %11, align 16, !tbaa !25
  %13 = icmp slt i32 %12, %.sroa.0.0.extract.trunc
  br i1 %13, label %33, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %5, i64 1032
  %16 = load ptr, ptr %15, align 8, !tbaa !26
  %17 = add nuw nsw i64 %0, 4294967295
  %18 = and i64 %17, 4294967295
  %19 = getelementptr inbounds %struct.b2Body, ptr %16, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 40
  %21 = load i32, ptr %20, align 8, !tbaa !27
  %22 = icmp eq i32 %21, -1
  br i1 %22, label %33, label %23

23:                                               ; preds = %14
  %24 = getelementptr inbounds i8, ptr %19, i64 44
  %25 = load i32, ptr %24, align 4, !tbaa !29
  %.not13 = icmp eq i32 %25, -1
  br i1 %.not13, label %26, label %29

26:                                               ; preds = %23
  %27 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.1, i32 noundef 1609) #3
  %.not14 = icmp eq i32 %27, 0
  br i1 %.not14, label %29, label %28

28:                                               ; preds = %26
  tail call void @llvm.trap()
  unreachable

29:                                               ; preds = %26, %23
  %30 = getelementptr inbounds i8, ptr %19, i64 116
  %31 = load i16, ptr %30, align 4, !tbaa !30
  %32 = zext i16 %31 to i64
  %.not15 = icmp eq i64 %.sroa.7.0.extract.shift, %32
  br label %33

33:                                               ; preds = %3, %10, %29, %14, %1
  %.2 = phi i1 [ false, %1 ], [ false, %3 ], [ false, %10 ], [ false, %14 ], [ %.not15, %29 ]
  ret i1 %.2
}

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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
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 = { 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, !22, i64 1796}
!6 = !{!"b2World", !7, i64 0, !13, i64 40, !16, i64 336, !17, i64 1008, !12, i64 1032, !17, i64 1048, !12, i64 1072, !17, i64 1088, !12, i64 1112, !17, i64 1128, !12, i64 1152, !17, i64 1168, !12, i64 1192, !17, i64 1208, !17, i64 1232, !12, i64 1256, !12, i64 1272, !12, i64 1288, !12, i64 1304, !12, i64 1320, !12, i64 1336, !12, i64 1352, !12, i64 1368, !9, i64 1384, !9, i64 1416, !11, i64 1448, !12, i64 1456, !18, i64 1472, !18, i64 1488, !18, i64 1504, !18, i64 1520, !19, i64 1536, !11, i64 1544, !20, i64 1548, !21, i64 1556, !21, i64 1560, !21, i64 1564, !21, i64 1568, !21, i64 1572, !21, i64 1576, !21, i64 1580, !21, i64 1584, !8, i64 1592, !8, i64 1600, !22, i64 1608, !23, i64 1612, !8, i64 1704, !8, i64 1712, !8, i64 1720, !8, i64 1728, !11, i64 1736, !8, i64 1744, !8, i64 1752, !8, i64 1760, !8, i64 1768, !8, i64 1776, !21, i64 1784, !11, i64 1788, !11, i64 1792, !22, i64 1796, !24, i64 1798, !24, i64 1799, !24, i64 1800, !24, i64 1801, !24, i64 1802, !24, i64 1803}
!7 = !{!"b2ArenaAllocator", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"", !8, i64 0, !11, i64 8, !11, i64 12}
!13 = !{!"b2BroadPhase", !9, i64 0, !11, i64 216, !14, i64 224, !12, i64 240, !8, i64 256, !8, i64 264, !11, i64 272, !15, i64 276, !14, i64 280}
!14 = !{!"b2HashSet", !8, i64 0, !11, i64 8, !11, i64 12}
!15 = !{!"b2AtomicInt", !11, i64 0}
!16 = !{!"b2ConstraintGraph", !9, i64 0}
!17 = !{!"b2IdPool", !12, i64 0, !11, i64 16}
!18 = !{!"b2BitSet", !8, i64 0, !11, i64 8, !11, i64 12}
!19 = !{!"long", !9, i64 0}
!20 = !{!"b2Vec2", !21, i64 0, !21, i64 4}
!21 = !{!"float", !9, i64 0}
!22 = !{!"short", !9, i64 0}
!23 = !{!"b2Profile", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !21, i64 40, !21, i64 44, !21, i64 48, !21, i64 52, !21, i64 56, !21, i64 60, !21, i64 64, !21, i64 68, !21, i64 72, !21, i64 76, !21, i64 80, !21, i64 84}
!24 = !{!"_Bool", !9, i64 0}
!25 = !{!6, !11, i64 1040}
!26 = !{!6, !8, i64 1032}
!27 = !{!28, !11, i64 40}
!28 = !{!"b2Body", !9, i64 0, !8, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !21, i64 88, !21, i64 92, !21, i64 96, !21, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !22, i64 116, !24, i64 118, !24, i64 119, !24, i64 120, !24, i64 121}
!29 = !{!28, !11, i64 44}
!30 = !{!28, !22, i64 116}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass