• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Parser
            • Parse-expressions
            • Parse-udps
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-datatype
            • Parse-functions
            • Parse-datatypes
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-ports
              • Parse-port-types
              • Sv-ansi-portdecls
              • Creating-portdecls/vardecls
              • Sv-non-ansi-portdecls
              • Verilog-2005-ports
              • Sv-ansi-port-interpretation
                • Vl-process-subsequent-ansi-port
                • Vl-process-first-ansi-port
                • Vl-process-subsequent-ansi-ports
                • Vl-nettype-for-parsed-ansi-port
                • Vl-parse-module-port-list-top-2012
                • Vl-process-ansi-ports
                • Vl-port-starts-ansi-port-list-p
                • Vl-parse-module-port-list-top
                  • Vl-genelementlist->portdecls
                • Verilog-2005-portdecls
              • Seq
              • Parse-packages
            • 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
    • Sv-ansi-port-interpretation

    Vl-parse-module-port-list-top

    Signature
    (vl-parse-module-port-list-top &key (tokstream 'tokstream) 
                                   (config 'config)) 
     
      → 
    (mv errmsg? value new-tokstream)
    Arguments
    config — Guard (vl-loadconfig-p config).

    Definitions and Theorems

    Function: vl-parse-module-port-list-top-fn

    (defun vl-parse-module-port-list-top-fn (tokstream config)
      (declare (xargs :stobjs (tokstream)))
      (declare (xargs :guard (vl-loadconfig-p config)))
      (declare (ignorable config))
      (let ((__function__ 'vl-parse-module-port-list-top))
        (declare (ignorable __function__))
        (seq tokstream
             (when (eq (vl-loadconfig->edition config)
                       :verilog-2005)
                   (ans := (vl-parse-module-port-list-top-2005))
                   (return ans))
             (ans := (vl-parse-module-port-list-top-2012))
             (return ans))))

    Theorem: vl-parse-module-port-list-top-fails-gracefully

    (defthm vl-parse-module-port-list-top-fails-gracefully
      (implies (mv-nth 0 (vl-parse-module-port-list-top))
               (not (mv-nth 1 (vl-parse-module-port-list-top)))))

    Theorem: vl-warning-p-of-vl-parse-module-port-list-top

    (defthm vl-warning-p-of-vl-parse-module-port-list-top
      (iff (vl-warning-p (mv-nth 0 (vl-parse-module-port-list-top)))
           (mv-nth 0 (vl-parse-module-port-list-top))))

    Theorem: vl-parse-module-port-list-top-result

    (defthm vl-parse-module-port-list-top-result
     (implies
      (and t)
      (equal
          (vl-parsed-ports-p (mv-nth 1 (vl-parse-module-port-list-top)))
          (not (mv-nth 0 (vl-parse-module-port-list-top))))))

    Theorem: vl-parse-module-port-list-top-count-weak

    (defthm vl-parse-module-port-list-top-count-weak
      (<= (vl-tokstream-measure
               :tokstream (mv-nth 2 (vl-parse-module-port-list-top)))
          (vl-tokstream-measure))
      :rule-classes ((:rewrite) (:linear)))