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

    Make-vl-oddinfo

    Basic constructor macro for vl-oddinfo structures.

    Syntax
    (make-vl-oddinfo [:type <type>] 
                     [:subexpr <subexpr>] 
                     [:simple <simple>] 
                     [:complex <complex>] 
                     [:swidth <swidth>] 
                     [:cwidth <cwidth>]) 
    

    This is the usual way to construct vl-oddinfo structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-oddinfo structure from scratch. See also change-vl-oddinfo, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-oddinfo

    (defmacro make-vl-oddinfo (&rest args)
      (std::make-aggregate 'vl-oddinfo
                           args
                           '((:type)
                             (:subexpr)
                             (:simple)
                             (:complex)
                             (:swidth)
                             (:cwidth))
                           'make-vl-oddinfo
                           nil))

    Function: vl-oddinfo

    (defun vl-oddinfo (type subexpr simple complex swidth cwidth)
      (declare (xargs :guard (and (symbolp type)
                                  (vl-expr-p subexpr)
                                  (vl-expr-p simple)
                                  (vl-expr-p complex)
                                  (maybe-natp swidth)
                                  (maybe-natp cwidth))))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-oddinfo))
        (declare (ignorable __function__))
        (b* ((type (mbe :logic (acl2::symbol-fix type)
                        :exec type))
             (subexpr (mbe :logic (vl-expr-fix subexpr)
                           :exec subexpr))
             (simple (mbe :logic (vl-expr-fix simple)
                          :exec simple))
             (complex (mbe :logic (vl-expr-fix complex)
                           :exec complex))
             (swidth (mbe :logic (maybe-natp-fix swidth)
                          :exec swidth))
             (cwidth (mbe :logic (maybe-natp-fix cwidth)
                          :exec cwidth)))
          (list (cons 'type type)
                (cons 'subexpr subexpr)
                (cons 'simple simple)
                (cons 'complex complex)
                (cons 'swidth swidth)
                (cons 'cwidth cwidth)))))