; LLVM IR from kimwalisch/primesieve :: src/PreSieve.ll (ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm)

; 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.primesieve::Array" = type { [16 x %"class.std::initializer_list"] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.primesieve::Array.0" = type { [8 x i8] }

@_ZN12_GLOBAL__N_114preSieveTablesE = external hidden constant %"class.primesieve::Array", align 8
@__const._ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm.primeBits = external hidden unnamed_addr constant %"class.primesieve::Array.0", align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, 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
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.primesieve::Array.0", align 1
  %24 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %25 = load i64, ptr %4, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #6
  %27 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  %28 = mul i64 %27, 30
  %29 = urem i64 %25, %28
  %30 = udiv i64 %29, 30
  store i64 %30, ptr %6, align 8, !tbaa !9
  %31 = load i64, ptr %4, align 8, !tbaa !9
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #6
  %33 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  %34 = mul i64 %33, 30
  %35 = urem i64 %31, %34
  %36 = udiv i64 %35, 30
  store i64 %36, ptr %7, align 8, !tbaa !9
  %37 = load i64, ptr %4, align 8, !tbaa !9
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #6
  %39 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  %40 = mul i64 %39, 30
  %41 = urem i64 %37, %40
  %42 = udiv i64 %41, 30
  store i64 %42, ptr %8, align 8, !tbaa !9
  %43 = load i64, ptr %4, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #6
  %45 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %44) #6
  %46 = mul i64 %45, 30
  %47 = urem i64 %43, %46
  %48 = udiv i64 %47, 30
  store i64 %48, ptr %9, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %54, %2
  %50 = load i64, ptr %5, align 8, !tbaa !9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %53 = icmp ult i64 %50, %52
  br i1 %53, label %54, label %142

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %57 = load i64, ptr %5, align 8, !tbaa !9
  %58 = sub i64 %56, %57
  store i64 %58, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #6
  %60 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %59) #6
  %61 = load i64, ptr %6, align 8, !tbaa !9
  %62 = sub i64 %60, %61
  store i64 %62, ptr %11, align 8, !tbaa !9
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %64 = load i64, ptr %63, align 8, !tbaa !9
  store i64 %64, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #6
  %66 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %65) #6
  %67 = load i64, ptr %7, align 8, !tbaa !9
  %68 = sub i64 %66, %67
  store i64 %68, ptr %12, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %70 = load i64, ptr %69, align 8, !tbaa !9
  store i64 %70, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #6
  %72 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %71) #6
  %73 = load i64, ptr %8, align 8, !tbaa !9
  %74 = sub i64 %72, %73
  store i64 %74, ptr %13, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %76 = load i64, ptr %75, align 8, !tbaa !9
  store i64 %76, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #6
  %78 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %77) #6
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = sub i64 %78, %79
  store i64 %80, ptr %14, align 8, !tbaa !9
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %82 = load i64, ptr %81, align 8, !tbaa !9
  store i64 %82, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #6
  %84 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %83) #6
  %85 = load i64, ptr %6, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %84, i64 %85
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #6
  %88 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %87) #6
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %88, i64 %89
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #6
  %92 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %91) #6
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %92, i64 %93
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #6
  %96 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %95) #6
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %96, i64 %97
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = load i64, ptr %5, align 8, !tbaa !9
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #6
  %102 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN12_GLOBAL__N_19presieve1EPKhS1_S1_S1_Phm(ptr noundef %86, ptr noundef %90, ptr noundef %94, ptr noundef %98, ptr noundef %101, i64 noundef %102)
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = load i64, ptr %5, align 8, !tbaa !9
  %105 = add i64 %104, %103
  store i64 %105, ptr %5, align 8, !tbaa !9
  %106 = load i64, ptr %6, align 8, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  %108 = add i64 %106, %107
  %109 = load i64, ptr %6, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #6
  %111 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %110) #6
  %112 = icmp ult i64 %109, %111
  %113 = zext i1 %112 to i64
  %114 = mul i64 %108, %113
  store i64 %114, ptr %6, align 8, !tbaa !9
  %115 = load i64, ptr %7, align 8, !tbaa !9
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = add i64 %115, %116
  %118 = load i64, ptr %7, align 8, !tbaa !9
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #6
  %120 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %119) #6
  %121 = icmp ult i64 %118, %120
  %122 = zext i1 %121 to i64
  %123 = mul i64 %117, %122
  store i64 %123, ptr %7, align 8, !tbaa !9
  %124 = load i64, ptr %8, align 8, !tbaa !9
  %125 = load i64, ptr %10, align 8, !tbaa !9
  %126 = add i64 %124, %125
  %127 = load i64, ptr %8, align 8, !tbaa !9
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #6
  %129 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %128) #6
  %130 = icmp ult i64 %127, %129
  %131 = zext i1 %130 to i64
  %132 = mul i64 %126, %131
  store i64 %132, ptr %8, align 8, !tbaa !9
  %133 = load i64, ptr %9, align 8, !tbaa !9
  %134 = load i64, ptr %10, align 8, !tbaa !9
  %135 = add i64 %133, %134
  %136 = load i64, ptr %9, align 8, !tbaa !9
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #6
  %138 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %137) #6
  %139 = icmp ult i64 %136, %138
  %140 = zext i1 %139 to i64
  %141 = mul i64 %135, %140
  store i64 %141, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %49, !llvm.loop !11

142:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 4, ptr %15, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %299, %142
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = call noundef i64 @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE) #6
  %146 = icmp ult i64 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %302

148:                                              ; preds = %143
  store i64 0, ptr %5, align 8, !tbaa !9
  %149 = load i64, ptr %4, align 8, !tbaa !9
  %150 = load i64, ptr %15, align 8, !tbaa !9
  %151 = add i64 %150, 0
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %151) #6
  %153 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %152) #6
  %154 = mul i64 %153, 30
  %155 = urem i64 %149, %154
  %156 = udiv i64 %155, 30
  store i64 %156, ptr %6, align 8, !tbaa !9
  %157 = load i64, ptr %4, align 8, !tbaa !9
  %158 = load i64, ptr %15, align 8, !tbaa !9
  %159 = add i64 %158, 1
  %160 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %159) #6
  %161 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %160) #6
  %162 = mul i64 %161, 30
  %163 = urem i64 %157, %162
  %164 = udiv i64 %163, 30
  store i64 %164, ptr %7, align 8, !tbaa !9
  %165 = load i64, ptr %4, align 8, !tbaa !9
  %166 = load i64, ptr %15, align 8, !tbaa !9
  %167 = add i64 %166, 2
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %167) #6
  %169 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %168) #6
  %170 = mul i64 %169, 30
  %171 = urem i64 %165, %170
  %172 = udiv i64 %171, 30
  store i64 %172, ptr %8, align 8, !tbaa !9
  %173 = load i64, ptr %4, align 8, !tbaa !9
  %174 = load i64, ptr %15, align 8, !tbaa !9
  %175 = add i64 %174, 3
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %175) #6
  %177 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %176) #6
  %178 = mul i64 %177, 30
  %179 = urem i64 %173, %178
  %180 = udiv i64 %179, 30
  store i64 %180, ptr %9, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %186, %148
  %182 = load i64, ptr %5, align 8, !tbaa !9
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #6
  %185 = icmp ult i64 %182, %184
  br i1 %185, label %186, label %298

186:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %187) #6
  %189 = load i64, ptr %5, align 8, !tbaa !9
  %190 = sub i64 %188, %189
  store i64 %190, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %191 = load i64, ptr %15, align 8, !tbaa !9
  %192 = add i64 %191, 0
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %192) #6
  %194 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %193) #6
  %195 = load i64, ptr %6, align 8, !tbaa !9
  %196 = sub i64 %194, %195
  store i64 %196, ptr %17, align 8, !tbaa !9
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %198 = load i64, ptr %197, align 8, !tbaa !9
  store i64 %198, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %199 = load i64, ptr %15, align 8, !tbaa !9
  %200 = add i64 %199, 1
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %200) #6
  %202 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %201) #6
  %203 = load i64, ptr %7, align 8, !tbaa !9
  %204 = sub i64 %202, %203
  store i64 %204, ptr %18, align 8, !tbaa !9
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %206 = load i64, ptr %205, align 8, !tbaa !9
  store i64 %206, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %207 = load i64, ptr %15, align 8, !tbaa !9
  %208 = add i64 %207, 2
  %209 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %208) #6
  %210 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %209) #6
  %211 = load i64, ptr %8, align 8, !tbaa !9
  %212 = sub i64 %210, %211
  store i64 %212, ptr %19, align 8, !tbaa !9
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %214 = load i64, ptr %213, align 8, !tbaa !9
  store i64 %214, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %215 = load i64, ptr %15, align 8, !tbaa !9
  %216 = add i64 %215, 3
  %217 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %216) #6
  %218 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %217) #6
  %219 = load i64, ptr %9, align 8, !tbaa !9
  %220 = sub i64 %218, %219
  store i64 %220, ptr %20, align 8, !tbaa !9
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %222 = load i64, ptr %221, align 8, !tbaa !9
  store i64 %222, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %223 = load i64, ptr %15, align 8, !tbaa !9
  %224 = add i64 %223, 0
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %224) #6
  %226 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %225) #6
  %227 = load i64, ptr %6, align 8, !tbaa !9
  %228 = getelementptr inbounds i8, ptr %226, i64 %227
  %229 = load i64, ptr %15, align 8, !tbaa !9
  %230 = add i64 %229, 1
  %231 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %230) #6
  %232 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %231) #6
  %233 = load i64, ptr %7, align 8, !tbaa !9
  %234 = getelementptr inbounds i8, ptr %232, i64 %233
  %235 = load i64, ptr %15, align 8, !tbaa !9
  %236 = add i64 %235, 2
  %237 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %236) #6
  %238 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %237) #6
  %239 = load i64, ptr %8, align 8, !tbaa !9
  %240 = getelementptr inbounds i8, ptr %238, i64 %239
  %241 = load i64, ptr %15, align 8, !tbaa !9
  %242 = add i64 %241, 3
  %243 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %242) #6
  %244 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %243) #6
  %245 = load i64, ptr %9, align 8, !tbaa !9
  %246 = getelementptr inbounds i8, ptr %244, i64 %245
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = load i64, ptr %5, align 8, !tbaa !9
  %249 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %248) #6
  %250 = load i64, ptr %16, align 8, !tbaa !9
  call void @_ZN12_GLOBAL__N_19presieve2EPKhS1_S1_S1_Phm(ptr noundef %228, ptr noundef %234, ptr noundef %240, ptr noundef %246, ptr noundef %249, i64 noundef %250)
  %251 = load i64, ptr %16, align 8, !tbaa !9
  %252 = load i64, ptr %5, align 8, !tbaa !9
  %253 = add i64 %252, %251
  store i64 %253, ptr %5, align 8, !tbaa !9
  %254 = load i64, ptr %6, align 8, !tbaa !9
  %255 = load i64, ptr %16, align 8, !tbaa !9
  %256 = add i64 %254, %255
  %257 = load i64, ptr %6, align 8, !tbaa !9
  %258 = load i64, ptr %15, align 8, !tbaa !9
  %259 = add i64 %258, 0
  %260 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %259) #6
  %261 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %260) #6
  %262 = icmp ult i64 %257, %261
  %263 = zext i1 %262 to i64
  %264 = mul i64 %256, %263
  store i64 %264, ptr %6, align 8, !tbaa !9
  %265 = load i64, ptr %7, align 8, !tbaa !9
  %266 = load i64, ptr %16, align 8, !tbaa !9
  %267 = add i64 %265, %266
  %268 = load i64, ptr %7, align 8, !tbaa !9
  %269 = load i64, ptr %15, align 8, !tbaa !9
  %270 = add i64 %269, 1
  %271 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %270) #6
  %272 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %271) #6
  %273 = icmp ult i64 %268, %272
  %274 = zext i1 %273 to i64
  %275 = mul i64 %267, %274
  store i64 %275, ptr %7, align 8, !tbaa !9
  %276 = load i64, ptr %8, align 8, !tbaa !9
  %277 = load i64, ptr %16, align 8, !tbaa !9
  %278 = add i64 %276, %277
  %279 = load i64, ptr %8, align 8, !tbaa !9
  %280 = load i64, ptr %15, align 8, !tbaa !9
  %281 = add i64 %280, 2
  %282 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %281) #6
  %283 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %282) #6
  %284 = icmp ult i64 %279, %283
  %285 = zext i1 %284 to i64
  %286 = mul i64 %278, %285
  store i64 %286, ptr %8, align 8, !tbaa !9
  %287 = load i64, ptr %9, align 8, !tbaa !9
  %288 = load i64, ptr %16, align 8, !tbaa !9
  %289 = add i64 %287, %288
  %290 = load i64, ptr %9, align 8, !tbaa !9
  %291 = load i64, ptr %15, align 8, !tbaa !9
  %292 = add i64 %291, 3
  %293 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %292) #6
  %294 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %293) #6
  %295 = icmp ult i64 %290, %294
  %296 = zext i1 %295 to i64
  %297 = mul i64 %289, %296
  store i64 %297, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %181, !llvm.loop !13

298:                                              ; preds = %181
  br label %299

299:                                              ; preds = %298
  %300 = load i64, ptr %15, align 8, !tbaa !9
  %301 = add i64 %300, 4
  store i64 %301, ptr %15, align 8, !tbaa !9
  br label %143, !llvm.loop !14

302:                                              ; preds = %147
  %303 = load i64, ptr %4, align 8, !tbaa !9
  %304 = call noundef i64 @_ZN10primesieve8PreSieve11getMaxPrimeEv()
  %305 = icmp ule i64 %303, %304
  br i1 %305, label %306, label %331

306:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %307 = load i64, ptr %4, align 8, !tbaa !9
  %308 = udiv i64 %307, 30
  store i64 %308, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = call noundef ptr @_ZN10primesieve6VectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %309) #6
  store ptr %310, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 @__const._ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm.primeBits, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %311

311:                                              ; preds = %327, %306
  %312 = load i64, ptr %21, align 8, !tbaa !9
  %313 = load i64, ptr %24, align 8, !tbaa !9
  %314 = add i64 %312, %313
  %315 = call noundef i64 @_ZNK10primesieve5ArrayIhLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %23) #6
  %316 = icmp ult i64 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %330

318:                                              ; preds = %311
  %319 = load i64, ptr %21, align 8, !tbaa !9
  %320 = load i64, ptr %24, align 8, !tbaa !9
  %321 = add i64 %319, %320
  %322 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve5ArrayIhLm8EEixEm(ptr noundef nonnull align 1 dereferenceable(8) %23, i64 noundef %321) #6
  %323 = load i8, ptr %322, align 1, !tbaa !15
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  %325 = load i64, ptr %24, align 8, !tbaa !9
  %326 = getelementptr inbounds i8, ptr %324, i64 %325
  store i8 %323, ptr %326, align 1, !tbaa !15
  br label %327

327:                                              ; preds = %318
  %328 = load i64, ptr %24, align 8, !tbaa !9
  %329 = add i64 %328, 1
  store i64 %329, ptr %24, align 8, !tbaa !9
  br label %311, !llvm.loop !16

330:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %331

331:                                              ; preds = %330, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #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 @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_19presieve1EPKhS1_S1_S1_Phm(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i64 noundef) #4

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_19presieve2EPKhS1_S1_S1_Phm(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i64 noundef) #4

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve5ArrayIhLm8EEixEm(ptr noundef nonnull align 1 dereferenceable(8), i64 noundef) #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline 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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !12}


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

%"class.primesieve::Array" = type { [16 x %"class.std::initializer_list"] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.primesieve::Array.0" = type { [8 x i8] }

@_ZN12_GLOBAL__N_114preSieveTablesE = external hidden constant %"class.primesieve::Array", align 8
@__const._ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm.primeBits = external hidden unnamed_addr constant %"class.primesieve::Array.0", align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, 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 %"class.primesieve::Array.0", align 8
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #5
  %15 = tail call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #5
  %17 = tail call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #5
  %19 = tail call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #5
  %21 = tail call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  %22 = tail call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not111 = icmp eq i64 %22, 0
  br i1 %.not111, label %.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %23 = mul i64 %21, 30
  %24 = urem i64 %1, %23
  %25 = udiv i64 %24, 30
  %26 = mul i64 %19, 30
  %27 = urem i64 %1, %26
  %28 = udiv i64 %27, 30
  %29 = mul i64 %17, 30
  %30 = urem i64 %1, %29
  %31 = udiv i64 %30, 30
  %32 = mul i64 %15, 30
  %33 = urem i64 %1, %32
  %34 = udiv i64 %33, 30
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %2
  %35 = call noundef i64 @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE) #5
  %36 = icmp ugt i64 %35, 4
  br i1 %36, label %.lr.ph105, label %._crit_edge106

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.08197 = phi i64 [ %74, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.08296 = phi i64 [ %79, %.lr.ph ], [ %34, %.lr.ph.preheader ]
  %.08595 = phi i64 [ %97, %.lr.ph ], [ %25, %.lr.ph.preheader ]
  %.08794 = phi i64 [ %91, %.lr.ph ], [ %28, %.lr.ph.preheader ]
  %.08993 = phi i64 [ %85, %.lr.ph ], [ %31, %.lr.ph.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %37 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %38 = sub i64 %37, %.08197
  store i64 %38, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #5
  %40 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #5
  %41 = sub i64 %40, %.08296
  store i64 %41, ptr %4, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %43 = load i64, ptr %42, align 8, !tbaa !5
  store i64 %43, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #5
  %45 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %44) #5
  %46 = sub i64 %45, %.08993
  store i64 %46, ptr %5, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %48 = load i64, ptr %47, align 8, !tbaa !5
  store i64 %48, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #5
  %50 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %49) #5
  %51 = sub i64 %50, %.08794
  store i64 %51, ptr %6, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %53 = load i64, ptr %52, align 8, !tbaa !5
  store i64 %53, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #5
  %55 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %54) #5
  %56 = sub i64 %55, %.08595
  store i64 %56, ptr %7, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %58 = load i64, ptr %57, align 8, !tbaa !5
  store i64 %58, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #5
  %60 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %59) #5
  %61 = getelementptr inbounds i8, ptr %60, i64 %.08296
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #5
  %63 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %62) #5
  %64 = getelementptr inbounds i8, ptr %63, i64 %.08993
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #5
  %66 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %65) #5
  %67 = getelementptr inbounds i8, ptr %66, i64 %.08794
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #5
  %69 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %68) #5
  %70 = getelementptr inbounds i8, ptr %69, i64 %.08595
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.08197) #5
  %72 = load i64, ptr %3, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_19presieve1EPKhS1_S1_S1_Phm(ptr noundef %61, ptr noundef %64, ptr noundef %67, ptr noundef %70, ptr noundef nonnull %71, i64 noundef %72)
  %73 = load i64, ptr %3, align 8, !tbaa !5
  %74 = add i64 %73, %.08197
  %75 = add i64 %73, %.08296
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 0) #5
  %77 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %76) #5
  %78 = icmp ult i64 %.08296, %77
  %79 = select i1 %78, i64 %75, i64 0
  %80 = load i64, ptr %3, align 8, !tbaa !5
  %81 = add i64 %80, %.08993
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 1) #5
  %83 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %82) #5
  %84 = icmp ult i64 %.08993, %83
  %85 = select i1 %84, i64 %81, i64 0
  %86 = load i64, ptr %3, align 8, !tbaa !5
  %87 = add i64 %86, %.08794
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 2) #5
  %89 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %88) #5
  %90 = icmp ult i64 %.08794, %89
  %91 = select i1 %90, i64 %87, i64 0
  %92 = load i64, ptr %3, align 8, !tbaa !5
  %93 = add i64 %92, %.08595
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef 3) #5
  %95 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %94) #5
  %96 = icmp ult i64 %.08595, %95
  %97 = select i1 %96, i64 %93, i64 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %98 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %99 = icmp ult i64 %74, %98
  br i1 %99, label %.lr.ph, label %.preheader, !llvm.loop !9

._crit_edge106:                                   ; preds = %._crit_edge, %.preheader
  %100 = call noundef i64 @_ZN10primesieve8PreSieve11getMaxPrimeEv()
  %.not = icmp ult i64 %100, %1
  br i1 %.not, label %205, label %191

.lr.ph105:                                        ; preds = %.preheader, %._crit_edge
  %.084104 = phi i64 [ %188, %._crit_edge ], [ 4, %.preheader ]
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %.084104) #5
  %102 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %101) #5
  %103 = or disjoint i64 %.084104, 1
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %103) #5
  %105 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %104) #5
  %106 = or disjoint i64 %.084104, 2
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %106) #5
  %108 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %107) #5
  %109 = or disjoint i64 %.084104, 3
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %109) #5
  %111 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %110) #5
  %112 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not112 = icmp eq i64 %112, 0
  br i1 %.not112, label %._crit_edge, label %.lr.ph103.preheader

.lr.ph103.preheader:                              ; preds = %.lr.ph105
  %113 = mul i64 %111, 30
  %114 = urem i64 %1, %113
  %115 = udiv i64 %114, 30
  %116 = mul i64 %108, 30
  %117 = urem i64 %1, %116
  %118 = udiv i64 %117, 30
  %119 = mul i64 %105, 30
  %120 = urem i64 %1, %119
  %121 = udiv i64 %120, 30
  %122 = mul i64 %102, 30
  %123 = urem i64 %1, %122
  %124 = udiv i64 %123, 30
  br label %.lr.ph103

.lr.ph103:                                        ; preds = %.lr.ph103.preheader, %.lr.ph103
  %.1102 = phi i64 [ %162, %.lr.ph103 ], [ 0, %.lr.ph103.preheader ]
  %.183101 = phi i64 [ %167, %.lr.ph103 ], [ %124, %.lr.ph103.preheader ]
  %.186100 = phi i64 [ %185, %.lr.ph103 ], [ %115, %.lr.ph103.preheader ]
  %.18899 = phi i64 [ %179, %.lr.ph103 ], [ %118, %.lr.ph103.preheader ]
  %.19098 = phi i64 [ %173, %.lr.ph103 ], [ %121, %.lr.ph103.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %125 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %126 = sub i64 %125, %.1102
  store i64 %126, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %.084104) #5
  %128 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %127) #5
  %129 = sub i64 %128, %.183101
  store i64 %129, ptr %9, align 8, !tbaa !5
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %131 = load i64, ptr %130, align 8, !tbaa !5
  store i64 %131, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %103) #5
  %133 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %132) #5
  %134 = sub i64 %133, %.19098
  store i64 %134, ptr %10, align 8, !tbaa !5
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %136 = load i64, ptr %135, align 8, !tbaa !5
  store i64 %136, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %137 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %106) #5
  %138 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %137) #5
  %139 = sub i64 %138, %.18899
  store i64 %139, ptr %11, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %141 = load i64, ptr %140, align 8, !tbaa !5
  store i64 %141, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %109) #5
  %143 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %142) #5
  %144 = sub i64 %143, %.186100
  store i64 %144, ptr %12, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %146 = load i64, ptr %145, align 8, !tbaa !5
  store i64 %146, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %.084104) #5
  %148 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %147) #5
  %149 = getelementptr inbounds i8, ptr %148, i64 %.183101
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %103) #5
  %151 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %150) #5
  %152 = getelementptr inbounds i8, ptr %151, i64 %.19098
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %106) #5
  %154 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %153) #5
  %155 = getelementptr inbounds i8, ptr %154, i64 %.18899
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %109) #5
  %157 = call noundef ptr @_ZNKSt16initializer_listIhE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %156) #5
  %158 = getelementptr inbounds i8, ptr %157, i64 %.186100
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve6VectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.1102) #5
  %160 = load i64, ptr %8, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_19presieve2EPKhS1_S1_S1_Phm(ptr noundef %149, ptr noundef %152, ptr noundef %155, ptr noundef %158, ptr noundef nonnull %159, i64 noundef %160)
  %161 = load i64, ptr %8, align 8, !tbaa !5
  %162 = add i64 %161, %.1102
  %163 = add i64 %161, %.183101
  %164 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %.084104) #5
  %165 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %164) #5
  %166 = icmp ult i64 %.183101, %165
  %167 = select i1 %166, i64 %163, i64 0
  %168 = load i64, ptr %8, align 8, !tbaa !5
  %169 = add i64 %168, %.19098
  %170 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %103) #5
  %171 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %170) #5
  %172 = icmp ult i64 %.19098, %171
  %173 = select i1 %172, i64 %169, i64 0
  %174 = load i64, ptr %8, align 8, !tbaa !5
  %175 = add i64 %174, %.18899
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %106) #5
  %177 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %176) #5
  %178 = icmp ult i64 %.18899, %177
  %179 = select i1 %178, i64 %175, i64 0
  %180 = load i64, ptr %8, align 8, !tbaa !5
  %181 = add i64 %180, %.186100
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE, i64 noundef %109) #5
  %183 = call noundef i64 @_ZNKSt16initializer_listIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %182) #5
  %184 = icmp ult i64 %.186100, %183
  %185 = select i1 %184, i64 %181, i64 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %186 = call noundef i64 @_ZNK10primesieve6VectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %187 = icmp ult i64 %162, %186
  br i1 %187, label %.lr.ph103, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph103, %.lr.ph105
  %188 = add i64 %.084104, 4
  %189 = call noundef i64 @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(256) @_ZN12_GLOBAL__N_114preSieveTablesE) #5
  %190 = icmp ult i64 %188, %189
  br i1 %190, label %.lr.ph105, label %._crit_edge106, !llvm.loop !12

191:                                              ; preds = %._crit_edge106
  %192 = udiv i64 %1, 30
  %193 = call noundef ptr @_ZN10primesieve6VectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %194 = load i64, ptr @__const._ZN10primesieve8PreSieve8preSieveERNS_6VectorIhSaIhEEEm.primeBits, align 1
  store i64 %194, ptr %13, align 8
  %195 = call noundef i64 @_ZNK10primesieve5ArrayIhLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %13) #5
  %196 = icmp ult i64 %192, %195
  br i1 %196, label %.lr.ph109, label %._crit_edge110

._crit_edge110:                                   ; preds = %.lr.ph109, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %205

.lr.ph109:                                        ; preds = %191, %.lr.ph109
  %.0107 = phi i64 [ %201, %.lr.ph109 ], [ 0, %191 ]
  %197 = add nuw i64 %.0107, %192
  %198 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve5ArrayIhLm8EEixEm(ptr noundef nonnull align 1 dereferenceable(8) %13, i64 noundef %197) #5
  %199 = load i8, ptr %198, align 1, !tbaa !13
  %200 = getelementptr inbounds i8, ptr %193, i64 %.0107
  store i8 %199, ptr %200, align 1, !tbaa !13
  %201 = add nuw i64 %.0107, 1
  %202 = add nuw i64 %201, %192
  %203 = call noundef i64 @_ZNK10primesieve5ArrayIhLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %13) #5
  %204 = icmp ult i64 %202, %203
  br i1 %204, label %.lr.ph109, label %._crit_edge110, !llvm.loop !14

205:                                              ; preds = %._crit_edge110, %._crit_edge106
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK10primesieve5ArrayISt16initializer_listIhELm16EEixEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_19presieve1EPKhS1_S1_S1_Phm(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i64 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_19presieve2EPKhS1_S1_S1_Phm(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i64 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN10primesieve5ArrayIhLm8EEixEm(ptr noundef nonnull align 1 dereferenceable(8), i64 noundef) local_unnamed_addr #2 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline 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 = { 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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass