One assignment per parameter of an inlined call #
EasyCrypt inlines f(e₁, e₂) as x₁ <- e₁; x₂ <- e₂; …, one assignment per parameter; our
inliner writes x₁, x₂ <- (e₁, e₂). EC's positions after an inline then count more
statements than ours, and a swap that moves a statement between two parameters has nothing to
move past.
stmt_split_params turns every such tuple assignment into EC's sequence (Stmt.split_pair):
the tuple assignments that follow a reset_vars (what inline leaves in front of the
parameters). Written after stmt_inline* until the inliner does it itself.
stmt_split_params: one assignment per parameter of the inlined calls, as EC's inline
leaves them (see the module docstring); stmt_split_params{i} on side i.
Equations
- One or more equations did not get rendered due to their size.