WALA icon indicating copy to clipboard operation
WALA copied to clipboard

Instruction index vs. bytecode index

Open khatchad opened this issue 8 years ago • 0 comments

The following interface method declaration names its parameter instructionIndex:

https://github.com/wala/WALA/blob/5b6e6aefa069f341cb5b612f245b01953c519d61/com.ibm.wala.core/src/com/ibm/wala/classLoader/IMethod.java#L126

However, this corresponding implementation uses bytecode indices, which are very different:

https://github.com/wala/WALA/blob/5b6e6aefa069f341cb5b612f245b01953c519d61/com.ibm.wala.core/src/com/ibm/wala/classLoader/ShrikeBTMethod.java#L808

Since these parameters have different semantics, it might be best to split this into two different methods.

khatchad avatar Aug 28 '17 22:08 khatchad