; LLVM IR from JessonYue/LeetCodeLearning :: Array/zhouhongkun/HomeWork/MatrixOperation/main.ll (Z9mulMatrix7_MatrixS_)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct._Matrix = type { i32, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [62 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 nounwind uwtable
declare dso_local { i64, ptr } @_Z10initMatrixii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local { i64, ptr } @_Z9mulMatrix7_MatrixS_(i64 %0, ptr %1, i64 %2, ptr %3) #2 {
  %5 = alloca %struct._Matrix, align 8
  %6 = alloca %struct._Matrix, align 8
  %7 = alloca %struct._Matrix, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 0
  store i64 %0, ptr %12, align 8
  %13 = getelementptr inbounds { i64, ptr }, ptr %6, i32 0, i32 1
  store ptr %1, ptr %13, align 8
  %14 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 0
  store i64 %2, ptr %14, align 8
  %15 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 1
  store ptr %3, ptr %15, align 8
  %16 = getelementptr inbounds %struct._Matrix, ptr %6, i32 0, i32 1
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds %struct._Matrix, ptr %7, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp eq i32 %17, %19
  br i1 %20, label %21, label %97

21:                                               ; preds = %4
  %22 = getelementptr inbounds %struct._Matrix, ptr %6, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct._Matrix, ptr %7, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = call { i64, ptr } @_Z10initMatrixii(i32 noundef %23, i32 noundef %25)
  %27 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 0
  %28 = extractvalue { i64, ptr } %26, 0
  store i64 %28, ptr %27, align 8
  %29 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 1
  %30 = extractvalue { i64, ptr } %26, 1
  store ptr %30, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %31

31:                                               ; preds = %92, %21
  %32 = load i32, ptr %8, align 4, !tbaa !12
  %33 = getelementptr inbounds %struct._Matrix, ptr %6, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = icmp slt i32 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %95

37:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %38

38:                                               ; preds = %88, %37
  %39 = load i32, ptr %10, align 4, !tbaa !12
  %40 = getelementptr inbounds %struct._Matrix, ptr %6, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = icmp slt i32 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %38
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %91

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %45

45:                                               ; preds = %84, %44
  %46 = load i32, ptr %11, align 4, !tbaa !12
  %47 = getelementptr inbounds %struct._Matrix, ptr %7, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp slt i32 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %87

51:                                               ; preds = %45
  %52 = getelementptr inbounds %struct._Matrix, ptr %6, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = load i32, ptr %8, align 4, !tbaa !12
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = load i32, ptr %10, align 4, !tbaa !12
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !12
  %62 = getelementptr inbounds %struct._Matrix, ptr %7, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = load i32, ptr %10, align 4, !tbaa !12
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = load i32, ptr %11, align 4, !tbaa !12
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !12
  %72 = mul nsw i32 %61, %71
  %73 = getelementptr inbounds %struct._Matrix, ptr %5, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i32, ptr %8, align 4, !tbaa !12
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %74, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !14
  %79 = load i32, ptr %11, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %78, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !12
  %83 = add nsw i32 %82, %72
  store i32 %83, ptr %81, align 4, !tbaa !12
  br label %84

84:                                               ; preds = %51
  %85 = load i32, ptr %11, align 4, !tbaa !12
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %11, align 4, !tbaa !12
  br label %45, !llvm.loop !15

87:                                               ; preds = %50
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %10, align 4, !tbaa !12
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %10, align 4, !tbaa !12
  br label %38, !llvm.loop !17

91:                                               ; preds = %43
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %8, align 4, !tbaa !12
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %8, align 4, !tbaa !12
  br label %31, !llvm.loop !18

95:                                               ; preds = %36
  %96 = load { i64, ptr }, ptr %5, align 8
  ret { i64, ptr } %96

97:                                               ; preds = %4
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %100

100:                                              ; preds = %97
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { 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 4}
!6 = !{!"_ZTS7_Matrix", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_Z10initMatrixii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local { i64, ptr } @_Z9mulMatrix7_MatrixS_(i64 %0, ptr nocapture readonly %1, i64 %2, ptr nocapture readonly %3) local_unnamed_addr #1 {
  %.sroa.3.0.extract.shift = lshr i64 %0, 32
  %.sroa.3.0.extract.trunc = trunc nuw i64 %.sroa.3.0.extract.shift to i32
  %.sroa.0.0.extract.trunc = trunc i64 %2 to i32
  %.sroa.2.0.extract.shift = lshr i64 %2, 32
  %5 = icmp eq i32 %.sroa.3.0.extract.trunc, %.sroa.0.0.extract.trunc
  br i1 %5, label %6, label %54

6:                                                ; preds = %4
  %.sroa.2.0.extract.trunc = trunc nuw i64 %.sroa.2.0.extract.shift to i32
  %.sroa.013.0.extract.trunc = trunc i64 %0 to i32
  %7 = tail call { i64, ptr } @_Z10initMatrixii(i32 noundef %.sroa.013.0.extract.trunc, i32 noundef %.sroa.2.0.extract.trunc)
  %8 = extractvalue { i64, ptr } %7, 1
  %9 = icmp sgt i32 %.sroa.013.0.extract.trunc, 0
  %10 = icmp sgt i32 %.sroa.3.0.extract.trunc, 0
  %or.cond = and i1 %9, %10
  %11 = icmp sgt i32 %.sroa.2.0.extract.trunc, 0
  %or.cond42 = and i1 %or.cond, %11
  br i1 %or.cond42, label %.preheader20.us.us.preheader, label %._crit_edge

.preheader20.us.us.preheader:                     ; preds = %6
  %wide.trip.count40 = and i64 %0, 2147483647
  %12 = shl nuw nsw i64 %.sroa.2.0.extract.shift, 2
  %13 = shl nuw nsw i64 %.sroa.3.0.extract.shift, 2
  %min.iters.check = icmp ult i64 %2, 34359738368
  %n.vec = and i64 %.sroa.2.0.extract.shift, 2147483640
  %cmp.n = icmp eq i64 %.sroa.2.0.extract.shift, %n.vec
  %14 = and i64 %2, 4294967296
  %lcmp.mod.not = icmp eq i64 %14, 0
  br label %.preheader20.us.us

.preheader20.us.us:                               ; preds = %.preheader20.us.us.preheader, %._crit_edge23.split.us.us.us
  %indvars.iv37 = phi i64 [ 0, %.preheader20.us.us.preheader ], [ %indvars.iv.next38, %._crit_edge23.split.us.us.us ]
  %15 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv37
  %16 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv37
  %17 = load ptr, ptr %15, align 8, !tbaa !5
  %18 = load ptr, ptr %16, align 8, !tbaa !5
  %scevgep = getelementptr i8, ptr %18, i64 %12
  %scevgep43 = getelementptr i8, ptr %17, i64 %13
  %bound0 = icmp ult ptr %18, %scevgep43
  %bound1 = icmp ult ptr %17, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader20.us.us
  %indvars.iv32 = phi i64 [ %indvars.iv.next33, %._crit_edge.us.us.us ], [ 0, %.preheader20.us.us ]
  %19 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv32
  %20 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv32
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader.us.us.us
  %scevgep44 = getelementptr i8, ptr %21, i64 %12
  %bound045 = icmp ult ptr %18, %scevgep44
  %bound146 = icmp ult ptr %21, %scevgep
  %found.conflict47 = and i1 %bound045, %bound146
  %conflict.rdx = or i1 %found.conflict, %found.conflict47
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %22 = load i32, ptr %19, align 4, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert49 = insertelement <4 x i32> poison, i32 %22, i64 0
  %broadcast.splat50 = shufflevector <4 x i32> %broadcast.splatinsert49, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %23 = getelementptr inbounds i32, ptr %21, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %wide.load = load <4 x i32>, ptr %23, align 4, !tbaa !9, !alias.scope !14
  %wide.load48 = load <4 x i32>, ptr %24, align 4, !tbaa !9, !alias.scope !14
  %25 = mul nsw <4 x i32> %wide.load, %broadcast.splat50
  %26 = mul nsw <4 x i32> %wide.load48, %broadcast.splat50
  %27 = getelementptr inbounds i32, ptr %18, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %wide.load51 = load <4 x i32>, ptr %27, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %wide.load52 = load <4 x i32>, ptr %28, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %29 = add nsw <4 x i32> %wide.load51, %25
  %30 = add nsw <4 x i32> %wide.load52, %26
  store <4 x i32> %29, ptr %27, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  store <4 x i32> %30, ptr %28, align 4, !tbaa !9, !alias.scope !16, !noalias !18
  %index.next = add nuw i64 %index, 8
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !19

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

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader.us.us.us
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.us.us.us ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %indvars.iv.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %32 = load i32, ptr %19, align 4, !tbaa !9
  %33 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.ph
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = mul nsw i32 %34, %32
  %36 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv.ph
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = add nsw i32 %37, %35
  store i32 %38, ptr %36, align 4, !tbaa !9
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %39 = icmp eq i64 %.sroa.2.0.extract.shift, %.neg
  br i1 %39, label %._crit_edge.us.us.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %40 = load i32, ptr %19, align 4, !tbaa !9
  %41 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = mul nsw i32 %42, %40
  %44 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = add nsw i32 %45, %43
  store i32 %46, ptr %44, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr %19, align 4, !tbaa !9
  %48 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv.next
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = mul nsw i32 %49, %47
  %51 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv.next
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = add nsw i32 %52, %50
  store i32 %53, ptr %51, align 4, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %.sroa.2.0.extract.shift
  br i1 %exitcond.not.1, label %._crit_edge.us.us.us, label %scalar.ph, !llvm.loop !23

._crit_edge.us.us.us:                             ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %exitcond36.not = icmp eq i64 %indvars.iv.next33, %.sroa.3.0.extract.shift
  br i1 %exitcond36.not, label %._crit_edge23.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !24

._crit_edge23.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %exitcond41.not = icmp eq i64 %indvars.iv.next38, %wide.trip.count40
  br i1 %exitcond41.not, label %._crit_edge, label %.preheader20.us.us, !llvm.loop !25

._crit_edge:                                      ; preds = %._crit_edge23.split.us.us.us, %6
  ret { i64, ptr } %7

54:                                               ; preds = %4
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { 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 #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 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" }

!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 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = !{!17}
!17 = distinct !{!17, !13}
!18 = !{!12, !15}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !20, !21}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass