; LLVM IR from erincatto/box2d :: test (test_math)

; 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.b2Rot = type { float, float }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [66 x i8], align 1
@__PRETTY_FUNCTION__.MathTest = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@__const.MathTest.one = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@__const.MathTest.two = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @MathTest() #0 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca %struct.b2Rot, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca %struct.b2Vec2, align 4
  %34 = alloca %struct.b2Vec2, align 4
  %35 = alloca %struct.b2Vec2, align 4
  %36 = alloca %struct.b2Transform, align 4
  %37 = alloca %struct.b2Transform, align 4
  %38 = alloca %struct.b2Transform, align 4
  %39 = alloca %struct.b2Vec2, align 4
  %40 = alloca %struct.b2Vec2, align 4
  %41 = alloca %struct.b2Vec2, align 4
  %42 = alloca %struct.b2Vec2, align 4
  %43 = alloca %struct.b2Vec2, align 4
  %44 = alloca %struct.b2Vec2, align 4
  %45 = alloca %struct.b2Vec2, align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca %struct.b2Vec2, align 4
  %49 = alloca %struct.b2Vec2, align 4
  %50 = alloca %struct.b2Rot, align 4
  %51 = alloca %struct.b2Vec2, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #9
  store float -1.000000e+01, ptr %1, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %135, %0
  %53 = load float, ptr %1, align 4, !tbaa !5
  %54 = fcmp olt float %53, 1.000000e+01
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #9
  br label %138

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  %57 = load float, ptr %1, align 4, !tbaa !5
  %58 = fmul float 0x400921FB60000000, %57
  store float %58, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %59 = load float, ptr %2, align 4, !tbaa !5
  %60 = call <2 x float> @b2MakeRot(float noundef %59)
  store <2 x float> %60, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  %61 = load float, ptr %2, align 4, !tbaa !5
  %62 = call float @cosf(float noundef %61) #9
  store float %62, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %63 = load float, ptr %2, align 4, !tbaa !5
  %64 = call float @sinf(float noundef %63) #9
  store float %64, ptr %5, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %56
  %66 = getelementptr inbounds %struct.b2Rot, ptr %3, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = load float, ptr %4, align 4, !tbaa !5
  %69 = fsub float %67, %68
  %70 = fcmp olt float %69, 0xBF60624DE0000000
  br i1 %70, label %77, label %71

71:                                               ; preds = %65
  %72 = getelementptr inbounds %struct.b2Rot, ptr %3, i32 0, i32 0
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = load float, ptr %4, align 4, !tbaa !5
  %75 = fsub float %73, %74
  %76 = fcmp olt float 0x3F60624DE0000000, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %71, %65
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef 0x3F60624DE0000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 25, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

79:                                               ; preds = %71
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = getelementptr inbounds %struct.b2Rot, ptr %3, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !11
  %85 = load float, ptr %5, align 4, !tbaa !5
  %86 = fsub float %84, %85
  %87 = fcmp olt float %86, 0xBF60624DE0000000
  br i1 %87, label %94, label %88

88:                                               ; preds = %82
  %89 = getelementptr inbounds %struct.b2Rot, ptr %3, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !11
  %91 = load float, ptr %5, align 4, !tbaa !5
  %92 = fsub float %90, %91
  %93 = fcmp olt float 0x3F60624DE0000000, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %88, %82
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef 0x3F60624DE0000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 26, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

96:                                               ; preds = %88
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %99 = load float, ptr %2, align 4, !tbaa !5
  %100 = call float @b2UnwindLargeAngle(float noundef %99)
  store float %100, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %101 = load float, ptr %5, align 4, !tbaa !5
  %102 = load float, ptr %4, align 4, !tbaa !5
  %103 = call float @b2Atan2(float noundef %101, float noundef %102)
  store float %103, ptr %7, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %98
  %105 = load float, ptr %7, align 4, !tbaa !5
  %106 = call zeroext i1 @b2IsValidFloat(float noundef %105)
  %107 = zext i1 %106 to i32
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %104
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 30, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

111:                                              ; preds = %104
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %114 = load float, ptr %7, align 4, !tbaa !5
  %115 = load float, ptr %6, align 4, !tbaa !5
  %116 = fsub float %114, %115
  %117 = call float @b2AbsFloat(float noundef %116)
  store float %117, ptr %8, align 4, !tbaa !5
  %118 = load float, ptr %8, align 4, !tbaa !5
  %119 = fcmp ogt float %118, 0x400921FB60000000
  br i1 %119, label %120, label %123

120:                                              ; preds = %113
  %121 = load float, ptr %8, align 4, !tbaa !5
  %122 = fsub float %121, 0x401921FB60000000
  store float %122, ptr %8, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %120, %113
  br label %124

124:                                              ; preds = %123
  %125 = load float, ptr %8, align 4, !tbaa !5
  %126 = fcmp olt float %125, 0xBF04F8B580000000
  br i1 %126, label %130, label %127

127:                                              ; preds = %124
  %128 = load float, ptr %8, align 4, !tbaa !5
  %129 = fcmp olt float 0x3F04F8B580000000, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %127, %124
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

132:                                              ; preds = %127
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %135

135:                                              ; preds = %134
  %136 = load float, ptr %1, align 4, !tbaa !5
  %137 = fadd float %136, 0x3F847AE140000000
  store float %137, ptr %1, align 4, !tbaa !5
  br label %52, !llvm.loop !12

138:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store float -1.000000e+00, ptr %9, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %184, %138
  %140 = load float, ptr %9, align 4, !tbaa !5
  %141 = fcmp ole float %140, 1.000000e+00
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %187

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store float -1.000000e+00, ptr %11, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %180, %143
  %145 = load float, ptr %11, align 4, !tbaa !5
  %146 = fcmp ole float %145, 1.000000e+00
  br i1 %146, label %148, label %147

147:                                              ; preds = %144
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %183

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %149 = load float, ptr %9, align 4, !tbaa !5
  %150 = load float, ptr %11, align 4, !tbaa !5
  %151 = call float @b2Atan2(float noundef %149, float noundef %150)
  store float %151, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %152 = load float, ptr %9, align 4, !tbaa !5
  %153 = load float, ptr %11, align 4, !tbaa !5
  %154 = call float @atan2f(float noundef %152, float noundef %153) #9
  store float %154, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %155 = load float, ptr %12, align 4, !tbaa !5
  %156 = load float, ptr %13, align 4, !tbaa !5
  %157 = fsub float %155, %156
  %158 = call float @b2AbsFloat(float noundef %157)
  store float %158, ptr %14, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %148
  %160 = load float, ptr %12, align 4, !tbaa !5
  %161 = call zeroext i1 @b2IsValidFloat(float noundef %160)
  %162 = zext i1 %161 to i32
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %166

164:                                              ; preds = %159
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 51, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

166:                                              ; preds = %159
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168
  %170 = load float, ptr %14, align 4, !tbaa !5
  %171 = fcmp olt float %170, 0xBF04F8B580000000
  br i1 %171, label %175, label %172

172:                                              ; preds = %169
  %173 = load float, ptr %14, align 4, !tbaa !5
  %174 = fcmp olt float 0x3F04F8B580000000, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %172, %169
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 52, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

177:                                              ; preds = %172
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %180

180:                                              ; preds = %179
  %181 = load float, ptr %11, align 4, !tbaa !5
  %182 = fadd float %181, 0x3F847AE140000000
  store float %182, ptr %11, align 4, !tbaa !5
  br label %144, !llvm.loop !14

183:                                              ; preds = %147
  br label %184

184:                                              ; preds = %183
  %185 = load float, ptr %9, align 4, !tbaa !5
  %186 = fadd float %185, 0x3F847AE140000000
  store float %186, ptr %9, align 4, !tbaa !5
  br label %139, !llvm.loop !15

187:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %188 = call float @b2Atan2(float noundef 1.000000e+00, float noundef 0.000000e+00)
  store float %188, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %189 = call float @atan2f(float noundef 1.000000e+00, float noundef 0.000000e+00) #9
  store float %189, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %190 = load float, ptr %15, align 4, !tbaa !5
  %191 = load float, ptr %16, align 4, !tbaa !5
  %192 = fsub float %190, %191
  %193 = call float @b2AbsFloat(float noundef %192)
  store float %193, ptr %17, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %187
  %195 = load float, ptr %15, align 4, !tbaa !5
  %196 = call zeroext i1 @b2IsValidFloat(float noundef %195)
  %197 = zext i1 %196 to i32
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %201

199:                                              ; preds = %194
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

201:                                              ; preds = %194
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  %205 = load float, ptr %17, align 4, !tbaa !5
  %206 = fcmp olt float %205, 0xBF04F8B580000000
  br i1 %206, label %210, label %207

207:                                              ; preds = %204
  %208 = load float, ptr %17, align 4, !tbaa !5
  %209 = fcmp olt float 0x3F04F8B580000000, %208
  br i1 %209, label %210, label %212

210:                                              ; preds = %207, %204
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 61, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

212:                                              ; preds = %207
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %215 = call float @b2Atan2(float noundef -1.000000e+00, float noundef 0.000000e+00)
  store float %215, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %216 = call float @atan2f(float noundef -1.000000e+00, float noundef 0.000000e+00) #9
  store float %216, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %217 = load float, ptr %18, align 4, !tbaa !5
  %218 = load float, ptr %19, align 4, !tbaa !5
  %219 = fsub float %217, %218
  %220 = call float @b2AbsFloat(float noundef %219)
  store float %220, ptr %20, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %214
  %222 = load float, ptr %18, align 4, !tbaa !5
  %223 = call zeroext i1 @b2IsValidFloat(float noundef %222)
  %224 = zext i1 %223 to i32
  %225 = icmp eq i32 %224, 0
  br i1 %225, label %226, label %228

226:                                              ; preds = %221
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 68, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

228:                                              ; preds = %221
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  br label %231

231:                                              ; preds = %230
  %232 = load float, ptr %20, align 4, !tbaa !5
  %233 = fcmp olt float %232, 0xBF04F8B580000000
  br i1 %233, label %237, label %234

234:                                              ; preds = %231
  %235 = load float, ptr %20, align 4, !tbaa !5
  %236 = fcmp olt float 0x3F04F8B580000000, %235
  br i1 %236, label %237, label %239

237:                                              ; preds = %234, %231
  %238 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 69, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

239:                                              ; preds = %234
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %242 = call float @b2Atan2(float noundef 0.000000e+00, float noundef 1.000000e+00)
  store float %242, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %243 = call float @atan2f(float noundef 0.000000e+00, float noundef 1.000000e+00) #9
  store float %243, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %244 = load float, ptr %21, align 4, !tbaa !5
  %245 = load float, ptr %22, align 4, !tbaa !5
  %246 = fsub float %244, %245
  %247 = call float @b2AbsFloat(float noundef %246)
  store float %247, ptr %23, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %241
  %249 = load float, ptr %21, align 4, !tbaa !5
  %250 = call zeroext i1 @b2IsValidFloat(float noundef %249)
  %251 = zext i1 %250 to i32
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %255

253:                                              ; preds = %248
  %254 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

255:                                              ; preds = %248
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  br label %258

258:                                              ; preds = %257
  %259 = load float, ptr %23, align 4, !tbaa !5
  %260 = fcmp olt float %259, 0xBF04F8B580000000
  br i1 %260, label %264, label %261

261:                                              ; preds = %258
  %262 = load float, ptr %23, align 4, !tbaa !5
  %263 = fcmp olt float 0x3F04F8B580000000, %262
  br i1 %263, label %264, label %266

264:                                              ; preds = %261, %258
  %265 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 77, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

266:                                              ; preds = %261
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %269 = call float @b2Atan2(float noundef 0.000000e+00, float noundef -1.000000e+00)
  store float %269, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %270 = call float @atan2f(float noundef 0.000000e+00, float noundef -1.000000e+00) #9
  store float %270, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %271 = load float, ptr %24, align 4, !tbaa !5
  %272 = load float, ptr %25, align 4, !tbaa !5
  %273 = fsub float %271, %272
  %274 = call float @b2AbsFloat(float noundef %273)
  store float %274, ptr %26, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %268
  %276 = load float, ptr %24, align 4, !tbaa !5
  %277 = call zeroext i1 @b2IsValidFloat(float noundef %276)
  %278 = zext i1 %277 to i32
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %282

280:                                              ; preds = %275
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 84, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

282:                                              ; preds = %275
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  %286 = load float, ptr %26, align 4, !tbaa !5
  %287 = fcmp olt float %286, 0xBF04F8B580000000
  br i1 %287, label %291, label %288

288:                                              ; preds = %285
  %289 = load float, ptr %26, align 4, !tbaa !5
  %290 = fcmp olt float 0x3F04F8B580000000, %289
  br i1 %290, label %291, label %293

291:                                              ; preds = %288, %285
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 85, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

293:                                              ; preds = %288
  br label %294

294:                                              ; preds = %293
  br label %295

295:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %296 = call float @b2Atan2(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store float %296, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %297 = call float @atan2f(float noundef 0.000000e+00, float noundef 0.000000e+00) #9
  store float %297, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %298 = load float, ptr %27, align 4, !tbaa !5
  %299 = load float, ptr %28, align 4, !tbaa !5
  %300 = fsub float %298, %299
  %301 = call float @b2AbsFloat(float noundef %300)
  store float %301, ptr %29, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %295
  %303 = load float, ptr %27, align 4, !tbaa !5
  %304 = call zeroext i1 @b2IsValidFloat(float noundef %303)
  %305 = zext i1 %304 to i32
  %306 = icmp eq i32 %305, 0
  br i1 %306, label %307, label %309

307:                                              ; preds = %302
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 92, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

309:                                              ; preds = %302
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  br label %312

312:                                              ; preds = %311
  %313 = load float, ptr %29, align 4, !tbaa !5
  %314 = fcmp olt float %313, 0xBF04F8B580000000
  br i1 %314, label %318, label %315

315:                                              ; preds = %312
  %316 = load float, ptr %29, align 4, !tbaa !5
  %317 = fcmp olt float 0x3F04F8B580000000, %316
  br i1 %317, label %318, label %320

318:                                              ; preds = %315, %312
  %319 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef 0x3F04F8B580000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 93, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

320:                                              ; preds = %315
  br label %321

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 4 %30, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 @__const.MathTest.one, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 @__const.MathTest.two, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %323 = load <2 x float>, ptr %31, align 4
  %324 = load <2 x float>, ptr %32, align 4
  %325 = call <2 x float> @b2Add(<2 x float> %323, <2 x float> %324)
  store <2 x float> %325, ptr %33, align 4
  br label %326

326:                                              ; preds = %322
  %327 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %328 = load float, ptr %327, align 4, !tbaa !16
  %329 = fcmp oeq float %328, 3.000000e+00
  br i1 %329, label %330, label %334

330:                                              ; preds = %326
  %331 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %332 = load float, ptr %331, align 4, !tbaa !18
  %333 = fcmp oeq float %332, 3.000000e+00
  br label %334

334:                                              ; preds = %330, %326
  %335 = phi i1 [ false, %326 ], [ %333, %330 ]
  %336 = zext i1 %335 to i32
  %337 = icmp eq i32 %336, 0
  br i1 %337, label %338, label %340

338:                                              ; preds = %334
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

340:                                              ; preds = %334
  br label %341

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %343 = load <2 x float>, ptr %30, align 4
  %344 = load <2 x float>, ptr %32, align 4
  %345 = call <2 x float> @b2Sub(<2 x float> %343, <2 x float> %344)
  store <2 x float> %345, ptr %34, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %346

346:                                              ; preds = %342
  %347 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %348 = load float, ptr %347, align 4, !tbaa !16
  %349 = fcmp oeq float %348, -2.000000e+00
  br i1 %349, label %350, label %354

350:                                              ; preds = %346
  %351 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %352 = load float, ptr %351, align 4, !tbaa !18
  %353 = fcmp oeq float %352, -2.000000e+00
  br label %354

354:                                              ; preds = %350, %346
  %355 = phi i1 [ false, %346 ], [ %353, %350 ]
  %356 = zext i1 %355 to i32
  %357 = icmp eq i32 %356, 0
  br i1 %357, label %358, label %360

358:                                              ; preds = %354
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 104, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

360:                                              ; preds = %354
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %363 = load <2 x float>, ptr %32, align 4
  %364 = load <2 x float>, ptr %32, align 4
  %365 = call <2 x float> @b2Add(<2 x float> %363, <2 x float> %364)
  store <2 x float> %365, ptr %35, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %366

366:                                              ; preds = %362
  %367 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %368 = load float, ptr %367, align 4, !tbaa !16
  %369 = fcmp une float %368, 5.000000e+00
  br i1 %369, label %370, label %374

370:                                              ; preds = %366
  %371 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %372 = load float, ptr %371, align 4, !tbaa !18
  %373 = fcmp une float %372, 5.000000e+00
  br label %374

374:                                              ; preds = %370, %366
  %375 = phi i1 [ false, %366 ], [ %373, %370 ]
  %376 = zext i1 %375 to i32
  %377 = icmp eq i32 %376, 0
  br i1 %377, label %378, label %380

378:                                              ; preds = %374
  %379 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 107, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

380:                                              ; preds = %374
  br label %381

381:                                              ; preds = %380
  br label %382

382:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #9
  %383 = getelementptr inbounds %struct.b2Transform, ptr %36, i32 0, i32 0
  %384 = getelementptr inbounds %struct.b2Vec2, ptr %383, i32 0, i32 0
  store float -2.000000e+00, ptr %384, align 4, !tbaa !16
  %385 = getelementptr inbounds %struct.b2Vec2, ptr %383, i32 0, i32 1
  store float 3.000000e+00, ptr %385, align 4, !tbaa !18
  %386 = getelementptr inbounds %struct.b2Transform, ptr %36, i32 0, i32 1
  %387 = call <2 x float> @b2MakeRot(float noundef 1.000000e+00)
  store <2 x float> %387, ptr %386, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #9
  %388 = getelementptr inbounds %struct.b2Transform, ptr %37, i32 0, i32 0
  %389 = getelementptr inbounds %struct.b2Vec2, ptr %388, i32 0, i32 0
  store float 1.000000e+00, ptr %389, align 4, !tbaa !16
  %390 = getelementptr inbounds %struct.b2Vec2, ptr %388, i32 0, i32 1
  store float 0.000000e+00, ptr %390, align 4, !tbaa !18
  %391 = getelementptr inbounds %struct.b2Transform, ptr %37, i32 0, i32 1
  %392 = call <2 x float> @b2MakeRot(float noundef -2.000000e+00)
  store <2 x float> %392, ptr %391, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  %393 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 0
  %394 = load <2 x float>, ptr %393, align 4
  %395 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 1
  %396 = load <2 x float>, ptr %395, align 4
  %397 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %398 = load <2 x float>, ptr %397, align 4
  %399 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %400 = load <2 x float>, ptr %399, align 4
  %401 = call { <2 x float>, <2 x float> } @b2MulTransforms(<2 x float> %394, <2 x float> %396, <2 x float> %398, <2 x float> %400)
  %402 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 0
  %403 = extractvalue { <2 x float>, <2 x float> } %401, 0
  store <2 x float> %403, ptr %402, align 4
  %404 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 1
  %405 = extractvalue { <2 x float>, <2 x float> } %401, 1
  store <2 x float> %405, ptr %404, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %406 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %407 = load <2 x float>, ptr %406, align 4
  %408 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %409 = load <2 x float>, ptr %408, align 4
  %410 = load <2 x float>, ptr %32, align 4
  %411 = call <2 x float> @b2TransformPoint(<2 x float> %407, <2 x float> %409, <2 x float> %410)
  store <2 x float> %411, ptr %40, align 4
  %412 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 0
  %413 = load <2 x float>, ptr %412, align 4
  %414 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 1
  %415 = load <2 x float>, ptr %414, align 4
  %416 = load <2 x float>, ptr %40, align 4
  %417 = call <2 x float> @b2TransformPoint(<2 x float> %413, <2 x float> %415, <2 x float> %416)
  store <2 x float> %417, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %418 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 0
  %419 = load <2 x float>, ptr %418, align 4
  %420 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 1
  %421 = load <2 x float>, ptr %420, align 4
  %422 = load <2 x float>, ptr %32, align 4
  %423 = call <2 x float> @b2TransformPoint(<2 x float> %419, <2 x float> %421, <2 x float> %422)
  store <2 x float> %423, ptr %41, align 4
  br label %424

424:                                              ; preds = %382
  %425 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 0
  %426 = load float, ptr %425, align 4, !tbaa !16
  %427 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %428 = load float, ptr %427, align 4, !tbaa !16
  %429 = fsub float %426, %428
  %430 = fcmp olt float %429, 0xBEB4000000000000
  br i1 %430, label %438, label %431

431:                                              ; preds = %424
  %432 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 0
  %433 = load float, ptr %432, align 4, !tbaa !16
  %434 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %435 = load float, ptr %434, align 4, !tbaa !16
  %436 = fsub float %433, %435
  %437 = fcmp olt float 0x3EB4000000000000, %436
  br i1 %437, label %438, label %440

438:                                              ; preds = %431, %424
  %439 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef 0x3EB4000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 118, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

440:                                              ; preds = %431
  br label %441

441:                                              ; preds = %440
  br label %442

442:                                              ; preds = %441
  br label %443

443:                                              ; preds = %442
  %444 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 1
  %445 = load float, ptr %444, align 4, !tbaa !18
  %446 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %447 = load float, ptr %446, align 4, !tbaa !18
  %448 = fsub float %445, %447
  %449 = fcmp olt float %448, 0xBEB4000000000000
  br i1 %449, label %457, label %450

450:                                              ; preds = %443
  %451 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 1
  %452 = load float, ptr %451, align 4, !tbaa !18
  %453 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %454 = load float, ptr %453, align 4, !tbaa !18
  %455 = fsub float %452, %454
  %456 = fcmp olt float 0x3EB4000000000000, %455
  br i1 %456, label %457, label %459

457:                                              ; preds = %450, %443
  %458 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef 0x3EB4000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

459:                                              ; preds = %450
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %462 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %463 = load <2 x float>, ptr %462, align 4
  %464 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %465 = load <2 x float>, ptr %464, align 4
  %466 = load <2 x float>, ptr %32, align 4
  %467 = call <2 x float> @b2TransformPoint(<2 x float> %463, <2 x float> %465, <2 x float> %466)
  store <2 x float> %467, ptr %42, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %468 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %469 = load <2 x float>, ptr %468, align 4
  %470 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %471 = load <2 x float>, ptr %470, align 4
  %472 = load <2 x float>, ptr %33, align 4
  %473 = call <2 x float> @b2InvTransformPoint(<2 x float> %469, <2 x float> %471, <2 x float> %472)
  store <2 x float> %473, ptr %43, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  br label %474

474:                                              ; preds = %461
  %475 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %476 = load float, ptr %475, align 4, !tbaa !16
  %477 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 0
  %478 = load float, ptr %477, align 4, !tbaa !16
  %479 = fsub float %476, %478
  %480 = fcmp olt float %479, 0xBEB0000000000000
  br i1 %480, label %488, label %481

481:                                              ; preds = %474
  %482 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 0
  %483 = load float, ptr %482, align 4, !tbaa !16
  %484 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 0
  %485 = load float, ptr %484, align 4, !tbaa !16
  %486 = fsub float %483, %485
  %487 = fcmp olt float 0x3EB0000000000000, %486
  br i1 %487, label %488, label %490

488:                                              ; preds = %481, %474
  %489 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef 0x3EB0000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 124, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

490:                                              ; preds = %481
  br label %491

491:                                              ; preds = %490
  br label %492

492:                                              ; preds = %491
  br label %493

493:                                              ; preds = %492
  %494 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %495 = load float, ptr %494, align 4, !tbaa !18
  %496 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 1
  %497 = load float, ptr %496, align 4, !tbaa !18
  %498 = fsub float %495, %497
  %499 = fcmp olt float %498, 0xBEB0000000000000
  br i1 %499, label %507, label %500

500:                                              ; preds = %493
  %501 = getelementptr inbounds %struct.b2Vec2, ptr %33, i32 0, i32 1
  %502 = load float, ptr %501, align 4, !tbaa !18
  %503 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 1
  %504 = load float, ptr %503, align 4, !tbaa !18
  %505 = fsub float %502, %504
  %506 = fcmp olt float 0x3EB0000000000000, %505
  br i1 %506, label %507, label %509

507:                                              ; preds = %500, %493
  %508 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef 0x3EB0000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 125, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

509:                                              ; preds = %500
  br label %510

510:                                              ; preds = %509
  br label %511

511:                                              ; preds = %510
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %512 = getelementptr inbounds %struct.b2Vec2, ptr %45, i32 0, i32 0
  store float 0x3FC99999A0000000, ptr %512, align 4, !tbaa !16
  %513 = getelementptr inbounds %struct.b2Vec2, ptr %45, i32 0, i32 1
  store float -5.000000e-01, ptr %513, align 4, !tbaa !18
  %514 = load <2 x float>, ptr %45, align 4
  %515 = call <2 x float> @b2Normalize(<2 x float> %514)
  store <2 x float> %515, ptr %44, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  store float -1.000000e+00, ptr %46, align 4, !tbaa !5
  br label %516

516:                                              ; preds = %587, %511
  %517 = load float, ptr %46, align 4, !tbaa !5
  %518 = fcmp ole float %517, 1.000000e+00
  br i1 %518, label %520, label %519

519:                                              ; preds = %516
  store i32 57, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %590

520:                                              ; preds = %516
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store float -1.000000e+00, ptr %47, align 4, !tbaa !5
  br label %521

521:                                              ; preds = %583, %520
  %522 = load float, ptr %47, align 4, !tbaa !5
  %523 = fcmp ole float %522, 1.000000e+00
  br i1 %523, label %525, label %524

524:                                              ; preds = %521
  store i32 60, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %586

525:                                              ; preds = %521
  %526 = load float, ptr %47, align 4, !tbaa !5
  %527 = fcmp oeq float %526, 0.000000e+00
  br i1 %527, label %528, label %532

528:                                              ; preds = %525
  %529 = load float, ptr %46, align 4, !tbaa !5
  %530 = fcmp oeq float %529, 0.000000e+00
  br i1 %530, label %531, label %532

531:                                              ; preds = %528
  br label %583

532:                                              ; preds = %528, %525
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  %533 = getelementptr inbounds %struct.b2Vec2, ptr %49, i32 0, i32 0
  %534 = load float, ptr %47, align 4, !tbaa !5
  store float %534, ptr %533, align 4, !tbaa !16
  %535 = getelementptr inbounds %struct.b2Vec2, ptr %49, i32 0, i32 1
  %536 = load float, ptr %46, align 4, !tbaa !5
  store float %536, ptr %535, align 4, !tbaa !18
  %537 = load <2 x float>, ptr %49, align 4
  %538 = call <2 x float> @b2Normalize(<2 x float> %537)
  store <2 x float> %538, ptr %48, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  %539 = load <2 x float>, ptr %33, align 4
  %540 = load <2 x float>, ptr %41, align 4
  %541 = call <2 x float> @b2ComputeRotationBetweenUnitVectors(<2 x float> %539, <2 x float> %540)
  store <2 x float> %541, ptr %50, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  %542 = load <2 x float>, ptr %50, align 4
  %543 = load <2 x float>, ptr %33, align 4
  %544 = call <2 x float> @b2RotateVector(<2 x float> %542, <2 x float> %543)
  store <2 x float> %544, ptr %51, align 4
  br label %545

545:                                              ; preds = %532
  %546 = getelementptr inbounds %struct.b2Vec2, ptr %51, i32 0, i32 0
  %547 = load float, ptr %546, align 4, !tbaa !16
  %548 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 0
  %549 = load float, ptr %548, align 4, !tbaa !16
  %550 = fsub float %547, %549
  %551 = fcmp olt float %550, 0xBEA0000000000000
  br i1 %551, label %559, label %552

552:                                              ; preds = %545
  %553 = getelementptr inbounds %struct.b2Vec2, ptr %51, i32 0, i32 0
  %554 = load float, ptr %553, align 4, !tbaa !16
  %555 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 0
  %556 = load float, ptr %555, align 4, !tbaa !16
  %557 = fsub float %554, %556
  %558 = fcmp olt float 0x3EA0000000000000, %557
  br i1 %558, label %559, label %561

559:                                              ; preds = %552, %545
  %560 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef 0x3EA0000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 142, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

561:                                              ; preds = %552
  br label %562

562:                                              ; preds = %561
  br label %563

563:                                              ; preds = %562
  br label %564

564:                                              ; preds = %563
  %565 = getelementptr inbounds %struct.b2Vec2, ptr %51, i32 0, i32 1
  %566 = load float, ptr %565, align 4, !tbaa !18
  %567 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 1
  %568 = load float, ptr %567, align 4, !tbaa !18
  %569 = fsub float %566, %568
  %570 = fcmp olt float %569, 0xBEA0000000000000
  br i1 %570, label %578, label %571

571:                                              ; preds = %564
  %572 = getelementptr inbounds %struct.b2Vec2, ptr %51, i32 0, i32 1
  %573 = load float, ptr %572, align 4, !tbaa !18
  %574 = getelementptr inbounds %struct.b2Vec2, ptr %41, i32 0, i32 1
  %575 = load float, ptr %574, align 4, !tbaa !18
  %576 = fsub float %573, %575
  %577 = fcmp olt float 0x3EA0000000000000, %576
  br i1 %577, label %578, label %580

578:                                              ; preds = %571, %564
  %579 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef 0x3EA0000000000000)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 143, ptr noundef @__PRETTY_FUNCTION__.MathTest) #10
  unreachable

580:                                              ; preds = %571
  br label %581

581:                                              ; preds = %580
  br label %582

582:                                              ; preds = %581
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %583

583:                                              ; preds = %582, %531
  %584 = load float, ptr %47, align 4, !tbaa !5
  %585 = fadd float %584, 0x3F847AE140000000
  store float %585, ptr %47, align 4, !tbaa !5
  br label %521, !llvm.loop !20

586:                                              ; preds = %524
  br label %587

587:                                              ; preds = %586
  %588 = load float, ptr %46, align 4, !tbaa !5
  %589 = fadd float %588, 0x3F847AE140000000
  store float %589, ptr %46, align 4, !tbaa !5
  br label %516, !llvm.loop !21

590:                                              ; preds = %519
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  ret i32 0
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MakeRot(float noundef) #2

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

; Function Attrs: nounwind
declare float @sinf(float noundef) #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2UnwindLargeAngle(float noundef) #6

declare float @b2Atan2(float noundef, float noundef) #4

declare zeroext i1 @b2IsValidFloat(float noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2AbsFloat(float noundef) #6

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

; Function Attrs: nounwind
declare float @atan2f(float noundef, float noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; 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) #8

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Add(<2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden { <2 x float>, <2 x float> } @b2MulTransforms(<2 x float>, <2 x float>, <2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2TransformPoint(<2 x float>, <2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvTransformPoint(<2 x float>, <2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) #2

declare <2 x float> @b2ComputeRotationBetweenUnitVectors(<2 x float>, <2 x float>) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RotateVector(<2 x float>, <2 x float>) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 = { "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 = { 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 #6 = { inlinehint 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { 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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"b2Rot", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !6, i64 0}
!17 = !{!"b2Vec2", !6, i64 0, !6, i64 4}
!18 = !{!17, !6, i64 4}
!19 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}


; 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 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [66 x i8], align 1
@__PRETTY_FUNCTION__.MathTest = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@__const.MathTest.one = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@__const.MathTest.two = external hidden unnamed_addr constant %struct.b2Vec2, align 4
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @MathTest() local_unnamed_addr #0 {
  br label %1

1:                                                ; preds = %0, %29
  %.0204 = phi float [ -1.000000e+01, %0 ], [ %30, %29 ]
  %2 = fmul float %.0204, 0x400921FB60000000
  %3 = tail call <2 x float> @b2MakeRot(float noundef %2)
  %4 = tail call float @cosf(float noundef %2) #8
  %5 = tail call float @sinf(float noundef %2) #8
  %.sroa.0160.0.vec.extract = extractelement <2 x float> %3, i64 0
  %6 = fsub float %.sroa.0160.0.vec.extract, %4
  %7 = tail call float @llvm.fabs.f32(float %6)
  %or.cond192 = fcmp ogt float %7, 0x3F60624DE0000000
  br i1 %or.cond192, label %8, label %10

8:                                                ; preds = %1
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef 0x3F60624DE0000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 25, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

10:                                               ; preds = %1
  %.sroa.0160.4.vec.extract = extractelement <2 x float> %3, i64 1
  %11 = fsub float %.sroa.0160.4.vec.extract, %5
  %12 = tail call float @llvm.fabs.f32(float %11)
  %or.cond193 = fcmp ogt float %12, 0x3F60624DE0000000
  br i1 %or.cond193, label %13, label %15

13:                                               ; preds = %10
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef 0x3F60624DE0000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 26, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

15:                                               ; preds = %10
  %16 = tail call float @b2UnwindLargeAngle(float noundef %2)
  %17 = tail call float @b2Atan2(float noundef %5, float noundef %4) #8
  %18 = tail call zeroext i1 @b2IsValidFloat(float noundef %17) #8
  br i1 %18, label %21, label %19

19:                                               ; preds = %15
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 30, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

21:                                               ; preds = %15
  %22 = fsub float %17, %16
  %23 = tail call float @b2AbsFloat(float noundef %22)
  %24 = fcmp ogt float %23, 0x400921FB60000000
  %25 = fadd float %23, 0xC01921FB60000000
  %.0172 = select i1 %24, float %25, float %23
  %26 = tail call float @llvm.fabs.f32(float %.0172)
  %or.cond = fcmp ogt float %26, 0x3F04F8B580000000
  br i1 %or.cond, label %27, label %29

27:                                               ; preds = %21
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

29:                                               ; preds = %21
  %30 = fadd float %.0204, 0x3F847AE140000000
  %31 = fcmp olt float %30, 1.000000e+01
  br i1 %31, label %1, label %.preheader200, !llvm.loop !5

.preheader200:                                    ; preds = %29, %37
  %.0173206 = phi float [ %38, %37 ], [ -1.000000e+00, %29 ]
  br label %40

32:                                               ; preds = %37
  %33 = tail call float @b2Atan2(float noundef 1.000000e+00, float noundef 0.000000e+00) #8
  %34 = fadd float %33, 0xBFF921FB60000000
  %35 = tail call float @b2AbsFloat(float noundef %34)
  %36 = tail call zeroext i1 @b2IsValidFloat(float noundef %33) #8
  br i1 %36, label %57, label %55

37:                                               ; preds = %52
  %38 = fadd float %.0173206, 0x3F847AE140000000
  %39 = fcmp ugt float %38, 1.000000e+00
  br i1 %39, label %32, label %.preheader200, !llvm.loop !7

40:                                               ; preds = %.preheader200, %52
  %.0176205 = phi float [ -1.000000e+00, %.preheader200 ], [ %53, %52 ]
  %41 = tail call float @b2Atan2(float noundef %.0173206, float noundef %.0176205) #8
  %42 = tail call float @atan2f(float noundef %.0173206, float noundef %.0176205) #8
  %43 = fsub float %41, %42
  %44 = tail call float @b2AbsFloat(float noundef %43)
  %45 = tail call zeroext i1 @b2IsValidFloat(float noundef %41) #8
  br i1 %45, label %48, label %46

46:                                               ; preds = %40
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 51, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

48:                                               ; preds = %40
  %49 = tail call float @llvm.fabs.f32(float %44)
  %or.cond3 = fcmp ogt float %49, 0x3F04F8B580000000
  br i1 %or.cond3, label %50, label %52

50:                                               ; preds = %48
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 52, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

52:                                               ; preds = %48
  %53 = fadd float %.0176205, 0x3F847AE140000000
  %54 = fcmp ugt float %53, 1.000000e+00
  br i1 %54, label %37, label %40, !llvm.loop !8

55:                                               ; preds = %32
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

57:                                               ; preds = %32
  %58 = tail call float @llvm.fabs.f32(float %35)
  %or.cond5 = fcmp ogt float %58, 0x3F04F8B580000000
  br i1 %or.cond5, label %59, label %61

59:                                               ; preds = %57
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 61, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

61:                                               ; preds = %57
  %62 = tail call float @b2Atan2(float noundef -1.000000e+00, float noundef 0.000000e+00) #8
  %63 = fadd float %62, 0x3FF921FB60000000
  %64 = tail call float @b2AbsFloat(float noundef %63)
  %65 = tail call zeroext i1 @b2IsValidFloat(float noundef %62) #8
  br i1 %65, label %68, label %66

66:                                               ; preds = %61
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 68, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

68:                                               ; preds = %61
  %69 = tail call float @llvm.fabs.f32(float %64)
  %or.cond7 = fcmp ogt float %69, 0x3F04F8B580000000
  br i1 %or.cond7, label %70, label %72

70:                                               ; preds = %68
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 69, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

72:                                               ; preds = %68
  %73 = tail call float @b2Atan2(float noundef 0.000000e+00, float noundef 1.000000e+00) #8
  %74 = tail call float @b2AbsFloat(float noundef %73)
  %75 = tail call zeroext i1 @b2IsValidFloat(float noundef %73) #8
  br i1 %75, label %78, label %76

76:                                               ; preds = %72
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

78:                                               ; preds = %72
  %79 = tail call float @llvm.fabs.f32(float %74)
  %or.cond9 = fcmp ogt float %79, 0x3F04F8B580000000
  br i1 %or.cond9, label %80, label %82

80:                                               ; preds = %78
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 77, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

82:                                               ; preds = %78
  %83 = tail call float @b2Atan2(float noundef 0.000000e+00, float noundef -1.000000e+00) #8
  %84 = fadd float %83, 0xC00921FB60000000
  %85 = tail call float @b2AbsFloat(float noundef %84)
  %86 = tail call zeroext i1 @b2IsValidFloat(float noundef %83) #8
  br i1 %86, label %89, label %87

87:                                               ; preds = %82
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 84, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

89:                                               ; preds = %82
  %90 = tail call float @llvm.fabs.f32(float %85)
  %or.cond11 = fcmp ogt float %90, 0x3F04F8B580000000
  br i1 %or.cond11, label %91, label %93

91:                                               ; preds = %89
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 85, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

93:                                               ; preds = %89
  %94 = tail call float @b2Atan2(float noundef 0.000000e+00, float noundef 0.000000e+00) #8
  %95 = tail call float @atan2f(float noundef 0.000000e+00, float noundef 0.000000e+00) #8
  %96 = fsub float %94, %95
  %97 = tail call float @b2AbsFloat(float noundef %96)
  %98 = tail call zeroext i1 @b2IsValidFloat(float noundef %94) #8
  br i1 %98, label %101, label %99

99:                                               ; preds = %93
  %100 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 92, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

101:                                              ; preds = %93
  %102 = tail call float @llvm.fabs.f32(float %97)
  %or.cond13 = fcmp ogt float %102, 0x3F04F8B580000000
  br i1 %or.cond13, label %103, label %105

103:                                              ; preds = %101
  %104 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef 0x3F04F8B580000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 93, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

105:                                              ; preds = %101
  %.sroa.0107.0.copyload = load <2 x float>, ptr @__const.MathTest.one, align 4
  %.sroa.095.0.copyload = load <2 x float>, ptr @__const.MathTest.two, align 4
  %106 = tail call <2 x float> @b2Add(<2 x float> %.sroa.0107.0.copyload, <2 x float> %.sroa.095.0.copyload)
  %.sroa.067.0.vec.extract = extractelement <2 x float> %106, i64 0
  %107 = fcmp une float %.sroa.067.0.vec.extract, 3.000000e+00
  %.sroa.067.4.vec.extract = extractelement <2 x float> %106, i64 1
  %108 = fcmp une float %.sroa.067.4.vec.extract, 3.000000e+00
  %.not187 = select i1 %107, i1 true, i1 %108
  br i1 %.not187, label %109, label %111

109:                                              ; preds = %105
  %110 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 101, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

111:                                              ; preds = %105
  %112 = tail call <2 x float> @b2Sub(<2 x float> zeroinitializer, <2 x float> %.sroa.095.0.copyload)
  %.sroa.067.0.vec.extract72 = extractelement <2 x float> %112, i64 0
  %113 = fcmp une float %.sroa.067.0.vec.extract72, -2.000000e+00
  %.sroa.067.4.vec.extract84 = extractelement <2 x float> %112, i64 1
  %114 = fcmp une float %.sroa.067.4.vec.extract84, -2.000000e+00
  %.not189 = select i1 %113, i1 true, i1 %114
  br i1 %.not189, label %115, label %117

115:                                              ; preds = %111
  %116 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 104, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

117:                                              ; preds = %111
  %118 = tail call <2 x float> @b2Add(<2 x float> %.sroa.095.0.copyload, <2 x float> %.sroa.095.0.copyload)
  %.sroa.067.0.vec.extract74 = extractelement <2 x float> %118, i64 0
  %119 = fcmp oeq float %.sroa.067.0.vec.extract74, 5.000000e+00
  %.sroa.067.4.vec.extract86 = extractelement <2 x float> %118, i64 1
  %120 = fcmp oeq float %.sroa.067.4.vec.extract86, 5.000000e+00
  %.not191 = select i1 %119, i1 true, i1 %120
  br i1 %.not191, label %121, label %123

121:                                              ; preds = %117
  %122 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 107, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

123:                                              ; preds = %117
  %124 = tail call <2 x float> @b2MakeRot(float noundef 1.000000e+00)
  %125 = tail call <2 x float> @b2MakeRot(float noundef -2.000000e+00)
  %126 = tail call { <2 x float>, <2 x float> } @b2MulTransforms(<2 x float> <float 1.000000e+00, float 0.000000e+00>, <2 x float> %125, <2 x float> <float -2.000000e+00, float 3.000000e+00>, <2 x float> %124)
  %127 = extractvalue { <2 x float>, <2 x float> } %126, 0
  %128 = extractvalue { <2 x float>, <2 x float> } %126, 1
  %129 = tail call <2 x float> @b2TransformPoint(<2 x float> <float -2.000000e+00, float 3.000000e+00>, <2 x float> %124, <2 x float> %.sroa.095.0.copyload)
  %130 = tail call <2 x float> @b2TransformPoint(<2 x float> <float 1.000000e+00, float 0.000000e+00>, <2 x float> %125, <2 x float> %129)
  %131 = tail call <2 x float> @b2TransformPoint(<2 x float> %127, <2 x float> %128, <2 x float> %.sroa.095.0.copyload)
  %132 = fsub <2 x float> %131, %130
  %133 = extractelement <2 x float> %132, i64 0
  %134 = tail call float @llvm.fabs.f32(float %133)
  %or.cond194 = fcmp ogt float %134, 0x3EB4000000000000
  br i1 %or.cond194, label %135, label %137

135:                                              ; preds = %123
  %136 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef 0x3EB4000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 118, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

137:                                              ; preds = %123
  %138 = fsub <2 x float> %131, %130
  %139 = extractelement <2 x float> %138, i64 1
  %140 = tail call float @llvm.fabs.f32(float %139)
  %or.cond195 = fcmp ogt float %140, 0x3EB4000000000000
  br i1 %or.cond195, label %141, label %143

141:                                              ; preds = %137
  %142 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef 0x3EB4000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 119, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

143:                                              ; preds = %137
  %144 = tail call <2 x float> @b2TransformPoint(<2 x float> <float -2.000000e+00, float 3.000000e+00>, <2 x float> %124, <2 x float> %.sroa.095.0.copyload)
  %145 = tail call <2 x float> @b2InvTransformPoint(<2 x float> <float -2.000000e+00, float 3.000000e+00>, <2 x float> %124, <2 x float> %144)
  %146 = fsub <2 x float> %145, %.sroa.095.0.copyload
  %147 = extractelement <2 x float> %146, i64 0
  %148 = tail call float @llvm.fabs.f32(float %147)
  %or.cond196 = fcmp ogt float %148, 0x3EB0000000000000
  br i1 %or.cond196, label %149, label %151

149:                                              ; preds = %143
  %150 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef 0x3EB0000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 124, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

151:                                              ; preds = %143
  %152 = fsub <2 x float> %145, %.sroa.095.0.copyload
  %153 = extractelement <2 x float> %152, i64 1
  %154 = tail call float @llvm.fabs.f32(float %153)
  %or.cond197 = fcmp ogt float %154, 0x3EB0000000000000
  br i1 %or.cond197, label %155, label %157

155:                                              ; preds = %151
  %156 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef 0x3EB0000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 125, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

157:                                              ; preds = %151
  %158 = tail call <2 x float> @b2Normalize(<2 x float> <float 0x3FC99999A0000000, float -5.000000e-01>)
  br label %.preheader

.preheader:                                       ; preds = %157, %.split212.us
  %.0175213 = phi float [ -1.000000e+00, %157 ], [ %174, %.split212.us ]
  %159 = fcmp oeq float %.0175213, 0.000000e+00
  br i1 %159, label %.preheader.split, label %.preheader.split.us

.preheader.split.us:                              ; preds = %.preheader, %170
  %.0174207.us = phi float [ %171, %170 ], [ -1.000000e+00, %.preheader ]
  %.sroa.021.0.vec.insert.us = insertelement <2 x float> poison, float %.0174207.us, i64 0
  %.sroa.021.4.vec.insert.us = insertelement <2 x float> %.sroa.021.0.vec.insert.us, float %.0175213, i64 1
  %160 = tail call <2 x float> @b2Normalize(<2 x float> %.sroa.021.4.vec.insert.us)
  %161 = tail call <2 x float> @b2ComputeRotationBetweenUnitVectors(<2 x float> %158, <2 x float> %160) #8
  %162 = tail call <2 x float> @b2RotateVector(<2 x float> %161, <2 x float> %158)
  %163 = fsub <2 x float> %162, %160
  %164 = extractelement <2 x float> %163, i64 0
  %165 = tail call float @llvm.fabs.f32(float %164)
  %or.cond198.us = fcmp ogt float %165, 0x3EA0000000000000
  br i1 %or.cond198.us, label %.split.us, label %166

166:                                              ; preds = %.preheader.split.us
  %167 = fsub <2 x float> %162, %160
  %168 = extractelement <2 x float> %167, i64 1
  %169 = tail call float @llvm.fabs.f32(float %168)
  %or.cond199.us = fcmp ogt float %169, 0x3EA0000000000000
  br i1 %or.cond199.us, label %.split210.us, label %170

170:                                              ; preds = %166
  %171 = fadd float %.0174207.us, 0x3F847AE140000000
  %172 = fcmp ugt float %171, 1.000000e+00
  br i1 %172, label %.split212.us, label %.preheader.split.us, !llvm.loop !9

173:                                              ; preds = %.split212.us
  ret i32 0

.split212.us:                                     ; preds = %170, %190
  %174 = fadd float %.0175213, 0x3F847AE140000000
  %175 = fcmp ugt float %174, 1.000000e+00
  br i1 %175, label %173, label %.preheader, !llvm.loop !10

.preheader.split:                                 ; preds = %.preheader, %190
  %.0174207 = phi float [ %191, %190 ], [ -1.000000e+00, %.preheader ]
  %176 = fcmp oeq float %.0174207, 0.000000e+00
  br i1 %176, label %190, label %177

177:                                              ; preds = %.preheader.split
  %.sroa.021.0.vec.insert = insertelement <2 x float> poison, float %.0174207, i64 0
  %.sroa.021.4.vec.insert = insertelement <2 x float> %.sroa.021.0.vec.insert, float %.0175213, i64 1
  %178 = tail call <2 x float> @b2Normalize(<2 x float> %.sroa.021.4.vec.insert)
  %179 = tail call <2 x float> @b2ComputeRotationBetweenUnitVectors(<2 x float> %158, <2 x float> %178) #8
  %180 = tail call <2 x float> @b2RotateVector(<2 x float> %179, <2 x float> %158)
  %181 = fsub <2 x float> %180, %178
  %182 = extractelement <2 x float> %181, i64 0
  %183 = tail call float @llvm.fabs.f32(float %182)
  %or.cond198 = fcmp ogt float %183, 0x3EA0000000000000
  br i1 %or.cond198, label %.split.us, label %185

.split.us:                                        ; preds = %.preheader.split.us, %177
  %184 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef 0x3EA0000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 142, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

185:                                              ; preds = %177
  %186 = fsub <2 x float> %180, %178
  %187 = extractelement <2 x float> %186, i64 1
  %188 = tail call float @llvm.fabs.f32(float %187)
  %or.cond199 = fcmp ogt float %188, 0x3EA0000000000000
  br i1 %or.cond199, label %.split210.us, label %190

.split210.us:                                     ; preds = %166, %185
  %189 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef 0x3EA0000000000000)
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 143, ptr noundef nonnull @__PRETTY_FUNCTION__.MathTest) #9
  unreachable

190:                                              ; preds = %185, %.preheader.split
  %191 = fadd float %.0174207, 0x3F847AE140000000
  %192 = fcmp ugt float %191, 1.000000e+00
  br i1 %192, label %.split212.us, label %.preheader.split, !llvm.loop !9
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MakeRot(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @cosf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2UnwindLargeAngle(float noundef) local_unnamed_addr #5

declare float @b2Atan2(float noundef, float noundef) local_unnamed_addr #6

declare zeroext i1 @b2IsValidFloat(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2AbsFloat(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @atan2f(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Add(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden { <2 x float>, <2 x float> } @b2MulTransforms(<2 x float>, <2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2TransformPoint(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2InvTransformPoint(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) local_unnamed_addr #1

declare <2 x float> @b2ComputeRotationBetweenUnitVectors(<2 x float>, <2 x float>) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RotateVector(<2 x float>, <2 x float>) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { inlinehint 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 #2 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #4 = { 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 #5 = { inlinehint 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 = { "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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass