git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1197
e59a4935-1847-0410-ae03-
e826735625c1
score += (15 * b.GetValueWidth() * b.GetValueWidth() );
else if (isLikeDivision(k))
score += (20 * b.GetValueWidth() * b.GetValueWidth() );
+ else
+ {
+ score = std::max(b.GetValueWidth(),1u) * (b.Degree());
+ }
const ASTVec& c = b.GetChildren();
ASTVec::const_iterator itC = c.begin();
const bool arrayops = containsArrayOps(original_input);
bool optimize_enabled = bm->UserFlags.optimize_flag;
- if (final_difficulty_score > 2 *initial_difficulty_score && !arrayops)
+ if (final_difficulty_score > 1.1 *initial_difficulty_score && !arrayops)
{
// If the simplified problem is harder, than the
// initial problem we revert back to the initial