Skip to main content

Module normalize

Module normalize 

Source
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 mulDiv quotient.
polynomial ๐Ÿ”’
Bounded sparse-polynomial identity reasoning over EVM words.
rounding ๐Ÿ”’
Rounding relations between a rounded multiple and its original dividend.

Structsยง

ConstraintContext ๐Ÿ”’
Simple facts learned from the normalized conjunction currently being queried.
NormalizationCache ๐Ÿ”’
Per-expression normalization facts reused across solver queries.
WordInterval ๐Ÿ”’

Enumsยง

MulDivFactor ๐Ÿ”’
The other factor of a (x * f) / x quotient: an expression, or the 2**n of a shift x << n.

Constantsยง

MAX_CONTEXTUAL_PASSES ๐Ÿ”’
MAX_LOCAL_ANALYSIS_NODES ๐Ÿ”’

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 ite against one of its own branches, as in ite(c, a, b) < b => c && a < b. Fires only when one branch comparison folds to false, so the expression never grows; for a strict comparison the branch equal to the other operand always does. Equality is left to SymBoolExpr::ite_eq_arm.
normalize_ite_expr_for_solver ๐Ÿ”’
sort_dedup_bool_exprs ๐Ÿ”’
sorted_bool_exprs_are_subset ๐Ÿ”’
Returns whether every expression in subset appears in superset.
write_bool_structural_key ๐Ÿ”’
write_expr_structural_key ๐Ÿ”’
write_exprs_structural_key ๐Ÿ”’