mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: Remove omittable exists variables
This commit is contained in:
@@ -231,8 +231,8 @@ predicate points_to_consistency(string clsname, string problem, string what) {
|
||||
what = obj.toString()
|
||||
)
|
||||
or
|
||||
exists(ControlFlowNode use, ControlFlowNode inter, Object obj |
|
||||
intermediate_origins(use, inter, obj) and
|
||||
exists(ControlFlowNode use, ControlFlowNode inter |
|
||||
intermediate_origins(use, inter, _) and
|
||||
clsname = use.getAQlClass() and
|
||||
problem = "has intermediate origin " + inter and
|
||||
what = use.toString()
|
||||
|
||||
@@ -12,5 +12,5 @@ import python
|
||||
from ControlFlowNode f, Object o
|
||||
where
|
||||
f.refersTo(o) and
|
||||
not exists(ClassObject c | f.refersTo(o, c, _))
|
||||
not f.refersTo(o, _, _)
|
||||
select o, "Type inference fails for 'object'."
|
||||
|
||||
Reference in New Issue
Block a user