@@ -595,15 +595,13 @@ private string opcodeToMnemonic(int opcode) {
595595// ============================================================================
596596// Instruction Categories
597597// ============================================================================
598-
599598/** A no-operation instruction. */
600599class JvmNop extends @jvm_nop, JvmInstruction { }
601600
602601/** Pushes null onto the stack. */
603602class JvmAconstNull extends @jvm_aconst_null, JvmLoadConstant { }
604603
605604// Load local variable instructions (abstract base classes)
606-
607605/** An instruction that loads a local variable onto the stack. */
608606abstract class JvmLoadLocal extends JvmInstruction {
609607 abstract int getLocalVariableIndex ( ) ;
@@ -998,11 +996,9 @@ class JvmLxor extends @jvm_lxor, JvmBitwiseInstruction { }
998996
999997// iinc
1000998class JvmIinc extends @jvm_iinc, JvmInstruction {
1001- int getLocalVariableIndex ( ) {
1002- exists ( int idx | jvm_operand_iinc ( this , idx , _) | result = idx )
1003- }
999+ int getLocalVariableIndex ( ) { jvm_operand_iinc ( this , result , _) }
10041000
1005- int getIncrement ( ) { exists ( int inc | jvm_operand_iinc ( this , _, inc ) | result = inc ) }
1001+ int getIncrement ( ) { jvm_operand_iinc ( this , _, result ) }
10061002}
10071003
10081004// Type conversions (abstract hierarchy)
@@ -1185,15 +1181,11 @@ class JvmReturnVoid extends @jvm_return, JvmReturn { }
11851181// Field access (abstract hierarchy)
11861182/** An instruction that accesses a field. */
11871183abstract class JvmFieldAccess extends JvmInstruction {
1188- string getFieldClassName ( ) {
1189- exists ( string cn | jvm_field_operand ( this , cn , _, _) | result = cn )
1190- }
1184+ string getFieldClassName ( ) { jvm_field_operand ( this , result , _, _) }
11911185
1192- string getFieldName ( ) { exists ( string fn | jvm_field_operand ( this , _, fn , _) | result = fn ) }
1186+ string getFieldName ( ) { jvm_field_operand ( this , _, result , _) }
11931187
1194- string getFieldDescriptor ( ) {
1195- exists ( string fd | jvm_field_operand ( this , _, _, fd ) | result = fd )
1196- }
1188+ string getFieldDescriptor ( ) { jvm_field_operand ( this , _, _, result ) }
11971189
11981190 /** Holds if this is a static field access. */
11991191 predicate isStatic ( ) { this instanceof JvmGetstatic or this instanceof JvmPutstatic }
0 commit comments