; LLVM IR from eyangch/competitive-programming :: CSES/Dynamic_Programming (counting_towers)

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

@MOD = external dso_local global i64, align 8
@T = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@dp = external dso_local global [1000001 x [2 x [2 x [2 x i64]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3sumi(i32 noundef) #0

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @T)
  store i64 1, ptr getelementptr inbounds ([2 x [2 x i64]], ptr getelementptr inbounds ([2 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 1), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([2 x i64], ptr getelementptr inbounds ([2 x [2 x i64]], ptr getelementptr inbounds ([2 x [2 x [2 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !9
  br label %4

4:                                                ; preds = %106, %0
  %5 = load i32, ptr %2, align 4, !tbaa !9
  %6 = icmp slt i32 %5, 1000000
  br i1 %6, label %8, label %7

7:                                                ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %109

8:                                                ; preds = %4
  %9 = load i32, ptr %2, align 4, !tbaa !9
  %10 = sub nsw i32 %9, 1
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %11
  %13 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %12, i64 0, i64 0
  %14 = getelementptr inbounds [2 x [2 x i64]], ptr %13, i64 0, i64 0
  %15 = getelementptr inbounds [2 x i64], ptr %14, i64 0, i64 0
  %16 = load i64, ptr %15, align 16, !tbaa !5
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = sub nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %19
  %21 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %20, i64 0, i64 1
  %22 = getelementptr inbounds [2 x [2 x i64]], ptr %21, i64 0, i64 1
  %23 = getelementptr inbounds [2 x i64], ptr %22, i64 0, i64 0
  %24 = load i64, ptr %23, align 16, !tbaa !5
  %25 = add nsw i64 %16, %24
  %26 = load i64, ptr @MOD, align 8, !tbaa !5
  %27 = srem i64 %25, %26
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %29
  %31 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %30, i64 0, i64 0
  %32 = getelementptr inbounds [2 x [2 x i64]], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [2 x i64], ptr %32, i64 0, i64 0
  store i64 %27, ptr %33, align 16, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !9
  %35 = sub nsw i32 %34, 1
  %36 = call noundef i64 @_Z3sumi(i32 noundef %35)
  %37 = load i64, ptr @MOD, align 8, !tbaa !5
  %38 = srem i64 %36, %37
  %39 = load i32, ptr %2, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %40
  %42 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %41, i64 0, i64 1
  %43 = getelementptr inbounds [2 x [2 x i64]], ptr %42, i64 0, i64 1
  %44 = getelementptr inbounds [2 x i64], ptr %43, i64 0, i64 1
  store i64 %38, ptr %44, align 8, !tbaa !5
  %45 = load i32, ptr %2, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %46
  %48 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %47, i64 0, i64 1
  %49 = getelementptr inbounds [2 x [2 x i64]], ptr %48, i64 0, i64 1
  %50 = getelementptr inbounds [2 x i64], ptr %49, i64 0, i64 0
  store i64 %38, ptr %50, align 16, !tbaa !5
  %51 = load i32, ptr %2, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %53
  %55 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds [2 x [2 x i64]], ptr %55, i64 0, i64 0
  %57 = getelementptr inbounds [2 x i64], ptr %56, i64 0, i64 1
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !9
  %60 = sub nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %61
  %63 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %62, i64 0, i64 1
  %64 = getelementptr inbounds [2 x [2 x i64]], ptr %63, i64 0, i64 1
  %65 = getelementptr inbounds [2 x i64], ptr %64, i64 0, i64 1
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = add nsw i64 %58, %66
  %68 = load i32, ptr %2, align 4, !tbaa !9
  %69 = sub nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %70
  %72 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %71, i64 0, i64 0
  %73 = getelementptr inbounds [2 x [2 x i64]], ptr %72, i64 0, i64 1
  %74 = getelementptr inbounds [2 x i64], ptr %73, i64 0, i64 1
  %75 = load i64, ptr %74, align 8, !tbaa !5
  %76 = add nsw i64 %67, %75
  %77 = load i32, ptr %2, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %79
  %81 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %80, i64 0, i64 1
  %82 = getelementptr inbounds [2 x [2 x i64]], ptr %81, i64 0, i64 0
  %83 = getelementptr inbounds [2 x i64], ptr %82, i64 0, i64 1
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = add nsw i64 %76, %84
  %86 = load i64, ptr @MOD, align 8, !tbaa !5
  %87 = srem i64 %85, %86
  %88 = load i32, ptr %2, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %89
  %91 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %90, i64 0, i64 0
  %92 = getelementptr inbounds [2 x [2 x i64]], ptr %91, i64 0, i64 1
  %93 = getelementptr inbounds [2 x i64], ptr %92, i64 0, i64 1
  store i64 %87, ptr %93, align 8, !tbaa !5
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %95
  %97 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %96, i64 0, i64 1
  %98 = getelementptr inbounds [2 x [2 x i64]], ptr %97, i64 0, i64 0
  %99 = getelementptr inbounds [2 x i64], ptr %98, i64 0, i64 1
  store i64 %87, ptr %99, align 8, !tbaa !5
  %100 = load i32, ptr %2, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %101
  %103 = getelementptr inbounds [2 x [2 x [2 x i64]]], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds [2 x [2 x i64]], ptr %103, i64 0, i64 0
  %105 = getelementptr inbounds [2 x i64], ptr %104, i64 0, i64 1
  store i64 %87, ptr %105, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %8
  %107 = load i32, ptr %2, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %2, align 4, !tbaa !9
  br label %4, !llvm.loop !11

109:                                              ; preds = %7
  br label %110

110:                                              ; preds = %114, %109
  %111 = load i32, ptr @T, align 4, !tbaa !9
  %112 = add nsw i32 %111, -1
  store i32 %112, ptr @T, align 4, !tbaa !9
  %113 = icmp ne i32 %111, 0
  br i1 %113, label %114, label %123

114:                                              ; preds = %110
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %116 = load i32, ptr @N, align 4, !tbaa !9
  %117 = sub nsw i32 %116, 1
  %118 = call noundef i64 @_Z3sumi(i32 noundef %117)
  %119 = load i64, ptr @MOD, align 8, !tbaa !5
  %120 = srem i64 %118, %119
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %110, !llvm.loop !13

123:                                              ; preds = %110
  %124 = load i32, ptr %1, align 4
  ret i32 %124
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #5

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


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

@MOD = external dso_local local_unnamed_addr global i64, align 8
@T = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@dp = external dso_local local_unnamed_addr global [1000001 x [2 x [2 x [2 x i64]]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3sumi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @T)
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 48), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 56), align 8, !tbaa !5
  %.pre = load i64, ptr @MOD, align 8, !tbaa !5
  br label %4

.preheader:                                       ; preds = %4
  %2 = load i32, ptr @T, align 4, !tbaa !9
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @T, align 4, !tbaa !9
  %.not17 = icmp eq i32 %2, 0
  br i1 %.not17, label %._crit_edge, label %.lr.ph

4:                                                ; preds = %0, %4
  %5 = phi i64 [ %.pre, %0 ], [ %15, %4 ]
  %6 = phi i64 [ 1, %0 ], [ %16, %4 ]
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next, %4 ]
  %7 = add nsw i64 %indvars.iv, -1
  %8 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %7
  %9 = load i64, ptr %8, align 16, !tbaa !5
  %10 = add nsw i64 %6, %9
  %11 = srem i64 %10, %5
  %12 = getelementptr inbounds [1000001 x [2 x [2 x [2 x i64]]]], ptr @dp, i64 0, i64 %indvars.iv
  store i64 %11, ptr %12, align 16, !tbaa !5
  %13 = trunc nuw nsw i64 %7 to i32
  %14 = tail call noundef i64 @_Z3sumi(i32 noundef %13)
  %15 = load i64, ptr @MOD, align 8, !tbaa !5
  %16 = srem i64 %14, %15
  %17 = getelementptr inbounds i8, ptr %12, i64 48
  %18 = getelementptr inbounds i8, ptr %12, i64 56
  store i64 %16, ptr %18, align 8, !tbaa !5
  store i64 %16, ptr %17, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %8, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %8, i64 56
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = add nsw i64 %22, %20
  %24 = getelementptr inbounds i8, ptr %8, i64 24
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = add nsw i64 %23, %25
  %27 = getelementptr inbounds i8, ptr %8, i64 40
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = add nsw i64 %26, %28
  %30 = srem i64 %29, %15
  %31 = getelementptr inbounds i8, ptr %12, i64 24
  store i64 %30, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %12, i64 40
  store i64 %30, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 %30, ptr %33, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000000
  br i1 %exitcond.not, label %.preheader, label %4, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %34 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %35 = load i32, ptr @N, align 4, !tbaa !9
  %36 = add nsw i32 %35, -1
  %37 = tail call noundef i64 @_Z3sumi(i32 noundef %36)
  %38 = load i64, ptr @MOD, align 8, !tbaa !5
  %39 = srem i64 %37, %38
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %39)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %42 = load i32, ptr @T, align 4, !tbaa !9
  %43 = add nsw i32 %42, -1
  store i32 %43, ptr @T, align 4, !tbaa !9
  %.not = icmp eq i32 %42, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  ret i32 0
}

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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 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 #3 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)) #4

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 norecurse 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 = { "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 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" }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass