; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (Sphere3)

; 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.Riemann::Sphere3" = type { %"class.Maths::TVector3", float }
%"class.Maths::TVector3" = type { float, float, float }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_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
declare dso_local void @_ZN7Riemann7Sphere335ComputeBoundingSphere_MostSeparatedEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind noalias writable sret(%"class.Riemann::Sphere3") align 4, ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann7Sphere337ComputeBoundingSphere_RitterIterationEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind noalias writable sret(%"class.Riemann::Sphere3") align 4 %0, ptr noundef %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.Riemann::Sphere3", align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %17)
          to label %18 unwind label %32

18:                                               ; preds = %3
  %19 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = mul i64 %22, 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %20, i64 %23, i1 false)
  %24 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN7Riemann7Sphere335ComputeBoundingSphere_MostSeparatedEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind writable sret(%"class.Riemann::Sphere3") align 4 %0, ptr noundef %24, i32 noundef %25)
          to label %26 unwind label %32

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  invoke void @_ZN7Riemann7Sphere3C2ERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %27 unwind label %36

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 8, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %90, %27
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = icmp slt i32 %29, 8
  br i1 %30, label %40, label %31

31:                                               ; preds = %28
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %94

32:                                               ; preds = %18, %3
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %8, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %9, align 4
  br label %96

36:                                               ; preds = %26
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  br label %95

40:                                               ; preds = %28
  %41 = getelementptr inbounds %"class.Riemann::Sphere3", ptr %10, i32 0, i32 1
  %42 = load float, ptr %41, align 4, !tbaa !11
  %43 = fmul float %42, 0x3FEE666660000000
  %44 = getelementptr inbounds %"class.Riemann::Sphere3", ptr %10, i32 0, i32 1
  store float %43, ptr %44, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %69, %40
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %76

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = sub nsw i32 %53, 1
  %55 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %52, i32 noundef %54)
          to label %56 unwind label %72

56:                                               ; preds = %50
  store i32 %55, ptr %15, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %58) #5
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %61) #5
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %62)
          to label %63 unwind label %72

63:                                               ; preds = %56
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %65) #5
  %67 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(12) %66)
          to label %68 unwind label %72

68:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %14, align 4, !tbaa !9
  br label %45, !llvm.loop !15

72:                                               ; preds = %63, %56, %50
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %93

76:                                               ; preds = %49
  %77 = getelementptr inbounds %"class.Riemann::Sphere3", ptr %10, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = getelementptr inbounds %"class.Riemann::Sphere3", ptr %0, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = fcmp olt float %78, %80
  br i1 %81, label %82, label %89

82:                                               ; preds = %76
  %83 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %84 unwind label %85

84:                                               ; preds = %82
  br label %89

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  br label %93

89:                                               ; preds = %84, %76
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %12, align 4, !tbaa !9
  br label %28, !llvm.loop !17

93:                                               ; preds = %85, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %95

94:                                               ; preds = %31
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  ret void

95:                                               ; preds = %93, %36
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %96

96:                                               ; preds = %95, %32
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %97

97:                                               ; preds = %96
  %98 = load ptr, ptr %8, align 8
  %99 = load i32, ptr %9, align 4
  %100 = insertvalue { ptr, i32 } poison, ptr %98, 0
  %101 = insertvalue { ptr, i32 } %100, i32 %99, 1
  resume { ptr, i32 } %101
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(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: inlinehint mustprogress uwtable
declare dso_local void @_ZN7Riemann7Sphere3C2ERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 12}
!12 = !{!"_ZTSN7Riemann7Sphere3E", !13, i64 0, !14, i64 12}
!13 = !{!"_ZTSN5Maths8TVector3IfEE", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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.Riemann::Sphere3" = type { %"class.Maths::TVector3", float }
%"class.Maths::TVector3" = type { float, float, float }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 uwtable
declare dso_local void @_ZN7Riemann7Sphere335ComputeBoundingSphere_MostSeparatedEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind noalias writable sret(%"class.Riemann::Sphere3") align 4, ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann7Sphere337ComputeBoundingSphere_RitterIterationEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind noalias writable sret(%"class.Riemann::Sphere3") align 4 %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.5", align 8
  %5 = alloca %"class.Riemann::Sphere3", align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %6 = sext i32 %2 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %6)
          to label %7 unwind label %17

7:                                                ; preds = %3
  %8 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %9 = mul nsw i64 %6, 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %1, i64 %9, i1 false)
  %10 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  invoke void @_ZN7Riemann7Sphere335ComputeBoundingSphere_MostSeparatedEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind writable sret(%"class.Riemann::Sphere3") align 4 %0, ptr noundef %10, i32 noundef %2)
          to label %11 unwind label %17

11:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  invoke void @_ZN7Riemann7Sphere3C2ERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %.preheader unwind label %19

.preheader:                                       ; preds = %11
  %12 = getelementptr inbounds i8, ptr %5, i64 12
  %13 = add nsw i32 %2, -1
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  %smax = call i32 @llvm.smax.i32(i32 %2, i32 0)
  %15 = load float, ptr %12, align 4, !tbaa !5
  %16 = fmul float %15, 0x3FEE666660000000
  store float %16, ptr %12, align 4, !tbaa !5
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %21

17:                                               ; preds = %7, %3
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %181

19:                                               ; preds = %11
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

21:                                               ; preds = %33, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %33 ], [ 0, %.preheader ]
  %exitcond.not = icmp eq i64 %indvars.iv, %wide.trip.count
  br i1 %exitcond.not, label %22, label %26

22:                                               ; preds = %21
  %23 = load float, ptr %12, align 4, !tbaa !5
  %24 = load float, ptr %14, align 4, !tbaa !5
  %25 = fcmp olt float %23, %24
  br i1 %25, label %36, label %40

26:                                               ; preds = %21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = trunc nuw i64 %indvars.iv.next to i32
  %28 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %27, i32 noundef %13)
          to label %29 unwind label %.loopexit

29:                                               ; preds = %26
  %30 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %31 = sext i32 %28 to i64
  %32 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %31) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %32)
          to label %33 unwind label %.loopexit

33:                                               ; preds = %29
  %34 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %35 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %21 unwind label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %26, %29, %33
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %60, %56, %53
  %lpad.loopexit27 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %73, %76, %80
  %lpad.loopexit30 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %100, %96, %93
  %lpad.loopexit32 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %113, %116, %120
  %lpad.loopexit35 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %140, %136, %133
  %lpad.loopexit37 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %153, %156, %160
  %lpad.loopexit40 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %171, %174, %178
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

36:                                               ; preds = %22
  %37 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge unwind label %38

._crit_edge:                                      ; preds = %36
  %.pre = load float, ptr %12, align 4, !tbaa !5
  br label %40

38:                                               ; preds = %168, %148, %128, %108, %88, %68, %48, %36
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

40:                                               ; preds = %._crit_edge, %22
  %41 = phi float [ %.pre, %._crit_edge ], [ %23, %22 ]
  %42 = fmul float %41, 0x3FEE666660000000
  store float %42, ptr %12, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %60, %40
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %60 ], [ 0, %40 ]
  %exitcond.1.not = icmp eq i64 %indvars.iv.1, %wide.trip.count
  br i1 %exitcond.1.not, label %44, label %53

44:                                               ; preds = %43
  %45 = load float, ptr %12, align 4, !tbaa !5
  %46 = load float, ptr %14, align 4, !tbaa !5
  %47 = fcmp olt float %45, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %44
  %49 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge42 unwind label %38

._crit_edge42:                                    ; preds = %48
  %.pre43 = load float, ptr %12, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %._crit_edge42, %44
  %51 = phi float [ %.pre43, %._crit_edge42 ], [ %45, %44 ]
  %52 = fmul float %51, 0x3FEE666660000000
  store float %52, ptr %12, align 4, !tbaa !5
  br label %63

53:                                               ; preds = %43
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %54 = trunc nuw i64 %indvars.iv.next.1 to i32
  %55 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %54, i32 noundef %13)
          to label %56 unwind label %.loopexit.split-lp.loopexit

56:                                               ; preds = %53
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.1) #6
  %58 = sext i32 %55 to i64
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %58) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %59)
          to label %60 unwind label %.loopexit.split-lp.loopexit

60:                                               ; preds = %56
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.1) #6
  %62 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %61)
          to label %43 unwind label %.loopexit.split-lp.loopexit, !llvm.loop !11

63:                                               ; preds = %80, %50
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %80 ], [ 0, %50 ]
  %exitcond.2.not = icmp eq i64 %indvars.iv.2, %wide.trip.count
  br i1 %exitcond.2.not, label %64, label %73

64:                                               ; preds = %63
  %65 = load float, ptr %12, align 4, !tbaa !5
  %66 = load float, ptr %14, align 4, !tbaa !5
  %67 = fcmp olt float %65, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge44 unwind label %38

._crit_edge44:                                    ; preds = %68
  %.pre45 = load float, ptr %12, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %._crit_edge44, %64
  %71 = phi float [ %.pre45, %._crit_edge44 ], [ %65, %64 ]
  %72 = fmul float %71, 0x3FEE666660000000
  store float %72, ptr %12, align 4, !tbaa !5
  br label %83

73:                                               ; preds = %63
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %74 = trunc nuw i64 %indvars.iv.next.2 to i32
  %75 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %74, i32 noundef %13)
          to label %76 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

76:                                               ; preds = %73
  %77 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.2) #6
  %78 = sext i32 %75 to i64
  %79 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %78) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %79)
          to label %80 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

80:                                               ; preds = %76
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.2) #6
  %82 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %81)
          to label %63 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !11

83:                                               ; preds = %100, %70
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %100 ], [ 0, %70 ]
  %exitcond.3.not = icmp eq i64 %indvars.iv.3, %wide.trip.count
  br i1 %exitcond.3.not, label %84, label %93

84:                                               ; preds = %83
  %85 = load float, ptr %12, align 4, !tbaa !5
  %86 = load float, ptr %14, align 4, !tbaa !5
  %87 = fcmp olt float %85, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %84
  %89 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge46 unwind label %38

._crit_edge46:                                    ; preds = %88
  %.pre47 = load float, ptr %12, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %._crit_edge46, %84
  %91 = phi float [ %.pre47, %._crit_edge46 ], [ %85, %84 ]
  %92 = fmul float %91, 0x3FEE666660000000
  store float %92, ptr %12, align 4, !tbaa !5
  br label %103

93:                                               ; preds = %83
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %94 = trunc nuw i64 %indvars.iv.next.3 to i32
  %95 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %94, i32 noundef %13)
          to label %96 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

96:                                               ; preds = %93
  %97 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.3) #6
  %98 = sext i32 %95 to i64
  %99 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %98) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %99)
          to label %100 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

100:                                              ; preds = %96
  %101 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.3) #6
  %102 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %101)
          to label %83 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !11

103:                                              ; preds = %120, %90
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %120 ], [ 0, %90 ]
  %exitcond.4.not = icmp eq i64 %indvars.iv.4, %wide.trip.count
  br i1 %exitcond.4.not, label %104, label %113

104:                                              ; preds = %103
  %105 = load float, ptr %12, align 4, !tbaa !5
  %106 = load float, ptr %14, align 4, !tbaa !5
  %107 = fcmp olt float %105, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge48 unwind label %38

._crit_edge48:                                    ; preds = %108
  %.pre49 = load float, ptr %12, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %._crit_edge48, %104
  %111 = phi float [ %.pre49, %._crit_edge48 ], [ %105, %104 ]
  %112 = fmul float %111, 0x3FEE666660000000
  store float %112, ptr %12, align 4, !tbaa !5
  br label %123

113:                                              ; preds = %103
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %114 = trunc nuw i64 %indvars.iv.next.4 to i32
  %115 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %114, i32 noundef %13)
          to label %116 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

116:                                              ; preds = %113
  %117 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.4) #6
  %118 = sext i32 %115 to i64
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %118) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %117, ptr noundef nonnull align 4 dereferenceable(12) %119)
          to label %120 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

120:                                              ; preds = %116
  %121 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.4) #6
  %122 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %121)
          to label %103 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !11

123:                                              ; preds = %140, %110
  %indvars.iv.5 = phi i64 [ %indvars.iv.next.5, %140 ], [ 0, %110 ]
  %exitcond.5.not = icmp eq i64 %indvars.iv.5, %wide.trip.count
  br i1 %exitcond.5.not, label %124, label %133

124:                                              ; preds = %123
  %125 = load float, ptr %12, align 4, !tbaa !5
  %126 = load float, ptr %14, align 4, !tbaa !5
  %127 = fcmp olt float %125, %126
  br i1 %127, label %128, label %130

128:                                              ; preds = %124
  %129 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge50 unwind label %38

._crit_edge50:                                    ; preds = %128
  %.pre51 = load float, ptr %12, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %._crit_edge50, %124
  %131 = phi float [ %.pre51, %._crit_edge50 ], [ %125, %124 ]
  %132 = fmul float %131, 0x3FEE666660000000
  store float %132, ptr %12, align 4, !tbaa !5
  br label %143

133:                                              ; preds = %123
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %134 = trunc nuw i64 %indvars.iv.next.5 to i32
  %135 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %134, i32 noundef %13)
          to label %136 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

136:                                              ; preds = %133
  %137 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.5) #6
  %138 = sext i32 %135 to i64
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %138) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %137, ptr noundef nonnull align 4 dereferenceable(12) %139)
          to label %140 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

140:                                              ; preds = %136
  %141 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.5) #6
  %142 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %141)
          to label %123 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !11

143:                                              ; preds = %160, %130
  %indvars.iv.6 = phi i64 [ %indvars.iv.next.6, %160 ], [ 0, %130 ]
  %exitcond.6.not = icmp eq i64 %indvars.iv.6, %wide.trip.count
  br i1 %exitcond.6.not, label %144, label %153

144:                                              ; preds = %143
  %145 = load float, ptr %12, align 4, !tbaa !5
  %146 = load float, ptr %14, align 4, !tbaa !5
  %147 = fcmp olt float %145, %146
  br i1 %147, label %148, label %150

148:                                              ; preds = %144
  %149 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %._crit_edge52 unwind label %38

._crit_edge52:                                    ; preds = %148
  %.pre53 = load float, ptr %12, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %._crit_edge52, %144
  %151 = phi float [ %.pre53, %._crit_edge52 ], [ %145, %144 ]
  %152 = fmul float %151, 0x3FEE666660000000
  store float %152, ptr %12, align 4, !tbaa !5
  br label %163

153:                                              ; preds = %143
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %154 = trunc nuw i64 %indvars.iv.next.6 to i32
  %155 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %154, i32 noundef %13)
          to label %156 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

156:                                              ; preds = %153
  %157 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.6) #6
  %158 = sext i32 %155 to i64
  %159 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %158) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %157, ptr noundef nonnull align 4 dereferenceable(12) %159)
          to label %160 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

160:                                              ; preds = %156
  %161 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.6) #6
  %162 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %161)
          to label %143 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !11

163:                                              ; preds = %178, %150
  %indvars.iv.7 = phi i64 [ %indvars.iv.next.7, %178 ], [ 0, %150 ]
  %exitcond.7.not = icmp eq i64 %indvars.iv.7, %wide.trip.count
  br i1 %exitcond.7.not, label %164, label %171

164:                                              ; preds = %163
  %165 = load float, ptr %12, align 4, !tbaa !5
  %166 = load float, ptr %14, align 4, !tbaa !5
  %167 = fcmp olt float %165, %166
  br i1 %167, label %168, label %170

168:                                              ; preds = %164
  %169 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %170 unwind label %38

170:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

171:                                              ; preds = %163
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %172 = trunc nuw i64 %indvars.iv.next.7 to i32
  %173 = invoke noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef %172, i32 noundef %13)
          to label %174 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

174:                                              ; preds = %171
  %175 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.7) #6
  %176 = sext i32 %173 to i64
  %177 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %176) #6
  invoke void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12) %175, ptr noundef nonnull align 4 dereferenceable(12) %177)
          to label %178 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

178:                                              ; preds = %174
  %179 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.7) #6
  %180 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere311EncapsulateERKN5Maths8TVector3IfEE(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %179)
          to label %163 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, !llvm.loop !11

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %38, %19
  %.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %39, %38 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit27, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit30, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit32, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit35, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit37, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit40, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %181

181:                                              ; preds = %.loopexit.split-lp, %17
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit.split-lp ], [ %18, %17 ]
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7Riemann7Sphere3C2ERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5Maths9RandomIntEii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4swapIN5Maths8TVector3IfEEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS6_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SF_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Riemann7Sphere3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !8, i64 12}
!6 = !{!"_ZTSN7Riemann7Sphere3E", !7, i64 0, !8, i64 12}
!7 = !{!"_ZTSN5Maths8TVector3IfEE", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass