• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
        • Base-api
        • Aignet-construction
        • Representation
        • Aignet-copy-init
        • Aignet-simplify-with-tracking
        • Aignet-simplify-marked-with-tracking
        • Aignet-cnf
        • Aignet-simplify-marked
        • Aignet-complete-copy
        • Aignet-transforms
        • Aignet-eval
          • Vector-simulation
            • Aignet-vecsim
            • Aignet-vecsim1
            • S32v
              • S32v-set2
                • S32v-resize-rows
                • S32v-resize-cols
                • S32v-get2
                • S32v-nrows
                • S32v-ncols
              • Random-sim
              • Exhaustive-sim
              • S32v-randomize-inputs
              • S32v-randomize-regs
              • Aignet-vecsim-top
          • Semantics
          • 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
      • Math
      • Testing-utilities
    • S32v

    S32v-set2

    Set the element at arr[row][col] in the s32v array to some new value.

    Logical definition:

    Function: s32vl-set2

    (defun s32vl-set2 (stobjs::row stobjs::col stobjs::val s32vl-arr2)
     (declare
          (type (integer 0 *) stobjs::row)
          (type (integer 0 *) stobjs::col)
          (type (signed-byte 32) stobjs::val)
          (xargs :guard (and (s32vl-arr2-wfp s32vl-arr2)
                             (< stobjs::row (s32vl-nrows s32vl-arr2))
                             (< stobjs::col (s32vl-ncols s32vl-arr2)))))
     (stobjs::2darr
         (stobjs::2darr->ncols s32vl-arr2)
         (update-nth stobjs::row
                     (update-nth stobjs::col stobjs::val
                                 (nth stobjs::row
                                      (stobjs::2darr->rows s32vl-arr2)))
                     (stobjs::2darr->rows s32vl-arr2))))