Ignore overridden predicates in consistency check

This commit is contained in:
Taus
2021-10-15 10:58:38 +00:00
committed by GitHub
parent 5a519c5089
commit ccaef199bf

View File

@@ -287,7 +287,9 @@ module PredConsistency {
strictcount(PredicateOrBuiltin p0 |
resolveCall(call, p0) and
// aliases are expected to resolve to multiple.
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias())
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias()) and
// overridden predicates may have multiple targets
not p0.getDeclaration().(ClassPredicate).isOverride()
) and
c > 1 and
resolveCall(call, p)