Skip to content

Commit 4a6f385

Browse files
committed
Python objects: Add clarify comments on callResult predicates.
1 parent ebd5829 commit 4a6f385

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/ql/src/semmle/python/objects/ObjectInternal.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ class ObjectInternal extends TObject {
6666

6767
/** Holds if `obj` is the result of calling `this` and `origin` is
6868
* the origin of `obj`.
69+
*
70+
* This is the context-insensitive version.
71+
* Generally, if this holds for any object `obj` then `callResult/3` should never hold for that object.
6972
*/
7073
abstract predicate callResult(ObjectInternal obj, CfgOrigin origin);
7174

7275
/** Holds if `obj` is the result of calling `this` and `origin` is
7376
* the origin of `obj` with callee context `callee`.
77+
*
78+
* This is the context-sensitive version.
79+
* Generally, if this holds for any object `obj` then `callResult/2` should never hold for that object.
7480
*/
7581
abstract predicate callResult(PointsToContext callee, ObjectInternal obj, CfgOrigin origin);
7682

0 commit comments

Comments
 (0)