@@ -78,7 +78,7 @@ module C-CONVERSION
78
78
=> tv(V, castTypes(T', T))
79
79
requires T' =/=Type T andBool notBool isBoolUType(T') andBool intInRange(V, T')
80
80
81
- rule cast(integerUType #as T'::UType, tv(encodedPtr(L:SymLoc, N::Int, M::Int), integerUType #as T ::UType))
81
+ rule cast(integerUType #as T'::UType, tv(encodedPtr(L:SymLoc, N::Int, M::Int), integerUType #as _T ::UType))
82
82
=> tv(encodedPtr(L, N, M), T')
83
83
requires notBool isBoolUType(T')
84
84
andBool M -Int N <=Int bitSizeofType(T')
@@ -272,7 +272,7 @@ module C-CONVERSION
272
272
a trap representation.
273
273
}*/
274
274
rule (.K => IMPL("CCV13", "Conversion from an integer to non-null pointer."))
275
- ~> cast(ut(... st: pointerType(_)) #as T '::UType, tv(V:CValue, integerUType #as T::UType))
275
+ ~> cast(ut(... st: pointerType(_)) #as _T '::UType, tv(V:CValue, integerUType #as T::UType))
276
276
requires notBool isNullPointerConstant(tv(V, T))
277
277
278
278
/*@ \fromStandard{\source[n1570]{\para{6.3.2.3}{6}}}{
@@ -348,11 +348,11 @@ module C-CONVERSION
348
348
[structural]
349
349
rule (.K => UNDEF("CCV14",
350
350
"Conversion of a function pointer to object pointer type."))
351
- ~> cast(ut(_, pointerType(T'::Type)), tv(Loc :SymLoc, ut(_, pointerType(T::Type))))
351
+ ~> cast(ut(_, pointerType(T'::Type)), tv(_Loc :SymLoc, ut(_, pointerType(T::Type))))
352
352
requires isFunctionType(T) andBool notBool isFunctionType(T')
353
353
[structural]
354
354
rule (.K => lintCastingAwayQuals())
355
- ~> cast(ut(_, pointerType(T'::Type)), tv(Loc :SymLoc, ut(_, pointerType(T::Type => addQualifiers(getQualifiers(T'), stripQualifiers(T))))))
355
+ ~> cast(ut(_, pointerType(T'::Type)), tv(_Loc :SymLoc, ut(_, pointerType(T::Type => addQualifiers(getQualifiers(T'), stripQualifiers(T))))))
356
356
requires getQualifiers(T) >Quals getQualifiers(T')
357
357
[structural]
358
358
0 commit comments