; LLVM IR from erincatto/box2d :: test (test_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.b2Vec2 = type { float, float }
%struct.b2WorldDef = type { %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2WorldId = type { i16, i16 }
%struct.b2ExplosionDef = type { i64, %struct.b2Vec2, float, float, float }

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__.TestWorldCoverage = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@__const.TestWorldCoverage.g = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = 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

declare void @b2DefaultWorldDef(ptr dead_on_unwind writable sret(%struct.b2WorldDef) 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 i32 @b2CreateWorld(ptr noundef) #1

declare zeroext i1 @b2World_IsValid(i32) #1

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare void @b2World_Step(i32, float noundef, i32 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 @b2DestroyWorld(i32) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @TestWorldCoverage() #4 {
  %1 = alloca %struct.b2WorldDef, align 8
  %2 = alloca %struct.b2WorldId, align 2
  %3 = alloca i8, align 1
  %4 = alloca float, align 4
  %5 = alloca %struct.b2Vec2, align 4
  %6 = alloca %struct.b2Vec2, align 4
  %7 = alloca %struct.b2ExplosionDef, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr %1) #6
  call void @b2DefaultWorldDef(ptr dead_on_unwind writable sret(%struct.b2WorldDef) align 8 %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %10 = call i32 @b2CreateWorld(ptr noundef %1)
  store i32 %10, ptr %2, align 2
  br label %11

11:                                               ; preds = %0
  %12 = load i32, ptr %2, align 2
  %13 = call zeroext i1 @b2World_IsValid(i32 %12)
  %14 = zext i1 %13 to i32
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %11
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 270, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

18:                                               ; preds = %11
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  %21 = load i32, ptr %2, align 2
  call void @b2World_EnableSleeping(i32 %21, i1 noundef zeroext true)
  %22 = load i32, ptr %2, align 2
  call void @b2World_EnableSleeping(i32 %22, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  %23 = load i32, ptr %2, align 2
  %24 = call zeroext i1 @b2World_IsSleepingEnabled(i32 %23)
  %25 = zext i1 %24 to i8
  store i8 %25, ptr %3, align 1, !tbaa !5
  br label %26

26:                                               ; preds = %20
  %27 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %28 = trunc i8 %27 to i1
  %29 = zext i1 %28 to i32
  %30 = icmp eq i32 %29, 0
  %31 = zext i1 %30 to i32
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %26
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 275, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

35:                                               ; preds = %26
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %2, align 2
  call void @b2World_EnableContinuous(i32 %38, i1 noundef zeroext false)
  %39 = load i32, ptr %2, align 2
  call void @b2World_EnableContinuous(i32 %39, i1 noundef zeroext true)
  %40 = load i32, ptr %2, align 2
  %41 = call zeroext i1 @b2World_IsContinuousEnabled(i32 %40)
  %42 = zext i1 %41 to i8
  store i8 %42, ptr %3, align 1, !tbaa !5
  br label %43

43:                                               ; preds = %37
  %44 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = icmp eq i32 %46, 1
  %48 = zext i1 %47 to i32
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %43
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 280, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

52:                                               ; preds = %43
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %2, align 2
  call void @b2World_SetRestitutionThreshold(i32 %55, float noundef 0.000000e+00)
  %56 = load i32, ptr %2, align 2
  call void @b2World_SetRestitutionThreshold(i32 %56, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %57 = load i32, ptr %2, align 2
  %58 = call float @b2World_GetRestitutionThreshold(i32 %57)
  store float %58, ptr %4, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %54
  %60 = load float, ptr %4, align 4, !tbaa !11
  %61 = fcmp oeq float %60, 2.000000e+00
  %62 = zext i1 %61 to i32
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %59
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 285, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

66:                                               ; preds = %59
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %2, align 2
  call void @b2World_SetHitEventThreshold(i32 %69, float noundef 0.000000e+00)
  %70 = load i32, ptr %2, align 2
  call void @b2World_SetHitEventThreshold(i32 %70, float noundef 1.000000e+02)
  %71 = load i32, ptr %2, align 2
  %72 = call float @b2World_GetHitEventThreshold(i32 %71)
  store float %72, ptr %4, align 4, !tbaa !11
  br label %73

73:                                               ; preds = %68
  %74 = load float, ptr %4, align 4, !tbaa !11
  %75 = fcmp oeq float %74, 1.000000e+02
  %76 = zext i1 %75 to i32
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %73
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 290, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

80:                                               ; preds = %73
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %2, align 2
  call void @b2World_SetCustomFilterCallback(i32 %83, ptr noundef @CustomFilter, ptr noundef null)
  %84 = load i32, ptr %2, align 2
  call void @b2World_SetPreSolveCallback(i32 %84, ptr noundef @PreSolveStatic, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const.TestWorldCoverage.g, i64 8, i1 false)
  %85 = load i32, ptr %2, align 2
  %86 = load <2 x float>, ptr %5, align 4
  call void @b2World_SetGravity(i32 %85, <2 x float> %86)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %87 = load i32, ptr %2, align 2
  %88 = call <2 x float> @b2World_GetGravity(i32 %87)
  store <2 x float> %88, ptr %6, align 4
  br label %89

89:                                               ; preds = %82
  %90 = getelementptr inbounds %struct.b2Vec2, ptr %6, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = getelementptr inbounds %struct.b2Vec2, ptr %5, i32 0, i32 0
  %93 = load float, ptr %92, align 4, !tbaa !13
  %94 = fcmp oeq float %91, %93
  %95 = zext i1 %94 to i32
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %89
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 298, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

99:                                               ; preds = %89
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = getelementptr inbounds %struct.b2Vec2, ptr %6, i32 0, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !15
  %105 = getelementptr inbounds %struct.b2Vec2, ptr %5, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !15
  %107 = fcmp oeq float %104, %106
  %108 = zext i1 %107 to i32
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %102
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 299, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

112:                                              ; preds = %102
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @b2DefaultExplosionDef(ptr dead_on_unwind writable sret(%struct.b2ExplosionDef) align 8 %7)
  %115 = load i32, ptr %2, align 2
  call void @b2World_Explode(i32 %115, ptr noundef %7)
  %116 = load i32, ptr %2, align 2
  call void @b2World_SetContactTuning(i32 %116, float noundef 1.000000e+01, float noundef 2.000000e+00, float noundef 4.000000e+00)
  %117 = load i32, ptr %2, align 2
  call void @b2World_SetJointTuning(i32 %117, float noundef 1.000000e+01, float noundef 2.000000e+00)
  %118 = load i32, ptr %2, align 2
  call void @b2World_SetMaximumLinearSpeed(i32 %118, float noundef 1.000000e+01)
  %119 = load i32, ptr %2, align 2
  %120 = call float @b2World_GetMaximumLinearSpeed(i32 %119)
  store float %120, ptr %4, align 4, !tbaa !11
  br label %121

121:                                              ; preds = %114
  %122 = load float, ptr %4, align 4, !tbaa !11
  %123 = fcmp oeq float %122, 1.000000e+01
  %124 = zext i1 %123 to i32
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %121
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 309, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

128:                                              ; preds = %121
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %2, align 2
  call void @b2World_EnableWarmStarting(i32 %131, i1 noundef zeroext true)
  %132 = load i32, ptr %2, align 2
  %133 = call zeroext i1 @b2World_IsWarmStartingEnabled(i32 %132)
  %134 = zext i1 %133 to i8
  store i8 %134, ptr %3, align 1, !tbaa !5
  br label %135

135:                                              ; preds = %130
  %136 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %137 = trunc i8 %136 to i1
  %138 = zext i1 %137 to i32
  %139 = icmp eq i32 %138, 1
  %140 = zext i1 %139 to i32
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %135
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 313, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

144:                                              ; preds = %135
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %147 = load i32, ptr %2, align 2
  %148 = call i32 @b2World_GetAwakeBodyCount(i32 %147)
  store i32 %148, ptr %8, align 4, !tbaa !16
  br label %149

149:                                              ; preds = %146
  %150 = load i32, ptr %8, align 4, !tbaa !16
  %151 = icmp eq i32 %150, 0
  %152 = zext i1 %151 to i32
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %156

154:                                              ; preds = %149
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 316, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

156:                                              ; preds = %149
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %2, align 2
  call void @b2World_SetUserData(i32 %159, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %160 = load i32, ptr %2, align 2
  %161 = call ptr @b2World_GetUserData(i32 %160)
  store ptr %161, ptr %9, align 8, !tbaa !18
  br label %162

162:                                              ; preds = %158
  %163 = load ptr, ptr %9, align 8, !tbaa !18
  %164 = icmp eq ptr %163, %4
  %165 = zext i1 %164 to i32
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %169

167:                                              ; preds = %162
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 320, ptr noundef @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

169:                                              ; preds = %162
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %2, align 2
  call void @b2World_Step(i32 %172, float noundef 1.000000e+00, i32 noundef 1)
  %173 = load i32, ptr %2, align 2
  call void @b2DestroyWorld(i32 %173)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %1) #6
  ret i32 0
}

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

declare zeroext i1 @b2World_IsSleepingEnabled(i32) #1

declare void @b2World_EnableContinuous(i32, i1 noundef zeroext) #1

declare zeroext i1 @b2World_IsContinuousEnabled(i32) #1

declare void @b2World_SetRestitutionThreshold(i32, float noundef) #1

declare float @b2World_GetRestitutionThreshold(i32) #1

declare void @b2World_SetHitEventThreshold(i32, float noundef) #1

declare float @b2World_GetHitEventThreshold(i32) #1

declare void @b2World_SetCustomFilterCallback(i32, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @CustomFilter(i64, i64, ptr noundef) #5

declare void @b2World_SetPreSolveCallback(i32, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @PreSolveStatic(i64, i64, ptr noundef, ptr noundef) #5

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

declare <2 x float> @b2World_GetGravity(i32) #1

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

declare void @b2World_Explode(i32, ptr noundef) #1

declare void @b2World_SetContactTuning(i32, float noundef, float noundef, float noundef) #1

declare void @b2World_SetJointTuning(i32, float noundef, float noundef) #1

declare void @b2World_SetMaximumLinearSpeed(i32, float noundef) #1

declare float @b2World_GetMaximumLinearSpeed(i32) #1

declare void @b2World_EnableWarmStarting(i32, i1 noundef zeroext) #1

declare zeroext i1 @b2World_IsWarmStartingEnabled(i32) #1

declare i32 @b2World_GetAwakeBodyCount(i32) #1

declare void @b2World_SetUserData(i32, ptr noundef) #1

declare ptr @b2World_GetUserData(i32) #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 = { noreturn nounwind "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 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 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"b2Vec2", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}


; 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.b2WorldDef = type { %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2ExplosionDef = type { i64, %struct.b2Vec2, float, float, float }

@.str = external hidden unnamed_addr constant [45 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__.TestWorldCoverage = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [34 x i8], align 1
@__const.TestWorldCoverage.g = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

declare i32 @b2CreateWorld(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @b2World_IsValid(i32) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @b2World_Step(i32, float noundef, i32 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 @b2DestroyWorld(i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @TestWorldCoverage() local_unnamed_addr #4 {
  %1 = alloca %struct.b2WorldDef, align 8
  %2 = alloca float, align 4
  %3 = alloca %struct.b2ExplosionDef, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #6
  call void @b2DefaultWorldDef(ptr dead_on_unwind nonnull writable sret(%struct.b2WorldDef) align 8 %1) #6
  %4 = call i32 @b2CreateWorld(ptr noundef nonnull %1) #6
  %5 = call zeroext i1 @b2World_IsValid(i32 %4) #6
  br i1 %5, label %8, label %6

6:                                                ; preds = %0
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 270, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

8:                                                ; preds = %0
  call void @b2World_EnableSleeping(i32 %4, i1 noundef zeroext true) #6
  call void @b2World_EnableSleeping(i32 %4, i1 noundef zeroext false) #6
  %9 = call zeroext i1 @b2World_IsSleepingEnabled(i32 %4) #6
  br i1 %9, label %10, label %12

10:                                               ; preds = %8
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 275, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

12:                                               ; preds = %8
  call void @b2World_EnableContinuous(i32 %4, i1 noundef zeroext false) #6
  call void @b2World_EnableContinuous(i32 %4, i1 noundef zeroext true) #6
  %13 = call zeroext i1 @b2World_IsContinuousEnabled(i32 %4) #6
  br i1 %13, label %16, label %14

14:                                               ; preds = %12
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 280, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

16:                                               ; preds = %12
  call void @b2World_SetRestitutionThreshold(i32 %4, float noundef 0.000000e+00) #6
  call void @b2World_SetRestitutionThreshold(i32 %4, float noundef 2.000000e+00) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %17 = call float @b2World_GetRestitutionThreshold(i32 %4) #6
  %18 = fcmp une float %17, 2.000000e+00
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 285, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

21:                                               ; preds = %16
  call void @b2World_SetHitEventThreshold(i32 %4, float noundef 0.000000e+00) #6
  call void @b2World_SetHitEventThreshold(i32 %4, float noundef 1.000000e+02) #6
  %22 = call float @b2World_GetHitEventThreshold(i32 %4) #6
  %23 = fcmp une float %22, 1.000000e+02
  br i1 %23, label %24, label %26

24:                                               ; preds = %21
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 290, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

26:                                               ; preds = %21
  call void @b2World_SetCustomFilterCallback(i32 %4, ptr noundef nonnull @CustomFilter, ptr noundef null) #6
  call void @b2World_SetPreSolveCallback(i32 %4, ptr noundef nonnull @PreSolveStatic, ptr noundef null) #6
  %.sroa.01.0.copyload = load <2 x float>, ptr @__const.TestWorldCoverage.g, align 4
  call void @b2World_SetGravity(i32 %4, <2 x float> %.sroa.01.0.copyload) #6
  %27 = call <2 x float> @b2World_GetGravity(i32 %4) #6
  %.sroa.0.0.vec.extract = extractelement <2 x float> %27, i64 0
  %.sroa.01.0.vec.extract = extractelement <2 x float> %.sroa.01.0.copyload, i64 0
  %28 = fcmp une float %.sroa.0.0.vec.extract, %.sroa.01.0.vec.extract
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 298, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

31:                                               ; preds = %26
  %32 = fcmp une <2 x float> %27, %.sroa.01.0.copyload
  %33 = extractelement <2 x i1> %32, i64 1
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 299, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @b2DefaultExplosionDef(ptr dead_on_unwind nonnull writable sret(%struct.b2ExplosionDef) align 8 %3) #6
  call void @b2World_Explode(i32 %4, ptr noundef nonnull %3) #6
  call void @b2World_SetContactTuning(i32 %4, float noundef 1.000000e+01, float noundef 2.000000e+00, float noundef 4.000000e+00) #6
  call void @b2World_SetJointTuning(i32 %4, float noundef 1.000000e+01, float noundef 2.000000e+00) #6
  call void @b2World_SetMaximumLinearSpeed(i32 %4, float noundef 1.000000e+01) #6
  %37 = call float @b2World_GetMaximumLinearSpeed(i32 %4) #6
  store float %37, ptr %2, align 4, !tbaa !5
  %38 = fcmp une float %37, 1.000000e+01
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 309, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

41:                                               ; preds = %36
  call void @b2World_EnableWarmStarting(i32 %4, i1 noundef zeroext true) #6
  %42 = call zeroext i1 @b2World_IsWarmStartingEnabled(i32 %4) #6
  br i1 %42, label %45, label %43

43:                                               ; preds = %41
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 313, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

45:                                               ; preds = %41
  %46 = call i32 @b2World_GetAwakeBodyCount(i32 %4) #6
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %49, label %47

47:                                               ; preds = %45
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 316, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

49:                                               ; preds = %45
  call void @b2World_SetUserData(i32 %4, ptr noundef nonnull %2) #6
  %50 = call ptr @b2World_GetUserData(i32 %4) #6
  %.not35 = icmp eq ptr %50, %2
  br i1 %.not35, label %53, label %51

51:                                               ; preds = %49
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 320, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldCoverage) #7
  unreachable

53:                                               ; preds = %49
  call void @b2World_Step(i32 %4, float noundef 1.000000e+00, i32 noundef 1) #6
  call void @b2DestroyWorld(i32 %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #6
  ret i32 0
}

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

declare zeroext i1 @b2World_IsSleepingEnabled(i32) local_unnamed_addr #1

declare void @b2World_EnableContinuous(i32, i1 noundef zeroext) local_unnamed_addr #1

declare zeroext i1 @b2World_IsContinuousEnabled(i32) local_unnamed_addr #1

declare void @b2World_SetRestitutionThreshold(i32, float noundef) local_unnamed_addr #1

declare float @b2World_GetRestitutionThreshold(i32) local_unnamed_addr #1

declare void @b2World_SetHitEventThreshold(i32, float noundef) local_unnamed_addr #1

declare float @b2World_GetHitEventThreshold(i32) local_unnamed_addr #1

declare void @b2World_SetCustomFilterCallback(i32, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @CustomFilter(i64, i64, ptr noundef) #5

declare void @b2World_SetPreSolveCallback(i32, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @PreSolveStatic(i64, i64, ptr noundef, ptr noundef) #5

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

declare <2 x float> @b2World_GetGravity(i32) local_unnamed_addr #1

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

declare void @b2World_Explode(i32, ptr noundef) local_unnamed_addr #1

declare void @b2World_SetContactTuning(i32, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare void @b2World_SetJointTuning(i32, float noundef, float noundef) local_unnamed_addr #1

declare void @b2World_SetMaximumLinearSpeed(i32, float noundef) local_unnamed_addr #1

declare float @b2World_GetMaximumLinearSpeed(i32) local_unnamed_addr #1

declare void @b2World_EnableWarmStarting(i32, i1 noundef zeroext) local_unnamed_addr #1

declare zeroext i1 @b2World_IsWarmStartingEnabled(i32) local_unnamed_addr #1

declare i32 @b2World_GetAwakeBodyCount(i32) local_unnamed_addr #1

declare void @b2World_SetUserData(i32, ptr noundef) local_unnamed_addr #1

declare ptr @b2World_GetUserData(i32) 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 = { nofree nounwind "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 = { noreturn nounwind "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 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 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 #6 = { nounwind }
attributes #7 = { noreturn 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"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,VectorCombinePass