• 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
          • Vl-lintconfig-p
            • Parse-vl-lintconfig
              • Parse-vl-lintconfig-long
              • Parse-vl-lintconfig-aux
              • Parse-vl-lintconfig-bundle
              • Parse-vl-lintconfig-short->long-list
              • Parse-vl-lintconfig-short->long
            • Vl-lintconfig
            • Make-vl-lintconfig
            • Change-vl-lintconfig
            • Honsed-vl-lintconfig
            • *vl-lintconfig-usage*
            • Make-honsed-vl-lintconfig
            • Vl-lintconfig->topmods
            • Vl-lintconfig->strict
            • Vl-lintconfig->start-files
            • Vl-lintconfig->search-path
            • Vl-lintconfig->search-exts
            • Vl-lintconfig->readme
            • Vl-lintconfig->quiet
            • Vl-lintconfig->mem
            • Vl-lintconfig->include-dirs
            • Vl-lintconfig->ignore
            • Vl-lintconfig->help
            • Vl-lintconfig->edition
            • Vl-lintconfig->dropmods
            • Vl-lintconfig->debug
            • Vl-lintconfig->cclimit
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
          • Duplicate-detect
          • Vl-print-certain-warnings
          • Duperhs-check
          • *vl-lint-help*
          • Lint-stmt-rewrite
          • Drop-missing-submodules
          • Check-case
          • Drop-user-submodules
          • Check-namespace
          • Vl-lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Vl-lintconfig-p

Parse-vl-lintconfig

Parse arguments from the command line into a vl-lintconfig-p aggregate.

Signature
(parse-vl-lintconfig args &key 
                     (getopt::init '*default-vl-lintconfig*)) 
 
  → 
(mv getopt::errmsg getopt::result getopt::extra)
Arguments
args — The command line arguments to parse, which is typically derived from oslib::argv.
    Guard (string-listp args).
getopt::init — An initial vl-lintconfig-p to start from, which gives the default values for each field.
    Guard (vl-lintconfig-p getopt::init).
Returns
getopt::errmsg — NIL on success, or an error message produced by msg, suitable for printing the fmt directive ~@.
getopt::result — An updated version of init where the command-line arguments have been applied. On any error, this may be only partially updated.
    Type (vl-lintconfig-p getopt::result), given (force (vl-lintconfig-p getopt::init)).
getopt::extra — Any other arguments in args that were not recognized as options. Typically this might include the "main" arguments to a program, e.g., file names, etc., that aren't associated with --options.
    Type (string-listp getopt::extra), given (force (string-listp args)).

This is an ordinary command line parser, automatically produced by getopt.

Definitions and Theorems

Function: parse-vl-lintconfig-fn

(defun parse-vl-lintconfig-fn (args getopt::init)
  (declare (xargs :guard (and (string-listp args)
                              (vl-lintconfig-p getopt::init))))
  (let ((__function__ 'parse-vl-lintconfig))
    (declare (ignorable __function__))
    (parse-vl-lintconfig-aux args getopt::init nil nil)))

Theorem: vl-lintconfig-p-of-parse-vl-lintconfig.result

(defthm vl-lintconfig-p-of-parse-vl-lintconfig.result
  (implies (force (vl-lintconfig-p getopt::init))
           (b* (((mv getopt::?errmsg
                     getopt::?result getopt::?extra)
                 (parse-vl-lintconfig-fn args getopt::init)))
             (vl-lintconfig-p getopt::result)))
  :rule-classes :rewrite)

Theorem: string-listp-of-parse-vl-lintconfig.extra

(defthm string-listp-of-parse-vl-lintconfig.extra
  (implies (force (string-listp args))
           (b* (((mv getopt::?errmsg
                     getopt::?result getopt::?extra)
                 (parse-vl-lintconfig-fn args getopt::init)))
             (string-listp getopt::extra)))
  :rule-classes :rewrite)

Subtopics

Parse-vl-lintconfig-long
Parse-vl-lintconfig-aux
Parse-vl-lintconfig-bundle
Parse-vl-lintconfig-short->long-list
Parse-vl-lintconfig-short->long