; LLVM IR from buresjan/optim_lbm :: nomad/ext/sgtelib/src (Matrix)

; 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::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] }

@_ZTVN7SGTELIB6MatrixE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB6MatrixC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiPPd(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN7SGTELIB6MatrixE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
  %18 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 2
  %19 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %19, ptr %18, align 8, !tbaa !13
  %20 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 3
  %21 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %21, ptr %20, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %22 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = sext i32 %23 to i64
  %25 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %24, i64 8)
  %26 = extractvalue { i64, i1 } %25, 1
  %27 = extractvalue { i64, i1 } %25, 0
  %28 = select i1 %26, i64 -1, i64 %27
  %29 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %28) #6
          to label %30 unwind label %79

30:                                               ; preds = %5
  %31 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 4
  store ptr %29, ptr %31, align 8, !tbaa !19
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %84, %30
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = icmp slt i32 %33, %35
  br i1 %36, label %37, label %87

37:                                               ; preds = %32
  %38 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 3
  %39 = load i32, ptr %38, align 4, !tbaa !18
  %40 = sext i32 %39 to i64
  %41 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %40, i64 8)
  %42 = extractvalue { i64, i1 } %41, 1
  %43 = extractvalue { i64, i1 } %41, 0
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %44) #6
          to label %46 unwind label %79

46:                                               ; preds = %37
  %47 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds ptr, ptr %48, i64 %50
  store ptr %45, ptr %51, align 8, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %76, %46
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 3
  %55 = load i32, ptr %54, align 4, !tbaa !18
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %57, label %83

57:                                               ; preds = %52
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %15, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %68, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  store double %66, ptr %75, align 8, !tbaa !20
  br label %76

76:                                               ; preds = %57
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !9
  br label %52, !llvm.loop !22

79:                                               ; preds = %37, %5
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %13, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %88

83:                                               ; preds = %52
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %11, align 4, !tbaa !9
  br label %32, !llvm.loop !24

87:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void

88:                                               ; preds = %79
  %89 = load ptr, ptr %13, align 8
  %90 = load i32, ptr %14, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 = { 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 = !{!"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 40}
!14 = !{!"_ZTSN7SGTELIB6MatrixE", !15, i64 8, !10, i64 40, !10, 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 = !{!14, !10, i64 44}
!19 = !{!14, !6, i64 48}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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

@_ZTVN7SGTELIB6MatrixE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB6MatrixC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiPPd(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN7SGTELIB6MatrixE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %2, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %3, ptr %8, align 4, !tbaa !16
  %9 = zext i32 %2 to i64
  %10 = icmp slt i32 %2, 0
  %11 = shl nuw nsw i64 %9, 3
  %12 = select i1 %10, i64 -1, i64 %11
  %13 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %12) #3
          to label %14 unwind label %.loopexit.split-lp

14:                                               ; preds = %5
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %13, ptr %15, align 8, !tbaa !17
  %16 = icmp sgt i32 %2, 0
  br i1 %16, label %.lr.ph19, label %._crit_edge20

.lr.ph19:                                         ; preds = %14
  %17 = zext i32 %3 to i64
  %18 = icmp slt i32 %3, 0
  %19 = shl nuw nsw i64 %17, 3
  %20 = select i1 %18, i64 -1, i64 %19
  %21 = icmp sgt i32 %3, 0
  br i1 %21, label %.lr.ph19.split.us.preheader, label %.lr.ph19.split

.lr.ph19.split.us.preheader:                      ; preds = %.lr.ph19
  %min.iters.check = icmp ult i32 %3, 4
  %n.vec = and i64 %17, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %17
  %xtraiter = and i64 %17, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph19.split.us

.lr.ph19.split.us:                                ; preds = %.lr.ph19.split.us.preheader, %._crit_edge.us
  %22 = phi ptr [ %27, %._crit_edge.us ], [ %13, %.lr.ph19.split.us.preheader ]
  %indvars.iv28 = phi i64 [ %indvars.iv.next29, %._crit_edge.us ], [ 0, %.lr.ph19.split.us.preheader ]
  %23 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #3
          to label %.lr.ph.us unwind label %.loopexit.split.us

.lr.ph.us:                                        ; preds = %.lr.ph19.split.us
  %24 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv28
  store ptr %23, ptr %24, align 8, !tbaa !18
  %25 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv28
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = load ptr, ptr %15, align 8, !tbaa !17
  %28 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv28
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  %30 = ptrtoint ptr %29 to i64
  %31 = ptrtoint ptr %26 to i64
  %32 = sub i64 %30, %31
  %diff.check = icmp ult i64 %32, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us ]
  %33 = getelementptr inbounds double, ptr %26, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load = load <2 x double>, ptr %33, align 8, !tbaa !19
  %wide.load35 = load <2 x double>, ptr %34, align 8, !tbaa !19
  %35 = getelementptr inbounds double, ptr %29, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x double> %wide.load, ptr %35, align 8, !tbaa !19
  store <2 x double> %wide.load35, ptr %36, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph.us
  %indvars.iv23.ph = phi i64 [ 0, %.lr.ph.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv23.prol = phi i64 [ %indvars.iv.next24.prol, %scalar.ph.prol ], [ %indvars.iv23.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %38 = getelementptr inbounds double, ptr %26, i64 %indvars.iv23.prol
  %39 = load double, ptr %38, align 8, !tbaa !19
  %40 = getelementptr inbounds double, ptr %29, i64 %indvars.iv23.prol
  store double %39, ptr %40, align 8, !tbaa !19
  %indvars.iv.next24.prol = add nuw nsw i64 %indvars.iv23.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !25

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv23.unr = phi i64 [ %indvars.iv23.ph, %scalar.ph.preheader ], [ %indvars.iv.next24.prol, %scalar.ph.prol ]
  %41 = sub nsw i64 %indvars.iv23.ph, %17
  %42 = icmp ugt i64 %41, -4
  br i1 %42, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv23 = phi i64 [ %indvars.iv.next24.3, %scalar.ph ], [ %indvars.iv23.unr, %scalar.ph.prol.loopexit ]
  %43 = getelementptr inbounds double, ptr %26, i64 %indvars.iv23
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = getelementptr inbounds double, ptr %29, i64 %indvars.iv23
  store double %44, ptr %45, align 8, !tbaa !19
  %indvars.iv.next24 = add nuw nsw i64 %indvars.iv23, 1
  %46 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next24
  %47 = load double, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds double, ptr %29, i64 %indvars.iv.next24
  store double %47, ptr %48, align 8, !tbaa !19
  %indvars.iv.next24.1 = add nuw nsw i64 %indvars.iv23, 2
  %49 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next24.1
  %50 = load double, ptr %49, align 8, !tbaa !19
  %51 = getelementptr inbounds double, ptr %29, i64 %indvars.iv.next24.1
  store double %50, ptr %51, align 8, !tbaa !19
  %indvars.iv.next24.2 = add nuw nsw i64 %indvars.iv23, 3
  %52 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next24.2
  %53 = load double, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds double, ptr %29, i64 %indvars.iv.next24.2
  store double %53, ptr %54, align 8, !tbaa !19
  %indvars.iv.next24.3 = add nuw nsw i64 %indvars.iv23, 4
  %exitcond27.not.3 = icmp eq i64 %indvars.iv.next24.3, %17
  br i1 %exitcond27.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !27

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %exitcond32.not = icmp eq i64 %indvars.iv.next29, %9
  br i1 %exitcond32.not, label %._crit_edge20, label %.lr.ph19.split.us, !llvm.loop !28

.loopexit.split.us:                               ; preds = %.lr.ph19.split.us
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.lr.ph19.split:                                   ; preds = %.lr.ph19, %56
  %indvars.iv = phi i64 [ %indvars.iv.next, %56 ], [ 0, %.lr.ph19 ]
  %55 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #3
          to label %56 unwind label %.loopexit.split

56:                                               ; preds = %.lr.ph19.split
  %57 = load ptr, ptr %15, align 8, !tbaa !17
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv
  store ptr %55, ptr %58, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %9
  br i1 %exitcond.not, label %._crit_edge20, label %.lr.ph19.split, !llvm.loop !28

.loopexit.split:                                  ; preds = %.lr.ph19.split
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

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

.loopexit:                                        ; preds = %.loopexit.split, %.loopexit.split.us, %.loopexit.split-lp
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit.split ], [ %lpad.loopexit.us, %.loopexit.split.us ]
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  resume { ptr, i32 } %lpad.phi

._crit_edge20:                                    ; preds = %56, %._crit_edge.us, %14
  ret void
}

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 = { 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 #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 = { builtin allocsize(0) }
attributes #4 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !15, i64 40}
!9 = !{!"_ZTSN7SGTELIB6MatrixE", !10, i64 8, !15, i64 40, !15, i64 44, !12, i64 48}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !14, i64 8, !13, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"long", !13, i64 0}
!15 = !{!"int", !13, i64 0}
!16 = !{!9, !15, i64 44}
!17 = !{!9, !12, i64 48}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !13, i64 0}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !22, !23}
!28 = distinct !{!28, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass