; LLVM IR from kimwalisch/primesieve :: test (prev_prime1)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.primesieve::iterator" = type { i64, i64, i64, i64, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5checkb(i1 noundef zeroext) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.primesieve::iterator", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #6
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @_ZN10primesieve15generate_primesISt6vectorImSaImEEEEvmPT_(i64 noundef 100000, ptr noundef %2)
          to label %19 unwind label %27

19:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
  call void @_ZN10primesieve8iteratorC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %20 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %21 = sub i64 %20, 1
  store i64 %21, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %22, ptr %8, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %83, %19
  %24 = load i64, ptr %8, align 8, !tbaa !5
  %25 = icmp ugt i64 %24, 0
  br i1 %25, label %31, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %90

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %3, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %4, align 4
  br label %306

31:                                               ; preds = %23
  %32 = load i64, ptr %8, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #6
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef %34, i64 noundef %35) #6
  %36 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %37 unwind label %86

37:                                               ; preds = %31
  store i64 %36, ptr %7, align 8, !tbaa !5
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %39 unwind label %86

39:                                               ; preds = %37
  %40 = load i64, ptr %8, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %40) #6
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %38, i64 noundef %42)
          to label %44 unwind label %86

44:                                               ; preds = %39
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @.str.5)
          to label %46 unwind label %86

46:                                               ; preds = %44
  %47 = load i64, ptr %7, align 8, !tbaa !5
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %47)
          to label %49 unwind label %86

49:                                               ; preds = %46
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = load i64, ptr %8, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %51) #6
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = icmp eq i64 %50, %53
  invoke void @_Z5checkb(i1 noundef zeroext %54)
          to label %55 unwind label %86

55:                                               ; preds = %49
  %56 = load i64, ptr %8, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %56) #6
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = sub i64 %58, 1
  %60 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef %59, i64 noundef %60) #6
  %61 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %62 unwind label %86

62:                                               ; preds = %55
  store i64 %61, ptr %7, align 8, !tbaa !5
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %64 unwind label %86

64:                                               ; preds = %62
  %65 = load i64, ptr %8, align 8, !tbaa !5
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %65) #6
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %68 = sub i64 %67, 1
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %68)
          to label %70 unwind label %86

70:                                               ; preds = %64
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef @.str.5)
          to label %72 unwind label %86

72:                                               ; preds = %70
  %73 = load i64, ptr %7, align 8, !tbaa !5
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %71, i64 noundef %73)
          to label %75 unwind label %86

75:                                               ; preds = %72
  %76 = load i64, ptr %7, align 8, !tbaa !5
  %77 = load i64, ptr %8, align 8, !tbaa !5
  %78 = sub i64 %77, 1
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %78) #6
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = icmp eq i64 %76, %80
  invoke void @_Z5checkb(i1 noundef zeroext %81)
          to label %82 unwind label %86

82:                                               ; preds = %75
  br label %83

83:                                               ; preds = %82
  %84 = load i64, ptr %8, align 8, !tbaa !5
  %85 = add i64 %84, -1
  store i64 %85, ptr %8, align 8, !tbaa !5
  br label %23, !llvm.loop !9

86:                                               ; preds = %75, %72, %70, %64, %62, %55, %49, %46, %44, %39, %37, %31
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %3, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %305

90:                                               ; preds = %26
  %91 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef 100000000, i64 noundef %91) #6
  %92 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %93 unwind label %104

93:                                               ; preds = %90
  store i64 %92, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %103, %93
  %95 = load i64, ptr %7, align 8, !tbaa !5
  %96 = icmp ugt i64 %95, 0
  br i1 %96, label %97, label %112

97:                                               ; preds = %94
  %98 = load i64, ptr %7, align 8, !tbaa !5
  %99 = load i64, ptr %9, align 8, !tbaa !5
  %100 = add i64 %99, %98
  store i64 %100, ptr %9, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %97
  %102 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %103 unwind label %108

103:                                              ; preds = %101
  store i64 %102, ptr %7, align 8, !tbaa !5
  br label %94, !llvm.loop !11

104:                                              ; preds = %90
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %3, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %4, align 4
  br label %305

108:                                              ; preds = %300, %298, %296, %293, %290, %288, %286, %284, %282, %138, %135, %133, %130, %120, %117, %114, %112, %101
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %3, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %4, align 4
  br label %304

112:                                              ; preds = %94
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %114 unwind label %108

114:                                              ; preds = %112
  %115 = load i64, ptr %9, align 8, !tbaa !5
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %113, i64 noundef %115)
          to label %117 unwind label %108

117:                                              ; preds = %114
  %118 = load i64, ptr %9, align 8, !tbaa !5
  %119 = icmp eq i64 %118, 279209790387276
  invoke void @_Z5checkb(i1 noundef zeroext %119)
          to label %120 unwind label %108

120:                                              ; preds = %117
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef 100000000, i64 noundef 1000000) #6
  %121 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %122 unwind label %108

122:                                              ; preds = %120
  store i64 %121, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %132, %122
  %124 = load i64, ptr %7, align 8, !tbaa !5
  %125 = icmp ugt i64 %124, 0
  br i1 %125, label %126, label %133

126:                                              ; preds = %123
  %127 = load i64, ptr %7, align 8, !tbaa !5
  %128 = load i64, ptr %9, align 8, !tbaa !5
  %129 = add i64 %128, %127
  store i64 %129, ptr %9, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %126
  %131 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %132 unwind label %108

132:                                              ; preds = %130
  store i64 %131, ptr %7, align 8, !tbaa !5
  br label %123, !llvm.loop !12

133:                                              ; preds = %123
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %135 unwind label %108

135:                                              ; preds = %133
  %136 = load i64, ptr %9, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %134, i64 noundef %136)
          to label %138 unwind label %108

138:                                              ; preds = %135
  %139 = load i64, ptr %9, align 8, !tbaa !5
  %140 = icmp eq i64 %139, 279209790387276
  invoke void @_Z5checkb(i1 noundef zeroext %140)
          to label %141 unwind label %108

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %142

142:                                              ; preds = %157, %141
  %143 = load i64, ptr %10, align 8, !tbaa !5
  %144 = icmp ult i64 %143, 1000
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %164

146:                                              ; preds = %142
  %147 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %148 unwind label %160

148:                                              ; preds = %146
  store i64 %147, ptr %7, align 8, !tbaa !5
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %150 unwind label %160

150:                                              ; preds = %148
  %151 = load i64, ptr %7, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %149, i64 noundef %151)
          to label %153 unwind label %160

153:                                              ; preds = %150
  %154 = load i64, ptr %7, align 8, !tbaa !5
  %155 = icmp eq i64 %154, 0
  invoke void @_Z5checkb(i1 noundef zeroext %155)
          to label %156 unwind label %160

156:                                              ; preds = %153
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %10, align 8, !tbaa !5
  %159 = add i64 %158, 1
  store i64 %159, ptr %10, align 8, !tbaa !5
  br label %142, !llvm.loop !13

160:                                              ; preds = %153, %150, %148, %146
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %3, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %304

164:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %189, %164
  %166 = load i64, ptr %11, align 8, !tbaa !5
  %167 = icmp ult i64 %166, 1000
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %196

169:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %170 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %170, ptr %12, align 8, !tbaa !5
  %171 = invoke noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %172 unwind label %192

172:                                              ; preds = %169
  store i64 %171, ptr %7, align 8, !tbaa !5
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %174 unwind label %192

174:                                              ; preds = %172
  %175 = load i64, ptr %12, align 8, !tbaa !5
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %173, i64 noundef %175)
          to label %177 unwind label %192

177:                                              ; preds = %174
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef @.str.5)
          to label %179 unwind label %192

179:                                              ; preds = %177
  %180 = load i64, ptr %7, align 8, !tbaa !5
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %178, i64 noundef %180)
          to label %182 unwind label %192

182:                                              ; preds = %179
  %183 = load i64, ptr %7, align 8, !tbaa !5
  %184 = load i64, ptr %11, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %184) #6
  %186 = load i64, ptr %185, align 8, !tbaa !5
  %187 = icmp eq i64 %183, %186
  invoke void @_Z5checkb(i1 noundef zeroext %187)
          to label %188 unwind label %192

188:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %189

189:                                              ; preds = %188
  %190 = load i64, ptr %11, align 8, !tbaa !5
  %191 = add i64 %190, 1
  store i64 %191, ptr %11, align 8, !tbaa !5
  br label %165, !llvm.loop !14

192:                                              ; preds = %182, %179, %177, %174, %172, %169
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %3, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %304

196:                                              ; preds = %168
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %198 = load i64, ptr %197, align 8, !tbaa !5
  %199 = sub i64 %198, 1
  %200 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef %199, i64 noundef %200) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %201

201:                                              ; preds = %234, %196
  %202 = load i64, ptr %13, align 8, !tbaa !5
  %203 = icmp ult i64 %202, 1000
  br i1 %203, label %205, label %204

204:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %246

205:                                              ; preds = %201
  %206 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %207 unwind label %237

207:                                              ; preds = %205
  store i64 %206, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %208 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %209 = load i64, ptr %13, align 8, !tbaa !5
  %210 = add i64 %209, 1
  %211 = sub i64 %208, %210
  store i64 %211, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %212 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %213 = load i64, ptr %13, align 8, !tbaa !5
  %214 = add i64 %213, 2
  %215 = sub i64 %212, %214
  store i64 %215, ptr %15, align 8, !tbaa !5
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %217 unwind label %241

217:                                              ; preds = %207
  %218 = load i64, ptr %14, align 8, !tbaa !5
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %218) #6
  %220 = load i64, ptr %219, align 8, !tbaa !5
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %216, i64 noundef %220)
          to label %222 unwind label %241

222:                                              ; preds = %217
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @.str.5)
          to label %224 unwind label %241

224:                                              ; preds = %222
  %225 = load i64, ptr %7, align 8, !tbaa !5
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %223, i64 noundef %225)
          to label %227 unwind label %241

227:                                              ; preds = %224
  %228 = load i64, ptr %7, align 8, !tbaa !5
  %229 = load i64, ptr %15, align 8, !tbaa !5
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %229) #6
  %231 = load i64, ptr %230, align 8, !tbaa !5
  %232 = icmp eq i64 %228, %231
  invoke void @_Z5checkb(i1 noundef zeroext %232)
          to label %233 unwind label %241

233:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %234

234:                                              ; preds = %233
  %235 = load i64, ptr %13, align 8, !tbaa !5
  %236 = add i64 %235, 1
  store i64 %236, ptr %13, align 8, !tbaa !5
  br label %201, !llvm.loop !15

237:                                              ; preds = %205
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %3, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %4, align 4
  br label %245

241:                                              ; preds = %227, %224, %222, %217, %207
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %3, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %245

245:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %304

246:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %247

247:                                              ; preds = %275, %246
  %248 = load i64, ptr %16, align 8, !tbaa !5
  %249 = icmp ult i64 %248, 1000
  br i1 %249, label %251, label %250

250:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %282

251:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %252 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %252, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %253 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %254 = sub i64 %253, 1000
  %255 = load i64, ptr %16, align 8, !tbaa !5
  %256 = add i64 %254, %255
  store i64 %256, ptr %18, align 8, !tbaa !5
  %257 = invoke noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %258 unwind label %278

258:                                              ; preds = %251
  store i64 %257, ptr %7, align 8, !tbaa !5
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %260 unwind label %278

260:                                              ; preds = %258
  %261 = load i64, ptr %17, align 8, !tbaa !5
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %259, i64 noundef %261)
          to label %263 unwind label %278

263:                                              ; preds = %260
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %262, ptr noundef @.str.5)
          to label %265 unwind label %278

265:                                              ; preds = %263
  %266 = load i64, ptr %7, align 8, !tbaa !5
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %264, i64 noundef %266)
          to label %268 unwind label %278

268:                                              ; preds = %265
  %269 = load i64, ptr %7, align 8, !tbaa !5
  %270 = load i64, ptr %18, align 8, !tbaa !5
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %270) #6
  %272 = load i64, ptr %271, align 8, !tbaa !5
  %273 = icmp eq i64 %269, %272
  invoke void @_Z5checkb(i1 noundef zeroext %273)
          to label %274 unwind label %278

274:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %275

275:                                              ; preds = %274
  %276 = load i64, ptr %16, align 8, !tbaa !5
  %277 = add i64 %276, 1
  store i64 %277, ptr %16, align 8, !tbaa !5
  br label %247, !llvm.loop !16

278:                                              ; preds = %268, %265, %263, %260, %258, %251
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %3, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %304

282:                                              ; preds = %250
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %5, i64 noundef -1, i64 noundef -59) #6
  %283 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %284 unwind label %108

284:                                              ; preds = %282
  store i64 %283, ptr %7, align 8, !tbaa !5
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %286 unwind label %108

286:                                              ; preds = %284
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) %285, i64 noundef -1)
          to label %288 unwind label %108

288:                                              ; preds = %286
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @.str.5)
          to label %290 unwind label %108

290:                                              ; preds = %288
  %291 = load i64, ptr %7, align 8, !tbaa !5
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %289, i64 noundef %291)
          to label %293 unwind label %108

293:                                              ; preds = %290
  %294 = load i64, ptr %7, align 8, !tbaa !5
  %295 = icmp eq i64 %294, -59
  invoke void @_Z5checkb(i1 noundef zeroext %295)
          to label %296 unwind label %108

296:                                              ; preds = %293
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %298 unwind label %108

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %300 unwind label %108

300:                                              ; preds = %298
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %302 unwind label %108

302:                                              ; preds = %300
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  %303 = load i32, ptr %1, align 4
  ret i32 %303

304:                                              ; preds = %278, %245, %192, %160, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %305

305:                                              ; preds = %304, %104, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  br label %306

306:                                              ; preds = %305, %27
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #6
  br label %307

307:                                              ; preds = %306
  %308 = load ptr, ptr %3, align 8
  %309 = load i32, ptr %4, align 4
  %310 = insertvalue { ptr, i32 } poison, ptr %308, 0
  %311 = insertvalue { ptr, i32 } %310, i32 %309, 1
  resume { ptr, i32 } %311
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10primesieve15generate_primesISt6vectorImSaImEEEEvmPT_(i64 noundef, ptr noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN10primesieve8iteratorC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5

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

; Function Attrs: nounwind
declare void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.primesieve::iterator" = type { i64, i64, i64, i64, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5checkb(i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"struct.primesieve::iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @_ZNSt6vectorImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  invoke void @_ZN10primesieve15generate_primesISt6vectorImSaImEEEEvmPT_(i64 noundef 100000, ptr noundef nonnull %1)
          to label %3 unwind label %9

3:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @_ZN10primesieve8iteratorC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  %4 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br label %5

5:                                                ; preds = %47, %3
  %.064.in = phi i64 [ %4, %3 ], [ %.064, %47 ]
  %.064 = add i64 %.064.in, -1
  %.not = icmp eq i64 %.064, 0
  br i1 %.not, label %6, label %11

6:                                                ; preds = %5
  %7 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef 100000000, i64 noundef %7) #6
  %8 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %.preheader80 unwind label %57

.preheader80:                                     ; preds = %6
  %.not6990 = icmp eq i64 %8, 0
  br i1 %.not6990, label %._crit_edge, label %.lr.ph

9:                                                ; preds = %0
  %10 = landingpad { ptr, i32 }
          cleanup
  br label %172

11:                                               ; preds = %5
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064) #6
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %13, i64 noundef %14) #6
  %15 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %16 unwind label %52

16:                                               ; preds = %11
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %18 unwind label %52

18:                                               ; preds = %16
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064) #6
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %20)
          to label %22 unwind label %52

22:                                               ; preds = %18
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.5)
          to label %24 unwind label %52

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %23, i64 noundef %15)
          to label %26 unwind label %52

26:                                               ; preds = %24
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064) #6
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = icmp eq i64 %15, %28
  invoke void @_Z5checkb(i1 noundef zeroext %29)
          to label %30 unwind label %52

30:                                               ; preds = %26
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064) #6
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = add i64 %32, -1
  %34 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %33, i64 noundef %34) #6
  %35 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %36 unwind label %52

36:                                               ; preds = %30
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %38 unwind label %52

38:                                               ; preds = %36
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.064) #6
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = add i64 %40, -1
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %41)
          to label %43 unwind label %52

43:                                               ; preds = %38
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @.str.5)
          to label %45 unwind label %52

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %44, i64 noundef %35)
          to label %47 unwind label %52

47:                                               ; preds = %45
  %48 = add i64 %.064.in, -2
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %48) #6
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = icmp eq i64 %35, %50
  invoke void @_Z5checkb(i1 noundef zeroext %51)
          to label %5 unwind label %52, !llvm.loop !9

52:                                               ; preds = %47, %45, %43, %38, %36, %30, %26, %24, %22, %18, %16, %11
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph:                                           ; preds = %.preheader80, %55
  %.05992 = phi i64 [ %54, %55 ], [ %8, %.preheader80 ]
  %.06791 = phi i64 [ %56, %55 ], [ 0, %.preheader80 ]
  %54 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %55 unwind label %.loopexit.split-lp.loopexit

55:                                               ; preds = %.lr.ph
  %56 = add i64 %.05992, %.06791
  %.not69 = icmp eq i64 %54, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph, !llvm.loop !11

57:                                               ; preds = %6
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph96
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph
  %lpad.loopexit81 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %169, %167, %165, %163, %161, %159, %157, %155, %133, %72, %70, %._crit_edge97, %64, %62, %60, %._crit_edge
  %lpad.loopexit.split-lp82 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge:                                      ; preds = %55, %.preheader80
  %.067.lcssa = phi i64 [ 0, %.preheader80 ], [ %56, %55 ]
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %60 unwind label %.loopexit.split-lp.loopexit.split-lp

60:                                               ; preds = %._crit_edge
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %59, i64 noundef %.067.lcssa)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp

62:                                               ; preds = %60
  %63 = icmp eq i64 %.067.lcssa, 279209790387276
  invoke void @_Z5checkb(i1 noundef zeroext %63)
          to label %64 unwind label %.loopexit.split-lp.loopexit.split-lp

64:                                               ; preds = %62
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef 100000000, i64 noundef 1000000) #6
  %65 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %.preheader79 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader79:                                     ; preds = %64
  %.not7093 = icmp eq i64 %65, 0
  br i1 %.not7093, label %._crit_edge97, label %.lr.ph96

.lr.ph96:                                         ; preds = %.preheader79, %67
  %.16095 = phi i64 [ %66, %67 ], [ %65, %.preheader79 ]
  %.16894 = phi i64 [ %68, %67 ], [ 0, %.preheader79 ]
  %66 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %67 unwind label %.loopexit

67:                                               ; preds = %.lr.ph96
  %68 = add i64 %.16095, %.16894
  %.not70 = icmp eq i64 %66, 0
  br i1 %.not70, label %._crit_edge97, label %.lr.ph96, !llvm.loop !12

._crit_edge97:                                    ; preds = %67, %.preheader79
  %.168.lcssa = phi i64 [ 0, %.preheader79 ], [ %68, %67 ]
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %70 unwind label %.loopexit.split-lp.loopexit.split-lp

70:                                               ; preds = %._crit_edge97
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %69, i64 noundef %.168.lcssa)
          to label %72 unwind label %.loopexit.split-lp.loopexit.split-lp

72:                                               ; preds = %70
  %73 = icmp eq i64 %.168.lcssa, 279209790387276
  invoke void @_Z5checkb(i1 noundef zeroext %73)
          to label %.preheader78 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader78:                                     ; preds = %72, %81
  %.06699 = phi i64 [ %82, %81 ], [ 0, %72 ]
  %74 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %75 unwind label %83

75:                                               ; preds = %.preheader78
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %77 unwind label %83

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %76, i64 noundef %74)
          to label %79 unwind label %83

79:                                               ; preds = %77
  %80 = icmp eq i64 %74, 0
  invoke void @_Z5checkb(i1 noundef zeroext %80)
          to label %81 unwind label %83

81:                                               ; preds = %79
  %82 = add nuw nsw i64 %.06699, 1
  %exitcond.not = icmp eq i64 %82, 1000
  br i1 %exitcond.not, label %.preheader77, label %.preheader78, !llvm.loop !13

83:                                               ; preds = %79, %77, %75, %.preheader78
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

85:                                               ; preds = %103
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = add i64 %87, -1
  %89 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #6
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef %88, i64 noundef %89) #6
  br label %108

.preheader77:                                     ; preds = %81, %103
  %.362101 = phi i64 [ %90, %103 ], [ %74, %81 ]
  %.065100 = phi i64 [ %104, %103 ], [ 0, %81 ]
  %90 = invoke noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %91 unwind label %105

91:                                               ; preds = %.preheader77
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %93 unwind label %105

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %.362101)
          to label %95 unwind label %105

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @.str.5)
          to label %97 unwind label %105

97:                                               ; preds = %95
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %96, i64 noundef %90)
          to label %99 unwind label %105

99:                                               ; preds = %97
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.065100) #6
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = icmp eq i64 %90, %101
  invoke void @_Z5checkb(i1 noundef zeroext %102)
          to label %103 unwind label %105

103:                                              ; preds = %99
  %104 = add nuw nsw i64 %.065100, 1
  %exitcond108.not = icmp eq i64 %104, 1000
  br i1 %exitcond108.not, label %85, label %.preheader77, !llvm.loop !14

105:                                              ; preds = %99, %97, %95, %93, %91, %.preheader77
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

107:                                              ; preds = %125
  %exitcond109.not = icmp eq i64 %112, 1000
  br i1 %exitcond109.not, label %.preheader, label %108, !llvm.loop !15

108:                                              ; preds = %85, %107
  %.063102 = phi i64 [ 0, %85 ], [ %112, %107 ]
  %109 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %110 unwind label %129

110:                                              ; preds = %108
  %111 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %112 = add nuw nsw i64 %.063102, 1
  %113 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %reass.sub = sub i64 %113, %.063102
  %114 = add i64 %reass.sub, -2
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %116 unwind label %131

116:                                              ; preds = %110
  %117 = sub i64 %111, %112
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %117) #6
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %115, i64 noundef %119)
          to label %121 unwind label %131

121:                                              ; preds = %116
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @.str.5)
          to label %123 unwind label %131

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %122, i64 noundef %109)
          to label %125 unwind label %131

125:                                              ; preds = %123
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %114) #6
  %127 = load i64, ptr %126, align 8, !tbaa !5
  %128 = icmp eq i64 %109, %127
  invoke void @_Z5checkb(i1 noundef zeroext %128)
          to label %107 unwind label %131, !llvm.loop !15

129:                                              ; preds = %108
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

131:                                              ; preds = %125, %123, %121, %116, %110
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

133:                                              ; preds = %151
  call void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48) %2, i64 noundef -1, i64 noundef -59) #6
  %134 = invoke noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %155 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader:                                       ; preds = %107, %151
  %.054104 = phi i64 [ %152, %151 ], [ 0, %107 ]
  %.5103 = phi i64 [ %138, %151 ], [ %109, %107 ]
  %135 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %136 = add nuw nsw i64 %.054104, -1000
  %137 = add i64 %136, %135
  %138 = invoke noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %139 unwind label %153

139:                                              ; preds = %.preheader
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %141 unwind label %153

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %140, i64 noundef %.5103)
          to label %143 unwind label %153

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @.str.5)
          to label %145 unwind label %153

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %144, i64 noundef %138)
          to label %147 unwind label %153

147:                                              ; preds = %145
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %137) #6
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = icmp eq i64 %138, %149
  invoke void @_Z5checkb(i1 noundef zeroext %150)
          to label %151 unwind label %153

151:                                              ; preds = %147
  %152 = add nuw nsw i64 %.054104, 1
  %exitcond110.not = icmp eq i64 %152, 1000
  br i1 %exitcond110.not, label %133, label %.preheader, !llvm.loop !16

153:                                              ; preds = %147, %145, %143, %141, %139, %.preheader
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

155:                                              ; preds = %133
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %157 unwind label %.loopexit.split-lp.loopexit.split-lp

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEy(ptr noundef nonnull align 8 dereferenceable(8) %156, i64 noundef -1)
          to label %159 unwind label %.loopexit.split-lp.loopexit.split-lp

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @.str.5)
          to label %161 unwind label %.loopexit.split-lp.loopexit.split-lp

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %160, i64 noundef %134)
          to label %163 unwind label %.loopexit.split-lp.loopexit.split-lp

163:                                              ; preds = %161
  %164 = icmp eq i64 %134, -59
  invoke void @_Z5checkb(i1 noundef zeroext %164)
          to label %165 unwind label %.loopexit.split-lp.loopexit.split-lp

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %167 unwind label %.loopexit.split-lp.loopexit.split-lp

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
          to label %169 unwind label %.loopexit.split-lp.loopexit.split-lp

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %171 unwind label %.loopexit.split-lp.loopexit.split-lp

171:                                              ; preds = %169
  call void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret i32 0

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %83, %105, %153, %131, %129, %57, %52
  %.pn74 = phi { ptr, i32 } [ %53, %52 ], [ %58, %57 ], [ %84, %83 ], [ %106, %105 ], [ %154, %153 ], [ %132, %131 ], [ %130, %129 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit81, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp82, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  br label %172

172:                                              ; preds = %.loopexit.split-lp, %9
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %.loopexit.split-lp ], [ %10, %9 ]
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn74.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10primesieve15generate_primesISt6vectorImSaImEEEEvmPT_(i64 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN10primesieve8iteratorC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5

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

; Function Attrs: nounwind
declare void @_ZN10primesieve8iterator7jump_toEmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10primesieve8iterator10prev_primeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10primesieve8iterator10next_primeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN10primesieve8iteratorD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5

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

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

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

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


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