• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
      • Ipasir
      • Aignet
        • Base-api
          • Aignet-case
          • Aignet-init
          • Aignet-add-xor
          • Aignet-add-and
          • Gate-id->fanin1
          • Gate-id->fanin0
          • Ci-id->ionum
          • Literal
          • Aignet-set-nxst
          • Aignet-clear
          • Aignet-add-out
          • Regnum->nxst
            • Id->slot1
            • Id->phase
            • Num-regs
            • Num-ins
            • Num-fanins
            • Id->slot0
            • Regnum->id
            • Id->type
            • Id->regp
            • Outnum->fanin
            • Innum->id
            • Id-existsp
            • Aignet-add-reg
            • Aignet-add-in
            • Num-gates
            • Aignet-rollback
            • Num-outs
            • Num-nxsts
            • Fanin-litp
          • Aignet-construction
          • Representation
          • Aignet-copy-init
          • Aignet-simplify-marked-with-tracking
          • Aignet-cnf
          • Aignet-simplify-with-tracking
          • Aignet-complete-copy
          • Aignet-eval
          • Semantics
          • Aignet-transforms
          • Aignet-simplify-marked
          • Aignet-read-aiger
          • Aignet-write-aiger
          • Aignet-abc-interface
          • Utilities
        • Aig
        • Satlink
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Projects
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Base-api

    Regnum->nxst

    (regnum->nxst reg aignet) gets the next-state literal for register number reg.

    Logically this is just (lookup-reg->nxst reg aignet))

    In the execution this gets the register ID number from the register array and then extracts the next-state literal from the node array.

    Function: regnum->nxst

    (defun
       regnum->nxst (reg aignet)
       (declare (xargs :stobjs (aignet)))
       (declare (xargs :guard (natp reg)))
       (declare (xargs :guard (< reg (num-regs aignet))))
       (let ((__function__ 'regnum->nxst))
            (declare (ignorable __function__))
            (mbe :logic (non-exec (lookup-reg->nxst reg aignet))
                 :exec (snode->fanin^ (id->slot0 (regnum->id reg aignet)
                                                 aignet)))))