; LLVM IR from eyangch/competitive-programming :: USACOcontests/platinum/2015.12 (maxflow)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_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" }

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@graph = external dso_local global [50000 x %"class.std::vector"], align 16
@parent = external dso_local global [50000 x i32], align 16
@etour = external dso_local global %"class.std::vector", align 8
@occ = external dso_local global [50000 x i32], align 16
@st = external dso_local global [17 x [100000 x i32]], align 16
@lg2 = external dso_local global [100000 x i32], align 16
@pfx = external dso_local global [50000 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_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 i32 @_Z6idminfii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5queryii(i32 noundef, 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 uwtable
declare dso_local void @_Z8dfsdepthiii(i32 noundef, i32 noundef, i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6dfsansii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = load ptr, ptr @stdin, align 8, !tbaa !5
  %16 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.3, ptr noundef %15)
  %17 = load ptr, ptr @stdout, align 8, !tbaa !5
  %18 = call ptr @freopen(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %17)
  %19 = 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)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) @K)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %42, %0
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = load i32, ptr @N, align 4, !tbaa !9
  %24 = sub nsw i32 %23, 1
  %25 = icmp slt i32 %22, %24
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = sub nsw i32 %30, 1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [50000 x %"class.std::vector"], ptr @graph, i64 0, i64 %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %34 = load i32, ptr %4, align 4, !tbaa !9
  %35 = sub nsw i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = sub nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [50000 x %"class.std::vector"], ptr @graph, i64 0, i64 %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = sub nsw i32 %40, 1
  store i32 %41, ptr %6, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %42

42:                                               ; preds = %27
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !9
  br label %21, !llvm.loop !11

45:                                               ; preds = %26
  call void @_Z8dfsdepthiii(i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_Z7dfstourii(i32 noundef 0, i32 noundef -1)
  %46 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @etour) #6
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr @M, align 4, !tbaa !9
  %48 = load i32, ptr @M, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr @st, i64 %49
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef @st, ptr noundef %50, i32 noundef 0)
  store i32 0, ptr getelementptr inbounds ([100000 x i32], ptr @lg2, i64 0, i64 1), align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 2, ptr %7, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %66, %45
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = load i32, ptr @M, align 4, !tbaa !9
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sdiv i32 %57, 2
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %64
  store i32 %62, ptr %65, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %56
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %7, align 4, !tbaa !9
  br label %51, !llvm.loop !13

69:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %120, %69
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = load i32, ptr @M, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = icmp sle i32 %71, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %70
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %123

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %116, %78
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = shl i32 1, %81
  %83 = add nsw i32 %80, %82
  %84 = sub nsw i32 %83, 1
  %85 = load i32, ptr @M, align 4, !tbaa !9
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %119

88:                                               ; preds = %79
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %91
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [100000 x i32], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %99
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 1
  %104 = shl i32 1, %103
  %105 = add nsw i32 %101, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100000 x i32], ptr %100, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = call noundef i32 @_Z6idminfii(i32 noundef %96, i32 noundef %108)
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %111
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100000 x i32], ptr %112, i64 0, i64 %114
  store i32 %109, ptr %115, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %88
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %10, align 4, !tbaa !9
  br label %79, !llvm.loop !14

119:                                              ; preds = %87
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %8, align 4, !tbaa !9
  br label %70, !llvm.loop !15

123:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %178, %123
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = load i32, ptr @K, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %181

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %130, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr %12, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = add nsw i32 %134, -1
  store i32 %135, ptr %13, align 4, !tbaa !9
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %138, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [50000 x i32], ptr @occ, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [50000 x i32], ptr @occ, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = call noundef i32 @_Z5queryii(i32 noundef %149, i32 noundef %153)
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @etour, i64 noundef %155) #6
  %157 = load i32, ptr %156, align 4, !tbaa !9
  store i32 %157, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = add nsw i32 %161, -1
  store i32 %162, ptr %160, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [50000 x i32], ptr @parent, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = icmp sge i32 %166, 0
  br i1 %167, label %168, label %177

168:                                              ; preds = %129
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [50000 x i32], ptr @parent, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = add nsw i32 %175, -1
  store i32 %176, ptr %174, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %168, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %11, align 4, !tbaa !9
  br label %124, !llvm.loop !16

181:                                              ; preds = %128
  %182 = call noundef i32 @_Z6dfsansii(i32 noundef 0, i32 noundef -1)
  %183 = load i32, ptr @ans, align 4, !tbaa !9
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %183)
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %186 = load i32, ptr %1, align 4
  ret i32 %186
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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 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 = { 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 = !{!"any pointer", !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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_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" }

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@M = external dso_local local_unnamed_addr global i32, align 4
@graph = external dso_local global [50000 x %"class.std::vector"], align 16
@parent = external dso_local local_unnamed_addr global [50000 x i32], align 16
@etour = external dso_local global %"class.std::vector", align 8
@occ = external dso_local local_unnamed_addr global [50000 x i32], align 16
@st = external dso_local global [17 x [100000 x i32]], align 16
@lg2 = external dso_local local_unnamed_addr global [100000 x i32], align 16
@pfx = external dso_local local_unnamed_addr global [50000 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_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 i32 @_Z6idminfii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; 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 @_Z8dfsdepthiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6dfsansii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %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 i32, align 4
  %7 = load ptr, ptr @stdin, align 8, !tbaa !5
  %8 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, ptr noundef %7)
  %9 = load ptr, ptr @stdout, align 8, !tbaa !5
  %10 = tail call ptr @freopen(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %9)
  %11 = 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)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) @K)
  %13 = load i32, ptr @N, align 4, !tbaa !9
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @_Z8dfsdepthiii(i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_Z7dfstourii(i32 noundef 0, i32 noundef -1)
  %15 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @etour) #6
  %16 = trunc i64 %15 to i32
  store i32 %16, ptr @M, align 4, !tbaa !9
  %sext = shl i64 %15, 32
  %17 = ashr exact i64 %sext, 30
  %18 = getelementptr inbounds i8, ptr @st, i64 %17
  call void @_ZSt4iotaIPiiEvT_S1_T0_(ptr noundef nonnull @st, ptr noundef nonnull %18, i32 noundef 0)
  store i32 0, ptr getelementptr inbounds (i8, ptr @lg2, i64 4), align 4, !tbaa !9
  %19 = load i32, ptr @M, align 4, !tbaa !9
  %.not34 = icmp slt i32 %19, 2
  br i1 %.not34, label %.preheader32, label %.lr.ph37.preheader

.lr.ph37.preheader:                               ; preds = %._crit_edge
  %20 = add nuw i32 %19, 1
  %wide.trip.count = zext i32 %20 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %.preheader32.loopexit.unr-lcssa, label %.lr.ph37.preheader.new

.lr.ph37.preheader.new:                           ; preds = %.lr.ph37.preheader
  %22 = and i64 %wide.trip.count, 4294967294
  %23 = add nsw i64 %22, -4
  br label %.lr.ph37

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.033 = phi i32 [ %38, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = load i32, ptr %1, align 4, !tbaa !9
  %27 = add nsw i32 %26, -1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [50000 x %"class.std::vector"], ptr @graph, i64 0, i64 %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %30 = load i32, ptr %2, align 4, !tbaa !9
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %3, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = add nsw i32 %32, -1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [50000 x %"class.std::vector"], ptr @graph, i64 0, i64 %34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %36 = load i32, ptr %1, align 4, !tbaa !9
  %37 = add nsw i32 %36, -1
  store i32 %37, ptr %4, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %38 = add nuw nsw i32 %.033, 1
  %39 = load i32, ptr @N, align 4, !tbaa !9
  %40 = add nsw i32 %39, -1
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader32.loopexit.unr-lcssa:                  ; preds = %.lr.ph37, %.lr.ph37.preheader
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph37.preheader ], [ %indvars.iv.next.1, %.lr.ph37 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader32, label %.lr.ph37.epil

.lr.ph37.epil:                                    ; preds = %.preheader32.loopexit.unr-lcssa
  %42 = lshr i64 %indvars.iv.unr, 1
  %43 = and i64 %42, 2147483647
  %44 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  %47 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %indvars.iv.unr
  store i32 %46, ptr %47, align 4, !tbaa !9
  br label %.preheader32

.preheader32:                                     ; preds = %.lr.ph37.epil, %.preheader32.loopexit.unr-lcssa, %._crit_edge
  %48 = sext i32 %19 to i64
  %49 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %.not2942 = icmp slt i32 %50, 1
  br i1 %.not2942, label %.preheader, label %.preheader31

.lr.ph37:                                         ; preds = %.lr.ph37, %.lr.ph37.preheader.new
  %indvars.iv = phi i64 [ 2, %.lr.ph37.preheader.new ], [ %indvars.iv.next.1, %.lr.ph37 ]
  %niter = phi i64 [ 0, %.lr.ph37.preheader.new ], [ %niter.next.1, %.lr.ph37 ]
  %51 = lshr exact i64 %indvars.iv, 1
  %52 = and i64 %51, 2147483647
  %53 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  %56 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %indvars.iv
  store i32 %55, ptr %56, align 8, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %57 = lshr exact i64 %indvars.iv, 1
  %58 = and i64 %57, 2147483647
  %59 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  %62 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %indvars.iv.next
  store i32 %61, ptr %62, align 4, !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, %23
  br i1 %niter.ncmp.1, label %.preheader32.loopexit.unr-lcssa, label %.lr.ph37, !llvm.loop !13

.preheader31:                                     ; preds = %.preheader32, %._crit_edge41
  %63 = phi i32 [ %73, %._crit_edge41 ], [ %19, %.preheader32 ]
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %._crit_edge41 ], [ 1, %.preheader32 ]
  %64 = trunc nuw nsw i64 %indvars.iv51 to i32
  %65 = shl nuw i32 1, %64
  %.not3038 = icmp sgt i32 %65, %63
  br i1 %.not3038, label %.preheader31.._crit_edge41_crit_edge, label %.lr.ph40

.preheader31.._crit_edge41_crit_edge:             ; preds = %.preheader31
  %.pre = sext i32 %63 to i64
  br label %._crit_edge41

.lr.ph40:                                         ; preds = %.preheader31
  %66 = add nsw i64 %indvars.iv51, -1
  %67 = trunc nuw nsw i64 %66 to i32
  %68 = shl nuw i32 1, %67
  %69 = sext i32 %65 to i64
  %70 = sext i32 %68 to i64
  br label %77

.preheader:                                       ; preds = %._crit_edge41, %.preheader32
  %71 = load i32, ptr @K, align 4, !tbaa !9
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph45, label %._crit_edge46

._crit_edge41:                                    ; preds = %77, %.preheader31.._crit_edge41_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader31.._crit_edge41_crit_edge ], [ %87, %77 ]
  %73 = phi i32 [ %63, %.preheader31.._crit_edge41_crit_edge ], [ %86, %77 ]
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %74 = getelementptr inbounds [100000 x i32], ptr @lg2, i64 0, i64 %.pre-phi
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %.not29.not = icmp slt i64 %indvars.iv51, %76
  br i1 %.not29.not, label %.preheader31, label %.preheader, !llvm.loop !14

77:                                               ; preds = %.lr.ph40, %77
  %indvars.iv48 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next49, %77 ]
  %78 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %66, i64 %indvars.iv48
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = add nuw nsw i64 %indvars.iv48, %70
  %81 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %66, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = call noundef i32 @_Z6idminfii(i32 noundef %79, i32 noundef %82)
  %84 = getelementptr inbounds [17 x [100000 x i32]], ptr @st, i64 0, i64 %indvars.iv51, i64 %indvars.iv48
  store i32 %83, ptr %84, align 4, !tbaa !9
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %85 = add nuw nsw i64 %indvars.iv.next49, %69
  %86 = load i32, ptr @M, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %.not30 = icmp sgt i64 %85, %87
  br i1 %.not30, label %._crit_edge41, label %77, !llvm.loop !15

._crit_edge46:                                    ; preds = %126, %.preheader
  %88 = call noundef i32 @_Z6dfsansii(i32 noundef 0, i32 noundef -1)
  %89 = load i32, ptr @ans, align 4, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph45:                                         ; preds = %.preheader, %126
  %.02444 = phi i32 [ %127, %126 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %5, align 4, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = add nsw i32 %96, -1
  store i32 %97, ptr %6, align 4, !tbaa !9
  %98 = sext i32 %95 to i64
  %99 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %99, align 4, !tbaa !9
  %102 = sext i32 %97 to i64
  %103 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %103, align 4, !tbaa !9
  %106 = getelementptr inbounds [50000 x i32], ptr @occ, i64 0, i64 %98
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = getelementptr inbounds [50000 x i32], ptr @occ, i64 0, i64 %102
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = call noundef i32 @_Z5queryii(i32 noundef %107, i32 noundef %109)
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @etour, i64 noundef %111) #6
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %115, align 4, !tbaa !9
  %118 = getelementptr inbounds [50000 x i32], ptr @parent, i64 0, i64 %114
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp sgt i32 %119, -1
  br i1 %120, label %121, label %126

121:                                              ; preds = %.lr.ph45
  %122 = zext nneg i32 %119 to i64
  %123 = getelementptr inbounds [50000 x i32], ptr @pfx, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = add nsw i32 %124, -1
  store i32 %125, ptr %123, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %121, %.lr.ph45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %127 = add nuw nsw i32 %.02444, 1
  %128 = load i32, ptr @K, align 4, !tbaa !9
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %.lr.ph45, label %._crit_edge46, !llvm.loop !16
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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 #4

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

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

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

; 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 #2 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { 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 = !{!"any pointer", !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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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