Add Scope.qll

This commit is contained in:
Arthur Baars
2021-03-09 09:46:42 +01:00
parent ce69c912fd
commit 00260db58f
10 changed files with 126 additions and 36 deletions

View File

@@ -6,7 +6,7 @@ private import CfgNodes::ExprNodes
/** Holds if `v` is uninitialized at index `i` in entry block `bb`. */
predicate uninitializedWrite(EntryBasicBlock bb, int i, LocalVariable v) {
v.getDeclaringScope().getScopeElement() = bb.getScope() and
v.getDeclaringScope() = bb.getScope() and
i = -1
}