Python: Give most non-self instance attributes the 'unknown' value; improves reachability analysis.

This commit is contained in:
Mark Shannon
2019-01-31 12:54:19 +00:00
parent 54242f4009
commit f190f83406
5 changed files with 11 additions and 1 deletions

View File

@@ -610,7 +610,6 @@ module PointsTo {
points_to(obj_node, context, x, icls, _) and
(not x instanceof ModuleObject and not x instanceof ClassObject) and
not icls.isBuiltin() and
Types::class_has_attribute_bool(icls, name) = false and
value = unknownValue() and cls = theUnknownType() and origin = f
)
)