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

; 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 { [100 x i64] }
%"class.primesieve::Array.0" = type { [14 x i64] }
%"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 }

@RiemannR_tiny = external dso_local global %"class.primesieve::Array", align 8
@RiemannR_table = external dso_local global %"class.primesieve::Array.0", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = 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: noreturn nounwind
declare void @exit(i32 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %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 double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %45, %0
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  br label %48

27:                                               ; preds = %22
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %29 = load i64, ptr %2, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %29)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.5)
  %32 = load i64, ptr %2, align 8, !tbaa !5
  %33 = uitofp i64 %32 to x86_fp80
  %34 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %33)
  %35 = fptoui x86_fp80 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %35)
  %37 = load i64, ptr %2, align 8, !tbaa !5
  %38 = uitofp i64 %37 to x86_fp80
  %39 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %38)
  %40 = fptoui x86_fp80 %39 to i64
  %41 = load i64, ptr %2, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm100EEixEm(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny, i64 noundef %41) #9
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = icmp eq i64 %40, %43
  call void @_Z5checkb(i1 noundef zeroext %44)
  br label %45

45:                                               ; preds = %27
  %46 = load i64, ptr %2, align 8, !tbaa !5
  %47 = add i64 %46, 1
  store i64 %47, ptr %2, align 8, !tbaa !5
  br label %22, !llvm.loop !9

48:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  store i64 1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %74, %48
  %50 = load i64, ptr %4, align 8, !tbaa !5
  %51 = call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %52 = icmp ult i64 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %77

54:                                               ; preds = %49
  %55 = load i64, ptr %3, align 8, !tbaa !5
  %56 = mul i64 %55, 10
  store i64 %56, ptr %3, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %58 = load i64, ptr %3, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %57, i64 noundef %58)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @.str.5)
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = uitofp i64 %61 to x86_fp80
  %63 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %62)
  %64 = fptoui x86_fp80 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %60, i64 noundef %64)
  %66 = load i64, ptr %3, align 8, !tbaa !5
  %67 = uitofp i64 %66 to x86_fp80
  %68 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %67)
  %69 = fptoui x86_fp80 %68 to i64
  %70 = load i64, ptr %4, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm14EEixEm(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table, i64 noundef %70) #9
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = icmp eq i64 %69, %72
  call void @_Z5checkb(i1 noundef zeroext %73)
  br label %74

74:                                               ; preds = %54
  %75 = load i64, ptr %4, align 8, !tbaa !5
  %76 = add i64 %75, 1
  store i64 %76, ptr %4, align 8, !tbaa !5
  br label %49, !llvm.loop !11

77:                                               ; preds = %53
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %79 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %78, x86_fp80 noundef %79)
  %81 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %82 = fptoui x86_fp80 %81 to i64
  %83 = icmp eq i64 %82, 1
  call void @_Z5checkb(i1 noundef zeroext %83)
  store i64 2, ptr %3, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %117, %77
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %88, label %120

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %89 = load i64, ptr %3, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm100EEixEm(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny, i64 noundef %89) #9
  %91 = load i64, ptr %90, align 8, !tbaa !5
  store i64 %91, ptr %5, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %93 = load i64, ptr %5, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @.str.5)
  %96 = load i64, ptr %5, align 8, !tbaa !5
  %97 = uitofp i64 %96 to x86_fp80
  %98 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %97)
  %99 = fptoui x86_fp80 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %95, i64 noundef %99)
  %101 = load i64, ptr %5, align 8, !tbaa !5
  %102 = uitofp i64 %101 to x86_fp80
  %103 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %102)
  %104 = fptoui x86_fp80 %103 to i64
  %105 = load i64, ptr %3, align 8, !tbaa !5
  %106 = icmp ult i64 %104, %105
  br i1 %106, label %107, label %115

107:                                              ; preds = %88
  %108 = load i64, ptr %5, align 8, !tbaa !5
  %109 = uitofp i64 %108 to x86_fp80
  %110 = fadd x86_fp80 %109, 0xK3FFF8000000000000000
  %111 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %110)
  %112 = fptoui x86_fp80 %111 to i64
  %113 = load i64, ptr %3, align 8, !tbaa !5
  %114 = icmp uge i64 %112, %113
  br label %115

115:                                              ; preds = %107, %88
  %116 = phi i1 [ false, %88 ], [ %114, %107 ]
  call void @_Z5checkb(i1 noundef zeroext %116)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %117

117:                                              ; preds = %115
  %118 = load i64, ptr %3, align 8, !tbaa !5
  %119 = add i64 %118, 1
  store i64 %119, ptr %3, align 8, !tbaa !5
  br label %84, !llvm.loop !12

120:                                              ; preds = %84
  store i64 1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %157, %120
  %122 = load i64, ptr %6, align 8, !tbaa !5
  %123 = call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %160

126:                                              ; preds = %121
  %127 = load i64, ptr %3, align 8, !tbaa !5
  %128 = mul i64 %127, 10
  store i64 %128, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %129 = load i64, ptr %6, align 8, !tbaa !5
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm14EEixEm(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table, i64 noundef %129) #9
  %131 = load i64, ptr %130, align 8, !tbaa !5
  store i64 %131, ptr %7, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %133 = load i64, ptr %7, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %132, i64 noundef %133)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @.str.5)
  %136 = load i64, ptr %7, align 8, !tbaa !5
  %137 = uitofp i64 %136 to x86_fp80
  %138 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %137)
  %139 = fptoui x86_fp80 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %135, i64 noundef %139)
  %141 = load i64, ptr %7, align 8, !tbaa !5
  %142 = uitofp i64 %141 to x86_fp80
  %143 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %142)
  %144 = fptoui x86_fp80 %143 to i64
  %145 = load i64, ptr %3, align 8, !tbaa !5
  %146 = icmp ult i64 %144, %145
  br i1 %146, label %147, label %155

147:                                              ; preds = %126
  %148 = load i64, ptr %7, align 8, !tbaa !5
  %149 = uitofp i64 %148 to x86_fp80
  %150 = fadd x86_fp80 %149, 0xK3FFF8000000000000000
  %151 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %150)
  %152 = fptoui x86_fp80 %151 to i64
  %153 = load i64, ptr %3, align 8, !tbaa !5
  %154 = icmp uge i64 %152, %153
  br label %155

155:                                              ; preds = %147, %126
  %156 = phi i1 [ false, %126 ], [ %154, %147 ]
  call void @_Z5checkb(i1 noundef zeroext %156)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %157

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

160:                                              ; preds = %125
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %161

161:                                              ; preds = %205, %160
  %162 = load i64, ptr %3, align 8, !tbaa !5
  %163 = icmp ult i64 %162, 10000
  br i1 %163, label %164, label %208

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %165 = load i64, ptr %3, align 8, !tbaa !5
  %166 = uitofp i64 %165 to x86_fp80
  %167 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %166)
  %168 = fptoui x86_fp80 %167 to i64
  store i64 %168, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %169 = load i64, ptr %3, align 8, !tbaa !5
  %170 = uitofp i64 %169 to double
  store double %170, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store double 2.000000e+00, ptr %11, align 8, !tbaa !14
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %172 = load double, ptr %171, align 8, !tbaa !14
  %173 = call double @log(double noundef %172) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  store double %173, ptr %9, align 8, !tbaa !14
  %174 = load i64, ptr %3, align 8, !tbaa !5
  %175 = icmp uge i64 %174, 20
  br i1 %175, label %176, label %184

176:                                              ; preds = %164
  %177 = load i64, ptr %8, align 8, !tbaa !5
  %178 = uitofp i64 %177 to double
  %179 = load i64, ptr %3, align 8, !tbaa !5
  %180 = uitofp i64 %179 to double
  %181 = load double, ptr %9, align 8, !tbaa !14
  %182 = fdiv double %180, %181
  %183 = fcmp olt double %178, %182
  br i1 %183, label %195, label %184

184:                                              ; preds = %176, %164
  %185 = load i64, ptr %3, align 8, !tbaa !5
  %186 = icmp uge i64 %185, 2
  br i1 %186, label %187, label %204

187:                                              ; preds = %184
  %188 = load i64, ptr %8, align 8, !tbaa !5
  %189 = uitofp i64 %188 to double
  %190 = load i64, ptr %3, align 8, !tbaa !5
  %191 = uitofp i64 %190 to double
  %192 = load double, ptr %9, align 8, !tbaa !14
  %193 = fmul double %191, %192
  %194 = fcmp ogt double %189, %193
  br i1 %194, label %195, label %204

195:                                              ; preds = %187, %176
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %197 = load i64, ptr %3, align 8, !tbaa !5
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %196, i64 noundef %197)
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef @.str.5)
  %200 = load i64, ptr %8, align 8, !tbaa !5
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %199, i64 noundef %200)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.8)
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

204:                                              ; preds = %187, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %3, align 8, !tbaa !5
  %207 = add i64 %206, 1
  store i64 %207, ptr %3, align 8, !tbaa !5
  br label %161, !llvm.loop !16

208:                                              ; preds = %161
  br label %209

209:                                              ; preds = %253, %208
  %210 = load i64, ptr %3, align 8, !tbaa !5
  %211 = icmp ult i64 %210, 100000
  br i1 %211, label %212, label %256

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %213 = load i64, ptr %3, align 8, !tbaa !5
  %214 = uitofp i64 %213 to x86_fp80
  %215 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %214)
  %216 = fptoui x86_fp80 %215 to i64
  store i64 %216, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %217 = load i64, ptr %3, align 8, !tbaa !5
  %218 = uitofp i64 %217 to double
  store double %218, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store double 2.000000e+00, ptr %15, align 8, !tbaa !14
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %220 = load double, ptr %219, align 8, !tbaa !14
  %221 = call double @log(double noundef %220) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  store double %221, ptr %13, align 8, !tbaa !14
  %222 = load i64, ptr %3, align 8, !tbaa !5
  %223 = icmp uge i64 %222, 20
  br i1 %223, label %224, label %232

224:                                              ; preds = %212
  %225 = load i64, ptr %12, align 8, !tbaa !5
  %226 = uitofp i64 %225 to double
  %227 = load i64, ptr %3, align 8, !tbaa !5
  %228 = uitofp i64 %227 to double
  %229 = load double, ptr %13, align 8, !tbaa !14
  %230 = fdiv double %228, %229
  %231 = fcmp olt double %226, %230
  br i1 %231, label %243, label %232

232:                                              ; preds = %224, %212
  %233 = load i64, ptr %3, align 8, !tbaa !5
  %234 = icmp uge i64 %233, 2
  br i1 %234, label %235, label %252

235:                                              ; preds = %232
  %236 = load i64, ptr %12, align 8, !tbaa !5
  %237 = uitofp i64 %236 to double
  %238 = load i64, ptr %3, align 8, !tbaa !5
  %239 = uitofp i64 %238 to double
  %240 = load double, ptr %13, align 8, !tbaa !14
  %241 = fmul double %239, %240
  %242 = fcmp ogt double %237, %241
  br i1 %242, label %243, label %252

243:                                              ; preds = %235, %224
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %245 = load i64, ptr %3, align 8, !tbaa !5
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %244, i64 noundef %245)
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef @.str.5)
  %248 = load i64, ptr %12, align 8, !tbaa !5
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %247, i64 noundef %248)
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef @.str.8)
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

252:                                              ; preds = %235, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %253

253:                                              ; preds = %252
  %254 = load i64, ptr %3, align 8, !tbaa !5
  %255 = add i64 %254, 101
  store i64 %255, ptr %3, align 8, !tbaa !5
  br label %209, !llvm.loop !17

256:                                              ; preds = %209
  store i64 2, ptr %3, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %294, %256
  %258 = load i64, ptr %3, align 8, !tbaa !5
  %259 = icmp ult i64 %258, 1000
  br i1 %259, label %260, label %297

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %261 = load i64, ptr %3, align 8, !tbaa !5
  %262 = uitofp i64 %261 to x86_fp80
  %263 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %262)
  %264 = fptoui x86_fp80 %263 to i64
  store i64 %264, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %265 = load i64, ptr %3, align 8, !tbaa !5
  %266 = uitofp i64 %265 to double
  %267 = call double @log(double noundef %266) #9
  store double %267, ptr %17, align 8, !tbaa !14
  %268 = load i64, ptr %16, align 8, !tbaa !5
  %269 = load i64, ptr %3, align 8, !tbaa !5
  %270 = icmp ult i64 %268, %269
  br i1 %270, label %284, label %271

271:                                              ; preds = %260
  %272 = load i64, ptr %3, align 8, !tbaa !5
  %273 = icmp uge i64 %272, 5
  br i1 %273, label %274, label %293

274:                                              ; preds = %271
  %275 = load i64, ptr %16, align 8, !tbaa !5
  %276 = uitofp i64 %275 to double
  %277 = load i64, ptr %3, align 8, !tbaa !5
  %278 = uitofp i64 %277 to double
  %279 = load double, ptr %17, align 8, !tbaa !14
  %280 = fmul double %278, %279
  %281 = load double, ptr %17, align 8, !tbaa !14
  %282 = fmul double %280, %281
  %283 = fcmp ogt double %276, %282
  br i1 %283, label %284, label %293

284:                                              ; preds = %274, %260
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %286 = load i64, ptr %3, align 8, !tbaa !5
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %285, i64 noundef %286)
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @.str.5)
  %289 = load i64, ptr %16, align 8, !tbaa !5
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %288, i64 noundef %289)
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef @.str.8)
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

293:                                              ; preds = %274, %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %3, align 8, !tbaa !5
  %296 = add i64 %295, 1
  store i64 %296, ptr %3, align 8, !tbaa !5
  br label %257, !llvm.loop !18

297:                                              ; preds = %257
  br label %298

298:                                              ; preds = %335, %297
  %299 = load i64, ptr %3, align 8, !tbaa !5
  %300 = icmp ult i64 %299, 100000
  br i1 %300, label %301, label %338

301:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %302 = load i64, ptr %3, align 8, !tbaa !5
  %303 = uitofp i64 %302 to x86_fp80
  %304 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %303)
  %305 = fptoui x86_fp80 %304 to i64
  store i64 %305, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %306 = load i64, ptr %3, align 8, !tbaa !5
  %307 = uitofp i64 %306 to double
  %308 = call double @log(double noundef %307) #9
  store double %308, ptr %19, align 8, !tbaa !14
  %309 = load i64, ptr %18, align 8, !tbaa !5
  %310 = load i64, ptr %3, align 8, !tbaa !5
  %311 = icmp ult i64 %309, %310
  br i1 %311, label %325, label %312

312:                                              ; preds = %301
  %313 = load i64, ptr %3, align 8, !tbaa !5
  %314 = icmp uge i64 %313, 5
  br i1 %314, label %315, label %334

315:                                              ; preds = %312
  %316 = load i64, ptr %18, align 8, !tbaa !5
  %317 = uitofp i64 %316 to double
  %318 = load i64, ptr %3, align 8, !tbaa !5
  %319 = uitofp i64 %318 to double
  %320 = load double, ptr %19, align 8, !tbaa !14
  %321 = fmul double %319, %320
  %322 = load double, ptr %19, align 8, !tbaa !14
  %323 = fmul double %321, %322
  %324 = fcmp ogt double %317, %323
  br i1 %324, label %325, label %334

325:                                              ; preds = %315, %301
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %327 = load i64, ptr %3, align 8, !tbaa !5
  %328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %326, i64 noundef %327)
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %328, ptr noundef @.str.5)
  %330 = load i64, ptr %18, align 8, !tbaa !5
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %329, i64 noundef %330)
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @.str.8)
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %332, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

334:                                              ; preds = %315, %312
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %335

335:                                              ; preds = %334
  %336 = load i64, ptr %3, align 8, !tbaa !5
  %337 = add i64 %336, 101
  store i64 %337, ptr %3, align 8, !tbaa !5
  br label %298, !llvm.loop !19

338:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %339 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #9
  %340 = udiv i64 %339, 10
  store i64 %340, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %341 = load i64, ptr %20, align 8, !tbaa !5
  %342 = call noundef i64 @_ZN10primesieve14nthPrimeApproxEm(i64 noundef %341)
  store i64 %342, ptr %21, align 8, !tbaa !5
  %343 = load i64, ptr %21, align 8, !tbaa !5
  %344 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #9
  %345 = icmp ne i64 %343, %344
  br i1 %345, label %346, label %352

346:                                              ; preds = %338
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %348 = load i64, ptr %20, align 8, !tbaa !5
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %347, i64 noundef %348)
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %349, ptr noundef @.str.10)
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %350, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

352:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %355 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %354, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800)) #5 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

declare noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef) #6

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

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

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

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

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

declare noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef) #6

; Function Attrs: nounwind
declare double @log(double noundef) #7

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

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

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

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

declare noundef i64 @_ZN10primesieve14nthPrimeApproxEm(i64 noundef) #6

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 = { noreturn 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !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.primesieve::Array" = type { [100 x i64] }
%"class.primesieve::Array.0" = type { [14 x i64] }
%"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 }

@RiemannR_tiny = external dso_local global %"class.primesieve::Array", align 8
@RiemannR_table = external dso_local global %"class.primesieve::Array.0", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %.not124 = icmp eq i64 %5, 0
  br i1 %.not124, label %.preheader99, label %.lr.ph

.preheader99:                                     ; preds = %.lr.ph, %0
  %6 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %.not125 = icmp eq i64 %6, 0
  br i1 %.not125, label %._crit_edge, label %.lr.ph110

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.0107 = phi i64 [ %19, %.lr.ph ], [ 0, %0 ]
  %7 = tail call 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)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %.0107)
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.5)
  %10 = uitofp i64 %.0107 to x86_fp80
  %11 = tail call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %10)
  %12 = fptoui x86_fp80 %11 to i64
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %12)
  %14 = tail call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %10)
  %15 = fptoui x86_fp80 %14 to i64
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm100EEixEm(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny, i64 noundef %.0107) #9
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = icmp eq i64 %17, %15
  tail call void @_Z5checkb(i1 noundef zeroext %18)
  %19 = add nuw i64 %.0107, 1
  %20 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %.lr.ph, label %.preheader99, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph110, %.preheader99
  %22 = tail call 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)
  %23 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %22, x86_fp80 noundef %23)
  %25 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %26 = fptoui x86_fp80 %25 to i64
  %27 = icmp eq i64 %26, 1
  tail call void @_Z5checkb(i1 noundef zeroext %27)
  %28 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %29 = icmp ugt i64 %28, 2
  br i1 %29, label %.lr.ph113, label %.preheader98

.lr.ph110:                                        ; preds = %.preheader99, %.lr.ph110
  %.088109 = phi i64 [ %30, %.lr.ph110 ], [ 1, %.preheader99 ]
  %.089108 = phi i64 [ %43, %.lr.ph110 ], [ 0, %.preheader99 ]
  %30 = mul i64 %.088109, 10
  %31 = tail call 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)
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %30)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.5)
  %34 = uitofp i64 %30 to x86_fp80
  %35 = tail call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %34)
  %36 = fptoui x86_fp80 %35 to i64
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %33, i64 noundef %36)
  %38 = tail call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %34)
  %39 = fptoui x86_fp80 %38 to i64
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm14EEixEm(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table, i64 noundef %.089108) #9
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp eq i64 %41, %39
  tail call void @_Z5checkb(i1 noundef zeroext %42)
  %43 = add nuw i64 %.089108, 1
  %44 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %45 = icmp ult i64 %43, %44
  br i1 %45, label %.lr.ph110, label %._crit_edge, !llvm.loop !11

.preheader98:                                     ; preds = %64, %._crit_edge
  %46 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %.not126 = icmp eq i64 %46, 0
  br i1 %.not126, label %.peel.next140, label %.lr.ph116

.lr.ph113:                                        ; preds = %._crit_edge, %64
  %.1111 = phi i64 [ %66, %64 ], [ 2, %._crit_edge ]
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm100EEixEm(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny, i64 noundef %.1111) #9
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = tail call 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)
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %49, i64 noundef %48)
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.5)
  %52 = uitofp i64 %48 to x86_fp80
  %53 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %52)
  %54 = fptoui x86_fp80 %53 to i64
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %54)
  %56 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %52)
  %57 = fptoui x86_fp80 %56 to i64
  %58 = icmp ugt i64 %.1111, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %.lr.ph113
  %60 = fadd x86_fp80 %52, 0xK3FFF8000000000000000
  %61 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %60)
  %62 = fptoui x86_fp80 %61 to i64
  %63 = icmp ule i64 %.1111, %62
  br label %64

64:                                               ; preds = %59, %.lr.ph113
  %65 = phi i1 [ false, %.lr.ph113 ], [ %63, %59 ]
  tail call void @_Z5checkb(i1 noundef zeroext %65)
  %66 = add nuw i64 %.1111, 1
  %67 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800) @RiemannR_tiny) #9
  %68 = icmp ult i64 %66, %67
  br i1 %68, label %.lr.ph113, label %.preheader98, !llvm.loop !12

.peel.next140:                                    ; preds = %95, %.preheader98
  %69 = tail call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store double 0.000000e+00, ptr %1, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store double 2.000000e+00, ptr %2, align 8, !tbaa !13
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %71 = load double, ptr %70, align 8, !tbaa !13
  %72 = call double @log(double noundef %71) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %73 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef 0xK3FFF8000000000000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store double 1.000000e+00, ptr %1, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store double 2.000000e+00, ptr %2, align 8, !tbaa !13
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %75 = load double, ptr %74, align 8, !tbaa !13
  %76 = call double @log(double noundef %75) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  br label %100

.lr.ph116:                                        ; preds = %.preheader98, %95
  %.2115 = phi i64 [ %77, %95 ], [ 1, %.preheader98 ]
  %.090114 = phi i64 [ %97, %95 ], [ 0, %.preheader98 ]
  %77 = mul i64 %.2115, 10
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve5ArrayImLm14EEixEm(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table, i64 noundef %.090114) #9
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = tail call 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)
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %79)
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str.5)
  %83 = uitofp i64 %79 to x86_fp80
  %84 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %83)
  %85 = fptoui x86_fp80 %84 to i64
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %82, i64 noundef %85)
  %87 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %83)
  %88 = fptoui x86_fp80 %87 to i64
  %89 = icmp ugt i64 %77, %88
  br i1 %89, label %90, label %95

90:                                               ; preds = %.lr.ph116
  %91 = fadd x86_fp80 %83, 0xK3FFF8000000000000000
  %92 = tail call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %91)
  %93 = fptoui x86_fp80 %92 to i64
  %94 = icmp ule i64 %77, %93
  br label %95

95:                                               ; preds = %90, %.lr.ph116
  %96 = phi i1 [ false, %.lr.ph116 ], [ %94, %90 ]
  tail call void @_Z5checkb(i1 noundef zeroext %96)
  %97 = add nuw i64 %.090114, 1
  %98 = tail call noundef i64 @_ZNK10primesieve5ArrayImLm14EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(112) @RiemannR_table) #9
  %99 = icmp ult i64 %97, %98
  br i1 %99, label %.lr.ph116, label %.peel.next140, !llvm.loop !15

100:                                              ; preds = %.peel.next140, %120
  %.3117 = phi i64 [ 2, %.peel.next140 ], [ %121, %120 ]
  %101 = uitofp nneg i64 %.3117 to x86_fp80
  %102 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %101)
  %103 = fptoui x86_fp80 %102 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %104 = uitofp nneg i64 %.3117 to double
  store double %104, ptr %1, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store double 2.000000e+00, ptr %2, align 8, !tbaa !13
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %106 = load double, ptr %105, align 8, !tbaa !13
  %107 = call double @log(double noundef %106) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %108 = icmp ugt i64 %.3117, 19
  %109 = uitofp i64 %103 to double
  %110 = fdiv double %104, %107
  %111 = fcmp ogt double %110, %109
  %or.cond187 = select i1 %108, i1 %111, i1 false
  %112 = fmul double %107, %104
  %113 = fcmp olt double %112, %109
  %or.cond189 = select i1 %or.cond187, i1 true, i1 %113
  br i1 %or.cond189, label %.loopexit, label %120

.loopexit:                                        ; preds = %100
  %114 = call 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)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %114, i64 noundef %.3117)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.5)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %116, i64 noundef %103)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.8)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

120:                                              ; preds = %100
  %121 = add nuw nsw i64 %.3117, 1
  %exitcond.not = icmp eq i64 %121, 10000
  br i1 %exitcond.not, label %.lr.ph119, label %100, !llvm.loop !16

.preheader95:                                     ; preds = %150
  %122 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK40008000000000000000)
  %123 = fptoui x86_fp80 %122 to i64
  %124 = icmp ult i64 %123, 2
  br i1 %124, label %.loopexit152, label %.peel.next146

.peel.next146:                                    ; preds = %.preheader95
  %125 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK4000C000000000000000)
  %126 = fptoui x86_fp80 %125 to i64
  %127 = icmp ult i64 %126, 3
  br i1 %127, label %.loopexit152, label %.peel.next147

.peel.next147:                                    ; preds = %.peel.next146
  %128 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef 0xK40018000000000000000)
  %129 = fptoui x86_fp80 %128 to i64
  %130 = icmp ult i64 %129, 4
  br i1 %130, label %.loopexit152, label %.peel.next149

.lr.ph119:                                        ; preds = %120, %150
  %.4118 = phi i64 [ %151, %150 ], [ 10000, %120 ]
  %131 = uitofp nneg i64 %.4118 to x86_fp80
  %132 = call noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef %131)
  %133 = fptoui x86_fp80 %132 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %134 = uitofp nneg i64 %.4118 to double
  store double %134, ptr %3, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store double 2.000000e+00, ptr %4, align 8, !tbaa !13
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %136 = load double, ptr %135, align 8, !tbaa !13
  %137 = call double @log(double noundef %136) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %138 = uitofp i64 %133 to double
  %139 = fdiv double %134, %137
  %140 = fcmp ogt double %139, %138
  %141 = fmul double %137, %134
  %142 = fcmp olt double %141, %138
  %or.cond = or i1 %140, %142
  br i1 %or.cond, label %143, label %150

143:                                              ; preds = %.lr.ph119
  %144 = call 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)
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %144, i64 noundef %.4118)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef nonnull @.str.5)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %146, i64 noundef %133)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @.str.8)
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

150:                                              ; preds = %.lr.ph119
  %151 = add nuw nsw i64 %.4118, 101
  %152 = icmp ult i64 %.4118, 99899
  br i1 %152, label %.lr.ph119, label %.preheader95, !llvm.loop !18

.peel.next149:                                    ; preds = %.peel.next147, %170
  %.5120 = phi i64 [ %171, %170 ], [ 5, %.peel.next147 ]
  %153 = uitofp nneg i64 %.5120 to x86_fp80
  %154 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %153)
  %155 = fptoui x86_fp80 %154 to i64
  %156 = uitofp nneg i64 %.5120 to double
  %157 = call double @log(double noundef %156) #9
  %158 = icmp ugt i64 %.5120, %155
  br i1 %158, label %.loopexit152, label %159

159:                                              ; preds = %.peel.next149
  %160 = uitofp i64 %155 to double
  %161 = fmul double %157, %156
  %162 = fmul double %157, %161
  %163 = fcmp olt double %162, %160
  br i1 %163, label %.loopexit152, label %170

.loopexit152:                                     ; preds = %159, %.peel.next149, %.peel.next147, %.peel.next146, %.preheader95
  %.5120.lcssa = phi i64 [ 2, %.preheader95 ], [ 3, %.peel.next146 ], [ 4, %.peel.next147 ], [ %.5120, %.peel.next149 ], [ %.5120, %159 ]
  %.lcssa129 = phi i64 [ %123, %.preheader95 ], [ %126, %.peel.next146 ], [ %129, %.peel.next147 ], [ %155, %.peel.next149 ], [ %155, %159 ]
  %164 = call 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)
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %164, i64 noundef %.5120.lcssa)
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull @.str.5)
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %166, i64 noundef %.lcssa129)
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @.str.8)
  %169 = call 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_)
  call void @exit(i32 noundef 1) #10
  unreachable

170:                                              ; preds = %159
  %171 = add nuw nsw i64 %.5120, 1
  %exitcond144.not = icmp eq i64 %171, 1000
  br i1 %exitcond144.not, label %.lr.ph122, label %.peel.next149, !llvm.loop !19

.lr.ph122:                                        ; preds = %170, %190
  %.6121 = phi i64 [ %191, %190 ], [ 1000, %170 ]
  %172 = uitofp nneg i64 %.6121 to x86_fp80
  %173 = call noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef %172)
  %174 = fptoui x86_fp80 %173 to i64
  %175 = uitofp nneg i64 %.6121 to double
  %176 = call double @log(double noundef %175) #9
  %177 = icmp ugt i64 %.6121, %174
  br i1 %177, label %183, label %178

178:                                              ; preds = %.lr.ph122
  %179 = uitofp i64 %174 to double
  %180 = fmul double %176, %175
  %181 = fmul double %176, %180
  %182 = fcmp olt double %181, %179
  br i1 %182, label %183, label %190

183:                                              ; preds = %178, %.lr.ph122
  %184 = call 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)
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %184, i64 noundef %.6121)
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull @.str.5)
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %186, i64 noundef %174)
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull @.str.8)
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

190:                                              ; preds = %178
  %191 = add nuw nsw i64 %.6121, 101
  %192 = icmp ult i64 %.6121, 99899
  br i1 %192, label %.lr.ph122, label %._crit_edge123, !llvm.loop !21

._crit_edge123:                                   ; preds = %190
  %193 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #9
  %194 = udiv i64 %193, 10
  %195 = call noundef i64 @_ZN10primesieve14nthPrimeApproxEm(i64 noundef %194)
  %196 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #9
  %.not = icmp eq i64 %195, %196
  br i1 %.not, label %202, label %197

197:                                              ; preds = %._crit_edge123
  %198 = call 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)
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %198, i64 noundef %194)
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull @.str.10)
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef 1) #10
  unreachable

202:                                              ; preds = %._crit_edge123
  %203 = call 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_)
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.11)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK10primesieve5ArrayImLm100EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(800)) local_unnamed_addr #5 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

declare noundef x86_fp80 @_ZN10primesieve8RiemannREe(x86_fp80 noundef) local_unnamed_addr #6

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

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

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

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

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

declare noundef x86_fp80 @_ZN10primesieve16RiemannR_inverseEe(x86_fp80 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #7

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

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

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

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

declare noundef i64 @_ZN10primesieve14nthPrimeApproxEm(i64 noundef) local_unnamed_addr #6

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 = { noreturn 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17}
!17 = !{!"llvm.loop.peeled.count", i32 2}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !20}
!20 = !{!"llvm.loop.peeled.count", i32 3}
!21 = distinct !{!21, !10}


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