Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e21a863

Browse files
committed
Python points-to: Update sanity check.
1 parent 03159bb commit e21a863

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • python/ql/test/library-tests/PointsTo/new

python/ql/test/library-tests/PointsTo/new/Sanity.ql

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import python
33
import semmle.python.pointsto.PointsTo
4+
import semmle.python.objects.ObjectInternal
45

56
predicate ssa_sanity(string clsname, string problem, string what) {
67
/* Exactly one definition of each SSA variable */
@@ -106,15 +107,6 @@ predicate ssa_sanity(string clsname, string problem, string what) {
106107
) and
107108
problem = "does not have an ImplicitModuleNameDefinition"
108109
)
109-
or
110-
// Unknown value should always have the class unknownType
111-
exists(ControlFlowNode f, ClassObject cls |
112-
PointsTo::points_to(f, _, unknownValue(), cls, _) and
113-
clsname = f.getAQlClass() and
114-
cls != theUnknownType() and
115-
problem = "unknownValue() has class != theUnknownType()" and
116-
what = cls.getName()
117-
)
118110
}
119111

120112
from string clsname, string problem, string what

0 commit comments

Comments
 (0)