; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ/1035.ll (Z3gaov)

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

%struct.graph = type { i8, i32 }
%"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 }

@G = external dso_local global [15 x [15 x %struct.graph]], align 16
@vis = external dso_local global [15 x [15 x i32]], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3gaov() #0 {
  %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 = load i32, ptr @k, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds ([15 x [15 x i32]], ptr @vis, i64 0, i64 1), i64 0, i64 %7
  store i32 1, ptr %8, align 4, !tbaa !5
  %9 = load i32, ptr @k, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [15 x %struct.graph], ptr getelementptr inbounds ([15 x [15 x %struct.graph]], ptr @G, i64 0, i64 1), i64 0, i64 %10
  %12 = getelementptr inbounds %struct.graph, ptr %11, i32 0, i32 1
  store i32 1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %13 = load i32, ptr @k, align 4, !tbaa !5
  store i32 %13, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  br label %14

14:                                               ; preds = %158, %0
  br label %15

15:                                               ; preds = %14
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %17
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [15 x %struct.graph], ptr %18, i64 0, i64 %20
  %22 = getelementptr inbounds %struct.graph, ptr %21, i32 0, i32 0
  %23 = load i8, ptr %22, align 8, !tbaa !11
  %24 = sext i8 %23 to i32
  %25 = icmp eq i32 %24, 69
  br i1 %25, label %26, label %30

26:                                               ; preds = %15
  %27 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %27, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %66

30:                                               ; preds = %15
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %32
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [15 x %struct.graph], ptr %33, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.graph, ptr %36, i32 0, i32 0
  %38 = load i8, ptr %37, align 8, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = icmp eq i32 %39, 83
  br i1 %40, label %41, label %45

41:                                               ; preds = %30
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %44, ptr %4, align 4, !tbaa !5
  br label %65

45:                                               ; preds = %30
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [15 x %struct.graph], ptr %48, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.graph, ptr %51, i32 0, i32 0
  %53 = load i8, ptr %52, align 8, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = icmp eq i32 %54, 87
  br i1 %55, label %56, label %60

56:                                               ; preds = %45
  %57 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %57, ptr %3, align 4, !tbaa !5
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sub nsw i32 %58, 1
  store i32 %59, ptr %4, align 4, !tbaa !5
  br label %64

60:                                               ; preds = %45
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  %63 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %63, ptr %4, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %60, %56
  br label %65

65:                                               ; preds = %64, %41
  br label %66

66:                                               ; preds = %65, %26
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 1
  br i1 %68, label %80, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = icmp sgt i32 %70, %71
  br i1 %72, label %80, label %73

73:                                               ; preds = %69
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 1
  br i1 %75, label %80, label %76

76:                                               ; preds = %73
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = load i32, ptr @m, align 4, !tbaa !5
  %79 = icmp sgt i32 %77, %78
  br i1 %79, label %80, label %91

80:                                               ; preds = %76, %73, %69, %66
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %82
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [15 x %struct.graph], ptr %83, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.graph, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %88)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @.str)
  store i32 1, ptr %5, align 4
  br label %159

91:                                               ; preds = %76
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [15 x [15 x i32]], ptr @vis, i64 0, i64 %93
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [15 x i32], ptr %94, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %125, label %100

100:                                              ; preds = %91
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [15 x [15 x i32]], ptr @vis, i64 0, i64 %102
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [15 x i32], ptr %103, i64 0, i64 %105
  store i32 1, ptr %106, align 4, !tbaa !5
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %108
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [15 x %struct.graph], ptr %109, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.graph, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %117
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [15 x %struct.graph], ptr %118, i64 0, i64 %120
  %122 = getelementptr inbounds %struct.graph, ptr %121, i32 0, i32 1
  store i32 %115, ptr %122, align 4, !tbaa !9
  %123 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %123, ptr %1, align 4, !tbaa !5
  %124 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %124, ptr %2, align 4, !tbaa !5
  br label %157

125:                                              ; preds = %91
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %127
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [15 x %struct.graph], ptr %128, i64 0, i64 %130
  %132 = getelementptr inbounds %struct.graph, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 1
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %134)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef @.str.1)
  %137 = load i32, ptr %1, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %138
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [15 x %struct.graph], ptr %139, i64 0, i64 %141
  %143 = getelementptr inbounds %struct.graph, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load i32, ptr %3, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %146
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [15 x %struct.graph], ptr %147, i64 0, i64 %149
  %151 = getelementptr inbounds %struct.graph, ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = sub nsw i32 %144, %152
  %154 = add nsw i32 %153, 1
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %136, i32 noundef %154)
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.2)
  store i32 1, ptr %5, align 4
  br label %159

157:                                              ; preds = %100
  br label %158

158:                                              ; preds = %157
  br label %14, !llvm.loop !12

159:                                              ; preds = %125, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

; 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) #2

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

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

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 = { 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 #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 = { 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 = !{!10, !6, i64 4}
!10 = !{!"_ZTS5graph", !7, i64 0, !6, i64 4}
!11 = !{!10, !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"

%struct.graph = type { i8, i32 }
%"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 }

@G = external dso_local local_unnamed_addr global [15 x [15 x %struct.graph]], align 16
@vis = external dso_local local_unnamed_addr global [15 x [15 x i32]], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3gaov() local_unnamed_addr #0 {
  %1 = load i32, ptr @k, align 4, !tbaa !5
  %2 = sext i32 %1 to i64
  %3 = getelementptr inbounds [15 x i32], ptr getelementptr inbounds (i8, ptr @vis, i64 60), i64 0, i64 %2
  store i32 1, ptr %3, align 4, !tbaa !5
  %4 = getelementptr inbounds [15 x %struct.graph], ptr getelementptr inbounds (i8, ptr @G, i64 120), i64 0, i64 %2, i32 1
  store i32 1, ptr %4, align 4, !tbaa !9
  %5 = load i32, ptr @n, align 4
  %6 = load i32, ptr @m, align 4
  br label %7

7:                                                ; preds = %34, %0
  %.039 = phi i32 [ 1, %0 ], [ %.03745, %34 ]
  %.038 = phi i32 [ %1, %0 ], [ %.046, %34 ]
  %8 = zext nneg i32 %.039 to i64
  %9 = sext i32 %.038 to i64
  %10 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %8, i64 %9
  %11 = load i8, ptr %10, align 8, !tbaa !11
  switch i8 %11, label %18 [
    i8 69, label %12
    i8 83, label %14
    i8 87, label %16
  ]

12:                                               ; preds = %7
  %13 = add nsw i32 %.038, 1
  br label %.thread

14:                                               ; preds = %7
  %15 = add nuw nsw i32 %.039, 1
  br label %.thread

16:                                               ; preds = %7
  %17 = add nsw i32 %.038, -1
  br label %.thread

18:                                               ; preds = %7
  %19 = add nsw i32 %.039, -1
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %24, label %.thread

.thread:                                          ; preds = %16, %14, %12, %18
  %.046 = phi i32 [ %.038, %18 ], [ %17, %16 ], [ %.038, %14 ], [ %13, %12 ]
  %.03745 = phi i32 [ %19, %18 ], [ %.039, %16 ], [ %15, %14 ], [ %.039, %12 ]
  %21 = icmp sgt i32 %.03745, %5
  %22 = icmp slt i32 %.046, 1
  %or.cond = select i1 %21, i1 true, i1 %22
  %23 = icmp sgt i32 %.046, %6
  %or.cond42 = select i1 %or.cond, i1 true, i1 %23
  br i1 %or.cond42, label %24, label %29

24:                                               ; preds = %.thread, %18
  %25 = getelementptr inbounds i8, ptr %10, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %26)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str)
  br label %52

29:                                               ; preds = %.thread
  %30 = zext nneg i32 %.03745 to i64
  %31 = zext nneg i32 %.046 to i64
  %32 = getelementptr inbounds [15 x [15 x i32]], ptr @vis, i64 0, i64 %30, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %34, label %39

34:                                               ; preds = %29
  store i32 1, ptr %32, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %10, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  %38 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %30, i64 %31, i32 1
  store i32 %37, ptr %38, align 4, !tbaa !9
  br label %7, !llvm.loop !12

39:                                               ; preds = %29
  %40 = getelementptr inbounds [15 x [15 x %struct.graph]], ptr @G, i64 0, i64 %30, i64 %31, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = add nsw i32 %41, -1
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.1)
  %45 = getelementptr inbounds i8, ptr %10, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = load i32, ptr %40, align 4, !tbaa !9
  %48 = add i32 %46, 1
  %49 = sub i32 %48, %47
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %44, i32 noundef %49)
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.2)
  br label %52

52:                                               ; preds = %39, %24
  ret void
}

; 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 #1

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

!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 = !{!10, !6, i64 4}
!10 = !{!"_ZTS5graph", !7, i64 0, !6, i64 4}
!11 = !{!10, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass