; LLVM IR from xirc/cp-algorithm :: aoj/CGL/CGL7E/main.ll (Z15intersection_cc7vector2dS_dRSt6vectorIS_SaIS_EE)

; 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.vector2 = type { double, double }

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15intersection_cc7vector2dS_dRSt6vectorIS_SaIS_EE(double %0, double %1, double noundef %2, double %3, double %4, double noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca %struct.vector2, align 8
  %10 = alloca %struct.vector2, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca %struct.vector2, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca %struct.vector2, align 8
  %19 = alloca %struct.vector2, align 8
  %20 = alloca %struct.vector2, align 8
  %21 = alloca %struct.vector2, align 8
  %22 = alloca double, align 8
  %23 = alloca %struct.vector2, align 8
  %24 = alloca %struct.vector2, align 8
  %25 = alloca %struct.vector2, align 8
  %26 = alloca %struct.vector2, align 8
  %27 = alloca double, align 8
  %28 = alloca %struct.vector2, align 8
  %29 = alloca %struct.vector2, align 8
  %30 = alloca %struct.vector2, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca %struct.vector2, align 8
  %35 = alloca %struct.vector2, align 8
  %36 = alloca %struct.vector2, align 8
  %37 = alloca %struct.vector2, align 8
  %38 = alloca %struct.vector2, align 8
  %39 = alloca %struct.vector2, align 8
  %40 = alloca %struct.vector2, align 8
  %41 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %0, ptr %41, align 8
  %42 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %1, ptr %42, align 8
  %43 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %3, ptr %43, align 8
  %44 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %4, ptr %44, align 8
  store double %2, ptr %11, align 8, !tbaa !5
  store double %5, ptr %12, align 8, !tbaa !5
  store ptr %6, ptr %13, align 8, !tbaa !9
  %45 = load ptr, ptr %13, align 8, !tbaa !9
  call void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #6
  %46 = load ptr, ptr %13, align 8, !tbaa !9
  call void @_ZNSt6vectorI7vector2SaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 2)
  %47 = load double, ptr %11, align 8, !tbaa !5
  %48 = load double, ptr %12, align 8, !tbaa !5
  %49 = fcmp olt double %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %7
  call void @_ZSt4swapI7vector2ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %51

51:                                               ; preds = %50, %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %52 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %53 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %54 = extractvalue { double, double } %52, 0
  store double %54, ptr %53, align 8
  %55 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %56 = extractvalue { double, double } %52, 1
  store double %56, ptr %55, align 8
  %57 = call noundef double @_ZNK7vector26lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  store double %57, ptr %14, align 8, !tbaa !5
  %58 = load double, ptr %14, align 8, !tbaa !5
  %59 = load double, ptr %11, align 8, !tbaa !5
  %60 = load double, ptr %12, align 8, !tbaa !5
  %61 = fadd double %59, %60
  %62 = fcmp ogt double %58, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %51
  store i32 4, ptr %8, align 4
  store i32 1, ptr %16, align 4
  br label %201

64:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %65 = load double, ptr %11, align 8, !tbaa !5
  %66 = load double, ptr %12, align 8, !tbaa !5
  %67 = fadd double %65, %66
  store double %67, ptr %17, align 8, !tbaa !5
  %68 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br i1 %68, label %69, label %91

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %70 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %71 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %72 = extractvalue { double, double } %70, 0
  store double %72, ptr %71, align 8
  %73 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %74 = extractvalue { double, double } %70, 1
  store double %74, ptr %73, align 8
  %75 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
  %76 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %77 = extractvalue { double, double } %75, 0
  store double %77, ptr %76, align 8
  %78 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %79 = extractvalue { double, double } %75, 1
  store double %79, ptr %78, align 8
  %80 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %81 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %82 = extractvalue { double, double } %80, 0
  store double %82, ptr %81, align 8
  %83 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %84 = extractvalue { double, double } %80, 1
  store double %84, ptr %83, align 8
  %85 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %86 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %87 = extractvalue { double, double } %85, 0
  store double %87, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %89 = extractvalue { double, double } %85, 1
  store double %89, ptr %88, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  %90 = load ptr, ptr %13, align 8, !tbaa !9
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 8 dereferenceable(16) %18)
  store i32 3, ptr %8, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %201

91:                                               ; preds = %64
  %92 = load double, ptr %14, align 8, !tbaa !5
  %93 = load double, ptr %11, align 8, !tbaa !5
  %94 = load double, ptr %12, align 8, !tbaa !5
  %95 = fsub double %93, %94
  %96 = fcmp olt double %92, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  store i32 0, ptr %8, align 4
  store i32 1, ptr %16, align 4
  br label %201

98:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %99 = load double, ptr %11, align 8, !tbaa !5
  %100 = load double, ptr %12, align 8, !tbaa !5
  %101 = fsub double %99, %100
  store double %101, ptr %22, align 8, !tbaa !5
  %102 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br i1 %102, label %103, label %125

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %104 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %105 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %106 = extractvalue { double, double } %104, 0
  store double %106, ptr %105, align 8
  %107 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %108 = extractvalue { double, double } %104, 1
  store double %108, ptr %107, align 8
  %109 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %110 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %111 = extractvalue { double, double } %109, 0
  store double %111, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %113 = extractvalue { double, double } %109, 1
  store double %113, ptr %112, align 8
  %114 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %115 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %116 = extractvalue { double, double } %114, 0
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %118 = extractvalue { double, double } %114, 1
  store double %118, ptr %117, align 8
  %119 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %120 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %121 = extractvalue { double, double } %119, 0
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %123 = extractvalue { double, double } %119, 1
  store double %123, ptr %122, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  %124 = load ptr, ptr %13, align 8, !tbaa !9
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(16) %23)
  store i32 1, ptr %8, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %201

125:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %126 = load double, ptr %14, align 8, !tbaa !5
  %127 = load double, ptr %14, align 8, !tbaa !5
  %128 = load double, ptr %11, align 8, !tbaa !5
  %129 = load double, ptr %11, align 8, !tbaa !5
  %130 = fmul double %128, %129
  %131 = call double @llvm.fmuladd.f64(double %126, double %127, double %130)
  %132 = load double, ptr %12, align 8, !tbaa !5
  %133 = load double, ptr %12, align 8, !tbaa !5
  %134 = fneg double %132
  %135 = call double @llvm.fmuladd.f64(double %134, double %133, double %131)
  %136 = load double, ptr %14, align 8, !tbaa !5
  %137 = fmul double 2.000000e+00, %136
  %138 = fdiv double %135, %137
  store double %138, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %139 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %140 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %141 = extractvalue { double, double } %139, 0
  store double %141, ptr %140, align 8
  %142 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %143 = extractvalue { double, double } %139, 1
  store double %143, ptr %142, align 8
  %144 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %145 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %146 = extractvalue { double, double } %144, 0
  store double %146, ptr %145, align 8
  %147 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %148 = extractvalue { double, double } %144, 1
  store double %148, ptr %147, align 8
  %149 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %150 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %151 = extractvalue { double, double } %149, 0
  store double %151, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %153 = extractvalue { double, double } %149, 1
  store double %153, ptr %152, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %154 = load double, ptr %11, align 8, !tbaa !5
  %155 = load double, ptr %11, align 8, !tbaa !5
  %156 = load double, ptr %27, align 8, !tbaa !5
  %157 = load double, ptr %27, align 8, !tbaa !5
  %158 = fmul double %156, %157
  %159 = fneg double %158
  %160 = call double @llvm.fmuladd.f64(double %154, double %155, double %159)
  store double %160, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store double 0.000000e+00, ptr %33, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = call double @sqrt(double noundef %162) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  store double %163, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %164 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %165 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %166 = extractvalue { double, double } %164, 0
  store double %166, ptr %165, align 8
  %167 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %168 = extractvalue { double, double } %164, 1
  store double %168, ptr %167, align 8
  %169 = call { double, double } @_ZNK7vector211unit_normalEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %170 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %171 = extractvalue { double, double } %169, 0
  store double %171, ptr %170, align 8
  %172 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %173 = extractvalue { double, double } %169, 1
  store double %173, ptr %172, align 8
  %174 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %175 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %176 = extractvalue { double, double } %174, 0
  store double %176, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %178 = extractvalue { double, double } %174, 1
  store double %178, ptr %177, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  %179 = load ptr, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %180 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %181 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %182 = extractvalue { double, double } %180, 0
  store double %182, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %184 = extractvalue { double, double } %180, 1
  store double %184, ptr %183, align 8
  %185 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %34)
  %186 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %187 = extractvalue { double, double } %185, 0
  store double %187, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %189 = extractvalue { double, double } %185, 1
  store double %189, ptr %188, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %179, ptr noundef nonnull align 8 dereferenceable(16) %37)
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  %190 = load ptr, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %191 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %192 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %193 = extractvalue { double, double } %191, 0
  store double %193, ptr %192, align 8
  %194 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %195 = extractvalue { double, double } %191, 1
  store double %195, ptr %194, align 8
  %196 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %34)
  %197 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %198 = extractvalue { double, double } %196, 0
  store double %198, ptr %197, align 8
  %199 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %200 = extractvalue { double, double } %196, 1
  store double %200, ptr %199, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %190, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  store i32 2, ptr %8, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %201

201:                                              ; preds = %125, %103, %97, %69, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %202 = load i32, ptr %8, align 4
  ret i32 %202
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI7vector2ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector211unit_normalEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, 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.vector2 = type { double, double }

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 5) i32 @_Z15intersection_cc7vector2dS_dRSt6vectorIS_SaIS_EE(double %0, double %1, double noundef %2, double %3, double %4, double noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #0 {
  %8 = alloca %struct.vector2, align 8
  %9 = alloca %struct.vector2, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.vector2, align 8
  %14 = alloca double, align 8
  %15 = alloca %struct.vector2, align 8
  %16 = alloca %struct.vector2, align 8
  %17 = alloca %struct.vector2, align 8
  %18 = alloca %struct.vector2, align 8
  %19 = alloca double, align 8
  %20 = alloca %struct.vector2, align 8
  %21 = alloca %struct.vector2, align 8
  %22 = alloca %struct.vector2, align 8
  %23 = alloca %struct.vector2, align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.vector2, align 8
  %26 = alloca %struct.vector2, align 8
  %27 = alloca %struct.vector2, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca %struct.vector2, align 8
  %32 = alloca %struct.vector2, align 8
  %33 = alloca %struct.vector2, align 8
  %34 = alloca %struct.vector2, align 8
  %35 = alloca %struct.vector2, align 8
  %36 = alloca %struct.vector2, align 8
  %37 = alloca %struct.vector2, align 8
  store double %0, ptr %8, align 8
  %38 = getelementptr inbounds i8, ptr %8, i64 8
  store double %1, ptr %38, align 8
  store double %3, ptr %9, align 8
  %39 = getelementptr inbounds i8, ptr %9, i64 8
  store double %4, ptr %39, align 8
  store double %2, ptr %10, align 8, !tbaa !5
  store double %5, ptr %11, align 8, !tbaa !5
  tail call void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  tail call void @_ZNSt6vectorI7vector2SaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 2)
  %40 = fcmp olt double %2, %5
  br i1 %40, label %41, label %42

41:                                               ; preds = %7
  call void @_ZSt4swapI7vector2ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %42

42:                                               ; preds = %41, %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %43 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %44 = extractvalue { double, double } %43, 0
  store double %44, ptr %13, align 8
  %45 = getelementptr inbounds i8, ptr %13, i64 8
  %46 = extractvalue { double, double } %43, 1
  store double %46, ptr %45, align 8
  %47 = call noundef double @_ZNK7vector26lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  store double %47, ptr %12, align 8, !tbaa !5
  %48 = load double, ptr %10, align 8, !tbaa !5
  %49 = load double, ptr %11, align 8, !tbaa !5
  %50 = fadd double %48, %49
  %51 = fcmp ogt double %47, %50
  br i1 %51, label %154, label %52

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store double %50, ptr %14, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br i1 %53, label %54, label %71

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %55 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %56 = extractvalue { double, double } %55, 0
  store double %56, ptr %18, align 8
  %57 = getelementptr inbounds i8, ptr %18, i64 8
  %58 = extractvalue { double, double } %55, 1
  store double %58, ptr %57, align 8
  %59 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %17, align 8
  %61 = getelementptr inbounds i8, ptr %17, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %63 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %64 = extractvalue { double, double } %63, 0
  store double %64, ptr %16, align 8
  %65 = getelementptr inbounds i8, ptr %16, i64 8
  %66 = extractvalue { double, double } %63, 1
  store double %66, ptr %65, align 8
  %67 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %68 = extractvalue { double, double } %67, 0
  store double %68, ptr %15, align 8
  %69 = getelementptr inbounds i8, ptr %15, i64 8
  %70 = extractvalue { double, double } %67, 1
  store double %70, ptr %69, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %154

71:                                               ; preds = %52
  %72 = load double, ptr %12, align 8, !tbaa !5
  %73 = load double, ptr %10, align 8, !tbaa !5
  %74 = load double, ptr %11, align 8, !tbaa !5
  %75 = fsub double %73, %74
  %76 = fcmp olt double %72, %75
  br i1 %76, label %154, label %77

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  store double %75, ptr %19, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  br i1 %78, label %79, label %96

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %80 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %81 = extractvalue { double, double } %80, 0
  store double %81, ptr %23, align 8
  %82 = getelementptr inbounds i8, ptr %23, i64 8
  %83 = extractvalue { double, double } %80, 1
  store double %83, ptr %82, align 8
  %84 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %85 = extractvalue { double, double } %84, 0
  store double %85, ptr %22, align 8
  %86 = getelementptr inbounds i8, ptr %22, i64 8
  %87 = extractvalue { double, double } %84, 1
  store double %87, ptr %86, align 8
  %88 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %89 = extractvalue { double, double } %88, 0
  store double %89, ptr %21, align 8
  %90 = getelementptr inbounds i8, ptr %21, i64 8
  %91 = extractvalue { double, double } %88, 1
  store double %91, ptr %90, align 8
  %92 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %93 = extractvalue { double, double } %92, 0
  store double %93, ptr %20, align 8
  %94 = getelementptr inbounds i8, ptr %20, i64 8
  %95 = extractvalue { double, double } %92, 1
  store double %95, ptr %94, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %154

96:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #6
  %97 = load double, ptr %12, align 8, !tbaa !5
  %98 = load double, ptr %10, align 8, !tbaa !5
  %99 = fmul double %98, %98
  %100 = call double @llvm.fmuladd.f64(double %97, double %97, double %99)
  %101 = load double, ptr %11, align 8, !tbaa !5
  %102 = fneg double %101
  %103 = call double @llvm.fmuladd.f64(double %102, double %101, double %100)
  %104 = fmul double %97, 2.000000e+00
  %105 = fdiv double %103, %104
  store double %105, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  %106 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %107 = extractvalue { double, double } %106, 0
  store double %107, ptr %27, align 8
  %108 = getelementptr inbounds i8, ptr %27, i64 8
  %109 = extractvalue { double, double } %106, 1
  store double %109, ptr %108, align 8
  %110 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %111 = extractvalue { double, double } %110, 0
  store double %111, ptr %26, align 8
  %112 = getelementptr inbounds i8, ptr %26, i64 8
  %113 = extractvalue { double, double } %110, 1
  store double %113, ptr %112, align 8
  %114 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %115 = extractvalue { double, double } %114, 0
  store double %115, ptr %25, align 8
  %116 = getelementptr inbounds i8, ptr %25, i64 8
  %117 = extractvalue { double, double } %114, 1
  store double %117, ptr %116, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #6
  %118 = load double, ptr %10, align 8, !tbaa !5
  %119 = load double, ptr %24, align 8, !tbaa !5
  %120 = fneg double %119
  %121 = fmul double %119, %120
  %122 = call double @llvm.fmuladd.f64(double %118, double %118, double %121)
  store double %122, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  store double 0.000000e+00, ptr %30, align 8, !tbaa !5
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = call double @sqrt(double noundef %124) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  store double %125, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #6
  %126 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %127 = extractvalue { double, double } %126, 0
  store double %127, ptr %33, align 8
  %128 = getelementptr inbounds i8, ptr %33, i64 8
  %129 = extractvalue { double, double } %126, 1
  store double %129, ptr %128, align 8
  %130 = call { double, double } @_ZNK7vector211unit_normalEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  %131 = extractvalue { double, double } %130, 0
  store double %131, ptr %32, align 8
  %132 = getelementptr inbounds i8, ptr %32, i64 8
  %133 = extractvalue { double, double } %130, 1
  store double %133, ptr %132, align 8
  %134 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %135 = extractvalue { double, double } %134, 0
  store double %135, ptr %31, align 8
  %136 = getelementptr inbounds i8, ptr %31, i64 8
  %137 = extractvalue { double, double } %134, 1
  store double %137, ptr %136, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #6
  %138 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %139 = extractvalue { double, double } %138, 0
  store double %139, ptr %35, align 8
  %140 = getelementptr inbounds i8, ptr %35, i64 8
  %141 = extractvalue { double, double } %138, 1
  store double %141, ptr %140, align 8
  %142 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %143 = extractvalue { double, double } %142, 0
  store double %143, ptr %34, align 8
  %144 = getelementptr inbounds i8, ptr %34, i64 8
  %145 = extractvalue { double, double } %142, 1
  store double %145, ptr %144, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %34)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  %146 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %147 = extractvalue { double, double } %146, 0
  store double %147, ptr %37, align 8
  %148 = getelementptr inbounds i8, ptr %37, i64 8
  %149 = extractvalue { double, double } %146, 1
  store double %149, ptr %148, align 8
  %150 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %151 = extractvalue { double, double } %150, 0
  store double %151, ptr %36, align 8
  %152 = getelementptr inbounds i8, ptr %36, i64 8
  %153 = extractvalue { double, double } %150, 1
  store double %153, ptr %152, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #6
  br label %154

154:                                              ; preds = %71, %42, %96, %79, %54
  %.0 = phi i32 [ 3, %54 ], [ 1, %79 ], [ 2, %96 ], [ 4, %42 ], [ 0, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  ret i32 %.0
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI7vector2ENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector211unit_normalEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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