• 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-loadconfig
          • Vl-loadstate
            • Vl-loadstate-p
            • Vl-loadstate-fix
            • Make-vl-loadstate
            • Vl-loadstate->descalist
            • Vl-loadstate-equiv
            • Vl-loadstate->descs
            • Change-vl-loadstate
            • Vl-loadstate->spcache
            • Vl-loadstate->reportcard
            • Vl-loadstate->pstate
            • Vl-loadstate->iskips
            • Vl-loadstate->ifdefmap
            • Vl-loadstate->idcache
            • Vl-loadstate->filemap
            • Vl-loadstate-warn
              • Vl-loadstate-fatal
              • Vl-loadstate->defmap
              • Vl-loadstate->defines
              • Vl-loadstate->config
              • Vl-loadstate->bytes
              • Vl-loadstate-set-warnings
            • 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-loadstate

    Vl-loadstate-warn

    Signature
    (vl-loadstate-warn &key type msg args (fn '__function__) 
                       fatalp (st 'st)) 
     
      → 
    new-st
    Arguments
    type — Guard (symbolp type).
    msg — Guard (stringp msg).
    args — Guard (true-listp args).
    fn — Guard (symbolp fn).
    fatalp — Guard (booleanp fatalp).
    st — Guard (vl-loadstate-p st).
    Returns
    new-st — Type (and (vl-loadstate-p new-st) (equal (vl-loadstate->descs new-st) (vl-loadstate->descs st))) .

    Definitions and Theorems

    Function: vl-loadstate-warn-fn

    (defun vl-loadstate-warn-fn (type msg args fn fatalp st)
      (declare (xargs :guard (and (symbolp type)
                                  (stringp msg)
                                  (true-listp args)
                                  (symbolp fn)
                                  (booleanp fatalp)
                                  (vl-loadstate-p st))))
      (let ((__function__ 'vl-loadstate-warn))
        (declare (ignorable __function__))
        (b* ((w (make-vl-warning :type type
                                 :msg msg
                                 :args args
                                 :fn fn
                                 :fatalp fatalp))
             (warnings (vl-loadstate->warnings st)))
          (vl-loadstate-set-warnings (cons w warnings)))))

    Theorem: return-type-of-vl-loadstate-warn

    (defthm return-type-of-vl-loadstate-warn
      (b* ((new-st (vl-loadstate-warn-fn type msg args fn fatalp st)))
        (and (vl-loadstate-p new-st)
             (equal (vl-loadstate->descs new-st)
                    (vl-loadstate->descs st))))
      :rule-classes :rewrite)