Skip to main content

Module tautology

Module tautology 

Source

Staticsยง

TYPE_BASED_TAUTOLOGY

Functionsยง

elem_type_of ๐Ÿ”’
Extracts the elementary integer type from a variable reference or explicit cast.
flip ๐Ÿ”’
Returns the equivalent operator after swapping left and right operands. e.g. const < var rewritten as var > const needs Gt.
is_tautology ๐Ÿ”’
Returns true if var <op> val is always true or always false for every value in the typeโ€™s range.
lit_value_of ๐Ÿ”’
Extracts a signed constant from a numeric literal or negated numeric literal, returning (is_negative, magnitude).