Java: Remove omittable exists variables

This commit is contained in:
Tony Torralba
2022-12-21 16:31:20 +01:00
parent 7a92970d89
commit 32471d326e
63 changed files with 319 additions and 418 deletions

View File

@@ -42,9 +42,9 @@ predicate isKeyNext(Expr e, KeySetIterator it) {
class Key extends LocalVariableDecl {
Key() {
exists(LocalVariableDeclExpr lvde, KeySetIterator it |
exists(LocalVariableDeclExpr lvde |
lvde.getVariable() = this and
isKeyNext(lvde.getInit(), it)
isKeyNext(lvde.getInit(), _)
)
}