3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00

speeding up interpolation in RPFP_caching

This commit is contained in:
Ken McMillan 2013-12-24 17:20:12 -08:00
parent 1b9f1ea6b3
commit 11ba2178a9
4 changed files with 63 additions and 18 deletions

View file

@ -1937,6 +1937,8 @@ namespace Duality {
Generalize(node);
if(RecordUpdate(node))
update_count++;
else
heuristic->Update(node->map); // make it less likely to expand this node in future
}
if(update_count == 0){
if(was_sat)
@ -2018,6 +2020,9 @@ namespace Duality {
}
bool NodeTooComplicated(Node *node){
int ops = tree->CountOperators(node->Annotation.Formula);
if(ops > 10) return true;
node->Annotation.Formula = tree->RemoveRedundancy(node->Annotation.Formula).simplify();
return tree->CountOperators(node->Annotation.Formula) > 3;
}