; LLVM IR from buresjan/optim_lbm :: nomad/ext/sgtelib/src/TrainingSet.ll (ZN7SGTELIB11TrainingSet10compute_DsEv)

; 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.SGTELIB::TrainingSet" = type { ptr, i32, i32, i32, i8, ptr, i8, i32, double, double, i32, %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", %"class.SGTELIB::Matrix", i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%"class.SGTELIB::Matrix" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; 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 @_ZN7SGTELIB11TrainingSet10compute_DsEv(ptr noundef nonnull align 8 dereferenceable(504) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %11 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 1
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 18
  store i32 %12, ptr %13, align 8, !tbaa !18
  %14 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 37
  store double 0.000000e+00, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !20
  br label %15

15:                                               ; preds = %89, %1
  %16 = load i32, ptr %6, align 4, !tbaa !20
  %17 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = sub nsw i32 %18, 1
  %20 = icmp slt i32 %16, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %15
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %92

22:                                               ; preds = %15
  %23 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 15
  %24 = load i32, ptr %6, align 4, !tbaa !20
  %25 = load i32, ptr %6, align 4, !tbaa !20
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %24, i32 noundef %25, double noundef 0.000000e+00)
  store i8 1, ptr %5, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %26 = load i32, ptr %6, align 4, !tbaa !20
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %8, align 4, !tbaa !20
  br label %28

28:                                               ; preds = %78, %22
  %29 = load i32, ptr %8, align 4, !tbaa !20
  %30 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %81

34:                                               ; preds = %28
  store double 0.000000e+00, ptr %3, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !20
  br label %35

35:                                               ; preds = %55, %34
  %36 = load i32, ptr %9, align 4, !tbaa !20
  %37 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !23
  %39 = icmp slt i32 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %58

41:                                               ; preds = %35
  %42 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 13
  %43 = load i32, ptr %6, align 4, !tbaa !20
  %44 = load i32, ptr %9, align 4, !tbaa !20
  %45 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %42, i32 noundef %43, i32 noundef %44)
  %46 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 13
  %47 = load i32, ptr %8, align 4, !tbaa !20
  %48 = load i32, ptr %9, align 4, !tbaa !20
  %49 = call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %46, i32 noundef %47, i32 noundef %48)
  %50 = fsub double %45, %49
  store double %50, ptr %4, align 8, !tbaa !22
  %51 = load double, ptr %4, align 8, !tbaa !22
  %52 = load double, ptr %4, align 8, !tbaa !22
  %53 = load double, ptr %3, align 8, !tbaa !22
  %54 = call double @llvm.fmuladd.f64(double %51, double %52, double %53)
  store double %54, ptr %3, align 8, !tbaa !22
  br label %55

55:                                               ; preds = %41
  %56 = load i32, ptr %9, align 4, !tbaa !20
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !20
  br label %35, !llvm.loop !24

58:                                               ; preds = %40
  %59 = load double, ptr %3, align 8, !tbaa !22
  %60 = call double @sqrt(double noundef %59) #6
  store double %60, ptr %3, align 8, !tbaa !22
  %61 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 15
  %62 = load i32, ptr %6, align 4, !tbaa !20
  %63 = load i32, ptr %8, align 4, !tbaa !20
  %64 = load double, ptr %3, align 8, !tbaa !22
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %61, i32 noundef %62, i32 noundef %63, double noundef %64)
  %65 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 15
  %66 = load i32, ptr %8, align 4, !tbaa !20
  %67 = load i32, ptr %6, align 4, !tbaa !20
  %68 = load double, ptr %3, align 8, !tbaa !22
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %65, i32 noundef %66, i32 noundef %67, double noundef %68)
  %69 = load double, ptr %3, align 8, !tbaa !22
  %70 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 37
  %71 = load double, ptr %70, align 8, !tbaa !19
  %72 = fadd double %71, %69
  store double %72, ptr %70, align 8, !tbaa !19
  %73 = load double, ptr %3, align 8, !tbaa !22
  %74 = call double @llvm.fabs.f64(double %73)
  %75 = fcmp olt double %74, 1.000000e-13
  br i1 %75, label %76, label %77

76:                                               ; preds = %58
  store i8 0, ptr %5, align 1, !tbaa !21
  br label %77

77:                                               ; preds = %76, %58
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %8, align 4, !tbaa !20
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !20
  br label %28, !llvm.loop !26

81:                                               ; preds = %33
  %82 = load i8, ptr %5, align 1, !tbaa !21, !range !27, !noundef !28
  %83 = trunc i8 %82 to i1
  br i1 %83, label %88, label %84

84:                                               ; preds = %81
  %85 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 18
  %86 = load i32, ptr %85, align 8, !tbaa !18
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %85, align 8, !tbaa !18
  br label %88

88:                                               ; preds = %84, %81
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %6, align 4, !tbaa !20
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %6, align 4, !tbaa !20
  br label %15, !llvm.loop !29

92:                                               ; preds = %21
  %93 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 18
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 18
  %96 = load i32, ptr %95, align 8, !tbaa !18
  %97 = sub nsw i32 %96, 1
  %98 = mul nsw i32 %94, %97
  %99 = sdiv i32 %98, 2
  %100 = sitofp i32 %99 to double
  %101 = getelementptr inbounds %"class.SGTELIB::TrainingSet", ptr %10, i32 0, i32 37
  %102 = load double, ptr %101, align 8, !tbaa !19
  %103 = fdiv double %102, %100
  store double %103, ptr %101, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef) #5

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN7SGTELIB11TrainingSetE", !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !6, i64 24, !12, i64 32, !11, i64 36, !13, i64 40, !13, i64 48, !11, i64 56, !14, i64 64, !14, i64 120, !14, i64 176, !14, i64 232, !14, i64 288, !11, i64 344, !11, i64 348, !11, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !11, i64 416, !11, i64 420, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !13, i64 496}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN7SGTELIB6MatrixE", !15, i64 8, !11, i64 40, !11, i64 44, !6, i64 48}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!10, !11, i64 352}
!19 = !{!10, !13, i64 496}
!20 = !{!11, !11, i64 0}
!21 = !{!12, !12, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!10, !11, i64 12}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !25}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB11TrainingSet10compute_DsEv(ptr noundef nonnull align 8 dereferenceable(504) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 %3, ptr %4, align 8, !tbaa !17
  %5 = getelementptr inbounds i8, ptr %0, i64 496
  store double 0.000000e+00, ptr %5, align 8, !tbaa !18
  %6 = icmp sgt i32 %3, 1
  br i1 %6, label %.lr.ph38, label %._crit_edge39

.lr.ph38:                                         ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 288
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  br label %17

._crit_edge39.loopexit:                           ; preds = %.critedge
  %.pre = load i32, ptr %4, align 8, !tbaa !17
  %.pre40 = load double, ptr %5, align 8, !tbaa !18
  br label %._crit_edge39

._crit_edge39:                                    ; preds = %._crit_edge39.loopexit, %1
  %10 = phi double [ %.pre40, %._crit_edge39.loopexit ], [ 0.000000e+00, %1 ]
  %11 = phi i32 [ %.pre, %._crit_edge39.loopexit ], [ %3, %1 ]
  %12 = add nsw i32 %11, -1
  %13 = mul nsw i32 %12, %11
  %14 = sdiv i32 %13, 2
  %15 = sitofp i32 %14 to double
  %16 = fdiv double %10, %15
  store double %16, ptr %5, align 8, !tbaa !18
  ret void

17:                                               ; preds = %.lr.ph38, %.critedge
  %.02736 = phi i32 [ 0, %.lr.ph38 ], [ %18, %.critedge ]
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %.02736, i32 noundef %.02736, double noundef 0.000000e+00)
  %18 = add nuw nsw i32 %.02736, 1
  %19 = load i32, ptr %2, align 8, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.preheader, label %.critedge

.preheader:                                       ; preds = %17, %._crit_edge
  %.02633 = phi i32 [ %28, %._crit_edge ], [ %18, %17 ]
  %.02832 = phi i1 [ %.1, %._crit_edge ], [ true, %17 ]
  %21 = load i32, ptr %8, align 4, !tbaa !19
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

._crit_edge34:                                    ; preds = %._crit_edge
  br i1 %.1, label %.critedge, label %38

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.029.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %34, %.lr.ph ]
  %23 = tail call double @sqrt(double noundef %.029.lcssa) #5
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %.02736, i32 noundef %.02633, double noundef %23)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %.02633, i32 noundef %.02736, double noundef %23)
  %24 = load double, ptr %5, align 8, !tbaa !18
  %25 = fadd double %23, %24
  store double %25, ptr %5, align 8, !tbaa !18
  %26 = tail call double @llvm.fabs.f64(double %23)
  %27 = fcmp uge double %26, 1.000000e-13
  %.1 = select i1 %27, i1 %.02832, i1 false
  %28 = add nuw nsw i32 %.02633, 1
  %29 = load i32, ptr %2, align 8, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %.preheader, label %._crit_edge34, !llvm.loop !20

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.031 = phi i32 [ %35, %.lr.ph ], [ 0, %.preheader ]
  %.02930 = phi double [ %34, %.lr.ph ], [ 0.000000e+00, %.preheader ]
  %31 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %.02736, i32 noundef %.031)
  %32 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEii(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %.02633, i32 noundef %.031)
  %33 = fsub double %31, %32
  %34 = tail call double @llvm.fmuladd.f64(double %33, double %33, double %.02930)
  %35 = add nuw nsw i32 %.031, 1
  %36 = load i32, ptr %8, align 4, !tbaa !19
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !22

38:                                               ; preds = %._crit_edge34
  %39 = load i32, ptr %4, align 8, !tbaa !17
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %4, align 8, !tbaa !17
  br label %.critedge

.critedge:                                        ; preds = %17, %._crit_edge34, %38
  %41 = phi i32 [ %19, %17 ], [ %29, %._crit_edge34 ], [ %29, %38 ]
  %42 = add nsw i32 %41, -1
  %43 = icmp slt i32 %18, %42
  br i1 %43, label %17, label %._crit_edge39.loopexit, !llvm.loop !23
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { "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, !7, i64 8}
!6 = !{!"_ZTSN7SGTELIB11TrainingSetE", !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !11, i64 24, !10, i64 32, !7, i64 36, !12, i64 40, !12, i64 48, !7, i64 56, !13, i64 64, !13, i64 120, !13, i64 176, !13, i64 232, !13, i64 288, !7, i64 344, !7, i64 348, !7, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !7, i64 416, !7, i64 420, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !12, i64 496}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!"_ZTSN7SGTELIB6MatrixE", !14, i64 8, !7, i64 40, !7, i64 44, !11, i64 48}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !8, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!6, !7, i64 352}
!18 = !{!6, !12, i64 496}
!19 = !{!6, !7, i64 12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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