; LLVM IR from erincatto/box2d-lite :: src/Arbiter.ll (ZN7Arbiter12ApplyImpulseEv)

; 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.Vec2 = type { float, float }
%struct.Arbiter = type <{ [2 x %struct.Contact], i32, [4 x i8], ptr, ptr, float, [4 x i8] }>
%struct.Contact = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, %union.FeaturePair }
%union.FeaturePair = type { i32 }
%struct.Body = type { %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, float, float, float, float }

@_ZN5World18accumulateImpulsesE = external global i8, align 1

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

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

; Function Attrs: 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) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossRK4Vec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156) %0) #6 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.Vec2, align 4
  %8 = alloca %struct.Vec2, align 4
  %9 = alloca %struct.Vec2, align 4
  %10 = alloca %struct.Vec2, align 4
  %11 = alloca %struct.Vec2, align 4
  %12 = alloca %struct.Vec2, align 4
  %13 = alloca %struct.Vec2, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.Vec2, align 4
  %18 = alloca %struct.Vec2, align 4
  %19 = alloca %struct.Vec2, align 4
  %20 = alloca %struct.Vec2, align 4
  %21 = alloca %struct.Vec2, align 4
  %22 = alloca %struct.Vec2, align 4
  %23 = alloca %struct.Vec2, align 4
  %24 = alloca %struct.Vec2, align 4
  %25 = alloca %struct.Vec2, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %struct.Vec2, align 4
  %32 = alloca %struct.Vec2, align 4
  %33 = alloca %struct.Vec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %35 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %36, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %37 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  store ptr %38, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %39

39:                                               ; preds = %256, %1
  %40 = load i32, ptr %5, align 4, !tbaa !14
  %41 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !15
  %43 = icmp slt i32 %40, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %259

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %46 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 0
  %47 = getelementptr inbounds [2 x %struct.Contact], ptr %46, i64 0, i64 0
  %48 = load i32, ptr %5, align 4, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.Contact, ptr %47, i64 %49
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Contact, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Body, ptr %53, i32 0, i32 0
  %55 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %54)
  store <2 x float> %55, ptr %7, align 4
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Contact, ptr %56, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Contact, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.Body, ptr %60, i32 0, i32 0
  %62 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %61)
  store <2 x float> %62, ptr %8, align 4
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Contact, ptr %63, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.Body, ptr %65, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Body, ptr %67, i32 0, i32 3
  %69 = load float, ptr %68, align 4, !tbaa !18
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Contact, ptr %70, i32 0, i32 3
  %72 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %69, ptr noundef nonnull align 4 dereferenceable(8) %71)
  store <2 x float> %72, ptr %12, align 4
  %73 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %73, ptr %11, align 4
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Body, ptr %74, i32 0, i32 2
  %76 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %75)
  store <2 x float> %76, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Body, ptr %77, i32 0, i32 3
  %79 = load float, ptr %78, align 4, !tbaa !18
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Contact, ptr %80, i32 0, i32 2
  %82 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %79, ptr noundef nonnull align 4 dereferenceable(8) %81)
  store <2 x float> %82, ptr %13, align 4
  %83 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %83, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Contact, ptr %84, i32 0, i32 1
  %86 = call noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %85)
  store float %86, ptr %14, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Contact, ptr %87, i32 0, i32 8
  %89 = load float, ptr %88, align 4, !tbaa !21
  %90 = load float, ptr %14, align 4, !tbaa !17
  %91 = fneg float %90
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Contact, ptr %92, i32 0, i32 10
  %94 = load float, ptr %93, align 4, !tbaa !23
  %95 = fadd float %91, %94
  %96 = fmul float %89, %95
  store float %96, ptr %15, align 4, !tbaa !17
  %97 = load i8, ptr @_ZN5World18accumulateImpulsesE, align 1, !tbaa !24, !range !26, !noundef !27
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %114

99:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Contact, ptr %100, i32 0, i32 5
  %102 = load float, ptr %101, align 4, !tbaa !28
  store float %102, ptr %16, align 4, !tbaa !17
  %103 = load float, ptr %16, align 4, !tbaa !17
  %104 = load float, ptr %15, align 4, !tbaa !17
  %105 = fadd float %103, %104
  %106 = call noundef float @_Z3Maxff(float noundef %105, float noundef 0.000000e+00)
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Contact, ptr %107, i32 0, i32 5
  store float %106, ptr %108, align 4, !tbaa !28
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Contact, ptr %109, i32 0, i32 5
  %111 = load float, ptr %110, align 4, !tbaa !28
  %112 = load float, ptr %16, align 4, !tbaa !17
  %113 = fsub float %111, %112
  store float %113, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %117

114:                                              ; preds = %45
  %115 = load float, ptr %15, align 4, !tbaa !17
  %116 = call noundef float @_Z3Maxff(float noundef %115, float noundef 0.000000e+00)
  store float %116, ptr %15, align 4, !tbaa !17
  br label %117

117:                                              ; preds = %114, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %118 = load float, ptr %15, align 4, !tbaa !17
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.Contact, ptr %119, i32 0, i32 1
  %121 = call <2 x float> @_ZmlfRK4Vec2(float noundef %118, ptr noundef nonnull align 4 dereferenceable(8) %120)
  store <2 x float> %121, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Body, ptr %122, i32 0, i32 9
  %124 = load float, ptr %123, align 4, !tbaa !29
  %125 = call <2 x float> @_ZmlfRK4Vec2(float noundef %124, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %125, ptr %18, align 4
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Body, ptr %126, i32 0, i32 2
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %127, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Body, ptr %128, i32 0, i32 11
  %130 = load float, ptr %129, align 4, !tbaa !30
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.Contact, ptr %131, i32 0, i32 2
  %133 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %132, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.Body, ptr %134, i32 0, i32 3
  %136 = load float, ptr %135, align 4, !tbaa !18
  %137 = fneg float %130
  %138 = call float @llvm.fmuladd.f32(float %137, float %133, float %136)
  store float %138, ptr %135, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Body, ptr %139, i32 0, i32 9
  %141 = load float, ptr %140, align 4, !tbaa !29
  %142 = call <2 x float> @_ZmlfRK4Vec2(float noundef %141, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %142, ptr %19, align 4
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.Body, ptr %143, i32 0, i32 2
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %144, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Body, ptr %145, i32 0, i32 11
  %147 = load float, ptr %146, align 4, !tbaa !30
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.Contact, ptr %148, i32 0, i32 3
  %150 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %149, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.Body, ptr %151, i32 0, i32 3
  %153 = load float, ptr %152, align 4, !tbaa !18
  %154 = call float @llvm.fmuladd.f32(float %147, float %150, float %153)
  store float %154, ptr %152, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.Body, ptr %155, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.Body, ptr %157, i32 0, i32 3
  %159 = load float, ptr %158, align 4, !tbaa !18
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.Contact, ptr %160, i32 0, i32 3
  %162 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %159, ptr noundef nonnull align 4 dereferenceable(8) %161)
  store <2 x float> %162, ptr %23, align 4
  %163 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %156, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %163, ptr %22, align 4
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.Body, ptr %164, i32 0, i32 2
  %166 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %165)
  store <2 x float> %166, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.Body, ptr %167, i32 0, i32 3
  %169 = load float, ptr %168, align 4, !tbaa !18
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.Contact, ptr %170, i32 0, i32 2
  %172 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %169, ptr noundef nonnull align 4 dereferenceable(8) %171)
  store <2 x float> %172, ptr %24, align 4
  %173 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %173, ptr %20, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.Contact, ptr %174, i32 0, i32 1
  %176 = call <2 x float> @_Z5CrossRK4Vec2f(ptr noundef nonnull align 4 dereferenceable(8) %175, float noundef 1.000000e+00)
  store <2 x float> %176, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %177 = call noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store float %177, ptr %26, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.Contact, ptr %178, i32 0, i32 9
  %180 = load float, ptr %179, align 4, !tbaa !31
  %181 = load float, ptr %26, align 4, !tbaa !17
  %182 = fneg float %181
  %183 = fmul float %180, %182
  store float %183, ptr %27, align 4, !tbaa !17
  %184 = load i8, ptr @_ZN5World18accumulateImpulsesE, align 1, !tbaa !24, !range !26, !noundef !27
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %210

186:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %187 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 5
  %188 = load float, ptr %187, align 8, !tbaa !32
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.Contact, ptr %189, i32 0, i32 5
  %191 = load float, ptr %190, align 4, !tbaa !28
  %192 = fmul float %188, %191
  store float %192, ptr %28, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.Contact, ptr %193, i32 0, i32 6
  %195 = load float, ptr %194, align 4, !tbaa !33
  store float %195, ptr %29, align 4, !tbaa !17
  %196 = load float, ptr %29, align 4, !tbaa !17
  %197 = load float, ptr %27, align 4, !tbaa !17
  %198 = fadd float %196, %197
  %199 = load float, ptr %28, align 4, !tbaa !17
  %200 = fneg float %199
  %201 = load float, ptr %28, align 4, !tbaa !17
  %202 = call noundef float @_Z5Clampfff(float noundef %198, float noundef %200, float noundef %201)
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.Contact, ptr %203, i32 0, i32 6
  store float %202, ptr %204, align 4, !tbaa !33
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.Contact, ptr %205, i32 0, i32 6
  %207 = load float, ptr %206, align 4, !tbaa !33
  %208 = load float, ptr %29, align 4, !tbaa !17
  %209 = fsub float %207, %208
  store float %209, ptr %27, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %220

210:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %211 = getelementptr inbounds %struct.Arbiter, ptr %34, i32 0, i32 5
  %212 = load float, ptr %211, align 8, !tbaa !32
  %213 = load float, ptr %15, align 4, !tbaa !17
  %214 = fmul float %212, %213
  store float %214, ptr %30, align 4, !tbaa !17
  %215 = load float, ptr %27, align 4, !tbaa !17
  %216 = load float, ptr %30, align 4, !tbaa !17
  %217 = fneg float %216
  %218 = load float, ptr %30, align 4, !tbaa !17
  %219 = call noundef float @_Z5Clampfff(float noundef %215, float noundef %217, float noundef %218)
  store float %219, ptr %27, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %220

220:                                              ; preds = %210, %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %221 = load float, ptr %27, align 4, !tbaa !17
  %222 = call <2 x float> @_ZmlfRK4Vec2(float noundef %221, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %222, ptr %31, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.Body, ptr %223, i32 0, i32 9
  %225 = load float, ptr %224, align 4, !tbaa !29
  %226 = call <2 x float> @_ZmlfRK4Vec2(float noundef %225, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %226, ptr %32, align 4
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.Body, ptr %227, i32 0, i32 2
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %228, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.Body, ptr %229, i32 0, i32 11
  %231 = load float, ptr %230, align 4, !tbaa !30
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.Contact, ptr %232, i32 0, i32 2
  %234 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.Body, ptr %235, i32 0, i32 3
  %237 = load float, ptr %236, align 4, !tbaa !18
  %238 = fneg float %231
  %239 = call float @llvm.fmuladd.f32(float %238, float %234, float %237)
  store float %239, ptr %236, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.Body, ptr %240, i32 0, i32 9
  %242 = load float, ptr %241, align 4, !tbaa !29
  %243 = call <2 x float> @_ZmlfRK4Vec2(float noundef %242, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %243, ptr %33, align 4
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.Body, ptr %244, i32 0, i32 2
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %245, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.Body, ptr %246, i32 0, i32 11
  %248 = load float, ptr %247, align 4, !tbaa !30
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.Contact, ptr %249, i32 0, i32 3
  %251 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %250, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.Body, ptr %252, i32 0, i32 3
  %254 = load float, ptr %253, align 4, !tbaa !18
  %255 = call float @llvm.fmuladd.f32(float %248, float %251, float %254)
  store float %255, ptr %253, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %256

256:                                              ; preds = %220
  %257 = load i32, ptr %5, align 4, !tbaa !14
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %5, align 4, !tbaa !14
  br label %39, !llvm.loop !34

259:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3Maxff(float noundef, float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5Clampfff(float noundef, float noundef, float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress 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 = { mustprogress 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 #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 136}
!10 = !{!"_ZTS7Arbiter", !7, i64 0, !11, i64 128, !6, i64 136, !6, i64 144, !12, i64 152}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !6, i64 144}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 128}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !12, i64 20}
!19 = !{!"_ZTS4Body", !20, i64 0, !12, i64 8, !20, i64 12, !12, i64 20, !20, i64 24, !12, i64 32, !20, i64 36, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60}
!20 = !{!"_ZTS4Vec2", !12, i64 0, !12, i64 4}
!21 = !{!22, !12, i64 48}
!22 = !{!"_ZTS7Contact", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !7, i64 60}
!23 = !{!22, !12, i64 56}
!24 = !{!25, !25, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!22, !12, i64 36}
!29 = !{!19, !12, i64 52}
!30 = !{!19, !12, i64 60}
!31 = !{!22, !12, i64 52}
!32 = !{!10, !12, i64 152}
!33 = !{!22, !12, i64 40}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Vec2 = type { float, float }
%struct.Contact = type { %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, float, float, float, float, float, float, float, %union.FeaturePair }
%union.FeaturePair = type { i32 }

@_ZN5World18accumulateImpulsesE = external local_unnamed_addr global 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossRK4Vec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Arbiter12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(156) %0) local_unnamed_addr #5 align 2 {
  %2 = alloca %struct.Vec2, align 8
  %3 = alloca %struct.Vec2, align 8
  %4 = alloca %struct.Vec2, align 8
  %5 = alloca %struct.Vec2, align 8
  %6 = alloca %struct.Vec2, align 8
  %7 = alloca %struct.Vec2, align 8
  %8 = alloca %struct.Vec2, align 8
  %9 = alloca %struct.Vec2, align 8
  %10 = alloca %struct.Vec2, align 8
  %11 = alloca %struct.Vec2, align 8
  %12 = alloca %struct.Vec2, align 8
  %13 = alloca %struct.Vec2, align 8
  %14 = alloca %struct.Vec2, align 8
  %15 = alloca %struct.Vec2, align 8
  %16 = alloca %struct.Vec2, align 8
  %17 = alloca %struct.Vec2, align 8
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %25 = getelementptr inbounds i8, ptr %21, i64 12
  %26 = getelementptr inbounds i8, ptr %21, i64 20
  %27 = getelementptr inbounds i8, ptr %19, i64 12
  %28 = getelementptr inbounds i8, ptr %19, i64 20
  %29 = getelementptr inbounds i8, ptr %19, i64 52
  %30 = getelementptr inbounds i8, ptr %19, i64 60
  %31 = getelementptr inbounds i8, ptr %21, i64 52
  %32 = getelementptr inbounds i8, ptr %21, i64 60
  %33 = getelementptr inbounds i8, ptr %0, i64 152
  br label %34

._crit_edge:                                      ; preds = %109, %1
  ret void

34:                                               ; preds = %.lr.ph, %109
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %109 ]
  %35 = getelementptr inbounds %struct.Contact, ptr %0, i64 %indvars.iv
  %36 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %37 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x float> %36, ptr %37, align 8
  %38 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %21)
  %39 = getelementptr inbounds i8, ptr %35, i64 24
  store <2 x float> %38, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %40 = load float, ptr %26, align 4, !tbaa !14
  %41 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %40, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %41, ptr %5, align 8
  %42 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %42, ptr %4, align 8
  %43 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %43, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %44 = load float, ptr %28, align 4, !tbaa !14
  %45 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %44, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %45, ptr %6, align 8
  %46 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %46, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %47 = getelementptr inbounds i8, ptr %35, i64 8
  %48 = call noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %47)
  %49 = getelementptr inbounds i8, ptr %35, i64 48
  %50 = load float, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds i8, ptr %35, i64 56
  %52 = load float, ptr %51, align 8, !tbaa !19
  %53 = fsub float %52, %48
  %54 = fmul float %50, %53
  %55 = load i8, ptr @_ZN5World18accumulateImpulsesE, align 1, !tbaa !20, !range !22, !noundef !23
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %63

57:                                               ; preds = %34
  %58 = getelementptr inbounds i8, ptr %35, i64 36
  %59 = load float, ptr %58, align 4, !tbaa !24
  %60 = fadd float %54, %59
  %61 = call noundef float @_Z3Maxff(float noundef %60, float noundef 0.000000e+00)
  store float %61, ptr %58, align 4, !tbaa !24
  %62 = fsub float %61, %59
  br label %65

63:                                               ; preds = %34
  %64 = call noundef float @_Z3Maxff(float noundef %54, float noundef 0.000000e+00)
  br label %65

65:                                               ; preds = %63, %57
  %.073 = phi float [ %62, %57 ], [ %64, %63 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %66 = call <2 x float> @_ZmlfRK4Vec2(float noundef %.073, ptr noundef nonnull align 4 dereferenceable(8) %47)
  store <2 x float> %66, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %67 = load float, ptr %29, align 4, !tbaa !25
  %68 = call <2 x float> @_ZmlfRK4Vec2(float noundef %67, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %68, ptr %8, align 8
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %69 = load float, ptr %30, align 4, !tbaa !26
  %70 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %71 = load float, ptr %28, align 4, !tbaa !14
  %72 = fneg float %69
  %73 = call float @llvm.fmuladd.f32(float %72, float %70, float %71)
  store float %73, ptr %28, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %74 = load float, ptr %31, align 4, !tbaa !25
  %75 = call <2 x float> @_ZmlfRK4Vec2(float noundef %74, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %75, ptr %9, align 8
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %76 = load float, ptr %32, align 4, !tbaa !26
  %77 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %78 = load float, ptr %26, align 4, !tbaa !14
  %79 = call float @llvm.fmuladd.f32(float %76, float %77, float %78)
  store float %79, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %80 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %79, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %80, ptr %12, align 8
  %81 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %81, ptr %11, align 8
  %82 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %82, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %83 = load float, ptr %28, align 4, !tbaa !14
  %84 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %83, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %84, ptr %13, align 8
  %85 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %85, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %86 = call <2 x float> @_Z5CrossRK4Vec2f(ptr noundef nonnull align 4 dereferenceable(8) %47, float noundef 1.000000e+00)
  store <2 x float> %86, ptr %14, align 8
  %87 = call noundef float @_Z3DotRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %88 = getelementptr inbounds i8, ptr %35, i64 52
  %89 = load float, ptr %88, align 4, !tbaa !27
  %90 = fneg float %87
  %91 = fmul float %89, %90
  %92 = load i8, ptr @_ZN5World18accumulateImpulsesE, align 1, !tbaa !20, !range !22, !noundef !23
  %93 = trunc nuw i8 %92 to i1
  %94 = load float, ptr %33, align 8, !tbaa !28
  br i1 %93, label %95, label %105

95:                                               ; preds = %65
  %96 = getelementptr inbounds i8, ptr %35, i64 36
  %97 = load float, ptr %96, align 4, !tbaa !24
  %98 = fmul float %94, %97
  %99 = getelementptr inbounds i8, ptr %35, i64 40
  %100 = load float, ptr %99, align 8, !tbaa !29
  %101 = fadd float %91, %100
  %102 = fneg float %98
  %103 = call noundef float @_Z5Clampfff(float noundef %101, float noundef %102, float noundef %98)
  store float %103, ptr %99, align 8, !tbaa !29
  %104 = fsub float %103, %100
  br label %109

105:                                              ; preds = %65
  %106 = fmul float %.073, %94
  %107 = fneg float %106
  %108 = call noundef float @_Z5Clampfff(float noundef %91, float noundef %107, float noundef %106)
  br label %109

109:                                              ; preds = %105, %95
  %.074 = phi float [ %104, %95 ], [ %108, %105 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %110 = call <2 x float> @_ZmlfRK4Vec2(float noundef %.074, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %110, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %111 = load float, ptr %29, align 4, !tbaa !25
  %112 = call <2 x float> @_ZmlfRK4Vec2(float noundef %111, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %112, ptr %16, align 8
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %113 = load float, ptr %30, align 4, !tbaa !26
  %114 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %115 = load float, ptr %28, align 4, !tbaa !14
  %116 = fneg float %113
  %117 = call float @llvm.fmuladd.f32(float %116, float %114, float %115)
  store float %117, ptr %28, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %118 = load float, ptr %31, align 4, !tbaa !25
  %119 = call <2 x float> @_ZmlfRK4Vec2(float noundef %118, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %119, ptr %17, align 8
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %120 = load float, ptr %32, align 4, !tbaa !26
  %121 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %122 = load float, ptr %26, align 4, !tbaa !14
  %123 = call float @llvm.fmuladd.f32(float %120, float %121, float %122)
  store float %123, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %124 = load i32, ptr %22, align 8, !tbaa !13
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next, %125
  br i1 %126, label %34, label %._crit_edge, !llvm.loop !30
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3Maxff(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5Clampfff(float noundef, float noundef, float noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress 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 #5 = { mustprogress 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 136}
!6 = !{!"_ZTS7Arbiter", !7, i64 0, !9, i64 128, !10, i64 136, !10, i64 144, !11, i64 152}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!6, !10, i64 144}
!13 = !{!6, !9, i64 128}
!14 = !{!15, !11, i64 20}
!15 = !{!"_ZTS4Body", !16, i64 0, !11, i64 8, !16, i64 12, !11, i64 20, !16, i64 24, !11, i64 32, !16, i64 36, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60}
!16 = !{!"_ZTS4Vec2", !11, i64 0, !11, i64 4}
!17 = !{!18, !11, i64 48}
!18 = !{!"_ZTS7Contact", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 60}
!19 = !{!18, !11, i64 56}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!18, !11, i64 36}
!25 = !{!15, !11, i64 52}
!26 = !{!15, !11, i64 60}
!27 = !{!18, !11, i64 52}
!28 = !{!6, !11, i64 152}
!29 = !{!18, !11, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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