@@ -109,11 +109,11 @@ private class CompareGEValueNumber extends CompareValueNumber {
109
109
* A value number such that at least one of the instructions provides
110
110
* the integer value controlling a `SwitchInstruction`.
111
111
*/
112
- private class ScrutineeValueNumber extends ValueNumber {
112
+ private class SwitchConditionValueNumber extends ValueNumber {
113
113
SwitchInstruction switch ;
114
114
115
115
pragma [ nomagic]
116
- ScrutineeValueNumber ( ) { this .getAnInstruction ( ) = switch .getExpression ( ) }
116
+ SwitchConditionValueNumber ( ) { this .getAnInstruction ( ) = switch .getExpression ( ) }
117
117
118
118
/** Gets an expression that belongs to this value number. */
119
119
Operand getExpressionOperand ( ) { result = switch .getExpressionOperand ( ) }
@@ -990,11 +990,11 @@ private predicate isRelevantUnaryComparisonOperand(Operand op) {
990
990
private predicate unary_simple_comparison_eq (
991
991
ValueNumber test , Operand op , int k , boolean inNonZeroCase , AbstractValue value
992
992
) {
993
- exists ( CaseEdge case , ScrutineeValueNumber scrutinee |
994
- scrutinee = test and
995
- op = scrutinee .getExpressionOperand ( ) and
993
+ exists ( CaseEdge case , SwitchConditionValueNumber condition |
994
+ condition = test and
995
+ op = condition .getExpressionOperand ( ) and
996
996
case = value .( MatchValue ) .getCase ( ) and
997
- exists ( scrutinee .getSuccessor ( case ) ) and
997
+ exists ( condition .getSuccessor ( case ) ) and
998
998
case .getValue ( ) .toInt ( ) = k and
999
999
inNonZeroCase = false
1000
1000
)
@@ -1158,7 +1158,7 @@ private predicate simple_comparison_lt(CompareValueNumber cmp, Operand left, Ope
1158
1158
1159
1159
/** Rearrange various simple comparisons into `op < k` form. */
1160
1160
private predicate unary_simple_comparison_lt (
1161
- ScrutineeValueNumber test , Operand op , int k , boolean isLt , AbstractValue value
1161
+ SwitchConditionValueNumber test , Operand op , int k , boolean isLt , AbstractValue value
1162
1162
) {
1163
1163
exists ( CaseEdge case |
1164
1164
test .getExpressionOperand ( ) = op and
0 commit comments