Python: Treat the result of calling a missing module member as 'unknown'.

This commit is contained in:
Mark Shannon
2019-08-01 10:37:41 +01:00
parent 8443f68a33
commit ebd5829bfb
5 changed files with 47 additions and 4 deletions

View File

@@ -367,12 +367,10 @@ class AbsentModuleAttributeObjectInternal extends ObjectInternal, TAbsentModuleA
}
override predicate callResult(ObjectInternal obj, CfgOrigin origin) {
// Don't know, assume not callable.
none()
obj = ObjectInternal::unknown() and origin = CfgOrigin::unknown()
}
override predicate callResult(PointsToContext callee, ObjectInternal obj, CfgOrigin origin) {
// Don't know, assume not callable.
none()
}