Commit 335c8410 authored by Robert Ricci's avatar Robert Ricci

Skip local and global features of pnodes when doing the mapping

precheck - even though their weight is > 1, they do not necessariliy
cause violations if undesired.
parent 37afa2eb
......@@ -513,6 +513,10 @@ int mapping_precheck() {
feature_it != pnode->features.end(); feature_it++) {
crope name = (*feature_it).first;
float value = (*feature_it).second;
// Skip 'local' and 'global' features
if (name[0] == '*' || name[0] == '?') {
continue;
}
// Only check for feature that would result in a violation if
// undesired
if (value >= FD_VIOLATION_WEIGHT) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment