• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
              • Vl-interfacelist-oddexpr-check
              • Vl-packagelist-oddexpr-check
              • Vl-modulelist-oddexpr-check
              • Vl-warn-odd-binary-expression-main
              • *vl-odd-binops-table*
              • Vl-oddinfo
                • Vl-oddinfo-fix
                • Make-vl-oddinfo
                • Vl-oddinfo-equiv
                • Vl-oddinfo-p
                • Change-vl-oddinfo
                • Vl-oddinfo->swidth
                • Vl-oddinfo->subexpr
                  • Vl-oddinfo->simple
                  • Vl-oddinfo->cwidth
                  • Vl-oddinfo->complex
                  • Vl-oddinfo->type
                • Vl-warn-odd-binary-expression
                • Vl-expr-probable-selfsize
                • Vl-interface-oddexpr-check
                • Vl-package-oddexpr-check
                • Vl-odd-binop-class
                • Vl-module-oddexpr-check
                • Vl-expr-oddexpr-check
                • Vl-oddinfo-details
                • Vl-ctxexprlist-oddexpr-check
                • Vl-oddinfolist-details
                • Vl-design-oddexpr-check
                • Vl-ctxexprlist-oddexpr-check-nrev
                • Vl-oddinfolist
              • 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-oddinfo

    Vl-oddinfo->subexpr

    Get the subexpr field from a vl-oddinfo.

    Signature
    (vl-oddinfo->subexpr x) → subexpr
    Arguments
    x — Guard (vl-oddinfo-p x).
    Returns
    subexpr — Type (vl-expr-p subexpr).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-oddinfo->subexpr$inline

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

    Theorem: vl-expr-p-of-vl-oddinfo->subexpr

    (defthm vl-expr-p-of-vl-oddinfo->subexpr
      (b* ((subexpr (vl-oddinfo->subexpr$inline x)))
        (vl-expr-p subexpr))
      :rule-classes :rewrite)

    Theorem: vl-oddinfo->subexpr$inline-of-vl-oddinfo-fix-x

    (defthm vl-oddinfo->subexpr$inline-of-vl-oddinfo-fix-x
      (equal (vl-oddinfo->subexpr$inline (vl-oddinfo-fix x))
             (vl-oddinfo->subexpr$inline x)))

    Theorem: vl-oddinfo->subexpr$inline-vl-oddinfo-equiv-congruence-on-x

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