• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • 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
              • 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
    • Ppst

    Ppst-accessors

    Replacement accessors for ppst with unconditional types and automatic ppst.

    Definitions and Theorems

    Function: vl-ppst->acc$inline

    (defun vl-ppst->acc$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->acc))
        (declare (ignorable __function__))
        (mbe :logic (vl-echarlist-fix (vl-ppst->acc-raw ppst))
             :exec (vl-ppst->acc-raw ppst))))

    Theorem: vl-echarlist-p-of-vl-ppst->acc

    (defthm vl-echarlist-p-of-vl-ppst->acc
      (b* ((acc (vl-ppst->acc$inline ppst)))
        (vl-echarlist-p acc))
      :rule-classes :rewrite)

    Function: vl-ppst->istack$inline

    (defun vl-ppst->istack$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->istack))
        (declare (ignorable __function__))
        (mbe :logic (vl-istack-fix (vl-ppst->istack-raw ppst))
             :exec (vl-ppst->istack-raw ppst))))

    Theorem: vl-istack-p-of-vl-ppst->istack

    (defthm vl-istack-p-of-vl-ppst->istack
      (b* ((istack (vl-ppst->istack$inline ppst)))
        (vl-istack-p istack))
      :rule-classes :rewrite)

    Function: vl-ppst->activep$inline

    (defun vl-ppst->activep$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->activep))
        (declare (ignorable __function__))
        (mbe :logic (acl2::bool-fix (vl-ppst->activep-raw ppst))
             :exec (vl-ppst->activep-raw ppst))))

    Theorem: booleanp-of-vl-ppst->activep

    (defthm booleanp-of-vl-ppst->activep
      (b* ((activep (vl-ppst->activep$inline ppst)))
        (booleanp activep))
      :rule-classes :type-prescription)

    Function: vl-ppst->defines$inline

    (defun vl-ppst->defines$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->defines))
        (declare (ignorable __function__))
        (mbe :logic (vl-defines-fix (vl-ppst->defines-raw ppst))
             :exec (vl-ppst->defines-raw ppst))))

    Theorem: vl-defines-p-of-vl-ppst->defines

    (defthm vl-defines-p-of-vl-ppst->defines
      (b* ((defines (vl-ppst->defines$inline ppst)
    ))
        (vl-defines-p defines))
      :rule-classes :rewrite)

    Function: vl-ppst->filemap$inline

    (defun vl-ppst->filemap$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->filemap))
        (declare (ignorable __function__))
        (mbe :logic (vl-filemap-fix (vl-ppst->filemap-raw ppst))
             :exec (vl-ppst->filemap-raw ppst))))

    Theorem: vl-filemap-p-of-vl-ppst->filemap

    (defthm vl-filemap-p-of-vl-ppst->filemap
      (b* ((filemap (vl-ppst->filemap$inline ppst)))
        (vl-filemap-p filemap))
      :rule-classes :rewrite)

    Function: vl-ppst->config$inline

    (defun vl-ppst->config$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->config))
        (declare (ignorable __function__))
        (mbe :logic (vl-loadconfig-fix (vl-ppst->config-raw ppst))
             :exec (vl-ppst->config-raw ppst))))

    Theorem: vl-loadconfig-p-of-vl-ppst->config

    (defthm vl-loadconfig-p-of-vl-ppst->config
      (b* ((config (vl-ppst->config$inline ppst)))
        (vl-loadconfig-p config))
      :rule-classes :rewrite)

    Function: vl-ppst->iskips$inline

    (defun vl-ppst->iskips$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->iskips))
        (declare (ignorable __function__))
        (mbe :logic (vl-includeskips-fix (vl-ppst->iskips-raw ppst))
             :exec (vl-ppst->iskips-raw ppst))))

    Theorem: vl-includeskips-p-of-vl-ppst->iskips

    (defthm vl-includeskips-p-of-vl-ppst->iskips
      (b* ((iskips (vl-ppst->iskips$inline ppst)))
        (vl-includeskips-p iskips))
      :rule-classes :rewrite)

    Function: vl-ppst->warnings$inline

    (defun vl-ppst->warnings$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->warnings))
        (declare (ignorable __function__))
        (mbe :logic (vl-warninglist-fix (vl-ppst->warnings-raw ppst))
             :exec (vl-ppst->warnings-raw ppst))))

    Theorem: vl-warninglist-p-of-vl-ppst->warnings

    (defthm vl-warninglist-p-of-vl-ppst->warnings
      (b* ((warnings (vl-ppst->warnings$inline ppst)))
        (vl-warninglist-p warnings))
      :rule-classes :rewrite)

    Function: vl-ppst->includes$inline

    (defun vl-ppst->includes$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->includes))
        (declare (ignorable __function__))
        (mbe :logic (string-list-fix (vl-ppst->includes-raw ppst))
             :exec (vl-ppst->includes-raw ppst))))

    Theorem: string-listp-of-vl-ppst->includes

    (defthm string-listp-of-vl-ppst->includes
      (b* ((includes (vl-ppst->includes$inline ppst)))
        (string-listp includes))
      :rule-classes :rewrite)

    Function: vl-ppst->bytes$inline

    (defun vl-ppst->bytes$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->bytes))
        (declare (ignorable __function__))
        (mbe :logic (lnfix (vl-ppst->bytes-raw ppst))
             :exec (vl-ppst->bytes-raw ppst))))

    Theorem: natp-of-vl-ppst->bytes

    (defthm natp-of-vl-ppst->bytes
      (b* ((bytes (vl-ppst->bytes$inline ppst)))
        (natp bytes))
      :rule-classes :rewrite)

    Function: vl-ppst->idcache$inline

    (defun vl-ppst->idcache$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->idcache))
        (declare (ignorable __function__))
        (mbe :logic (vl-dirlist-cache-fix (vl-ppst->idcache-raw ppst))
             :exec (vl-ppst->idcache-raw ppst))))

    Theorem: vl-dirlist-cache-p-of-vl-ppst->idcache

    (defthm vl-dirlist-cache-p-of-vl-ppst->idcache
      (b* ((idcache (vl-ppst->idcache$inline ppst)))
        (vl-dirlist-cache-p idcache))
      :rule-classes :rewrite)

    Function: vl-ppst->ifdefmap$inline

    (defun vl-ppst->ifdefmap$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->ifdefmap))
        (declare (ignorable __function__))
        (mbe :logic (vl-ifdef-use-map-fix (vl-ppst->ifdefmap-raw ppst))
             :exec (vl-ppst->ifdefmap-raw ppst))))

    Theorem: vl-ifdef-use-map-p-of-vl-ppst->ifdefmap

    (defthm vl-ifdef-use-map-p-of-vl-ppst->ifdefmap
      (b* ((map (vl-ppst->ifdefmap$inline ppst)))
        (vl-ifdef-use-map-p map))
      :rule-classes :rewrite)

    Function: vl-ppst->defmap$inline

    (defun vl-ppst->defmap$inline (ppst)
      (declare (xargs :stobjs (ppst)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-ppst->defmap))
        (declare (ignorable __function__))
        (mbe :logic (vl-def-use-map-fix (vl-ppst->defmap-raw ppst))
             :exec (vl-ppst->defmap-raw ppst))))

    Theorem: vl-def-use-map-p-of-vl-ppst->defmap

    (defthm vl-def-use-map-p-of-vl-ppst->defmap
      (b* ((map (vl-ppst->defmap$inline ppst)))
        (vl-def-use-map-p map))
      :rule-classes :rewrite)