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

; 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 }
%struct.QVector = type { float, float }
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }

; 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) #0

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

41:                                               ; preds = %5
  store <2 x float> %40, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %42 = getelementptr inbounds %struct.QVector, ptr %8, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !14
  %44 = fcmp olt float %43, 0.000000e+00
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %17, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %46 = getelementptr inbounds %struct.QVector, ptr %8, i32 0, i32 1
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = fcmp olt float %47, 0.000000e+00
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %18, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %231, %41
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZN6QWorld12GetBodyCountEv(ptr noundef nonnull align 8 dereferenceable(272) %52)
          to label %54 unwind label %61

54:                                               ; preds = %50
  %55 = icmp slt i32 %51, %53
  br i1 %55, label %65, label %56

56:                                               ; preds = %54
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %236

57:                                               ; preds = %5
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  br label %238

61:                                               ; preds = %50
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %15, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %16, align 4
  br label %235

65:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i32, ptr %19, align 4, !tbaa !9
  %68 = invoke noundef ptr @_ZN6QWorld9GetBodyAtEi(ptr noundef nonnull align 8 dereferenceable(272) %66, i32 noundef %67)
          to label %69 unwind label %76

69:                                               ; preds = %65
  store ptr %68, ptr %21, align 8, !tbaa !5
  %70 = load ptr, ptr %21, align 8, !tbaa !5
  %71 = invoke noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %70)
          to label %72 unwind label %76

72:                                               ; preds = %69
  %73 = zext i1 %71 to i32
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %80

75:                                               ; preds = %72
  store i32 4, ptr %20, align 4
  br label %228

76:                                               ; preds = %226, %80, %69, %65
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %15, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %16, align 4
  br label %234

80:                                               ; preds = %72
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = load ptr, ptr %21, align 8, !tbaa !5
  %83 = invoke noundef i32 @_ZN5QBody12GetLayersBitEv(ptr noundef nonnull align 8 dereferenceable(293) %82)
          to label %84 unwind label %76

84:                                               ; preds = %80
  %85 = and i32 %81, %83
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  store i32 4, ptr %20, align 4
  br label %228

88:                                               ; preds = %84
  %89 = load i8, ptr %17, align 1, !tbaa !16, !range !19, !noundef !20
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %124

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %23) #6
  %92 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %25) #6
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %23, ptr noundef nonnull align 8 dereferenceable(293) %92)
          to label %93 unwind label %114

93:                                               ; preds = %91
  %94 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %23)
          to label %95 unwind label %114

95:                                               ; preds = %93
  store <2 x float> %94, ptr %22, align 4
  %96 = getelementptr inbounds %struct.QVector, ptr %22, i32 0, i32 0
  %97 = load float, ptr %96, align 4, !tbaa !14
  %98 = getelementptr inbounds %struct.QVector, ptr %7, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !14
  %100 = fcmp ogt float %97, %99
  br i1 %100, label %111, label %101

101:                                              ; preds = %95
  %102 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %25, ptr noundef nonnull align 8 dereferenceable(293) %102)
          to label %103 unwind label %118

103:                                              ; preds = %101
  %104 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %25)
          to label %105 unwind label %118

105:                                              ; preds = %103
  store <2 x float> %104, ptr %24, align 4
  %106 = getelementptr inbounds %struct.QVector, ptr %24, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !14
  %108 = getelementptr inbounds %struct.QVector, ptr %12, i32 0, i32 0
  %109 = load float, ptr %108, align 4, !tbaa !14
  %110 = fcmp olt float %107, %109
  br label %111

111:                                              ; preds = %105, %95
  %112 = phi i1 [ true, %95 ], [ %110, %105 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br i1 %112, label %113, label %123

113:                                              ; preds = %111
  store i32 4, ptr %20, align 4
  br label %228

114:                                              ; preds = %93, %91
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %15, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %16, align 4
  br label %122

118:                                              ; preds = %103, %101
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %15, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %122

122:                                              ; preds = %118, %114
  call void @llvm.lifetime.end.p0(i64 28, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %234

123:                                              ; preds = %111
  br label %157

124:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %27) #6
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %29) #6
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %27, ptr noundef nonnull align 8 dereferenceable(293) %125)
          to label %126 unwind label %147

126:                                              ; preds = %124
  %127 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %27)
          to label %128 unwind label %147

128:                                              ; preds = %126
  store <2 x float> %127, ptr %26, align 4
  %129 = getelementptr inbounds %struct.QVector, ptr %26, i32 0, i32 0
  %130 = load float, ptr %129, align 4, !tbaa !14
  %131 = getelementptr inbounds %struct.QVector, ptr %7, i32 0, i32 0
  %132 = load float, ptr %131, align 4, !tbaa !14
  %133 = fcmp olt float %130, %132
  br i1 %133, label %144, label %134

134:                                              ; preds = %128
  %135 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %29, ptr noundef nonnull align 8 dereferenceable(293) %135)
          to label %136 unwind label %151

136:                                              ; preds = %134
  %137 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %29)
          to label %138 unwind label %151

138:                                              ; preds = %136
  store <2 x float> %137, ptr %28, align 4
  %139 = getelementptr inbounds %struct.QVector, ptr %28, i32 0, i32 0
  %140 = load float, ptr %139, align 4, !tbaa !14
  %141 = getelementptr inbounds %struct.QVector, ptr %12, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !14
  %143 = fcmp ogt float %140, %142
  br label %144

144:                                              ; preds = %138, %128
  %145 = phi i1 [ true, %128 ], [ %143, %138 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br i1 %145, label %146, label %156

146:                                              ; preds = %144
  store i32 4, ptr %20, align 4
  br label %228

147:                                              ; preds = %126, %124
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %15, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %16, align 4
  br label %155

151:                                              ; preds = %136, %134
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %15, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %234

156:                                              ; preds = %144
  br label %157

157:                                              ; preds = %156, %123
  %158 = load i8, ptr %18, align 1, !tbaa !16, !range !19, !noundef !20
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %193

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %31) #6
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %33) #6
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %31, ptr noundef nonnull align 8 dereferenceable(293) %161)
          to label %162 unwind label %183

162:                                              ; preds = %160
  %163 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %31)
          to label %164 unwind label %183

164:                                              ; preds = %162
  store <2 x float> %163, ptr %30, align 4
  %165 = getelementptr inbounds %struct.QVector, ptr %30, i32 0, i32 1
  %166 = load float, ptr %165, align 4, !tbaa !18
  %167 = getelementptr inbounds %struct.QVector, ptr %7, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !18
  %169 = fcmp ogt float %166, %168
  br i1 %169, label %180, label %170

170:                                              ; preds = %164
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %33, ptr noundef nonnull align 8 dereferenceable(293) %171)
          to label %172 unwind label %187

172:                                              ; preds = %170
  %173 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %33)
          to label %174 unwind label %187

174:                                              ; preds = %172
  store <2 x float> %173, ptr %32, align 4
  %175 = getelementptr inbounds %struct.QVector, ptr %32, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !18
  %177 = getelementptr inbounds %struct.QVector, ptr %12, i32 0, i32 1
  %178 = load float, ptr %177, align 4, !tbaa !18
  %179 = fcmp olt float %176, %178
  br label %180

180:                                              ; preds = %174, %164
  %181 = phi i1 [ true, %164 ], [ %179, %174 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br i1 %181, label %182, label %192

182:                                              ; preds = %180
  store i32 4, ptr %20, align 4
  br label %228

183:                                              ; preds = %162, %160
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %15, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %16, align 4
  br label %191

187:                                              ; preds = %172, %170
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %15, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %191

191:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 28, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %234

192:                                              ; preds = %180
  br label %226

193:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %35) #6
  %194 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 28, ptr %37) #6
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %35, ptr noundef nonnull align 8 dereferenceable(293) %194)
          to label %195 unwind label %216

195:                                              ; preds = %193
  %196 = invoke <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %35)
          to label %197 unwind label %216

197:                                              ; preds = %195
  store <2 x float> %196, ptr %34, align 4
  %198 = getelementptr inbounds %struct.QVector, ptr %34, i32 0, i32 1
  %199 = load float, ptr %198, align 4, !tbaa !18
  %200 = getelementptr inbounds %struct.QVector, ptr %7, i32 0, i32 1
  %201 = load float, ptr %200, align 4, !tbaa !18
  %202 = fcmp olt float %199, %201
  br i1 %202, label %213, label %203

203:                                              ; preds = %197
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %37, ptr noundef nonnull align 8 dereferenceable(293) %204)
          to label %205 unwind label %220

205:                                              ; preds = %203
  %206 = invoke <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %37)
          to label %207 unwind label %220

207:                                              ; preds = %205
  store <2 x float> %206, ptr %36, align 4
  %208 = getelementptr inbounds %struct.QVector, ptr %36, i32 0, i32 1
  %209 = load float, ptr %208, align 4, !tbaa !18
  %210 = getelementptr inbounds %struct.QVector, ptr %12, i32 0, i32 1
  %211 = load float, ptr %210, align 4, !tbaa !18
  %212 = fcmp ogt float %209, %211
  br label %213

213:                                              ; preds = %207, %197
  %214 = phi i1 [ true, %197 ], [ %212, %207 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br i1 %214, label %215, label %225

215:                                              ; preds = %213
  store i32 4, ptr %20, align 4
  br label %228

216:                                              ; preds = %195, %193
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %15, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %16, align 4
  br label %224

220:                                              ; preds = %205, %203
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %15, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %224

224:                                              ; preds = %220, %216
  call void @llvm.lifetime.end.p0(i64 28, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %234

225:                                              ; preds = %213
  br label %226

226:                                              ; preds = %225, %192
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %227 unwind label %76

227:                                              ; preds = %226
  store i32 0, ptr %20, align 4
  br label %228

228:                                              ; preds = %227, %215, %182, %146, %113, %87, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %229 = load i32, ptr %20, align 4
  switch i32 %229, label %246 [
    i32 0, label %230
    i32 4, label %231
  ]

230:                                              ; preds = %228
  br label %231

231:                                              ; preds = %230, %228
  %232 = load i32, ptr %19, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !21

234:                                              ; preds = %224, %191, %155, %122, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %235

235:                                              ; preds = %234, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %238

236:                                              ; preds = %56
  store i1 true, ptr %11, align 1
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %237 = load i1, ptr %11, align 1
  br i1 %237, label %240, label %239

238:                                              ; preds = %235, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %241

239:                                              ; preds = %236
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %240

240:                                              ; preds = %239, %236
  ret void

241:                                              ; preds = %238
  %242 = load ptr, ptr %15, align 8
  %243 = load i32, ptr %16, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245

246:                                              ; preds = %228
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28)) #4 align 2

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind 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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS7QVector", !13, i64 0, !13, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!15, !13, i64 4}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"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.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8QRaycast18GetPotentialBodiesEP6QWorld7QVectorS2_i(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.0") align 8 %0, ptr noundef %1, <2 x float> %2, <2 x float> %3, i32 noundef %4) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca %class.QAABB, align 4
  %8 = alloca %class.QAABB, align 4
  %9 = alloca %class.QAABB, align 4
  %10 = alloca %class.QAABB, align 4
  %11 = alloca %class.QAABB, align 4
  %12 = alloca %class.QAABB, align 4
  %13 = alloca %class.QAABB, align 4
  %14 = alloca %class.QAABB, align 4
  tail call void @_ZNSt6vectorIP5QBodySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %15 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %2, <2 x float> %3)
          to label %16 unwind label %21

16:                                               ; preds = %5
  %.sroa.030.0.vec.extract = extractelement <2 x float> %3, i64 0
  %17 = fcmp olt float %.sroa.030.0.vec.extract, 0.000000e+00
  %.sroa.030.4.vec.extract = extractelement <2 x float> %3, i64 1
  %18 = fcmp olt float %.sroa.030.4.vec.extract, 0.000000e+00
  %19 = tail call noundef i32 @_ZN6QWorld12GetBodyCountEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %.sroa.032.0.vec.extract35 = extractelement <2 x float> %2, i64 0
  %.sroa.021.0.vec.extract23 = extractelement <2 x float> %15, i64 0
  %.sroa.032.4.vec.extract37 = extractelement <2 x float> %2, i64 1
  %.sroa.021.4.vec.extract25 = extractelement <2 x float> %15, i64 1
  br label %23

21:                                               ; preds = %5
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %72

23:                                               ; preds = %.lr.ph, %68
  %.03941 = phi i32 [ 0, %.lr.ph ], [ %69, %68 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %24 = call noundef ptr @_ZN6QWorld9GetBodyAtEi(ptr noundef nonnull align 8 dereferenceable(272) %1, i32 noundef %.03941)
  store ptr %24, ptr %6, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %24)
  br i1 %25, label %28, label %68

26:                                               ; preds = %67
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %72

28:                                               ; preds = %23
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef i32 @_ZN5QBody12GetLayersBitEv(ptr noundef nonnull align 8 dereferenceable(293) %29)
  %31 = and i32 %30, %4
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %68, label %33

33:                                               ; preds = %28
  br i1 %17, label %34, label %42

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %7) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %8) #5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %7, ptr noundef nonnull align 8 dereferenceable(293) %35)
  %36 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %7)
  %.sroa.013.0.vec.extract = extractelement <2 x float> %36, i64 0
  %37 = fcmp ogt float %.sroa.013.0.vec.extract, %.sroa.032.0.vec.extract35
  br i1 %37, label %.critedge, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %8, ptr noundef nonnull align 8 dereferenceable(293) %39)
  %40 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %8)
  %.sroa.012.0.vec.extract = extractelement <2 x float> %40, i64 0
  %41 = fcmp olt float %.sroa.012.0.vec.extract, %.sroa.021.0.vec.extract23
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %7) #5
  br i1 %41, label %68, label %50

.critedge:                                        ; preds = %34
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %7) #5
  br label %68

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %9) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %9, ptr noundef nonnull align 8 dereferenceable(293) %43)
  %44 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %9)
  %.sroa.011.0.vec.extract = extractelement <2 x float> %44, i64 0
  %45 = fcmp olt float %.sroa.011.0.vec.extract, %.sroa.032.0.vec.extract35
  br i1 %45, label %.critedge2, label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %10, ptr noundef nonnull align 8 dereferenceable(293) %47)
  %48 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %10)
  %.sroa.010.0.vec.extract = extractelement <2 x float> %48, i64 0
  %49 = fcmp ogt float %.sroa.010.0.vec.extract, %.sroa.021.0.vec.extract23
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %9) #5
  br i1 %49, label %68, label %50

.critedge2:                                       ; preds = %42
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %9) #5
  br label %68

50:                                               ; preds = %46, %38
  br i1 %18, label %51, label %59

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %11) #5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %12) #5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %11, ptr noundef nonnull align 8 dereferenceable(293) %52)
  %53 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %11)
  %.sroa.09.4.vec.extract = extractelement <2 x float> %53, i64 1
  %54 = fcmp ogt float %.sroa.09.4.vec.extract, %.sroa.032.4.vec.extract37
  br i1 %54, label %.critedge4, label %55

55:                                               ; preds = %51
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %12, ptr noundef nonnull align 8 dereferenceable(293) %56)
  %57 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %12)
  %.sroa.08.4.vec.extract = extractelement <2 x float> %57, i64 1
  %58 = fcmp olt float %.sroa.08.4.vec.extract, %.sroa.021.4.vec.extract25
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #5
  br i1 %58, label %68, label %67

.critedge4:                                       ; preds = %51
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #5
  br label %68

59:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %14) #5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %13, ptr noundef nonnull align 8 dereferenceable(293) %60)
  %61 = call <2 x float> @_ZN5QAABB6GetMaxEv(ptr noundef nonnull align 4 dereferenceable(28) %13)
  %.sroa.07.4.vec.extract = extractelement <2 x float> %61, i64 1
  %62 = fcmp olt float %.sroa.07.4.vec.extract, %.sroa.032.4.vec.extract37
  br i1 %62, label %.critedge6, label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %14, ptr noundef nonnull align 8 dereferenceable(293) %64)
  %65 = call <2 x float> @_ZN5QAABB6GetMinEv(ptr noundef nonnull align 4 dereferenceable(28) %14)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %65, i64 1
  %66 = fcmp ogt float %.sroa.0.4.vec.extract, %.sroa.021.4.vec.extract25
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #5
  br i1 %66, label %68, label %67

.critedge6:                                       ; preds = %59
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #5
  br label %68

67:                                               ; preds = %63, %55
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %68 unwind label %26

68:                                               ; preds = %67, %63, %.critedge6, %55, %.critedge4, %46, %.critedge2, %38, %.critedge, %28, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %69 = add nuw nsw i32 %.03941, 1
  %70 = call noundef i32 @_ZN6QWorld12GetBodyCountEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %23, label %._crit_edge, !llvm.loop !9

72:                                               ; preds = %26, %21
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %22, %21 ]
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %68, %16
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6QWorld9GetBodyAtEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #1 align 2

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

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

attributes #0 = { 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 #1 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind 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 = { 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 #5 = { 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass