Skip to main content

Module tautology

Module tautology 

Source

Structsยง

Comparison ๐Ÿ”’
IntegerRange ๐Ÿ”’

Staticsยง

TYPE_BASED_TAUTOLOGY

Functionsยง

comparison_of ๐Ÿ”’
Extracts a comparison over one resolved integer variable, normalizing constants on the left.
comparison_operand_of ๐Ÿ”’
Extracts a stable variable identity and the reachable integer range of an operand.
effective_range_for_cast ๐Ÿ”’
elem_type_of ๐Ÿ”’
Extracts the elementary integer type from a variable reference or explicit cast.
expression_type ๐Ÿ”’
flip ๐Ÿ”’
Returns the equivalent operator after swapping left and right operands. e.g. const < var rewritten as var > const needs Gt.
integer_bounds ๐Ÿ”’
is_boundary_composition ๐Ÿ”’
Returns true for boundary comparisons whose union covers the complete integer type range.
is_lower_point ๐Ÿ”’
is_tautology ๐Ÿ”’
Returns true if var <op> val is always true or always false for every value in the typeโ€™s range.
is_upper_point ๐Ÿ”’
is_value_preserving_widening ๐Ÿ”’
lit_value_of ๐Ÿ”’
Extracts a signed constant from a numeric literal or negated numeric literal, returning (is_negative, magnitude).
matches_comparison ๐Ÿ”’
normalize_zero ๐Ÿ”’