; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/386 Division 2/Problem E (E)

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

%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [200100 x i32], align 16
@f = external dso_local global [200100 x i32], align 16
@d = external dso_local global %"class.std::set", align 8
@_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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  %33 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %35
  %37 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %36, ptr noundef null)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %63, %0
  %41 = load i32, ptr %4, align 4, !tbaa !8
  %42 = load i32, ptr @n, align 4, !tbaa !8
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  %46 = load i32, ptr %4, align 4, !tbaa !8
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %50 = load i32, ptr %4, align 4, !tbaa !8
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = srem i32 %53, 2
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %45
  %57 = load i32, ptr %2, align 4, !tbaa !8
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %2, align 4, !tbaa !8
  br label %62

59:                                               ; preds = %45
  %60 = load i32, ptr %3, align 4, !tbaa !8
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !8
  br label %62

62:                                               ; preds = %59, %56
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %4, align 4, !tbaa !8
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %4, align 4, !tbaa !8
  br label %40, !llvm.loop !11

66:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 2, ptr %6, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %67

67:                                               ; preds = %221, %66
  %68 = load i32, ptr %7, align 4, !tbaa !8
  %69 = load i32, ptr @n, align 4, !tbaa !8
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 5, ptr %8, align 4
  br label %224

72:                                               ; preds = %67
  %73 = load i32, ptr %7, align 4, !tbaa !8
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %74
  %76 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %211

78:                                               ; preds = %72
  %79 = load i32, ptr %7, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %80
  store i32 1, ptr %81, align 4, !tbaa !8
  %82 = load i32, ptr %7, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !8
  %86 = srem i32 %85, 2
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %145

88:                                               ; preds = %78
  %89 = load i32, ptr %2, align 4, !tbaa !8
  %90 = load i32, ptr %3, align 4, !tbaa !8
  %91 = icmp sgt i32 %89, %90
  br i1 %91, label %92, label %120

92:                                               ; preds = %88
  br label %93

93:                                               ; preds = %96, %92
  %94 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i32, ptr %5, align 4, !tbaa !8
  %98 = add nsw i32 %97, 2
  store i32 %98, ptr %5, align 4, !tbaa !8
  br label %93, !llvm.loop !13

99:                                               ; preds = %93
  %100 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %101 = getelementptr inbounds { ptr, i8 }, ptr %9, i32 0, i32 0
  %102 = extractvalue { ptr, i8 } %100, 0
  store ptr %102, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i8 }, ptr %9, i32 0, i32 1
  %104 = extractvalue { ptr, i8 } %100, 1
  store i8 %104, ptr %103, align 8
  %105 = load i32, ptr %5, align 4, !tbaa !8
  %106 = load i32, ptr %7, align 4, !tbaa !8
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %107
  store i32 %105, ptr %108, align 4, !tbaa !8
  %109 = load i32, ptr %5, align 4, !tbaa !8
  %110 = load i32, ptr @m, align 4, !tbaa !8
  %111 = icmp sgt i32 %109, %110
  br i1 %111, label %112, label %115

112:                                              ; preds = %99
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %224

115:                                              ; preds = %99
  %116 = load i32, ptr %2, align 4, !tbaa !8
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %2, align 4, !tbaa !8
  %118 = load i32, ptr %3, align 4, !tbaa !8
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %3, align 4, !tbaa !8
  br label %144

120:                                              ; preds = %88
  br label %121

121:                                              ; preds = %124, %120
  %122 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %127

124:                                              ; preds = %121
  %125 = load i32, ptr %6, align 4, !tbaa !8
  %126 = add nsw i32 %125, 2
  store i32 %126, ptr %6, align 4, !tbaa !8
  br label %121, !llvm.loop !14

127:                                              ; preds = %121
  %128 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %129 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
  %130 = extractvalue { ptr, i8 } %128, 0
  store ptr %130, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
  %132 = extractvalue { ptr, i8 } %128, 1
  store i8 %132, ptr %131, align 8
  %133 = load i32, ptr %6, align 4, !tbaa !8
  %134 = load i32, ptr %7, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %135
  store i32 %133, ptr %136, align 4, !tbaa !8
  %137 = load i32, ptr %6, align 4, !tbaa !8
  %138 = load i32, ptr @m, align 4, !tbaa !8
  %139 = icmp sgt i32 %137, %138
  br i1 %139, label %140, label %143

140:                                              ; preds = %127
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %224

143:                                              ; preds = %127
  br label %144

144:                                              ; preds = %143, %115
  br label %202

145:                                              ; preds = %78
  %146 = load i32, ptr %3, align 4, !tbaa !8
  %147 = load i32, ptr %2, align 4, !tbaa !8
  %148 = icmp sgt i32 %146, %147
  br i1 %148, label %149, label %177

149:                                              ; preds = %145
  br label %150

150:                                              ; preds = %153, %149
  %151 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %152 = icmp ne i64 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %150
  %154 = load i32, ptr %6, align 4, !tbaa !8
  %155 = add nsw i32 %154, 2
  store i32 %155, ptr %6, align 4, !tbaa !8
  br label %150, !llvm.loop !15

156:                                              ; preds = %150
  %157 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %158 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %159 = extractvalue { ptr, i8 } %157, 0
  store ptr %159, ptr %158, align 8
  %160 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %161 = extractvalue { ptr, i8 } %157, 1
  store i8 %161, ptr %160, align 8
  %162 = load i32, ptr %6, align 4, !tbaa !8
  %163 = load i32, ptr %7, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %164
  store i32 %162, ptr %165, align 4, !tbaa !8
  %166 = load i32, ptr %6, align 4, !tbaa !8
  %167 = load i32, ptr @m, align 4, !tbaa !8
  %168 = icmp sgt i32 %166, %167
  br i1 %168, label %169, label %172

169:                                              ; preds = %156
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %224

172:                                              ; preds = %156
  %173 = load i32, ptr %2, align 4, !tbaa !8
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %2, align 4, !tbaa !8
  %175 = load i32, ptr %3, align 4, !tbaa !8
  %176 = add nsw i32 %175, -1
  store i32 %176, ptr %3, align 4, !tbaa !8
  br label %201

177:                                              ; preds = %145
  br label %178

178:                                              ; preds = %181, %177
  %179 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %180 = icmp ne i64 %179, 0
  br i1 %180, label %181, label %184

181:                                              ; preds = %178
  %182 = load i32, ptr %5, align 4, !tbaa !8
  %183 = add nsw i32 %182, 2
  store i32 %183, ptr %5, align 4, !tbaa !8
  br label %178, !llvm.loop !16

184:                                              ; preds = %178
  %185 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %186 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %187 = extractvalue { ptr, i8 } %185, 0
  store ptr %187, ptr %186, align 8
  %188 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %189 = extractvalue { ptr, i8 } %185, 1
  store i8 %189, ptr %188, align 8
  %190 = load i32, ptr %5, align 4, !tbaa !8
  %191 = load i32, ptr %7, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %192
  store i32 %190, ptr %193, align 4, !tbaa !8
  %194 = load i32, ptr %5, align 4, !tbaa !8
  %195 = load i32, ptr @m, align 4, !tbaa !8
  %196 = icmp sgt i32 %194, %195
  br i1 %196, label %197, label %200

197:                                              ; preds = %184
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %224

200:                                              ; preds = %184
  br label %201

201:                                              ; preds = %200, %172
  br label %202

202:                                              ; preds = %201, %144
  %203 = load i32, ptr %7, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %204
  %206 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %205)
  %207 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %208 = extractvalue { ptr, i8 } %206, 0
  store ptr %208, ptr %207, align 8
  %209 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %210 = extractvalue { ptr, i8 } %206, 1
  store i8 %210, ptr %209, align 8
  br label %220

211:                                              ; preds = %72
  %212 = load i32, ptr %7, align 4, !tbaa !8
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %213
  %215 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %214)
  %216 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %217 = extractvalue { ptr, i8 } %215, 0
  store ptr %217, ptr %216, align 8
  %218 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %219 = extractvalue { ptr, i8 } %215, 1
  store i8 %219, ptr %218, align 8
  br label %220

220:                                              ; preds = %211, %202
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %7, align 4, !tbaa !8
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %7, align 4, !tbaa !8
  br label %67, !llvm.loop !17

224:                                              ; preds = %197, %169, %140, %112, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %225 = load i32, ptr %8, align 4
  switch i32 %225, label %517 [
    i32 5, label %226
  ]

226:                                              ; preds = %224
  %227 = load i32, ptr %3, align 4, !tbaa !8
  %228 = load i32, ptr %2, align 4, !tbaa !8
  %229 = icmp eq i32 %227, %228
  br i1 %229, label %230, label %267

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %231

231:                                              ; preds = %243, %230
  %232 = load i32, ptr %16, align 4, !tbaa !8
  %233 = load i32, ptr @n, align 4, !tbaa !8
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  store i32 16, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %246

236:                                              ; preds = %231
  %237 = load i32, ptr %16, align 4, !tbaa !8
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !8
  %241 = load i32, ptr %15, align 4, !tbaa !8
  %242 = add nsw i32 %241, %240
  store i32 %242, ptr %15, align 4, !tbaa !8
  br label %243

243:                                              ; preds = %236
  %244 = load i32, ptr %16, align 4, !tbaa !8
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %16, align 4, !tbaa !8
  br label %231, !llvm.loop !18

246:                                              ; preds = %235
  %247 = load i32, ptr %15, align 4, !tbaa !8
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %247)
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %250

250:                                              ; preds = %262, %246
  %251 = load i32, ptr %17, align 4, !tbaa !8
  %252 = load i32, ptr @n, align 4, !tbaa !8
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %265

255:                                              ; preds = %250
  %256 = load i32, ptr %17, align 4, !tbaa !8
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !8
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %259)
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %260, i8 noundef signext 32)
  br label %262

262:                                              ; preds = %255
  %263 = load i32, ptr %17, align 4, !tbaa !8
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %17, align 4, !tbaa !8
  br label %250, !llvm.loop !19

265:                                              ; preds = %254
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %517

267:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %268

268:                                              ; preds = %366, %267
  %269 = load i32, ptr %18, align 4, !tbaa !8
  %270 = load i32, ptr @n, align 4, !tbaa !8
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %272, label %276

272:                                              ; preds = %268
  %273 = load i32, ptr %3, align 4, !tbaa !8
  %274 = load i32, ptr %2, align 4, !tbaa !8
  %275 = icmp ne i32 %273, %274
  br label %276

276:                                              ; preds = %272, %268
  %277 = phi i1 [ false, %268 ], [ %275, %272 ]
  br i1 %277, label %279, label %278

278:                                              ; preds = %276
  store i32 22, ptr %8, align 4
  br label %369

279:                                              ; preds = %276
  %280 = load i32, ptr %18, align 4, !tbaa !8
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !8
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %365

285:                                              ; preds = %279
  %286 = load i32, ptr %3, align 4, !tbaa !8
  %287 = load i32, ptr %2, align 4, !tbaa !8
  %288 = icmp sgt i32 %286, %287
  br i1 %288, label %289, label %324

289:                                              ; preds = %285
  %290 = load i32, ptr %18, align 4, !tbaa !8
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !8
  %294 = srem i32 %293, 2
  %295 = icmp eq i32 %294, 1
  br i1 %295, label %296, label %324

296:                                              ; preds = %289
  br label %297

297:                                              ; preds = %300, %296
  %298 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %299 = icmp ne i64 %298, 0
  br i1 %299, label %300, label %303

300:                                              ; preds = %297
  %301 = load i32, ptr %6, align 4, !tbaa !8
  %302 = add nsw i32 %301, 2
  store i32 %302, ptr %6, align 4, !tbaa !8
  br label %297, !llvm.loop !20

303:                                              ; preds = %297
  %304 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %305 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %306 = extractvalue { ptr, i8 } %304, 0
  store ptr %306, ptr %305, align 8
  %307 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %308 = extractvalue { ptr, i8 } %304, 1
  store i8 %308, ptr %307, align 8
  %309 = load i32, ptr %6, align 4, !tbaa !8
  %310 = load i32, ptr @m, align 4, !tbaa !8
  %311 = icmp sgt i32 %309, %310
  br i1 %311, label %312, label %315

312:                                              ; preds = %303
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %314 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %313, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %369

315:                                              ; preds = %303
  %316 = load i32, ptr %6, align 4, !tbaa !8
  %317 = load i32, ptr %18, align 4, !tbaa !8
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %318
  store i32 %316, ptr %319, align 4, !tbaa !8
  %320 = load i32, ptr %3, align 4, !tbaa !8
  %321 = add nsw i32 %320, -1
  store i32 %321, ptr %3, align 4, !tbaa !8
  %322 = load i32, ptr %2, align 4, !tbaa !8
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %2, align 4, !tbaa !8
  br label %364

324:                                              ; preds = %289, %285
  %325 = load i32, ptr %3, align 4, !tbaa !8
  %326 = load i32, ptr %2, align 4, !tbaa !8
  %327 = icmp slt i32 %325, %326
  br i1 %327, label %328, label %363

328:                                              ; preds = %324
  %329 = load i32, ptr %18, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %330
  %332 = load i32, ptr %331, align 4, !tbaa !8
  %333 = srem i32 %332, 2
  %334 = icmp eq i32 %333, 0
  br i1 %334, label %335, label %363

335:                                              ; preds = %328
  br label %336

336:                                              ; preds = %339, %335
  %337 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %338 = icmp ne i64 %337, 0
  br i1 %338, label %339, label %342

339:                                              ; preds = %336
  %340 = load i32, ptr %5, align 4, !tbaa !8
  %341 = add nsw i32 %340, 2
  store i32 %341, ptr %5, align 4, !tbaa !8
  br label %336, !llvm.loop !21

342:                                              ; preds = %336
  %343 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %344 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 0
  %345 = extractvalue { ptr, i8 } %343, 0
  store ptr %345, ptr %344, align 8
  %346 = getelementptr inbounds { ptr, i8 }, ptr %20, i32 0, i32 1
  %347 = extractvalue { ptr, i8 } %343, 1
  store i8 %347, ptr %346, align 8
  %348 = load i32, ptr %5, align 4, !tbaa !8
  %349 = load i32, ptr @m, align 4, !tbaa !8
  %350 = icmp sgt i32 %348, %349
  br i1 %350, label %351, label %354

351:                                              ; preds = %342
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %369

354:                                              ; preds = %342
  %355 = load i32, ptr %5, align 4, !tbaa !8
  %356 = load i32, ptr %18, align 4, !tbaa !8
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %357
  store i32 %355, ptr %358, align 4, !tbaa !8
  %359 = load i32, ptr %3, align 4, !tbaa !8
  %360 = add nsw i32 %359, 1
  store i32 %360, ptr %3, align 4, !tbaa !8
  %361 = load i32, ptr %2, align 4, !tbaa !8
  %362 = add nsw i32 %361, -1
  store i32 %362, ptr %2, align 4, !tbaa !8
  br label %363

363:                                              ; preds = %354, %328, %324
  br label %364

364:                                              ; preds = %363, %315
  br label %365

365:                                              ; preds = %364, %279
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %18, align 4, !tbaa !8
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %18, align 4, !tbaa !8
  br label %268, !llvm.loop !22

369:                                              ; preds = %351, %312, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %370 = load i32, ptr %8, align 4
  switch i32 %370, label %517 [
    i32 22, label %371
  ]

371:                                              ; preds = %369
  %372 = load i32, ptr %3, align 4, !tbaa !8
  %373 = load i32, ptr %2, align 4, !tbaa !8
  %374 = icmp ne i32 %372, %373
  br i1 %374, label %375, label %480

375:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %376

376:                                              ; preds = %474, %375
  %377 = load i32, ptr %21, align 4, !tbaa !8
  %378 = load i32, ptr @n, align 4, !tbaa !8
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %381, label %380

380:                                              ; preds = %376
  store i32 29, ptr %8, align 4
  br label %477

381:                                              ; preds = %376
  %382 = load i32, ptr %21, align 4, !tbaa !8
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %383
  %385 = load i32, ptr %384, align 4, !tbaa !8
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %473, label %387

387:                                              ; preds = %381
  %388 = load i32, ptr %3, align 4, !tbaa !8
  %389 = load i32, ptr %2, align 4, !tbaa !8
  %390 = icmp sgt i32 %388, %389
  br i1 %390, label %391, label %429

391:                                              ; preds = %387
  %392 = load i32, ptr %21, align 4, !tbaa !8
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !8
  %396 = srem i32 %395, 2
  %397 = icmp eq i32 %396, 1
  br i1 %397, label %398, label %429

398:                                              ; preds = %391
  %399 = load i32, ptr %21, align 4, !tbaa !8
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %400
  store i32 1, ptr %401, align 4, !tbaa !8
  br label %402

402:                                              ; preds = %405, %398
  %403 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %404 = icmp ne i64 %403, 0
  br i1 %404, label %405, label %408

405:                                              ; preds = %402
  %406 = load i32, ptr %6, align 4, !tbaa !8
  %407 = add nsw i32 %406, 2
  store i32 %407, ptr %6, align 4, !tbaa !8
  br label %402, !llvm.loop !23

408:                                              ; preds = %402
  %409 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %410 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %411 = extractvalue { ptr, i8 } %409, 0
  store ptr %411, ptr %410, align 8
  %412 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %413 = extractvalue { ptr, i8 } %409, 1
  store i8 %413, ptr %412, align 8
  %414 = load i32, ptr %6, align 4, !tbaa !8
  %415 = load i32, ptr @m, align 4, !tbaa !8
  %416 = icmp sgt i32 %414, %415
  br i1 %416, label %417, label %420

417:                                              ; preds = %408
  %418 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %419 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %418, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %477

420:                                              ; preds = %408
  %421 = load i32, ptr %6, align 4, !tbaa !8
  %422 = load i32, ptr %21, align 4, !tbaa !8
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %423
  store i32 %421, ptr %424, align 4, !tbaa !8
  %425 = load i32, ptr %3, align 4, !tbaa !8
  %426 = add nsw i32 %425, -1
  store i32 %426, ptr %3, align 4, !tbaa !8
  %427 = load i32, ptr %2, align 4, !tbaa !8
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %2, align 4, !tbaa !8
  br label %472

429:                                              ; preds = %391, %387
  %430 = load i32, ptr %3, align 4, !tbaa !8
  %431 = load i32, ptr %2, align 4, !tbaa !8
  %432 = icmp slt i32 %430, %431
  br i1 %432, label %433, label %471

433:                                              ; preds = %429
  %434 = load i32, ptr %21, align 4, !tbaa !8
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %435
  %437 = load i32, ptr %436, align 4, !tbaa !8
  %438 = srem i32 %437, 2
  %439 = icmp eq i32 %438, 0
  br i1 %439, label %440, label %471

440:                                              ; preds = %433
  %441 = load i32, ptr %21, align 4, !tbaa !8
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %442
  store i32 1, ptr %443, align 4, !tbaa !8
  br label %444

444:                                              ; preds = %447, %440
  %445 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %446 = icmp ne i64 %445, 0
  br i1 %446, label %447, label %450

447:                                              ; preds = %444
  %448 = load i32, ptr %5, align 4, !tbaa !8
  %449 = add nsw i32 %448, 2
  store i32 %449, ptr %5, align 4, !tbaa !8
  br label %444, !llvm.loop !24

450:                                              ; preds = %444
  %451 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %452 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %453 = extractvalue { ptr, i8 } %451, 0
  store ptr %453, ptr %452, align 8
  %454 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %455 = extractvalue { ptr, i8 } %451, 1
  store i8 %455, ptr %454, align 8
  %456 = load i32, ptr %5, align 4, !tbaa !8
  %457 = load i32, ptr @m, align 4, !tbaa !8
  %458 = icmp sgt i32 %456, %457
  br i1 %458, label %459, label %462

459:                                              ; preds = %450
  %460 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %461 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %460, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %477

462:                                              ; preds = %450
  %463 = load i32, ptr %5, align 4, !tbaa !8
  %464 = load i32, ptr %21, align 4, !tbaa !8
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %465
  store i32 %463, ptr %466, align 4, !tbaa !8
  %467 = load i32, ptr %3, align 4, !tbaa !8
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %3, align 4, !tbaa !8
  %469 = load i32, ptr %2, align 4, !tbaa !8
  %470 = add nsw i32 %469, -1
  store i32 %470, ptr %2, align 4, !tbaa !8
  br label %471

471:                                              ; preds = %462, %433, %429
  br label %472

472:                                              ; preds = %471, %420
  br label %473

473:                                              ; preds = %472, %381
  br label %474

474:                                              ; preds = %473
  %475 = load i32, ptr %21, align 4, !tbaa !8
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %21, align 4, !tbaa !8
  br label %376, !llvm.loop !25

477:                                              ; preds = %459, %417, %380
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %478 = load i32, ptr %8, align 4
  switch i32 %478, label %517 [
    i32 29, label %479
  ]

479:                                              ; preds = %477
  br label %480

480:                                              ; preds = %479, %371
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !8
  br label %481

481:                                              ; preds = %493, %480
  %482 = load i32, ptr %25, align 4, !tbaa !8
  %483 = load i32, ptr @n, align 4, !tbaa !8
  %484 = icmp slt i32 %482, %483
  br i1 %484, label %486, label %485

485:                                              ; preds = %481
  store i32 36, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %496

486:                                              ; preds = %481
  %487 = load i32, ptr %25, align 4, !tbaa !8
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %488
  %490 = load i32, ptr %489, align 4, !tbaa !8
  %491 = load i32, ptr %24, align 4, !tbaa !8
  %492 = add nsw i32 %491, %490
  store i32 %492, ptr %24, align 4, !tbaa !8
  br label %493

493:                                              ; preds = %486
  %494 = load i32, ptr %25, align 4, !tbaa !8
  %495 = add nsw i32 %494, 1
  store i32 %495, ptr %25, align 4, !tbaa !8
  br label %481, !llvm.loop !26

496:                                              ; preds = %485
  %497 = load i32, ptr %24, align 4, !tbaa !8
  %498 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %497)
  %499 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %498, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !8
  br label %500

500:                                              ; preds = %512, %496
  %501 = load i32, ptr %26, align 4, !tbaa !8
  %502 = load i32, ptr @n, align 4, !tbaa !8
  %503 = icmp slt i32 %501, %502
  br i1 %503, label %505, label %504

504:                                              ; preds = %500
  store i32 39, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %515

505:                                              ; preds = %500
  %506 = load i32, ptr %26, align 4, !tbaa !8
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %507
  %509 = load i32, ptr %508, align 4, !tbaa !8
  %510 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %509)
  %511 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %510, i8 noundef signext 32)
  br label %512

512:                                              ; preds = %505
  %513 = load i32, ptr %26, align 4, !tbaa !8
  %514 = add nsw i32 %513, 1
  store i32 %514, ptr %26, align 4, !tbaa !8
  br label %500, !llvm.loop !27

515:                                              ; preds = %504
  %516 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %517

517:                                              ; preds = %515, %477, %369, %265, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %518 = load i32, ptr %1, align 4
  ret i32 %518
}

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

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.start.p0(i64 immarg, ptr nocapture) #3

; 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 noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; 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

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 = { 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}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [200100 x i32], align 16
@f = external dso_local local_unnamed_addr global [200100 x i32], align 16
@d = external dso_local global %"class.std::set", align 8
@_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 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %16 = load i32, ptr @n, align 4
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader.thread

.preheader.thread:                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 1, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 2, ptr %2, align 4, !tbaa !8
  br label %._crit_edge236

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 1, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 2, ptr %2, align 4, !tbaa !8
  %.not137190 = icmp sgt i32 %23, 0
  br i1 %.not137190, label %.lr.ph195, label %.critedge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %.0106176 = phi i32 [ %.1107, %.lr.ph ], [ 0, %0 ]
  %.0110175 = phi i32 [ %.1111, %.lr.ph ], [ 0, %0 ]
  %18 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %20 = load i32, ptr %18, align 4, !tbaa !8
  %21 = and i32 %20, 1
  %.1111 = add i32 %21, %.0110175
  %22 = xor i32 %21, 1
  %.1107 = add i32 %22, %.0106176
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = load i32, ptr @n, align 4
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %indvars.iv.next, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph195:                                        ; preds = %._crit_edge, %75
  %indvars.iv246 = phi i64 [ %indvars.iv.next247, %75 ], [ 0, %._crit_edge ]
  %.2108193 = phi i32 [ %.4, %75 ], [ %.1107, %._crit_edge ]
  %.2112192 = phi i32 [ %.4114, %75 ], [ %.1111, %._crit_edge ]
  %26 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv246
  %27 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %75, label %28

28:                                               ; preds = %.lr.ph195
  %29 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %indvars.iv246
  store i32 1, ptr %29, align 4, !tbaa !8
  %30 = load i32, ptr %26, align 4, !tbaa !8
  %31 = and i32 %30, 1
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %54

33:                                               ; preds = %28
  %34 = icmp sgt i32 %.2108193, %.2112192
  br i1 %34, label %.preheader156, label %.preheader157

.preheader157:                                    ; preds = %33
  %35 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not135184 = icmp eq i64 %35, 0
  br i1 %.not135184, label %._crit_edge186, label %.lr.ph185

.preheader156:                                    ; preds = %33
  %36 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not136187 = icmp eq i64 %36, 0
  br i1 %.not136187, label %._crit_edge189, label %.lr.ph188

.lr.ph188:                                        ; preds = %.preheader156, %.lr.ph188
  %37 = load i32, ptr %1, align 4, !tbaa !8
  %38 = add nsw i32 %37, 2
  store i32 %38, ptr %1, align 4, !tbaa !8
  %39 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not136 = icmp eq i64 %39, 0
  br i1 %.not136, label %._crit_edge189, label %.lr.ph188, !llvm.loop !13

._crit_edge189:                                   ; preds = %.lr.ph188, %.preheader156
  %40 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %41 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %41, ptr %26, align 4, !tbaa !8
  %42 = load i32, ptr @m, align 4, !tbaa !8
  %43 = icmp sgt i32 %41, %42
  br i1 %43, label %._crit_edge241.sink.split, label %44

44:                                               ; preds = %._crit_edge189
  %45 = add nsw i32 %.2108193, -1
  %46 = add nsw i32 %.2112192, 1
  br label %75

.lr.ph185:                                        ; preds = %.preheader157, %.lr.ph185
  %47 = load i32, ptr %2, align 4, !tbaa !8
  %48 = add nsw i32 %47, 2
  store i32 %48, ptr %2, align 4, !tbaa !8
  %49 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not135 = icmp eq i64 %49, 0
  br i1 %.not135, label %._crit_edge186, label %.lr.ph185, !llvm.loop !14

._crit_edge186:                                   ; preds = %.lr.ph185, %.preheader157
  %50 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %51 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %51, ptr %26, align 4, !tbaa !8
  %52 = load i32, ptr @m, align 4, !tbaa !8
  %53 = icmp sgt i32 %51, %52
  br i1 %53, label %._crit_edge241.sink.split, label %75

54:                                               ; preds = %28
  %55 = icmp sgt i32 %.2112192, %.2108193
  br i1 %55, label %.preheader158, label %.preheader159

.preheader159:                                    ; preds = %54
  %56 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not133178 = icmp eq i64 %56, 0
  br i1 %.not133178, label %._crit_edge180, label %.lr.ph179

.preheader158:                                    ; preds = %54
  %57 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not134181 = icmp eq i64 %57, 0
  br i1 %.not134181, label %._crit_edge183, label %.lr.ph182

.lr.ph182:                                        ; preds = %.preheader158, %.lr.ph182
  %58 = load i32, ptr %2, align 4, !tbaa !8
  %59 = add nsw i32 %58, 2
  store i32 %59, ptr %2, align 4, !tbaa !8
  %60 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not134 = icmp eq i64 %60, 0
  br i1 %.not134, label %._crit_edge183, label %.lr.ph182, !llvm.loop !15

._crit_edge183:                                   ; preds = %.lr.ph182, %.preheader158
  %61 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %62 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %62, ptr %26, align 4, !tbaa !8
  %63 = load i32, ptr @m, align 4, !tbaa !8
  %64 = icmp sgt i32 %62, %63
  br i1 %64, label %._crit_edge241.sink.split, label %65

65:                                               ; preds = %._crit_edge183
  %66 = add nsw i32 %.2108193, 1
  %67 = add nsw i32 %.2112192, -1
  br label %75

.lr.ph179:                                        ; preds = %.preheader159, %.lr.ph179
  %68 = load i32, ptr %1, align 4, !tbaa !8
  %69 = add nsw i32 %68, 2
  store i32 %69, ptr %1, align 4, !tbaa !8
  %70 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not133 = icmp eq i64 %70, 0
  br i1 %.not133, label %._crit_edge180, label %.lr.ph179, !llvm.loop !16

._crit_edge180:                                   ; preds = %.lr.ph179, %.preheader159
  %71 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %72 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %72, ptr %26, align 4, !tbaa !8
  %73 = load i32, ptr @m, align 4, !tbaa !8
  %74 = icmp sgt i32 %72, %73
  br i1 %74, label %._crit_edge241.sink.split, label %75

75:                                               ; preds = %.lr.ph195, %._crit_edge186, %44, %._crit_edge180, %65
  %.4114 = phi i32 [ %46, %44 ], [ %.2112192, %._crit_edge186 ], [ %67, %65 ], [ %.2112192, %._crit_edge180 ], [ %.2112192, %.lr.ph195 ]
  %.4 = phi i32 [ %45, %44 ], [ %.2108193, %._crit_edge186 ], [ %66, %65 ], [ %.2108193, %._crit_edge180 ], [ %.2108193, %.lr.ph195 ]
  %76 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %indvars.iv.next247 = add nuw nsw i64 %indvars.iv246, 1
  %77 = load i32, ptr @n, align 4
  %78 = sext i32 %77 to i64
  %.not137 = icmp slt i64 %indvars.iv.next247, %78
  br i1 %.not137, label %.lr.ph195, label %.critedge, !llvm.loop !17

.critedge:                                        ; preds = %75, %._crit_edge
  %79 = phi i32 [ %23, %._crit_edge ], [ %77, %75 ]
  %.2112.lcssa = phi i32 [ %.1111, %._crit_edge ], [ %.4114, %75 ]
  %.2108.lcssa = phi i32 [ %.1107, %._crit_edge ], [ %.4, %75 ]
  %80 = icmp eq i32 %.2112.lcssa, %.2108.lcssa
  br i1 %80, label %.preheader, label %.preheader155

.preheader155:                                    ; preds = %.critedge
  %81 = icmp slt i32 %79, 1
  br i1 %81, label %._crit_edge227, label %.lr.ph207

.preheader:                                       ; preds = %.critedge
  %82 = icmp sgt i32 %79, 0
  br i1 %82, label %.lr.ph235.preheader, label %._crit_edge236

.lr.ph235.preheader:                              ; preds = %.preheader
  %wide.trip.count264 = zext nneg i32 %79 to i64
  %min.iters.check298 = icmp ult i32 %79, 8
  br i1 %min.iters.check298, label %.lr.ph235.preheader313, label %vector.ph299

.lr.ph235.preheader313:                           ; preds = %middle.block296, %.lr.ph235.preheader
  %indvars.iv261.ph = phi i64 [ 0, %.lr.ph235.preheader ], [ %n.vec301, %middle.block296 ]
  %.0125234.ph = phi i32 [ 0, %.lr.ph235.preheader ], [ %88, %middle.block296 ]
  br label %.lr.ph235

vector.ph299:                                     ; preds = %.lr.ph235.preheader
  %n.vec301 = and i64 %wide.trip.count264, 2147483640
  br label %vector.body303

vector.body303:                                   ; preds = %vector.body303, %vector.ph299
  %index304 = phi i64 [ 0, %vector.ph299 ], [ %index.next309, %vector.body303 ]
  %vec.phi305 = phi <4 x i32> [ zeroinitializer, %vector.ph299 ], [ %85, %vector.body303 ]
  %vec.phi306 = phi <4 x i32> [ zeroinitializer, %vector.ph299 ], [ %86, %vector.body303 ]
  %83 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %index304
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %wide.load307 = load <4 x i32>, ptr %83, align 16, !tbaa !8
  %wide.load308 = load <4 x i32>, ptr %84, align 16, !tbaa !8
  %85 = add <4 x i32> %wide.load307, %vec.phi305
  %86 = add <4 x i32> %wide.load308, %vec.phi306
  %index.next309 = add nuw i64 %index304, 8
  %87 = icmp eq i64 %index.next309, %n.vec301
  br i1 %87, label %middle.block296, label %vector.body303, !llvm.loop !18

middle.block296:                                  ; preds = %vector.body303
  %bin.rdx310 = add <4 x i32> %86, %85
  %88 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx310)
  %cmp.n311 = icmp eq i64 %n.vec301, %wide.trip.count264
  br i1 %cmp.n311, label %._crit_edge236, label %.lr.ph235.preheader313

._crit_edge236:                                   ; preds = %.lr.ph235, %middle.block296, %.preheader.thread, %.preheader
  %.0125.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.preheader.thread ], [ %88, %middle.block296 ], [ %95, %.lr.ph235 ]
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0125.lcssa)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %91 = load i32, ptr @n, align 4, !tbaa !8
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph240, label %._crit_edge241

.lr.ph235:                                        ; preds = %.lr.ph235.preheader313, %.lr.ph235
  %indvars.iv261 = phi i64 [ %indvars.iv.next262, %.lr.ph235 ], [ %indvars.iv261.ph, %.lr.ph235.preheader313 ]
  %.0125234 = phi i32 [ %95, %.lr.ph235 ], [ %.0125234.ph, %.lr.ph235.preheader313 ]
  %93 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %indvars.iv261
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %95 = add nsw i32 %94, %.0125234
  %indvars.iv.next262 = add nuw nsw i64 %indvars.iv261, 1
  %exitcond265.not = icmp eq i64 %indvars.iv.next262, %wide.trip.count264
  br i1 %exitcond265.not, label %._crit_edge236, label %.lr.ph235, !llvm.loop !21

.lr.ph240:                                        ; preds = %._crit_edge236, %.lr.ph240
  %indvars.iv266 = phi i64 [ %indvars.iv.next267, %.lr.ph240 ], [ 0, %._crit_edge236 ]
  %96 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv266
  %97 = load i32, ptr %96, align 4, !tbaa !8
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %98, i8 noundef signext 32)
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %100 = load i32, ptr @n, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next267, %101
  br i1 %102, label %.lr.ph240, label %._crit_edge241, !llvm.loop !22

.lr.ph207:                                        ; preds = %.preheader155, %141
  %indvars.iv249 = phi i64 [ %indvars.iv.next250, %141 ], [ 0, %.preheader155 ]
  %.5206 = phi i32 [ %.6, %141 ], [ %.2108.lcssa, %.preheader155 ]
  %.5115205 = phi i32 [ %.6116, %141 ], [ %.2112.lcssa, %.preheader155 ]
  %103 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %indvars.iv249
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %.not138 = icmp eq i32 %104, 0
  br i1 %.not138, label %141, label %105

105:                                              ; preds = %.lr.ph207
  %106 = icmp sgt i32 %.5115205, %.5206
  br i1 %106, label %107, label %123

107:                                              ; preds = %105
  %108 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv249
  %109 = load i32, ptr %108, align 4, !tbaa !8
  %110 = and i32 %109, -2147483647
  %111 = icmp eq i32 %110, 1
  br i1 %111, label %.preheader153, label %123

.preheader153:                                    ; preds = %107
  %112 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not140201 = icmp eq i64 %112, 0
  br i1 %.not140201, label %._crit_edge203, label %.lr.ph202

.lr.ph202:                                        ; preds = %.preheader153, %.lr.ph202
  %113 = load i32, ptr %2, align 4, !tbaa !8
  %114 = add nsw i32 %113, 2
  store i32 %114, ptr %2, align 4, !tbaa !8
  %115 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not140 = icmp eq i64 %115, 0
  br i1 %.not140, label %._crit_edge203, label %.lr.ph202, !llvm.loop !23

._crit_edge203:                                   ; preds = %.lr.ph202, %.preheader153
  %116 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %117 = load i32, ptr %2, align 4, !tbaa !8
  %118 = load i32, ptr @m, align 4, !tbaa !8
  %119 = icmp sgt i32 %117, %118
  br i1 %119, label %._crit_edge241.sink.split, label %120

120:                                              ; preds = %._crit_edge203
  store i32 %117, ptr %108, align 4, !tbaa !8
  %121 = add nsw i32 %.5115205, -1
  %122 = add nsw i32 %.5206, 1
  br label %141

123:                                              ; preds = %107, %105
  %124 = icmp slt i32 %.5115205, %.5206
  br i1 %124, label %125, label %141

125:                                              ; preds = %123
  %126 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv249
  %127 = load i32, ptr %126, align 4, !tbaa !8
  %128 = and i32 %127, 1
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %.preheader154, label %141

.preheader154:                                    ; preds = %125
  %130 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not139198 = icmp eq i64 %130, 0
  br i1 %.not139198, label %._crit_edge200, label %.lr.ph199

.lr.ph199:                                        ; preds = %.preheader154, %.lr.ph199
  %131 = load i32, ptr %1, align 4, !tbaa !8
  %132 = add nsw i32 %131, 2
  store i32 %132, ptr %1, align 4, !tbaa !8
  %133 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not139 = icmp eq i64 %133, 0
  br i1 %.not139, label %._crit_edge200, label %.lr.ph199, !llvm.loop !24

._crit_edge200:                                   ; preds = %.lr.ph199, %.preheader154
  %134 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %135 = load i32, ptr %1, align 4, !tbaa !8
  %136 = load i32, ptr @m, align 4, !tbaa !8
  %137 = icmp sgt i32 %135, %136
  br i1 %137, label %._crit_edge241.sink.split, label %138

138:                                              ; preds = %._crit_edge200
  store i32 %135, ptr %126, align 4, !tbaa !8
  %139 = add nsw i32 %.5115205, 1
  %140 = add nsw i32 %.5206, -1
  br label %141

141:                                              ; preds = %.lr.ph207, %123, %125, %138, %120
  %.6116 = phi i32 [ %121, %120 ], [ %139, %138 ], [ %.5115205, %125 ], [ %.5115205, %123 ], [ %.5115205, %.lr.ph207 ]
  %.6 = phi i32 [ %122, %120 ], [ %140, %138 ], [ %.5206, %125 ], [ %.5206, %123 ], [ %.5206, %.lr.ph207 ]
  %indvars.iv.next250 = add nuw nsw i64 %indvars.iv249, 1
  %142 = load i32, ptr @n, align 4
  %143 = sext i32 %142 to i64
  %144 = icmp sge i64 %indvars.iv.next250, %143
  %145 = icmp eq i32 %.6116, %.6
  %.not143 = select i1 %144, i1 true, i1 %145
  br i1 %.not143, label %.critedge149, label %.lr.ph207, !llvm.loop !25

.critedge149:                                     ; preds = %141
  %.not147219 = icmp slt i32 %142, 1
  %or.cond.not = or i1 %145, %.not147219
  br i1 %or.cond.not, label %.critedge151, label %.lr.ph223

.lr.ph223:                                        ; preds = %.critedge149, %186
  %indvars.iv252 = phi i64 [ %indvars.iv.next253, %186 ], [ 0, %.critedge149 ]
  %.7222 = phi i32 [ %.8, %186 ], [ %.6, %.critedge149 ]
  %.7117221 = phi i32 [ %.8118, %186 ], [ %.6116, %.critedge149 ]
  %146 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %indvars.iv252
  %147 = load i32, ptr %146, align 4, !tbaa !8
  %.not144 = icmp eq i32 %147, 0
  br i1 %.not144, label %148, label %186

148:                                              ; preds = %.lr.ph223
  %149 = icmp sgt i32 %.7117221, %.7222
  br i1 %149, label %150, label %167

150:                                              ; preds = %148
  %151 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv252
  %152 = load i32, ptr %151, align 4, !tbaa !8
  %153 = and i32 %152, -2147483647
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %167

155:                                              ; preds = %150
  store i32 1, ptr %146, align 4, !tbaa !8
  %156 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not146215 = icmp eq i64 %156, 0
  br i1 %.not146215, label %._crit_edge218, label %.lr.ph217

.lr.ph217:                                        ; preds = %155, %.lr.ph217
  %157 = load i32, ptr %2, align 4, !tbaa !8
  %158 = add nsw i32 %157, 2
  store i32 %158, ptr %2, align 4, !tbaa !8
  %159 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not146 = icmp eq i64 %159, 0
  br i1 %.not146, label %._crit_edge218, label %.lr.ph217, !llvm.loop !26

._crit_edge218:                                   ; preds = %.lr.ph217, %155
  %160 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %161 = load i32, ptr %2, align 4, !tbaa !8
  %162 = load i32, ptr @m, align 4, !tbaa !8
  %163 = icmp sgt i32 %161, %162
  br i1 %163, label %._crit_edge241.sink.split, label %164

164:                                              ; preds = %._crit_edge218
  store i32 %161, ptr %151, align 4, !tbaa !8
  %165 = add nsw i32 %.7117221, -1
  %166 = add nsw i32 %.7222, 1
  br label %186

167:                                              ; preds = %150, %148
  %168 = icmp slt i32 %.7117221, %.7222
  br i1 %168, label %169, label %186

169:                                              ; preds = %167
  %170 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv252
  %171 = load i32, ptr %170, align 4, !tbaa !8
  %172 = and i32 %171, 1
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %186

174:                                              ; preds = %169
  store i32 1, ptr %146, align 4, !tbaa !8
  %175 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not145211 = icmp eq i64 %175, 0
  br i1 %.not145211, label %._crit_edge214, label %.lr.ph213

.lr.ph213:                                        ; preds = %174, %.lr.ph213
  %176 = load i32, ptr %1, align 4, !tbaa !8
  %177 = add nsw i32 %176, 2
  store i32 %177, ptr %1, align 4, !tbaa !8
  %178 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.not145 = icmp eq i64 %178, 0
  br i1 %.not145, label %._crit_edge214, label %.lr.ph213, !llvm.loop !27

._crit_edge214:                                   ; preds = %.lr.ph213, %174
  %179 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @d, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %180 = load i32, ptr %1, align 4, !tbaa !8
  %181 = load i32, ptr @m, align 4, !tbaa !8
  %182 = icmp sgt i32 %180, %181
  br i1 %182, label %._crit_edge241.sink.split, label %183

183:                                              ; preds = %._crit_edge214
  store i32 %180, ptr %170, align 4, !tbaa !8
  %184 = add nsw i32 %.7117221, 1
  %185 = add nsw i32 %.7222, -1
  br label %186

186:                                              ; preds = %.lr.ph223, %167, %169, %183, %164
  %.8118 = phi i32 [ %.7117221, %.lr.ph223 ], [ %165, %164 ], [ %184, %183 ], [ %.7117221, %169 ], [ %.7117221, %167 ]
  %.8 = phi i32 [ %.7222, %.lr.ph223 ], [ %166, %164 ], [ %185, %183 ], [ %.7222, %169 ], [ %.7222, %167 ]
  %indvars.iv.next253 = add nuw nsw i64 %indvars.iv252, 1
  %187 = load i32, ptr @n, align 4, !tbaa !8
  %188 = sext i32 %187 to i64
  %.not147 = icmp slt i64 %indvars.iv.next253, %188
  br i1 %.not147, label %.lr.ph223, label %.critedge151, !llvm.loop !28

.critedge151:                                     ; preds = %186, %.critedge149
  %189 = phi i32 [ %142, %.critedge149 ], [ %187, %186 ]
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %.lr.ph226.preheader, label %._crit_edge227

.lr.ph226.preheader:                              ; preds = %.critedge151
  %wide.trip.count = zext nneg i32 %189 to i64
  %min.iters.check = icmp ult i32 %189, 8
  br i1 %min.iters.check, label %.lr.ph226.preheader317, label %vector.ph

.lr.ph226.preheader317:                           ; preds = %middle.block, %.lr.ph226.preheader
  %indvars.iv255.ph = phi i64 [ 0, %.lr.ph226.preheader ], [ %n.vec, %middle.block ]
  %.0104224.ph = phi i32 [ 0, %.lr.ph226.preheader ], [ %196, %middle.block ]
  br label %.lr.ph226

vector.ph:                                        ; preds = %.lr.ph226.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %193, %vector.body ]
  %vec.phi294 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %194, %vector.body ]
  %191 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %index
  %192 = getelementptr inbounds i8, ptr %191, i64 16
  %wide.load = load <4 x i32>, ptr %191, align 16, !tbaa !8
  %wide.load295 = load <4 x i32>, ptr %192, align 16, !tbaa !8
  %193 = add <4 x i32> %wide.load, %vec.phi
  %194 = add <4 x i32> %wide.load295, %vec.phi294
  %index.next = add nuw i64 %index, 8
  %195 = icmp eq i64 %index.next, %n.vec
  br i1 %195, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %194, %193
  %196 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge227, label %.lr.ph226.preheader317

._crit_edge227:                                   ; preds = %.lr.ph226, %middle.block, %.preheader155, %.critedge151
  %.0104.lcssa = phi i32 [ 0, %.critedge151 ], [ 0, %.preheader155 ], [ %196, %middle.block ], [ %203, %.lr.ph226 ]
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0104.lcssa)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %199 = load i32, ptr @n, align 4, !tbaa !8
  %200 = icmp sgt i32 %199, 0
  br i1 %200, label %.lr.ph231, label %._crit_edge241

.lr.ph226:                                        ; preds = %.lr.ph226.preheader317, %.lr.ph226
  %indvars.iv255 = phi i64 [ %indvars.iv.next256, %.lr.ph226 ], [ %indvars.iv255.ph, %.lr.ph226.preheader317 ]
  %.0104224 = phi i32 [ %203, %.lr.ph226 ], [ %.0104224.ph, %.lr.ph226.preheader317 ]
  %201 = getelementptr inbounds [200100 x i32], ptr @f, i64 0, i64 %indvars.iv255
  %202 = load i32, ptr %201, align 4, !tbaa !8
  %203 = add nsw i32 %202, %.0104224
  %indvars.iv.next256 = add nuw nsw i64 %indvars.iv255, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next256, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge227, label %.lr.ph226, !llvm.loop !30

.lr.ph231:                                        ; preds = %._crit_edge227, %.lr.ph231
  %indvars.iv258 = phi i64 [ %indvars.iv.next259, %.lr.ph231 ], [ 0, %._crit_edge227 ]
  %204 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv258
  %205 = load i32, ptr %204, align 4, !tbaa !8
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %205)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %206, i8 noundef signext 32)
  %indvars.iv.next259 = add nuw nsw i64 %indvars.iv258, 1
  %208 = load i32, ptr @n, align 4, !tbaa !8
  %209 = sext i32 %208 to i64
  %210 = icmp slt i64 %indvars.iv.next259, %209
  br i1 %210, label %.lr.ph231, label %._crit_edge241, !llvm.loop !31

._crit_edge241.sink.split:                        ; preds = %._crit_edge180, %._crit_edge183, %._crit_edge186, %._crit_edge189, %._crit_edge200, %._crit_edge203, %._crit_edge214, %._crit_edge218
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %._crit_edge241

._crit_edge241:                                   ; preds = %.lr.ph231, %.lr.ph240, %._crit_edge241.sink.split, %._crit_edge227, %._crit_edge236
  %.sink = phi ptr [ @_ZSt4cout, %._crit_edge236 ], [ @_ZSt4cout, %._crit_edge227 ], [ %211, %._crit_edge241.sink.split ], [ @_ZSt4cout, %.lr.ph240 ], [ @_ZSt4cout, %.lr.ph231 ]
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %.sink, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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.start.p0(i64 immarg, ptr nocapture) #3

; 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 noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !12, !20, !19}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !19, !20}
!30 = distinct !{!30, !12, !20, !19}
!31 = distinct !{!31, !12}


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