@@ -50,11 +50,11 @@ newtype TValueNumber =
5050 * const integer.
5151 *
5252 * 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.
5555 */
56- class SpecifierPreservingConvertInstruction extends ConvertInstruction {
57- SpecifierPreservingConvertInstruction ( ) {
56+ class TypePreservingConvertInstruction extends ConvertInstruction {
57+ TypePreservingConvertInstruction ( ) {
5858 pragma [ only_bind_out ] ( this .getResultType ( ) .getUnspecifiedType ( ) ) =
5959 pragma [ only_bind_out ] ( this .getUnary ( ) .getResultType ( ) .getUnspecifiedType ( ) )
6060 }
@@ -233,7 +233,7 @@ private predicate unaryValueNumber(
233233 not instr instanceof InheritanceConversionInstruction and
234234 not instr instanceof CopyInstruction and
235235 not instr instanceof FieldAddressInstruction and
236- not instr instanceof SpecifierPreservingConvertInstruction and
236+ not instr instanceof TypePreservingConvertInstruction and
237237 instr .getOpcode ( ) = opcode and
238238 tvalueNumber ( instr .getUnary ( ) ) = operand
239239}
@@ -370,9 +370,9 @@ private TValueNumber nonUniqueValueNumber(Instruction instr) {
370370 // The value number of a copy is just the value number of its source value.
371371 result = tvalueNumber ( instr .( CongruentCopyInstruction ) .getSourceValue ( ) )
372372 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
374374 // number of the unconverted value.
375- result = tvalueNumber ( instr .( SpecifierPreservingConvertInstruction ) .getUnary ( ) )
375+ result = tvalueNumber ( instr .( TypePreservingConvertInstruction ) .getUnary ( ) )
376376 )
377377 )
378378}
0 commit comments