• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
            • Vl-iframe
            • Preprocessor-ifdef-minutia
            • Vl-preprocess
            • Vl-preprocess-loop
            • Vl-includeskips
            • Vl-read-until-end-of-define
            • Vl-define-formallist->defaults
            • Vl-define
            • Vl-expand-define
            • Vl-read-include
            • Vl-substitute-into-macro-text
            • Vl-process-ifdef
            • Ppst
              • Vl-saved-ppst
                • Vl-saved-ppst-fix
                • Vl-saved-ppst-p
                • Make-vl-saved-ppst
                  • Vl-saved-ppst-equiv
                  • Change-vl-saved-ppst
                  • Vl-saved-ppst->ifdefmap
                  • Vl-saved-ppst->warnings
                  • Vl-saved-ppst->istack
                  • Vl-saved-ppst->iskips
                  • Vl-saved-ppst->includes
                  • Vl-saved-ppst->idcache
                  • Vl-saved-ppst->filemap
                  • Vl-saved-ppst->defmap
                  • Vl-saved-ppst->defines
                  • Vl-saved-ppst->config
                  • Vl-saved-ppst->activep
                  • Vl-saved-ppst->bytes
                  • Vl-saved-ppst->acc
                • Ppst-accessors
                • Ppst-mutators
                • Vl-ppst-fatal
                • Vl-restore-ppst
                • Vl-maybe-ppst-warn
                • Vl-save-ppst
                • Vl-ppst-warn
                • Vl-ppst-maybe-write1
                • Vl-ppst-maybe-write
                • Vl-ppst-write
              • Vl-read-define-default-text
              • Vl-process-define
              • Preprocessor-include-minutia
              • Vl-trim-for-preproc
              • Vl-line-up-define-formals-and-actuals
              • Vl-process-undef
              • Vl-split-define-text
              • Vl-def-context
              • Vl-process-endif
              • Scan-backward-for-non-whitespace
              • Vl-ifdef-context
              • Scan-backward-for-whitespace
              • Vl-atvl-atts-text
              • Scan-for-non-whitespace
              • Vl-check-remaining-formals-all-have-defaults
              • Vl-process-else
              • Vl-is-compiler-directive-p
              • Vl-includeskips-controller-lookup
              • Vl-ifdef-use-map
              • Vl-defines
              • Vl-def-use-map
              • Vl-nice-bytes
              • Vl-safe-previous-n
              • Vl-safe-next-n
              • Vl-ppst-pad
              • Vl-filename-to-string-literal
              • Vl-maybe-update-filemap
              • *vl-preprocess-clock*
              • Vl-ppst->warnings
              • Vl-ppst->iskips
              • Vl-ppst->ifdefmap
              • Vl-ppst->idcache
              • Vl-istack
              • Vl-ppst->istack
              • Vl-ppst->includes
              • Vl-ppst->filemap
              • Vl-ppst->defmap
              • Vl-ppst->defines
              • Vl-ppst->config
              • Vl-ppst->bytes
              • Vl-ppst->activep
              • Vl-ppst->acc
              • Vl-ppst-record-ifdef-use
              • Vl-ppst-record-def-use
              • Vl-ifdef-context-list
              • Vl-def-context-list
              • Vl-ppst-update-warnings
              • Vl-ppst-update-istack
              • Vl-ppst-update-iskips
              • Vl-ppst-update-includes
              • Vl-ppst-update-ifdefmap
              • Vl-ppst-update-idcache
              • Vl-ppst-update-filemap
              • Vl-ppst-update-defmap
              • Vl-ppst-update-defines
              • Vl-ppst-update-config
              • Vl-ppst-update-activep
              • Vl-ppst-update-bytes
              • Vl-ppst-update-acc
              • Vl-ppst-unsound-nreverse-acc
            • Vl-loadconfig
            • Vl-loadstate
            • Lexer
            • Parser
            • Vl-load-merge-descriptions
            • Vl-find-basename/extension
            • Vl-load-file
            • Vl-loadresult
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-saved-ppst

    Make-vl-saved-ppst

    Basic constructor macro for vl-saved-ppst structures.

    Syntax
    (make-vl-saved-ppst [:acc <acc>] 
                        [:istack <istack>] 
                        [:activep <activep>] 
                        [:defines <defines>] 
                        [:filemap <filemap>] 
                        [:config <config>] 
                        [:iskips <iskips>] 
                        [:warnings <warnings>] 
                        [:includes <includes>] 
                        [:bytes <bytes>] 
                        [:idcache <idcache>] 
                        [:ifdefmap <ifdefmap>] 
                        [:defmap <defmap>]) 
    

    This is the usual way to construct vl-saved-ppst structures. It simply conses together a structure with the specified fields.

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-saved-ppst

    (defmacro make-vl-saved-ppst (&rest args)
      (std::make-aggregate 'vl-saved-ppst
                           args
                           '((:acc)
                             (:istack)
                             (:activep)
                             (:defines)
                             (:filemap)
                             (:config)
                             (:iskips)
                             (:warnings)
                             (:includes)
                             (:bytes)
                             (:idcache)
                             (:ifdefmap)
                             (:defmap))
                           'make-vl-saved-ppst
                           nil))

    Function: vl-saved-ppst

    (defun vl-saved-ppst (acc istack activep
                              defines filemap config iskips warnings
                              includes bytes idcache ifdefmap defmap)
     (declare (xargs :guard (and (vl-echarlist-p acc)
                                 (vl-istack-p istack)
                                 (booleanp activep)
                                 (vl-defines-p defines)
                                 (vl-filemap-p filemap)
                                 (vl-loadconfig-p config)
                                 (vl-includeskips-p iskips)
                                 (vl-warninglist-p warnings)
                                 (string-listp includes)
                                 (natp bytes)
                                 (vl-dirlist-cache-p idcache)
                                 (vl-ifdef-use-map-p ifdefmap)
                                 (vl-def-use-map-p defmap))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-saved-ppst))
      (declare (ignorable __function__))
      (b* ((acc (mbe :logic (vl-echarlist-fix acc)
                     :exec acc))
           (istack (mbe :logic (vl-istack-fix istack)
                        :exec istack))
           (activep (mbe :logic (acl2::bool-fix activep)
                         :exec activep))
           (defines (mbe :logic (vl-defines-fix defines)
                         :exec defines)
    )
           (filemap (mbe :logic (vl-filemap-fix filemap)
                         :exec filemap))
           (config (mbe :logic (vl-loadconfig-fix config)
                        :exec config))
           (iskips (mbe :logic (vl-includeskips-fix iskips)
                        :exec iskips))
           (warnings (mbe :logic (vl-warninglist-fix warnings)
                          :exec warnings))
           (includes (mbe :logic (string-list-fix includes)
                          :exec includes))
           (bytes (mbe :logic (nfix bytes) :exec bytes))
           (idcache (mbe :logic (vl-dirlist-cache-fix idcache)
                         :exec idcache))
           (ifdefmap (mbe :logic (vl-ifdef-use-map-fix ifdefmap)
                          :exec ifdefmap))
           (defmap (mbe :logic (vl-def-use-map-fix defmap)
                        :exec defmap)))
       (cons
        :vl-saved-ppst
        (std::prod-cons
            (std::prod-cons
                 (std::prod-cons acc (std::prod-cons istack activep))
                 (std::prod-cons defines
                                 (std::prod-cons filemap config)))
            (std::prod-cons
                 (std::prod-cons iskips
                                 (std::prod-cons warnings includes))
                 (std::prod-cons (std::prod-cons bytes idcache)
                                 (std::prod-cons ifdefmap defmap))))))))