; LLVM IR from LiJiangnanBit/path_optimizer :: src/tools/car_geometry.ll (ZN18PathOptimizationNS11CarGeometry10setCirclesEv)

; 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.PathOptimizationNS::CarGeometry" = type { double, double, double, double, %"struct.PathOptimizationNS::State", %"struct.PathOptimizationNS::State", %"struct.PathOptimizationNS::State", %"struct.PathOptimizationNS::State", %"class.std::vector", %"struct.PathOptimizationNS::Circle" }
%"struct.PathOptimizationNS::State" = type { double, double, double, double, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<PathOptimizationNS::Circle, std::allocator<PathOptimizationNS::Circle>>::_Vector_impl" }
%"struct.std::_Vector_base<PathOptimizationNS::Circle, std::allocator<PathOptimizationNS::Circle>>::_Vector_impl" = type { %"struct.std::_Vector_base<PathOptimizationNS::Circle, std::allocator<PathOptimizationNS::Circle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PathOptimizationNS::Circle, std::allocator<PathOptimizationNS::Circle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.PathOptimizationNS::Circle" = type { double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18PathOptimizationNS11CarGeometry10setCirclesEv(ptr noundef nonnull align 8 dereferenceable(304) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  %19 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 2
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 3
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = fsub double %20, %22
  %24 = fdiv double %23, 2.000000e+00
  %25 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 9
  %26 = getelementptr inbounds %"struct.PathOptimizationNS::Circle", ptr %25, i32 0, i32 0
  store double %24, ptr %26, align 8, !tbaa !19
  %27 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 9
  %28 = getelementptr inbounds %"struct.PathOptimizationNS::Circle", ptr %27, i32 0, i32 1
  store double 0.000000e+00, ptr %28, align 8, !tbaa !20
  %29 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 1
  %30 = load double, ptr %29, align 8, !tbaa !21
  %31 = fdiv double %30, 2.000000e+00
  %32 = call double @pow(double noundef %31, double noundef 2.000000e+00) #3
  %33 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %34 = load double, ptr %33, align 8, !tbaa !22
  %35 = fdiv double %34, 2.000000e+00
  %36 = call double @pow(double noundef %35, double noundef 2.000000e+00) #3
  %37 = fadd double %32, %36
  %38 = call double @sqrt(double noundef %37) #3
  %39 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 9
  %40 = getelementptr inbounds %"struct.PathOptimizationNS::Circle", ptr %39, i32 0, i32 2
  store double %38, ptr %40, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %41 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %42 = load double, ptr %41, align 8, !tbaa !22
  %43 = fdiv double %42, 4.000000e+00
  store double %43, ptr %3, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %44 = load double, ptr %3, align 8, !tbaa !24
  %45 = call double @pow(double noundef %44, double noundef 2.000000e+00) #3
  %46 = fmul double 2.000000e+00, %45
  %47 = call double @sqrt(double noundef %46) #3
  store double %47, ptr %4, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %48 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %49 = load double, ptr %48, align 8, !tbaa !22
  %50 = call double @pow(double noundef %49, double noundef 2.000000e+00) #3
  %51 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 1
  %52 = load double, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %54 = load double, ptr %53, align 8, !tbaa !22
  %55 = fsub double %52, %54
  %56 = fdiv double %55, 2.000000e+00
  %57 = call double @pow(double noundef %56, double noundef 2.000000e+00) #3
  %58 = fadd double %50, %57
  %59 = call double @sqrt(double noundef %58) #3
  %60 = fdiv double %59, 2.000000e+00
  store double %60, ptr %5, align 8, !tbaa !24
  %61 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %62 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 7
  %63 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %62, i32 0, i32 0
  %64 = load double, ptr %63, align 8, !tbaa !25
  %65 = load double, ptr %3, align 8, !tbaa !24
  %66 = fadd double %64, %65
  store double %66, ptr %6, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %67 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 7
  %68 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %67, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !26
  %70 = load double, ptr %3, align 8, !tbaa !24
  %71 = fadd double %69, %70
  store double %71, ptr %7, align 8, !tbaa !24
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %73 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %74 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 6
  %75 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %74, i32 0, i32 0
  %76 = load double, ptr %75, align 8, !tbaa !27
  %77 = load double, ptr %3, align 8, !tbaa !24
  %78 = fadd double %76, %77
  store double %78, ptr %8, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %79 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 6
  %80 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %79, i32 0, i32 1
  %81 = load double, ptr %80, align 8, !tbaa !28
  %82 = load double, ptr %3, align 8, !tbaa !24
  %83 = fsub double %81, %82
  store double %83, ptr %9, align 8, !tbaa !24
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %85 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %86 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 5
  %87 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !29
  %89 = load double, ptr %3, align 8, !tbaa !24
  %90 = fsub double %88, %89
  store double %90, ptr %10, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %91 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 5
  %92 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %91, i32 0, i32 1
  %93 = load double, ptr %92, align 8, !tbaa !30
  %94 = load double, ptr %3, align 8, !tbaa !24
  %95 = fadd double %93, %94
  store double %95, ptr %11, align 8, !tbaa !24
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %97 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %98 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 4
  %99 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !31
  %101 = load double, ptr %3, align 8, !tbaa !24
  %102 = fsub double %100, %101
  store double %102, ptr %12, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %103 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 4
  %104 = getelementptr inbounds %"struct.PathOptimizationNS::State", ptr %103, i32 0, i32 1
  %105 = load double, ptr %104, align 8, !tbaa !32
  %106 = load double, ptr %3, align 8, !tbaa !24
  %107 = fsub double %105, %106
  store double %107, ptr %13, align 8, !tbaa !24
  %108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %109 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %110 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 9
  %111 = getelementptr inbounds %"struct.PathOptimizationNS::Circle", ptr %110, i32 0, i32 0
  %112 = load double, ptr %111, align 8, !tbaa !19
  %113 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 1
  %114 = load double, ptr %113, align 8, !tbaa !21
  %115 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %116 = load double, ptr %115, align 8, !tbaa !22
  %117 = fsub double %114, %116
  %118 = fdiv double %117, 4.000000e+00
  %119 = fadd double %112, %118
  store double %119, ptr %14, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !33
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %121 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %122 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 9
  %123 = getelementptr inbounds %"struct.PathOptimizationNS::Circle", ptr %122, i32 0, i32 0
  %124 = load double, ptr %123, align 8, !tbaa !19
  %125 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 1
  %126 = load double, ptr %125, align 8, !tbaa !21
  %127 = getelementptr inbounds %"class.PathOptimizationNS::CarGeometry", ptr %18, i32 0, i32 0
  %128 = load double, ptr %127, align 8, !tbaa !22
  %129 = fsub double %126, %128
  %130 = fdiv double %129, 4.000000e+00
  %131 = fsub double %124, %130
  store double %131, ptr %16, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !33
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

; 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !11, i64 16}
!10 = !{!"_ZTSN18PathOptimizationNS11CarGeometryE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 88, !12, i64 144, !12, i64 200, !13, i64 256, !17, i64 280}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTSN18PathOptimizationNS5StateE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!13 = !{!"_ZTSSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN18PathOptimizationNS6CircleE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!10, !11, i64 24}
!19 = !{!10, !11, i64 280}
!20 = !{!10, !11, i64 288}
!21 = !{!10, !11, i64 8}
!22 = !{!10, !11, i64 0}
!23 = !{!10, !11, i64 296}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 200}
!26 = !{!10, !11, i64 208}
!27 = !{!10, !11, i64 144}
!28 = !{!10, !11, i64 152}
!29 = !{!10, !11, i64 88}
!30 = !{!10, !11, i64 96}
!31 = !{!10, !11, i64 32}
!32 = !{!10, !11, i64 40}
!33 = !{!34, !34, i64 0}
!34 = !{!"int", !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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18PathOptimizationNS11CarGeometry10setCirclesEv(ptr noundef nonnull align 8 dereferenceable(304) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load double, ptr %18, align 8, !tbaa !17
  %20 = fsub double %17, %19
  %21 = fmul double %20, 5.000000e-01
  %22 = getelementptr inbounds i8, ptr %0, i64 280
  store double %21, ptr %22, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 288
  store double 0.000000e+00, ptr %23, align 8, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load double, ptr %24, align 8, !tbaa !20
  %26 = fmul double %25, 5.000000e-01
  %square = fmul double %26, %26
  %27 = load double, ptr %0, align 8, !tbaa !21
  %28 = fmul double %27, 5.000000e-01
  %square10 = fmul double %28, %28
  %29 = fadd double %square, %square10
  %sqrt14 = tail call double @llvm.sqrt.f64(double %29)
  %30 = getelementptr inbounds i8, ptr %0, i64 296
  store double %sqrt14, ptr %30, align 8, !tbaa !22
  %31 = fmul double %27, 2.500000e-01
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %square11 = fmul double %31, %31
  %32 = fmul double %square11, 2.000000e+00
  %33 = tail call double @sqrt(double noundef %32) #4
  store double %33, ptr %2, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %34 = load double, ptr %0, align 8, !tbaa !21
  %square12 = fmul double %34, %34
  %35 = load double, ptr %24, align 8, !tbaa !20
  %36 = fsub double %35, %34
  %37 = fmul double %36, 5.000000e-01
  %square13 = fmul double %37, %37
  %38 = fadd double %square12, %square13
  %sqrt = tail call double @llvm.sqrt.f64(double %38)
  %39 = fmul double %sqrt, 5.000000e-01
  store double %39, ptr %3, align 8, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %0, i64 256
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %41 = getelementptr inbounds i8, ptr %0, i64 200
  %42 = load double, ptr %41, align 8, !tbaa !24
  %43 = fadd double %31, %42
  store double %43, ptr %4, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %44 = getelementptr inbounds i8, ptr %0, i64 208
  %45 = load double, ptr %44, align 8, !tbaa !25
  %46 = fadd double %31, %45
  store double %46, ptr %5, align 8, !tbaa !23
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %48 = getelementptr inbounds i8, ptr %0, i64 144
  %49 = load double, ptr %48, align 8, !tbaa !26
  %50 = fadd double %31, %49
  store double %50, ptr %6, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %51 = getelementptr inbounds i8, ptr %0, i64 152
  %52 = load double, ptr %51, align 8, !tbaa !27
  %53 = fsub double %52, %31
  store double %53, ptr %7, align 8, !tbaa !23
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %55 = getelementptr inbounds i8, ptr %0, i64 88
  %56 = load double, ptr %55, align 8, !tbaa !28
  %57 = fsub double %56, %31
  store double %57, ptr %8, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %58 = getelementptr inbounds i8, ptr %0, i64 96
  %59 = load double, ptr %58, align 8, !tbaa !29
  %60 = fadd double %31, %59
  store double %60, ptr %9, align 8, !tbaa !23
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %62 = getelementptr inbounds i8, ptr %0, i64 32
  %63 = load double, ptr %62, align 8, !tbaa !30
  %64 = fsub double %63, %31
  store double %64, ptr %10, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %65 = getelementptr inbounds i8, ptr %0, i64 40
  %66 = load double, ptr %65, align 8, !tbaa !31
  %67 = fsub double %66, %31
  store double %67, ptr %11, align 8, !tbaa !23
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %69 = load double, ptr %22, align 8, !tbaa !18
  %70 = load double, ptr %24, align 8, !tbaa !20
  %71 = load double, ptr %0, align 8, !tbaa !21
  %72 = fsub double %70, %71
  %73 = fmul double %72, 2.500000e-01
  %74 = fadd double %69, %73
  store double %74, ptr %12, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 0, ptr %13, align 4, !tbaa !32
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %76 = load double, ptr %22, align 8, !tbaa !18
  %77 = load double, ptr %24, align 8, !tbaa !20
  %78 = load double, ptr %0, align 8, !tbaa !21
  %79 = fsub double %77, %78
  %80 = fmul double %79, 2.500000e-01
  %81 = fsub double %76, %80
  store double %81, ptr %14, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  store i32 0, ptr %15, align 4, !tbaa !32
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

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

; 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJddRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE12emplace_backIJdiRdEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 16}
!6 = !{!"_ZTSN18PathOptimizationNS11CarGeometryE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 88, !10, i64 144, !10, i64 200, !11, i64 256, !16, i64 280}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN18PathOptimizationNS5StateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!11 = !{!"_ZTSSt6vectorIN18PathOptimizationNS6CircleESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN18PathOptimizationNS6CircleESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN18PathOptimizationNS6CircleE", !7, i64 0, !7, i64 8, !7, i64 16}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !7, i64 280}
!19 = !{!6, !7, i64 288}
!20 = !{!6, !7, i64 8}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 296}
!23 = !{!7, !7, i64 0}
!24 = !{!6, !7, i64 200}
!25 = !{!6, !7, i64 208}
!26 = !{!6, !7, i64 144}
!27 = !{!6, !7, i64 152}
!28 = !{!6, !7, i64 88}
!29 = !{!6, !7, i64 96}
!30 = !{!6, !7, i64 32}
!31 = !{!6, !7, i64 40}
!32 = !{!33, !33, i64 0}
!33 = !{!"int", !8, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass