| 622 | } |
| 623 | |
| 624 | int DraftPolicy::explore_next(int reach, int skip) const { |
| 625 | if (learner_.rounds() + learner_.late_rounds() < kExploreAfter || forced_total_ >= kExploreBudget || !explore_ok()) return 0; |
| 626 | for (int s = 2; s <= std::min(reach, max_t_); ++s) { |
| 627 | if (s == skip || !allowed(s) || forced_[(size_t) s] >= kExplorePerSize || learner_.usable(bk_, s, 20) >= kExploreN) continue; |
| 628 | ++forced_[(size_t) s]; |
| 629 | ++forced_total_; |
| 630 | return s; |
| 631 | } |
| 632 | return 0; |
| 633 | } |
| 634 | |
| 635 | int DraftPolicy::explore_size(int lookup_k, int pad_cap) const { |
| 636 | return explore_next(std::max(lookup_k, pad_cap) + 1, 0); |
nothing calls this directly
no test coverage detected