; LLVM IR from viveakrt/Competitive-programing :: SPOJ (salman)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.node = type { i64, i64 }

@t = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@adj = external dso_local global [524288 x %"class.std::vector"], align 16
@res = external dso_local global [524288 x i64], align 16
@l = external dso_local global [524288 x i64], align 16
@r = external dso_local global [524288 x i64], align 16
@s = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsx(i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; 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 uwtable
declare dso_local void @_Z5buildxxx(i64 noundef, i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z4readxxxxx(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.node, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.node, align 8
  %15 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %16 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %19
  %21 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef null)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @t)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %23

23:                                               ; preds = %168, %0
  %24 = load i64, ptr %2, align 8, !tbaa !8
  %25 = load i64, ptr @t, align 8, !tbaa !8
  %26 = icmp slt i64 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %171

28:                                               ; preds = %23
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) @q)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 1, ptr %4, align 8, !tbaa !8
  br label %31

31:                                               ; preds = %39, %28
  %32 = load i64, ptr %4, align 8, !tbaa !8
  %33 = load i64, ptr @n, align 8, !tbaa !8
  %34 = icmp sle i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %42

36:                                               ; preds = %31
  %37 = load i64, ptr %4, align 8, !tbaa !8
  %38 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @adj, i64 0, i64 %37
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  br label %39

39:                                               ; preds = %36
  %40 = load i64, ptr %4, align 8, !tbaa !8
  %41 = add nsw i64 %40, 1
  store i64 %41, ptr %4, align 8, !tbaa !8
  br label %31, !llvm.loop !11

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1, ptr %5, align 8, !tbaa !8
  br label %43

43:                                               ; preds = %60, %42
  %44 = load i64, ptr %5, align 8, !tbaa !8
  %45 = load i64, ptr @n, align 8, !tbaa !8
  %46 = icmp sle i64 %44, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %51 = load i64, ptr %6, align 8, !tbaa !8
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  %54 = load i64, ptr %6, align 8, !tbaa !8
  %55 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @adj, i64 0, i64 %54
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %56

56:                                               ; preds = %53, %48
  %57 = load i64, ptr %7, align 8, !tbaa !8
  %58 = load i64, ptr %5, align 8, !tbaa !8
  %59 = getelementptr inbounds [524288 x i64], ptr @res, i64 0, i64 %58
  store i64 %57, ptr %59, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %60

60:                                               ; preds = %56
  %61 = load i64, ptr %5, align 8, !tbaa !8
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %5, align 8, !tbaa !8
  br label %43, !llvm.loop !13

63:                                               ; preds = %47
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  call void @_Z3dfsx(i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 1, ptr %8, align 8, !tbaa !8
  br label %64

64:                                               ; preds = %72, %63
  %65 = load i64, ptr %8, align 8, !tbaa !8
  %66 = load i64, ptr @n, align 8, !tbaa !8
  %67 = icmp sle i64 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %75

69:                                               ; preds = %64
  %70 = load i64, ptr %8, align 8, !tbaa !8
  %71 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %70
  store i64 -1, ptr %71, align 8, !tbaa !8
  br label %72

72:                                               ; preds = %69
  %73 = load i64, ptr %8, align 8, !tbaa !8
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %8, align 8, !tbaa !8
  br label %64, !llvm.loop !14

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %76

76:                                               ; preds = %100, %75
  %77 = load i64, ptr %9, align 8, !tbaa !8
  %78 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  %79 = icmp ult i64 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %103

81:                                               ; preds = %76
  %82 = load i64, ptr %9, align 8, !tbaa !8
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %82) #7
  %84 = load i64, ptr %83, align 8, !tbaa !8
  %85 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = icmp eq i64 %86, -1
  br i1 %87, label %88, label %94

88:                                               ; preds = %81
  %89 = load i64, ptr %9, align 8, !tbaa !8
  %90 = load i64, ptr %9, align 8, !tbaa !8
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %90) #7
  %92 = load i64, ptr %91, align 8, !tbaa !8
  %93 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %92
  store i64 %89, ptr %93, align 8, !tbaa !8
  br label %94

94:                                               ; preds = %88, %81
  %95 = load i64, ptr %9, align 8, !tbaa !8
  %96 = load i64, ptr %9, align 8, !tbaa !8
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %96) #7
  %98 = load i64, ptr %97, align 8, !tbaa !8
  %99 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %98
  store i64 %95, ptr %99, align 8, !tbaa !8
  br label %100

100:                                              ; preds = %94
  %101 = load i64, ptr %9, align 8, !tbaa !8
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %9, align 8, !tbaa !8
  br label %76, !llvm.loop !15

103:                                              ; preds = %80
  %104 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  %105 = sub i64 %104, 1
  call void @_Z5buildxxx(i64 noundef 0, i64 noundef %105, i64 noundef 1)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %107 = load i64, ptr %2, align 8, !tbaa !8
  %108 = add nsw i64 %107, 1
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %106, i64 noundef %108)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str.3)
  br label %111

111:                                              ; preds = %166, %103
  %112 = load i64, ptr @q, align 8, !tbaa !8
  %113 = add nsw i64 %112, -1
  store i64 %113, ptr @q, align 8, !tbaa !8
  %114 = icmp ne i64 %112, 0
  br i1 %114, label %115, label %167

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %118 = load i64, ptr %10, align 8, !tbaa !8
  %119 = icmp eq i64 %118, 1
  br i1 %119, label %120, label %139

120:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %121 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  %122 = sub i64 %121, 1
  %123 = load i64, ptr %11, align 8, !tbaa !8
  %124 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !8
  %126 = load i64, ptr %11, align 8, !tbaa !8
  %127 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !8
  %129 = call { i64, i64 } @_Z4readxxxxx(i64 noundef 0, i64 noundef %122, i64 noundef 1, i64 noundef %125, i64 noundef %128)
  %130 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %131 = extractvalue { i64, i64 } %129, 0
  store i64 %131, ptr %130, align 8
  %132 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %133 = extractvalue { i64, i64 } %129, 1
  store i64 %133, ptr %132, align 8
  %134 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !16
  %136 = sdiv i64 %135, 2
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %136)
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %137, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %166

139:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %140 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  %141 = sub i64 %140, 1
  %142 = load i64, ptr %11, align 8, !tbaa !8
  %143 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !8
  %145 = load i64, ptr %11, align 8, !tbaa !8
  %146 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !8
  %148 = call { i64, i64 } @_Z4readxxxxx(i64 noundef 0, i64 noundef %141, i64 noundef 1, i64 noundef %144, i64 noundef %147)
  %149 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %150 = extractvalue { i64, i64 } %148, 0
  store i64 %150, ptr %149, align 8
  %151 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %152 = extractvalue { i64, i64 } %148, 1
  store i64 %152, ptr %151, align 8
  %153 = getelementptr inbounds %struct.node, ptr %14, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  store i64 %154, ptr %13, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 1000, ptr %15, align 8, !tbaa !8
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %156 = load i64, ptr %155, align 8, !tbaa !8
  store i64 %156, ptr %13, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %157 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #7
  %158 = sub i64 %157, 1
  %159 = load i64, ptr %11, align 8, !tbaa !8
  %160 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !8
  %162 = load i64, ptr %11, align 8, !tbaa !8
  %163 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !8
  %165 = load i64, ptr %13, align 8, !tbaa !8
  call void @_Z6updatexxxxxx(i64 noundef 0, i64 noundef %158, i64 noundef 1, i64 noundef %161, i64 noundef %164, i64 noundef %165)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %166

166:                                              ; preds = %139, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %111, !llvm.loop !19

167:                                              ; preds = %111
  br label %168

168:                                              ; preds = %167
  %169 = load i64, ptr %2, align 8, !tbaa !8
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %2, align 8, !tbaa !8
  br label %23, !llvm.loop !20

171:                                              ; preds = %27
  %172 = load i32, ptr %1, align 4
  ret i32 %172
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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 = { 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 #3 = { 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 #4 = { "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 = { inlinehint 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 #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !9, i64 8}
!17 = !{!"_ZTS4node", !9, i64 0, !9, i64 8}
!18 = !{!17, !9, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }

@t = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@adj = external dso_local global [524288 x %"class.std::vector"], align 16
@res = external dso_local local_unnamed_addr global [524288 x i64], align 16
@l = external dso_local local_unnamed_addr global [524288 x i64], align 16
@r = external dso_local local_unnamed_addr global [524288 x i64], align 16
@s = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsx(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_Z4readxxxxx(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @t)
  %15 = load i64, ptr @t, align 8, !tbaa !8
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %.lr.ph44, label %._crit_edge45

.loopexit:                                        ; preds = %100, %._crit_edge38
  %17 = load i64, ptr @t, align 8, !tbaa !8
  %18 = icmp slt i64 %42, %17
  br i1 %18, label %.lr.ph44, label %._crit_edge45, !llvm.loop !11

._crit_edge45:                                    ; preds = %.loopexit, %0
  ret i32 0

.lr.ph44:                                         ; preds = %0, %.loopexit
  %.042 = phi i64 [ %42, %.loopexit ], [ 0, %0 ]
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) @q)
  %21 = load i64, ptr @n, align 8, !tbaa !8
  %.not26 = icmp slt i64 %21, 1
  br i1 %.not26, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %.lr.ph44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  br label %._crit_edge31

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 1, ptr %1, align 8, !tbaa !8
  %.not2228 = icmp slt i64 %24, 1
  br i1 %.not2228, label %._crit_edge31, label %.lr.ph30

.lr.ph:                                           ; preds = %.lr.ph44, %.lr.ph
  %.01827 = phi i64 [ %23, %.lr.ph ], [ 1, %.lr.ph44 ]
  %22 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @adj, i64 0, i64 %.01827
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %23 = add nuw nsw i64 %.01827, 1
  %24 = load i64, ptr @n, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.01827, %24
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge31:                                    ; preds = %32, %._crit_edge.thread, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  call void @_Z3dfsx(i64 noundef 1)
  %25 = load i64, ptr @n, align 8, !tbaa !8
  %.not2332 = icmp slt i64 %25, 1
  br i1 %.not2332, label %.preheader, label %.lr.ph35.preheader

.lr.ph35.preheader:                               ; preds = %._crit_edge31
  %26 = shl nuw i64 %25, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 getelementptr inbounds (i8, ptr @l, i64 8), i8 -1, i64 %26, i1 false), !tbaa !8
  br label %.preheader

.lr.ph30:                                         ; preds = %._crit_edge, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %29 = load i64, ptr %2, align 8, !tbaa !8
  %.not25 = icmp eq i64 %29, 0
  br i1 %.not25, label %32, label %30

30:                                               ; preds = %.lr.ph30
  %31 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @adj, i64 0, i64 %29
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %1)
  br label %32

32:                                               ; preds = %30, %.lr.ph30
  %33 = load i64, ptr %3, align 8, !tbaa !8
  %34 = load i64, ptr %1, align 8, !tbaa !8
  %35 = getelementptr inbounds [524288 x i64], ptr @res, i64 0, i64 %34
  store i64 %33, ptr %35, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %36 = add nsw i64 %34, 1
  store i64 %36, ptr %1, align 8, !tbaa !8
  %37 = load i64, ptr @n, align 8, !tbaa !8
  %.not22.not = icmp slt i64 %34, %37
  br i1 %.not22.not, label %.lr.ph30, label %._crit_edge31, !llvm.loop !14

.preheader:                                       ; preds = %.lr.ph35.preheader, %._crit_edge31
  %38 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %.not = icmp eq i64 %38, 0
  br i1 %.not, label %._crit_edge38, label %.lr.ph37

._crit_edge38:                                    ; preds = %56, %.preheader
  %39 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %40 = add i64 %39, -1
  call void @_Z5buildxxx(i64 noundef 0, i64 noundef %40, i64 noundef 1)
  %41 = 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)
  %42 = add nuw nsw i64 %.042, 1
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %42)
  %44 = 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.3)
  %45 = load i64, ptr @q, align 8, !tbaa !8
  %46 = add nsw i64 %45, -1
  store i64 %46, ptr @q, align 8, !tbaa !8
  %.not2439 = icmp eq i64 %45, 0
  br i1 %.not2439, label %.loopexit, label %.lr.ph41

.lr.ph37:                                         ; preds = %.preheader, %56
  %.02036 = phi i64 [ %60, %56 ], [ 0, %.preheader ]
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %.02036) #8
  %48 = load i64, ptr %47, align 8, !tbaa !8
  %49 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !8
  %51 = icmp eq i64 %50, -1
  br i1 %51, label %52, label %56

52:                                               ; preds = %.lr.ph37
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %.02036) #8
  %54 = load i64, ptr %53, align 8, !tbaa !8
  %55 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %54
  store i64 %.02036, ptr %55, align 8, !tbaa !8
  br label %56

56:                                               ; preds = %52, %.lr.ph37
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @s, i64 noundef %.02036) #8
  %58 = load i64, ptr %57, align 8, !tbaa !8
  %59 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %58
  store i64 %.02036, ptr %59, align 8, !tbaa !8
  %60 = add nuw nsw i64 %.02036, 1
  %61 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %.lr.ph37, label %._crit_edge38, !llvm.loop !15

.lr.ph41:                                         ; preds = %._crit_edge38, %100
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %65 = load i64, ptr %4, align 8, !tbaa !8
  %66 = icmp eq i64 %65, 1
  br i1 %66, label %67, label %80

67:                                               ; preds = %.lr.ph41
  %68 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %69 = add i64 %68, -1
  %70 = load i64, ptr %5, align 8, !tbaa !8
  %71 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !8
  %73 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %70
  %74 = load i64, ptr %73, align 8, !tbaa !8
  %75 = call { i64, i64 } @_Z4readxxxxx(i64 noundef 0, i64 noundef %69, i64 noundef 1, i64 noundef %72, i64 noundef %74)
  %76 = extractvalue { i64, i64 } %75, 1
  %77 = sdiv i64 %76, 2
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %77)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %78, i8 noundef signext 10)
  br label %100

80:                                               ; preds = %.lr.ph41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %81 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %82 = add i64 %81, -1
  %83 = load i64, ptr %5, align 8, !tbaa !8
  %84 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %83
  %87 = load i64, ptr %86, align 8, !tbaa !8
  %88 = call { i64, i64 } @_Z4readxxxxx(i64 noundef 0, i64 noundef %82, i64 noundef 1, i64 noundef %85, i64 noundef %87)
  %89 = extractvalue { i64, i64 } %88, 0
  store i64 %89, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store i64 1000, ptr %7, align 8, !tbaa !8
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %91 = load i64, ptr %90, align 8, !tbaa !8
  store i64 %91, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %92 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @s) #8
  %93 = add i64 %92, -1
  %94 = load i64, ptr %5, align 8, !tbaa !8
  %95 = getelementptr inbounds [524288 x i64], ptr @l, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !8
  %97 = getelementptr inbounds [524288 x i64], ptr @r, i64 0, i64 %94
  %98 = load i64, ptr %97, align 8, !tbaa !8
  %99 = load i64, ptr %6, align 8, !tbaa !8
  call void @_Z6updatexxxxxx(i64 noundef 0, i64 noundef %93, i64 noundef 1, i64 noundef %96, i64 noundef %98, i64 noundef %99)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %100

100:                                              ; preds = %80, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %101 = load i64, ptr @q, align 8, !tbaa !8
  %102 = add nsw i64 %101, -1
  store i64 %102, ptr @q, align 8, !tbaa !8
  %.not24 = icmp eq i64 %101, 0
  br i1 %.not24, label %.loopexit, label %.lr.ph41, !llvm.loop !16
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; 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 #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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 = { 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 #3 = { 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 #4 = { "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 = { inlinehint 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass