• 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
          • Address
          • Wire
          • Module
          • Lhs
          • Path
          • Svar-add-namespace
          • Design
          • Modinst
            • Modinst-fix
            • Modinst-equiv
            • Make-modinst
              • Modinst->modname
              • Modinst->instname
              • Change-modinst
              • Modinstlist
              • Modinst-p
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Modinst

    Make-modinst

    Basic constructor macro for modinst structures.

    Syntax
    (make-modinst [:instname <instname>] 
                  [:modname <modname>]) 
    

    This is the usual way to construct modinst structures. It simply conses together a structure with the specified fields.

    This macro generates a new modinst structure from scratch. See also change-modinst, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-modinst

    (defmacro make-modinst (&rest args)
      (std::make-aggregate 'modinst
                           args '((:instname) (:modname))
                           'make-modinst
                           nil))

    Function: modinst

    (defun modinst (instname modname)
      (declare (xargs :guard (and (name-p instname)
                                  (modname-p modname))))
      (declare (xargs :guard t))
      (let ((__function__ 'modinst))
        (declare (ignorable __function__))
        (b* ((instname (mbe :logic (name-fix instname)
                            :exec instname))
             (modname (mbe :logic (modname-fix modname)
                           :exec modname)))
          (std::prod-cons instname modname))))