; LLVM IR from xirc/cp-algorithm :: aoj/CGL/CGL7F/main.ll (Z17tangent_on_circleRK7vector2dS1_RSt6vectorIS_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 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 @_Z17tangent_on_circleRK7vector2dS1_RSt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(16) %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca %struct.vector2, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca %struct.vector2, 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 %struct.vector2, 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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorI7vector2SaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %30 = extractvalue { double, double } %28, 0
  store double %30, ptr %29, align 8
  %31 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %32 = extractvalue { double, double } %28, 1
  store double %32, ptr %31, align 8
  %33 = call noundef double @_ZNK7vector26lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  store double %33, ptr %10, align 8, !tbaa !9
  %34 = load double, ptr %10, align 8, !tbaa !9
  %35 = load double, ptr %7, align 8, !tbaa !9
  %36 = fcmp olt double %34, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %109

38:                                               ; preds = %4
  %39 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %7)
  br i1 %39, label %40, label %43

40:                                               ; preds = %38
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(16) %42)
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %109

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %44 = load double, ptr %7, align 8, !tbaa !9
  %45 = load double, ptr %10, align 8, !tbaa !9
  %46 = fdiv double %44, %45
  %47 = call double @acos(double noundef %46) #4
  store double %47, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %49)
  %51 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %52 = extractvalue { double, double } %50, 0
  store double %52, ptr %51, align 8
  %53 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %54 = extractvalue { double, double } %50, 1
  store double %54, ptr %53, align 8
  %55 = load double, ptr %13, align 8, !tbaa !9
  %56 = call { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %55)
  %57 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %58 = extractvalue { double, double } %56, 0
  store double %58, ptr %57, align 8
  %59 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %60 = extractvalue { double, double } %56, 1
  store double %60, ptr %59, align 8
  %61 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %62 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %63 = extractvalue { double, double } %61, 0
  store double %63, ptr %62, align 8
  %64 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %65 = extractvalue { double, double } %61, 1
  store double %65, ptr %64, align 8
  %66 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %67 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %68 = extractvalue { double, double } %66, 0
  store double %68, ptr %67, align 8
  %69 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %70 = extractvalue { double, double } %66, 1
  store double %70, ptr %69, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(16) %72)
  %74 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %75 = extractvalue { double, double } %73, 0
  store double %75, ptr %74, align 8
  %76 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %77 = extractvalue { double, double } %73, 1
  store double %77, ptr %76, align 8
  %78 = load double, ptr %13, align 8, !tbaa !9
  %79 = fneg double %78
  %80 = call { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %79)
  %81 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %82 = extractvalue { double, double } %80, 0
  store double %82, ptr %81, align 8
  %83 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %84 = extractvalue { double, double } %80, 1
  store double %84, ptr %83, align 8
  %85 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %86 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %87 = extractvalue { double, double } %85, 0
  store double %87, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %89 = extractvalue { double, double } %85, 1
  store double %89, ptr %88, align 8
  %90 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %91 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %92 = extractvalue { double, double } %90, 0
  store double %92, ptr %91, align 8
  %93 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %94 = extractvalue { double, double } %90, 1
  store double %94, ptr %93, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %98 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %99 = extractvalue { double, double } %97, 0
  store double %99, ptr %98, align 8
  %100 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %101 = extractvalue { double, double } %97, 1
  store double %101, ptr %100, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %105 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %106 = extractvalue { double, double } %104, 0
  store double %106, ptr %105, align 8
  %107 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %108 = extractvalue { double, double } %104, 1
  store double %108, ptr %107, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 8 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  store i32 2, ptr %5, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %109

109:                                              ; preds = %43, %40, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %110 = load i32, ptr %5, align 4
  ret i32 %110
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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: 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 { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 @acos(double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #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_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; 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

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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"double", !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 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, 3) i32 @_Z17tangent_on_circleRK7vector2dS1_RSt6vectorIS_SaIS_EE(ptr noundef nonnull align 8 dereferenceable(16) %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #0 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %struct.vector2, align 8
  %8 = alloca %struct.vector2, align 8
  %9 = alloca %struct.vector2, align 8
  %10 = alloca %struct.vector2, align 8
  %11 = alloca %struct.vector2, align 8
  %12 = alloca %struct.vector2, align 8
  %13 = alloca %struct.vector2, align 8
  %14 = alloca %struct.vector2, align 8
  %15 = alloca %struct.vector2, align 8
  %16 = alloca %struct.vector2, align 8
  %17 = alloca %struct.vector2, align 8
  store double %1, ptr %5, align 8, !tbaa !5
  tail call void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  tail call void @_ZNSt6vectorI7vector2SaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %18 = tail call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %19 = extractvalue { double, double } %18, 0
  store double %19, ptr %7, align 8
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  %21 = extractvalue { double, double } %18, 1
  store double %21, ptr %20, align 8
  %22 = call noundef double @_ZNK7vector26lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  store double %22, ptr %6, align 8, !tbaa !5
  %23 = fcmp olt double %22, %1
  br i1 %23, label %73, label %24

24:                                               ; preds = %4
  %25 = call noundef zeroext i1 @_Z2EQRKdS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br label %73

27:                                               ; preds = %24
  %28 = load double, ptr %5, align 8, !tbaa !5
  %29 = load double, ptr %6, align 8, !tbaa !5
  %30 = fdiv double %28, %29
  %31 = call double @acos(double noundef %30) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %32 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %33 = extractvalue { double, double } %32, 0
  store double %33, ptr %11, align 8
  %34 = getelementptr inbounds i8, ptr %11, i64 8
  %35 = extractvalue { double, double } %32, 1
  store double %35, ptr %34, align 8
  %36 = call { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %31)
  %37 = extractvalue { double, double } %36, 0
  store double %37, ptr %10, align 8
  %38 = getelementptr inbounds i8, ptr %10, i64 8
  %39 = extractvalue { double, double } %36, 1
  store double %39, ptr %38, align 8
  %40 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %41 = extractvalue { double, double } %40, 0
  store double %41, ptr %9, align 8
  %42 = getelementptr inbounds i8, ptr %9, i64 8
  %43 = extractvalue { double, double } %40, 1
  store double %43, ptr %42, align 8
  %44 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %8, align 8
  %46 = getelementptr inbounds i8, ptr %8, i64 8
  %47 = extractvalue { double, double } %44, 1
  store double %47, ptr %46, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  %48 = call { double, double } @_ZNK7vector2miERKS_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %49 = extractvalue { double, double } %48, 0
  store double %49, ptr %15, align 8
  %50 = getelementptr inbounds i8, ptr %15, i64 8
  %51 = extractvalue { double, double } %48, 1
  store double %51, ptr %50, align 8
  %52 = fneg double %31
  %53 = call { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %52)
  %54 = extractvalue { double, double } %53, 0
  store double %54, ptr %14, align 8
  %55 = getelementptr inbounds i8, ptr %14, i64 8
  %56 = extractvalue { double, double } %53, 1
  store double %56, ptr %55, align 8
  %57 = call { double, double } @_ZNK7vector210normalizedEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %58 = extractvalue { double, double } %57, 0
  store double %58, ptr %13, align 8
  %59 = getelementptr inbounds i8, ptr %13, i64 8
  %60 = extractvalue { double, double } %57, 1
  store double %60, ptr %59, align 8
  %61 = call { double, double } @_ZNK7vector2mlERKd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %62 = extractvalue { double, double } %61, 0
  store double %62, ptr %12, align 8
  %63 = getelementptr inbounds i8, ptr %12, i64 8
  %64 = extractvalue { double, double } %61, 1
  store double %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  %65 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %66 = extractvalue { double, double } %65, 0
  store double %66, ptr %16, align 8
  %67 = getelementptr inbounds i8, ptr %16, i64 8
  %68 = extractvalue { double, double } %65, 1
  store double %68, ptr %67, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #4
  %69 = call { double, double } @_ZNK7vector2plERKS_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %70 = extractvalue { double, double } %69, 0
  store double %70, ptr %17, align 8
  %71 = getelementptr inbounds i8, ptr %17, i64 8
  %72 = extractvalue { double, double } %69, 1
  store double %72, ptr %71, align 8
  call void @_ZNSt6vectorI7vector2SaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %73

73:                                               ; preds = %4, %27, %26
  %.0 = phi i32 [ 1, %26 ], [ 2, %27 ], [ 0, %4 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI7vector2SaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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: 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 { 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 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 @acos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7vector27rotatedEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) 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_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; 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

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 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 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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