@@ -50,11 +50,11 @@ newtype TValueNumber =
50
50
* const integer.
51
51
*
52
52
* Generally, the value number of a converted value is different from the value
53
- * number of an unconverted value, but for conversions which only modify
54
- * specifiers leave the resulting value bitwise identical to the old value.
53
+ * number of an unconverted value, but conversions which only modify specifiers
54
+ * leave the resulting value bitwise identical to the old value.
55
55
*/
56
- class SpecifierPreservingConvertInstruction extends ConvertInstruction {
57
- SpecifierPreservingConvertInstruction ( ) {
56
+ class TypePreservingConvertInstruction extends ConvertInstruction {
57
+ TypePreservingConvertInstruction ( ) {
58
58
pragma [ only_bind_out ] ( this .getResultType ( ) .getUnspecifiedType ( ) ) =
59
59
pragma [ only_bind_out ] ( this .getUnary ( ) .getResultType ( ) .getUnspecifiedType ( ) )
60
60
}
@@ -233,7 +233,7 @@ private predicate unaryValueNumber(
233
233
not instr instanceof InheritanceConversionInstruction and
234
234
not instr instanceof CopyInstruction and
235
235
not instr instanceof FieldAddressInstruction and
236
- not instr instanceof SpecifierPreservingConvertInstruction and
236
+ not instr instanceof TypePreservingConvertInstruction and
237
237
instr .getOpcode ( ) = opcode and
238
238
tvalueNumber ( instr .getUnary ( ) ) = operand
239
239
}
@@ -370,9 +370,9 @@ private TValueNumber nonUniqueValueNumber(Instruction instr) {
370
370
// The value number of a copy is just the value number of its source value.
371
371
result = tvalueNumber ( instr .( CongruentCopyInstruction ) .getSourceValue ( ) )
372
372
or
373
- // The value number of a specifier -preserving conversion is just the value
373
+ // The value number of a type -preserving conversion is just the value
374
374
// number of the unconverted value.
375
- result = tvalueNumber ( instr .( SpecifierPreservingConvertInstruction ) .getUnary ( ) )
375
+ result = tvalueNumber ( instr .( TypePreservingConvertInstruction ) .getUnary ( ) )
376
376
)
377
377
)
378
378
}
0 commit comments