; LLVM IR from ShahjalalShohag/code-library :: Number Theory/Prime Factorization Fastest.ll (Z11rho_pollardRKm)

; 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::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_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }
%struct.Mint = type { i64 }

@__dso_handle = external hidden global i8
@_ZN4Mint3modE = external dso_local global i64, align 8
@_ZZ11rho_pollardRKmE3rng = external hidden global %"class.std::random_device", align 8
@_ZGVZ11rho_pollardRKmE3rng = external hidden global i64, align 8

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8is_primeRKm(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z11rho_pollardRKm(ptr noundef nonnull align 8 dereferenceable(8) %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::uniform_int_distribution", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %struct.Mint, align 8
  %12 = alloca i64, align 8
  %13 = alloca %struct.Mint, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.Mint, align 8
  %16 = alloca %struct.Mint, align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.Mint, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %struct.Mint, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %32 = xor i64 %31, -1
  %33 = and i64 %32, 1
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %1
  store i64 2, ptr %2, align 8
  br label %192

36:                                               ; preds = %1
  %37 = load atomic i8, ptr @_ZGVZ11rho_pollardRKmE3rng acquire, align 8
  %38 = icmp eq i8 %37, 0
  br i1 %38, label %39, label %45, !prof !11

39:                                               ; preds = %36
  %40 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ11rho_pollardRKmE3rng) #0
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  invoke void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
          to label %43 unwind label %55

43:                                               ; preds = %42
  %44 = call i32 @__cxa_atexit(ptr @_ZNSt13random_deviceD2Ev, ptr @_ZZ11rho_pollardRKmE3rng, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZ11rho_pollardRKmE3rng) #0
  br label %45

45:                                               ; preds = %43, %39, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #0
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = sub i64 %47, 1
  call void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1, i64 noundef %48)
  %49 = load i64, ptr @_ZN4Mint3modE, align 8, !tbaa !9
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = icmp ne i64 %49, %51
  br i1 %52, label %53, label %59

53:                                               ; preds = %45
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Mint7set_modERKm(ptr noundef nonnull align 8 dereferenceable(8) %54)
  br label %59

55:                                               ; preds = %42
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %4, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %5, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ11rho_pollardRKmE3rng) #0
  br label %194

59:                                               ; preds = %53, %45
  br label %60

60:                                               ; preds = %190, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #0
  %61 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt13random_deviceEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
  store i64 %61, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #0
  store i64 1, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #0
  store i64 1, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  store i64 500, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #0
  %62 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt13random_deviceEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
  store i64 %62, ptr %12, align 8, !tbaa !9
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #0
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #0
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #0
  store i64 0, ptr %17, align 8, !tbaa !9
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #0
  store i64 1, ptr %19, align 8, !tbaa !9
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #0
  br label %63

63:                                               ; preds = %144, %60
  %64 = load i64, ptr %8, align 8, !tbaa !9
  %65 = icmp eq i64 %64, 1
  br i1 %65, label %66, label %147

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.Mint, ptr %11, i32 0, i32 0
  %68 = load i64, ptr %67, align 8, !tbaa !12
  %69 = getelementptr inbounds %struct.Mint, ptr %13, i32 0, i32 0
  store i64 %68, ptr %69, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #0
  store i32 1, ptr %20, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %79, %66
  %71 = load i32, ptr %20, align 4, !tbaa !14
  %72 = zext i32 %71 to i64
  %73 = load i64, ptr %9, align 8, !tbaa !9
  %74 = icmp ule i64 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #0
  br label %82

76:                                               ; preds = %70
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  br label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %20, align 4, !tbaa !14
  %81 = add i32 %80, 1
  store i32 %81, ptr %20, align 4, !tbaa !14
  br label %70, !llvm.loop !16

82:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #0
  store i64 0, ptr %21, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %136, %82
  %84 = load i64, ptr %21, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %87, label %90

87:                                               ; preds = %83
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = icmp eq i64 %88, 1
  br label %90

90:                                               ; preds = %87, %83
  %91 = phi i1 [ false, %83 ], [ %89, %87 ]
  br i1 %91, label %92, label %144

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #0
  store i32 1, ptr %22, align 4, !tbaa !14
  br label %93

93:                                               ; preds = %133, %92
  %94 = load i32, ptr %22, align 4, !tbaa !14
  %95 = zext i32 %94 to i64
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = load i64, ptr %21, align 8, !tbaa !9
  %99 = sub i64 %97, %98
  %100 = icmp ugt i64 %96, %99
  br i1 %100, label %101, label %105

101:                                              ; preds = %93
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = load i64, ptr %21, align 8, !tbaa !9
  %104 = sub i64 %102, %103
  br label %107

105:                                              ; preds = %93
  %106 = load i64, ptr %10, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %105, %101
  %108 = phi i64 [ %104, %101 ], [ %106, %105 ]
  %109 = icmp ule i64 %95, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #0
  br label %136

111:                                              ; preds = %107
  %112 = getelementptr inbounds %struct.Mint, ptr %11, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !12
  %114 = getelementptr inbounds %struct.Mint, ptr %16, i32 0, i32 0
  store i64 %113, ptr %114, align 8, !tbaa !12
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #0
  %117 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  store i64 %117, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #0
  %118 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  store i64 %118, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #0
  %119 = load i64, ptr %23, align 8, !tbaa !9
  %120 = load i64, ptr %24, align 8, !tbaa !9
  %121 = icmp ugt i64 %119, %120
  br i1 %121, label %122, label %126

122:                                              ; preds = %111
  %123 = load i64, ptr %23, align 8, !tbaa !9
  %124 = load i64, ptr %24, align 8, !tbaa !9
  %125 = sub i64 %123, %124
  br label %130

126:                                              ; preds = %111
  %127 = load i64, ptr %24, align 8, !tbaa !9
  %128 = load i64, ptr %23, align 8, !tbaa !9
  %129 = sub i64 %127, %128
  br label %130

130:                                              ; preds = %126, %122
  %131 = phi i64 [ %125, %122 ], [ %129, %126 ]
  store i64 %131, ptr %26, align 8, !tbaa !9
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %22, align 4, !tbaa !14
  %135 = add i32 %134, 1
  store i32 %135, ptr %22, align 4, !tbaa !14
  br label %93, !llvm.loop !18

136:                                              ; preds = %110
  %137 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = call noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef %137, i64 noundef %139)
  store i64 %140, ptr %8, align 8, !tbaa !9
  %141 = load i64, ptr %10, align 8, !tbaa !9
  %142 = load i64, ptr %21, align 8, !tbaa !9
  %143 = add i64 %142, %141
  store i64 %143, ptr %21, align 8, !tbaa !9
  br label %83, !llvm.loop !19

144:                                              ; preds = %90
  %145 = load i64, ptr %9, align 8, !tbaa !9
  %146 = mul i64 %145, 2
  store i64 %146, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #0
  br label %63, !llvm.loop !20

147:                                              ; preds = %63
  %148 = load i64, ptr %8, align 8, !tbaa !9
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = icmp eq i64 %148, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %147
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %152, %147
  br label %154

154:                                              ; preds = %173, %153
  %155 = load i64, ptr %8, align 8, !tbaa !9
  %156 = icmp eq i64 %155, 1
  br i1 %156, label %157, label %178

157:                                              ; preds = %154
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #0
  %160 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  store i64 %160, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #0
  %161 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  store i64 %161, ptr %28, align 8, !tbaa !9
  %162 = load i64, ptr %27, align 8, !tbaa !9
  %163 = load i64, ptr %28, align 8, !tbaa !9
  %164 = icmp ugt i64 %162, %163
  br i1 %164, label %165, label %169

165:                                              ; preds = %157
  %166 = load i64, ptr %27, align 8, !tbaa !9
  %167 = load i64, ptr %28, align 8, !tbaa !9
  %168 = sub i64 %166, %167
  br label %173

169:                                              ; preds = %157
  %170 = load i64, ptr %28, align 8, !tbaa !9
  %171 = load i64, ptr %27, align 8, !tbaa !9
  %172 = sub i64 %170, %171
  br label %173

173:                                              ; preds = %169, %165
  %174 = phi i64 [ %168, %165 ], [ %172, %169 ]
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = call noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef %174, i64 noundef %176)
  store i64 %177, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #0
  br label %154, !llvm.loop !21

178:                                              ; preds = %154
  %179 = load i64, ptr %8, align 8, !tbaa !9
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = icmp ne i64 %179, %181
  br i1 %182, label %183, label %187

183:                                              ; preds = %178
  %184 = call noundef zeroext i1 @_Z8is_primeRKm(ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %184, label %185, label %187

185:                                              ; preds = %183
  %186 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %186, ptr %2, align 8
  store i32 1, ptr %29, align 4
  br label %188

187:                                              ; preds = %183, %178
  store i32 0, ptr %29, align 4
  br label %188

188:                                              ; preds = %187, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  %189 = load i32, ptr %29, align 4
  switch i32 %189, label %191 [
    i32 0, label %190
  ]

190:                                              ; preds = %188
  br label %60, !llvm.loop !22

191:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #0
  br label %192

192:                                              ; preds = %191, %35
  %193 = load i64, ptr %2, align 8
  ret i64 %193

194:                                              ; preds = %55
  %195 = load ptr, ptr %4, align 8
  %196 = load i32, ptr %5, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

; 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 nounwind uwtable
declare dso_local void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef, i64 noundef) #1

attributes #0 = { nounwind }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }

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

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


; 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::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_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }
%struct.Mint = type { i64 }

@__dso_handle = external hidden global i8
@_ZN4Mint3modE = external dso_local local_unnamed_addr global i64, align 8
@_ZZ11rho_pollardRKmE3rng = external hidden global %"class.std::random_device", align 8
@_ZGVZ11rho_pollardRKmE3rng = external hidden global i64, align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z11rho_pollardRKm(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::uniform_int_distribution", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %struct.Mint, align 8
  %6 = alloca i64, align 8
  %7 = alloca %struct.Mint, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct.Mint, align 8
  %10 = alloca %struct.Mint, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.Mint, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.Mint, align 8
  %15 = alloca i64, align 8
  %16 = load i64, ptr %0, align 8, !tbaa !5
  %17 = and i64 %16, 1
  %.not.not = icmp eq i64 %17, 0
  br i1 %.not.not, label %81, label %18

18:                                               ; preds = %1
  %19 = load atomic i8, ptr @_ZGVZ11rho_pollardRKmE3rng acquire, align 8
  %20 = icmp eq i8 %19, 0
  br i1 %20, label %21, label %26, !prof !9

21:                                               ; preds = %18
  %22 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ11rho_pollardRKmE3rng) #5
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %26, label %23

23:                                               ; preds = %21
  invoke void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
          to label %24 unwind label %32

24:                                               ; preds = %23
  %25 = tail call i32 @__cxa_atexit(ptr nonnull @_ZNSt13random_deviceD2Ev, ptr nonnull @_ZZ11rho_pollardRKmE3rng, ptr nonnull @__dso_handle) #5
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ11rho_pollardRKmE3rng) #5
  br label %26

26:                                               ; preds = %24, %21, %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %27 = load i64, ptr %0, align 8, !tbaa !5
  %28 = add i64 %27, -1
  call void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef 1, i64 noundef %28)
  %29 = load i64, ptr @_ZN4Mint3modE, align 8, !tbaa !5
  %30 = load i64, ptr %0, align 8, !tbaa !5
  %.not54 = icmp eq i64 %29, %30
  br i1 %.not54, label %.outer.preheader, label %31

31:                                               ; preds = %26
  call void @_ZN4Mint7set_modERKm(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %.outer.preheader

.outer.preheader:                                 ; preds = %26, %31
  br label %.outer

32:                                               ; preds = %23
  %33 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZ11rho_pollardRKmE3rng) #5
  resume { ptr, i32 } %33

.outer:                                           ; preds = %.outer.backedge, %.outer.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %34 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt13random_deviceEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
  store i64 %34, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store i64 1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %35 = call noundef i64 @_ZNSt24uniform_int_distributionImEclISt13random_deviceEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(5000) @_ZZ11rho_pollardRKmE3rng)
  store i64 %35, ptr %6, align 8, !tbaa !5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  store i64 1, ptr %13, align 8, !tbaa !5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  %.pr = load i64, ptr %4, align 8, !tbaa !5
  %36 = icmp eq i64 %.pr, 1
  br i1 %36, label %.lr.ph.preheader, label %._crit_edge74

.lr.ph.preheader:                                 ; preds = %.outer, %._crit_edge70
  %.04071 = phi i64 [ %60, %._crit_edge70 ], [ 1, %.outer ]
  %37 = load i64, ptr %5, align 8, !tbaa !10
  store i64 %37, ptr %7, align 8, !tbaa !10
  br label %.lr.ph

.preheader.preheader:                             ; preds = %.lr.ph
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %.preheader

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.04164 = phi i32 [ %40, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %40 = add i32 %.04164, 1
  %41 = zext i32 %40 to i64
  %.not56 = icmp ult i64 %.04071, %41
  br i1 %.not56, label %.preheader.preheader, label %.lr.ph, !llvm.loop !12

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge68
  %indvars.iv83 = phi i64 [ %.04071, %.preheader.preheader ], [ %indvars.iv.next84, %._crit_edge68 ]
  %.04269 = phi i64 [ 0, %.preheader.preheader ], [ %46, %._crit_edge68 ]
  %umin = call i64 @llvm.umin.i64(i64 %indvars.iv83, i64 500)
  %42 = call i64 @llvm.umax.i64(i64 %umin, i64 1)
  %.not5765 = icmp eq i64 %.04071, %.04269
  br i1 %.not5765, label %._crit_edge68, label %.lr.ph67

._crit_edge68:                                    ; preds = %.lr.ph67, %.preheader
  %43 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %44 = load i64, ptr %0, align 8, !tbaa !5
  %45 = call noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef %43, i64 noundef %44)
  store i64 %45, ptr %4, align 8, !tbaa !5
  %46 = add nuw nsw i64 %.04269, 500
  %47 = icmp ult i64 %46, %.04071
  %48 = icmp eq i64 %45, 1
  %49 = and i1 %47, %48
  %indvars.iv.next84 = add i64 %indvars.iv83, -500
  br i1 %49, label %.preheader, label %._crit_edge70, !llvm.loop !14

.lr.ph67:                                         ; preds = %.preheader, %.lr.ph67
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph67 ], [ 1, %.preheader ]
  %50 = load i64, ptr %5, align 8, !tbaa !10
  store i64 %50, ptr %10, align 8, !tbaa !10
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %53 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %54 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %55 = icmp ugt i64 %53, %54
  %56 = sub i64 %53, %54
  %57 = sub i64 %54, %53
  %58 = select i1 %55, i64 %56, i64 %57
  store i64 %58, ptr %15, align 8, !tbaa !5
  call void @_ZN4MintC2ERKm(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv, %42
  br i1 %exitcond, label %._crit_edge68, label %.lr.ph67, !llvm.loop !15

._crit_edge70:                                    ; preds = %._crit_edge68
  %60 = shl nuw nsw i64 %.04071, 1
  %61 = icmp eq i64 %45, 1
  br i1 %61, label %.lr.ph.preheader, label %._crit_edge74, !llvm.loop !16

._crit_edge74:                                    ; preds = %._crit_edge70, %.outer
  %.lcssa61 = phi i64 [ %.pr, %.outer ], [ %45, %._crit_edge70 ]
  %62 = load i64, ptr %0, align 8, !tbaa !5
  %63 = icmp eq i64 %.lcssa61, %62
  br i1 %63, label %.lr.ph77.preheader, label %._crit_edge78

.lr.ph77.preheader:                               ; preds = %._crit_edge74
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %.lr.ph77

.lr.ph77:                                         ; preds = %.lr.ph77.preheader, %.lr.ph77
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %66 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %67 = call noundef i64 @_ZNK4Mint3valEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %68 = icmp ugt i64 %66, %67
  %69 = sub i64 %66, %67
  %70 = sub i64 %67, %66
  %71 = select i1 %68, i64 %69, i64 %70
  %72 = load i64, ptr %0, align 8, !tbaa !5
  %73 = call noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef %71, i64 noundef %72)
  store i64 %73, ptr %4, align 8, !tbaa !5
  %74 = icmp eq i64 %73, 1
  br i1 %74, label %.lr.ph77, label %._crit_edge78.loopexit, !llvm.loop !17

._crit_edge78.loopexit:                           ; preds = %.lr.ph77
  %.pre = load i64, ptr %0, align 8, !tbaa !5
  br label %._crit_edge78

._crit_edge78:                                    ; preds = %._crit_edge74, %._crit_edge78.loopexit
  %75 = phi i64 [ %.pre, %._crit_edge78.loopexit ], [ %62, %._crit_edge74 ]
  %.lcssa62 = phi i64 [ %73, %._crit_edge78.loopexit ], [ %.lcssa61, %._crit_edge74 ]
  %.not55 = icmp eq i64 %.lcssa62, %75
  br i1 %.not55, label %79, label %76

76:                                               ; preds = %._crit_edge78
  %77 = call noundef zeroext i1 @_Z8is_primeRKm(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %78 = load i64, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br i1 %77, label %80, label %.outer.backedge

79:                                               ; preds = %._crit_edge78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %.outer.backedge

.outer.backedge:                                  ; preds = %79, %76
  br label %.outer, !llvm.loop !18

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %81

81:                                               ; preds = %1, %80
  %.2 = phi i64 [ %78, %80 ], [ 2, %1 ]
  ret i64 %.2
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

; 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 nounwind uwtable
declare dso_local void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt13random_deviceEEmRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt5__gcdImET_S0_S0_(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

attributes #0 = { nofree nounwind }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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