Expand description
Constraint and expression normalization for solver queries.
Re-exportsยง
use mul_div::checked_product_guard_operands;๐use mul_div::full_mul_div_operands;๐use mul_div::mul_high_operands;๐use mul_div::normalize_mul_high_factor_cmp;๐use mul_div::normalize_quotient_offset_eq;๐use mul_div::word_division_operands;๐use polynomial::polynomial_identity;๐use super::*;๐
Modulesยง
- mul_div ๐
- Recognition of the 512-bit product high word and of the full-precision
mulDivquotient. - polynomial ๐
- Bounded sparse-polynomial identity reasoning over EVM words.
- rounding ๐
- Rounding relations between a rounded multiple and its original dividend.
Structsยง
- Constraint
Context ๐ - Simple facts learned from the normalized conjunction currently being queried.
- Normalization
Cache ๐ - Per-expression normalization facts reused across solver queries.
- Word
Interval ๐
Enumsยง
- MulDiv
Factor ๐ - The other factor of a
(x * f) / xquotient: an expression, or the2**nof a shiftx << n.
Constantsยง
Functionsยง
- bitwise_
bool_ ๐word_ fact - bool_
expr_ ๐cmp - bool_
structural_ ๐key - cmp_
op_ ๐key - const_
side_ ๐bound - constraints_
are_ ๐directly_ unsat - Returns whether canonically ordered normalized constraints contain a direct contradiction.
- expr_
binop_ ๐key - expr_
ternop_ ๐key - mark_
conjuncts ๐ - normalize_
bool_ ๐for_ solver - Normalizes one boolean expression into an equivalent, solver-friendlier form.
- normalize_
bool_ ๐node_ for_ solver - normalize_
bounded_ ๐comparisons - Simplifies predicates using only the other, still-retained conjuncts.
- normalize_
cmp_ ๐for_ solver - normalize_
constraint_ ๐batch - normalize_
constraints_ ๐for_ solver_ cached - Reuses context-free normalization results while retaining per-query contextual rewrites.
- normalize_
contextually ๐ - Applies context-dependent rewrites to an already context-free-normalized conjunction.
- normalize_
expr_ ๐for_ solver - Normalizes one word expression into an equivalent, solver-friendlier form.
- normalize_
expr_ ๐node_ for_ solver - normalize_
ite_ ๐branch_ cmp - Compares an
iteagainst one of its own branches, as inite(c, a, b) < b => c && a < b. Fires only when one branch comparison folds tofalse, so the expression never grows; for a strict comparison the branch equal to the other operand always does. Equality is left toSymBoolExpr::ite_eq_arm. - normalize_
ite_ ๐expr_ for_ solver - sort_
dedup_ ๐bool_ exprs - sorted_
bool_ ๐exprs_ are_ subset - Returns whether every expression in
subsetappears insuperset. - write_
bool_ ๐structural_ key - write_
expr_ ๐structural_ key - write_
exprs_ ๐structural_ key