Skip to main contentModule tautology
Source - TYPE_BASED_TAUTOLOGY
- 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).