; LLVM IR from erincatto/box2d-lite :: src/Joint.ll (ZN5Joint7PreStepEf)

; 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.Mat22 = type { %struct.Vec2, %struct.Vec2 }
%struct.Vec2 = type { float, float }
%struct.Joint = type { %struct.Mat22, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, ptr, ptr, float, float }
%struct.Body = type { %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, float, float, float, float }

@_ZN5World18positionCorrectionE = external global i8, align 1
@_ZN5World12warmStartingE = 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: mustprogress uwtable
declare dso_local void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #1 align 2

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

; 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: 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) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88) %0, float noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca %struct.Mat22, align 4
  %6 = alloca %struct.Mat22, align 4
  %7 = alloca %struct.Vec2, align 4
  %8 = alloca %struct.Vec2, align 4
  %9 = alloca %struct.Mat22, align 4
  %10 = alloca %struct.Mat22, align 4
  %11 = alloca %struct.Mat22, align 4
  %12 = alloca %struct.Mat22, align 4
  %13 = alloca %struct.Mat22, align 4
  %14 = alloca %struct.Mat22, align 4
  %15 = alloca %struct.Vec2, align 4
  %16 = alloca %struct.Vec2, 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  %22 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct.Body, ptr %23, i32 0, i32 1
  %25 = load float, ptr %24, align 4, !tbaa !15
  call void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %25)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %26 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds %struct.Body, ptr %27, i32 0, i32 1
  %29 = load float, ptr %28, align 4, !tbaa !15
  call void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %30 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 1
  %31 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %31, ptr %7, align 4
  %32 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %33 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 2
  %34 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store <2 x float> %34, ptr %8, align 4
  %35 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %36 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.Body, ptr %37, i32 0, i32 9
  %39 = load float, ptr %38, align 4, !tbaa !19
  %40 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds %struct.Body, ptr %41, i32 0, i32 9
  %43 = load float, ptr %42, align 4, !tbaa !19
  %44 = fadd float %39, %43
  %45 = getelementptr inbounds %struct.Mat22, ptr %9, i32 0, i32 0
  %46 = getelementptr inbounds %struct.Vec2, ptr %45, i32 0, i32 0
  store float %44, ptr %46, align 4, !tbaa !20
  %47 = getelementptr inbounds %struct.Mat22, ptr %9, i32 0, i32 1
  %48 = getelementptr inbounds %struct.Vec2, ptr %47, i32 0, i32 0
  store float 0.000000e+00, ptr %48, align 4, !tbaa !21
  %49 = getelementptr inbounds %struct.Mat22, ptr %9, i32 0, i32 0
  %50 = getelementptr inbounds %struct.Vec2, ptr %49, i32 0, i32 1
  store float 0.000000e+00, ptr %50, align 4, !tbaa !22
  %51 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.Body, ptr %52, i32 0, i32 9
  %54 = load float, ptr %53, align 4, !tbaa !19
  %55 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = getelementptr inbounds %struct.Body, ptr %56, i32 0, i32 9
  %58 = load float, ptr %57, align 4, !tbaa !19
  %59 = fadd float %54, %58
  %60 = getelementptr inbounds %struct.Mat22, ptr %9, i32 0, i32 1
  %61 = getelementptr inbounds %struct.Vec2, ptr %60, i32 0, i32 1
  store float %59, ptr %61, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10)
  %62 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.Body, ptr %63, i32 0, i32 11
  %65 = load float, ptr %64, align 4, !tbaa !24
  %66 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %67 = getelementptr inbounds %struct.Vec2, ptr %66, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !25
  %69 = fmul float %65, %68
  %70 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %71 = getelementptr inbounds %struct.Vec2, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !25
  %73 = fmul float %69, %72
  %74 = getelementptr inbounds %struct.Mat22, ptr %10, i32 0, i32 0
  %75 = getelementptr inbounds %struct.Vec2, ptr %74, i32 0, i32 0
  store float %73, ptr %75, align 4, !tbaa !20
  %76 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.Body, ptr %77, i32 0, i32 11
  %79 = load float, ptr %78, align 4, !tbaa !24
  %80 = fneg float %79
  %81 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %82 = getelementptr inbounds %struct.Vec2, ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 8, !tbaa !26
  %84 = fmul float %80, %83
  %85 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %86 = getelementptr inbounds %struct.Vec2, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !25
  %88 = fmul float %84, %87
  %89 = getelementptr inbounds %struct.Mat22, ptr %10, i32 0, i32 1
  %90 = getelementptr inbounds %struct.Vec2, ptr %89, i32 0, i32 0
  store float %88, ptr %90, align 4, !tbaa !21
  %91 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.Body, ptr %92, i32 0, i32 11
  %94 = load float, ptr %93, align 4, !tbaa !24
  %95 = fneg float %94
  %96 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %97 = getelementptr inbounds %struct.Vec2, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 8, !tbaa !26
  %99 = fmul float %95, %98
  %100 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %101 = getelementptr inbounds %struct.Vec2, ptr %100, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !25
  %103 = fmul float %99, %102
  %104 = getelementptr inbounds %struct.Mat22, ptr %10, i32 0, i32 0
  %105 = getelementptr inbounds %struct.Vec2, ptr %104, i32 0, i32 1
  store float %103, ptr %105, align 4, !tbaa !22
  %106 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.Body, ptr %107, i32 0, i32 11
  %109 = load float, ptr %108, align 4, !tbaa !24
  %110 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %111 = getelementptr inbounds %struct.Vec2, ptr %110, i32 0, i32 0
  %112 = load float, ptr %111, align 8, !tbaa !26
  %113 = fmul float %109, %112
  %114 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %115 = getelementptr inbounds %struct.Vec2, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 8, !tbaa !26
  %117 = fmul float %113, %116
  %118 = getelementptr inbounds %struct.Mat22, ptr %10, i32 0, i32 1
  %119 = getelementptr inbounds %struct.Vec2, ptr %118, i32 0, i32 1
  store float %117, ptr %119, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11)
  %120 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %121 = load ptr, ptr %120, align 8, !tbaa !17
  %122 = getelementptr inbounds %struct.Body, ptr %121, i32 0, i32 11
  %123 = load float, ptr %122, align 4, !tbaa !24
  %124 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %125 = getelementptr inbounds %struct.Vec2, ptr %124, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !27
  %127 = fmul float %123, %126
  %128 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %129 = getelementptr inbounds %struct.Vec2, ptr %128, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !27
  %131 = fmul float %127, %130
  %132 = getelementptr inbounds %struct.Mat22, ptr %11, i32 0, i32 0
  %133 = getelementptr inbounds %struct.Vec2, ptr %132, i32 0, i32 0
  store float %131, ptr %133, align 4, !tbaa !20
  %134 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %135 = load ptr, ptr %134, align 8, !tbaa !17
  %136 = getelementptr inbounds %struct.Body, ptr %135, i32 0, i32 11
  %137 = load float, ptr %136, align 4, !tbaa !24
  %138 = fneg float %137
  %139 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %140 = getelementptr inbounds %struct.Vec2, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 8, !tbaa !28
  %142 = fmul float %138, %141
  %143 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %144 = getelementptr inbounds %struct.Vec2, ptr %143, i32 0, i32 1
  %145 = load float, ptr %144, align 4, !tbaa !27
  %146 = fmul float %142, %145
  %147 = getelementptr inbounds %struct.Mat22, ptr %11, i32 0, i32 1
  %148 = getelementptr inbounds %struct.Vec2, ptr %147, i32 0, i32 0
  store float %146, ptr %148, align 4, !tbaa !21
  %149 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %150 = load ptr, ptr %149, align 8, !tbaa !17
  %151 = getelementptr inbounds %struct.Body, ptr %150, i32 0, i32 11
  %152 = load float, ptr %151, align 4, !tbaa !24
  %153 = fneg float %152
  %154 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %155 = getelementptr inbounds %struct.Vec2, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 8, !tbaa !28
  %157 = fmul float %153, %156
  %158 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %159 = getelementptr inbounds %struct.Vec2, ptr %158, i32 0, i32 1
  %160 = load float, ptr %159, align 4, !tbaa !27
  %161 = fmul float %157, %160
  %162 = getelementptr inbounds %struct.Mat22, ptr %11, i32 0, i32 0
  %163 = getelementptr inbounds %struct.Vec2, ptr %162, i32 0, i32 1
  store float %161, ptr %163, align 4, !tbaa !22
  %164 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %165 = load ptr, ptr %164, align 8, !tbaa !17
  %166 = getelementptr inbounds %struct.Body, ptr %165, i32 0, i32 11
  %167 = load float, ptr %166, align 4, !tbaa !24
  %168 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %169 = getelementptr inbounds %struct.Vec2, ptr %168, i32 0, i32 0
  %170 = load float, ptr %169, align 8, !tbaa !28
  %171 = fmul float %167, %170
  %172 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %173 = getelementptr inbounds %struct.Vec2, ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 8, !tbaa !28
  %175 = fmul float %171, %174
  %176 = getelementptr inbounds %struct.Mat22, ptr %11, i32 0, i32 1
  %177 = getelementptr inbounds %struct.Vec2, ptr %176, i32 0, i32 1
  store float %175, ptr %177, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %178 = call { <2 x float>, <2 x float> } @_ZplRK5Mat22S1_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10)
  %179 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 0
  %180 = extractvalue { <2 x float>, <2 x float> } %178, 0
  store <2 x float> %180, ptr %179, align 4
  %181 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 1
  %182 = extractvalue { <2 x float>, <2 x float> } %178, 1
  store <2 x float> %182, ptr %181, align 4
  %183 = call { <2 x float>, <2 x float> } @_ZplRK5Mat22S1_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %184 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 0
  %185 = extractvalue { <2 x float>, <2 x float> } %183, 0
  store <2 x float> %185, ptr %184, align 4
  %186 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 1
  %187 = extractvalue { <2 x float>, <2 x float> } %183, 1
  store <2 x float> %187, ptr %186, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %188 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 10
  %189 = load float, ptr %188, align 4, !tbaa !29
  %190 = getelementptr inbounds %struct.Mat22, ptr %12, i32 0, i32 0
  %191 = getelementptr inbounds %struct.Vec2, ptr %190, i32 0, i32 0
  %192 = load float, ptr %191, align 4, !tbaa !20
  %193 = fadd float %192, %189
  store float %193, ptr %191, align 4, !tbaa !20
  %194 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 10
  %195 = load float, ptr %194, align 4, !tbaa !29
  %196 = getelementptr inbounds %struct.Mat22, ptr %12, i32 0, i32 1
  %197 = getelementptr inbounds %struct.Vec2, ptr %196, i32 0, i32 1
  %198 = load float, ptr %197, align 4, !tbaa !23
  %199 = fadd float %198, %195
  store float %199, ptr %197, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %200 = call { <2 x float>, <2 x float> } @_ZNK5Mat226InvertEv(ptr noundef nonnull align 4 dereferenceable(16) %12)
  %201 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %202 = extractvalue { <2 x float>, <2 x float> } %200, 0
  store <2 x float> %202, ptr %201, align 4
  %203 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %204 = extractvalue { <2 x float>, <2 x float> } %200, 1
  store <2 x float> %204, ptr %203, align 4
  %205 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %205, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %206 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = getelementptr inbounds %struct.Body, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %210 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %208, ptr noundef nonnull align 4 dereferenceable(8) %209)
  store <2 x float> %210, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %211 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %212 = load ptr, ptr %211, align 8, !tbaa !17
  %213 = getelementptr inbounds %struct.Body, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %215 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %213, ptr noundef nonnull align 4 dereferenceable(8) %214)
  store <2 x float> %215, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %216 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %216, ptr %17, align 4
  %217 = load i8, ptr @_ZN5World18positionCorrectionE, align 1, !tbaa !31, !range !33, !noundef !34
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %227

219:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %220 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 9
  %221 = load float, ptr %220, align 8, !tbaa !35
  %222 = fneg float %221
  %223 = load float, ptr %4, align 4, !tbaa !9
  %224 = fmul float %222, %223
  %225 = call <2 x float> @_ZmlfRK4Vec2(float noundef %224, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %225, ptr %18, align 4
  %226 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %226, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %229

227:                                              ; preds = %2
  %228 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 5
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %228, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %229

229:                                              ; preds = %227, %219
  %230 = load i8, ptr @_ZN5World12warmStartingE, align 1, !tbaa !31, !range !33, !noundef !34
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %276

232:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %233 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = getelementptr inbounds %struct.Body, ptr %234, i32 0, i32 9
  %236 = load float, ptr %235, align 4, !tbaa !19
  %237 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 6
  %238 = call <2 x float> @_ZmlfRK4Vec2(float noundef %236, ptr noundef nonnull align 4 dereferenceable(8) %237)
  store <2 x float> %238, ptr %19, align 4
  %239 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = getelementptr inbounds %struct.Body, ptr %240, i32 0, i32 2
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %241, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %242 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %243 = load ptr, ptr %242, align 8, !tbaa !11
  %244 = getelementptr inbounds %struct.Body, ptr %243, i32 0, i32 11
  %245 = load float, ptr %244, align 4, !tbaa !24
  %246 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 3
  %247 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 6
  %248 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %246, ptr noundef nonnull align 4 dereferenceable(8) %247)
  %249 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 7
  %250 = load ptr, ptr %249, align 8, !tbaa !11
  %251 = getelementptr inbounds %struct.Body, ptr %250, i32 0, i32 3
  %252 = load float, ptr %251, align 4, !tbaa !36
  %253 = fneg float %245
  %254 = call float @llvm.fmuladd.f32(float %253, float %248, float %252)
  store float %254, ptr %251, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %255 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %256 = load ptr, ptr %255, align 8, !tbaa !17
  %257 = getelementptr inbounds %struct.Body, ptr %256, i32 0, i32 9
  %258 = load float, ptr %257, align 4, !tbaa !19
  %259 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 6
  %260 = call <2 x float> @_ZmlfRK4Vec2(float noundef %258, ptr noundef nonnull align 4 dereferenceable(8) %259)
  store <2 x float> %260, ptr %20, align 4
  %261 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %262 = load ptr, ptr %261, align 8, !tbaa !17
  %263 = getelementptr inbounds %struct.Body, ptr %262, i32 0, i32 2
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %263, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %264 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = getelementptr inbounds %struct.Body, ptr %265, i32 0, i32 11
  %267 = load float, ptr %266, align 4, !tbaa !24
  %268 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 4
  %269 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 6
  %270 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %268, ptr noundef nonnull align 4 dereferenceable(8) %269)
  %271 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 8
  %272 = load ptr, ptr %271, align 8, !tbaa !17
  %273 = getelementptr inbounds %struct.Body, ptr %272, i32 0, i32 3
  %274 = load float, ptr %273, align 4, !tbaa !36
  %275 = call float @llvm.fmuladd.f32(float %267, float %270, float %274)
  store float %275, ptr %273, align 4, !tbaa !36
  br label %278

276:                                              ; preds = %229
  %277 = getelementptr inbounds %struct.Joint, ptr %21, i32 0, i32 6
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %277, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %278

278:                                              ; preds = %276, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK5Mat226InvertEv(ptr noundef nonnull align 4 dereferenceable(16)) #1 align 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)) #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)) #6

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

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

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

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

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


; 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.Mat22 = type { %struct.Vec2, %struct.Vec2 }
%struct.Vec2 = type { float, float }

@_ZN5World18positionCorrectionE = external local_unnamed_addr global i8, align 1
@_ZN5World12warmStartingE = 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 uwtable
declare dso_local void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #1 align 2

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

; 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 #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Joint7PreStepEf(ptr noundef nonnull align 8 dereferenceable(88) %0, float noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %struct.Mat22, align 4
  %4 = alloca %struct.Mat22, align 4
  %5 = alloca %struct.Mat22, align 4
  %6 = alloca %struct.Mat22, align 16
  %7 = alloca %struct.Mat22, align 16
  %8 = alloca %struct.Mat22, align 8
  %9 = alloca %struct.Mat22, 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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load float, ptr %17, align 4, !tbaa !13
  call void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %18)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !13
  call void @_ZN5Mat22C2Ef(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  store <2 x float> %24, ptr %25, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %27 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x float> %27, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5)
  %29 = load ptr, ptr %15, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 52
  %31 = load float, ptr %30, align 4, !tbaa !16
  %32 = load ptr, ptr %19, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 52
  %34 = load float, ptr %33, align 4, !tbaa !16
  %35 = fadd float %31, %34
  store float %35, ptr %5, align 4, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %5, i64 4
  store <2 x float> zeroinitializer, ptr %36, align 4, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %5, i64 12
  store float %35, ptr %37, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 60
  %40 = load float, ptr %39, align 4, !tbaa !20
  %41 = fneg float %40
  %42 = load <2 x float>, ptr %25, align 8, !tbaa !18
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 0>
  %44 = insertelement <4 x float> poison, float %40, i64 0
  %45 = insertelement <4 x float> %44, float %41, i64 1
  %46 = shufflevector <4 x float> %45, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 0>
  %47 = shufflevector <2 x float> %42, <2 x float> poison, <4 x i32> <i32 1, i32 0, i32 0, i32 0>
  %48 = fmul <4 x float> %46, %47
  %49 = fmul <4 x float> %43, %48
  store <4 x float> %49, ptr %6, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %50 = load ptr, ptr %19, align 8, !tbaa !15
  %51 = getelementptr inbounds i8, ptr %50, i64 60
  %52 = load float, ptr %51, align 4, !tbaa !20
  %53 = fneg float %52
  %54 = load <2 x float>, ptr %28, align 8, !tbaa !18
  %55 = shufflevector <2 x float> %54, <2 x float> poison, <4 x i32> <i32 1, i32 1, i32 1, i32 0>
  %56 = insertelement <4 x float> poison, float %52, i64 0
  %57 = insertelement <4 x float> %56, float %53, i64 1
  %58 = shufflevector <4 x float> %57, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 0>
  %59 = shufflevector <2 x float> %54, <2 x float> poison, <4 x i32> <i32 1, i32 0, i32 0, i32 0>
  %60 = fmul <4 x float> %58, %59
  %61 = fmul <4 x float> %55, %60
  store <4 x float> %61, ptr %7, align 16, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %62 = call { <2 x float>, <2 x float> } @_ZplRK5Mat22S1_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %63 = extractvalue { <2 x float>, <2 x float> } %62, 0
  store <2 x float> %63, ptr %9, align 8
  %64 = getelementptr inbounds i8, ptr %9, i64 8
  %65 = extractvalue { <2 x float>, <2 x float> } %62, 1
  store <2 x float> %65, ptr %64, align 8
  %66 = call { <2 x float>, <2 x float> } @_ZplRK5Mat22S1_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %7)
  %67 = extractvalue { <2 x float>, <2 x float> } %66, 0
  store <2 x float> %67, ptr %8, align 8
  %68 = getelementptr inbounds i8, ptr %8, i64 8
  %69 = extractvalue { <2 x float>, <2 x float> } %66, 1
  store <2 x float> %69, ptr %68, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %70 = getelementptr inbounds i8, ptr %0, i64 84
  %71 = load float, ptr %70, align 4, !tbaa !21
  %72 = extractelement <2 x float> %67, i64 0
  %73 = fadd float %71, %72
  store float %73, ptr %8, align 8, !tbaa !17
  %74 = getelementptr inbounds i8, ptr %8, i64 12
  %75 = extractelement <2 x float> %69, i64 1
  %76 = fadd float %71, %75
  store float %76, ptr %74, align 4, !tbaa !19
  %77 = call { <2 x float>, <2 x float> } @_ZNK5Mat226InvertEv(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %78 = extractvalue { <2 x float>, <2 x float> } %77, 0
  %79 = extractvalue { <2 x float>, <2 x float> } %77, 1
  store <2 x float> %78, ptr %0, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  store <2 x float> %79, ptr %.sroa.4.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store <2 x float> %81, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %82 = load ptr, ptr %19, align 8, !tbaa !15
  %83 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %83, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %84 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %84, ptr %12, align 8
  %85 = load i8, ptr @_ZN5World18positionCorrectionE, align 1, !tbaa !22, !range !24, !noundef !25
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %94

87:                                               ; preds = %2
  %88 = getelementptr inbounds i8, ptr %0, i64 80
  %89 = load float, ptr %88, align 8, !tbaa !26
  %90 = fneg float %89
  %91 = fmul float %90, %1
  %92 = call <2 x float> @_ZmlfRK4Vec2(float noundef %91, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %93 = getelementptr inbounds i8, ptr %0, i64 48
  store <2 x float> %92, ptr %93, align 8
  br label %96

94:                                               ; preds = %2
  %95 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %95, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %96

96:                                               ; preds = %94, %87
  %97 = load i8, ptr @_ZN5World12warmStartingE, align 1, !tbaa !22, !range !24, !noundef !25
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %99, label %130

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 52
  %102 = load float, ptr %101, align 4, !tbaa !16
  %103 = getelementptr inbounds i8, ptr %0, i64 56
  %104 = call <2 x float> @_ZmlfRK4Vec2(float noundef %102, ptr noundef nonnull align 4 dereferenceable(8) %103)
  store <2 x float> %104, ptr %13, align 8
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 12
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 60
  %109 = load float, ptr %108, align 4, !tbaa !20
  %110 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %103)
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 20
  %113 = load float, ptr %112, align 4, !tbaa !27
  %114 = fneg float %109
  %115 = call float @llvm.fmuladd.f32(float %114, float %110, float %113)
  store float %115, ptr %112, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %116 = load ptr, ptr %19, align 8, !tbaa !15
  %117 = getelementptr inbounds i8, ptr %116, i64 52
  %118 = load float, ptr %117, align 4, !tbaa !16
  %119 = call <2 x float> @_ZmlfRK4Vec2(float noundef %118, ptr noundef nonnull align 4 dereferenceable(8) %103)
  store <2 x float> %119, ptr %14, align 8
  %120 = load ptr, ptr %19, align 8, !tbaa !15
  %121 = getelementptr inbounds i8, ptr %120, i64 12
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %121, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %122 = load ptr, ptr %19, align 8, !tbaa !15
  %123 = getelementptr inbounds i8, ptr %122, i64 60
  %124 = load float, ptr %123, align 4, !tbaa !20
  %125 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %103)
  %126 = load ptr, ptr %19, align 8, !tbaa !15
  %127 = getelementptr inbounds i8, ptr %126, i64 20
  %128 = load float, ptr %127, align 4, !tbaa !27
  %129 = call float @llvm.fmuladd.f32(float %124, float %125, float %128)
  store float %129, ptr %127, align 4, !tbaa !27
  br label %132

130:                                              ; preds = %96
  %131 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZN4Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %131, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %132

132:                                              ; preds = %130, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZplRK5Mat22S1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK5Mat226InvertEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 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)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #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)) local_unnamed_addr #3 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 #5

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

; 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 #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !12, i64 64}
!6 = !{!"_ZTS5Joint", !7, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !12, i64 64, !12, i64 72, !9, i64 80, !9, i64 84}
!7 = !{!"_ZTS5Mat22", !8, i64 0, !8, i64 8}
!8 = !{!"_ZTS4Vec2", !9, i64 0, !9, i64 4}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !9, i64 8}
!14 = !{!"_ZTS4Body", !8, i64 0, !9, i64 8, !8, i64 12, !9, i64 20, !8, i64 24, !9, i64 32, !8, i64 36, !9, i64 44, !9, i64 48, !9, i64 52, !9, i64 56, !9, i64 60}
!15 = !{!6, !12, i64 72}
!16 = !{!14, !9, i64 52}
!17 = !{!7, !9, i64 0}
!18 = !{!9, !9, i64 0}
!19 = !{!7, !9, i64 12}
!20 = !{!14, !9, i64 60}
!21 = !{!6, !9, i64 84}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !10, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !9, i64 80}
!27 = !{!14, !9, i64 20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass