; LLVM IR from the-hyp0cr1t3/CC :: CSES/Dynamic Programming/Counting Towers.ll (Z6ocoiekv)

; 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_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::array" = type { [2 x %struct.Modint] }
%struct.Modint = type { i32 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6ocoiekv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::array", align 4
  %4 = alloca %"struct.std::array", align 4
  %5 = alloca %struct.Modint, align 4
  %6 = alloca %struct.Modint, align 4
  %7 = alloca %struct.Modint, align 4
  %8 = alloca %struct.Modint, align 4
  %9 = alloca %struct.Modint, align 4
  %10 = alloca %struct.Modint, align 4
  %11 = alloca %struct.Modint, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %13 = getelementptr inbounds %"struct.std::array", ptr %3, i32 0, i32 0
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 1)
  %14 = getelementptr inbounds %struct.Modint, ptr %13, i64 1
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 1)
  store i32 2, ptr %1, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %34, %0
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = icmp sle i32 %16, %17
  br i1 %18, label %19, label %37

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 2)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %21 = call i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = getelementptr inbounds %struct.Modint, ptr %6, i32 0, i32 0
  store i32 %21, ptr %22, align 4
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %24 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = getelementptr inbounds %struct.Modint, ptr %5, i32 0, i32 0
  store i32 %24, ptr %25, align 4
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 4)
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %29 = call i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %30 = getelementptr inbounds %struct.Modint, ptr %9, i32 0, i32 0
  store i32 %29, ptr %30, align 4
  %31 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %32 = getelementptr inbounds %struct.Modint, ptr %8, i32 0, i32 0
  store i32 %31, ptr %32, align 4
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %4, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %34

34:                                               ; preds = %19
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %1, align 4, !tbaa !5
  br label %15, !llvm.loop !12

37:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #6
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #6
  %40 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = getelementptr inbounds %struct.Modint, ptr %11, i32 0, i32 0
  store i32 %40, ptr %41, align 4
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModintIL_ZL3MODEE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %42, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModintIL_ZL3MODEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #0

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 = { "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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5}
!10 = !{i64 0, i64 8, !11}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

%"class.std::basic_istream" = type { ptr, i64, %"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::array" = type { [2 x %struct.Modint] }
%struct.Modint = type { i32 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6ocoiekv() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::array", align 8
  %3 = alloca %"struct.std::array", align 8
  %4 = alloca %struct.Modint, align 4
  %5 = alloca %struct.Modint, align 4
  %6 = alloca %struct.Modint, align 4
  %7 = alloca %struct.Modint, align 4
  %8 = alloca %struct.Modint, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef 1)
  %10 = getelementptr inbounds i8, ptr %2, i64 4
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 1)
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %.not3 = icmp slt i32 %11, 2
  br i1 %.not3, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.04 = phi i32 [ %23, %.lr.ph ], [ 2, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 2)
  %12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 0) #5
  %13 = call i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %12)
  store i32 %13, ptr %4, align 4
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 1) #5
  %15 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 0) #5
  store i32 %15, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 4)
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 1) #5
  %19 = call i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store i32 %19, ptr %6, align 4
  %20 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %3, i64 noundef 1) #5
  store i32 %20, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %22 = load i64, ptr %3, align 8, !tbaa !9
  store i64 %22, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %23 = add nuw nsw i32 %.04, 1
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.04, %24
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 0) #5
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %2, i64 noundef 1) #5
  %27 = call i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  store i32 %27, ptr %8, align 4
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModintIL_ZL3MODEE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %28, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN6ModintIL_ZL3MODEEC2IivEET_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZplRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden i32 @_ZmlRK6ModintIL_ZL3MODEES2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayI6ModintIL_ZL3MODEELm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK6ModintIL_ZL3MODEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass