; LLVM IR from robotic-vision-lab/Cloud-Object-Recognition-Engine :: 3rdparty/libsvm/svm.ll (ZN6KernelC2EiPKP8svm_nodeRK13svm_parameter)

; 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.Kernel = type { %class.QMatrix, { i64, i64 }, ptr, ptr, i32, i32, double, double }
%class.QMatrix = type { ptr }
%struct.svm_parameter = type { i32, i32, i32, double, double, double, double, double, i32, ptr, ptr, double, double, i32, i32 }

@_ZTV6Kernel = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6KernelC2EiPKP8svm_nodeRK13svm_parameter(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(104) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @_ZN7QMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTV6Kernel, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 4
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.svm_parameter, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 4, !tbaa !13
  store i32 %16, ptr %13, align 8, !tbaa !16
  %17 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 5
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.svm_parameter, ptr %18, i32 0, i32 2
  %20 = load i32, ptr %19, align 8, !tbaa !19
  store i32 %20, ptr %17, align 4, !tbaa !20
  %21 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 6
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.svm_parameter, ptr %22, i32 0, i32 3
  %24 = load double, ptr %23, align 8, !tbaa !21
  store double %24, ptr %21, align 8, !tbaa !22
  %25 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 7
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.svm_parameter, ptr %26, i32 0, i32 4
  %28 = load double, ptr %27, align 8, !tbaa !23
  store double %28, ptr %25, align 8, !tbaa !24
  %29 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 4
  %30 = load i32, ptr %29, align 8, !tbaa !16
  switch i32 %30, label %41 [
    i32 0, label %31
    i32 1, label %33
    i32 2, label %35
    i32 3, label %37
    i32 4, label %39
  ]

31:                                               ; preds = %4
  %32 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 1
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Kernel13kernel_linearEii to i64), i64 0 }, ptr %32, align 8, !tbaa !25
  br label %41

33:                                               ; preds = %4
  %34 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 1
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Kernel11kernel_polyEii to i64), i64 0 }, ptr %34, align 8, !tbaa !25
  br label %41

35:                                               ; preds = %4
  %36 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 1
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Kernel10kernel_rbfEii to i64), i64 0 }, ptr %36, align 8, !tbaa !25
  br label %41

37:                                               ; preds = %4
  %38 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 1
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Kernel14kernel_sigmoidEii to i64), i64 0 }, ptr %38, align 8, !tbaa !25
  br label %41

39:                                               ; preds = %4
  %40 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 1
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Kernel18kernel_precomputedEii to i64), i64 0 }, ptr %40, align 8, !tbaa !25
  br label %41

41:                                               ; preds = %39, %37, %35, %33, %31, %4
  %42 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 2
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZL5cloneIKP8svm_nodePKS0_EvRPT0_PT_i(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef %43, i32 noundef %44)
          to label %45 unwind label %64

45:                                               ; preds = %41
  %46 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 4
  %47 = load i32, ptr %46, align 8, !tbaa !16
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %96

49:                                               ; preds = %45
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %51, i64 8)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = extractvalue { i64, i1 } %52, 0
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %55) #8
          to label %57 unwind label %64

57:                                               ; preds = %49
  %58 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 3
  store ptr %56, ptr %58, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %88, %57
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %68, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %95

64:                                               ; preds = %49, %41
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  br label %99

68:                                               ; preds = %59
  %69 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !27
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = invoke noundef double @_ZN6Kernel3dotEPK8svm_nodeS2_(ptr noundef %74, ptr noundef %80)
          to label %82 unwind label %91

82:                                               ; preds = %68
  %83 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !26
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  store double %81, ptr %87, align 8, !tbaa !28
  br label %88

88:                                               ; preds = %82
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !9
  br label %59, !llvm.loop !29

91:                                               ; preds = %68
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %99

95:                                               ; preds = %63
  br label %98

96:                                               ; preds = %45
  %97 = getelementptr inbounds %class.Kernel, ptr %12, i32 0, i32 3
  store ptr null, ptr %97, align 8, !tbaa !26
  br label %98

98:                                               ; preds = %96, %95
  ret void

99:                                               ; preds = %91, %64
  call void @_ZN7QMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %9, align 8
  %102 = load i32, ptr %10, align 4
  %103 = insertvalue { ptr, i32 } poison, ptr %101, 0
  %104 = insertvalue { ptr, i32 } %103, i32 %102, 1
  resume { ptr, i32 } %104
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel13kernel_linearEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK6Kernel11kernel_polyEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel10kernel_rbfEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel14kernel_sigmoidEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel18kernel_precomputedEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL5cloneIKP8svm_nodePKS0_EvRPT0_PT_i(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN6Kernel3dotEPK8svm_nodeS2_(ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7QMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 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 = { 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 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 #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 = { nobuiltin allocsize(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 = { builtin allocsize(0) }

!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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"_ZTS13svm_parameter", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !15, i64 80, !15, i64 88, !10, i64 96, !10, i64 100}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !10, i64 40}
!17 = !{!"_ZTS6Kernel", !18, i64 0, !7, i64 8, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !15, i64 48, !15, i64 56}
!18 = !{!"_ZTS7QMatrix"}
!19 = !{!14, !10, i64 8}
!20 = !{!17, !10, i64 44}
!21 = !{!14, !15, i64 16}
!22 = !{!17, !15, i64 48}
!23 = !{!14, !15, i64 24}
!24 = !{!17, !15, i64 56}
!25 = !{!17, !7, i64 8}
!26 = !{!17, !6, i64 32}
!27 = !{!17, !6, i64 24}
!28 = !{!15, !15, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"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"

@_ZTV6Kernel = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6KernelC2EiPKP8svm_nodeRK13svm_parameter(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(104) %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7QMatrixC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTV6Kernel, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = getelementptr inbounds i8, ptr %3, i64 4
  %7 = load <2 x i32>, ptr %6, align 4, !tbaa !8
  store <2 x i32> %7, ptr %5, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  %10 = load <2 x double>, ptr %9, align 8, !tbaa !11
  store <2 x double> %10, ptr %8, align 8, !tbaa !11
  %11 = extractelement <2 x i32> %7, i64 0
  switch i32 %11, label %17 [
    i32 0, label %.sink.split
    i32 1, label %12
    i32 2, label %13
    i32 3, label %14
    i32 4, label %15
  ]

12:                                               ; preds = %4
  br label %.sink.split

13:                                               ; preds = %4
  br label %.sink.split

14:                                               ; preds = %4
  br label %.sink.split

15:                                               ; preds = %4
  br label %.sink.split

.sink.split:                                      ; preds = %4, %12, %13, %14, %15
  %.sink = phi i64 [ ptrtoint (ptr @_ZNK6Kernel18kernel_precomputedEii to i64), %15 ], [ ptrtoint (ptr @_ZNK6Kernel14kernel_sigmoidEii to i64), %14 ], [ ptrtoint (ptr @_ZNK6Kernel10kernel_rbfEii to i64), %13 ], [ ptrtoint (ptr @_ZNK6Kernel11kernel_polyEii to i64), %12 ], [ ptrtoint (ptr @_ZNK6Kernel13kernel_linearEii to i64), %4 ]
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %.sink, ptr %16, align 8, !tbaa !13
  %.repack15 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 0, ptr %.repack15, align 8, !tbaa !13
  br label %17

17:                                               ; preds = %.sink.split, %4
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZL5cloneIKP8svm_nodePKS0_EvRPT0_PT_i(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %2, i32 noundef %1)
          to label %19 unwind label %31

19:                                               ; preds = %17
  %20 = load i32, ptr %5, align 8, !tbaa !17
  %21 = icmp eq i32 %20, 2
  br i1 %21, label %22, label %39

22:                                               ; preds = %19
  %23 = zext i32 %1 to i64
  %24 = icmp slt i32 %1, 0
  %25 = shl nuw nsw i64 %23, 3
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %26) #6
          to label %28 unwind label %31

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %27, ptr %29, align 8, !tbaa !18
  %30 = icmp sgt i32 %1, 0
  br i1 %30, label %.lr.ph, label %.loopexit

31:                                               ; preds = %22, %17
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7QMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %32

.lr.ph:                                           ; preds = %28, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %28 ]
  %33 = load ptr, ptr %18, align 8, !tbaa !19
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = tail call noundef double @_ZN6Kernel3dotEPK8svm_nodeS2_(ptr noundef %35, ptr noundef %35)
  %37 = load ptr, ptr %29, align 8, !tbaa !18
  %38 = getelementptr inbounds double, ptr %37, i64 %indvars.iv
  store double %36, ptr %38, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %23
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !21

39:                                               ; preds = %19
  %40 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %40, align 8, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %28, %39
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel13kernel_linearEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK6Kernel11kernel_polyEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel10kernel_rbfEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel14kernel_sigmoidEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Kernel18kernel_precomputedEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL5cloneIKP8svm_nodePKS0_EvRPT0_PT_i(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN6Kernel3dotEPK8svm_nodeS2_(ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { 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 #4 = { nobuiltin allocsize(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 }
attributes #6 = { builtin allocsize(0) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS6Kernel", !15, i64 0, !10, i64 8, !16, i64 24, !16, i64 32, !9, i64 40, !9, i64 44, !12, i64 48, !12, i64 56}
!15 = !{!"_ZTS7QMatrix"}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!14, !9, i64 40}
!18 = !{!14, !16, i64 32}
!19 = !{!14, !16, i64 24}
!20 = !{!16, !16, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass