use set literals instead of big disjunctions

This commit is contained in:
Erik Krogh Kristensen
2022-01-20 22:43:00 +01:00
parent 830c2dc90a
commit ddfc3bc00f
10 changed files with 10 additions and 41 deletions

View File

@@ -22,10 +22,7 @@ predicate modification_of_locals(ControlFlowNode f) {
attr = f.(CallNode).getFunction() and
originIsLocals(attr.getObject(mname))
|
mname = "pop" or
mname = "popitem" or
mname = "update" or
mname = "clear"
mname in ["pop", "popitem", "update", "clear"]
)
}