• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • 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-read-file-loop
            • Vl-read-file-loop-aux
            • Vl-read-file-hook
            • 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-read-file

    Vl-read-file-hook

    Customizable hook for vl-read-file.

    This is generally intended for collecting up statistics on the files that have been read. By default we do nothing.

    Definitions and Theorems

    Theorem: state-p1-of-vl-read-file-hook

    (defthm state-p1-of-vl-read-file-hook
      (implies
           (force (state-p1 state))
           (state-p1 (vl-read-file-hook filename contents len state))))

    Function: vl-read-file-hook-default

    (defun vl-read-file-hook-default (filename contents len state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (stringp filename)
                                  (vl-echarlist-p contents)
                                  (equal len (len contents)))))
      (declare (ignore filename contents len))
      (let ((__function__ 'vl-read-file-hook-default))
        (declare (ignorable __function__))
        state))

    Theorem: state-p1-of-vl-read-file-hook-default

    (defthm state-p1-of-vl-read-file-hook-default
     (implies
      (state-p1 state)
      (b*
       ((state (vl-read-file-hook-default filename contents len state)))
       (state-p1 state)))
     :rule-classes :rewrite)