Reifies a restricted, helper-contracted RPC client from BEAM debug information.
The four arguments are server PID, correlation reference, payload and timeout.
Accepted Core constructs a {:request, reference, payload} tuple, sends it
once with :erlang.send/2, branches on a declared reply helper, decodes the
reply through a declared helper, and returns :timeout on the timeout arm.
Reply and timeout clauses can be reordered; guards must be literal true.
This is finite normal-execution correspondence under explicit primitive and helper contracts. It is not native receive analysis. Helpers' matching, scanning, delivery and totality remain obligations. Monitored sessions, retries, native receive, dynamic calls, exceptions and unsupported syntax report the target and structural source path. No source termination or compiler/runtime receive optimization is inferred. Current cost profiles use unary integer server contracts, so the request payload must satisfy that handler's integer input domain.
Summary
Functions
@spec infer(ReductionBounds.target(), map(), keyword()) :: {:ok, map()} | {:error, term()}