; LLVM IR from vokegpu/bicudo :: src/physics (processor)

; 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::physics::collision_info_t" = type <{ float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", i8, i8, [2 x i8] }>
%"struct.bicudo::vec2" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }
%"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 }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN6bicudo40physics_processor_a_collide_with_b_checkERPNS_7physics9placementES3_PNS_7runtimeE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) #4 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.bicudo::physics::collision_info_t", align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.bicudo::physics::collision_info_t", align 4
  %11 = alloca %"struct.bicudo::vec2", align 4
  %12 = alloca %"struct.bicudo::vec2", align 4
  %13 = alloca %"struct.bicudo::vec2", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.bicudo::runtime", ptr %14, i32 0, i32 1
  %16 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %15, i32 0, i32 5
  store i8 0, ptr %16, align 1, !tbaa !9
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.bicudo::runtime", ptr %17, i32 0, i32 6
  %19 = load i32, ptr %18, align 8, !tbaa !21
  switch i32 %19, label %128 [
    i32 0, label %20
    i32 1, label %112
  ]

20:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  %21 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 0
  store float 0.000000e+00, ptr %21, align 4, !tbaa !22
  %22 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 4 %22, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %22) #6
  %23 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %23) #6
  %24 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 4 %24, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24) #6
  %25 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 4
  store i8 0, ptr %25, align 4, !tbaa !23
  %26 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 5
  store i8 0, ptr %26, align 1, !tbaa !24
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6bicudo39physics_processor_find_axis_penetrationERPNS_7physics9placementES3_PNS0_16collision_info_tE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %8)
  %29 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 4
  %30 = load i8, ptr %29, align 4, !tbaa !23, !range !25, !noundef !26
  %31 = trunc i8 %30 to i1
  br i1 %31, label %38, label %32

32:                                               ; preds = %20
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.bicudo::runtime", ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %34, i32 0, i32 5
  %36 = load i8, ptr %35, align 1, !tbaa !9, !range !25, !noundef !26
  %37 = trunc i8 %36 to i1
  store i1 %37, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %111

38:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %39 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 0
  store float 0.000000e+00, ptr %39, align 4, !tbaa !22
  %40 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 4 %40, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %40) #6
  %41 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 4 %41, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %41) #6
  %42 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 4 %42, i8 0, i64 8, i1 false)
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %42) #6
  %43 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 4
  store i8 0, ptr %43, align 4, !tbaa !23
  %44 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 5
  store i8 0, ptr %44, align 1, !tbaa !24
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN6bicudo39physics_processor_find_axis_penetrationERPNS_7physics9placementES3_PNS0_16collision_info_tE(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef %10)
  %47 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 4
  %48 = load i8, ptr %47, align 4, !tbaa !23, !range !25, !noundef !26
  %49 = trunc i8 %48 to i1
  br i1 %49, label %56, label %50

50:                                               ; preds = %38
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.bicudo::runtime", ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %52, i32 0, i32 5
  %54 = load i8, ptr %53, align 1, !tbaa !9, !range !25, !noundef !26
  %55 = trunc i8 %54 to i1
  store i1 %55, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %110

56:                                               ; preds = %38
  %57 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 0
  %58 = load float, ptr %57, align 4, !tbaa !22
  %59 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 0
  %60 = load float, ptr %59, align 4, !tbaa !22
  %61 = fcmp olt float %58, %60
  br i1 %61, label %62, label %87

62:                                               ; preds = %56
  %63 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !22
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.bicudo::runtime", ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %66, i32 0, i32 0
  store float %64, ptr %67, align 8, !tbaa !27
  %68 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 1
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.bicudo::runtime", ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %70, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %72 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %73 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %8, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !22
  %76 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %73, float noundef %75)
  %77 = getelementptr inbounds %"struct.bicudo::vec2", ptr %12, i32 0, i32 0
  %78 = getelementptr inbounds %union.anon.0, ptr %77, i32 0, i32 0
  store <2 x float> %76, ptr %78, align 4
  %79 = call <2 x float> @_ZN6bicudo4vec2miERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %80 = getelementptr inbounds %"struct.bicudo::vec2", ptr %11, i32 0, i32 0
  %81 = getelementptr inbounds %union.anon.0, ptr %80, i32 0, i32 0
  store <2 x float> %79, ptr %81, align 4
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.bicudo::runtime", ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %83, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.bicudo::runtime", ptr %85, i32 0, i32 1
  call void @_ZN6bicudo39physics_processor_collision_info_updateEPNS_7physics16collision_info_tE(ptr noundef %86)
  br label %106

87:                                               ; preds = %56
  %88 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 0
  %89 = load float, ptr %88, align 4, !tbaa !22
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.bicudo::runtime", ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %91, i32 0, i32 0
  store float %89, ptr %92, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %93 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 1
  %94 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %93, float noundef -1.000000e+00)
  %95 = getelementptr inbounds %"struct.bicudo::vec2", ptr %13, i32 0, i32 0
  %96 = getelementptr inbounds %union.anon.0, ptr %95, i32 0, i32 0
  store <2 x float> %94, ptr %96, align 4
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.bicudo::runtime", ptr %97, i32 0, i32 1
  %99 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %98, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %100 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %10, i32 0, i32 2
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.bicudo::runtime", ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %102, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %100, i64 8, i1 false), !tbaa.struct !28
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.bicudo::runtime", ptr %104, i32 0, i32 1
  call void @_ZN6bicudo39physics_processor_collision_info_updateEPNS_7physics16collision_info_tE(ptr noundef %105)
  br label %106

106:                                              ; preds = %87, %62
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.bicudo::runtime", ptr %107, i32 0, i32 1
  %109 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %108, i32 0, i32 5
  store i8 1, ptr %109, align 1, !tbaa !9
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %110

110:                                              ; preds = %106, %50
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %111

111:                                              ; preds = %110, %32
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %134

112:                                              ; preds = %3
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.bicudo::runtime", ptr %113, i32 0, i32 7
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.bicudo::runtime", ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %115, align 8, !tbaa !31
  %121 = getelementptr inbounds ptr, ptr %120, i64 2
  %122 = load ptr, ptr %121, align 8
  call void %122(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef %119)
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.bicudo::runtime", ptr %123, i32 0, i32 1
  %125 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %124, i32 0, i32 5
  %126 = load i8, ptr %125, align 1, !tbaa !9, !range !25, !noundef !26
  %127 = trunc i8 %126 to i1
  store i1 %127, ptr %4, align 1
  br label %134

128:                                              ; preds = %3
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.bicudo::runtime", ptr %129, i32 0, i32 1
  %131 = getelementptr inbounds %"struct.bicudo::physics::collision_info_t", ptr %130, i32 0, i32 5
  %132 = load i8, ptr %131, align 1, !tbaa !9, !range !25, !noundef !26
  %133 = trunc i8 %132 to i1
  store i1 %133, ptr %4, align 1
  br label %134

134:                                              ; preds = %128, %112, %111
  %135 = load i1, ptr %4, align 1
  ret i1 %135
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6bicudo39physics_processor_collision_info_updateEPNS_7physics16collision_info_tE(ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 53}
!10 = !{!"_ZTSN6bicudo7runtimeE", !11, i64 0, !15, i64 24, !19, i64 56, !16, i64 64, !16, i64 68, !17, i64 72, !20, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!11 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !16, i64 0, !17, i64 4, !17, i64 12, !17, i64 20, !18, i64 28, !18, i64 29}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN6bicudo4vec2E", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !7, i64 0}
!21 = !{!10, !20, i64 80}
!22 = !{!15, !16, i64 0}
!23 = !{!15, !18, i64 28}
!24 = !{!15, !18, i64 29}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !16, i64 24}
!28 = !{i64 0, i64 8, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!10, !6, i64 88}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}


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

%"struct.bicudo::physics::collision_info_t" = type <{ float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", i8, i8, [2 x i8] }>
%"struct.bicudo::vec2" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN6bicudo40physics_processor_a_collide_with_b_checkERPNS_7physics9placementES3_PNS_7runtimeE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"struct.bicudo::physics::collision_info_t", align 4
  %5 = alloca %"struct.bicudo::physics::collision_info_t", align 4
  %6 = alloca %"struct.bicudo::vec2", align 8
  %7 = getelementptr inbounds i8, ptr %2, i64 24
  %8 = getelementptr inbounds i8, ptr %2, i64 53
  store i8 0, ptr %8, align 1, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %2, i64 80
  %10 = load i32, ptr %9, align 8, !tbaa !20
  switch i32 %10, label %59 [
    i32 0, label %11
    i32 1, label %51
  ]

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %4, i64 4
  store i64 0, ptr %12, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12) #4
  %13 = getelementptr inbounds i8, ptr %4, i64 12
  store i64 0, ptr %13, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13) #4
  %14 = getelementptr inbounds i8, ptr %4, i64 20
  store i64 0, ptr %14, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14) #4
  %15 = getelementptr inbounds i8, ptr %4, i64 28
  store i8 0, ptr %15, align 4, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %4, i64 29
  store i8 0, ptr %16, align 1, !tbaa !23
  call void @_ZN6bicudo39physics_processor_find_axis_penetrationERPNS_7physics9placementES3_PNS0_16collision_info_tE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %4)
  %17 = load i8, ptr %15, align 4, !tbaa !22, !range !24, !noundef !25
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %22, label %19

19:                                               ; preds = %11
  %20 = load i8, ptr %8, align 1, !tbaa !5, !range !24, !noundef !25
  %21 = trunc nuw i8 %20 to i1
  br label %50

22:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  store float 0.000000e+00, ptr %5, align 4, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %5, i64 4
  store i64 0, ptr %23, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %23) #4
  %24 = getelementptr inbounds i8, ptr %5, i64 12
  store i64 0, ptr %24, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24) #4
  %25 = getelementptr inbounds i8, ptr %5, i64 20
  store i64 0, ptr %25, align 4
  call void @_ZN6bicudo4vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %25) #4
  %26 = getelementptr inbounds i8, ptr %5, i64 28
  store i8 0, ptr %26, align 4, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %5, i64 29
  store i8 0, ptr %27, align 1, !tbaa !23
  call void @_ZN6bicudo39physics_processor_find_axis_penetrationERPNS_7physics9placementES3_PNS0_16collision_info_tE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %5)
  %28 = load i8, ptr %26, align 4, !tbaa !22, !range !24, !noundef !25
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %33, label %30

30:                                               ; preds = %22
  %31 = load i8, ptr %8, align 1, !tbaa !5, !range !24, !noundef !25
  %32 = trunc nuw i8 %31 to i1
  br label %49

33:                                               ; preds = %22
  %34 = load float, ptr %4, align 4, !tbaa !21
  %35 = load float, ptr %5, align 4, !tbaa !21
  %36 = fcmp olt float %34, %35
  br i1 %36, label %37, label %43

37:                                               ; preds = %33
  store float %34, ptr %7, align 8, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %2, i64 28
  %39 = load i64, ptr %12, align 4, !tbaa !27
  store i64 %39, ptr %38, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %40 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %34)
  store <2 x float> %40, ptr %6, align 8
  %41 = call <2 x float> @_ZN6bicudo4vec2miERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %42 = getelementptr inbounds i8, ptr %2, i64 36
  store <2 x float> %41, ptr %42, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %48

43:                                               ; preds = %33
  store float %35, ptr %7, align 8, !tbaa !26
  %44 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef -1.000000e+00)
  %45 = getelementptr inbounds i8, ptr %2, i64 28
  store <2 x float> %44, ptr %45, align 4, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %2, i64 36
  %47 = load i64, ptr %24, align 4, !tbaa !27
  store i64 %47, ptr %46, align 4, !tbaa !27
  br label %48

48:                                               ; preds = %43, %37
  call void @_ZN6bicudo39physics_processor_collision_info_updateEPNS_7physics16collision_info_tE(ptr noundef nonnull %7)
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %49

49:                                               ; preds = %48, %30
  %.0 = phi i1 [ true, %48 ], [ %32, %30 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %50

50:                                               ; preds = %49, %19
  %.1 = phi i1 [ %.0, %49 ], [ %21, %19 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  br label %59

51:                                               ; preds = %3
  %52 = getelementptr inbounds i8, ptr %2, i64 88
  %53 = load ptr, ptr %52, align 8, !tbaa !28
  %54 = load ptr, ptr %53, align 8, !tbaa !29
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load ptr, ptr %55, align 8
  tail call void %56(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %7)
  %57 = load i8, ptr %8, align 1, !tbaa !5, !range !24, !noundef !25
  %58 = trunc nuw i8 %57 to i1
  br label %59

59:                                               ; preds = %3, %51, %50
  %.2 = phi i1 [ %58, %51 ], [ %.1, %50 ], [ false, %3 ]
  ret i1 %.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 #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6bicudo39physics_processor_collision_info_updateEPNS_7physics16collision_info_tE(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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, !17, i64 53}
!6 = !{!"_ZTSN6bicudo7runtimeE", !7, i64 0, !14, i64 24, !18, i64 56, !15, i64 64, !15, i64 68, !16, i64 72, !19, i64 80, !11, i64 88, !11, i64 96, !11, i64 104}
!7 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !15, i64 0, !16, i64 4, !16, i64 12, !16, i64 20, !17, i64 28, !17, i64 29}
!15 = !{!"float", !12, i64 0}
!16 = !{!"_ZTSN6bicudo4vec2E", !12, i64 0}
!17 = !{!"bool", !12, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !12, i64 0}
!20 = !{!6, !19, i64 80}
!21 = !{!14, !15, i64 0}
!22 = !{!14, !17, i64 28}
!23 = !{!14, !17, i64 29}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !15, i64 24}
!27 = !{!12, !12, i64 0}
!28 = !{!6, !11, i64 88}
!29 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass