Python: Remove excessive type pruning

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-06-18 13:58:47 +02:00
parent 1562f5c69a
commit 03b26f7ebe
2 changed files with 6 additions and 1 deletions

View File

@@ -171,7 +171,7 @@ class CastNode extends Node {
*/
pragma[inline]
predicate compatibleTypes(DataFlowType t1, DataFlowType t2) {
none()
any()
}
DataFlowType getErasedRepr(DataFlowType t) { result = t }

View File

@@ -0,0 +1,5 @@
| test.py:0:0:0:0 | GSSA Variable __name__ | test.py:0:0:0:0 | GSSA Variable __name__ |
| test.py:0:0:0:0 | GSSA Variable __package__ | test.py:0:0:0:0 | GSSA Variable __package__ |
| test.py:0:0:0:0 | GSSA Variable b | test.py:0:0:0:0 | GSSA Variable b |
| test.py:0:0:0:0 | SSA variable $ | test.py:0:0:0:0 | SSA variable $ |
| test.py:7:1:7:1 | GSSA Variable b | test.py:7:1:7:1 | GSSA Variable b |