@@ -341,6 +341,19 @@ module C-COMMON-EXPR-RELATIONAL
341341 requires notBool hasLint
342342 [structural]
343343
344+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) == tv(encodedValue(V':EncodableValue, N, M), T'::UType)
345+ => tv(V, T) == tv(V', T')
346+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) != tv(encodedValue(V':EncodableValue, N, M), T'::UType)
347+ => tv(V, T) != tv(V', T')
348+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) < tv(encodedValue(V':EncodableValue, N, M), T'::UType)
349+ => tv(V, T) < tv(V', T')
350+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) <= tv(encodedValue(V':EncodableValue, N, M), T'::UType)
351+ => tv(V, T) <= tv(V', T')
352+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) > tv(encodedValue(V':EncodableValue, N, M), T'::UType)
353+ => tv(V, T) > tv(V', T')
354+ rule tv(encodedValue(V:EncodableValue, N:Int, M:Int), T::UType) >= tv(encodedValue(V':EncodableValue, N, M), T'::UType)
355+ => tv(V, T) >= tv(V', T')
356+
344357 rule tv(encodedPtr(Loc:SymLoc, N:Int, M:Int), T::UType) == tv(encodedPtr(Loc':SymLoc, N:Int, M:Int), T'::UType)
345358 => tv(Loc, T) == tv(Loc', T')
346359 rule tv(encodedPtr(Loc:SymLoc, N:Int, M:Int), T::UType) != tv(encodedPtr(Loc':SymLoc, N:Int, M:Int), T'::UType)
0 commit comments