• 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
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
            • Scopesubst
            • Vl-scopeinfo-resolve-params
            • Vl-make-paramdecloverrides
            • Vl-unparam-inst
            • Vl-scope-finalize-params
            • Vl-override-parameter-value
            • Vl-unparam-instlist
            • Vl-create-unparameterized-module
            • Vl-module-default-signature
            • Vl-modulelist-default-signatures
            • Vl-gencase-some-match
            • Vl-gencase-match
            • Vl-make-paramdecloverrides-named
            • Vl-unparam-newname
            • Vl-paramdecl-set-default
            • Vl-unparam-signature
            • Vl-genblob-collect-modinst-paramsigs
            • Vl-design-unparameterize
            • Vl-paramdecllist-remove-defaults
            • Vl-unparam-newname-exprstring
              • Vl-paramdecl-remove-default
              • Vl-unparam-sigalist
              • Vl-unparam-signaturelist
            • Caseelim
            • Split
            • Selresolve
            • Weirdint-elim
            • Vl-delta
            • Replicate-insts
            • Rangeresolve
            • Propagate
            • Clean-selects
            • Clean-params
            • Blankargs
            • Inline-mods
            • Expr-simp
            • Trunc
            • Always-top
            • Gatesplit
            • Gate-elim
            • Expression-optimization
            • Elim-supplies
            • Wildelim
            • Drop-blankports
            • Clean-warnings
            • Addinstnames
            • Custom-transform-hooks
            • Annotate
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Unparameterization

    Vl-unparam-newname-exprstring

    Signature
    (vl-unparam-newname-exprstring x) → str
    Arguments
    x — Guard (vl-maybe-expr-p x).
    Returns
    str — Type (stringp str).

    Definitions and Theorems

    Function: vl-unparam-newname-exprstring

    (defun vl-unparam-newname-exprstring (x)
      (declare (xargs :guard (vl-maybe-expr-p x)))
      (let ((__function__ 'vl-unparam-newname-exprstring))
        (declare (ignorable __function__))
        (if x (if (and (vl-expr-resolved-p x)
                       (equal (vl-expr->finalwidth x) 32)
                       (equal (vl-expr->finaltype x)
                              :vl-signed))
                  (natstr (vl-resolved->val x))
                (common-lisp::substitute #\_ #\Space (vl-pps-expr x)))
          "NULL")))

    Theorem: stringp-of-vl-unparam-newname-exprstring

    (defthm stringp-of-vl-unparam-newname-exprstring
      (b* ((str (vl-unparam-newname-exprstring x)))
        (stringp str))
      :rule-classes :type-prescription)

    Theorem: vl-unparam-newname-exprstring-of-vl-maybe-expr-fix-x

    (defthm vl-unparam-newname-exprstring-of-vl-maybe-expr-fix-x
      (equal (vl-unparam-newname-exprstring (vl-maybe-expr-fix x))
             (vl-unparam-newname-exprstring x)))

    Theorem: vl-unparam-newname-exprstring-vl-maybe-expr-equiv-congruence-on-x

    (defthm
      vl-unparam-newname-exprstring-vl-maybe-expr-equiv-congruence-on-x
      (implies (vl-maybe-expr-equiv x x-equiv)
               (equal (vl-unparam-newname-exprstring x)
                      (vl-unparam-newname-exprstring x-equiv)))
      :rule-classes :congruence)