@@ -121,6 +121,24 @@ private class ScrutineeValueNumber extends ValueNumber {
121
121
Instruction getSuccessor ( CaseEdge kind ) { result = switch .getSuccessor ( kind ) }
122
122
}
123
123
124
+ private class BuiltinExpectCallValueNumber extends ValueNumber {
125
+ BuiltinExpectCallInstruction instr ;
126
+
127
+ BuiltinExpectCallValueNumber ( ) { this .getAnInstruction ( ) = instr }
128
+
129
+ ValueNumber getCondition ( ) { result .getAnInstruction ( ) = instr .getCondition ( ) }
130
+
131
+ Operand getAUse ( ) { result = instr .getAUse ( ) }
132
+ }
133
+
134
+ private class LogicalNotValueNumber extends ValueNumber {
135
+ LogicalNotInstruction instr ;
136
+
137
+ LogicalNotValueNumber ( ) { this .getAnInstruction ( ) = instr }
138
+
139
+ ValueNumber getUnary ( ) { result .getAnInstruction ( ) = instr .getUnary ( ) }
140
+ }
141
+
124
142
/**
125
143
* A Boolean condition in the AST that guards one or more basic blocks. This includes
126
144
* operands of logical operators but not switch statements.
@@ -1008,24 +1026,6 @@ private class BuiltinExpectCallInstruction extends CallInstruction {
1008
1026
}
1009
1027
}
1010
1028
1011
- private class BuiltinExpectCallValueNumber extends ValueNumber {
1012
- BuiltinExpectCallInstruction instr ;
1013
-
1014
- BuiltinExpectCallValueNumber ( ) { this .getAnInstruction ( ) = instr }
1015
-
1016
- ValueNumber getCondition ( ) { result .getAnInstruction ( ) = instr .getCondition ( ) }
1017
-
1018
- Operand getAUse ( ) { result = instr .getAUse ( ) }
1019
- }
1020
-
1021
- private class LogicalNotValueNumber extends ValueNumber {
1022
- LogicalNotInstruction instr ;
1023
-
1024
- LogicalNotValueNumber ( ) { this .getAnInstruction ( ) = instr }
1025
-
1026
- ValueNumber getUnary ( ) { result .getAnInstruction ( ) = instr .getUnary ( ) }
1027
- }
1028
-
1029
1029
/**
1030
1030
* Holds if `left == right + k` is `areEqual` if `cmp` evaluates to `value`,
1031
1031
* and `cmp` is an instruction that compares the value of
0 commit comments