• 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
          • Vl-load-merge-descriptions
          • Scope-of-defines
          • Vl-load-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
            • Make-vl-loadresult
            • Vl-loadresult->filemap
            • Vl-loadresult->design
              • Vl-loadresult->defines
              • Change-vl-loadresult
              • Vl-loadresult-p
            • 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
    • 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)