3
0
Fork 0
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:
Christoph M. Wintersteiger 2014-03-28 12:27:06 +00:00
parent c5e059211f
commit 883762d54a

View file

@ -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;