; LLVM IR from eyangch/competitive-programming :: Codeforces/1702 (g)

; 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" }
%class.anon = type { i8 }

@N = external dso_local global i64, align 8
@Q = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@P = external dso_local global [200000 x i64], align 16
@tin = external dso_local global [200000 x i64], align 16
@tout = external dso_local global [200000 x i64], align 16
@graph = external dso_local global [200000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

26:                                               ; preds = %45, %0
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = load i64, ptr @N, align 8, !tbaa !8
  %29 = sub nsw i64 %28, 1
  %30 = icmp slt i64 %27, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %35 = load i64, ptr %3, align 8, !tbaa !8
  %36 = sub nsw i64 %35, 1
  %37 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %38 = load i64, ptr %4, align 8, !tbaa !8
  %39 = sub nsw i64 %38, 1
  store i64 %39, ptr %5, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %40 = load i64, ptr %4, align 8, !tbaa !8
  %41 = sub nsw i64 %40, 1
  %42 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %43 = load i64, ptr %3, align 8, !tbaa !8
  %44 = sub nsw i64 %43, 1
  store i64 %44, ptr %6, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %45

45:                                               ; preds = %32
  %46 = load i64, ptr %2, align 8, !tbaa !8
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %2, align 8, !tbaa !8
  br label %26, !llvm.loop !11

48:                                               ; preds = %31
  call void @_Z3dfsxxx(i64 noundef 0, i64 noundef -1, i64 noundef 0)
  %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) @Q)
  br label %50

50:                                               ; preds = %197, %195, %48
  %51 = load i64, ptr @Q, align 8, !tbaa !8
  %52 = add nsw i64 %51, -1
  store i64 %52, ptr @Q, align 8, !tbaa !8
  %53 = icmp ne i64 %51, 0
  br i1 %53, label %54, label %198

54:                                               ; preds = %50
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @K)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %56

56:                                               ; preds = %69, %54
  %57 = load i64, ptr %7, align 8, !tbaa !8
  %58 = load i64, ptr @K, align 8, !tbaa !8
  %59 = icmp slt i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %72

61:                                               ; preds = %56
  %62 = load i64, ptr %7, align 8, !tbaa !8
  %63 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %62
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = load i64, ptr %7, align 8, !tbaa !8
  %66 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = add nsw i64 %67, -1
  store i64 %68, ptr %66, align 8, !tbaa !8
  br label %69

69:                                               ; preds = %61
  %70 = load i64, ptr %7, align 8, !tbaa !8
  %71 = add nsw i64 %70, 1
  store i64 %71, ptr %7, align 8, !tbaa !8
  br label %56, !llvm.loop !13

72:                                               ; preds = %60
  %73 = load i64, ptr @K, align 8, !tbaa !8
  %74 = getelementptr inbounds i64, ptr @P, i64 %73
  call void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef @P, ptr noundef %74)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 1000000000000000, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %75

75:                                               ; preds = %97, %72
  %76 = load i64, ptr %11, align 8, !tbaa !8
  %77 = load i64, ptr @K, align 8, !tbaa !8
  %78 = icmp slt i64 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %100

80:                                               ; preds = %75
  %81 = load i64, ptr %11, align 8, !tbaa !8
  %82 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = getelementptr inbounds [200000 x i64], ptr @tin, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = load i64, ptr %9, align 8, !tbaa !8
  %87 = icmp sgt i64 %85, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %80
  %89 = load i64, ptr %10, align 8, !tbaa !8
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %10, align 8, !tbaa !8
  br label %91

91:                                               ; preds = %88, %80
  %92 = load i64, ptr %11, align 8, !tbaa !8
  %93 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !8
  %95 = getelementptr inbounds [200000 x i64], ptr @tout, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !8
  store i64 %96, ptr %9, align 8, !tbaa !8
  br label %97

97:                                               ; preds = %91
  %98 = load i64, ptr %11, align 8, !tbaa !8
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %11, align 8, !tbaa !8
  br label %75, !llvm.loop !14

100:                                              ; preds = %79
  %101 = load i64, ptr %10, align 8, !tbaa !8
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %103, label %106

103:                                              ; preds = %100
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %104, i8 noundef signext 10)
  store i32 5, ptr %12, align 4
  br label %195, !llvm.loop !15

106:                                              ; preds = %100
  %107 = load i64, ptr %10, align 8, !tbaa !8
  %108 = icmp sgt i64 %107, 1
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %110, i8 noundef signext 10)
  store i32 5, ptr %12, align 4
  br label %195, !llvm.loop !15

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %113 = load i64, ptr @P, align 16, !tbaa !8
  store i64 %113, ptr %13, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 1, ptr %14, align 8, !tbaa !8
  br label %114

114:                                              ; preds = %125, %112
  %115 = load i64, ptr %14, align 8, !tbaa !8
  %116 = load i64, ptr @K, align 8, !tbaa !8
  %117 = icmp slt i64 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %128

119:                                              ; preds = %114
  %120 = load i64, ptr %13, align 8, !tbaa !8
  %121 = load i64, ptr %14, align 8, !tbaa !8
  %122 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !8
  %124 = call noundef i64 @_Z3lcaxx(i64 noundef %120, i64 noundef %123)
  store i64 %124, ptr %13, align 8, !tbaa !8
  br label %125

125:                                              ; preds = %119
  %126 = load i64, ptr %14, align 8, !tbaa !8
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %14, align 8, !tbaa !8
  br label %114, !llvm.loop !16

128:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 -1, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !8
  br label %129

129:                                              ; preds = %143, %128
  %130 = load i64, ptr %16, align 8, !tbaa !8
  %131 = load i64, ptr @K, align 8, !tbaa !8
  %132 = icmp slt i64 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 16, ptr %12, align 4
  br label %146

134:                                              ; preds = %129
  %135 = load i64, ptr %13, align 8, !tbaa !8
  %136 = load i64, ptr %16, align 8, !tbaa !8
  %137 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !8
  %139 = icmp eq i64 %135, %138
  br i1 %139, label %140, label %142

140:                                              ; preds = %134
  %141 = load i64, ptr %16, align 8, !tbaa !8
  store i64 %141, ptr %15, align 8, !tbaa !8
  store i32 16, ptr %12, align 4
  br label %146

142:                                              ; preds = %134
  br label %143

143:                                              ; preds = %142
  %144 = load i64, ptr %16, align 8, !tbaa !8
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %16, align 8, !tbaa !8
  br label %129, !llvm.loop !17

146:                                              ; preds = %140, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %15, align 8, !tbaa !8
  %149 = xor i64 %148, -1
  %150 = icmp ne i64 %149, 0
  br i1 %150, label %154, label %151

151:                                              ; preds = %147
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %152, i8 noundef signext 10)
  store i32 5, ptr %12, align 4
  br label %194, !llvm.loop !15

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 -1, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !8
  br label %155

155:                                              ; preds = %179, %154
  %156 = load i64, ptr %18, align 8, !tbaa !8
  %157 = load i64, ptr @K, align 8, !tbaa !8
  %158 = icmp slt i64 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  store i32 19, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %182

160:                                              ; preds = %155
  %161 = load i64, ptr %18, align 8, !tbaa !8
  %162 = load i64, ptr %15, align 8, !tbaa !8
  %163 = icmp eq i64 %161, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %160
  br label %179

165:                                              ; preds = %160
  %166 = load i64, ptr %17, align 8, !tbaa !8
  %167 = icmp eq i64 %166, -1
  br i1 %167, label %168, label %172

168:                                              ; preds = %165
  %169 = load i64, ptr %18, align 8, !tbaa !8
  %170 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !8
  store i64 %171, ptr %17, align 8, !tbaa !8
  br label %178

172:                                              ; preds = %165
  %173 = load i64, ptr %17, align 8, !tbaa !8
  %174 = load i64, ptr %18, align 8, !tbaa !8
  %175 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %174
  %176 = load i64, ptr %175, align 8, !tbaa !8
  %177 = call noundef i64 @_Z3lcaxx(i64 noundef %173, i64 noundef %176)
  store i64 %177, ptr %17, align 8, !tbaa !8
  br label %178

178:                                              ; preds = %172, %168
  br label %179

179:                                              ; preds = %178, %164
  %180 = load i64, ptr %18, align 8, !tbaa !8
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %18, align 8, !tbaa !8
  br label %155, !llvm.loop !18

182:                                              ; preds = %159
  %183 = load i64, ptr %13, align 8, !tbaa !8
  %184 = load i64, ptr %17, align 8, !tbaa !8
  %185 = icmp eq i64 %183, %184
  br i1 %185, label %186, label %189

186:                                              ; preds = %182
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %187, i8 noundef signext 10)
  store i32 5, ptr %12, align 4
  br label %193, !llvm.loop !15

189:                                              ; preds = %182
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %190, i8 noundef signext 10)
  br label %192

192:                                              ; preds = %189
  store i32 0, ptr %12, align 4
  br label %193

193:                                              ; preds = %192, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %194

194:                                              ; preds = %193, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %195

195:                                              ; preds = %194, %109, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %196 = load i32, ptr %12, align 4
  switch i32 %196, label %200 [
    i32 0, label %197
    i32 5, label %50
  ]

197:                                              ; preds = %195
  br label %50, !llvm.loop !15

198:                                              ; preds = %50
  %199 = load i32, ptr %1, align 4
  ret i32 %199

200:                                              ; preds = %195
  unreachable
}

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

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef) #5

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

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 = { 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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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" }

@N = external dso_local global i64, align 8
@Q = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@P = external dso_local global [200000 x i64], align 16
@tin = external dso_local local_unnamed_addr global [200000 x i64], align 16
@tout = external dso_local local_unnamed_addr global [200000 x i64], align 16
@graph = external dso_local global [200000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxxx(i64 noundef, i64 noundef, i64 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 nounwind uwtable
declare dso_local noundef i64 @_Z3lcaxx(i64 noundef, i64 noundef) local_unnamed_addr #2

; 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 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = 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) @N)
  %12 = load i64, ptr @N, align 8, !tbaa !8
  %13 = icmp sgt i64 %12, 1
  br i1 %13, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @_Z3dfsxxx(i64 noundef 0, i64 noundef -1, i64 noundef 0)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @Q)
  %15 = load i64, ptr @Q, align 8, !tbaa !8
  %16 = add nsw i64 %15, -1
  store i64 %16, ptr @Q, align 8, !tbaa !8
  %.not79 = icmp eq i64 %15, 0
  br i1 %.not79, label %._crit_edge82, label %.lr.ph81

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.04553 = phi i64 [ %29, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %19 = load i64, ptr %1, align 8, !tbaa !8
  %20 = add nsw i64 %19, -1
  %21 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %22 = load i64, ptr %2, align 8, !tbaa !8
  %23 = add nsw i64 %22, -1
  store i64 %23, ptr %3, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %24 = load i64, ptr %2, align 8, !tbaa !8
  %25 = add nsw i64 %24, -1
  %26 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @graph, i64 0, i64 %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %27 = load i64, ptr %1, align 8, !tbaa !8
  %28 = add nsw i64 %27, -1
  store i64 %28, ptr %4, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %29 = add nuw nsw i64 %.04553, 1
  %30 = load i64, ptr @N, align 8, !tbaa !8
  %31 = add nsw i64 %30, -1
  %32 = icmp slt i64 %29, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph81:                                         ; preds = %._crit_edge, %._crit_edge63.thread
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %34 = load i64, ptr @K, align 8, !tbaa !8
  %35 = icmp sgt i64 %34, 0
  br i1 %35, label %.lr.ph56, label %._crit_edge57

._crit_edge57:                                    ; preds = %.lr.ph56, %.lr.ph81
  %.lcssa = phi i64 [ %34, %.lr.ph81 ], [ %45, %.lr.ph56 ]
  %36 = getelementptr inbounds i64, ptr @P, i64 %.lcssa
  call void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef nonnull @P, ptr noundef nonnull %36)
  %37 = load i64, ptr @K, align 8, !tbaa !8
  %38 = icmp sgt i64 %37, 0
  br i1 %38, label %.lr.ph62.preheader, label %._crit_edge63.thread, !llvm.loop !13

.lr.ph62.preheader:                               ; preds = %._crit_edge57
  %xtraiter = and i64 %37, 1
  %39 = icmp eq i64 %37, 1
  br i1 %39, label %._crit_edge63.unr-lcssa, label %.lr.ph62.preheader.new

.lr.ph62.preheader.new:                           ; preds = %.lr.ph62.preheader
  %unroll_iter = and i64 %37, 9223372036854775806
  br label %.lr.ph62

.lr.ph56:                                         ; preds = %.lr.ph81, %.lr.ph56
  %.04454 = phi i64 [ %44, %.lr.ph56 ], [ 0, %.lr.ph81 ]
  %40 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.04454
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %42 = load i64, ptr %40, align 8, !tbaa !8
  %43 = add nsw i64 %42, -1
  store i64 %43, ptr %40, align 8, !tbaa !8
  %44 = add nuw nsw i64 %.04454, 1
  %45 = load i64, ptr @K, align 8, !tbaa !8
  %46 = icmp slt i64 %44, %45
  br i1 %46, label %.lr.ph56, label %._crit_edge57, !llvm.loop !14

._crit_edge63.unr-lcssa:                          ; preds = %.lr.ph62, %.lr.ph62.preheader
  %spec.select.lcssa.ph = phi i64 [ poison, %.lr.ph62.preheader ], [ %spec.select.1, %.lr.ph62 ]
  %.04060.unr = phi i64 [ 0, %.lr.ph62.preheader ], [ %70, %.lr.ph62 ]
  %.04159.unr = phi i64 [ 0, %.lr.ph62.preheader ], [ %spec.select.1, %.lr.ph62 ]
  %.04358.unr = phi i64 [ 1000000000000000, %.lr.ph62.preheader ], [ %69, %.lr.ph62 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge63, label %.lr.ph62.epil

.lr.ph62.epil:                                    ; preds = %._crit_edge63.unr-lcssa
  %47 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.04060.unr
  %48 = load i64, ptr %47, align 8, !tbaa !8
  %49 = getelementptr inbounds [200000 x i64], ptr @tin, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !8
  %51 = icmp sgt i64 %50, %.04358.unr
  %52 = zext i1 %51 to i64
  %spec.select.epil = add nuw nsw i64 %.04159.unr, %52
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %._crit_edge63.unr-lcssa, %.lr.ph62.epil
  %spec.select.lcssa = phi i64 [ %spec.select.lcssa.ph, %._crit_edge63.unr-lcssa ], [ %spec.select.epil, %.lr.ph62.epil ]
  switch i64 %spec.select.lcssa, label %._crit_edge63.thread.fold.split [
    i64 0, label %._crit_edge63.thread
    i64 1, label %71
  ]

.lr.ph62:                                         ; preds = %.lr.ph62, %.lr.ph62.preheader.new
  %.04060 = phi i64 [ 0, %.lr.ph62.preheader.new ], [ %70, %.lr.ph62 ]
  %.04159 = phi i64 [ 0, %.lr.ph62.preheader.new ], [ %spec.select.1, %.lr.ph62 ]
  %.04358 = phi i64 [ 1000000000000000, %.lr.ph62.preheader.new ], [ %69, %.lr.ph62 ]
  %niter = phi i64 [ 0, %.lr.ph62.preheader.new ], [ %niter.next.1, %.lr.ph62 ]
  %53 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.04060
  %54 = load i64, ptr %53, align 16, !tbaa !8
  %55 = getelementptr inbounds [200000 x i64], ptr @tin, i64 0, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !8
  %57 = icmp sgt i64 %56, %.04358
  %58 = zext i1 %57 to i64
  %spec.select = add nuw nsw i64 %.04159, %58
  %59 = getelementptr inbounds [200000 x i64], ptr @tout, i64 0, i64 %54
  %60 = load i64, ptr %59, align 8, !tbaa !8
  %61 = or disjoint i64 %.04060, 1
  %62 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !8
  %64 = getelementptr inbounds [200000 x i64], ptr @tin, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !8
  %66 = icmp sgt i64 %65, %60
  %67 = zext i1 %66 to i64
  %spec.select.1 = add nuw nsw i64 %spec.select, %67
  %68 = getelementptr inbounds [200000 x i64], ptr @tout, i64 0, i64 %63
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = add nuw nsw i64 %.04060, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge63.unr-lcssa, label %.lr.ph62, !llvm.loop !15

71:                                               ; preds = %._crit_edge63
  %72 = load i64, ptr @P, align 16, !tbaa !8
  %.not94 = icmp eq i64 %37, 1
  br i1 %.not94, label %.preheader50, label %.lr.ph68

.preheader50:                                     ; preds = %.lr.ph68, %71
  %.039.lcssa = phi i64 [ %72, %71 ], [ %77, %.lr.ph68 ]
  %73 = phi i64 [ %37, %71 ], [ %79, %.lr.ph68 ]
  %74 = icmp sgt i64 %73, 0
  br i1 %74, label %.lr.ph72, label %._crit_edge73

.lr.ph68:                                         ; preds = %71, %.lr.ph68
  %.03866 = phi i64 [ %78, %.lr.ph68 ], [ 1, %71 ]
  %.03965 = phi i64 [ %77, %.lr.ph68 ], [ %72, %71 ]
  %75 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.03866
  %76 = load i64, ptr %75, align 8, !tbaa !8
  %77 = call noundef i64 @_Z3lcaxx(i64 noundef %.03965, i64 noundef %76)
  %78 = add nuw nsw i64 %.03866, 1
  %79 = load i64, ptr @K, align 8, !tbaa !8
  %80 = icmp slt i64 %78, %79
  br i1 %80, label %.lr.ph68, label %.preheader50, !llvm.loop !16

.lr.ph72:                                         ; preds = %.preheader50, %84
  %.03671 = phi i64 [ %85, %84 ], [ 0, %.preheader50 ]
  %81 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.03671
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = icmp eq i64 %.039.lcssa, %82
  br i1 %83, label %.lr.ph76, label %84

84:                                               ; preds = %.lr.ph72
  %85 = add nuw nsw i64 %.03671, 1
  %exitcond87.not = icmp eq i64 %85, %73
  br i1 %exitcond87.not, label %._crit_edge73, label %.lr.ph72, !llvm.loop !17

._crit_edge73:                                    ; preds = %84, %.preheader50
  br label %._crit_edge63.thread, !llvm.loop !13

._crit_edge77:                                    ; preds = %95
  %86 = icmp eq i64 %.039.lcssa, %.1
  %.str..str.2 = select i1 %86, ptr @.str, ptr @.str.2
  br label %._crit_edge63.thread, !llvm.loop !13

.lr.ph76:                                         ; preds = %.lr.ph72, %95
  %87 = phi i64 [ %96, %95 ], [ %73, %.lr.ph72 ]
  %.075 = phi i64 [ %97, %95 ], [ 0, %.lr.ph72 ]
  %.03574 = phi i64 [ %.1, %95 ], [ -1, %.lr.ph72 ]
  %88 = icmp eq i64 %.075, %.03671
  br i1 %88, label %95, label %89

89:                                               ; preds = %.lr.ph76
  %90 = icmp eq i64 %.03574, -1
  %91 = getelementptr inbounds [200000 x i64], ptr @P, i64 0, i64 %.075
  %92 = load i64, ptr %91, align 8, !tbaa !8
  br i1 %90, label %95, label %93

93:                                               ; preds = %89
  %94 = call noundef i64 @_Z3lcaxx(i64 noundef %.03574, i64 noundef %92)
  %.pre = load i64, ptr @K, align 8, !tbaa !8
  br label %95

95:                                               ; preds = %89, %93, %.lr.ph76
  %96 = phi i64 [ %87, %.lr.ph76 ], [ %.pre, %93 ], [ %87, %89 ]
  %.1 = phi i64 [ %.03574, %.lr.ph76 ], [ %94, %93 ], [ %92, %89 ]
  %97 = add nuw nsw i64 %.075, 1
  %98 = icmp slt i64 %97, %96
  br i1 %98, label %.lr.ph76, label %._crit_edge77, !llvm.loop !18

._crit_edge63.thread.fold.split:                  ; preds = %._crit_edge63
  br label %._crit_edge63.thread

._crit_edge63.thread:                             ; preds = %._crit_edge63, %._crit_edge63.thread.fold.split, %._crit_edge77, %._crit_edge57, %._crit_edge73
  %.str.sink = phi ptr [ @.str, %._crit_edge73 ], [ @.str, %._crit_edge57 ], [ @.str, %._crit_edge63 ], [ %.str..str.2, %._crit_edge77 ], [ @.str.2, %._crit_edge63.thread.fold.split ]
  %99 = 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.sink)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %99, i8 noundef signext 10)
  %101 = load i64, ptr @Q, align 8, !tbaa !8
  %102 = add nsw i64 %101, -1
  store i64 %102, ptr @Q, align 8, !tbaa !8
  %.not = icmp eq i64 %101, 0
  br i1 %.not, label %._crit_edge82, label %.lr.ph81

._crit_edge82:                                    ; preds = %._crit_edge63.thread, %._crit_edge
  ret i32 0
}

; 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

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPxZ4mainE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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 = { 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}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


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