; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/LONG/AUG15/SCLUSTER/A.ll (Z3bfsii)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::pair" = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@k = external dso_local global i32, align 4
@g = external dso_local global [100 x [100 x i32]], align 16
@p = external dso_local global [3000 x %"struct.std::pair"], align 16
@f = external dso_local global [3000 x %"struct.std::pair"], align 16
@l = external dso_local global [3000 x %"struct.std::pair"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7inrangeii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3bfsii(i32 noundef %0, i32 noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::queue", align 8
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #7
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %27 = invoke 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)
          to label %28 unwind label %60

28:                                               ; preds = %2
  store i64 %27, ptr %7, align 4
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %29 unwind label %60

29:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 40000, i1 false)
  br label %30

30:                                               ; preds = %119, %117, %29
  %31 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %32 unwind label %64

32:                                               ; preds = %30
  br i1 %31, label %37, label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = load i32, ptr @k, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br label %37

37:                                               ; preds = %33, %32
  %38 = phi i1 [ false, %32 ], [ %36, %33 ]
  br i1 %38, label %39, label %141

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %40 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %41 unwind label %68

41:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %40, i64 8, i1 false)
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %42 unwind label %68

42:                                               ; preds = %41
  %43 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 0
  %44 = load i32, ptr %43, align 4, !tbaa !11
  store i32 %44, ptr %3, align 4, !tbaa !5
  %45 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !13
  store i32 %46, ptr %4, align 4, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %47, i32 noundef %48)
  br i1 %49, label %50, label %59

50:                                               ; preds = %42
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %52
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100 x i32], ptr %53, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %59, label %72

59:                                               ; preds = %50, %42
  store i32 2, ptr %12, align 4
  br label %117, !llvm.loop !14

60:                                               ; preds = %28, %2
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %361

64:                                               ; preds = %30
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  br label %360

68:                                               ; preds = %41, %39
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  br label %140

72:                                               ; preds = %50
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !5
  %75 = sext i32 %73 to i64
  %76 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %75
  %77 = getelementptr inbounds %"struct.std::pair", ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100 x i32], ptr %81, i64 0, i64 %83
  store i32 %78, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %85 = invoke 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)
          to label %86 unwind label %120

86:                                               ; preds = %72
  store i64 %85, ptr %13, align 4
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %88
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100 x i32], ptr %89, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @f, i64 0, i64 %94
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %15, align 4, !tbaa !5
  %99 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %100 unwind label %124

100:                                              ; preds = %86
  store i64 %99, ptr %14, align 4
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %101 unwind label %124

101:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  store i32 %103, ptr %17, align 4, !tbaa !5
  %104 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %105 unwind label %128

105:                                              ; preds = %101
  store i64 %104, ptr %16, align 4
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %106 unwind label %128

106:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %19, align 4, !tbaa !5
  %109 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %19)
          to label %110 unwind label %132

110:                                              ; preds = %106
  store i64 %109, ptr %18, align 4
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %111 unwind label %132

111:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = sub nsw i32 %112, 1
  store i32 %113, ptr %21, align 4, !tbaa !5
  %114 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %21)
          to label %115 unwind label %136

115:                                              ; preds = %111
  store i64 %114, ptr %20, align 4
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %116 unwind label %136

116:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  store i32 0, ptr %12, align 4
  br label %117

117:                                              ; preds = %116, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %118 = load i32, ptr %12, align 4
  switch i32 %118, label %367 [
    i32 0, label %119
    i32 2, label %30
  ]

119:                                              ; preds = %117
  br label %30, !llvm.loop !14

120:                                              ; preds = %72
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %8, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %140

124:                                              ; preds = %100, %86
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %8, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %140

128:                                              ; preds = %105, %101
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %8, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %140

132:                                              ; preds = %110, %106
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %8, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %140

136:                                              ; preds = %115, %111
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %8, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %140

140:                                              ; preds = %136, %132, %128, %124, %120, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %360

141:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store double 0.000000e+00, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %351, %141
  %143 = load i32, ptr %26, align 4, !tbaa !5
  %144 = load i32, ptr @k, align 4, !tbaa !5
  %145 = icmp sle i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %354

147:                                              ; preds = %142
  %148 = load i32, ptr %26, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @p, i64 0, i64 %149
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !11
  store i32 %152, ptr %3, align 4, !tbaa !5
  %153 = load i32, ptr %26, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @p, i64 0, i64 %154
  %156 = getelementptr inbounds %"struct.std::pair", ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 4, !tbaa !13
  store i32 %157, ptr %4, align 4, !tbaa !5
  %158 = load i32, ptr %3, align 4, !tbaa !5
  %159 = load i32, ptr %26, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @f, i64 0, i64 %160
  %162 = getelementptr inbounds %"struct.std::pair", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !11
  %164 = sub nsw i32 %158, %163
  %165 = call i32 @llvm.abs.i32(i32 %164, i1 true)
  %166 = load i32, ptr %4, align 4, !tbaa !5
  %167 = load i32, ptr %26, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @f, i64 0, i64 %168
  %170 = getelementptr inbounds %"struct.std::pair", ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !13
  %172 = sub nsw i32 %166, %171
  %173 = call i32 @llvm.abs.i32(i32 %172, i1 true)
  %174 = add nsw i32 %165, %173
  %175 = sitofp i32 %174 to double
  %176 = load i32, ptr %26, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %177
  %179 = getelementptr inbounds %"struct.std::pair", ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !11
  %181 = sitofp i32 %180 to double
  %182 = fdiv double %175, %181
  %183 = load double, ptr %22, align 8, !tbaa !16
  %184 = fadd double %183, %182
  store double %184, ptr %22, align 8, !tbaa !16
  store i32 0, ptr %25, align 4, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !5
  %185 = load i32, ptr %3, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  %187 = load i32, ptr %4, align 4, !tbaa !5
  %188 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %186, i32 noundef %187)
  br i1 %188, label %189, label %223

189:                                              ; preds = %147
  %190 = load i32, ptr %3, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %192
  %194 = load i32, ptr %4, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100 x i32], ptr %193, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = icmp sgt i32 %197, 0
  br i1 %198, label %199, label %223

199:                                              ; preds = %189
  %200 = load i32, ptr %3, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %202
  %204 = load i32, ptr %4, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100 x i32], ptr %203, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %208
  %210 = getelementptr inbounds %"struct.std::pair", ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 8, !tbaa !11
  %212 = load i32, ptr %26, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %213
  %215 = getelementptr inbounds %"struct.std::pair", ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !11
  %217 = sub nsw i32 %211, %216
  %218 = call i32 @llvm.abs.i32(i32 %217, i1 true)
  %219 = load i32, ptr %25, align 4, !tbaa !5
  %220 = add nsw i32 %219, %218
  store i32 %220, ptr %25, align 4, !tbaa !5
  %221 = load i32, ptr %24, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %24, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %199, %189, %147
  %224 = load i32, ptr %3, align 4, !tbaa !5
  %225 = sub nsw i32 %224, 1
  %226 = load i32, ptr %4, align 4, !tbaa !5
  %227 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %225, i32 noundef %226)
  br i1 %227, label %228, label %262

228:                                              ; preds = %223
  %229 = load i32, ptr %3, align 4, !tbaa !5
  %230 = sub nsw i32 %229, 1
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %231
  %233 = load i32, ptr %4, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [100 x i32], ptr %232, i64 0, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = icmp sgt i32 %236, 0
  br i1 %237, label %238, label %262

238:                                              ; preds = %228
  %239 = load i32, ptr %3, align 4, !tbaa !5
  %240 = sub nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %241
  %243 = load i32, ptr %4, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [100 x i32], ptr %242, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %247
  %249 = getelementptr inbounds %"struct.std::pair", ptr %248, i32 0, i32 0
  %250 = load i32, ptr %249, align 8, !tbaa !11
  %251 = load i32, ptr %26, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %252
  %254 = getelementptr inbounds %"struct.std::pair", ptr %253, i32 0, i32 0
  %255 = load i32, ptr %254, align 8, !tbaa !11
  %256 = sub nsw i32 %250, %255
  %257 = call i32 @llvm.abs.i32(i32 %256, i1 true)
  %258 = load i32, ptr %25, align 4, !tbaa !5
  %259 = add nsw i32 %258, %257
  store i32 %259, ptr %25, align 4, !tbaa !5
  %260 = load i32, ptr %24, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %24, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %238, %228, %223
  %263 = load i32, ptr %3, align 4, !tbaa !5
  %264 = load i32, ptr %4, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  %266 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %263, i32 noundef %265)
  br i1 %266, label %267, label %301

267:                                              ; preds = %262
  %268 = load i32, ptr %3, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %269
  %271 = load i32, ptr %4, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [100 x i32], ptr %270, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = icmp sgt i32 %275, 0
  br i1 %276, label %277, label %301

277:                                              ; preds = %267
  %278 = load i32, ptr %3, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %279
  %281 = load i32, ptr %4, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [100 x i32], ptr %280, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %286
  %288 = getelementptr inbounds %"struct.std::pair", ptr %287, i32 0, i32 0
  %289 = load i32, ptr %288, align 8, !tbaa !11
  %290 = load i32, ptr %26, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %291
  %293 = getelementptr inbounds %"struct.std::pair", ptr %292, i32 0, i32 0
  %294 = load i32, ptr %293, align 8, !tbaa !11
  %295 = sub nsw i32 %289, %294
  %296 = call i32 @llvm.abs.i32(i32 %295, i1 true)
  %297 = load i32, ptr %25, align 4, !tbaa !5
  %298 = add nsw i32 %297, %296
  store i32 %298, ptr %25, align 4, !tbaa !5
  %299 = load i32, ptr %24, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %24, align 4, !tbaa !5
  br label %301

301:                                              ; preds = %277, %267, %262
  %302 = load i32, ptr %3, align 4, !tbaa !5
  %303 = load i32, ptr %4, align 4, !tbaa !5
  %304 = sub nsw i32 %303, 1
  %305 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %302, i32 noundef %304)
  br i1 %305, label %306, label %340

306:                                              ; preds = %301
  %307 = load i32, ptr %3, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %308
  %310 = load i32, ptr %4, align 4, !tbaa !5
  %311 = sub nsw i32 %310, 1
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [100 x i32], ptr %309, i64 0, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = icmp sgt i32 %314, 0
  br i1 %315, label %316, label %340

316:                                              ; preds = %306
  %317 = load i32, ptr %3, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %318
  %320 = load i32, ptr %4, align 4, !tbaa !5
  %321 = sub nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [100 x i32], ptr %319, i64 0, i64 %322
  %324 = load i32, ptr %323, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %325
  %327 = getelementptr inbounds %"struct.std::pair", ptr %326, i32 0, i32 0
  %328 = load i32, ptr %327, align 8, !tbaa !11
  %329 = load i32, ptr %26, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %330
  %332 = getelementptr inbounds %"struct.std::pair", ptr %331, i32 0, i32 0
  %333 = load i32, ptr %332, align 8, !tbaa !11
  %334 = sub nsw i32 %328, %333
  %335 = call i32 @llvm.abs.i32(i32 %334, i1 true)
  %336 = load i32, ptr %25, align 4, !tbaa !5
  %337 = add nsw i32 %336, %335
  store i32 %337, ptr %25, align 4, !tbaa !5
  %338 = load i32, ptr %24, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %24, align 4, !tbaa !5
  br label %340

340:                                              ; preds = %316, %306, %301
  %341 = load i32, ptr %24, align 4, !tbaa !5
  %342 = icmp sgt i32 %341, 0
  br i1 %342, label %343, label %350

343:                                              ; preds = %340
  %344 = load i32, ptr %25, align 4, !tbaa !5
  %345 = load i32, ptr %24, align 4, !tbaa !5
  %346 = sdiv i32 %344, %345
  %347 = sitofp i32 %346 to double
  %348 = load double, ptr %23, align 8, !tbaa !16
  %349 = fadd double %348, %347
  store double %349, ptr %23, align 8, !tbaa !16
  br label %350

350:                                              ; preds = %343, %340
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %26, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %26, align 4, !tbaa !5
  br label %142, !llvm.loop !18

354:                                              ; preds = %146
  %355 = load double, ptr %22, align 8, !tbaa !16
  %356 = load double, ptr %23, align 8, !tbaa !16
  %357 = fmul double %356, 1.000000e+01
  %358 = call double @llvm.fmuladd.f64(double %355, double 1.000000e+03, double %357)
  %359 = fptosi double %358 to i64
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i64 %359

360:                                              ; preds = %140, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %361

361:                                              ; preds = %360, %60
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %362

362:                                              ; preds = %361
  %363 = load ptr, ptr %8, align 8
  %364 = load i32, ptr %9, align 4
  %365 = insertvalue { ptr, i32 } poison, ptr %363, 0
  %366 = insertvalue { ptr, i32 } %365, i32 %364, 1
  resume { ptr, i32 } %366

367:                                              ; preds = %117
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(8)) #1 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)) #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::pair" = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@k = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local local_unnamed_addr global [100 x [100 x i32]], align 16
@p = external dso_local local_unnamed_addr global [3000 x %"struct.std::pair"], align 16
@f = external dso_local global [3000 x %"struct.std::pair"], align 16
@l = external dso_local local_unnamed_addr global [3000 x %"struct.std::pair"], align 16

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3bfsii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::queue", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %16 = invoke 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)
          to label %17 unwind label %33

17:                                               ; preds = %2
  store i64 %16, ptr %6, align 8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %18 unwind label %33

18:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40000) @g, i8 0, i64 40000, i1 false)
  %19 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %20 = load i32, ptr @k, align 4
  %21 = icmp slt i32 %20, 1
  %.not4755 = select i1 %19, i1 true, i1 %21
  br i1 %.not4755, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %71, %18
  %22 = phi i32 [ %20, %18 ], [ %73, %71 ]
  %.not57 = icmp slt i32 %22, 1
  br i1 %.not57, label %._crit_edge, label %.lr.ph61

.lr.ph:                                           ; preds = %18, %71
  %.04156 = phi i32 [ %.142, %71 ], [ 1, %18 ]
  %23 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %.sroa.0.0.copyload = load i32, ptr %23, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 4
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  store i32 %.sroa.0.0.copyload, ptr %3, align 4, !tbaa !5
  store i32 %.sroa.5.0.copyload, ptr %4, align 4, !tbaa !5
  %24 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %.sroa.0.0.copyload, i32 noundef %.sroa.5.0.copyload)
  br i1 %24, label %25, label %71, !llvm.loop !9

25:                                               ; preds = %.lr.ph
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %27, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %71, label %35, !llvm.loop !9

33:                                               ; preds = %17, %2
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %189

35:                                               ; preds = %25
  %36 = add nsw i32 %.04156, 1
  %37 = sext i32 %.04156 to i64
  %38 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %37, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !11
  store i32 %39, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %40 = invoke 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)
          to label %41 unwind label %75

41:                                               ; preds = %35
  store i64 %40, ptr %7, align 8
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @f, i64 0, i64 %48
  %50 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %9, align 4, !tbaa !5
  %53 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %54 unwind label %77

54:                                               ; preds = %41
  store i64 %53, ptr %8, align 8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %55 unwind label %77

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %11, align 4, !tbaa !5
  %58 = invoke i64 @_ZSt9make_pairIiRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %59 unwind label %79

59:                                               ; preds = %55
  store i64 %58, ptr %10, align 8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %60 unwind label %79

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %13, align 4, !tbaa !5
  %63 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %13)
          to label %64 unwind label %81

64:                                               ; preds = %60
  store i64 %63, ptr %12, align 8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %65 unwind label %81

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %15, align 4, !tbaa !5
  %68 = invoke i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %15)
          to label %69 unwind label %83

69:                                               ; preds = %65
  store i64 %68, ptr %14, align 8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %70 unwind label %83

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %71

71:                                               ; preds = %.lr.ph, %25, %70
  %.142 = phi i32 [ %36, %70 ], [ %.04156, %25 ], [ %.04156, %.lr.ph ]
  %72 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %73 = load i32, ptr @k, align 4
  %74 = icmp sgt i32 %.142, %73
  %.not47 = select i1 %72, i1 true, i1 %74
  br i1 %.not47, label %.preheader, label %.lr.ph

75:                                               ; preds = %35
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %189

77:                                               ; preds = %54, %41
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %189

79:                                               ; preds = %59, %55
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %189

81:                                               ; preds = %64, %60
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %189

83:                                               ; preds = %69, %65
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %189

._crit_edge.loopexit:                             ; preds = %186
  %85 = fmul double %.135, 1.000000e+01
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.036.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %106, %._crit_edge.loopexit ]
  %.034.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %85, %._crit_edge.loopexit ]
  %86 = call double @llvm.fmuladd.f64(double %.036.lcssa, double 1.000000e+03, double %.034.lcssa)
  %87 = fptosi double %86 to i64
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  ret i64 %87

.lr.ph61:                                         ; preds = %.preheader, %186
  %indvars.iv = phi i64 [ %indvars.iv.next, %186 ], [ 1, %.preheader ]
  %.03459 = phi double [ %.135, %186 ], [ 0.000000e+00, %.preheader ]
  %.03658 = phi double [ %106, %186 ], [ 0.000000e+00, %.preheader ]
  %88 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @p, i64 0, i64 %indvars.iv
  %89 = load i32, ptr %88, align 8, !tbaa !13
  store i32 %89, ptr %3, align 4, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %88, i64 4
  %91 = load i32, ptr %90, align 4, !tbaa !11
  store i32 %91, ptr %4, align 4, !tbaa !5
  %92 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @f, i64 0, i64 %indvars.iv
  %93 = load i32, ptr %92, align 8, !tbaa !13
  %94 = sub nsw i32 %89, %93
  %95 = call i32 @llvm.abs.i32(i32 %94, i1 true)
  %96 = getelementptr inbounds i8, ptr %92, i64 4
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = sub nsw i32 %91, %97
  %99 = call i32 @llvm.abs.i32(i32 %98, i1 true)
  %100 = add nuw nsw i32 %99, %95
  %101 = uitofp nneg i32 %100 to double
  %102 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %indvars.iv
  %103 = load i32, ptr %102, align 8, !tbaa !13
  %104 = sitofp i32 %103 to double
  %105 = fdiv double %101, %104
  %106 = fadd double %.03658, %105
  %107 = add nsw i32 %89, 1
  %108 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %107, i32 noundef %91)
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre64 = load i32, ptr %4, align 4, !tbaa !5
  br i1 %108, label %109, label %123

109:                                              ; preds = %.lr.ph61
  %110 = add nsw i32 %.pre, 1
  %111 = sext i32 %110 to i64
  %112 = sext i32 %.pre64 to i64
  %113 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %111, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %116, label %123

116:                                              ; preds = %109
  %117 = zext nneg i32 %114 to i64
  %118 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %117
  %119 = load i32, ptr %118, align 8, !tbaa !13
  %120 = load i32, ptr %102, align 8, !tbaa !13
  %121 = sub nsw i32 %119, %120
  %122 = call i32 @llvm.abs.i32(i32 %121, i1 true)
  br label %123

123:                                              ; preds = %116, %109, %.lr.ph61
  %.030 = phi i32 [ 1, %116 ], [ 0, %109 ], [ 0, %.lr.ph61 ]
  %.029 = phi i32 [ %122, %116 ], [ 0, %109 ], [ 0, %.lr.ph61 ]
  %124 = add nsw i32 %.pre, -1
  %125 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %124, i32 noundef %.pre64)
  %.pre65 = load i32, ptr %3, align 4, !tbaa !5
  %.pre66 = load i32, ptr %4, align 4, !tbaa !5
  br i1 %125, label %126, label %142

126:                                              ; preds = %123
  %127 = add nsw i32 %.pre65, -1
  %128 = sext i32 %127 to i64
  %129 = sext i32 %.pre66 to i64
  %130 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %128, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %133, label %142

133:                                              ; preds = %126
  %134 = zext nneg i32 %131 to i64
  %135 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %134
  %136 = load i32, ptr %135, align 8, !tbaa !13
  %137 = load i32, ptr %102, align 8, !tbaa !13
  %138 = sub nsw i32 %136, %137
  %139 = call i32 @llvm.abs.i32(i32 %138, i1 true)
  %140 = add nuw nsw i32 %139, %.029
  %141 = add nuw nsw i32 %.030, 1
  br label %142

142:                                              ; preds = %133, %126, %123
  %.131 = phi i32 [ %141, %133 ], [ %.030, %126 ], [ %.030, %123 ]
  %.1 = phi i32 [ %140, %133 ], [ %.029, %126 ], [ %.029, %123 ]
  %143 = add nsw i32 %.pre66, 1
  %144 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %.pre65, i32 noundef %143)
  %.pre67 = load i32, ptr %3, align 4, !tbaa !5
  %.pre68 = load i32, ptr %4, align 4, !tbaa !5
  br i1 %144, label %145, label %161

145:                                              ; preds = %142
  %146 = sext i32 %.pre67 to i64
  %147 = add nsw i32 %.pre68, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %146, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %152, label %161

152:                                              ; preds = %145
  %153 = zext nneg i32 %150 to i64
  %154 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %153
  %155 = load i32, ptr %154, align 8, !tbaa !13
  %156 = load i32, ptr %102, align 8, !tbaa !13
  %157 = sub nsw i32 %155, %156
  %158 = call i32 @llvm.abs.i32(i32 %157, i1 true)
  %159 = add nuw nsw i32 %158, %.1
  %160 = add nuw nsw i32 %.131, 1
  br label %161

161:                                              ; preds = %152, %145, %142
  %.232 = phi i32 [ %160, %152 ], [ %.131, %145 ], [ %.131, %142 ]
  %.2 = phi i32 [ %159, %152 ], [ %.1, %145 ], [ %.1, %142 ]
  %162 = add nsw i32 %.pre68, -1
  %163 = call noundef zeroext i1 @_Z7inrangeii(i32 noundef %.pre67, i32 noundef %162)
  br i1 %163, label %164, label %181

164:                                              ; preds = %161
  %165 = load i32, ptr %3, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = add nsw i32 %167, -1
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100 x [100 x i32]], ptr @g, i64 0, i64 %166, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = icmp sgt i32 %171, 0
  br i1 %172, label %.thread, label %181

.thread:                                          ; preds = %164
  %173 = zext nneg i32 %171 to i64
  %174 = getelementptr inbounds [3000 x %"struct.std::pair"], ptr @l, i64 0, i64 %173
  %175 = load i32, ptr %174, align 8, !tbaa !13
  %176 = load i32, ptr %102, align 8, !tbaa !13
  %177 = sub nsw i32 %175, %176
  %178 = call i32 @llvm.abs.i32(i32 %177, i1 true)
  %179 = add nuw nsw i32 %178, %.2
  %180 = add nuw nsw i32 %.232, 1
  br label %182

181:                                              ; preds = %164, %161
  %.not54 = icmp eq i32 %.232, 0
  br i1 %.not54, label %186, label %182

182:                                              ; preds = %.thread, %181
  %.353 = phi i32 [ %179, %.thread ], [ %.2, %181 ]
  %.33352 = phi i32 [ %180, %.thread ], [ %.232, %181 ]
  %183 = udiv i32 %.353, %.33352
  %184 = uitofp nneg i32 %183 to double
  %185 = fadd double %.03459, %184
  br label %186

186:                                              ; preds = %181, %182
  %.135 = phi double [ %185, %182 ], [ %.03459, %181 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %187 = load i32, ptr @k, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %.not.not = icmp slt i64 %indvars.iv, %188
  br i1 %.not.not, label %.lr.ph61, label %._crit_edge.loopexit, !llvm.loop !14

189:                                              ; preds = %75, %77, %79, %81, %83, %33
  %.pn.pn = phi { ptr, i32 } [ %34, %33 ], [ %84, %83 ], [ %82, %81 ], [ %80, %79 ], [ %78, %77 ], [ %76, %75 ]
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 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 #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiRiESt4pairINSt25__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 #1

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiiESt4pairINSt25__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 #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 4}
!12 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 0}
!14 = distinct !{!14, !10}


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