(regnum->id n aignet) gets the ID of the node with register number
Logically this is
In the execution this is a stobj array lookup in the registers array.
Function:
(defun aignet$a::regnum->id (n aignet) (declare (xargs :guard (and (natp n) (aignet$a::aignet-well-formedp aignet)))) (declare (xargs :guard (< n (aignet$a::num-regs aignet)))) (let ((__function__ 'aignet$a::regnum->id)) (declare (ignorable __function__)) (fanin-count (lookup-stype n (reg-stype) aignet))))