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

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

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

31:                                               ; preds = %85, %29
  %32 = load i32, ptr %5, align 4, !tbaa !19
  %33 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %9, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = icmp slt i32 %32, %34
  br i1 %35, label %36, label %88

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

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

51:                                               ; preds = %77, %45
  %52 = load i32, ptr %6, align 4, !tbaa !19
  %53 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %9, i32 0, i32 3
  %54 = load i32, ptr %53, align 4, !tbaa !17
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %56, label %84

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

77:                                               ; preds = %56
  %78 = load i32, ptr %6, align 4, !tbaa !19
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %6, align 4, !tbaa !19
  br label %51, !llvm.loop !22

80:                                               ; preds = %36, %2
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %89

84:                                               ; preds = %51
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %5, align 4, !tbaa !19
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %5, align 4, !tbaa !19
  br label %31, !llvm.loop !24

88:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

89:                                               ; preds = %80
  %90 = load ptr, ptr %7, align 8
  %91 = load i32, ptr %8, align 4
  %92 = insertvalue { ptr, i32 } poison, ptr %90, 0
  %93 = insertvalue { ptr, i32 } %92, i32 %91, 1
  resume { ptr, i32 } %93
}

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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !16, i64 40}
!12 = !{!"_ZTSN7SGTELIB6MatrixE", !13, i64 8, !16, i64 40, !16, i64 44, !6, i64 48}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!12, !16, i64 44}
!18 = !{!12, !6, i64 48}
!19 = !{!16, !16, i64 0}
!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 @_ZN7SGTELIB6MatrixC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %1) 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
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = getelementptr inbounds i8, ptr %1, i64 40
  %7 = load i32, ptr %6, align 8, !tbaa !8
  store i32 %7, ptr %5, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 44
  %9 = getelementptr inbounds i8, ptr %1, i64 44
  %10 = load i32, ptr %9, align 4, !tbaa !16
  %.fr21 = freeze i32 %10
  store i32 %.fr21, ptr %8, align 4, !tbaa !16
  %11 = sext i32 %7 to i64
  %12 = icmp slt i32 %7, 0
  %13 = shl nsw i64 %11, 3
  %14 = select i1 %12, i64 -1, i64 %13
  %15 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %14) #3
          to label %16 unwind label %.loopexit.split-lp

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

.lr.ph19:                                         ; preds = %16
  %19 = zext nneg i32 %.fr21 to i64
  %20 = icmp slt i32 %.fr21, 0
  %21 = shl nuw nsw i64 %19, 3
  %22 = select i1 %20, i64 -1, i64 %21
  %23 = icmp sgt i32 %.fr21, 0
  %24 = getelementptr inbounds i8, ptr %1, i64 48
  %wide.trip.count32 = zext nneg i32 %7 to i64
  br i1 %23, label %.lr.ph19.split.us.preheader, label %.lr.ph19.split

.lr.ph19.split.us.preheader:                      ; preds = %.lr.ph19
  %wide.trip.count27 = zext nneg i32 %.fr21 to i64
  %min.iters.check = icmp ult i32 %.fr21, 4
  %n.vec = and i64 %wide.trip.count27, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count27
  %xtraiter = and i64 %wide.trip.count27, 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
  %25 = phi ptr [ %15, %.lr.ph19.split.us.preheader ], [ %31, %._crit_edge.us ]
  %indvars.iv29 = phi i64 [ 0, %.lr.ph19.split.us.preheader ], [ %indvars.iv.next30, %._crit_edge.us ]
  %26 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %22) #3
          to label %.lr.ph.us unwind label %.loopexit.split.us

.lr.ph.us:                                        ; preds = %.lr.ph19.split.us
  %27 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv29
  store ptr %26, ptr %27, align 8, !tbaa !18
  %28 = load ptr, ptr %24, align 8, !tbaa !17
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv29
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = load ptr, ptr %17, align 8, !tbaa !17
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv29
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  %34 = ptrtoint ptr %33 to i64
  %35 = ptrtoint ptr %30 to i64
  %36 = sub i64 %34, %35
  %diff.check = icmp ult i64 %36, 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 ]
  %37 = getelementptr inbounds double, ptr %30, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load = load <2 x double>, ptr %37, align 8, !tbaa !19
  %wide.load36 = load <2 x double>, ptr %38, align 8, !tbaa !19
  %39 = getelementptr inbounds double, ptr %33, i64 %index
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store <2 x double> %wide.load, ptr %39, align 8, !tbaa !19
  store <2 x double> %wide.load36, ptr %40, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %41 = icmp eq i64 %index.next, %n.vec
  br i1 %41, 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.iv24.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.iv24.prol = phi i64 [ %indvars.iv.next25.prol, %scalar.ph.prol ], [ %indvars.iv24.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %42 = getelementptr inbounds double, ptr %30, i64 %indvars.iv24.prol
  %43 = load double, ptr %42, align 8, !tbaa !19
  %44 = getelementptr inbounds double, ptr %33, i64 %indvars.iv24.prol
  store double %43, ptr %44, align 8, !tbaa !19
  %indvars.iv.next25.prol = add nuw nsw i64 %indvars.iv24.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.iv24.unr = phi i64 [ %indvars.iv24.ph, %scalar.ph.preheader ], [ %indvars.iv.next25.prol, %scalar.ph.prol ]
  %45 = sub nsw i64 %indvars.iv24.ph, %wide.trip.count27
  %46 = icmp ugt i64 %45, -4
  br i1 %46, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv24 = phi i64 [ %indvars.iv.next25.3, %scalar.ph ], [ %indvars.iv24.unr, %scalar.ph.prol.loopexit ]
  %47 = getelementptr inbounds double, ptr %30, i64 %indvars.iv24
  %48 = load double, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds double, ptr %33, i64 %indvars.iv24
  store double %48, ptr %49, align 8, !tbaa !19
  %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
  %50 = getelementptr inbounds double, ptr %30, i64 %indvars.iv.next25
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next25
  store double %51, ptr %52, align 8, !tbaa !19
  %indvars.iv.next25.1 = add nuw nsw i64 %indvars.iv24, 2
  %53 = getelementptr inbounds double, ptr %30, i64 %indvars.iv.next25.1
  %54 = load double, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next25.1
  store double %54, ptr %55, align 8, !tbaa !19
  %indvars.iv.next25.2 = add nuw nsw i64 %indvars.iv24, 3
  %56 = getelementptr inbounds double, ptr %30, i64 %indvars.iv.next25.2
  %57 = load double, ptr %56, align 8, !tbaa !19
  %58 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next25.2
  store double %57, ptr %58, align 8, !tbaa !19
  %indvars.iv.next25.3 = add nuw nsw i64 %indvars.iv24, 4
  %exitcond28.not.3 = icmp eq i64 %indvars.iv.next25.3, %wide.trip.count27
  br i1 %exitcond28.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.next30 = add nuw nsw i64 %indvars.iv29, 1
  %exitcond33.not = icmp eq i64 %indvars.iv.next30, %wide.trip.count32
  br i1 %exitcond33.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, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 0, %.lr.ph19 ]
  %59 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %22) #3
          to label %60 unwind label %.loopexit.split

60:                                               ; preds = %.lr.ph19.split
  %61 = load ptr, ptr %17, align 8, !tbaa !17
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv
  store ptr %59, ptr %62, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count32
  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 = %2
  %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) %3) #4
  resume { ptr, i32 } %lpad.phi

._crit_edge20:                                    ; preds = %60, %._crit_edge.us, %16
  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,SROAPass,SimplifyCFGPass,TailCallElimPass