• 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
              • Parse-vl-pp-opts
                • Parse-vl-pp-opts-long
                • Parse-vl-pp-opts-aux
                • Parse-vl-pp-opts-bundle
                  • Parse-vl-pp-opts-short->long-list
                  • Parse-vl-pp-opts-short->long
                • Vl-pp-opts
                • Make-vl-pp-opts
                • Change-vl-pp-opts
                • Honsed-vl-pp-opts
                • Make-honsed-vl-pp-opts
                • *vl-pp-opts-usage*
                • Vl-pp-opts->strict
                • Vl-pp-opts->start-files
                • Vl-pp-opts->readme
                • Vl-pp-opts->output
                • Vl-pp-opts->outdefs
                • Vl-pp-opts->mem
                • Vl-pp-opts->include-dirs
                • Vl-pp-opts->help
                • Vl-pp-opts->edition
                • Vl-pp-opts->defines
            • 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
    • Parse-vl-pp-opts

    Parse-vl-pp-opts-bundle

    Signature
    (parse-vl-pp-opts-bundle getopt::longnames 
                             args getopt::acc getopt::seen) 
     
      → 
    (mv getopt::errmsg getopt::acc getopt::seen rest)
    Arguments
    getopt::longnames — The already-expanded out names of the bundled options, with no dashes.
        Guard (string-listp getopt::longnames).
    args — Remaining arguments past longname.
        Guard (string-listp args).
    getopt::acc — Structure we're updating.
        Guard (vl-pp-opts-p getopt::acc).
    getopt::seen — List of longnames that we've seen so far.
        Guard (string-listp getopt::seen).
    Returns
    getopt::errmsg — NIL on success or an error message.
    getopt::acc — Type (vl-pp-opts-p getopt::acc), given (force (vl-pp-opts-p getopt::acc)).
    getopt::seen — Type (string-listp getopt::seen), given (and (force (string-listp getopt::longnames)) (force (string-listp getopt::seen))) .
    rest — Type (string-listp rest), given (force (string-listp args)).

    Definitions and Theorems

    Function: parse-vl-pp-opts-bundle

    (defun parse-vl-pp-opts-bundle
           (getopt::longnames args getopt::acc getopt::seen)
      (declare (xargs :guard (and (string-listp getopt::longnames)
                                  (string-listp args)
                                  (vl-pp-opts-p getopt::acc)
                                  (string-listp getopt::seen))))
      (let ((__function__ 'parse-vl-pp-opts-bundle))
        (declare (ignorable __function__))
        (b* (((when (atom getopt::longnames))
              (mv nil getopt::acc getopt::seen args))
             ((mv getopt::err getopt::acc rest)
              (parse-vl-pp-opts-long (car getopt::longnames)
                                     nil args getopt::acc getopt::seen))
             ((when getopt::err)
              (mv getopt::err
                  getopt::acc getopt::seen rest))
             (getopt::seen (cons (car getopt::longnames)
                                 getopt::seen)))
          (parse-vl-pp-opts-bundle (cdr getopt::longnames)
                                   rest getopt::acc getopt::seen))))

    Theorem: vl-pp-opts-p-of-parse-vl-pp-opts-bundle.acc

    (defthm vl-pp-opts-p-of-parse-vl-pp-opts-bundle.acc
     (implies
         (force (vl-pp-opts-p getopt::acc))
         (b* (((mv getopt::?errmsg getopt::?acc
                   getopt::?seen common-lisp::?rest)
               (parse-vl-pp-opts-bundle getopt::longnames
                                        args getopt::acc getopt::seen)))
           (vl-pp-opts-p getopt::acc)))
     :rule-classes :rewrite)

    Theorem: string-listp-of-parse-vl-pp-opts-bundle.seen

    (defthm string-listp-of-parse-vl-pp-opts-bundle.seen
     (implies
         (and (force (string-listp getopt::longnames))
              (force (string-listp getopt::seen)))
         (b* (((mv getopt::?errmsg getopt::?acc
                   getopt::?seen common-lisp::?rest)
               (parse-vl-pp-opts-bundle getopt::longnames
                                        args getopt::acc getopt::seen)))
           (string-listp getopt::seen)))
     :rule-classes :rewrite)

    Theorem: string-listp-of-parse-vl-pp-opts-bundle.rest

    (defthm string-listp-of-parse-vl-pp-opts-bundle.rest
     (implies
         (force (string-listp args))
         (b* (((mv getopt::?errmsg getopt::?acc
                   getopt::?seen common-lisp::?rest)
               (parse-vl-pp-opts-bundle getopt::longnames
                                        args getopt::acc getopt::seen)))
           (string-listp rest)))
     :rule-classes :rewrite)

    Theorem: parse-vl-pp-opts-bundle-makes-progress

    (defthm parse-vl-pp-opts-bundle-makes-progress
     (<=
      (len
       (mv-nth 3
               (parse-vl-pp-opts-bundle getopt::longnames
                                        args getopt::acc getopt::seen)))
      (len args))
     :rule-classes ((:rewrite) (:linear)))