Skip to main content Module monotonic_product Copy item path Source use super ::*; ๐ OrderFacts ๐ Rounding ๐ Rounding of x * y / d over the integers, where every rounding of x * y / 0 is zero as in
the EVM. Floor <= Ceil. chained_less_or_equal ๐ Returns whether left <= right follows directly or through one asserted ordering. collect_order_facts ๐ disequality ๐ Returns the operands of a disequality, which antisymmetry contradicts. expr_less_or_equal ๐ Returns whether the known unsigned order and no-overflow bounds imply left <= right. has_remainder ๐ Returns whether the facts assert mulmod(x, y, d) != 0, or false when they assert it is zero. increment_operand ๐ Returns q for q + 1. is_mul_high_of ๐ is_quotient_product ๐ Returns whether a * b is q * d for a quotient q of x * y / d, where (x, y) are the
factors of the other product. is_wide_term ๐ less_or_equal_comparison ๐ Returns the unsigned weak ordering asserted by this constraint. mul_operands ๐ nonzero_expr ๐ order_facts ๐ product_less_or_equal_known ๐ product_less_or_equal_known_ordered ๐ product_less_than_known ๐ product_less_than_known_ordered ๐ product_less_than_negation ๐ product_monotonic_unsat_normalized ๐ Returns whether normalized monotonic product facts make constraints unsatisfiable. product_quotient_fits ๐ Returns whether the facts assert mul_high(x, y) < d, so x * y / d fits a word. quotient_fits ๐ Returns whether a quotient is known not to be truncated to a word. quotient_lower_bound ๐ Returns a rounded quotient that expr is at least. quotient_operands ๐ Returns (x, y, d) when expr is floor(x * y / d) truncated to a word, or zero for d == 0. quotient_upper_bound ๐ Returns a rounded quotient that expr is at most. remove_implied_monotonic_constraints ๐ Removes hard-arithmetic comparisons implied by the remaining path constraints. reversed_strict_comparison ๐ Returns a strict comparison that contradicts right <= left. rounded_quotients_ordered ๐ Returns whether round(a * b / d) <= round'(a' * b' / d), which holds for the same divisor
once round <= round' and a * b <= a' * b'. same_factors ๐ Returns whether {a, b} and {x, y} are the same factors in either order. successor_below_exact_quotient ๐ Returns whether quotient + 1 <= MAX, because it is at most ceil(x * y / d) for a product
that d divides with a quotient that fits a word. successor_upper_bound ๐ Returns ceil(x * y / d) when the quotient q of x * y / d has a nonzero remainder, so that
q + 1 <= floor(x * y / d) + 1 == ceil(x * y / d) over the integers. wide_product_less_or_equal ๐ Returns whether left_a * left_b <= right_a * right_b over the unbounded integers. wide_term_below ๐ Returns whether a high word or quotient large is below lower because it is at most a
term whose range ends below lower. wide_term_lower_bound ๐ Returns a high word or quotient and the lower bound this constraint asserts for it. LessOrEqualFacts ๐ LessThanFacts ๐ PositiveFacts ๐ RoundedQuotient ๐ (x, y, d, rounding) for the rounded quotient rounding(x * y / d).ZeroFacts ๐