• 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
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
          • Vl-model
          • Vl-json
          • Vl-gather
          • Vl-server
          • Vl-pp
            • Vl-pp-opts-p
          • Vl-lint
          • Vl-main
          • Vl-toolkit-other-command
          • Vl-help
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Kit

Vl-pp

The vl pp command.

Signature
(vl-pp argv &key (state 'state)) → state
Arguments
argv — Guard (string-listp argv).

Definitions and Theorems

Function: vl-pp-fn

(defun vl-pp-fn (argv state)
  (declare (xargs :stobjs (state)))
  (declare (xargs :guard (string-listp argv)))
  (let ((__function__ 'vl-pp))
    (declare (ignorable __function__))
    (b* (((mv errmsg opts start-files)
          (parse-vl-pp-opts argv))
         ((when errmsg)
          (die "~@0~%" errmsg)
          state)
         (opts (change-vl-pp-opts opts
                                  :start-files start-files))
         ((vl-pp-opts opts) opts)
         ((when opts.help)
          (vl-cw-ps-seq (vl-print *vl-pp-help*))
          (exit-ok)
          state)
         ((when opts.readme)
          (vl-cw-ps-seq (vl-print *vl-pp-readme*))
          (exit-ok)
          state)
         ((unless (consp opts.start-files))
          (die "No files to process.")
          state)
         (- (cw "Starting VL Preprocessor:~%"))
         (- (cw " - start files: ~x0~%"
                opts.start-files))
         (state (must-be-regular-files! opts.start-files))
         (- (cw " - include dirs: ~x0~%"
                opts.include-dirs))
         (state (must-be-directories! opts.include-dirs))
         (- (cw " - writing output to ~x0:~%"
                opts.output))
         (- (cw " - soft heap size ceiling: ~x0 GB~%"
                opts.mem))
         (- (acl2::set-max-mem (* (expt 2 30) opts.mem)))
         (state (vl-pp-main opts)))
      (exit-ok)
      state)))

Subtopics

Vl-pp-opts-p
Options for running vl pp.