; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/Pi/Problem E (E)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@cnt1 = external dso_local global [100100 x i32], align 16
@cnt2 = external dso_local global [100100 x i32], align 16
@d1 = external dso_local global [100100 x i64], align 16
@d2 = external dso_local global [100100 x i64], align 16
@len = external dso_local global [100100 x i64], align 16
@thres = external dso_local global i64, align 8
@g = external dso_local global [100100 x %"class.std::vector"], align 16
@rg = external dso_local global [100100 x %"class.std::vector"], align 16
@roads = external dso_local global %"class.std::vector", align 8
@ok = external dso_local global [100100 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3sp1v() #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 @_Z3sp2v() #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3sp3v() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 %"struct.std::pair.5", align 4
  %7 = alloca %"struct.std::pair.5", align 4
  %8 = alloca %"struct.std::pair.5", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @s, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %34, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %23 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %23, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @rg, i64 0, i64 %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %27 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i64 %27, ptr %7, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %28 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %28, ptr %8, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @roads, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %32
  store i64 %30, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %34

34:                                               ; preds = %18
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !11

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

38:                                               ; preds = %47, %37
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %38
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %45
  store i8 0, ptr %46, align 1, !tbaa !13
  br label %47

47:                                               ; preds = %43
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %9, align 4, !tbaa !5
  br label %38, !llvm.loop !15

50:                                               ; preds = %42
  call void @_Z3sp1v()
  call void @_Z3sp2v()
  %51 = load i32, ptr @t, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !9
  store i64 %54, ptr @thres, align 8, !tbaa !9
  call void @_Z3sp3v()
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %225, %50
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = load i32, ptr @m, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %228

60:                                               ; preds = %55
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %62) #5
  %64 = getelementptr inbounds %"struct.std::pair.5", ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !16
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !13, !range !18, !noundef !19
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %86

70:                                               ; preds = %60
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %72) #5
  %74 = getelementptr inbounds %"struct.std::pair.5", ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !13, !range !18, !noundef !19
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %86

80:                                               ; preds = %70
  %81 = load i32, ptr @t, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !13, !range !18, !noundef !19
  %85 = trunc i8 %84 to i1
  br i1 %85, label %88, label %86

86:                                               ; preds = %80, %70, %60
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %225

88:                                               ; preds = %80
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %90) #5
  %92 = getelementptr inbounds %"struct.std::pair.5", ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !16
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [100100 x i32], ptr @cnt1, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %98, label %135

98:                                               ; preds = %88
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %100) #5
  %102 = getelementptr inbounds %"struct.std::pair.5", ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 4, !tbaa !20
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100100 x i32], ptr @cnt2, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %135

108:                                              ; preds = %98
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %110) #5
  %112 = getelementptr inbounds %"struct.std::pair.5", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4, !tbaa !16
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %118) #5
  %120 = getelementptr inbounds %"struct.std::pair.5", ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !20
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = add nsw i64 %116, %124
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = add nsw i64 %125, %129
  %131 = load i64, ptr @thres, align 8, !tbaa !9
  %132 = icmp eq i64 %130, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %108
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %224

135:                                              ; preds = %108, %98, %88
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %141) #5
  %143 = getelementptr inbounds %"struct.std::pair.5", ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 4, !tbaa !16
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %149) #5
  %151 = getelementptr inbounds %"struct.std::pair.5", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !20
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = add nsw i64 %147, %155
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = add nsw i64 %156, %160
  %162 = load i64, ptr @thres, align 8, !tbaa !9
  %163 = sub nsw i64 %162, 1
  %164 = sub nsw i64 %161, %163
  %165 = sub nsw i64 %139, %164
  %166 = icmp sgt i64 %165, 0
  br i1 %166, label %167, label %221

167:                                              ; preds = %135
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %169) #5
  %171 = getelementptr inbounds %"struct.std::pair.5", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !16
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %177) #5
  %179 = getelementptr inbounds %"struct.std::pair.5", ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !20
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = add nsw i64 %175, %183
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !9
  %189 = add nsw i64 %184, %188
  %190 = load i64, ptr @thres, align 8, !tbaa !9
  %191 = sub nsw i64 %190, 1
  %192 = sub nsw i64 %189, %191
  %193 = icmp sgt i64 %192, 0
  br i1 %193, label %194, label %221

194:                                              ; preds = %167
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %196) #5
  %198 = getelementptr inbounds %"struct.std::pair.5", ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 4, !tbaa !16
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %204) #5
  %206 = getelementptr inbounds %"struct.std::pair.5", ptr %205, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !20
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = add nsw i64 %202, %210
  %212 = load i32, ptr %10, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = add nsw i64 %211, %215
  %217 = load i64, ptr @thres, align 8, !tbaa !9
  %218 = sub nsw i64 %216, %217
  %219 = add nsw i64 %218, 1
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %219)
  br label %223

221:                                              ; preds = %167, %135
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %223

223:                                              ; preds = %221, %194
  br label %224

224:                                              ; preds = %223, %133
  br label %225

225:                                              ; preds = %224, %86
  %226 = load i32, ptr %10, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %10, align 4, !tbaa !5
  br label %55, !llvm.loop !21

228:                                              ; preds = %59
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

declare i32 @printf(ptr noundef, ...) #3

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 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!17, !6, i64 4}
!21 = distinct !{!21, !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<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.5" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@cnt1 = external dso_local local_unnamed_addr global [100100 x i32], align 16
@cnt2 = external dso_local local_unnamed_addr global [100100 x i32], align 16
@d1 = external dso_local local_unnamed_addr global [100100 x i64], align 16
@d2 = external dso_local local_unnamed_addr global [100100 x i64], align 16
@len = external dso_local local_unnamed_addr global [100100 x i64], align 16
@thres = external dso_local local_unnamed_addr global i64, align 8
@g = external dso_local global [100100 x %"class.std::vector"], align 16
@rg = external dso_local global [100100 x %"class.std::vector"], align 16
@roads = external dso_local global %"class.std::vector", align 8
@ok = external dso_local local_unnamed_addr global [100100 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3sp1v() 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 @_Z3sp2v() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3sp3v() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair.5", align 8
  %5 = alloca %"struct.std::pair.5", align 8
  %6 = alloca %"struct.std::pair.5", align 8
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %9 = load i32, ptr @m, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %0
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %.not32 = icmp slt i32 %11, 1
  br i1 %.not32, label %._crit_edge, label %.lr.ph34.preheader

.lr.ph34.preheader:                               ; preds = %.preheader
  %12 = zext nneg i32 %11 to i64
  call void @llvm.memset.p0.i64(ptr nonnull align 1 getelementptr inbounds (i8, ptr @ok, i64 1), i8 0, i64 %12, i1 false), !tbaa !9
  br label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %17 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %17, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @rg, i64 0, i64 %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %21 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i64 %21, ptr %5, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %22 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %22, ptr %6, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @roads, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %indvars.iv
  store i64 %24, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #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
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr @m, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %.preheader, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph34.preheader, %.preheader
  call void @_Z3sp1v()
  call void @_Z3sp2v()
  %29 = load i32, ptr @t, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !11
  store i64 %32, ptr @thres, align 8, !tbaa !11
  call void @_Z3sp3v()
  %33 = load i32, ptr @m, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph37, label %._crit_edge38

._crit_edge38:                                    ; preds = %149, %._crit_edge
  ret i32 0

.lr.ph37:                                         ; preds = %._crit_edge, %149
  %indvars.iv43 = phi i64 [ %indvars.iv.next44, %149 ], [ 0, %._crit_edge ]
  %35 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !9, !range !17, !noundef !18
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %41, label %55

41:                                               ; preds = %.lr.ph37
  %42 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 4
  %44 = load i32, ptr %43, align 4, !tbaa !19
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !9, !range !17, !noundef !18
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %55

49:                                               ; preds = %41
  %50 = load i32, ptr @t, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100100 x i8], ptr @ok, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !9, !range !17, !noundef !18
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %57, label %55

55:                                               ; preds = %49, %41, %.lr.ph37
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %149

57:                                               ; preds = %49
  %58 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [100100 x i32], ptr @cnt1, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %92

64:                                               ; preds = %57
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !19
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100100 x i32], ptr @cnt2, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %92

72:                                               ; preds = %64
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %74 = load i32, ptr %73, align 4, !tbaa !15
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !19
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !11
  %84 = add nsw i64 %83, %77
  %85 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %indvars.iv43
  %86 = load i64, ptr %85, align 8, !tbaa !11
  %87 = add nsw i64 %84, %86
  %88 = load i64, ptr @thres, align 8, !tbaa !11
  %89 = icmp eq i64 %87, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %72
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %149

92:                                               ; preds = %72, %64, %57
  %93 = getelementptr inbounds [100100 x i64], ptr @len, i64 0, i64 %indvars.iv43
  %94 = load i64, ptr %93, align 8, !tbaa !11
  %95 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %96 = load i32, ptr %95, align 4, !tbaa !15
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %101 = getelementptr inbounds i8, ptr %100, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !19
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = load i64, ptr %93, align 8, !tbaa !11
  %107 = load i64, ptr @thres, align 8, !tbaa !11
  %.neg29 = sub i64 %99, %94
  %108 = add i64 %.neg29, %105
  %109 = add i64 %108, %106
  %110 = sub i64 %109, %107
  %111 = icmp slt i64 %110, -1
  br i1 %111, label %112, label %147

112:                                              ; preds = %92
  %113 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %114 = load i32, ptr %113, align 4, !tbaa !15
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !11
  %118 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %119 = getelementptr inbounds i8, ptr %118, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !19
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !11
  %124 = add nsw i64 %123, %117
  %125 = load i64, ptr %93, align 8, !tbaa !11
  %126 = add nsw i64 %124, %125
  %127 = load i64, ptr @thres, align 8, !tbaa !11
  %.not27 = icmp slt i64 %126, %127
  br i1 %.not27, label %147, label %128

128:                                              ; preds = %112
  %129 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100100 x i64], ptr @d1, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @roads, i64 noundef %indvars.iv43) #6
  %135 = getelementptr inbounds i8, ptr %134, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !19
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100100 x i64], ptr @d2, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !11
  %140 = load i64, ptr %93, align 8, !tbaa !11
  %141 = load i64, ptr @thres, align 8, !tbaa !11
  %142 = add i64 %133, 1
  %143 = add i64 %142, %139
  %144 = add i64 %143, %140
  %145 = sub i64 %144, %141
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i64 noundef %145)
  br label %149

147:                                              ; preds = %112, %92
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %149

149:                                              ; preds = %90, %147, %128, %55
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %150 = load i32, ptr @m, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = icmp slt i64 %indvars.iv.next44, %151
  br i1 %152, label %.lr.ph37, label %._crit_edge38, !llvm.loop !20
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 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 #3 = { nofree nounwind "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!16, !6, i64 4}
!20 = distinct !{!20, !14}


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