mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 04:13:38 +00:00
Merge branch 'bvsls' of https://git01.codeplex.com/z3 into bvsls
Conflicts: src/tactic/sls/sls_evaluator.h src/tactic/sls/sls_tactic.cpp src/tactic/sls/sls_tracker.h
This commit is contained in:
commit
eabebedabf
3 changed files with 4 additions and 4 deletions
|
@ -518,7 +518,6 @@ class sls_tactic : public tactic {
|
||||||
void mk_random_move(ptr_vector<func_decl> & unsat_constants)
|
void mk_random_move(ptr_vector<func_decl> & unsat_constants)
|
||||||
{
|
{
|
||||||
unsigned rnd_mv = 0;
|
unsigned rnd_mv = 0;
|
||||||
|
|
||||||
unsigned ucc = unsat_constants.size();
|
unsigned ucc = unsat_constants.size();
|
||||||
unsigned rc = (m_tracker.get_random_uint((ucc < 16) ? 4 : (ucc < 256) ? 8 : (ucc < 4096) ? 12 : (ucc < 65536) ? 16 : 32)) % ucc;
|
unsigned rc = (m_tracker.get_random_uint((ucc < 16) ? 4 : (ucc < 256) ? 8 : (ucc < 4096) ? 12 : (ucc < 65536) ? 16 : 32)) % ucc;
|
||||||
func_decl * fd = unsat_constants[rc];
|
func_decl * fd = unsat_constants[rc];
|
||||||
|
|
|
@ -1152,6 +1152,7 @@ public:
|
||||||
{
|
{
|
||||||
expr * e = g->form(i);
|
expr * e = g->form(i);
|
||||||
vscore = m_scores.find(e);
|
vscore = m_scores.find(e);
|
||||||
|
|
||||||
#if _PROBABILISTIC_UCT_ == 2
|
#if _PROBABILISTIC_UCT_ == 2
|
||||||
double q = vscore.score * vscore.score;
|
double q = vscore.score * vscore.score;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue