A physical transfer step with explicit queue count words #
The input words are front count, rear count, base, capacity and payload. The source step reads one rear-array cell, writes the next front cell, and returns updated counts as values. No count is stored in physical memory. The shared realization judgment certifies every native arithmetic and staging instruction while retaining literal whole-memory semantics.
Main definitions #
Input,Counts,counts: five input words, the named stack-count record (front,rear), and its two-word encoding.move,domain: one physical step and the original two-array capacity/room domain.
Main results #
realizes_move: one uniform emitter before runtime values and register layouts.runClient_move,valid_move,move_modifies: exact history, validity and physical frame.
References #
The queue and its algorithmic references are in Cslib.DataStructure.Queue.Spec.
Five live input words: front count, rear count, base, capacity, reserved payload.
One exact source transfer step; the counts are values, not cells.
The old capacity and allocation envelope, without extra count cells or zero memory.
One emitter precedes every count, layout, width and initial memory. All native arithmetic and vector staging are charged by the memory-query budget; the body performs two queries.
The exact source history, including the physical read and write.
Every access is within the original two arrays, including the written value's fit.
The literal physical-memory frame remains the old 2*C block.