Skip to content

Commit f0c0246

Browse files
committed
Use the parameter position.
Use the parameter position instead of the value number for shape argument in `ZerosLike`.
1 parent 39f68ad commit f0c0246

File tree

1 file changed

+3
-3
lines changed
  • com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client

1 file changed

+3
-3
lines changed

com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/ZerosLike.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public class ZerosLike extends Constant {
1818
* The shape argument is not explicitly provided to zeros_like(); rather, the shape is inferred
1919
* from the `input` argument.
2020
*/
21-
private static final int VALUE_NUMBER_FOR_SHAPE_ARGUMENT = -1;
21+
private static final int SHAPE_PARAMETER_POSITION = -1;
2222

2323
public ZerosLike(PointsToSetVariable source, CGNode node) {
2424
super(source, node);
2525
}
2626

2727
@Override
28-
protected int getShapeArgumentValueNumber() {
29-
return VALUE_NUMBER_FOR_SHAPE_ARGUMENT;
28+
protected int getShapeParameterPosition() {
29+
return SHAPE_PARAMETER_POSITION;
3030
}
3131

3232
@Override

0 commit comments

Comments
 (0)