; LLVM IR from stillwater-sc/universal :: applications/reproducibility/cryptography (fermat)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sw::universal::integer" = type { [32 x i32] }
%"class.std::random_device" = type { %union.anon }
%union.anon = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"class.sw::universal::primefactors" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.0" = type { double }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl" }
%"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl" = type { %"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { %"class.sw::universal::integer", %"class.sw::universal::integer" }

@_ZTIPKc = external constant ptr
@_ZTISt13runtime_error = external constant ptr
@_ZTIN2sw9universal30universal_arithmetic_exceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2sw9universal28universal_internal_exceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@_ZTIN2sw9universal16integer_overflowE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTIN2sw9universal7integerILj1024EjLNS0_17IntegerNumberTypeE0EEE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.sw::universal::integer", align 4
  %8 = alloca %"class.std::random_device", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::mersenne_twister_engine", align 8
  %12 = alloca %"class.std::uniform_real_distribution", align 16
  %13 = alloca %"class.sw::universal::primefactors", align 8
  %14 = alloca %"class.std::chrono::time_point", align 8
  %15 = alloca %"class.std::chrono::time_point", align 8
  %16 = alloca %"class.std::chrono::duration.0", align 8
  %17 = alloca %"class.std::chrono::duration", align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::stack", align 8
  %21 = alloca %"class.std::chrono::time_point", align 8
  %22 = alloca %"class.sw::universal::integer", align 4
  %23 = alloca %"class.sw::universal::integer", align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.sw::universal::integer", align 4
  %26 = alloca %"class.std::chrono::time_point", align 8
  %27 = alloca %"class.std::chrono::duration.0", align 8
  %28 = alloca %"class.std::chrono::duration", align 8
  %29 = alloca double, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #11
  store i64 1024, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #11
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 128, i1 false)
  %35 = getelementptr inbounds { <{ i32, [31 x i32] }> }, ptr %7, i32 0, i32 0
  %36 = getelementptr inbounds <{ i32, [31 x i32] }>, ptr %35, i32 0, i32 0
  store i32 53, ptr %36, align 4
  call void @llvm.lifetime.start.p0(i64 5000, ptr %8) #11
  invoke void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %8)
          to label %37 unwind label %74

37:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 5000, ptr %11) #11
  %38 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %8)
          to label %39 unwind label %78

39:                                               ; preds = %37
  %40 = zext i32 %38 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %11, i64 noundef %40)
          to label %41 unwind label %78

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #11
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %12, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK4012F424000000000000)
          to label %42 unwind label %82

42:                                               ; preds = %41
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %44 unwind label %82

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(128) %7)
          to label %46 unwind label %82

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %45, i8 noundef signext 10)
          to label %48 unwind label %82

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #11
  call void @_ZN2sw9universal12primefactorsINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  %49 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  %50 = getelementptr inbounds %"class.std::chrono::time_point", ptr %14, i32 0, i32 0
  %51 = getelementptr inbounds %"class.std::chrono::duration", ptr %50, i32 0, i32 0
  store i64 %49, ptr %51, align 8
  invoke void @_ZN2sw9universal18primeFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEEvRKT_RNS0_12primefactorsIS5_EE(ptr noundef nonnull align 4 dereferenceable(128) %7, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %52 unwind label %86

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %53 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  %54 = getelementptr inbounds %"class.std::chrono::time_point", ptr %15, i32 0, i32 0
  %55 = getelementptr inbounds %"class.std::chrono::duration", ptr %54, i32 0, i32 0
  store i64 %53, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  %56 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %57 unwind label %90

57:                                               ; preds = %52
  %58 = getelementptr inbounds %"class.std::chrono::duration", ptr %17, i32 0, i32 0
  store i64 %56, ptr %58, align 8
  %59 = invoke double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %60 unwind label %90

60:                                               ; preds = %57
  %61 = getelementptr inbounds %"class.std::chrono::duration.0", ptr %16, i32 0, i32 0
  store double %59, ptr %61, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %62 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %63 unwind label %94

63:                                               ; preds = %60
  store double %62, ptr %18, align 8, !tbaa !13
  %64 = load double, ptr %18, align 8, !tbaa !13
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %64)
          to label %66 unwind label %94

66:                                               ; preds = %63
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.1)
          to label %68 unwind label %94

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  store i64 0, ptr %19, align 8, !tbaa !11
  br label %69

69:                                               ; preds = %115, %68
  %70 = load i64, ptr %19, align 8, !tbaa !11
  %71 = call noundef i64 @_ZNKSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %98, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %122

74:                                               ; preds = %2
  %75 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %9, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %10, align 4
  br label %252

78:                                               ; preds = %39, %37
  %79 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %9, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %10, align 4
  br label %251

82:                                               ; preds = %122, %46, %44, %42, %41
  %83 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  br label %250

86:                                               ; preds = %48
  %87 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %154

90:                                               ; preds = %57, %52
  %91 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %153

94:                                               ; preds = %66, %63, %60
  %95 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %9, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %10, align 4
  br label %152

98:                                               ; preds = %69
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %100 unwind label %118

100:                                              ; preds = %98
  %101 = load i64, ptr %19, align 8, !tbaa !11
  %102 = call noundef nonnull align 4 dereferenceable(256) ptr @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %101) #11
  %103 = getelementptr inbounds %"struct.std::pair", ptr %102, i32 0, i32 0
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull align 4 dereferenceable(128) %103)
          to label %105 unwind label %118

105:                                              ; preds = %100
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.3)
          to label %107 unwind label %118

107:                                              ; preds = %105
  %108 = load i64, ptr %19, align 8, !tbaa !11
  %109 = call noundef nonnull align 4 dereferenceable(256) ptr @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %108) #11
  %110 = getelementptr inbounds %"struct.std::pair", ptr %109, i32 0, i32 1
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(128) %110)
          to label %112 unwind label %118

112:                                              ; preds = %107
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %111, i8 noundef signext 10)
          to label %114 unwind label %118

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %19, align 8, !tbaa !11
  %117 = add i64 %116, 1
  store i64 %117, ptr %19, align 8, !tbaa !11
  br label %69, !llvm.loop !15

118:                                              ; preds = %112, %107, %105, %100, %98
  %119 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %152

122:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #11
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %124 unwind label %82

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #11
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEEC2IS7_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %125 unwind label %155

125:                                              ; preds = %124
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 4 dereferenceable(128) %7)
          to label %126 unwind label %159

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %127 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  %128 = getelementptr inbounds %"class.std::chrono::time_point", ptr %21, i32 0, i32 0
  %129 = getelementptr inbounds %"class.std::chrono::duration", ptr %128, i32 0, i32 0
  store i64 %127, ptr %129, align 8
  br label %130

130:                                              ; preds = %181, %179, %126
  %131 = invoke noundef zeroext i1 @_ZNKSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %132 unwind label %163

132:                                              ; preds = %130
  %133 = xor i1 %131, true
  br i1 %133, label %134, label %188

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 128, ptr %22) #11
  %135 = invoke noundef nonnull align 4 dereferenceable(128) ptr @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %136 unwind label %167

136:                                              ; preds = %134
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %135, i64 128, i1 false), !tbaa.struct !17
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %20)
          to label %137 unwind label %167

137:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 128, ptr %23) #11
  invoke void @_ZN2sw9universal19fermatFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEET_RKS5_(ptr dead_on_unwind writable sret(%"class.sw::universal::integer") align 4 %23, ptr noundef nonnull align 4 dereferenceable(128) %22)
          to label %138 unwind label %171

138:                                              ; preds = %137
  %139 = invoke noundef zeroext i1 @_ZN2sw9universaleqILj1024EjLNS0_17IntegerNumberTypeE0EiEEbRKNS0_7integerIXT_ET0_XT1_EEET2_(ptr noundef nonnull align 4 dereferenceable(128) %23, i32 noundef 1)
          to label %140 unwind label %171

140:                                              ; preds = %138
  br i1 %139, label %141, label %175

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

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull align 4 dereferenceable(128) %22)
          to label %145 unwind label %171

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef @.str.3)
          to label %147 unwind label %171

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(128) %23)
          to label %149 unwind label %171

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %148, i8 noundef signext 10)
          to label %151 unwind label %171

151:                                              ; preds = %149
  store i32 5, ptr %24, align 4
  br label %179, !llvm.loop !19

152:                                              ; preds = %118, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  br label %153

153:                                              ; preds = %152, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %154

154:                                              ; preds = %153, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #11
  br label %250

155:                                              ; preds = %124
  %156 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %9, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %10, align 4
  br label %216

159:                                              ; preds = %125
  %160 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %9, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %10, align 4
  br label %215

163:                                              ; preds = %130
  %164 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %9, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %10, align 4
  br label %214

167:                                              ; preds = %136, %134
  %168 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  br label %187

171:                                              ; preds = %175, %149, %147, %145, %143, %141, %138, %137
  %172 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %9, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %10, align 4
  br label %186

175:                                              ; preds = %140
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 4 dereferenceable(128) %23)
          to label %176 unwind label %171

176:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 128, ptr %25) #11
  invoke void @_ZN2sw9universaldvILj1024EjLNS0_17IntegerNumberTypeE0EEENS0_7integerIXT_ET0_XT1_EEERKS5_S7_(ptr dead_on_unwind writable sret(%"class.sw::universal::integer") align 4 %25, ptr noundef nonnull align 4 dereferenceable(128) %22, ptr noundef nonnull align 4 dereferenceable(128) %23)
          to label %177 unwind label %182

177:                                              ; preds = %176
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull align 4 dereferenceable(128) %25)
          to label %178 unwind label %182

178:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #11
  store i32 0, ptr %24, align 4
  br label %179

179:                                              ; preds = %178, %151
  call void @llvm.lifetime.end.p0(i64 128, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #11
  %180 = load i32, ptr %24, align 4
  switch i32 %180, label %359 [
    i32 0, label %181
    i32 5, label %130
  ]

181:                                              ; preds = %179
  br label %130, !llvm.loop !19

182:                                              ; preds = %177, %176
  %183 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %9, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #11
  br label %186

186:                                              ; preds = %182, %171
  call void @llvm.lifetime.end.p0(i64 128, ptr %23) #11
  br label %187

187:                                              ; preds = %186, %167
  call void @llvm.lifetime.end.p0(i64 128, ptr %22) #11
  br label %214

188:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  %189 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  %190 = getelementptr inbounds %"class.std::chrono::time_point", ptr %26, i32 0, i32 0
  %191 = getelementptr inbounds %"class.std::chrono::duration", ptr %190, i32 0, i32 0
  store i64 %189, ptr %191, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %192 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %193 unwind label %205

193:                                              ; preds = %188
  %194 = getelementptr inbounds %"class.std::chrono::duration", ptr %28, i32 0, i32 0
  store i64 %192, ptr %194, align 8
  %195 = invoke double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %196 unwind label %205

196:                                              ; preds = %193
  %197 = getelementptr inbounds %"class.std::chrono::duration.0", ptr %27, i32 0, i32 0
  store double %195, ptr %197, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %198 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %199 unwind label %209

199:                                              ; preds = %196
  store double %198, ptr %29, align 8, !tbaa !13
  %200 = load double, ptr %29, align 8, !tbaa !13
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %200)
          to label %202 unwind label %209

202:                                              ; preds = %199
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.1)
          to label %204 unwind label %209

204:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #11
  br label %239

205:                                              ; preds = %193, %188
  %206 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %9, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  br label %213

209:                                              ; preds = %202, %199, %196
  %210 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %9, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %213

213:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  br label %214

214:                                              ; preds = %213, %187, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  br label %215

215:                                              ; preds = %214, %159
  call void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #11
  br label %216

216:                                              ; preds = %215, %155
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #11
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %10, align 4
  %219 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN2sw9universal16integer_overflowE) #11
  %220 = icmp eq i32 %218, %219
  br i1 %220, label %221, label %250

221:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  %222 = load ptr, ptr %9, align 8
  %223 = call ptr @__cxa_begin_catch(ptr %222) #11
  store ptr %223, ptr %30, align 8
  %224 = load ptr, ptr %30, align 8, !tbaa !9
  %225 = load ptr, ptr %224, align 8, !tbaa !20
  %226 = getelementptr inbounds ptr, ptr %225, i64 2
  %227 = load ptr, ptr %226, align 8
  %228 = call noundef ptr %227(ptr noundef nonnull align 8 dereferenceable(16) %224) #11
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %228)
          to label %230 unwind label %240

230:                                              ; preds = %221
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %229, i8 noundef signext 10)
          to label %232 unwind label %240

232:                                              ; preds = %230
  %233 = call noundef ptr @_ZNKSt9type_info4nameEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN2sw9universal7integerILj1024EjLNS0_17IntegerNumberTypeE0EEE) #11
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %233)
          to label %235 unwind label %240

235:                                              ; preds = %232
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef @.str.6)
          to label %237 unwind label %240

237:                                              ; preds = %235
  invoke void @__cxa_end_catch()
          to label %238 unwind label %244

238:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %239

239:                                              ; preds = %238, %204
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 5000, ptr %11) #11
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %8) #11
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #11
  store i32 0, ptr %3, align 4
  br label %349

240:                                              ; preds = %235, %232, %230, %221
  %241 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %9, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %248 unwind label %356

244:                                              ; preds = %237
  %245 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %9, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %10, align 4
  br label %249

248:                                              ; preds = %240
  br label %249

249:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %250

250:                                              ; preds = %249, %217, %154, %82
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  br label %251

251:                                              ; preds = %250, %78
  call void @llvm.lifetime.end.p0(i64 5000, ptr %11) #11
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %8) #11
  br label %252

252:                                              ; preds = %251, %74
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #11
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %10, align 4
  %255 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIPKc) #11
  %256 = icmp eq i32 %254, %255
  br i1 %256, label %257, label %267

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #11
  %258 = load ptr, ptr %9, align 8
  %259 = call ptr @__cxa_begin_catch(ptr %258) #11
  store ptr %259, ptr %34, align 8
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.11)
          to label %261 unwind label %345

261:                                              ; preds = %257
  %262 = load ptr, ptr %34, align 8, !tbaa !9
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef %262)
          to label %264 unwind label %345

264:                                              ; preds = %261
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %266 unwind label %345

266:                                              ; preds = %264
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @__cxa_end_catch() #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %349

267:                                              ; preds = %253
  %268 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE) #11
  %269 = icmp eq i32 %254, %268
  br i1 %269, label %270, label %284

270:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %271 = load ptr, ptr %9, align 8
  %272 = call ptr @__cxa_begin_catch(ptr %271) #11
  store ptr %272, ptr %33, align 8
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.10)
          to label %274 unwind label %340

274:                                              ; preds = %270
  %275 = load ptr, ptr %33, align 8, !tbaa !9
  %276 = load ptr, ptr %275, align 8, !tbaa !20
  %277 = getelementptr inbounds ptr, ptr %276, i64 2
  %278 = load ptr, ptr %277, align 8
  %279 = call noundef ptr %278(ptr noundef nonnull align 8 dereferenceable(16) %275) #11
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %273, ptr noundef %279)
          to label %281 unwind label %340

281:                                              ; preds = %274
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %280, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %283 unwind label %340

283:                                              ; preds = %281
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br label %349

284:                                              ; preds = %267
  %285 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN2sw9universal28universal_internal_exceptionE) #11
  %286 = icmp eq i32 %254, %285
  br i1 %286, label %287, label %301

287:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #11
  %288 = load ptr, ptr %9, align 8
  %289 = call ptr @__cxa_begin_catch(ptr %288) #11
  store ptr %289, ptr %32, align 8
  %290 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.9)
          to label %291 unwind label %335

291:                                              ; preds = %287
  %292 = load ptr, ptr %32, align 8, !tbaa !9
  %293 = load ptr, ptr %292, align 8, !tbaa !20
  %294 = getelementptr inbounds ptr, ptr %293, i64 2
  %295 = load ptr, ptr %294, align 8
  %296 = call noundef ptr %295(ptr noundef nonnull align 8 dereferenceable(16) %292) #11
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef %296)
          to label %298 unwind label %335

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

300:                                              ; preds = %298
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  br label %349

301:                                              ; preds = %284
  %302 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt13runtime_error) #11
  %303 = icmp eq i32 %254, %302
  br i1 %303, label %304, label %318

304:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #11
  %305 = load ptr, ptr %9, align 8
  %306 = call ptr @__cxa_begin_catch(ptr %305) #11
  store ptr %306, ptr %31, align 8
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
          to label %308 unwind label %330

308:                                              ; preds = %304
  %309 = load ptr, ptr %31, align 8, !tbaa !9
  %310 = load ptr, ptr %309, align 8, !tbaa !20
  %311 = getelementptr inbounds ptr, ptr %310, i64 2
  %312 = load ptr, ptr %311, align 8
  %313 = call noundef ptr %312(ptr noundef nonnull align 8 dereferenceable(16) %309) #11
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %307, ptr noundef %313)
          to label %315 unwind label %330

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

317:                                              ; preds = %315
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  br label %349

318:                                              ; preds = %301
  %319 = load ptr, ptr %9, align 8
  %320 = call ptr @__cxa_begin_catch(ptr %319) #11
  %321 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
          to label %322 unwind label %325

322:                                              ; preds = %318
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %321, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %324 unwind label %325

324:                                              ; preds = %322
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @__cxa_end_catch()
  br label %349

325:                                              ; preds = %322, %318
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %9, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %329 unwind label %356

329:                                              ; preds = %325
  br label %351

330:                                              ; preds = %315, %308, %304
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %9, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %334 unwind label %356

334:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  br label %351

335:                                              ; preds = %298, %291, %287
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %9, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %339 unwind label %356

339:                                              ; preds = %335
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  br label %351

340:                                              ; preds = %281, %274, %270
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %9, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %10, align 4
  invoke void @__cxa_end_catch()
          to label %344 unwind label %356

344:                                              ; preds = %340
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br label %351

345:                                              ; preds = %264, %261, %257
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %9, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %10, align 4
  call void @__cxa_end_catch() #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %351

349:                                              ; preds = %324, %317, %300, %283, %266, %239
  %350 = load i32, ptr %3, align 4
  ret i32 %350

351:                                              ; preds = %345, %344, %339, %334, %329
  %352 = load ptr, ptr %9, align 8
  %353 = load i32, ptr %10, align 4
  %354 = insertvalue { ptr, i32 } poison, ptr %352, 0
  %355 = insertvalue { ptr, i32 } %354, i32 %353, 1
  resume { ptr, i32 } %355

356:                                              ; preds = %340, %335, %330, %325, %240
  %357 = landingpad { ptr, i32 }
          catch ptr null
  %358 = extractvalue { ptr, i32 } %357, 0
  call void @__clang_call_terminate(ptr %358) #12
  unreachable

359:                                              ; preds = %179
  unreachable
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

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

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #6

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

; Function Attrs: mustprogress uwtable
declare dso_local double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(128)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(128) ptr @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) #7 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) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2sw9universal19fermatFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEET_RKS5_(ptr dead_on_unwind noalias writable sret(%"class.sw::universal::integer") align 4, ptr noundef nonnull align 4 dereferenceable(128)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2sw9universaleqILj1024EjLNS0_17IntegerNumberTypeE0EiEEbRKNS0_7integerIXT_ET0_XT1_EEET2_(ptr noundef nonnull align 4 dereferenceable(128), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(128)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2sw9universaldvILj1024EjLNS0_17IntegerNumberTypeE0EEENS0_7integerIXT_ET0_XT1_EEERKS5_S7_(ptr dead_on_unwind noalias writable sret(%"class.sw::universal::integer") align 4, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(128)) #4

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #10

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #7 align 2

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sw::universal::integer" = type { [32 x i32] }
%"class.std::random_device" = type { %union.anon }
%union.anon = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"class.sw::universal::primefactors" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>, std::allocator<std::pair<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.0" = type { double }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl" }
%"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl" = type { %"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>, std::allocator<sw::universal::integer<1024, unsigned int, sw::universal::IntegerNumberType::IntegerNumber>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@_ZTIPKc = external constant ptr
@_ZTISt13runtime_error = external constant ptr
@_ZTIN2sw9universal30universal_arithmetic_exceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN2sw9universal28universal_internal_exceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 x i8], align 1
@_ZTIN2sw9universal16integer_overflowE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTIN2sw9universal7integerILj1024EjLNS0_17IntegerNumberTypeE0EEE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sw::universal::integer", align 4
  %4 = alloca %"class.std::random_device", align 8
  %5 = alloca %"class.std::mersenne_twister_engine", align 8
  %6 = alloca %"class.std::uniform_real_distribution", align 16
  %7 = alloca %"class.sw::universal::primefactors", align 8
  %8 = alloca %"class.std::chrono::time_point", align 8
  %9 = alloca %"class.std::chrono::time_point", align 8
  %10 = alloca %"class.std::chrono::duration.0", align 8
  %11 = alloca %"class.std::chrono::duration", align 8
  %12 = alloca %"class.std::stack", align 8
  %13 = alloca %"class.std::chrono::time_point", align 8
  %14 = alloca %"class.sw::universal::integer", align 4
  %15 = alloca %"class.sw::universal::integer", align 4
  %16 = alloca %"class.sw::universal::integer", align 4
  %17 = alloca %"class.std::chrono::time_point", align 8
  %18 = alloca %"class.std::chrono::duration.0", align 8
  %19 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #11
  %20 = getelementptr inbounds i8, ptr %3, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %20, i8 0, i64 124, i1 false)
  store i32 53, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %4) #11
  invoke void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %21 unwind label %46

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %5) #11
  %22 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %23 unwind label %50

23:                                               ; preds = %21
  %24 = zext i32 %22 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %5, i64 noundef %24)
          to label %25 unwind label %50

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %6, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK4012F424000000000000)
          to label %26 unwind label %54

26:                                               ; preds = %25
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %28 unwind label %54

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(128) %3)
          to label %30 unwind label %54

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %29, i8 noundef signext 10)
          to label %32 unwind label %54

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #11
  call void @_ZN2sw9universal12primefactorsINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  %33 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  store i64 %33, ptr %8, align 8
  invoke void @_ZN2sw9universal18primeFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEEvRKT_RNS0_12primefactorsIS5_EE(ptr noundef nonnull align 4 dereferenceable(128) %3, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %34 unwind label %58

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %35 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  store i64 %35, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  %36 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %37 unwind label %60

37:                                               ; preds = %34
  store i64 %36, ptr %11, align 8
  %38 = invoke double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %39 unwind label %60

39:                                               ; preds = %37
  store double %38, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  %40 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %40)
          to label %42 unwind label %62

42:                                               ; preds = %39
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @.str.1)
          to label %.preheader unwind label %62

.preheader:                                       ; preds = %42
  %44 = call noundef i64 @_ZNKSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  %.not = icmp eq i64 %44, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %76, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #11
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %82 unwind label %54

46:                                               ; preds = %2
  %47 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %48 = extractvalue { ptr, i32 } %47, 0
  %49 = extractvalue { ptr, i32 } %47, 1
  br label %160

50:                                               ; preds = %23, %21
  %51 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  %53 = extractvalue { ptr, i32 } %51, 1
  br label %159

54:                                               ; preds = %._crit_edge, %30, %28, %26, %25
  %55 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  %56 = extractvalue { ptr, i32 } %55, 0
  %57 = extractvalue { ptr, i32 } %55, 1
  br label %158

58:                                               ; preds = %32
  %59 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %101

60:                                               ; preds = %37, %34
  %61 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  br label %100

62:                                               ; preds = %42, %39
  %63 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %100

.lr.ph:                                           ; preds = %.preheader, %76
  %.03550 = phi i64 [ %77, %76 ], [ 0, %.preheader ]
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %65 unwind label %80

65:                                               ; preds = %.lr.ph
  %66 = call noundef nonnull align 4 dereferenceable(256) ptr @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.03550) #11
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(128) %66)
          to label %68 unwind label %80

68:                                               ; preds = %65
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @.str.3)
          to label %70 unwind label %80

70:                                               ; preds = %68
  %71 = call noundef nonnull align 4 dereferenceable(256) ptr @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.03550) #11
  %72 = getelementptr inbounds i8, ptr %71, i64 128
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(128) %72)
          to label %74 unwind label %80

74:                                               ; preds = %70
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %73, i8 noundef signext 10)
          to label %76 unwind label %80

76:                                               ; preds = %74
  %77 = add nuw i64 %.03550, 1
  %78 = call noundef i64 @_ZNKSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  %79 = icmp ult i64 %77, %78
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !5

80:                                               ; preds = %74, %70, %68, %65, %.lr.ph
  %81 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %100

82:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #11
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEEC2IS7_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %83 unwind label %102

83:                                               ; preds = %82
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 4 dereferenceable(128) %3)
          to label %84 unwind label %104

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  %85 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  store i64 %85, ptr %13, align 8
  %86 = call noundef zeroext i1 @_ZNKSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  br i1 %86, label %._crit_edge53, label %.lr.ph52

.lr.ph52:                                         ; preds = %84, %112
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %14) #11
  %87 = call noundef nonnull align 4 dereferenceable(128) ptr @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %14, ptr noundef nonnull align 4 dereferenceable(128) %87, i64 128, i1 false), !tbaa.struct !7
  call void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %15) #11
  invoke void @_ZN2sw9universal19fermatFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEET_RKS5_(ptr dead_on_unwind nonnull writable sret(%"class.sw::universal::integer") align 4 %15, ptr noundef nonnull align 4 dereferenceable(128) %14)
          to label %88 unwind label %106

88:                                               ; preds = %.lr.ph52
  %89 = call noundef zeroext i1 @_ZN2sw9universaleqILj1024EjLNS0_17IntegerNumberTypeE0EiEEbRKNS0_7integerIXT_ET0_XT1_EEET2_(ptr noundef nonnull align 4 dereferenceable(128) %15, i32 noundef 1)
  br i1 %89, label %90, label %108

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %92 unwind label %106

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull align 4 dereferenceable(128) %14)
          to label %94 unwind label %106

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

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN2sw9universallsILj1024EjLNS0_17IntegerNumberTypeE0EEERSoS3_RKNS0_7integerIXT_ET0_XT1_EEE(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(128) %15)
          to label %98 unwind label %106

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %97, i8 noundef signext 10)
          to label %112 unwind label %106, !llvm.loop !11

100:                                              ; preds = %62, %80, %60
  %.pn44.pn = phi { ptr, i32 } [ %61, %60 ], [ %81, %80 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  br label %101

101:                                              ; preds = %100, %58
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %100 ], [ %59, %58 ]
  %.2 = extractvalue { ptr, i32 } %.pn44.pn.pn, 0
  %.224 = extractvalue { ptr, i32 } %.pn44.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @_ZNSt6vectorISt4pairIN2sw9universal7integerILj1024EjLNS2_17IntegerNumberTypeE0EEES5_ESaIS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #11
  br label %158

102:                                              ; preds = %82
  %103 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %134

104:                                              ; preds = %83
  %105 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %133

106:                                              ; preds = %108, %98, %96, %94, %92, %90, %.lr.ph52
  %107 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %116

108:                                              ; preds = %88
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 4 dereferenceable(128) %15)
          to label %109 unwind label %106

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %16) #11
  invoke void @_ZN2sw9universaldvILj1024EjLNS0_17IntegerNumberTypeE0EEENS0_7integerIXT_ET0_XT1_EEERKS5_S7_(ptr dead_on_unwind nonnull writable sret(%"class.sw::universal::integer") align 4 %16, ptr noundef nonnull align 4 dereferenceable(128) %14, ptr noundef nonnull align 4 dereferenceable(128) %15)
          to label %110 unwind label %114

110:                                              ; preds = %109
  invoke void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 4 dereferenceable(128) %16)
          to label %111 unwind label %114

111:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %16) #11
  br label %112

112:                                              ; preds = %98, %111
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #11
  %113 = call noundef zeroext i1 @_ZNKSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  br i1 %113, label %._crit_edge53, label %.lr.ph52

114:                                              ; preds = %110, %109
  %115 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %16) #11
  br label %116

116:                                              ; preds = %114, %106
  %.pn37 = phi { ptr, i32 } [ %107, %106 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #11
  br label %132

._crit_edge53:                                    ; preds = %112, %84
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #11
  %117 = call i64 @_ZNSt6chrono3_V212steady_clock3nowEv() #11
  store i64 %117, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #11
  %118 = invoke i64 @_ZNSt6chronomiINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %119 unwind label %127

119:                                              ; preds = %._crit_edge53
  store i64 %118, ptr %19, align 8
  %120 = invoke double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %121 unwind label %127

121:                                              ; preds = %119
  store double %120, ptr %18, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #11
  %122 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %122)
          to label %124 unwind label %129

124:                                              ; preds = %121
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @.str.1)
          to label %126 unwind label %129

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  call void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  br label %152

127:                                              ; preds = %119, %._crit_edge53
  %128 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #11
  br label %131

129:                                              ; preds = %124, %121
  %130 = landingpad { ptr, i32 }
          catch ptr @_ZTIN2sw9universal16integer_overflowE
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %131

131:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #11
  br label %132

132:                                              ; preds = %131, %116
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %116 ], [ %.pn, %131 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  br label %133

133:                                              ; preds = %132, %104
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %132 ], [ %105, %104 ]
  call void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #11
  br label %134

134:                                              ; preds = %133, %102
  %.pn37.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn, %133 ], [ %103, %102 ]
  %.7 = extractvalue { ptr, i32 } %.pn37.pn.pn.pn, 0
  %.729 = extractvalue { ptr, i32 } %.pn37.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #11
  %135 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN2sw9universal16integer_overflowE) #11
  %136 = icmp eq i32 %.729, %135
  br i1 %136, label %137, label %158

137:                                              ; preds = %134
  %138 = call ptr @__cxa_begin_catch(ptr %.7) #11
  %139 = load ptr, ptr %138, align 8, !tbaa !12
  %140 = getelementptr inbounds i8, ptr %139, i64 16
  %141 = load ptr, ptr %140, align 8
  %142 = call noundef ptr %141(ptr noundef nonnull align 8 dereferenceable(16) %138) #11
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %142)
          to label %144 unwind label %153

144:                                              ; preds = %137
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %143, i8 noundef signext 10)
          to label %146 unwind label %153

146:                                              ; preds = %144
  %147 = call noundef ptr @_ZNKSt9type_info4nameEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZTIN2sw9universal7integerILj1024EjLNS0_17IntegerNumberTypeE0EEE) #11
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %147)
          to label %149 unwind label %153

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %148, ptr noundef nonnull @.str.6)
          to label %151 unwind label %153

151:                                              ; preds = %149
  invoke void @__cxa_end_catch()
          to label %152 unwind label %155

152:                                              ; preds = %151, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %5) #11
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #11
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #11
  br label %231

153:                                              ; preds = %149, %146, %144, %137
  %154 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  invoke void @__cxa_end_catch()
          to label %157 unwind label %233

155:                                              ; preds = %151
  %156 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
          catch ptr @_ZTIN2sw9universal30universal_arithmetic_exceptionE
          catch ptr @_ZTIN2sw9universal28universal_internal_exceptionE
          catch ptr @_ZTISt13runtime_error
          catch ptr null
  br label %157

157:                                              ; preds = %153, %155
  %.pn42 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  %.8 = extractvalue { ptr, i32 } %.pn42, 0
  %.830 = extractvalue { ptr, i32 } %.pn42, 1
  br label %158

158:                                              ; preds = %157, %134, %101, %54
  %.931 = phi i32 [ %.224, %101 ], [ %.830, %157 ], [ %.729, %134 ], [ %57, %54 ]
  %.9 = phi ptr [ %.2, %101 ], [ %.8, %157 ], [ %.7, %134 ], [ %56, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  br label %159

159:                                              ; preds = %158, %50
  %.1032 = phi i32 [ %.931, %158 ], [ %53, %50 ]
  %.10 = phi ptr [ %.9, %158 ], [ %52, %50 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %5) #11
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #11
  br label %160

160:                                              ; preds = %159, %46
  %.1133 = phi i32 [ %.1032, %159 ], [ %49, %46 ]
  %.11 = phi ptr [ %.10, %159 ], [ %48, %46 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #11
  %161 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIPKc) #11
  %162 = icmp eq i32 %.1133, %161
  br i1 %162, label %163, label %171

163:                                              ; preds = %160
  %164 = call ptr @__cxa_begin_catch(ptr %.11) #11
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.11)
          to label %166 unwind label %229

166:                                              ; preds = %163
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef %164)
          to label %168 unwind label %229

168:                                              ; preds = %166
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %170 unwind label %229

170:                                              ; preds = %168
  call void @__cxa_end_catch() #11
  br label %231

171:                                              ; preds = %160
  %172 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN2sw9universal30universal_arithmetic_exceptionE) #11
  %173 = icmp eq i32 %.1133, %172
  br i1 %173, label %174, label %186

174:                                              ; preds = %171
  %175 = call ptr @__cxa_begin_catch(ptr %.11) #11
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.10)
          to label %177 unwind label %227

177:                                              ; preds = %174
  %178 = load ptr, ptr %175, align 8, !tbaa !12
  %179 = getelementptr inbounds i8, ptr %178, i64 16
  %180 = load ptr, ptr %179, align 8
  %181 = call noundef ptr %180(ptr noundef nonnull align 8 dereferenceable(16) %175) #11
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef %181)
          to label %183 unwind label %227

183:                                              ; preds = %177
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %185 unwind label %227

185:                                              ; preds = %183
  call void @__cxa_end_catch()
  br label %231

186:                                              ; preds = %171
  %187 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN2sw9universal28universal_internal_exceptionE) #11
  %188 = icmp eq i32 %.1133, %187
  br i1 %188, label %189, label %201

189:                                              ; preds = %186
  %190 = call ptr @__cxa_begin_catch(ptr %.11) #11
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.9)
          to label %192 unwind label %225

192:                                              ; preds = %189
  %193 = load ptr, ptr %190, align 8, !tbaa !12
  %194 = getelementptr inbounds i8, ptr %193, i64 16
  %195 = load ptr, ptr %194, align 8
  %196 = call noundef ptr %195(ptr noundef nonnull align 8 dereferenceable(16) %190) #11
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef %196)
          to label %198 unwind label %225

198:                                              ; preds = %192
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %200 unwind label %225

200:                                              ; preds = %198
  call void @__cxa_end_catch()
  br label %231

201:                                              ; preds = %186
  %202 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt13runtime_error) #11
  %203 = icmp eq i32 %.1133, %202
  %204 = call ptr @__cxa_begin_catch(ptr %.11) #11
  br i1 %203, label %205, label %216

205:                                              ; preds = %201
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
          to label %207 unwind label %223

207:                                              ; preds = %205
  %208 = load ptr, ptr %204, align 8, !tbaa !12
  %209 = getelementptr inbounds i8, ptr %208, i64 16
  %210 = load ptr, ptr %209, align 8
  %211 = call noundef ptr %210(ptr noundef nonnull align 8 dereferenceable(16) %204) #11
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef %211)
          to label %213 unwind label %223

213:                                              ; preds = %207
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %223

215:                                              ; preds = %213
  call void @__cxa_end_catch()
  br label %231

216:                                              ; preds = %201
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
          to label %218 unwind label %221

218:                                              ; preds = %216
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %220 unwind label %221

220:                                              ; preds = %218
  call void @__cxa_end_catch()
  br label %231

221:                                              ; preds = %218, %216
  %222 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %232 unwind label %233

223:                                              ; preds = %213, %207, %205
  %224 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %232 unwind label %233

225:                                              ; preds = %198, %192, %189
  %226 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %232 unwind label %233

227:                                              ; preds = %183, %177, %174
  %228 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %232 unwind label %233

229:                                              ; preds = %168, %166, %163
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_end_catch() #11
  br label %232

231:                                              ; preds = %220, %215, %200, %185, %170, %152
  %.0 = phi i32 [ 1, %170 ], [ 1, %185 ], [ 1, %200 ], [ 1, %215 ], [ 1, %220 ], [ 0, %152 ]
  ret i32 %.0

232:                                              ; preds = %227, %225, %223, %221, %229
  %.pn48 = phi { ptr, i32 } [ %230, %229 ], [ %222, %221 ], [ %224, %223 ], [ %226, %225 ], [ %228, %227 ]
  resume { ptr, i32 } %.pn48

233:                                              ; preds = %227, %225, %223, %221, %153
  %234 = landingpad { ptr, i32 }
          catch ptr null
  %235 = extractvalue { ptr, i32 } %234, 0
  call void @__clang_call_terminate(ptr %235) #12
  unreachable
}

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212steady_clock3nowEv() local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local double @_ZNSt6chrono13duration_castINS_8durationIdSt5ratioILl1ELl1EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushERKS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(128)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(128) ptr @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress 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) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2sw9universal19fermatFactorizationINS0_7integerILj1024EjLNS0_17IntegerNumberTypeE0EEEEET_RKS5_(ptr dead_on_unwind noalias writable sret(%"class.sw::universal::integer") align 4, ptr noundef nonnull align 4 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2sw9universaleqILj1024EjLNS0_17IntegerNumberTypeE0EiEEbRKNS0_7integerIXT_ET0_XT1_EEET2_(ptr noundef nonnull align 4 dereferenceable(128), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5stackIN2sw9universal7integerILj1024EjLNS1_17IntegerNumberTypeE0EEESt5dequeIS4_SaIS4_EEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(128)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN2sw9universaldvILj1024EjLNS0_17IntegerNumberTypeE0EEENS0_7integerIXT_ET0_XT1_EEERKS5_S7_(ptr dead_on_unwind noalias writable sret(%"class.sw::universal::integer") align 4, ptr noundef nonnull align 4 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(128)) local_unnamed_addr #4

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #10

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #7 align 2

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass