Skip to main content

Module analyzer

Module analyzer 

Source
Expand description

The analyzer. An Analyzer proves, bounds and simplifies integer expressions under the facts of a ConstraintContext; its bounds are ConstIntBounds and ModularSets.

Structs§

AllowUintAsIndexScope
A scope in which unsigned scalars are index types, returned by allow_uint_as_index.
Analyzer
An analyzer of integer expressions: it proves, bounds and simplifies them under the facts it knows, which sync_constraint_context sets from a ConstraintContext.
AnalyzerObj
The object behind Analyzer.
ConstIntBound
The inclusive constant bounds [min_value, max_value] of an integer expression, where i64::MAX and -i64::MAX stand for unbounded ends.
ConstIntBoundObj
The object behind ConstIntBound.
ModularSet
The congruence class {coeff * x + base} over the integers x that an integer expression lies in: a coeff of 0 is the single value base, and a coeff of 1 any integer.
ModularSetObj
The object behind ModularSet.
RewriteSimplifierStats
The counters of an analyzer’s rewrite simplifier: the nodes it visited, the constraints it entered, the rewrites it attempted and performed, its deepest recursion and its recursive rewrites.
RewriteSimplifierStatsObj
The object behind RewriteSimplifierStats.

Enums§

CompareResult
The result of Analyzer::try_compare.
ProofStrength
How hard Analyzer::can_prove tries.

Functions§

allow_uint_as_index
Treat uint32 and uint64 scalars as non-wrapping index types until the returned scope is dropped (sym.AnalyzerEnterAllowUintAsIndex).