; LLVM IR from Tunghohin/Competitive_Coding :: Daimayuan (436)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@a = external dso_local global [500010 x i32], align 16
@L_max = external dso_local global [500010 x i32], align 16
@R_max = external dso_local global [500010 x i32], align 16
@L_min = external dso_local global [500010 x i32], align 16
@R_min = external dso_local global [500010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

25:                                               ; preds = %35, %0
  %26 = load i32, ptr %3, align 4, !tbaa !8
  %27 = load i32, ptr %2, align 4, !tbaa !8
  %28 = icmp sle i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %38

30:                                               ; preds = %25
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %32
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %33)
  br label %35

35:                                               ; preds = %30
  %36 = load i32, ptr %3, align 4, !tbaa !8
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !8
  br label %25, !llvm.loop !11

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %39 unwind label %45

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %134, %39
  %41 = load i32, ptr %8, align 4, !tbaa !8
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %137

45:                                               ; preds = %38
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  br label %337

49:                                               ; preds = %40
  br label %50

50:                                               ; preds = %68, %49
  %51 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %52 unwind label %69

52:                                               ; preds = %50
  br i1 %51, label %65, label %53

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %55 unwind label %69

55:                                               ; preds = %53
  %56 = load i32, ptr %54, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = load i32, ptr %8, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = icmp sle i32 %59, %63
  br label %65

65:                                               ; preds = %55, %52
  %66 = phi i1 [ false, %52 ], [ %64, %55 ]
  br i1 %66, label %67, label %73

67:                                               ; preds = %65
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %68 unwind label %69

68:                                               ; preds = %67
  br label %50, !llvm.loop !13

69:                                               ; preds = %132, %116, %113, %111, %97, %94, %92, %76, %73, %67, %53, %50
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %336

73:                                               ; preds = %65
  %74 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %75 unwind label %69

75:                                               ; preds = %73
  br i1 %74, label %86, label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %8, align 4, !tbaa !8
  %78 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %79 unwind label %69

79:                                               ; preds = %76
  %80 = load i32, ptr %78, align 4, !tbaa !8
  %81 = sub nsw i32 %77, %80
  %82 = sub nsw i32 %81, 1
  %83 = load i32, ptr %8, align 4, !tbaa !8
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %84
  store i32 %82, ptr %85, align 4, !tbaa !8
  br label %92

86:                                               ; preds = %75
  %87 = load i32, ptr %8, align 4, !tbaa !8
  %88 = sub nsw i32 %87, 1
  %89 = load i32, ptr %8, align 4, !tbaa !8
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %90
  store i32 %88, ptr %91, align 4, !tbaa !8
  br label %92

92:                                               ; preds = %86, %79
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %93 unwind label %69

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %112, %93
  %95 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %96 unwind label %69

96:                                               ; preds = %94
  br i1 %95, label %109, label %97

97:                                               ; preds = %96
  %98 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %99 unwind label %69

99:                                               ; preds = %97
  %100 = load i32, ptr %98, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = load i32, ptr %8, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !8
  %108 = icmp sgt i32 %103, %107
  br label %109

109:                                              ; preds = %99, %96
  %110 = phi i1 [ false, %96 ], [ %108, %99 ]
  br i1 %110, label %111, label %113

111:                                              ; preds = %109
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %112 unwind label %69

112:                                              ; preds = %111
  br label %94, !llvm.loop !14

113:                                              ; preds = %109
  %114 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %115 unwind label %69

115:                                              ; preds = %113
  br i1 %114, label %126, label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %8, align 4, !tbaa !8
  %118 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %119 unwind label %69

119:                                              ; preds = %116
  %120 = load i32, ptr %118, align 4, !tbaa !8
  %121 = sub nsw i32 %117, %120
  %122 = sub nsw i32 %121, 1
  %123 = load i32, ptr %8, align 4, !tbaa !8
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %124
  store i32 %122, ptr %125, align 4, !tbaa !8
  br label %132

126:                                              ; preds = %115
  %127 = load i32, ptr %8, align 4, !tbaa !8
  %128 = sub nsw i32 %127, 1
  %129 = load i32, ptr %8, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %130
  store i32 %128, ptr %131, align 4, !tbaa !8
  br label %132

132:                                              ; preds = %126, %119
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %133 unwind label %69

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %8, align 4, !tbaa !8
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %8, align 4, !tbaa !8
  br label %40, !llvm.loop !15

137:                                              ; preds = %44
  br label %138

138:                                              ; preds = %143, %137
  %139 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %140 unwind label %144

140:                                              ; preds = %138
  %141 = xor i1 %139, true
  br i1 %141, label %142, label %148

142:                                              ; preds = %140
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %143 unwind label %144

143:                                              ; preds = %142
  br label %138, !llvm.loop !16

144:                                              ; preds = %153, %149, %142, %138
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %6, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %7, align 4
  br label %336

148:                                              ; preds = %140
  br label %149

149:                                              ; preds = %154, %148
  %150 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %151 unwind label %144

151:                                              ; preds = %149
  %152 = xor i1 %150, true
  br i1 %152, label %153, label %155

153:                                              ; preds = %151
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %154 unwind label %144

154:                                              ; preds = %153
  br label %149, !llvm.loop !17

155:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %156 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %156, ptr %9, align 4, !tbaa !8
  br label %157

157:                                              ; preds = %248, %155
  %158 = load i32, ptr %9, align 4, !tbaa !8
  %159 = icmp sge i32 %158, 1
  br i1 %159, label %161, label %160

160:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %251

161:                                              ; preds = %157
  br label %162

162:                                              ; preds = %180, %161
  %163 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %164 unwind label %181

164:                                              ; preds = %162
  br i1 %163, label %177, label %165

165:                                              ; preds = %164
  %166 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %167 unwind label %181

167:                                              ; preds = %165
  %168 = load i32, ptr %166, align 4, !tbaa !8
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !8
  %172 = load i32, ptr %9, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !8
  %176 = icmp slt i32 %171, %175
  br label %177

177:                                              ; preds = %167, %164
  %178 = phi i1 [ false, %164 ], [ %176, %167 ]
  br i1 %178, label %179, label %185

179:                                              ; preds = %177
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %180 unwind label %181

180:                                              ; preds = %179
  br label %162, !llvm.loop !18

181:                                              ; preds = %246, %229, %226, %224, %210, %207, %205, %188, %185, %179, %165, %162
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %6, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %336

185:                                              ; preds = %177
  %186 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %187 unwind label %181

187:                                              ; preds = %185
  br i1 %186, label %198, label %188

188:                                              ; preds = %187
  %189 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %190 unwind label %181

190:                                              ; preds = %188
  %191 = load i32, ptr %189, align 4, !tbaa !8
  %192 = load i32, ptr %9, align 4, !tbaa !8
  %193 = sub nsw i32 %191, %192
  %194 = sub nsw i32 %193, 1
  %195 = load i32, ptr %9, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %196
  store i32 %194, ptr %197, align 4, !tbaa !8
  br label %205

198:                                              ; preds = %187
  %199 = load i32, ptr %2, align 4, !tbaa !8
  %200 = load i32, ptr %9, align 4, !tbaa !8
  %201 = sub nsw i32 %199, %200
  %202 = load i32, ptr %9, align 4, !tbaa !8
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %203
  store i32 %201, ptr %204, align 4, !tbaa !8
  br label %205

205:                                              ; preds = %198, %190
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %206 unwind label %181

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %225, %206
  %208 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %209 unwind label %181

209:                                              ; preds = %207
  br i1 %208, label %222, label %210

210:                                              ; preds = %209
  %211 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %212 unwind label %181

212:                                              ; preds = %210
  %213 = load i32, ptr %211, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !8
  %217 = load i32, ptr %9, align 4, !tbaa !8
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !8
  %221 = icmp sge i32 %216, %220
  br label %222

222:                                              ; preds = %212, %209
  %223 = phi i1 [ false, %209 ], [ %221, %212 ]
  br i1 %223, label %224, label %226

224:                                              ; preds = %222
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %225 unwind label %181

225:                                              ; preds = %224
  br label %207, !llvm.loop !19

226:                                              ; preds = %222
  %227 = invoke noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %228 unwind label %181

228:                                              ; preds = %226
  br i1 %227, label %239, label %229

229:                                              ; preds = %228
  %230 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %231 unwind label %181

231:                                              ; preds = %229
  %232 = load i32, ptr %230, align 4, !tbaa !8
  %233 = load i32, ptr %9, align 4, !tbaa !8
  %234 = sub nsw i32 %232, %233
  %235 = sub nsw i32 %234, 1
  %236 = load i32, ptr %9, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %237
  store i32 %235, ptr %238, align 4, !tbaa !8
  br label %246

239:                                              ; preds = %228
  %240 = load i32, ptr %2, align 4, !tbaa !8
  %241 = load i32, ptr %9, align 4, !tbaa !8
  %242 = sub nsw i32 %240, %241
  %243 = load i32, ptr %9, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %244
  store i32 %242, ptr %245, align 4, !tbaa !8
  br label %246

246:                                              ; preds = %239, %231
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %247 unwind label %181

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %9, align 4, !tbaa !8
  %250 = add nsw i32 %249, -1
  store i32 %250, ptr %9, align 4, !tbaa !8
  br label %157, !llvm.loop !20

251:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %252

252:                                              ; preds = %320, %251
  %253 = load i32, ptr %12, align 4, !tbaa !8
  %254 = load i32, ptr %2, align 4, !tbaa !8
  %255 = icmp sle i32 %253, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %323

257:                                              ; preds = %252
  %258 = load i32, ptr %12, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = load i32, ptr %12, align 4, !tbaa !8
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !8
  %267 = load i32, ptr %12, align 4, !tbaa !8
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !8
  %271 = add nsw i32 %266, %270
  %272 = sext i32 %271 to i64
  %273 = load i32, ptr %12, align 4, !tbaa !8
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !8
  %277 = sext i32 %276 to i64
  %278 = load i32, ptr %12, align 4, !tbaa !8
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %279
  %281 = load i32, ptr %280, align 4, !tbaa !8
  %282 = sext i32 %281 to i64
  %283 = mul nsw i64 %277, %282
  %284 = add nsw i64 %272, %283
  %285 = add nsw i64 %284, 1
  %286 = mul nsw i64 %262, %285
  %287 = load i64, ptr %10, align 8, !tbaa !21
  %288 = add nsw i64 %287, %286
  store i64 %288, ptr %10, align 8, !tbaa !21
  %289 = load i32, ptr %12, align 4, !tbaa !8
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %290
  %292 = load i32, ptr %291, align 4, !tbaa !8
  %293 = sext i32 %292 to i64
  %294 = load i32, ptr %12, align 4, !tbaa !8
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !8
  %298 = load i32, ptr %12, align 4, !tbaa !8
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !8
  %302 = add nsw i32 %297, %301
  %303 = sext i32 %302 to i64
  %304 = load i32, ptr %12, align 4, !tbaa !8
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %305
  %307 = load i32, ptr %306, align 4, !tbaa !8
  %308 = sext i32 %307 to i64
  %309 = load i32, ptr %12, align 4, !tbaa !8
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !8
  %313 = sext i32 %312 to i64
  %314 = mul nsw i64 %308, %313
  %315 = add nsw i64 %303, %314
  %316 = add nsw i64 %315, 1
  %317 = mul nsw i64 %293, %316
  %318 = load i64, ptr %11, align 8, !tbaa !21
  %319 = add nsw i64 %318, %317
  store i64 %319, ptr %11, align 8, !tbaa !21
  br label %320

320:                                              ; preds = %257
  %321 = load i32, ptr %12, align 4, !tbaa !8
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %12, align 4, !tbaa !8
  br label %252, !llvm.loop !23

323:                                              ; preds = %256
  %324 = load i64, ptr %10, align 8, !tbaa !21
  %325 = load i64, ptr %11, align 8, !tbaa !21
  %326 = sub nsw i64 %324, %325
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %326)
          to label %328 unwind label %332

328:                                              ; preds = %323
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %327, i8 noundef signext 10)
          to label %330 unwind label %332

330:                                              ; preds = %328
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %331 = load i32, ptr %1, align 4
  ret i32 %331

332:                                              ; preds = %328, %323
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %6, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %336

336:                                              ; preds = %332, %181, %144, %69
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #7
  br label %337

337:                                              ; preds = %336, %45
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %338

338:                                              ; preds = %337
  %339 = load ptr, ptr %6, align 8
  %340 = load i32, ptr %7, align 4
  %341 = insertvalue { ptr, i32 } poison, ptr %339, 0
  %342 = insertvalue { ptr, i32 } %341, i32 %340, 1
  resume { ptr, i32 } %342
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = !{!22, !22, i64 0}
!22 = !{!"long long", !10, i64 0}
!23 = distinct !{!23, !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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@a = external dso_local global [500010 x i32], align 16
@L_max = external dso_local local_unnamed_addr global [500010 x i32], align 16
@R_max = external dso_local local_unnamed_addr global [500010 x i32], align 16
@L_min = external dso_local local_unnamed_addr global [500010 x i32], align 16
@R_min = external dso_local local_unnamed_addr global [500010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::stack", align 8
  %3 = alloca %"class.std::stack", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %14
  %16 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %18 = load i32, ptr %1, align 4, !tbaa !8
  %.not44 = icmp slt i32 %18, 1
  br i1 %.not44, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #7
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %23 unwind label %27

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %19 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %indvars.iv
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr %1, align 4, !tbaa !8
  %22 = sext i32 %21 to i64
  %.not.not = icmp slt i64 %indvars.iv, %22
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

23:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 1, ptr %4, align 4, !tbaa !8
  %24 = load i32, ptr %1, align 4, !tbaa !8
  %.not3350 = icmp slt i32 %24, 1
  br i1 %.not3350, label %._crit_edge51, label %.preheader43

.preheader43:                                     ; preds = %23, %81
  %25 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %25, label %.critedge, label %.lr.ph46

._crit_edge51:                                    ; preds = %81, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %26 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %26, label %.preheader41, label %.lr.ph53

27:                                               ; preds = %._crit_edge
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %188

.lr.ph46:                                         ; preds = %.preheader43, %38
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %30 = load i32, ptr %29, align 4, !tbaa !8
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !8
  %34 = load i32, ptr %4, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !8
  %.not37 = icmp sgt i32 %33, %37
  br i1 %.not37, label %.critedge, label %38

38:                                               ; preds = %.lr.ph46
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %39 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %39, label %.critedge, label %.lr.ph46, !llvm.loop !13

40:                                               ; preds = %78, %52
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %187

.critedge:                                        ; preds = %.lr.ph46, %38, %.preheader43
  %42 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %43 = load i32, ptr %4, align 4, !tbaa !8
  br i1 %42, label %50, label %44

44:                                               ; preds = %.critedge
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %46 = load i32, ptr %45, align 4, !tbaa !8
  %47 = xor i32 %46, -1
  %48 = add i32 %43, %47
  %49 = load i32, ptr %4, align 4, !tbaa !8
  br label %52

50:                                               ; preds = %.critedge
  %51 = add nsw i32 %43, -1
  br label %52

52:                                               ; preds = %50, %44
  %.sink78 = phi i32 [ %43, %50 ], [ %49, %44 ]
  %.sink = phi i32 [ %51, %50 ], [ %48, %44 ]
  %53 = sext i32 %.sink78 to i64
  %54 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %53
  store i32 %.sink, ptr %54, align 4, !tbaa !8
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader42 unwind label %40

.preheader42:                                     ; preds = %52
  %55 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %55, label %.critedge2, label %.lr.ph48

.lr.ph48:                                         ; preds = %.preheader42, %66
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !8
  %61 = load i32, ptr %4, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !8
  %65 = icmp sgt i32 %60, %64
  br i1 %65, label %66, label %.critedge2

66:                                               ; preds = %.lr.ph48
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %67 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %67, label %.critedge2, label %.lr.ph48, !llvm.loop !14

.critedge2:                                       ; preds = %.lr.ph48, %66, %.preheader42
  %68 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %69 = load i32, ptr %4, align 4, !tbaa !8
  br i1 %68, label %76, label %70

70:                                               ; preds = %.critedge2
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %72 = load i32, ptr %71, align 4, !tbaa !8
  %73 = xor i32 %72, -1
  %74 = add i32 %69, %73
  %75 = load i32, ptr %4, align 4, !tbaa !8
  br label %78

76:                                               ; preds = %.critedge2
  %77 = add nsw i32 %69, -1
  br label %78

78:                                               ; preds = %76, %70
  %.sink82 = phi i32 [ %69, %76 ], [ %75, %70 ]
  %.sink79 = phi i32 [ %77, %76 ], [ %74, %70 ]
  %79 = sext i32 %.sink82 to i64
  %80 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %79
  store i32 %.sink79, ptr %80, align 4, !tbaa !8
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %81 unwind label %40

81:                                               ; preds = %78
  %82 = load i32, ptr %4, align 4, !tbaa !8
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %4, align 4, !tbaa !8
  %84 = load i32, ptr %1, align 4, !tbaa !8
  %.not33.not = icmp slt i32 %82, %84
  br i1 %.not33.not, label %.preheader43, label %._crit_edge51, !llvm.loop !15

.preheader41:                                     ; preds = %.lr.ph53, %._crit_edge51
  %85 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %85, label %._crit_edge55, label %.lr.ph54

.lr.ph53:                                         ; preds = %._crit_edge51, %.lr.ph53
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %86 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %86, label %.preheader41, label %.lr.ph53, !llvm.loop !16

.lr.ph54:                                         ; preds = %.preheader41, %.lr.ph54
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %87 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %87, label %._crit_edge55, label %.lr.ph54, !llvm.loop !17

._crit_edge55:                                    ; preds = %.lr.ph54, %.preheader41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %88 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %88, ptr %5, align 4, !tbaa !8
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.preheader40, label %._crit_edge60.thread

._crit_edge60.thread:                             ; preds = %._crit_edge55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %._crit_edge67

.preheader40:                                     ; preds = %._crit_edge55, %146
  %90 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %90, label %.critedge4, label %.lr.ph56

._crit_edge60:                                    ; preds = %146
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.not3561 = icmp slt i32 %.pre, 1
  br i1 %.not3561, label %._crit_edge67, label %.lr.ph66.preheader

.lr.ph66.preheader:                               ; preds = %._crit_edge60
  %91 = add nuw i32 %.pre, 1
  %wide.trip.count = zext i32 %91 to i64
  br label %.lr.ph66

.lr.ph56:                                         ; preds = %.preheader40, %102
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !8
  %97 = load i32, ptr %5, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !8
  %101 = icmp slt i32 %96, %100
  br i1 %101, label %102, label %.critedge4

102:                                              ; preds = %.lr.ph56
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %103 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %103, label %.critedge4, label %.lr.ph56, !llvm.loop !18

104:                                              ; preds = %143, %117
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %187

.critedge4:                                       ; preds = %.lr.ph56, %102, %.preheader40
  %106 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  br i1 %106, label %113, label %107

107:                                              ; preds = %.critedge4
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %109 = load i32, ptr %108, align 4, !tbaa !8
  %110 = load i32, ptr %5, align 4, !tbaa !8
  %111 = xor i32 %110, -1
  %112 = add i32 %109, %111
  br label %117

113:                                              ; preds = %.critedge4
  %114 = load i32, ptr %1, align 4, !tbaa !8
  %115 = load i32, ptr %5, align 4, !tbaa !8
  %116 = sub nsw i32 %114, %115
  br label %117

117:                                              ; preds = %113, %107
  %.sink86 = phi i32 [ %115, %113 ], [ %110, %107 ]
  %.sink83 = phi i32 [ %116, %113 ], [ %112, %107 ]
  %118 = sext i32 %.sink86 to i64
  %119 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %118
  store i32 %.sink83, ptr %119, align 4, !tbaa !8
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %.preheader unwind label %104

.preheader:                                       ; preds = %117
  %120 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %120, label %.critedge6, label %.lr.ph58

.lr.ph58:                                         ; preds = %.preheader, %130
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %122 = load i32, ptr %121, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !8
  %126 = load i32, ptr %5, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !8
  %.not36 = icmp slt i32 %125, %129
  br i1 %.not36, label %.critedge6, label %130

130:                                              ; preds = %.lr.ph58
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %131 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %131, label %.critedge6, label %.lr.ph58, !llvm.loop !19

.critedge6:                                       ; preds = %.lr.ph58, %130, %.preheader
  %132 = call noundef zeroext i1 @_ZNKSt5stackIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %132, label %139, label %133

133:                                              ; preds = %.critedge6
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5stackIiSt5dequeIiSaIiEEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = load i32, ptr %5, align 4, !tbaa !8
  %137 = xor i32 %136, -1
  %138 = add i32 %135, %137
  br label %143

139:                                              ; preds = %.critedge6
  %140 = load i32, ptr %1, align 4, !tbaa !8
  %141 = load i32, ptr %5, align 4, !tbaa !8
  %142 = sub nsw i32 %140, %141
  br label %143

143:                                              ; preds = %139, %133
  %.sink90 = phi i32 [ %141, %139 ], [ %136, %133 ]
  %.sink87 = phi i32 [ %142, %139 ], [ %138, %133 ]
  %144 = sext i32 %.sink90 to i64
  %145 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %144
  store i32 %.sink87, ptr %145, align 4, !tbaa !8
  invoke void @_ZNSt5stackIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %146 unwind label %104

146:                                              ; preds = %143
  %147 = load i32, ptr %5, align 4, !tbaa !8
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr %5, align 4, !tbaa !8
  %149 = icmp sgt i32 %147, 1
  br i1 %149, label %.preheader40, label %._crit_edge60, !llvm.loop !20

._crit_edge67.loopexit:                           ; preds = %.lr.ph66
  %150 = sub nsw i64 %168, %181
  br label %._crit_edge67

._crit_edge67:                                    ; preds = %._crit_edge60.thread, %._crit_edge67.loopexit, %._crit_edge60
  %151 = phi i64 [ 0, %._crit_edge60 ], [ %150, %._crit_edge67.loopexit ], [ 0, %._crit_edge60.thread ]
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %151)
          to label %182 unwind label %185

.lr.ph66:                                         ; preds = %.lr.ph66.preheader, %.lr.ph66
  %indvars.iv71 = phi i64 [ 1, %.lr.ph66.preheader ], [ %indvars.iv.next72, %.lr.ph66 ]
  %.02763 = phi i64 [ 0, %.lr.ph66.preheader ], [ %181, %.lr.ph66 ]
  %.02862 = phi i64 [ 0, %.lr.ph66.preheader ], [ %168, %.lr.ph66 ]
  %153 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %indvars.iv71
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [500010 x i32], ptr @L_max, i64 0, i64 %indvars.iv71
  %157 = load i32, ptr %156, align 4, !tbaa !8
  %158 = getelementptr inbounds [500010 x i32], ptr @R_max, i64 0, i64 %indvars.iv71
  %159 = load i32, ptr %158, align 4, !tbaa !8
  %160 = add nsw i32 %159, %157
  %161 = sext i32 %160 to i64
  %162 = sext i32 %157 to i64
  %163 = sext i32 %159 to i64
  %164 = mul nsw i64 %163, %162
  %165 = add nsw i64 %161, 1
  %166 = add nsw i64 %165, %164
  %167 = mul nsw i64 %166, %155
  %168 = add nsw i64 %167, %.02862
  %169 = getelementptr inbounds [500010 x i32], ptr @L_min, i64 0, i64 %indvars.iv71
  %170 = load i32, ptr %169, align 4, !tbaa !8
  %171 = getelementptr inbounds [500010 x i32], ptr @R_min, i64 0, i64 %indvars.iv71
  %172 = load i32, ptr %171, align 4, !tbaa !8
  %173 = add nsw i32 %172, %170
  %174 = sext i32 %173 to i64
  %175 = sext i32 %170 to i64
  %176 = sext i32 %172 to i64
  %177 = mul nsw i64 %176, %175
  %178 = add nsw i64 %174, 1
  %179 = add nsw i64 %178, %177
  %180 = mul nsw i64 %179, %155
  %181 = add nsw i64 %180, %.02763
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge67.loopexit, label %.lr.ph66, !llvm.loop !21

182:                                              ; preds = %._crit_edge67
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %152, i8 noundef signext 10)
          to label %184 unwind label %185

184:                                              ; preds = %182
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

185:                                              ; preds = %182, %._crit_edge67
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %187

187:                                              ; preds = %185, %104, %40
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %105, %104 ], [ %186, %185 ]
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #7
  br label %188

188:                                              ; preds = %187, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %187 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  call void @_ZNSt5stackIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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