• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
            • Make-vl-loadresult
            • Vl-loadresult-p
            • Vl-loadresult->ifdefmap
            • Change-vl-loadresult
            • Vl-loadresult->filemap
            • Vl-loadresult->design
              • Vl-loadresult->defmap
              • Vl-loadresult->defines
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Vl-loadresult

    Vl-loadresult->design

    Get the design field from a vl-loadresult.

    Signature
    (vl-loadresult->design x) → design
    Arguments
    x — Guard (vl-loadresult-p x).
    Returns
    design — Type (vl-design-p design).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-loadresult->design$inline

    (defun vl-loadresult->design$inline (x)
      (declare (xargs :guard (vl-loadresult-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-loadresult->design))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (vl-design-fix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: vl-design-p-of-vl-loadresult->design

    (defthm vl-design-p-of-vl-loadresult->design
      (b* ((design (vl-loadresult->design$inline x)))
        (vl-design-p design))
      :rule-classes :rewrite)

    Theorem: vl-loadresult->design$inline-of-vl-loadresult-fix-x

    (defthm vl-loadresult->design$inline-of-vl-loadresult-fix-x
      (equal (vl-loadresult->design$inline (vl-loadresult-fix x))
             (vl-loadresult->design$inline x)))

    Theorem: vl-loadresult->design$inline-vl-loadresult-equiv-congruence-on-x

    (defthm
       vl-loadresult->design$inline-vl-loadresult-equiv-congruence-on-x
      (implies (vl-loadresult-equiv x x-equiv)
               (equal (vl-loadresult->design$inline x)
                      (vl-loadresult->design$inline x-equiv)))
      :rule-classes :congruence)