; LLVM IR from abeaumont/competitive-programming :: codechef/snck1a19 (arrgraph)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@primes = external dso_local global [15 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"class.std::allocator.4", align 1
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::allocator.4", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::_Bit_reference", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::function", align 8
  %20 = alloca %class.anon, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %26

26:                                               ; preds = %265, %0
  %27 = load i32, ptr @t, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr @t, align 4, !tbaa !5
  %29 = icmp ne i32 %27, 0
  br i1 %29, label %30, label %274

30:                                               ; preds = %26
  %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) @n)
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %33, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %34 unwind label %48

34:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef 15, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %35 unwind label %52

35:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %38 unwind label %56

38:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = call ptr @llvm.stacksave.p0()
  store ptr %41, ptr %10, align 8
  %42 = alloca i32, i64 %40, align 16
  store i64 %40, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %104, %38
  %44 = load i32, ptr %13, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %60, label %47

47:                                               ; preds = %43
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %108

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

52:                                               ; preds = %34
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %4, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  br label %272

56:                                               ; preds = %35
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %4, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %271

60:                                               ; preds = %43
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %42, i64 %62
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %65 unwind label %70

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %100, %65
  %67 = load i32, ptr %15, align 4, !tbaa !5
  %68 = icmp slt i32 %67, 15
  br i1 %68, label %74, label %69

69:                                               ; preds = %66
  store i32 7, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %103

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %107

74:                                               ; preds = %66
  %75 = load i32, ptr %13, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %42, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [15 x i32], ptr @primes, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = srem i32 %78, %82
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %99, label %85

85:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %87)
          to label %89 unwind label %95

89:                                               ; preds = %85
  %90 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %91 = extractvalue { ptr, i64 } %88, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %93 = extractvalue { ptr, i64 } %88, 1
  store i64 %93, ptr %92, align 8
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %16, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %99

95:                                               ; preds = %85
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %4, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %107

99:                                               ; preds = %89, %74
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %15, align 4, !tbaa !5
  br label %66, !llvm.loop !9

103:                                              ; preds = %69
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %13, align 4, !tbaa !5
  br label %43, !llvm.loop !11

107:                                              ; preds = %95, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %270

108:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %152, %108
  %110 = load i32, ptr %17, align 4, !tbaa !5
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 10, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %155

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %18, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %148, %114
  %118 = load i32, ptr %18, align 4, !tbaa !5
  %119 = load i32, ptr @n, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

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

122:                                              ; preds = %117
  %123 = load i32, ptr %17, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %42, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr %18, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %42, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = invoke noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %126, i32 noundef %130)
          to label %132 unwind label %143

132:                                              ; preds = %122
  %133 = icmp eq i32 %131, 1
  br i1 %133, label %134, label %147

134:                                              ; preds = %132
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %136) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %138 unwind label %143

138:                                              ; preds = %134
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %140) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %141, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %142 unwind label %143

142:                                              ; preds = %138
  br label %147

143:                                              ; preds = %138, %134, %122
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %4, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %270

147:                                              ; preds = %142, %132
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %18, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %18, align 4, !tbaa !5
  br label %117, !llvm.loop !12

151:                                              ; preds = %121
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %17, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %17, align 4, !tbaa !5
  br label %109, !llvm.loop !13

155:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  %156 = getelementptr inbounds %class.anon, ptr %20, i32 0, i32 0
  store ptr %8, ptr %156, align 8, !tbaa !14
  %157 = getelementptr inbounds %class.anon, ptr %20, i32 0, i32 1
  store ptr %2, ptr %157, align 8, !tbaa !14
  %158 = getelementptr inbounds %class.anon, ptr %20, i32 0, i32 2
  store ptr %19, ptr %158, align 8, !tbaa !14
  invoke void @"_ZNSt8functionIFviEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %159 unwind label %177

159:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  invoke void @_ZNKSt8functionIFviEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 0)
          to label %160 unwind label %181

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %189, %160
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = load i32, ptr @n, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %192

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %166 = load i32, ptr %21, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %167)
          to label %169 unwind label %185

169:                                              ; preds = %165
  %170 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %171 = extractvalue { ptr, i64 } %168, 0
  store ptr %171, ptr %170, align 8
  %172 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %173 = extractvalue { ptr, i64 } %168, 1
  store i64 %173, ptr %172, align 8
  %174 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  %175 = xor i1 %174, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br i1 %175, label %176, label %189

176:                                              ; preds = %169
  br label %192

177:                                              ; preds = %155
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %4, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %269

181:                                              ; preds = %159
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %4, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %5, align 4
  br label %268

185:                                              ; preds = %165
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %4, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %267

189:                                              ; preds = %169
  %190 = load i32, ptr %21, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %21, align 4, !tbaa !5
  br label %161, !llvm.loop !16

192:                                              ; preds = %176, %161
  %193 = load i32, ptr %21, align 4, !tbaa !5
  %194 = load i32, ptr @n, align 4, !tbaa !5
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %196, label %227

196:                                              ; preds = %192
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %216, %196
  %198 = load i32, ptr %21, align 4, !tbaa !5
  %199 = icmp slt i32 %198, 15
  br i1 %199, label %200, label %219

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %201 = load i32, ptr %21, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %202)
          to label %204 unwind label %212

204:                                              ; preds = %200
  %205 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %206 = extractvalue { ptr, i64 } %203, 0
  store ptr %206, ptr %205, align 8
  %207 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %208 = extractvalue { ptr, i64 } %203, 1
  store i64 %208, ptr %207, align 8
  %209 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  %210 = xor i1 %209, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br i1 %210, label %211, label %216

211:                                              ; preds = %204
  br label %219

212:                                              ; preds = %200
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %4, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %267

216:                                              ; preds = %204
  %217 = load i32, ptr %21, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %21, align 4, !tbaa !5
  br label %197, !llvm.loop !17

219:                                              ; preds = %211, %197
  %220 = load i32, ptr %21, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [15 x i32], ptr @primes, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = getelementptr inbounds i32, ptr %42, i64 0
  store i32 %223, ptr %224, align 16, !tbaa !5
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %12, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %219, %192
  %228 = load i32, ptr %12, align 4, !tbaa !5
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %228)
          to label %230 unwind label %238

230:                                              ; preds = %227
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %232 unwind label %238

232:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %258, %232
  %234 = load i32, ptr %24, align 4, !tbaa !5
  %235 = load i32, ptr @n, align 4, !tbaa !5
  %236 = icmp slt i32 %234, %235
  br i1 %236, label %242, label %237

237:                                              ; preds = %233
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %265

238:                                              ; preds = %230, %227
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %4, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %5, align 4
  br label %267

242:                                              ; preds = %233
  %243 = load i32, ptr %24, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds i32, ptr %42, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %246)
          to label %248 unwind label %261

248:                                              ; preds = %242
  %249 = load i32, ptr %24, align 4, !tbaa !5
  %250 = load i32, ptr @n, align 4, !tbaa !5
  %251 = sub nsw i32 %250, 1
  %252 = icmp eq i32 %249, %251
  %253 = zext i1 %252 to i64
  %254 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %253
  %255 = load i8, ptr %254, align 1, !tbaa !18
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %247, i8 noundef signext %255)
          to label %257 unwind label %261

257:                                              ; preds = %248
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %24, align 4, !tbaa !5
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %24, align 4, !tbaa !5
  br label %233, !llvm.loop !19

261:                                              ; preds = %248, %242
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %4, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %267

265:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %266 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %266)
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %26, !llvm.loop !20

267:                                              ; preds = %261, %238, %212, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %268

268:                                              ; preds = %267, %181
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %269

269:                                              ; preds = %268, %177
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %270

270:                                              ; preds = %269, %143, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %271

271:                                              ; preds = %270, %56
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  br label %272

272:                                              ; preds = %271, %52
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  br label %273

273:                                              ; preds = %272, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %276

274:                                              ; preds = %26
  %275 = load i32, ptr %1, align 4
  ret i32 %275

276:                                              ; preds = %273
  %277 = load ptr, ptr %4, align 8
  %278 = load i32, ptr %5, align 4
  %279 = insertvalue { ptr, i32 } poison, ptr %277, 0
  %280 = insertvalue { ptr, i32 } %279, i32 %278, 1
  resume { ptr, i32 } %280
}

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) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #3

; 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) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 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)) #6

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #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 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::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::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr, ptr, ptr }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@primes = external dso_local local_unnamed_addr global [15 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::allocator", align 1
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::allocator.4", align 1
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.4", align 1
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon, align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %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) @t)
  %15 = load i32, ptr @t, align 4, !tbaa !5
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr @t, align 4, !tbaa !5
  %.not76 = icmp eq i32 %15, 0
  br i1 %.not76, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %0
  %17 = getelementptr inbounds i8, ptr %7, i64 8
  %18 = getelementptr inbounds i8, ptr %11, i64 8
  %19 = getelementptr inbounds i8, ptr %11, i64 16
  %20 = getelementptr inbounds i8, ptr %12, i64 8
  %21 = getelementptr inbounds i8, ptr %13, i64 8
  br label %22

22:                                               ; preds = %.lr.ph78, %._crit_edge75
  %23 = 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)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #7
  call void @_ZNSaISt6vectorIiSaIiEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %25, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %26 unwind label %38

26:                                               ; preds = %22
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 15, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %27 unwind label %40

27:                                               ; preds = %26
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %30 unwind label %42

30:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = call ptr @llvm.stacksave.p0()
  %34 = alloca i32, i64 %32, align 16
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  br label %._crit_edge66

._crit_edge:                                      ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  %37 = icmp sgt i32 %186, 0
  br i1 %37, label %.lr.ph65, label %._crit_edge66

38:                                               ; preds = %22
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIiSaIiEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %347

40:                                               ; preds = %26
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %346

42:                                               ; preds = %27
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %345

.lr.ph:                                           ; preds = %30, %185
  %indvars.iv = phi i64 [ %indvars.iv.next, %185 ], [ 0, %30 ]
  %44 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %.preheader.preheader unwind label %49

.preheader.preheader:                             ; preds = %.lr.ph
  %46 = load i32, ptr %44, align 4, !tbaa !5
  %47 = load i32, ptr @primes, align 16, !tbaa !5
  %48 = srem i32 %46, %47
  %.not44 = icmp eq i32 %48, 0
  br i1 %.not44, label %51, label %.preheader.1

49:                                               ; preds = %.lr.ph
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %344

51:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %52 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 0)
          to label %53 unwind label %57

53:                                               ; preds = %51
  %54 = extractvalue { ptr, i64 } %52, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i64 } %52, 1
  store i64 %55, ptr %17, align 8
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.1

57:                                               ; preds = %179, %170, %161, %152, %143, %134, %125, %116, %107, %98, %89, %80, %71, %62, %51
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %344

.preheader.1:                                     ; preds = %.preheader.preheader, %53
  %59 = phi i32 [ %46, %.preheader.preheader ], [ %.pre, %53 ]
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 4), align 4, !tbaa !5
  %61 = srem i32 %59, %60
  %.not44.1 = icmp eq i32 %61, 0
  br i1 %.not44.1, label %62, label %.preheader.2

62:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %63 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 1)
          to label %64 unwind label %57

64:                                               ; preds = %62
  %65 = extractvalue { ptr, i64 } %63, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i64 } %63, 1
  store i64 %66, ptr %17, align 8
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre93 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.2

.preheader.2:                                     ; preds = %64, %.preheader.1
  %68 = phi i32 [ %.pre93, %64 ], [ %59, %.preheader.1 ]
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 8), align 8, !tbaa !5
  %70 = srem i32 %68, %69
  %.not44.2 = icmp eq i32 %70, 0
  br i1 %.not44.2, label %71, label %.preheader.3

71:                                               ; preds = %.preheader.2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %72 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 2)
          to label %73 unwind label %57

73:                                               ; preds = %71
  %74 = extractvalue { ptr, i64 } %72, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i64 } %72, 1
  store i64 %75, ptr %17, align 8
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre94 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.3

.preheader.3:                                     ; preds = %73, %.preheader.2
  %77 = phi i32 [ %.pre94, %73 ], [ %68, %.preheader.2 ]
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 12), align 4, !tbaa !5
  %79 = srem i32 %77, %78
  %.not44.3 = icmp eq i32 %79, 0
  br i1 %.not44.3, label %80, label %.preheader.4

80:                                               ; preds = %.preheader.3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %81 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 3)
          to label %82 unwind label %57

82:                                               ; preds = %80
  %83 = extractvalue { ptr, i64 } %81, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i64 } %81, 1
  store i64 %84, ptr %17, align 8
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre95 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.4

.preheader.4:                                     ; preds = %82, %.preheader.3
  %86 = phi i32 [ %.pre95, %82 ], [ %77, %.preheader.3 ]
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 16), align 16, !tbaa !5
  %88 = srem i32 %86, %87
  %.not44.4 = icmp eq i32 %88, 0
  br i1 %.not44.4, label %89, label %.preheader.5

89:                                               ; preds = %.preheader.4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %90 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 4)
          to label %91 unwind label %57

91:                                               ; preds = %89
  %92 = extractvalue { ptr, i64 } %90, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i64 } %90, 1
  store i64 %93, ptr %17, align 8
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre96 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.5

.preheader.5:                                     ; preds = %91, %.preheader.4
  %95 = phi i32 [ %.pre96, %91 ], [ %86, %.preheader.4 ]
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 20), align 4, !tbaa !5
  %97 = srem i32 %95, %96
  %.not44.5 = icmp eq i32 %97, 0
  br i1 %.not44.5, label %98, label %.preheader.6

98:                                               ; preds = %.preheader.5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %99 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 5)
          to label %100 unwind label %57

100:                                              ; preds = %98
  %101 = extractvalue { ptr, i64 } %99, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i64 } %99, 1
  store i64 %102, ptr %17, align 8
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre97 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.6

.preheader.6:                                     ; preds = %100, %.preheader.5
  %104 = phi i32 [ %.pre97, %100 ], [ %95, %.preheader.5 ]
  %105 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 24), align 8, !tbaa !5
  %106 = srem i32 %104, %105
  %.not44.6 = icmp eq i32 %106, 0
  br i1 %.not44.6, label %107, label %.preheader.7

107:                                              ; preds = %.preheader.6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %108 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 6)
          to label %109 unwind label %57

109:                                              ; preds = %107
  %110 = extractvalue { ptr, i64 } %108, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i64 } %108, 1
  store i64 %111, ptr %17, align 8
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre98 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.7

.preheader.7:                                     ; preds = %109, %.preheader.6
  %113 = phi i32 [ %.pre98, %109 ], [ %104, %.preheader.6 ]
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 28), align 4, !tbaa !5
  %115 = srem i32 %113, %114
  %.not44.7 = icmp eq i32 %115, 0
  br i1 %.not44.7, label %116, label %.preheader.8

116:                                              ; preds = %.preheader.7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %117 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 7)
          to label %118 unwind label %57

118:                                              ; preds = %116
  %119 = extractvalue { ptr, i64 } %117, 0
  store ptr %119, ptr %7, align 8
  %120 = extractvalue { ptr, i64 } %117, 1
  store i64 %120, ptr %17, align 8
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre99 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.8

.preheader.8:                                     ; preds = %118, %.preheader.7
  %122 = phi i32 [ %.pre99, %118 ], [ %113, %.preheader.7 ]
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 32), align 16, !tbaa !5
  %124 = srem i32 %122, %123
  %.not44.8 = icmp eq i32 %124, 0
  br i1 %.not44.8, label %125, label %.preheader.9

125:                                              ; preds = %.preheader.8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %126 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 8)
          to label %127 unwind label %57

127:                                              ; preds = %125
  %128 = extractvalue { ptr, i64 } %126, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i64 } %126, 1
  store i64 %129, ptr %17, align 8
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre100 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.9

.preheader.9:                                     ; preds = %127, %.preheader.8
  %131 = phi i32 [ %.pre100, %127 ], [ %122, %.preheader.8 ]
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 36), align 4, !tbaa !5
  %133 = srem i32 %131, %132
  %.not44.9 = icmp eq i32 %133, 0
  br i1 %.not44.9, label %134, label %.preheader.10

134:                                              ; preds = %.preheader.9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %135 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 9)
          to label %136 unwind label %57

136:                                              ; preds = %134
  %137 = extractvalue { ptr, i64 } %135, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i64 } %135, 1
  store i64 %138, ptr %17, align 8
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre101 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.10

.preheader.10:                                    ; preds = %136, %.preheader.9
  %140 = phi i32 [ %.pre101, %136 ], [ %131, %.preheader.9 ]
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 40), align 8, !tbaa !5
  %142 = srem i32 %140, %141
  %.not44.10 = icmp eq i32 %142, 0
  br i1 %.not44.10, label %143, label %.preheader.11

143:                                              ; preds = %.preheader.10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %144 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 10)
          to label %145 unwind label %57

145:                                              ; preds = %143
  %146 = extractvalue { ptr, i64 } %144, 0
  store ptr %146, ptr %7, align 8
  %147 = extractvalue { ptr, i64 } %144, 1
  store i64 %147, ptr %17, align 8
  %148 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre102 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.11

.preheader.11:                                    ; preds = %145, %.preheader.10
  %149 = phi i32 [ %.pre102, %145 ], [ %140, %.preheader.10 ]
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 44), align 4, !tbaa !5
  %151 = srem i32 %149, %150
  %.not44.11 = icmp eq i32 %151, 0
  br i1 %.not44.11, label %152, label %.preheader.12

152:                                              ; preds = %.preheader.11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %153 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 11)
          to label %154 unwind label %57

154:                                              ; preds = %152
  %155 = extractvalue { ptr, i64 } %153, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i64 } %153, 1
  store i64 %156, ptr %17, align 8
  %157 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre103 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.12

.preheader.12:                                    ; preds = %154, %.preheader.11
  %158 = phi i32 [ %.pre103, %154 ], [ %149, %.preheader.11 ]
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 48), align 16, !tbaa !5
  %160 = srem i32 %158, %159
  %.not44.12 = icmp eq i32 %160, 0
  br i1 %.not44.12, label %161, label %.preheader.13

161:                                              ; preds = %.preheader.12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %162 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 12)
          to label %163 unwind label %57

163:                                              ; preds = %161
  %164 = extractvalue { ptr, i64 } %162, 0
  store ptr %164, ptr %7, align 8
  %165 = extractvalue { ptr, i64 } %162, 1
  store i64 %165, ptr %17, align 8
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre104 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.13

.preheader.13:                                    ; preds = %163, %.preheader.12
  %167 = phi i32 [ %.pre104, %163 ], [ %158, %.preheader.12 ]
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 52), align 4, !tbaa !5
  %169 = srem i32 %167, %168
  %.not44.13 = icmp eq i32 %169, 0
  br i1 %.not44.13, label %170, label %.preheader.14

170:                                              ; preds = %.preheader.13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %171 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 13)
          to label %172 unwind label %57

172:                                              ; preds = %170
  %173 = extractvalue { ptr, i64 } %171, 0
  store ptr %173, ptr %7, align 8
  %174 = extractvalue { ptr, i64 } %171, 1
  store i64 %174, ptr %17, align 8
  %175 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.pre105 = load i32, ptr %44, align 4, !tbaa !5
  br label %.preheader.14

.preheader.14:                                    ; preds = %172, %.preheader.13
  %176 = phi i32 [ %.pre105, %172 ], [ %167, %.preheader.13 ]
  %177 = load i32, ptr getelementptr inbounds (i8, ptr @primes, i64 56), align 8, !tbaa !5
  %178 = srem i32 %176, %177
  %.not44.14 = icmp eq i32 %178, 0
  br i1 %.not44.14, label %179, label %185

179:                                              ; preds = %.preheader.14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %180 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 14)
          to label %181 unwind label %57

181:                                              ; preds = %179
  %182 = extractvalue { ptr, i64 } %180, 0
  store ptr %182, ptr %7, align 8
  %183 = extractvalue { ptr, i64 } %180, 1
  store i64 %183, ptr %17, align 8
  %184 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %185

185:                                              ; preds = %181, %.preheader.14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %186 = load i32, ptr @n, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = icmp slt i64 %indvars.iv.next, %187
  br i1 %188, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge66:                                    ; preds = %._crit_edge63, %._crit_edge.thread, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  store ptr %5, ptr %11, align 8, !tbaa !11
  store ptr %1, ptr %18, align 8, !tbaa !11
  store ptr %10, ptr %19, align 8, !tbaa !11
  invoke void @"_ZNSt8functionIFviEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %215 unwind label %223

.lr.ph65:                                         ; preds = %._crit_edge, %._crit_edge63
  %189 = phi i32 [ %191, %._crit_edge63 ], [ %186, %._crit_edge ]
  %storemerge43.in58 = phi i32 [ %.pre-phi, %._crit_edge63 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %storemerge4359 = add nsw i32 %storemerge43.in58, 1
  store i32 %storemerge4359, ptr %9, align 4, !tbaa !5
  %190 = icmp slt i32 %storemerge4359, %189
  br i1 %190, label %.lr.ph62, label %._crit_edge63

._crit_edge63.loopexit:                           ; preds = %212
  %.pre107 = load i32, ptr %8, align 4, !tbaa !5
  %.pre109 = add nsw i32 %.pre107, 1
  br label %._crit_edge63

._crit_edge63:                                    ; preds = %._crit_edge63.loopexit, %.lr.ph65
  %.pre-phi = phi i32 [ %.pre109, %._crit_edge63.loopexit ], [ %storemerge4359, %.lr.ph65 ]
  %191 = phi i32 [ %213, %._crit_edge63.loopexit ], [ %189, %.lr.ph65 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  store i32 %.pre-phi, ptr %8, align 4, !tbaa !5
  %192 = icmp slt i32 %.pre-phi, %191
  br i1 %192, label %.lr.ph65, label %._crit_edge66, !llvm.loop !13

.lr.ph62:                                         ; preds = %.lr.ph65, %212
  %storemerge4360 = phi i32 [ %storemerge43, %212 ], [ %storemerge4359, %.lr.ph65 ]
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i32, ptr %34, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sext i32 %storemerge4360 to i64
  %198 = getelementptr inbounds i32, ptr %34, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %196, i32 noundef %199)
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %202, label %212

202:                                              ; preds = %.lr.ph62
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %204) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %205, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %206 unwind label %210

206:                                              ; preds = %202
  %207 = load i32, ptr %9, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %208) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %209, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %212 unwind label %210

210:                                              ; preds = %206, %202
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %344

212:                                              ; preds = %.lr.ph62, %206
  %storemerge43.in = load i32, ptr %9, align 4, !tbaa !5
  %storemerge43 = add nsw i32 %storemerge43.in, 1
  store i32 %storemerge43, ptr %9, align 4, !tbaa !5
  %213 = load i32, ptr @n, align 4, !tbaa !5
  %214 = icmp slt i32 %storemerge43, %213
  br i1 %214, label %.lr.ph62, label %._crit_edge63.loopexit, !llvm.loop !14

215:                                              ; preds = %._crit_edge66
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  invoke void @_ZNKSt8functionIFviEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
          to label %.preheader53 unwind label %225

.preheader53:                                     ; preds = %215
  %216 = load i32, ptr @n, align 4, !tbaa !5
  %217 = icmp sgt i32 %216, 0
  br i1 %217, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.preheader53, %229
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %229 ], [ 0, %.preheader53 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %218 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %indvars.iv82)
          to label %219 unwind label %227

219:                                              ; preds = %.lr.ph68
  %220 = extractvalue { ptr, i64 } %218, 0
  store ptr %220, ptr %12, align 8
  %221 = extractvalue { ptr, i64 } %218, 1
  store i64 %221, ptr %20, align 8
  %222 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %.pre108.pre = load i32, ptr @n, align 4, !tbaa !5
  br i1 %222, label %229, label %._crit_edge69.loopexit

223:                                              ; preds = %._crit_edge66
  %224 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %343

225:                                              ; preds = %215
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %342

227:                                              ; preds = %.lr.ph68
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %342

229:                                              ; preds = %219
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %230 = sext i32 %.pre108.pre to i64
  %231 = icmp slt i64 %indvars.iv.next83, %230
  br i1 %231, label %.lr.ph68, label %._crit_edge69.loopexit, !llvm.loop !15

._crit_edge69.loopexit:                           ; preds = %219, %229
  %.025.lcssa.ph.in = phi i64 [ %indvars.iv.next83, %229 ], [ %indvars.iv82, %219 ]
  %.025.lcssa.ph = trunc i64 %.025.lcssa.ph.in to i32
  br label %._crit_edge69

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit, %.preheader53
  %232 = phi i32 [ %216, %.preheader53 ], [ %.pre108.pre, %._crit_edge69.loopexit ]
  %.025.lcssa = phi i32 [ 0, %.preheader53 ], [ %.025.lcssa.ph, %._crit_edge69.loopexit ]
  %233 = icmp slt i32 %.025.lcssa, %232
  br i1 %233, label %.preheader52.preheader, label %314

.preheader52.preheader:                           ; preds = %._crit_edge69
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %234 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 0)
          to label %235 unwind label %239

235:                                              ; preds = %.preheader52.preheader
  %236 = extractvalue { ptr, i64 } %234, 0
  store ptr %236, ptr %13, align 8
  %237 = extractvalue { ptr, i64 } %234, 1
  store i64 %237, ptr %21, align 8
  %238 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %238, label %.preheader52.1, label %311

239:                                              ; preds = %.preheader52.14, %.preheader52.13, %.preheader52.12, %.preheader52.11, %.preheader52.10, %.preheader52.9, %.preheader52.8, %.preheader52.7, %.preheader52.6, %.preheader52.5, %.preheader52.4, %.preheader52.3, %.preheader52.2, %.preheader52.1, %.preheader52.preheader
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %342

.preheader52.1:                                   ; preds = %235
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %241 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 1)
          to label %242 unwind label %239

242:                                              ; preds = %.preheader52.1
  %243 = extractvalue { ptr, i64 } %241, 0
  store ptr %243, ptr %13, align 8
  %244 = extractvalue { ptr, i64 } %241, 1
  store i64 %244, ptr %21, align 8
  %245 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %245, label %.preheader52.2, label %311

.preheader52.2:                                   ; preds = %242
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %246 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 2)
          to label %247 unwind label %239

247:                                              ; preds = %.preheader52.2
  %248 = extractvalue { ptr, i64 } %246, 0
  store ptr %248, ptr %13, align 8
  %249 = extractvalue { ptr, i64 } %246, 1
  store i64 %249, ptr %21, align 8
  %250 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %250, label %.preheader52.3, label %311

.preheader52.3:                                   ; preds = %247
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %251 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 3)
          to label %252 unwind label %239

252:                                              ; preds = %.preheader52.3
  %253 = extractvalue { ptr, i64 } %251, 0
  store ptr %253, ptr %13, align 8
  %254 = extractvalue { ptr, i64 } %251, 1
  store i64 %254, ptr %21, align 8
  %255 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %255, label %.preheader52.4, label %311

.preheader52.4:                                   ; preds = %252
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %256 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 4)
          to label %257 unwind label %239

257:                                              ; preds = %.preheader52.4
  %258 = extractvalue { ptr, i64 } %256, 0
  store ptr %258, ptr %13, align 8
  %259 = extractvalue { ptr, i64 } %256, 1
  store i64 %259, ptr %21, align 8
  %260 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %260, label %.preheader52.5, label %311

.preheader52.5:                                   ; preds = %257
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %261 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 5)
          to label %262 unwind label %239

262:                                              ; preds = %.preheader52.5
  %263 = extractvalue { ptr, i64 } %261, 0
  store ptr %263, ptr %13, align 8
  %264 = extractvalue { ptr, i64 } %261, 1
  store i64 %264, ptr %21, align 8
  %265 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %265, label %.preheader52.6, label %311

.preheader52.6:                                   ; preds = %262
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %266 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 6)
          to label %267 unwind label %239

267:                                              ; preds = %.preheader52.6
  %268 = extractvalue { ptr, i64 } %266, 0
  store ptr %268, ptr %13, align 8
  %269 = extractvalue { ptr, i64 } %266, 1
  store i64 %269, ptr %21, align 8
  %270 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %270, label %.preheader52.7, label %311

.preheader52.7:                                   ; preds = %267
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %271 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 7)
          to label %272 unwind label %239

272:                                              ; preds = %.preheader52.7
  %273 = extractvalue { ptr, i64 } %271, 0
  store ptr %273, ptr %13, align 8
  %274 = extractvalue { ptr, i64 } %271, 1
  store i64 %274, ptr %21, align 8
  %275 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %275, label %.preheader52.8, label %311

.preheader52.8:                                   ; preds = %272
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %276 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 8)
          to label %277 unwind label %239

277:                                              ; preds = %.preheader52.8
  %278 = extractvalue { ptr, i64 } %276, 0
  store ptr %278, ptr %13, align 8
  %279 = extractvalue { ptr, i64 } %276, 1
  store i64 %279, ptr %21, align 8
  %280 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %280, label %.preheader52.9, label %311

.preheader52.9:                                   ; preds = %277
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %281 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 9)
          to label %282 unwind label %239

282:                                              ; preds = %.preheader52.9
  %283 = extractvalue { ptr, i64 } %281, 0
  store ptr %283, ptr %13, align 8
  %284 = extractvalue { ptr, i64 } %281, 1
  store i64 %284, ptr %21, align 8
  %285 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %285, label %.preheader52.10, label %311

.preheader52.10:                                  ; preds = %282
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %286 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 10)
          to label %287 unwind label %239

287:                                              ; preds = %.preheader52.10
  %288 = extractvalue { ptr, i64 } %286, 0
  store ptr %288, ptr %13, align 8
  %289 = extractvalue { ptr, i64 } %286, 1
  store i64 %289, ptr %21, align 8
  %290 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %290, label %.preheader52.11, label %311

.preheader52.11:                                  ; preds = %287
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %291 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 11)
          to label %292 unwind label %239

292:                                              ; preds = %.preheader52.11
  %293 = extractvalue { ptr, i64 } %291, 0
  store ptr %293, ptr %13, align 8
  %294 = extractvalue { ptr, i64 } %291, 1
  store i64 %294, ptr %21, align 8
  %295 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %295, label %.preheader52.12, label %311

.preheader52.12:                                  ; preds = %292
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %296 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 12)
          to label %297 unwind label %239

297:                                              ; preds = %.preheader52.12
  %298 = extractvalue { ptr, i64 } %296, 0
  store ptr %298, ptr %13, align 8
  %299 = extractvalue { ptr, i64 } %296, 1
  store i64 %299, ptr %21, align 8
  %300 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %300, label %.preheader52.13, label %311

.preheader52.13:                                  ; preds = %297
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %301 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 13)
          to label %302 unwind label %239

302:                                              ; preds = %.preheader52.13
  %303 = extractvalue { ptr, i64 } %301, 0
  store ptr %303, ptr %13, align 8
  %304 = extractvalue { ptr, i64 } %301, 1
  store i64 %304, ptr %21, align 8
  %305 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br i1 %305, label %.preheader52.14, label %311

.preheader52.14:                                  ; preds = %302
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %306 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef 14)
          to label %307 unwind label %239

307:                                              ; preds = %.preheader52.14
  %308 = extractvalue { ptr, i64 } %306, 0
  store ptr %308, ptr %13, align 8
  %309 = extractvalue { ptr, i64 } %306, 1
  store i64 %309, ptr %21, align 8
  %310 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  %spec.select = select i1 %310, i64 15, i64 14
  br label %311

311:                                              ; preds = %307, %302, %297, %292, %287, %282, %277, %272, %267, %262, %257, %252, %247, %242, %235
  %.1.lcssa = phi i64 [ 0, %235 ], [ 1, %242 ], [ 2, %247 ], [ 3, %252 ], [ 4, %257 ], [ 5, %262 ], [ 6, %267 ], [ 7, %272 ], [ 8, %277 ], [ 9, %282 ], [ 10, %287 ], [ 11, %292 ], [ 12, %297 ], [ 13, %302 ], [ %spec.select, %307 ]
  %312 = getelementptr inbounds [15 x i32], ptr @primes, i64 0, i64 %.1.lcssa
  %313 = load i32, ptr %312, align 4, !tbaa !5
  store i32 %313, ptr %34, align 16, !tbaa !5
  br label %314

314:                                              ; preds = %311, %._crit_edge69
  %.028 = phi i32 [ 1, %311 ], [ 0, %._crit_edge69 ]
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.028)
          to label %316 unwind label %322

316:                                              ; preds = %314
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader51 unwind label %322

.preheader51:                                     ; preds = %316
  %318 = load i32, ptr @n, align 4, !tbaa !5
  %319 = icmp sgt i32 %318, 0
  br i1 %319, label %.lr.ph74, label %._crit_edge75

._crit_edge75:                                    ; preds = %336, %.preheader51
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.stackrestore.p0(ptr %33)
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  %320 = load i32, ptr @t, align 4, !tbaa !5
  %321 = add nsw i32 %320, -1
  store i32 %321, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %320, 0
  br i1 %.not, label %._crit_edge79, label %22, !llvm.loop !16

322:                                              ; preds = %316, %314
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %342

.lr.ph74:                                         ; preds = %.preheader51, %336
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %336 ], [ 0, %.preheader51 ]
  %324 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv89
  %325 = load i32, ptr %324, align 4, !tbaa !5
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %325)
          to label %327 unwind label %340

327:                                              ; preds = %.lr.ph74
  %328 = load i32, ptr @n, align 4, !tbaa !5
  %329 = add nsw i32 %328, -1
  %330 = zext i32 %329 to i64
  %331 = icmp eq i64 %indvars.iv89, %330
  %332 = zext i1 %331 to i64
  %333 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %332
  %334 = load i8, ptr %333, align 1, !tbaa !17
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %326, i8 noundef signext %334)
          to label %336 unwind label %340

336:                                              ; preds = %327
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %337 = load i32, ptr @n, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = icmp slt i64 %indvars.iv.next90, %338
  br i1 %339, label %.lr.ph74, label %._crit_edge75, !llvm.loop !18

340:                                              ; preds = %327, %.lr.ph74
  %341 = landingpad { ptr, i32 }
          cleanup
  br label %342

342:                                              ; preds = %227, %239, %322, %340, %225
  %.pn.pn = phi { ptr, i32 } [ %226, %225 ], [ %341, %340 ], [ %323, %322 ], [ %240, %239 ], [ %228, %227 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %343

343:                                              ; preds = %342, %223
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %342 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %344

344:                                              ; preds = %49, %57, %343, %210
  %.pn45.pn = phi { ptr, i32 } [ %211, %210 ], [ %.pn.pn.pn, %343 ], [ %58, %57 ], [ %50, %49 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %345

345:                                              ; preds = %344, %42
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %344 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  br label %346

346:                                              ; preds = %345, %40
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %345 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br label %347

347:                                              ; preds = %346, %38
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %346 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn

._crit_edge79:                                    ; preds = %._crit_edge75, %0
  ret i32 0
}

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) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #3

; 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 #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 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)) #6

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

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

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


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