• 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
              • 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-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
    • Oddexpr-check

    Vl-oddinfo-details

    Signature
    (vl-oddinfo-details n x &key (ps 'ps)) → ps
    Arguments
    n — Guard (natp n).
    x — Guard (vl-oddinfo-p x).

    Definitions and Theorems

    Function: vl-oddinfo-details-fn

    (defun vl-oddinfo-details-fn (n x ps)
      (declare (xargs :stobjs (ps)))
      (declare (xargs :guard (and (natp n) (vl-oddinfo-p x))))
      (let ((__function__ 'vl-oddinfo-details))
        (declare (ignorable __function__))
        (b* (((vl-oddinfo x)))
          (vl-ps-seq (vl-cw "[Issue #~x0] ~s1.  Expression:~%"
                            (lnfix n)
                            (if (eq x.type :check-type)
                                "(flagged based on widths)"
                              "(flagged based on operators)"))
                     (vl-ps-update-copious-parens nil)
                     (vl-indent 4)
                     (vl-pp-expr x.subexpr)
                     (vl-cw "~|Will be parsed as:~%")
                     (vl-ps-update-copious-parens t)
                     (vl-indent 4)
                     (vl-pp-expr x.subexpr)
                     (if (eq x.type :check-type)
                         (vl-ps-seq (vl-cw "~|Self-width ~x0 for ~a1.~%"
                                           x.swidth x.simple)
                                    (vl-cw "~|Self-width ~x0 for ~a1.~%"
                                           x.cwidth x.complex))
                       ps)
                     (vl-cw "~%")))))

    Theorem: vl-oddinfo-details-fn-of-nfix-n

    (defthm vl-oddinfo-details-fn-of-nfix-n
      (equal (vl-oddinfo-details-fn (nfix n) x ps)
             (vl-oddinfo-details-fn n x ps)))

    Theorem: vl-oddinfo-details-fn-nat-equiv-congruence-on-n

    (defthm vl-oddinfo-details-fn-nat-equiv-congruence-on-n
      (implies (acl2::nat-equiv n n-equiv)
               (equal (vl-oddinfo-details-fn n x ps)
                      (vl-oddinfo-details-fn n-equiv x ps)))
      :rule-classes :congruence)

    Theorem: vl-oddinfo-details-fn-of-vl-oddinfo-fix-x

    (defthm vl-oddinfo-details-fn-of-vl-oddinfo-fix-x
      (equal (vl-oddinfo-details-fn n (vl-oddinfo-fix x)
                                    ps)
             (vl-oddinfo-details-fn n x ps)))

    Theorem: vl-oddinfo-details-fn-vl-oddinfo-equiv-congruence-on-x

    (defthm vl-oddinfo-details-fn-vl-oddinfo-equiv-congruence-on-x
      (implies (vl-oddinfo-equiv x x-equiv)
               (equal (vl-oddinfo-details-fn n x ps)
                      (vl-oddinfo-details-fn n x-equiv ps)))
      :rule-classes :congruence)