; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qraycast.ll (ZN8QRaycast9RaycastToEP6QWorld7QVectorS2_ib)

; 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"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl" }
%"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl" = type { %"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.77" = type { ptr }
%"struct.QRaycast::Contact" = type <{ ptr, %struct.QVector, %struct.QVector, float, [4 x i8] }>

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast18GetPotentialBodiesEP6QWorld7QVectorS2_i(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, ptr noundef, <2 x float>, <2 x float>, i32 noundef) #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8QRaycast9RaycastToEP6QWorld7QVectorS2_ib(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, <2 x float> %2, <2 x float> %3, i32 noundef %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca %struct.QVector, align 4
  %9 = alloca %struct.QVector, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i1, align 1
  %14 = alloca %"class.std::vector.0", align 8
  %15 = alloca %struct.QVector, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca %struct.QVector, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %struct.QVector, align 4
  %29 = alloca %struct.QVector, align 4
  %30 = alloca %struct.QVector, align 4
  %31 = alloca %struct.QVector, align 4
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.77", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.77", align 8
  store ptr %0, ptr %7, align 8
  store <2 x float> %2, ptr %8, align 4
  store <2 x float> %3, ptr %9, align 4
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  %38 = zext i1 %5 to i8
  store i8 %38, ptr %12, align 1, !tbaa !11
  store i1 false, ptr %13, align 1
  call void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !13
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load <2 x float>, ptr %15, align 4
  %42 = load <2 x float>, ptr %16, align 4
  invoke void @_ZN8QRaycast18GetPotentialBodiesEP6QWorld7QVectorS2_i(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %14, ptr noundef %39, <2 x float> %41, <2 x float> %42, i32 noundef %40)
          to label %43 unwind label %57

43:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %44 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %45 unwind label %61

45:                                               ; preds = %43
  store <2 x float> %44, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %46 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %47 unwind label %65

47:                                               ; preds = %45
  store <2 x float> %46, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  store ptr %14, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %48 = load ptr, ptr %21, align 8, !tbaa !5
  %49 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #9
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  br label %54

54:                                               ; preds = %133, %47
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %55, label %69, label %56

56:                                               ; preds = %54
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %135

57:                                               ; preds = %6
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %17, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %18, align 4
  br label %148

61:                                               ; preds = %43
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %17, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %18, align 4
  br label %147

65:                                               ; preds = %135, %45
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %17, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %18, align 4
  br label %146

69:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %71, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %128, %69
  %73 = load i32, ptr %26, align 4, !tbaa !9
  %74 = load ptr, ptr %25, align 8, !tbaa !5
  %75 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %74)
          to label %76 unwind label %79

76:                                               ; preds = %72
  %77 = icmp slt i32 %73, %75
  br i1 %77, label %83, label %78

78:                                               ; preds = %76
  store i32 4, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %132

79:                                               ; preds = %72
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %17, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %18, align 4
  br label %131

83:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %84 = load ptr, ptr %25, align 8, !tbaa !5
  %85 = load i32, ptr %26, align 4, !tbaa !9
  %86 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %84, i32 noundef %85)
          to label %87 unwind label %102

87:                                               ; preds = %83
  store ptr %86, ptr %27, align 8, !tbaa !5
  %88 = load ptr, ptr %27, align 8, !tbaa !5
  %89 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %88)
          to label %90 unwind label %102

90:                                               ; preds = %87
  %91 = icmp eq i32 %89, 0
  br i1 %91, label %92, label %106

92:                                               ; preds = %90
  %93 = load ptr, ptr %25, align 8, !tbaa !5
  %94 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !13
  %95 = load i8, ptr %12, align 1, !tbaa !11, !range !16, !noundef !17
  %96 = trunc i8 %95 to i1
  %97 = load <2 x float>, ptr %28, align 4
  %98 = load <2 x float>, ptr %29, align 4
  %99 = load <2 x float>, ptr %30, align 4
  %100 = load <2 x float>, ptr %31, align 4
  invoke void @_ZN8QRaycast18RaycastToParticlesEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef %93, ptr noundef %94, <2 x float> %97, <2 x float> %98, <2 x float> %99, <2 x float> %100, i1 noundef zeroext %96, ptr noundef %0)
          to label %101 unwind label %102

101:                                              ; preds = %92
  br label %127

102:                                              ; preds = %116, %111, %106, %92, %87, %83
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %17, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %131

106:                                              ; preds = %90
  %107 = load ptr, ptr %27, align 8, !tbaa !5
  %108 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %107)
          to label %109 unwind label %102

109:                                              ; preds = %106
  %110 = icmp eq i32 %108, 1
  br i1 %110, label %116, label %111

111:                                              ; preds = %109
  %112 = load ptr, ptr %27, align 8, !tbaa !5
  %113 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %112)
          to label %114 unwind label %102

114:                                              ; preds = %111
  %115 = icmp eq i32 %113, 2
  br i1 %115, label %116, label %126

116:                                              ; preds = %114, %109
  %117 = load ptr, ptr %25, align 8, !tbaa !5
  %118 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !13
  %119 = load i8, ptr %12, align 1, !tbaa !11, !range !16, !noundef !17
  %120 = trunc i8 %119 to i1
  %121 = load <2 x float>, ptr %32, align 4
  %122 = load <2 x float>, ptr %33, align 4
  %123 = load <2 x float>, ptr %34, align 4
  %124 = load <2 x float>, ptr %35, align 4
  invoke void @_ZN8QRaycast16RaycastToPolygonEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef %117, ptr noundef %118, <2 x float> %121, <2 x float> %122, <2 x float> %123, <2 x float> %124, i1 noundef zeroext %120, ptr noundef %0)
          to label %125 unwind label %102

125:                                              ; preds = %116
  br label %126

126:                                              ; preds = %125, %114
  br label %127

127:                                              ; preds = %126, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %26, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %26, align 4, !tbaa !9
  br label %72, !llvm.loop !18

131:                                              ; preds = %102, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %146

132:                                              ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %133

133:                                              ; preds = %132
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %54

135:                                              ; preds = %56
  %136 = call ptr @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.77", ptr %36, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = call ptr @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.77", ptr %37, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.77", ptr %36, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.77", ptr %37, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8QRaycast7ContactESt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %141, ptr %143, ptr noundef @_ZN8QRaycast12SortContactsENS_7ContactES0_)
          to label %144 unwind label %65

144:                                              ; preds = %135
  store i1 true, ptr %13, align 1
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  %145 = load i1, ptr %13, align 1
  br i1 %145, label %150, label %149

146:                                              ; preds = %131, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %147

147:                                              ; preds = %146, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %148

148:                                              ; preds = %147, %57
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %151

149:                                              ; preds = %144
  call void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %150

150:                                              ; preds = %149, %144
  ret void

151:                                              ; preds = %148
  %152 = load ptr, ptr %17, align 8
  %153 = load i32, ptr %18, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QBodySt6vectorIS2_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 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293)) #6

declare noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293), i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast18RaycastToParticlesEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast16RaycastToPolygonEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext, ptr noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8QRaycast7ContactESt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) #8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8QRaycast12SortContactsENS_7ContactES0_(ptr noundef byval(%"struct.QRaycast::Contact") align 8, ptr noundef byval(%"struct.QRaycast::Contact") align 8) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { "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 = { 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 #8 = { inlinehint 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 #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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl" }
%"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl" = type { %"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QRaycast::Contact, std::allocator<QRaycast::Contact>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.QRaycast::Contact" = type <{ ptr, %struct.QVector, %struct.QVector, float, [4 x i8] }>

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast18GetPotentialBodiesEP6QWorld7QVectorS2_i(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, ptr noundef, <2 x float>, <2 x float>, i32 noundef) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8QRaycast9RaycastToEP6QWorld7QVectorS2_ib(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, <2 x float> %2, <2 x float> %3, i32 noundef %4, i1 noundef zeroext %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.QVector, align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %struct.QVector, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store <2 x float> %3, ptr %7, align 8
  tail call void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  invoke void @_ZN8QRaycast18GetPotentialBodiesEP6QWorld7QVectorS2_i(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %8, ptr noundef %1, <2 x float> %2, <2 x float> %3, i32 noundef %4)
          to label %12 unwind label %22

12:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %13 = invoke <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %14 unwind label %24

14:                                               ; preds = %12
  store <2 x float> %13, ptr %9, align 8
  %15 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %16 unwind label %26

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %17 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  store ptr %17, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %18 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  store ptr %18, ptr %11, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %19, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %34, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %20 = call ptr @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %21 = call ptr @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8QRaycast7ContactESt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr %20, ptr %21, ptr noundef nonnull @_ZN8QRaycast12SortContactsENS_7ContactES0_)
          to label %60 unwind label %26

22:                                               ; preds = %6
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %62

24:                                               ; preds = %12
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %61

26:                                               ; preds = %._crit_edge, %14
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %61

.lr.ph:                                           ; preds = %16, %34
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %57, %.lr.ph
  %.040 = phi i32 [ 0, %.lr.ph ], [ %58, %57 ]
  %31 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %29)
          to label %32 unwind label %37

32:                                               ; preds = %30
  %33 = icmp slt i32 %.040, %31
  br i1 %33, label %39, label %34

34:                                               ; preds = %32
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QBodySt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %36, label %.lr.ph, label %._crit_edge

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %59

39:                                               ; preds = %32
  %40 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %29, i32 noundef %.040)
          to label %41 unwind label %46

41:                                               ; preds = %39
  %42 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %40)
          to label %43 unwind label %46

43:                                               ; preds = %41
  %44 = icmp eq i32 %42, 0
  br i1 %44, label %45, label %48

45:                                               ; preds = %43
  %.sroa.08.0.copyload = load <2 x float>, ptr %7, align 8
  %.sroa.07.0.copyload = load <2 x float>, ptr %9, align 8
  invoke void @_ZN8QRaycast18RaycastToParticlesEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef nonnull %29, ptr noundef nonnull %40, <2 x float> %2, <2 x float> %.sroa.08.0.copyload, <2 x float> %.sroa.07.0.copyload, <2 x float> %15, i1 noundef zeroext %5, ptr noundef nonnull %0)
          to label %57 unwind label %46

46:                                               ; preds = %56, %52, %48, %45, %41, %39
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %59

48:                                               ; preds = %43
  %49 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %40)
          to label %50 unwind label %46

50:                                               ; preds = %48
  %51 = icmp eq i32 %49, 1
  br i1 %51, label %56, label %52

52:                                               ; preds = %50
  %53 = invoke noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256) %40)
          to label %54 unwind label %46

54:                                               ; preds = %52
  %55 = icmp eq i32 %53, 2
  br i1 %55, label %56, label %57

56:                                               ; preds = %54, %50
  %.sroa.04.0.copyload = load <2 x float>, ptr %7, align 8
  %.sroa.03.0.copyload = load <2 x float>, ptr %9, align 8
  invoke void @_ZN8QRaycast16RaycastToPolygonEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef nonnull %29, ptr noundef nonnull %40, <2 x float> %2, <2 x float> %.sroa.04.0.copyload, <2 x float> %.sroa.03.0.copyload, <2 x float> %15, i1 noundef zeroext %5, ptr noundef nonnull %0)
          to label %57 unwind label %46

57:                                               ; preds = %54, %56, %45
  %58 = add nuw nsw i32 %.040, 1
  br label %30, !llvm.loop !9

59:                                               ; preds = %46, %37
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %61

60:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  ret void

61:                                               ; preds = %26, %59, %24
  %.pn.pn.pn = phi { ptr, i32 } [ %25, %24 ], [ %.pn, %59 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %62

62:                                               ; preds = %61, %22
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %61 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIN8QRaycast7ContactESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QBodySt6vectorIS2_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 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QBodySt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #5

declare noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5QMesh20GetCollisionBehaviorEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast18RaycastToParticlesEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8QRaycast16RaycastToPolygonEP5QBodyP5QMesh7QVectorS4_S4_S4_bPSt6vectorINS_7ContactESaIS6_EE(ptr noundef, ptr noundef, <2 x float>, <2 x float>, <2 x float>, <2 x float>, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPN8QRaycast7ContactESt6vectorIS3_SaIS3_EEEEPFbS3_S3_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8QRaycast12SortContactsENS_7ContactES0_(ptr noundef byval(%"struct.QRaycast::Contact") align 8, ptr noundef byval(%"struct.QRaycast::Contact") align 8) #0 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass