; LLVM IR from vokegpu/bicudo :: src/bicudo.ll (ZN6bicudo15update_positionEPNS_7runtimeEPNS_7physics9placementE)

; 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.bicudo::vec2" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }
%"struct.bicudo::physics::placement" = type { ptr, i64, i64, float, float, float, float, float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", float, float, float, %"class.std::vector.0", %"class.std::vector.0", i8, i8, %"struct.bicudo::vec2", float }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::runtime" = type { %"class.std::vector", %"struct.bicudo::physics::collision_info_t", i64, float, float, %"struct.bicudo::vec2", i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::physics::collision_info_t" = type <{ float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", i8, i8, [2 x i8] }>

@_ZN6bicudo2dtE = external global float, align 4

; 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

declare void @_ZN6bicudo15splash_verticesEPNS_4vec2ERS0_S2_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

declare void @_ZN6bicudo23splash_edges_normalizedEPNS_4vec2ES1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6bicudo15update_positionEPNS_7runtimeEPNS_7physics9placementE(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.bicudo::vec2", align 4
  %6 = alloca %"struct.bicudo::vec2", align 4
  %7 = alloca %"struct.bicudo::vec2", align 4
  %8 = alloca %"struct.bicudo::vec2", align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.bicudo::vec2", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5) #9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %14, i32 0, i32 21
  %16 = getelementptr inbounds %"struct.bicudo::vec2", ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %struct.anon, ptr %16, i32 0, i32 0
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %19, i32 0, i32 11
  %21 = getelementptr inbounds %"struct.bicudo::vec2", ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 0
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %18, float noundef %23)
  br i1 %24, label %25, label %37

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %26, i32 0, i32 21
  %28 = getelementptr inbounds %"struct.bicudo::vec2", ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %struct.anon, ptr %28, i32 0, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %31, i32 0, i32 11
  %33 = getelementptr inbounds %"struct.bicudo::vec2", ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %struct.anon, ptr %33, i32 0, i32 1
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %30, float noundef %35)
  br i1 %36, label %49, label %37

37:                                               ; preds = %25, %2
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %38, i32 0, i32 11
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %40, i32 0, i32 21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !10
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %42, i32 0, i32 17
  %44 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %45, i32 0, i32 10
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %47, i32 0, i32 11
  call void @_ZN6bicudo15splash_verticesEPNS_4vec2ERS0_S2_(ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(8) %48)
  br label %49

49:                                               ; preds = %37, %25
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %50, i32 0, i32 22
  %52 = load float, ptr %51, align 4, !tbaa !11
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %53, i32 0, i32 3
  %55 = load float, ptr %54, align 8, !tbaa !21
  %56 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %52, float noundef %55)
  br i1 %56, label %100, label %57

57:                                               ; preds = %49
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %58, i32 0, i32 3
  %60 = load float, ptr %59, align 8, !tbaa !21
  %61 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %60, float noundef 0.000000e+00)
  br i1 %61, label %62, label %67

62:                                               ; preds = %57
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %63, i32 0, i32 6
  store float 0.000000e+00, ptr %64, align 4, !tbaa !22
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %65, i32 0, i32 3
  store float 0.000000e+00, ptr %66, align 8, !tbaa !21
  br label %94

67:                                               ; preds = %57
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %68, i32 0, i32 3
  %70 = load float, ptr %69, align 8, !tbaa !21
  %71 = fdiv float 1.000000e+00, %70
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %72, i32 0, i32 3
  store float %71, ptr %73, align 8, !tbaa !21
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %74, i32 0, i32 3
  %76 = load float, ptr %75, align 8, !tbaa !21
  %77 = fdiv float 1.000000e+00, %76
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %78, i32 0, i32 11
  %80 = call noundef float @_ZN6bicudo4vec215magnitude_no_sqEv(ptr noundef nonnull align 4 dereferenceable(8) %79)
  %81 = fmul float %77, %80
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.bicudo::runtime", ptr %82, i32 0, i32 4
  %84 = load float, ptr %83, align 4, !tbaa !23
  %85 = fdiv float %81, %84
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %86, i32 0, i32 6
  store float %85, ptr %87, align 4, !tbaa !22
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %88, i32 0, i32 6
  %90 = load float, ptr %89, align 4, !tbaa !22
  %91 = fdiv float 1.000000e+00, %90
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %92, i32 0, i32 6
  store float %91, ptr %93, align 4, !tbaa !22
  br label %94

94:                                               ; preds = %67, %62
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %95, i32 0, i32 3
  %97 = load float, ptr %96, align 8, !tbaa !21
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %98, i32 0, i32 22
  store float %97, ptr %99, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %94, %49
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.bicudo::runtime", ptr %101, i32 0, i32 5
  %103 = getelementptr inbounds %"struct.bicudo::vec2", ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.anon, ptr %103, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %106, i32 0, i32 3
  %108 = load float, ptr %107, align 8, !tbaa !21
  %109 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %108, float noundef 0.000000e+00)
  %110 = xor i1 %109, true
  %111 = zext i1 %110 to i32
  %112 = sitofp i32 %111 to float
  %113 = fmul float %105, %112
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %114, i32 0, i32 19
  %116 = load i8, ptr %115, align 8, !tbaa !31, !range !32, !noundef !33
  %117 = trunc i8 %116 to i1
  %118 = xor i1 %117, true
  %119 = zext i1 %118 to i32
  %120 = sitofp i32 %119 to float
  %121 = fmul float %113, %120
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %122, i32 0, i32 13
  %124 = getelementptr inbounds %"struct.bicudo::vec2", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.anon, ptr %124, i32 0, i32 1
  store float %121, ptr %125, align 4, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %126, i32 0, i32 8
  %128 = getelementptr inbounds %"struct.bicudo::vec2", ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.anon, ptr %128, i32 0, i32 0
  store float 9.999900e+04, ptr %129, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %130, i32 0, i32 8
  %132 = getelementptr inbounds %"struct.bicudo::vec2", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %struct.anon, ptr %132, i32 0, i32 1
  store float 9.999900e+04, ptr %133, align 4, !tbaa !9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %134, i32 0, i32 9
  %136 = getelementptr inbounds %"struct.bicudo::vec2", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.anon, ptr %136, i32 0, i32 0
  store float -9.999900e+04, ptr %137, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %138, i32 0, i32 9
  %140 = getelementptr inbounds %"struct.bicudo::vec2", ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon, ptr %140, i32 0, i32 1
  store float -9.999900e+04, ptr %141, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %142, i32 0, i32 13
  %144 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !34
  %145 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %143, float noundef %144)
  %146 = getelementptr inbounds %"struct.bicudo::vec2", ptr %6, i32 0, i32 0
  %147 = getelementptr inbounds %union.anon, ptr %146, i32 0, i32 0
  store <2 x float> %145, ptr %147, align 4
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %148, i32 0, i32 12
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %149, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %150, i32 0, i32 12
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %152, i32 0, i32 10
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %153, ptr noundef nonnull align 4 dereferenceable(8) %151)
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %154, i32 0, i32 16
  %156 = load float, ptr %155, align 4, !tbaa !35
  %157 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !34
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %158, i32 0, i32 15
  %160 = load float, ptr %159, align 8, !tbaa !36
  %161 = call float @llvm.fmuladd.f32(float %156, float %157, float %160)
  store float %161, ptr %159, align 8, !tbaa !36
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %162, i32 0, i32 15
  %164 = load float, ptr %163, align 8, !tbaa !36
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %165, i32 0, i32 14
  %167 = load float, ptr %166, align 4, !tbaa !37
  %168 = fadd float %167, %164
  store float %168, ptr %166, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %169, i32 0, i32 10
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %171, i32 0, i32 11
  %173 = call <2 x float> @_ZN6bicudo4vec2dvEf(ptr noundef nonnull align 4 dereferenceable(8) %172, float noundef 2.000000e+00)
  %174 = getelementptr inbounds %"struct.bicudo::vec2", ptr %8, i32 0, i32 0
  %175 = getelementptr inbounds %union.anon, ptr %174, i32 0, i32 0
  store <2 x float> %173, ptr %175, align 4
  %176 = call <2 x float> @_ZN6bicudo4vec2plERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %170, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %177 = getelementptr inbounds %"struct.bicudo::vec2", ptr %7, i32 0, i32 0
  %178 = getelementptr inbounds %union.anon, ptr %177, i32 0, i32 0
  store <2 x float> %176, ptr %178, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %179, i32 0, i32 17
  store ptr %180, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = call ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #9
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %10, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = call ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #9
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %11, i32 0, i32 0
  store ptr %185, ptr %186, align 8
  br label %187

187:                                              ; preds = %255, %100
  %188 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %188, label %190, label %189

189:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %257

190:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %191 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  store ptr %191, ptr %12, align 8, !tbaa !5
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %192, i32 0, i32 12
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %194, ptr noundef nonnull align 4 dereferenceable(8) %193)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %196, i32 0, i32 15
  %198 = load float, ptr %197, align 8, !tbaa !36
  %199 = call <2 x float> @_ZN6bicudo4vec26rotateEfRKS0_(ptr noundef nonnull align 4 dereferenceable(8) %195, float noundef %198, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %200 = getelementptr inbounds %"struct.bicudo::vec2", ptr %13, i32 0, i32 0
  %201 = getelementptr inbounds %union.anon, ptr %200, i32 0, i32 0
  store <2 x float> %199, ptr %201, align 4
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %202, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %203, i32 0, i32 8
  %205 = getelementptr inbounds %"struct.bicudo::vec2", ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds %struct.anon, ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.bicudo::vec2", ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds %struct.anon, ptr %208, i32 0, i32 0
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %206, ptr noundef nonnull align 4 dereferenceable(4) %209)
  %211 = load float, ptr %210, align 4, !tbaa !34
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %212, i32 0, i32 8
  %214 = getelementptr inbounds %"struct.bicudo::vec2", ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds %struct.anon, ptr %214, i32 0, i32 0
  store float %211, ptr %215, align 4, !tbaa !9
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %216, i32 0, i32 8
  %218 = getelementptr inbounds %"struct.bicudo::vec2", ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds %struct.anon, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.bicudo::vec2", ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds %struct.anon, ptr %221, i32 0, i32 1
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %219, ptr noundef nonnull align 4 dereferenceable(4) %222)
  %224 = load float, ptr %223, align 4, !tbaa !34
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %225, i32 0, i32 8
  %227 = getelementptr inbounds %"struct.bicudo::vec2", ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds %struct.anon, ptr %227, i32 0, i32 1
  store float %224, ptr %228, align 4, !tbaa !9
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %229, i32 0, i32 9
  %231 = getelementptr inbounds %"struct.bicudo::vec2", ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds %struct.anon, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %12, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.bicudo::vec2", ptr %233, i32 0, i32 0
  %235 = getelementptr inbounds %struct.anon, ptr %234, i32 0, i32 0
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %232, ptr noundef nonnull align 4 dereferenceable(4) %235)
  %237 = load float, ptr %236, align 4, !tbaa !34
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %238, i32 0, i32 9
  %240 = getelementptr inbounds %"struct.bicudo::vec2", ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %struct.anon, ptr %240, i32 0, i32 0
  store float %237, ptr %241, align 4, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %242, i32 0, i32 9
  %244 = getelementptr inbounds %"struct.bicudo::vec2", ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %struct.anon, ptr %244, i32 0, i32 1
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.bicudo::vec2", ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %struct.anon, ptr %247, i32 0, i32 1
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %245, ptr noundef nonnull align 4 dereferenceable(4) %248)
  %250 = load float, ptr %249, align 4, !tbaa !34
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %251, i32 0, i32 9
  %253 = getelementptr inbounds %"struct.bicudo::vec2", ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds %struct.anon, ptr %253, i32 0, i32 1
  store float %250, ptr %254, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %255

255:                                              ; preds = %190
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %187

257:                                              ; preds = %189
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %258, i32 0, i32 18
  %260 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %259) #9
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %261, i32 0, i32 17
  %263 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %262) #9
  call void @_ZN6bicudo23splash_edges_normalizedEPNS_4vec2ES1_(ptr noundef %260, ptr noundef %263)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef, float noundef) #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) #6

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 8, !9}
!11 = !{!12, !14, i64 164}
!12 = !{!"_ZTSN6bicudo7physics9placementE", !6, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !15, i64 44, !15, i64 52, !15, i64 60, !15, i64 68, !15, i64 76, !15, i64 84, !14, i64 92, !14, i64 96, !14, i64 100, !16, i64 104, !16, i64 128, !20, i64 152, !20, i64 153, !15, i64 156, !14, i64 164}
!13 = !{!"long", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN6bicudo4vec2E", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN6bicudo4vec2ESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{!12, !14, i64 24}
!22 = !{!12, !14, i64 36}
!23 = !{!24, !14, i64 68}
!24 = !{!"_ZTSN6bicudo7runtimeE", !25, i64 0, !29, i64 24, !13, i64 56, !14, i64 64, !14, i64 68, !15, i64 72, !30, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!25 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !14, i64 0, !15, i64 4, !15, i64 12, !15, i64 20, !20, i64 28, !20, i64 29}
!30 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !7, i64 0}
!31 = !{!12, !20, i64 152}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!14, !14, i64 0}
!35 = !{!12, !14, i64 100}
!36 = !{!12, !14, i64 96}
!37 = !{!12, !14, i64 92}


; 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.bicudo::vec2" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }

@_ZN6bicudo2dtE = external local_unnamed_addr global float, align 4

; 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

declare void @_ZN6bicudo15splash_verticesEPNS_4vec2ERS0_S2_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

declare void @_ZN6bicudo23splash_edges_normalizedEPNS_4vec2ES1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6bicudo15update_positionEPNS_7runtimeEPNS_7physics9placementE(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %"struct.bicudo::vec2", align 8
  %4 = alloca %"struct.bicudo::vec2", align 8
  %5 = alloca %"struct.bicudo::vec2", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store i64 0, ptr %3, align 8
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #7
  %8 = getelementptr inbounds i8, ptr %1, i64 156
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 68
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %9, float noundef %11)
  br i1 %12, label %13, label %19

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 160
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 72
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %15, float noundef %17)
  br i1 %18, label %24, label %19

19:                                               ; preds = %13, %2
  %20 = load i64, ptr %10, align 4, !tbaa !5
  store i64 %20, ptr %8, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %1, i64 104
  %22 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %23 = getelementptr inbounds i8, ptr %1, i64 60
  call void @_ZN6bicudo15splash_verticesEPNS_4vec2ERS0_S2_(ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %10)
  br label %24

24:                                               ; preds = %19, %13
  %25 = getelementptr inbounds i8, ptr %1, i64 164
  %26 = load float, ptr %25, align 4, !tbaa !8
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load float, ptr %27, align 8, !tbaa !19
  %29 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %26, float noundef %28)
  %.pre65 = load float, ptr %27, align 8, !tbaa !19
  br i1 %29, label %46, label %30

30:                                               ; preds = %24
  %31 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %.pre65, float noundef 0.000000e+00)
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  store float 0.000000e+00, ptr %27, align 8, !tbaa !19
  br label %43

33:                                               ; preds = %30
  %34 = load float, ptr %27, align 8, !tbaa !19
  %35 = fdiv float 1.000000e+00, %34
  store float %35, ptr %27, align 8, !tbaa !19
  %36 = fdiv float 1.000000e+00, %35
  %37 = call noundef float @_ZN6bicudo4vec215magnitude_no_sqEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %38 = fmul float %36, %37
  %39 = getelementptr inbounds i8, ptr %0, i64 68
  %40 = load float, ptr %39, align 4, !tbaa !20
  %41 = fdiv float %38, %40
  %42 = fdiv float 1.000000e+00, %41
  %.pre = load float, ptr %27, align 8, !tbaa !19
  br label %43

43:                                               ; preds = %33, %32
  %44 = phi float [ 0.000000e+00, %32 ], [ %.pre, %33 ]
  %.sink = phi float [ 0.000000e+00, %32 ], [ %42, %33 ]
  %45 = getelementptr inbounds i8, ptr %1, i64 36
  store float %.sink, ptr %45, align 4
  store float %44, ptr %25, align 4, !tbaa !8
  br label %46

46:                                               ; preds = %43, %24
  %47 = phi float [ %44, %43 ], [ %.pre65, %24 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 76
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = call noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef %47, float noundef 0.000000e+00)
  %51 = xor i1 %50, true
  %52 = uitofp i1 %51 to float
  %53 = fmul float %49, %52
  %54 = getelementptr inbounds i8, ptr %1, i64 152
  %55 = load i8, ptr %54, align 8, !tbaa !28, !range !29, !noundef !30
  %56 = xor i8 %55, 1
  %57 = uitofp nneg i8 %56 to float
  %58 = fmul float %53, %57
  %59 = getelementptr inbounds i8, ptr %1, i64 84
  %60 = getelementptr inbounds i8, ptr %1, i64 88
  store float %58, ptr %60, align 4, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %1, i64 44
  %62 = getelementptr inbounds i8, ptr %1, i64 48
  %63 = getelementptr inbounds i8, ptr %1, i64 52
  %64 = getelementptr inbounds i8, ptr %1, i64 56
  store <4 x float> <float 9.999900e+04, float 9.999900e+04, float -9.999900e+04, float -9.999900e+04>, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %65 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !31
  %66 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %59, float noundef %65)
  store <2 x float> %66, ptr %4, align 8
  %67 = getelementptr inbounds i8, ptr %1, i64 76
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %68 = getelementptr inbounds i8, ptr %1, i64 60
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %67)
  %69 = getelementptr inbounds i8, ptr %1, i64 100
  %70 = load float, ptr %69, align 4, !tbaa !32
  %71 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !31
  %72 = getelementptr inbounds i8, ptr %1, i64 96
  %73 = load float, ptr %72, align 8, !tbaa !33
  %74 = call float @llvm.fmuladd.f32(float %70, float %71, float %73)
  store float %74, ptr %72, align 8, !tbaa !33
  %75 = getelementptr inbounds i8, ptr %1, i64 92
  %76 = load float, ptr %75, align 4, !tbaa !34
  %77 = fadd float %74, %76
  store float %77, ptr %75, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %78 = call <2 x float> @_ZN6bicudo4vec2dvEf(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 2.000000e+00)
  store <2 x float> %78, ptr %5, align 8
  %79 = call <2 x float> @_ZN6bicudo4vec2plERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %79, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %80 = getelementptr inbounds i8, ptr %1, i64 104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %81 = call ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  store ptr %81, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %82 = call ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  store ptr %82, ptr %7, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %83, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %84 = getelementptr inbounds i8, ptr %1, i64 128
  %85 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #7
  %86 = call noundef ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  call void @_ZN6bicudo23splash_edges_normalizedEPNS_4vec2ES1_(ptr noundef %85, ptr noundef %86)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void

.lr.ph:                                           ; preds = %46, %.lr.ph
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %87, ptr noundef nonnull align 4 dereferenceable(8) %67)
  %88 = load float, ptr %72, align 8, !tbaa !33
  %89 = call <2 x float> @_ZN6bicudo4vec26rotateEfRKS0_(ptr noundef nonnull align 4 dereferenceable(8) %87, float noundef %88, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %89, ptr %87, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %87)
  %91 = load float, ptr %90, align 4, !tbaa !31
  store float %91, ptr %61, align 4, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %87, i64 4
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %92)
  %94 = load float, ptr %93, align 4, !tbaa !31
  store float %94, ptr %62, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %87)
  %96 = load float, ptr %95, align 4, !tbaa !31
  store float %96, ptr %63, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %92)
  %98 = load float, ptr %97, align 4, !tbaa !31
  store float %98, ptr %64, align 4, !tbaa !5
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %100, label %.lr.ph, label %._crit_edge
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6bicudo12assert_floatEff(float noundef, float noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN6bicudo4vec2ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN6bicudo4vec2ESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 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 #4 = { 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 #5 = { 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 #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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 164}
!9 = !{!"_ZTSN6bicudo7physics9placementE", !10, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !13, i64 44, !13, i64 52, !13, i64 60, !13, i64 68, !13, i64 76, !13, i64 84, !12, i64 92, !12, i64 96, !12, i64 100, !14, i64 104, !14, i64 128, !18, i64 152, !18, i64 153, !13, i64 156, !12, i64 164}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!"float", !6, i64 0}
!13 = !{!"_ZTSN6bicudo4vec2E", !6, i64 0}
!14 = !{!"_ZTSSt6vectorIN6bicudo4vec2ESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!"bool", !6, i64 0}
!19 = !{!9, !12, i64 24}
!20 = !{!21, !12, i64 68}
!21 = !{!"_ZTSN6bicudo7runtimeE", !22, i64 0, !26, i64 24, !11, i64 56, !12, i64 64, !12, i64 68, !13, i64 72, !27, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!22 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!26 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !12, i64 0, !13, i64 4, !13, i64 12, !13, i64 20, !18, i64 28, !18, i64 29}
!27 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !6, i64 0}
!28 = !{!9, !18, i64 152}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !12, i64 0}
!32 = !{!9, !12, i64 100}
!33 = !{!9, !12, i64 96}
!34 = !{!9, !12, i64 92}


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