• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
          • Bit-blasting
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
          • Values
            • 4vec
              • 4vec-operations
              • 4vec-p
              • S4vecs
              • 4vec-examples
              • Maybe-4vec
              • 4vec-equiv
              • Make-4vec
              • 4vec->upper
              • 4vec->lower
              • 4veclist
              • 4vec-fix
              • Make-honsed-4vec
                • 4vec-index-p
              • 4vec-<<=
              • 3vec
              • 2vec
              • 2vecx
              • 2vecnatx
              • 4vec-x
              • 4vec-1x
              • 4vec-1z
              • 4vec-z
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • 4vec

    Make-honsed-4vec

    Raw constructor for 4vecs, using hons.

    (make-honsed-4vec &key upper lower) is identical to make-4vec except that it uses hons instead of cons. This is generally what you want when building expressions.

    Macro: make-honsed-4vec

    (defmacro make-honsed-4vec (&key upper lower)
      (cons 'honsed-4vec
            (cons upper (cons lower 'nil))))

    Definitions and Theorems

    Function: honsed-4vec

    (defun honsed-4vec (upper lower)
      (declare (xargs :guard (and (integerp upper)
                                  (integerp lower))))
      (mbe :logic
           (make-4vec :upper upper :lower lower)
           :exec
           (b* ((upper (lifix upper))
                (lower (lifix lower)))
             (if (eql upper lower)
                 upper
               (hons upper lower)))))