File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1084,6 +1084,12 @@ class BinaryInstruction extends Instruction {
10841084 or
10851085 op1 = this .getRightOperand ( ) and op2 = this .getLeftOperand ( )
10861086 }
1087+
1088+ /**
1089+ * Gets the instruction whose result provides the value of the left or right
1090+ * operand of this binary instruction.
1091+ */
1092+ Instruction getAnInput ( ) { result = this .getLeft ( ) or result = this .getRight ( ) }
10871093}
10881094
10891095/**
Original file line number Diff line number Diff line change @@ -1084,6 +1084,12 @@ class BinaryInstruction extends Instruction {
10841084 or
10851085 op1 = this .getRightOperand ( ) and op2 = this .getLeftOperand ( )
10861086 }
1087+
1088+ /**
1089+ * Gets the instruction whose result provides the value of the left or right
1090+ * operand of this binary instruction.
1091+ */
1092+ Instruction getAnInput ( ) { result = this .getLeft ( ) or result = this .getRight ( ) }
10871093}
10881094
10891095/**
You can’t perform that action at this time.
0 commit comments