; LLVM IR from fogleman/CellularForms :: tracer/src/colormap.ll (ZNK8Colormap2AtEd)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8Colormap2AtEd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %class.Vec3, align 8
  %12 = alloca %class.Vec3, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store double %2, ptr %5, align 8, !tbaa !9
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %17 = getelementptr inbounds %class.Colormap, ptr %16, i32 0, i32 0
  %18 = call noundef i64 @_ZNKSt6vectorI4Vec3SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %19 = trunc i64 %18 to i32
  store i32 %19, ptr %6, align 4, !tbaa !11
  %20 = load double, ptr %5, align 8, !tbaa !9
  %21 = fcmp ole double %20, 0.000000e+00
  br i1 %21, label %22, label %25

22:                                               ; preds = %3
  %23 = getelementptr inbounds %class.Colormap, ptr %16, i32 0, i32 0
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %92

25:                                               ; preds = %3
  %26 = load double, ptr %5, align 8, !tbaa !9
  %27 = fcmp oge double %26, 1.000000e+00
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = getelementptr inbounds %class.Colormap, ptr %16, i32 0, i32 0
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %30, i64 24, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %92

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %32 = load double, ptr %5, align 8, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !11
  %34 = sub nsw i32 %33, 1
  %35 = sitofp i32 %34 to double
  %36 = fmul double %32, %35
  %37 = fptosi double %36 to i32
  store i32 %37, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %38 = load i32, ptr %6, align 4, !tbaa !11
  %39 = sub nsw i32 %38, 1
  %40 = sitofp i32 %39 to double
  %41 = fdiv double 1.000000e+00, %40
  store double %41, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %42 = load double, ptr %5, align 8, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !11
  %44 = sitofp i32 %43 to double
  %45 = load double, ptr %9, align 8, !tbaa !9
  %46 = fneg double %44
  %47 = call double @llvm.fmuladd.f64(double %46, double %45, double %42)
  %48 = load double, ptr %9, align 8, !tbaa !9
  %49 = fdiv double %47, %48
  store double %49, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %50 = getelementptr inbounds %class.Colormap, ptr %16, i32 0, i32 0
  %51 = load i32, ptr %8, align 4, !tbaa !11
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %53, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %54 = getelementptr inbounds %class.Colormap, ptr %16, i32 0, i32 0
  %55 = load i32, ptr %8, align 4, !tbaa !11
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %57) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %58, i64 24, i1 false), !tbaa.struct !13
  %59 = load double, ptr %10, align 8, !tbaa !9
  %60 = fcmp ole double %59, 0.000000e+00
  br i1 %60, label %61, label %62

61:                                               ; preds = %31
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %11, i64 24, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %91

62:                                               ; preds = %31
  %63 = load double, ptr %10, align 8, !tbaa !9
  %64 = fcmp oge double %63, 1.000000e+00
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %91

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %67 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %68 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %69 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %70 = fsub double %68, %69
  %71 = load double, ptr %10, align 8, !tbaa !9
  %72 = call double @llvm.fmuladd.f64(double %70, double %71, double %67)
  %73 = call noundef double @_Z5Clampddd(double noundef %72, double noundef 0.000000e+00, double noundef 1.000000e+00)
  store double %73, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %74 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %75 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %76 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %77 = fsub double %75, %76
  %78 = load double, ptr %10, align 8, !tbaa !9
  %79 = call double @llvm.fmuladd.f64(double %77, double %78, double %74)
  %80 = call noundef double @_Z5Clampddd(double noundef %79, double noundef 0.000000e+00, double noundef 1.000000e+00)
  store double %80, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %81 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %82 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %83 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %84 = fsub double %82, %83
  %85 = load double, ptr %10, align 8, !tbaa !9
  %86 = call double @llvm.fmuladd.f64(double %84, double %85, double %81)
  %87 = call noundef double @_Z5Clampddd(double noundef %86, double noundef 0.000000e+00, double noundef 1.000000e+00)
  store double %87, ptr %15, align 8, !tbaa !9
  %88 = load double, ptr %13, align 8, !tbaa !9
  %89 = load double, ptr %14, align 8, !tbaa !9
  %90 = load double, ptr %15, align 8, !tbaa !9
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %0, double noundef %88, double noundef %89, double noundef %90)
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %91

91:                                               ; preds = %66, %65, %61
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %92

92:                                               ; preds = %91, %28, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret void
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z5Clampddd(double noundef, double noundef, double noundef) #5

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}


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

%class.Vec3 = type { double, double, double }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8Colormap2AtEd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %class.Vec3, align 8
  %5 = alloca %class.Vec3, align 8
  %6 = tail call noundef i64 @_ZNKSt6vectorI4Vec3SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %7 = trunc i64 %6 to i32
  %8 = fcmp ugt double %2, 0.000000e+00
  br i1 %8, label %11, label %9

9:                                                ; preds = %3
  %10 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !5
  br label %55

11:                                               ; preds = %3
  %12 = fcmp ult double %2, 1.000000e+00
  br i1 %12, label %15, label %13

13:                                               ; preds = %11
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %14, i64 24, i1 false), !tbaa.struct !5
  br label %55

15:                                               ; preds = %11
  %16 = add nsw i32 %7, -1
  %17 = sitofp i32 %16 to double
  %18 = fmul double %17, %2
  %19 = fptosi double %18 to i32
  %20 = fdiv double 1.000000e+00, %17
  %21 = sitofp i32 %19 to double
  %22 = fneg double %21
  %23 = tail call double @llvm.fmuladd.f64(double %22, double %20, double %2)
  %24 = fdiv double %23, %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %25 = sext i32 %19 to i64
  %26 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %25) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %26, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %27 = add nsw i32 %19, 1
  %28 = sext i32 %27 to i64
  %29 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %28) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %29, i64 24, i1 false), !tbaa.struct !5
  %30 = fcmp ugt double %24, 0.000000e+00
  br i1 %30, label %32, label %31

31:                                               ; preds = %15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i64 24, i1 false), !tbaa.struct !5
  br label %54

32:                                               ; preds = %15
  %33 = fcmp ult double %24, 1.000000e+00
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  tail call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %29, i64 24, i1 false)
  br label %54

35:                                               ; preds = %32
  %36 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %37 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %38 = call noundef double @_ZNK4Vec31REv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %39 = fsub double %37, %38
  %40 = call double @llvm.fmuladd.f64(double %39, double %24, double %36)
  %41 = call noundef double @_Z5Clampddd(double noundef %40, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %42 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %43 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %44 = call noundef double @_ZNK4Vec31GEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %45 = fsub double %43, %44
  %46 = call double @llvm.fmuladd.f64(double %45, double %24, double %42)
  %47 = call noundef double @_Z5Clampddd(double noundef %46, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %48 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %49 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %50 = call noundef double @_ZNK4Vec31BEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %51 = fsub double %49, %50
  %52 = call double @llvm.fmuladd.f64(double %51, double %24, double %48)
  %53 = call noundef double @_Z5Clampddd(double noundef %52, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %0, double noundef %41, double noundef %47, double noundef %53)
  br label %54

54:                                               ; preds = %35, %34, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %55

55:                                               ; preds = %54, %13, %9
  ret void
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z5Clampddd(double noundef, double noundef, double noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 8, !6, i64 8, i64 8, !6, i64 16, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass