Skip to content

Commit 2837f98

Browse files
committed
Python: Show how pointsTo handles 0+0 == 0 (2/2)
1 parent 4231bb1 commit 2837f98

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

python/ql/test/library-tests/PointsTo/comparisons/PointsTo.expected

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
| 21 | file://:0:0:0:0 | bool True |
1313
| 22 | file://:0:0:0:0 | bool False |
1414
| 22 | file://:0:0:0:0 | bool True |
15+
| 24 | file://:0:0:0:0 | bool False |
16+
| 24 | file://:0:0:0:0 | bool True |
17+
| 25 | file://:0:0:0:0 | bool False |
18+
| 25 | file://:0:0:0:0 | bool True |
1519
| 28 | file://:0:0:0:0 | bool False |
1620
| 29 | file://:0:0:0:0 | bool False |
1721
| 30 | file://:0:0:0:0 | bool True |

python/ql/test/library-tests/PointsTo/comparisons/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
len(unknown()) == len(unknown())
2222
len(unknown()) < len(unknown())
2323

24-
# 0+0 == 0
25-
# 0+1 == 0
24+
0+0 == 0
25+
0+1 == 0
2626

2727
#All ops
2828
2 > 3

0 commit comments

Comments
 (0)