mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 21:33:39 +00:00
removed dependency of bvsls on goal_refs
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
c5e059211f
commit
883762d54a
1 changed files with 3 additions and 3 deletions
|
@ -276,13 +276,13 @@ public:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void uct_forget(goal_ref const & g) {
|
void uct_forget(ptr_vector<expr> & as) {
|
||||||
expr * e;
|
expr * e;
|
||||||
unsigned touched_old, touched_new;
|
unsigned touched_old, touched_new;
|
||||||
|
|
||||||
for (unsigned i = 0; i < g->size(); i++)
|
for (unsigned i = 0; i < as.size(); i++)
|
||||||
{
|
{
|
||||||
e = g->form(i);
|
e = as[i];
|
||||||
touched_old = m_scores.find(e).touched;
|
touched_old = m_scores.find(e).touched;
|
||||||
touched_new = (unsigned)((touched_old - 1) * _UCT_FORGET_FACTOR_ + 1);
|
touched_new = (unsigned)((touched_old - 1) * _UCT_FORGET_FACTOR_ + 1);
|
||||||
m_scores.find(e).touched = touched_new;
|
m_scores.find(e).touched = touched_new;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue