• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
            • Vl-loadstate-fix
            • Vl-loadstate-p
              • Vl-loadstate-warn
              • Vl-loadstate-set-warnings
              • Make-vl-loadstate
              • Vl-loadstate-equiv
              • Change-vl-loadstate
              • Vl-loadstate->reportcard
              • Vl-loadstate->descalist
              • Vl-loadstate->pstate
              • Vl-loadstate->filemap
              • Vl-loadstate->descs
              • Vl-loadstate->defines
              • Vl-loadstate->config
            • Parser
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-loadstate-p

    Vl-loadstate-set-warnings

    Signature
    (vl-loadstate-set-warnings warnings &key (st 'st)) → new-st
    Arguments
    warnings — Guard (vl-warninglist-p warnings).
    st — Guard (vl-loadstate-p st).
    Returns
    new-st — Type (vl-loadstate-p new-st).

    Definitions and Theorems

    Function: vl-loadstate-set-warnings-fn

    (defun vl-loadstate-set-warnings-fn (warnings st)
      (declare (xargs :guard (and (vl-warninglist-p warnings)
                                  (vl-loadstate-p st))))
      (let ((__function__ 'vl-loadstate-set-warnings))
        (declare (ignorable __function__))
        (b* (((vl-loadstate st) st)
             (new-pstate (change-vl-parsestate st.pstate
                                               :warnings warnings)))
          (change-vl-loadstate st
                               :pstate new-pstate))))

    Theorem: vl-loadstate-p-of-vl-loadstate-set-warnings

    (defthm vl-loadstate-p-of-vl-loadstate-set-warnings
      (b* ((new-st (vl-loadstate-set-warnings-fn warnings st)))
        (vl-loadstate-p new-st))
      :rule-classes :rewrite)