• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
            • Vl-lint-report
            • Vl-lintresult
            • Vl::vl-design-sv-use-set
            • Oddexpr-check
            • Leftright-check
            • Duplicate-detect
            • Selfassigns
            • *vl-lint-help*
            • Arith-compare-check
            • Dupeinst-check
            • Qmarksize-check
            • Lint-whole-file-suppression
            • Run-vl-lint-main
            • Logicassign
            • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-lint

    Run-vl-lint

    Signature
    (run-vl-lint config &key (state 'state)) 
      → 
    (mv res loadres loadconfig state)
    Arguments
    config — Guard (vl-lintconfig-p config).
    Returns
    res — Type (vl-lintresult-p res).
    loadres — Type (vl-loadresult-p loadres).
    loadconfig — Type (vl-loadconfig-p loadconfig).
    state — Type (state-p1 state), given (state-p1 state).

    Definitions and Theorems

    Function: run-vl-lint-fn

    (defun run-vl-lint-fn (config state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (vl-lintconfig-p config)))
     (let ((__function__ 'run-vl-lint))
      (declare (ignorable __function__))
      (b*
       ((- (cw "Starting VL-Lint~%"))
        ((vl-lintconfig config) config)
        (- (or (not config.debug)
               (cw "Lint configuration: ~x0~%" config)))
        ((mv cmdline-warnings defines)
         (vl-parse-cmdline-defines
              config.defines
              (make-vl-location :filename "vl cmdline"
                                :line 1
                                :col 0)
              t))
        (- (or (not cmdline-warnings)
               (vl-cw-ps-seq (vl-print-warnings cmdline-warnings))))
        (loadconfig (vl-lintconfig-loadconfig config defines))
        (- (or (not config.debug)
               (cw "Load configuration: ~x0~%"
                   loadconfig)))
        (- (cw "~%vl-lint: loading modules...~%"))
        ((mv loadres state)
         (cwtime (vl-load loadconfig)))
        (design (vl-loadresult->design loadres))
        (design
             (change-vl-design
                  design
                  :warnings
                  (append-without-guard cmdline-warnings
                                        (vl-design->warnings design))))
        (lintres (cwtime (run-vl-lint-main design config)))
        (state
         (cwtime
             (vl-lint-extra-actions config
                                    loadconfig loadres lintres state))))
       (mv lintres loadres loadconfig state))))

    Theorem: vl-lintresult-p-of-run-vl-lint.res

    (defthm vl-lintresult-p-of-run-vl-lint.res
      (b* (((mv ?res ?loadres ?loadconfig acl2::?state)
            (run-vl-lint-fn config state)))
        (vl-lintresult-p res))
      :rule-classes :rewrite)

    Theorem: vl-loadresult-p-of-run-vl-lint.loadres

    (defthm vl-loadresult-p-of-run-vl-lint.loadres
      (b* (((mv ?res ?loadres ?loadconfig acl2::?state)
            (run-vl-lint-fn config state)))
        (vl-loadresult-p loadres))
      :rule-classes :rewrite)

    Theorem: vl-loadconfig-p-of-run-vl-lint.loadconfig

    (defthm vl-loadconfig-p-of-run-vl-lint.loadconfig
      (b* (((mv ?res ?loadres ?loadconfig acl2::?state)
            (run-vl-lint-fn config state)))
        (vl-loadconfig-p loadconfig))
      :rule-classes :rewrite)

    Theorem: state-p1-of-run-vl-lint.state

    (defthm state-p1-of-run-vl-lint.state
      (implies (state-p1 state)
               (b* (((mv ?res ?loadres ?loadconfig acl2::?state)
                     (run-vl-lint-fn config state)))
                 (state-p1 state)))
      :rule-classes :rewrite)