• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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-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 (vl-loadstate-p new-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*
       (((vl-loadstate st) st)
        ((vl-parsestate st.pstate) st.pstate)
        (w (make-vl-warning :type type
                            :msg msg
                            :args args
                            :fn fn
                            :fatalp fatalp))
        (new-pstate
          (change-vl-parsestate st.pstate
                                :warnings (cons w st.pstate.warnings))))
       (change-vl-loadstate st
                            :pstate new-pstate))))

    Theorem: vl-loadstate-p-of-vl-loadstate-warn

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