; LLVM IR from dtecta/motion-toolkit :: curve/Extruder.ll (ZNK2cv8Extruder7hasLoopEv)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.cv::Extruder" = type { float, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cv::Sample, std::allocator<cv::Sample>>::_Vector_impl" }
%"struct.std::_Vector_base<cv::Sample, std::allocator<cv::Sample>>::_Vector_impl" = type { %"struct.std::_Vector_base<cv::Sample, std::allocator<cv::Sample>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cv::Sample, std::allocator<cv::Sample>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cv::Sample" = type <{ %"class.mt::Matrix4x4", float, [12 x i8] }>
%"class.mt::Matrix4x4" = type { [4 x %"class.mt::Vector4"] }
%"class.mt::Vector4" = type { %union.anon }
%union.anon = type { <4 x float> }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZNK2cv8Extruder7hasLoopEv = external hidden unnamed_addr constant [35 x i8], align 1

; 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 noundef zeroext i1 @_ZNK2cv8Extruder7hasLoopEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #1 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"class.cv::Extruder", ptr %13, i32 0, i32 1
  %15 = call noundef zeroext i1 @_ZNKSt6vectorIN2cv6SampleESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %16 = xor i1 %15, true
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  br label %20

18:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 103, ptr noundef @__PRETTY_FUNCTION__._ZNK2cv8Extruder7hasLoopEv) #8
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %21 = getelementptr inbounds %"class.cv::Extruder", ptr %13, i32 0, i32 1
  %22 = call ptr @_ZNKSt6vectorIN2cv6SampleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %24 = getelementptr inbounds %"class.cv::Extruder", ptr %13, i32 0, i32 1
  %25 = call ptr @_ZNKSt6vectorIN2cv6SampleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  %27 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 1) #7
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %29

29:                                               ; preds = %72, %20
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  store i32 2, ptr %7, align 4
  br label %74

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %33 = call noundef nonnull align 16 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  store ptr %33, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %34 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 1) #7
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  %36 = call noundef nonnull align 16 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  store ptr %36, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.cv::Sample", ptr %37, i32 0, i32 0
  %39 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %38)
  %40 = getelementptr inbounds %"class.mt::Vector4", ptr %39, i64 1
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.cv::Sample", ptr %41, i32 0, i32 0
  %43 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %42)
  %44 = getelementptr inbounds %"class.mt::Vector4", ptr %43, i64 1
  %45 = call noundef float @_ZN2mt6angle3INS_7Vector4IfEEEENT_10ScalarTypeERKS3_S6_(ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef nonnull align 16 dereferenceable(16) %44)
  store float %45, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.cv::Sample", ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 16, !tbaa !11
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.cv::Sample", ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 16, !tbaa !11
  %52 = fsub float %48, %51
  store float %52, ptr %12, align 4, !tbaa !9
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.cv::Sample", ptr %53, i32 0, i32 0
  %55 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %54)
  %56 = getelementptr inbounds %"class.mt::Vector4", ptr %55, i64 1
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.cv::Sample", ptr %57, i32 0, i32 0
  %59 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %58)
  %60 = getelementptr inbounds %"class.mt::Vector4", ptr %59, i64 1
  %61 = call noundef float @_ZN2mt3dotIffEENS_7PromoteIT_T0_E2RTERKNS_7Vector4IS2_EERKNS6_IS3_EE(ptr noundef nonnull align 16 dereferenceable(16) %56, ptr noundef nonnull align 16 dereferenceable(16) %60)
  %62 = fcmp olt float %61, 0x3FEB333340000000
  br i1 %62, label %67, label %63

63:                                               ; preds = %32
  %64 = load float, ptr %11, align 4, !tbaa !9
  %65 = load float, ptr %12, align 4, !tbaa !9
  %66 = fcmp ogt float %64, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %63, %32
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %69

68:                                               ; preds = %63
  store i32 0, ptr %7, align 4
  br label %69

69:                                               ; preds = %68, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %70 = load i32, ptr %7, align 4
  switch i32 %70, label %74 [
    i32 0, label %71
  ]

71:                                               ; preds = %69
  br label %72

72:                                               ; preds = %71
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br label %29, !llvm.loop !14

74:                                               ; preds = %69, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %75 = load i32, ptr %7, align 4
  switch i32 %75, label %79 [
    i32 2, label %76
    i32 1, label %77
  ]

76:                                               ; preds = %74
  store i1 false, ptr %2, align 1
  br label %77

77:                                               ; preds = %76, %74
  %78 = load i1, ptr %2, align 1
  ret i1 %78

79:                                               ; preds = %74
  unreachable
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN2mt6angle3INS_7Vector4IfEEEENT_10ScalarTypeERKS3_S6_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN2mt3dotIffEENS_7PromoteIT_T0_E2RTERKNS_7Vector4IS2_EERKNS6_IS3_EE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { alwaysinline 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 = { alwaysinline 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 64}
!12 = !{!"_ZTSN2cv6SampleE", !13, i64 0, !10, i64 64}
!13 = !{!"_ZTSN2mt9Matrix4x4IfEE", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZNK2cv8Extruder7hasLoopEv = external hidden unnamed_addr constant [35 x i8], align 1

; 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
define dso_local noundef zeroext i1 @_ZNK2cv8Extruder7hasLoopEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = tail call noundef zeroext i1 @_ZNKSt6vectorIN2cv6SampleESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 103, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK2cv8Extruder7hasLoopEv) #8
  unreachable

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %10 = tail call ptr @_ZNKSt6vectorIN2cv6SampleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  store ptr %10, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %11 = tail call ptr @_ZNKSt6vectorIN2cv6SampleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  store ptr %11, ptr %4, align 8
  %12 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 1) #7
  store ptr %12, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %13 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9, %.critedge
  %14 = call noundef nonnull align 16 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %15 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef 1) #7
  store ptr %15, ptr %5, align 8
  %16 = call noundef nonnull align 16 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %17 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %14)
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %16)
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = call noundef float @_ZN2mt6angle3INS_7Vector4IfEEEENT_10ScalarTypeERKS3_S6_(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) %20)
  %22 = getelementptr inbounds i8, ptr %16, i64 64
  %23 = load float, ptr %22, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %14, i64 64
  %25 = load float, ptr %24, align 16, !tbaa !5
  %26 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %14)
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = call noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64) %16)
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = call noundef float @_ZN2mt3dotIffEENS_7PromoteIT_T0_E2RTERKNS_7Vector4IS2_EERKNS6_IS3_EE(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %29)
  %31 = fcmp olt float %30, 0x3FEB333340000000
  %32 = fsub float %23, %25
  %33 = fcmp ogt float %21, %32
  %or.cond = select i1 %31, i1 true, i1 %33
  br i1 %or.cond, label %._crit_edge, label %.critedge

.critedge:                                        ; preds = %.lr.ph
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.critedge, %.lr.ph, %9
  %.lcssa = phi i1 [ false, %9 ], [ %or.cond, %.lr.ph ], [ %or.cond, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret i1 %.lcssa
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(68) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2cv6SampleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN2mt6angle3INS_7Vector4IfEEEENT_10ScalarTypeERKS3_S6_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2mt9Matrix4x4IfEcvPKNS_7Vector4IfEEEv(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN2mt3dotIffEENS_7PromoteIT_T0_E2RTERKNS_7Vector4IS2_EERKNS6_IS3_EE(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #6

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

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { alwaysinline 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 = { alwaysinline 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !10, i64 64}
!6 = !{!"_ZTSN2cv6SampleE", !7, i64 0, !10, i64 64}
!7 = !{!"_ZTSN2mt9Matrix4x4IfEE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass