Python: better charPred

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-08-14 13:25:17 +02:00
parent 5ed3107045
commit 360ddc6314

View File

@@ -8,14 +8,16 @@ module MagicMethod {
}
class Actual extends ControlFlowNode {
Object resolvedMagicMethod;
Value resolvedMagicMethod;
Actual() {
exists(Potential pot |
this.(Potential) = pot and
pot.getSelf().(ClassObject).lookupAttribute(pot.getMagicMethodName()) = resolvedMagicMethod
pot.getSelf().pointsTo().getClass().lookup(pot.getMagicMethodName()) = resolvedMagicMethod
)
}
Value getResolvedMagicMethod() { result = resolvedMagicMethod }
}
}