; LLVM IR from aparis69/Segment-Tracing :: Code/Source/fundamentals.ll (ZNK7Segment9IntersectERK3Box)

; 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.Vector = type { [3 x double] }
%class.Segment = type { %class.Vector, %class.Vector }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplRK6VectorS1_(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlRKdRK6Vector(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Box8DiagonalEv(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiRK6VectorS1_(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Box6CenterEv(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Segment9IntersectERK3Box(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.Vector, align 8
  %7 = alloca %class.Vector, align 8
  %8 = alloca double, align 8
  %9 = alloca %class.Vector, align 8
  %10 = alloca %class.Vector, align 8
  %11 = alloca double, align 8
  %12 = alloca %class.Vector, align 8
  %13 = alloca [3 x double], align 16
  %14 = alloca %class.Vector, align 8
  %15 = alloca %class.Vector, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3Box8DiagonalEv(ptr dead_on_unwind writable sret(%class.Vector) align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %18)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 5.000000e-01, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %19 = getelementptr inbounds %class.Segment, ptr %17, i32 0, i32 1
  %20 = getelementptr inbounds %class.Segment, ptr %17, i32 0, i32 0
  call void @_ZmiRK6VectorS1_(ptr dead_on_unwind writable sret(%class.Vector) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @_ZmlRKdRK6Vector(ptr dead_on_unwind writable sret(%class.Vector) align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 5.000000e-01, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %21 = getelementptr inbounds %class.Segment, ptr %17, i32 0, i32 0
  %22 = getelementptr inbounds %class.Segment, ptr %17, i32 0, i32 1
  call void @_ZplRK6VectorS1_(ptr dead_on_unwind writable sret(%class.Vector) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22)
  call void @_ZmlRKdRK6Vector(ptr dead_on_unwind writable sret(%class.Vector) align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK3Box6CenterEv(ptr dead_on_unwind writable sret(%class.Vector) align 8 %15, ptr noundef nonnull align 8 dereferenceable(48) %23)
  call void @_ZmiRK6VectorS1_(ptr dead_on_unwind writable sret(%class.Vector) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %25 = load double, ptr %24, align 8, !tbaa !9
  %26 = call double @llvm.fabs.f64(double %25)
  %27 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  store double %26, ptr %27, align 16, !tbaa !9
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0)
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = call double @llvm.fabs.f64(double %29)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %34 = load double, ptr %33, align 16, !tbaa !9
  %35 = fadd double %32, %34
  %36 = fcmp ogt double %30, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

38:                                               ; preds = %2
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = call double @llvm.fabs.f64(double %40)
  %42 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  store double %41, ptr %42, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1)
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = call double @llvm.fabs.f64(double %44)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fadd double %47, %49
  %51 = fcmp ogt double %45, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %38
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

53:                                               ; preds = %38
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = call double @llvm.fabs.f64(double %55)
  %57 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  store double %56, ptr %57, align 16, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2)
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = call double @llvm.fabs.f64(double %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %64 = load double, ptr %63, align 16, !tbaa !9
  %65 = fadd double %62, %64
  %66 = fcmp ogt double %60, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %53
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

68:                                               ; preds = %53
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2)
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1)
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = fmul double %74, %76
  %78 = fneg double %77
  %79 = call double @llvm.fmuladd.f64(double %70, double %72, double %78)
  %80 = call double @llvm.fabs.f64(double %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %84 = load double, ptr %83, align 16, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %86 = load double, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = fmul double %86, %88
  %90 = call double @llvm.fmuladd.f64(double %82, double %84, double %89)
  %91 = fcmp ogt double %80, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %68
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

93:                                               ; preds = %68
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0)
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2)
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = fmul double %99, %101
  %103 = fneg double %102
  %104 = call double @llvm.fmuladd.f64(double %95, double %97, double %103)
  %105 = call double @llvm.fabs.f64(double %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %109 = load double, ptr %108, align 16, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %113 = load double, ptr %112, align 16, !tbaa !9
  %114 = fmul double %111, %113
  %115 = call double @llvm.fmuladd.f64(double %107, double %109, double %114)
  %116 = fcmp ogt double %105, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %93
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

118:                                              ; preds = %93
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1)
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0)
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = fmul double %124, %126
  %128 = fneg double %127
  %129 = call double @llvm.fmuladd.f64(double %120, double %122, double %128)
  %130 = call double @llvm.fabs.f64(double %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %136 = load double, ptr %135, align 8, !tbaa !9
  %137 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %138 = load double, ptr %137, align 16, !tbaa !9
  %139 = fmul double %136, %138
  %140 = call double @llvm.fmuladd.f64(double %132, double %134, double %139)
  %141 = fcmp ogt double %130, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %118
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

143:                                              ; preds = %118
  store i1 true, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %144

144:                                              ; preds = %143, %142, %117, %92, %67, %52, %37
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  %145 = load i1, ptr %3, align 1
  ret i1 %145
}

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

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

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

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

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

%class.Vector = type { [3 x double] }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplRK6VectorS1_(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlRKdRK6Vector(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Box8DiagonalEv(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiRK6VectorS1_(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3Box6CenterEv(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Segment9IntersectERK3Box(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %class.Vector, align 8
  %4 = alloca %class.Vector, align 8
  %5 = alloca double, align 8
  %6 = alloca %class.Vector, align 8
  %7 = alloca %class.Vector, align 8
  %8 = alloca double, align 8
  %9 = alloca %class.Vector, align 8
  %10 = alloca %class.Vector, align 8
  %11 = alloca %class.Vector, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNK3Box8DiagonalEv(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store double 5.000000e-01, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZmiRK6VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @_ZmlRKdRK6Vector(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store double 5.000000e-01, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_ZplRK6VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @_ZmlRKdRK6Vector(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @_ZNK3Box6CenterEv(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @_ZmiRK6VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.Vector) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = call double @llvm.fabs.f64(double %14)
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = call double @llvm.fabs.f64(double %17)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fadd double %15, %20
  %22 = fcmp ogt double %18, %21
  br i1 %22, label %105, label %23

23:                                               ; preds = %2
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1)
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = call double @llvm.fabs.f64(double %25)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = call double @llvm.fabs.f64(double %28)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fadd double %26, %31
  %33 = fcmp ogt double %29, %32
  br i1 %33, label %105, label %34

34:                                               ; preds = %23
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2)
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = call double @llvm.fabs.f64(double %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = call double @llvm.fabs.f64(double %39)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = fadd double %37, %42
  %44 = fcmp ogt double %40, %43
  br i1 %44, label %105, label %45

45:                                               ; preds = %34
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1)
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2)
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = fneg double %51
  %55 = fmul double %53, %54
  %56 = call double @llvm.fmuladd.f64(double %47, double %49, double %55)
  %57 = call double @llvm.fabs.f64(double %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fmul double %26, %61
  %63 = call double @llvm.fmuladd.f64(double %59, double %37, double %62)
  %64 = fcmp ogt double %57, %63
  br i1 %64, label %105, label %65

65:                                               ; preds = %45
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 2)
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fneg double %71
  %75 = fmul double %73, %74
  %76 = call double @llvm.fmuladd.f64(double %67, double %69, double %75)
  %77 = call double @llvm.fabs.f64(double %76)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = fmul double %15, %81
  %83 = call double @llvm.fmuladd.f64(double %79, double %37, double %82)
  %84 = fcmp ogt double %77, %83
  br i1 %84, label %105, label %85

85:                                               ; preds = %65
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 0)
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 1)
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
  %93 = load double, ptr %92, align 8, !tbaa !5
  %94 = fneg double %91
  %95 = fmul double %93, %94
  %96 = call double @llvm.fmuladd.f64(double %87, double %89, double %95)
  %97 = call double @llvm.fabs.f64(double %96)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = fmul double %15, %101
  %103 = call double @llvm.fmuladd.f64(double %99, double %26, double %102)
  %104 = fcmp ule double %97, %103
  br label %105

105:                                              ; preds = %85, %65, %45, %34, %23, %2
  %.0 = phi i1 [ false, %2 ], [ false, %23 ], [ false, %34 ], [ false, %45 ], [ false, %65 ], [ %104, %85 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret i1 %.0
}

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

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

attributes #0 = { inlinehint 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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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