; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 1/1033. Labyrinth (main)

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

@n = external dso_local global i32, align 4
@mass = external dso_local global [40 x [40 x i8]], align 16
@used = external dso_local global [40 x [40 x i8]], align 16
@ans = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  store i32 0, ptr %1, align 4
  %7 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.memset.p0.i64(ptr align 16 @used, i8 0, i64 1600, i1 false)
  %8 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %9

9:                                                ; preds = %37, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = add nsw i32 %11, 2
  %13 = icmp slt i32 %10, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %40

15:                                               ; preds = %9
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [40 x i8], ptr @mass, i64 0, i64 %17
  store i8 35, ptr %18, align 1, !tbaa !9
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %21
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [40 x i8], ptr %22, i64 0, i64 %24
  store i8 35, ptr %25, align 1, !tbaa !9
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %27
  %29 = getelementptr inbounds [40 x i8], ptr %28, i64 0, i64 0
  store i8 35, ptr %29, align 8, !tbaa !9
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %31
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [40 x i8], ptr %32, i64 0, i64 %35
  store i8 35, ptr %36, align 1, !tbaa !9
  br label %37

37:                                               ; preds = %15
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %2, align 4, !tbaa !5
  br label %9, !llvm.loop !10

40:                                               ; preds = %14
  store i8 63, ptr @mass, align 16, !tbaa !9
  store i8 63, ptr getelementptr inbounds ([40 x [40 x i8]], ptr @mass, i64 0, i64 1), align 8, !tbaa !9
  store i8 63, ptr getelementptr inbounds ([40 x i8], ptr @mass, i64 0, i64 1), align 1, !tbaa !9
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %43
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [40 x i8], ptr %44, i64 0, i64 %47
  store i8 63, ptr %48, align 1, !tbaa !9
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %51
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [40 x i8], ptr %52, i64 0, i64 %54
  store i8 63, ptr %55, align 1, !tbaa !9
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %57
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [40 x i8], ptr %58, i64 0, i64 %61
  store i8 63, ptr %62, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %87, %40
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %90

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %83, %68
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %86

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %6)
  %76 = load i8, ptr %6, align 1, !tbaa !9
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %78
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [40 x i8], ptr %79, i64 0, i64 %81
  store i8 %76, ptr %82, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %83

83:                                               ; preds = %74
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %5, align 4, !tbaa !5
  br label %69, !llvm.loop !12

86:                                               ; preds = %73
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %3, align 4, !tbaa !5
  br label %63, !llvm.loop !13

90:                                               ; preds = %67
  call void @_Z3dfsii(i32 noundef 1, i32 noundef 1)
  %91 = load i32, ptr @n, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %91, i32 noundef %92)
  %93 = load i32, ptr @ans, align 4, !tbaa !5
  %94 = mul nsw i32 %93, 9
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %94)
  %96 = load i32, ptr %1, align 4
  ret i32 %96
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


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

@n = external dso_local global i32, align 4
@mass = external dso_local local_unnamed_addr global [40 x [40 x i8]], align 16
@used = external dso_local local_unnamed_addr global [40 x [40 x i8]], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i8, align 1
  %2 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1600) @used, i8 0, i64 1600, i1 false)
  %3 = 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)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, -2
  %6 = add nsw i32 %4, 1
  br i1 %5, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre33 = sext i32 %6 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %0
  %7 = zext nneg i32 %6 to i64
  %8 = add i32 %4, 2
  %wide.trip.count = zext i32 %8 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %18, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %18 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %10 = getelementptr inbounds [40 x i8], ptr @mass, i64 0, i64 %indvars.iv.unr
  store i8 35, ptr %10, align 1, !tbaa !9
  %11 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %7, i64 %indvars.iv.unr
  store i8 35, ptr %11, align 1, !tbaa !9
  %12 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv.unr
  store i8 35, ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv.unr, i64 %7
  store i8 35, ptr %13, align 1, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.._crit_edge_crit_edge
  %.pre-phi34 = phi i64 [ %.pre33, %.._crit_edge_crit_edge ], [ %7, %._crit_edge.loopexit.unr-lcssa ], [ %7, %._crit_edge.loopexit.epilog-lcssa ]
  store i8 63, ptr @mass, align 16, !tbaa !9
  store i8 63, ptr getelementptr inbounds (i8, ptr @mass, i64 40), align 8, !tbaa !9
  store i8 63, ptr getelementptr inbounds (i8, ptr @mass, i64 1), align 1, !tbaa !9
  %14 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %.pre-phi34, i64 %.pre-phi34
  store i8 63, ptr %14, align 1, !tbaa !9
  %15 = sext i32 %4 to i64
  %16 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %.pre-phi34, i64 %15
  store i8 63, ptr %16, align 1, !tbaa !9
  %17 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %15, i64 %.pre-phi34
  store i8 63, ptr %17, align 1, !tbaa !9
  %.not21 = icmp slt i32 %4, 1
  br i1 %.not21, label %._crit_edge23, label %.preheader

18:                                               ; preds = %18, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %18 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %18 ]
  %19 = getelementptr inbounds [40 x i8], ptr @mass, i64 0, i64 %indvars.iv
  store i8 35, ptr %19, align 2, !tbaa !9
  %20 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %7, i64 %indvars.iv
  store i8 35, ptr %20, align 2, !tbaa !9
  %21 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv
  store i8 35, ptr %21, align 16, !tbaa !9
  %22 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv, i64 %7
  store i8 35, ptr %22, align 1, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %23 = getelementptr inbounds [40 x i8], ptr @mass, i64 0, i64 %indvars.iv.next
  store i8 35, ptr %23, align 1, !tbaa !9
  %24 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %7, i64 %indvars.iv.next
  store i8 35, ptr %24, align 1, !tbaa !9
  %25 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv.next
  store i8 35, ptr %25, align 8, !tbaa !9
  %26 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv.next, i64 %7
  store i8 35, ptr %26, align 1, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %18, !llvm.loop !10

.preheader:                                       ; preds = %._crit_edge, %._crit_edge20
  %27 = phi i32 [ %32, %._crit_edge20 ], [ %4, %._crit_edge ]
  %indvars.iv30 = phi i64 [ %indvars.iv.next31, %._crit_edge20 ], [ 1, %._crit_edge ]
  %.not1517 = icmp slt i32 %27, 1
  br i1 %.not1517, label %.preheader.._crit_edge20_crit_edge, label %.lr.ph19

.preheader.._crit_edge20_crit_edge:               ; preds = %.preheader
  %.pre35 = sext i32 %27 to i64
  br label %._crit_edge20

._crit_edge23:                                    ; preds = %._crit_edge20, %._crit_edge
  call void @_Z3dfsii(i32 noundef 1, i32 noundef 1)
  %28 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z3dfsii(i32 noundef %28, i32 noundef %28)
  %29 = load i32, ptr @ans, align 4, !tbaa !5
  %30 = mul nsw i32 %29, 9
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %30)
  ret i32 0

._crit_edge20:                                    ; preds = %.lr.ph19, %.preheader.._crit_edge20_crit_edge
  %.pre-phi36 = phi i64 [ %.pre35, %.preheader.._crit_edge20_crit_edge ], [ %37, %.lr.ph19 ]
  %32 = phi i32 [ %27, %.preheader.._crit_edge20_crit_edge ], [ %36, %.lr.ph19 ]
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %.not.not = icmp slt i64 %indvars.iv30, %.pre-phi36
  br i1 %.not.not, label %.preheader, label %._crit_edge23, !llvm.loop !12

.lr.ph19:                                         ; preds = %.preheader, %.lr.ph19
  %indvars.iv27 = phi i64 [ %indvars.iv.next28, %.lr.ph19 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #5
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %1)
  %34 = load i8, ptr %1, align 1, !tbaa !9
  %35 = getelementptr inbounds [40 x [40 x i8]], ptr @mass, i64 0, i64 %indvars.iv30, i64 %indvars.iv27
  store i8 %34, ptr %35, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #5
  %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %.not15.not = icmp slt i64 %indvars.iv27, %37
  br i1 %.not15.not, label %.lr.ph19, label %._crit_edge20, !llvm.loop !14
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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"}
!12 = distinct !{!12, !11, !13}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !11}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass