; LLVM IR from kazunetakahashi/atcoder :: 2020/0202_ABC147/past (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::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [1563 x i64] }
%"class.std::allocator.12" = type { i8 }
%"class.std::allocator.7" = type { i8 }
%"class.std::bitset<100000>::reference" = type { ptr, i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::vector.10", align 8
  %18 = alloca %"class.std::bitset", align 8
  %19 = alloca %"class.std::allocator.12", align 1
  %20 = alloca %"class.std::allocator.7", align 1
  %21 = alloca %"class.std::bitset<100000>::reference", align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::bitset", align 8
  %25 = alloca %"class.std::bitset", align 8
  %26 = alloca %"class.std::bitset", align 8
  %27 = alloca %"class.std::bitset", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::bitset<100000>::reference", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %31 = 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)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #7
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %37 unwind label %44

37:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %34, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %38 unwind label %48

38:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %76, %38
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %53, label %43

43:                                               ; preds = %39
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %79

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

48:                                               ; preds = %37
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %52

52:                                               ; preds = %48, %44
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %324

53:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %68, %53
  %55 = load i32, ptr %12, align 4, !tbaa !5
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %75

59:                                               ; preds = %54
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %61) #7
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #7
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %67 unwind label %71

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %12, align 4, !tbaa !5
  br label %54, !llvm.loop !9

71:                                               ; preds = %59
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %323

75:                                               ; preds = %58
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %10, align 4, !tbaa !5
  br label %39, !llvm.loop !11

79:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %118, %79
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %121

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %110, %85
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %117

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %92 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %93 unwind label %113

93:                                               ; preds = %91
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %95) #7
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #7
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = sub nsw i32 %100, %101
  %103 = call i32 @llvm.abs.i32(i32 %102, i1 true)
  %104 = load i32, ptr %13, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %105) #7
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108) #7
  store i32 %103, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %110

110:                                              ; preds = %93
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !5
  br label %86, !llvm.loop !12

113:                                              ; preds = %91
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %323

117:                                              ; preds = %90
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %13, align 4, !tbaa !5
  br label %80, !llvm.loop !13

121:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  call void @llvm.lifetime.start.p0(i64 12504, ptr %18) #7
  call void @_ZNSt6bitsetILm100000EEC2Ey(ptr noundef nonnull align 8 dereferenceable(12504) %18, i64 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  call void @_ZNSaISt6bitsetILm100000EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  invoke void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %125, ptr noundef nonnull align 8 dereferenceable(12504) %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %126 unwind label %142

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  call void @_ZNSaISt6vectorISt6bitsetILm100000EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %123, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %127 unwind label %146

127:                                              ; preds = %126
  call void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %128 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #7
  %129 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef 0) #7
  %130 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef 0) #7
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %132, 50000
  %134 = sext i32 %133 to i64
  invoke void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<100000>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(12504) %129, i64 noundef %134)
          to label %135 unwind label %151

135:                                              ; preds = %127
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm100000EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext true) #7
  call void @_ZNSt6bitsetILm100000EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %270, %135
  %138 = load i32, ptr %22, align 4, !tbaa !5
  %139 = load i32, ptr %2, align 4, !tbaa !5
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %155, label %141

141:                                              ; preds = %137
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %273

142:                                              ; preds = %121
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  br label %150

146:                                              ; preds = %126
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %150

150:                                              ; preds = %146, %142
  call void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %322

151:                                              ; preds = %127
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %7, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %321

155:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %266, %155
  %157 = load i32, ptr %23, align 4, !tbaa !5
  %158 = load i32, ptr %3, align 4, !tbaa !5
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %269

161:                                              ; preds = %156
  %162 = load i32, ptr %22, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %166, label %213

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 12504, ptr %24) #7
  %167 = load i32, ptr %22, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %168) #7
  %170 = load i32, ptr %23, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %171) #7
  %173 = load i32, ptr %22, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %175) #7
  %177 = load i32, ptr %23, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #7
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  call void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %24, ptr noundef nonnull align 8 dereferenceable(12504) %172, i64 noundef %181) #7
  %182 = load i32, ptr %22, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %184) #7
  %186 = load i32, ptr %23, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #7
  %189 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %188, ptr noundef nonnull align 8 dereferenceable(12504) %24) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %25) #7
  %190 = load i32, ptr %22, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %191) #7
  %193 = load i32, ptr %23, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #7
  %196 = load i32, ptr %22, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %198) #7
  %200 = load i32, ptr %23, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #7
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  call void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %25, ptr noundef nonnull align 8 dereferenceable(12504) %195, i64 noundef %204) #7
  %205 = load i32, ptr %22, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %207) #7
  %209 = load i32, ptr %23, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #7
  %212 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %211, ptr noundef nonnull align 8 dereferenceable(12504) %25) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %25) #7
  br label %213

213:                                              ; preds = %166, %161
  %214 = load i32, ptr %23, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  %216 = load i32, ptr %3, align 4, !tbaa !5
  %217 = icmp slt i32 %215, %216
  br i1 %217, label %218, label %265

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 12504, ptr %26) #7
  %219 = load i32, ptr %22, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %220) #7
  %222 = load i32, ptr %23, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %223) #7
  %225 = load i32, ptr %22, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %226) #7
  %228 = load i32, ptr %23, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %230) #7
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  call void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %26, ptr noundef nonnull align 8 dereferenceable(12504) %224, i64 noundef %233) #7
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %235) #7
  %237 = load i32, ptr %23, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %239) #7
  %241 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %240, ptr noundef nonnull align 8 dereferenceable(12504) %26) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr %27) #7
  %242 = load i32, ptr %22, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %243) #7
  %245 = load i32, ptr %23, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246) #7
  %248 = load i32, ptr %22, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %249) #7
  %251 = load i32, ptr %23, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef %253) #7
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  call void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %27, ptr noundef nonnull align 8 dereferenceable(12504) %247, i64 noundef %256) #7
  %257 = load i32, ptr %22, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %258) #7
  %260 = load i32, ptr %23, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  %262 = sext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %259, i64 noundef %262) #7
  %264 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %263, ptr noundef nonnull align 8 dereferenceable(12504) %27) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr %27) #7
  br label %265

265:                                              ; preds = %218, %213
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %23, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %23, align 4, !tbaa !5
  br label %156, !llvm.loop !14

269:                                              ; preds = %160
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %22, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %22, align 4, !tbaa !5
  br label %137, !llvm.loop !15

273:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 100000, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %305, %273
  %275 = load i32, ptr %29, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 100000
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  store i32 20, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %309

278:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %279 = load i32, ptr %2, align 4, !tbaa !5
  %280 = sub nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %281) #7
  %283 = load i32, ptr %3, align 4, !tbaa !5
  %284 = sub nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %282, i64 noundef %285) #7
  %287 = load i32, ptr %29, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  invoke void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<100000>::reference") align 8 %30, ptr noundef nonnull align 8 dereferenceable(12504) %286, i64 noundef %288)
          to label %289 unwind label %296

289:                                              ; preds = %278
  %290 = call noundef zeroext i1 @_ZNKSt6bitsetILm100000EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  call void @_ZNSt6bitsetILm100000EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br i1 %290, label %291, label %304

291:                                              ; preds = %289
  %292 = load i32, ptr %29, align 4, !tbaa !5
  %293 = sub nsw i32 %292, 50000
  %294 = call i32 @llvm.abs.i32(i32 %293, i1 true)
  invoke void @_Z6ch_minIiEvRT_S0_(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 noundef %294)
          to label %295 unwind label %300

295:                                              ; preds = %291
  br label %304

296:                                              ; preds = %278
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %7, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %308

300:                                              ; preds = %291
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %7, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %8, align 4
  br label %308

304:                                              ; preds = %295, %289
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %29, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %29, align 4, !tbaa !5
  br label %274, !llvm.loop !16

308:                                              ; preds = %300, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %320

309:                                              ; preds = %277
  %310 = load i32, ptr %28, align 4, !tbaa !5
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %310)
          to label %312 unwind label %316

312:                                              ; preds = %309
  %313 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %311, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %314 unwind label %316

314:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %315 = load i32, ptr %1, align 4
  ret i32 %315

316:                                              ; preds = %312, %309
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %7, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %8, align 4
  br label %320

320:                                              ; preds = %316, %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %321

321:                                              ; preds = %320, %151
  call void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  br label %322

322:                                              ; preds = %321, %150
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %323

323:                                              ; preds = %322, %113, %71
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %324

324:                                              ; preds = %323, %52
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %325

325:                                              ; preds = %324
  %326 = load ptr, ptr %7, align 8
  %327 = load i32, ptr %8, align 4
  %328 = insertvalue { ptr, i32 } poison, ptr %326, 0
  %329 = insertvalue { ptr, i32 } %328, i32 %327, 1
  resume { ptr, i32 } %329
}

; 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)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm100000EEC2Ey(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6bitsetILm100000EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorISt6bitsetILm100000EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<100000>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm100000EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6ch_minIiEvRT_S0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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


; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::bitset<100000>>, std::allocator<std::vector<std::bitset<100000>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::bitset<100000>, std::allocator<std::bitset<100000>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [1563 x i64] }
%"class.std::allocator.12" = type { i8 }
%"class.std::allocator.7" = type { i8 }
%"class.std::bitset<100000>::reference" = type { ptr, i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; 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 #0 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)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.5", align 8
  %9 = alloca %"class.std::vector.10", align 8
  %10 = alloca %"class.std::bitset", align 8
  %11 = alloca %"class.std::allocator.12", align 1
  %12 = alloca %"class.std::allocator.7", align 1
  %13 = alloca %"class.std::bitset<100000>::reference", align 8
  %14 = alloca %"class.std::bitset", align 8
  %15 = alloca %"class.std::bitset", align 8
  %16 = alloca %"class.std::bitset", align 8
  %17 = alloca %"class.std::bitset", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::bitset<100000>::reference", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %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) %1)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %22 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %24, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %25 unwind label %36

25:                                               ; preds = %0
  %26 = sext i32 %22 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %26, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %27 unwind label %38

27:                                               ; preds = %25
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  %.pre113.pre = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp sgt i32 %.pre113.pre, 0
  %or.cond = select i1 %29, i1 %30, i1 false
  br i1 %or.cond, label %.preheader74, label %._crit_edge82

.preheader74:                                     ; preds = %27, %._crit_edge
  %31 = phi i32 [ %41, %._crit_edge ], [ %28, %27 ]
  %32 = phi i32 [ %42, %._crit_edge ], [ %.pre113.pre, %27 ]
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %._crit_edge ], [ 0, %27 ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

.preheader73:                                     ; preds = %._crit_edge
  %34 = icmp sgt i32 %41, 0
  %35 = icmp sgt i32 %42, 0
  %or.cond132 = and i1 %34, %35
  br i1 %or.cond132, label %.preheader72, label %._crit_edge82

36:                                               ; preds = %0
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %25
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %40

40:                                               ; preds = %38, %36
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %185

._crit_edge.loopexit:                             ; preds = %48
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader74
  %41 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader74 ]
  %42 = phi i32 [ %49, %._crit_edge.loopexit ], [ %32, %.preheader74 ]
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %43 = sext i32 %41 to i64
  %44 = icmp slt i64 %indvars.iv.next95, %43
  br i1 %44, label %.preheader74, label %.preheader73, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader74, %48
  %indvars.iv = phi i64 [ %indvars.iv.next, %48 ], [ 0, %.preheader74 ]
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv94) #7
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %48 unwind label %52

48:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

52:                                               ; preds = %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %184

.preheader72:                                     ; preds = %.preheader73, %._crit_edge80
  %54 = phi i32 [ %59, %._crit_edge80 ], [ %41, %.preheader73 ]
  %55 = phi i32 [ %60, %._crit_edge80 ], [ %42, %.preheader73 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %._crit_edge80 ], [ 0, %.preheader73 ]
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph79, label %._crit_edge80

._crit_edge82:                                    ; preds = %._crit_edge80, %27, %.preheader73
  %57 = phi i32 [ %42, %.preheader73 ], [ %.pre113.pre, %27 ], [ %60, %._crit_edge80 ]
  %.lcssa = phi i32 [ %41, %.preheader73 ], [ %28, %27 ], [ %59, %._crit_edge80 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  %58 = sext i32 %57 to i64
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %10) #7
  call void @_ZNSt6bitsetILm100000EEC2Ey(ptr noundef nonnull align 8 dereferenceable(12504) %10, i64 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaISt6bitsetILm100000EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %58, ptr noundef nonnull align 8 dereferenceable(12504) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %78 unwind label %98

._crit_edge80.loopexit:                           ; preds = %64
  %.pre112 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %.preheader72
  %59 = phi i32 [ %.pre112, %._crit_edge80.loopexit ], [ %54, %.preheader72 ]
  %60 = phi i32 [ %73, %._crit_edge80.loopexit ], [ %55, %.preheader72 ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %61 = sext i32 %59 to i64
  %62 = icmp slt i64 %indvars.iv.next101, %61
  br i1 %62, label %.preheader72, label %._crit_edge82, !llvm.loop !13

.lr.ph79:                                         ; preds = %.preheader72, %64
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %64 ], [ 0, %.preheader72 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %63 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %64 unwind label %76

64:                                               ; preds = %.lr.ph79
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #7
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %indvars.iv97) #7
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sub nsw i32 %67, %68
  %70 = call i32 @llvm.abs.i32(i32 %69, i1 true)
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv100) #7
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv97) #7
  store i32 %70, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = icmp slt i64 %indvars.iv.next98, %74
  br i1 %75, label %.lr.ph79, label %._crit_edge80.loopexit, !llvm.loop !14

76:                                               ; preds = %.lr.ph79
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %184

78:                                               ; preds = %._crit_edge82
  %79 = sext i32 %.lcssa to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaISt6vectorISt6bitsetILm100000EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %79, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %80 unwind label %100

80:                                               ; preds = %78
  call void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #7
  %82 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef 0) #7
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0) #7
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %85, 50000
  %87 = sext i32 %86 to i64
  call void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<100000>::reference") align 8 %13, ptr noundef nonnull align 8 dereferenceable(12504) %82, i64 noundef %87)
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm100000EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext true) #7
  call void @_ZNSt6bitsetILm100000EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  %89 = load i32, ptr %1, align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  %91 = load i32, ptr %2, align 4
  %92 = icmp sgt i32 %91, 0
  %or.cond134 = select i1 %90, i1 %92, i1 false
  br i1 %or.cond134, label %.preheader, label %._crit_edge87

.preheader:                                       ; preds = %80, %._crit_edge85
  %93 = phi i32 [ %103, %._crit_edge85 ], [ %89, %80 ]
  %94 = phi i32 [ %104, %._crit_edge85 ], [ %91, %80 ]
  %95 = phi i32 [ %105, %._crit_edge85 ], [ %91, %80 ]
  %indvars.iv106 = phi i64 [ %97, %._crit_edge85 ], [ 0, %80 ]
  %96 = icmp sgt i32 %95, 0
  %97 = add nuw nsw i64 %indvars.iv106, 1
  br i1 %96, label %.lr.ph84, label %._crit_edge85

._crit_edge87:                                    ; preds = %._crit_edge85, %80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 100000, ptr %18, align 4, !tbaa !5
  br label %163

98:                                               ; preds = %._crit_edge82
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %78
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %102

102:                                              ; preds = %100, %98
  %.pn65 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %183

._crit_edge85.loopexit:                           ; preds = %156
  %.pre116 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge85

._crit_edge85:                                    ; preds = %.preheader, %._crit_edge85.loopexit
  %103 = phi i32 [ %.pre116, %._crit_edge85.loopexit ], [ %93, %.preheader ]
  %104 = phi i32 [ %157, %._crit_edge85.loopexit ], [ %94, %.preheader ]
  %105 = phi i32 [ %157, %._crit_edge85.loopexit ], [ %95, %.preheader ]
  %106 = sext i32 %103 to i64
  %107 = icmp slt i64 %97, %106
  br i1 %107, label %.preheader, label %._crit_edge87, !llvm.loop !15

.lr.ph84:                                         ; preds = %.preheader, %156
  %108 = phi i32 [ %157, %156 ], [ %94, %.preheader ]
  %109 = phi i32 [ %157, %156 ], [ %95, %.preheader ]
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %156 ], [ 0, %.preheader ]
  %110 = load i32, ptr %1, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %97, %111
  br i1 %112, label %113, label %132

113:                                              ; preds = %.lr.ph84
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %14) #7
  %114 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %115 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %indvars.iv103) #7
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %97) #7
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %indvars.iv103) #7
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  call void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %14, ptr noundef nonnull align 8 dereferenceable(12504) %115, i64 noundef %119) #7
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %97) #7
  %121 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %indvars.iv103) #7
  %122 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %121, ptr noundef nonnull align 8 dereferenceable(12504) %14) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %15) #7
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %124 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %indvars.iv103) #7
  %125 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %97) #7
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %indvars.iv103) #7
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  call void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %15, ptr noundef nonnull align 8 dereferenceable(12504) %124, i64 noundef %128) #7
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %97) #7
  %130 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %indvars.iv103) #7
  %131 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %130, ptr noundef nonnull align 8 dereferenceable(12504) %15) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %15) #7
  %.pre114 = load i32, ptr %2, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %113, %.lr.ph84
  %133 = phi i32 [ %.pre114, %113 ], [ %108, %.lr.ph84 ]
  %134 = phi i32 [ %.pre114, %113 ], [ %109, %.lr.ph84 ]
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %135 = sext i32 %134 to i64
  %136 = icmp slt i64 %indvars.iv.next104, %135
  br i1 %136, label %137, label %156

137:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %16) #7
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %139 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %indvars.iv103) #7
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv106) #7
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %indvars.iv.next104) #7
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  call void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %16, ptr noundef nonnull align 8 dereferenceable(12504) %139, i64 noundef %143) #7
  %144 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %145 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %indvars.iv.next104) #7
  %146 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %145, ptr noundef nonnull align 8 dereferenceable(12504) %16) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12504, ptr nonnull %17) #7
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %148 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %indvars.iv103) #7
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv106) #7
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %indvars.iv.next104) #7
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  call void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %17, ptr noundef nonnull align 8 dereferenceable(12504) %148, i64 noundef %152) #7
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv106) #7
  %154 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %indvars.iv.next104) #7
  %155 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504) %154, ptr noundef nonnull align 8 dereferenceable(12504) %17) #7
  call void @llvm.lifetime.end.p0(i64 12504, ptr nonnull %17) #7
  %.pre115 = load i32, ptr %2, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %132, %137
  %157 = phi i32 [ %133, %132 ], [ %.pre115, %137 ]
  %158 = sext i32 %157 to i64
  %159 = icmp slt i64 %indvars.iv.next104, %158
  br i1 %159, label %.lr.ph84, label %._crit_edge85.loopexit, !llvm.loop !16

160:                                              ; preds = %177
  %161 = load i32, ptr %18, align 4, !tbaa !5
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %161)
          to label %178 unwind label %181

163:                                              ; preds = %._crit_edge87, %177
  %indvars.iv109 = phi i64 [ 0, %._crit_edge87 ], [ %indvars.iv.next110, %177 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %164 = load i32, ptr %1, align 4, !tbaa !5
  %165 = add nsw i32 %164, -1
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %166) #7
  %168 = load i32, ptr %2, align 4, !tbaa !5
  %169 = add nsw i32 %168, -1
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %170) #7
  call void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<100000>::reference") align 8 %19, ptr noundef nonnull align 8 dereferenceable(12504) %171, i64 noundef %indvars.iv109)
  %172 = call noundef zeroext i1 @_ZNKSt6bitsetILm100000EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @_ZNSt6bitsetILm100000EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br i1 %172, label %173, label %177

173:                                              ; preds = %163
  %174 = trunc i64 %indvars.iv109 to i32
  %175 = add i32 %174, -50000
  %176 = call i32 @llvm.abs.i32(i32 %175, i1 true)
  call void @_Z6ch_minIiEvRT_S0_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %176)
  br label %177

177:                                              ; preds = %163, %173
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next110, 100000
  br i1 %exitcond.not, label %160, label %163, !llvm.loop !17

178:                                              ; preds = %160
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %180 unwind label %181

180:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  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

181:                                              ; preds = %178, %160
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %183

183:                                              ; preds = %181, %102
  %.pn67 = phi { ptr, i32 } [ %182, %181 ], [ %.pn65, %102 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %184

184:                                              ; preds = %183, %76, %52
  %.pn69 = phi { ptr, i32 } [ %53, %52 ], [ %77, %76 ], [ %.pn67, %183 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %185

185:                                              ; preds = %184, %40
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %184 ], [ %.pn, %40 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn69.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm100000EEC2Ey(ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6bitsetILm100000EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6bitsetILm100000EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt6vectorISt6bitsetILm100000EESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_ISt6bitsetILm100000EESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm100000EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<100000>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm100000EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100000EElsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12504) ptr @_ZNSt6bitsetILm100000EEoRERKS0_(ptr noundef nonnull align 8 dereferenceable(12504), ptr noundef nonnull align 8 dereferenceable(12504)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6bitsetILm100000EErsEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(12504), i64 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z6ch_minIiEvRT_S0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6bitsetILm100000EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorISt6bitsetILm100000EESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass