• 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-unparam-newname-aux
              • 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
    • Vl-unparam-newname

    Vl-unparam-newname-aux

    Signature
    (vl-unparam-newname-aux x &key (ps 'ps)) → ps
    Arguments
    x — Guard (vl-paramdecllist-p x).

    Definitions and Theorems

    Function: vl-unparam-newname-aux-fn

    (defun vl-unparam-newname-aux-fn (x ps)
      (declare (xargs :stobjs (ps)))
      (declare (xargs :guard (vl-paramdecllist-p x)))
      (let ((__function__ 'vl-unparam-newname-aux))
        (declare (ignorable __function__))
        (b* (((when (atom x)) ps)
             ((vl-paramdecl x1) (car x))
             ((when x1.localp)
              (vl-unparam-newname-aux (cdr x)))
             ((the string name-part)
              (common-lisp::substitute #\_ #\Space x1.name))
             ((the string type-expr-part)
              (vl-paramtype-case
                   x1.type :vl-implicitvalueparam
                   (vl-unparam-newname-exprstring x1.type.default)
                   :vl-explicitvalueparam
                   (vl-unparam-newname-exprstring x1.type.default)
                   :vl-typeparam
                   (if x1.type.default
                       (with-local-ps (vl-pp-datatype x1.type.default))
                     "NULL"))))
          (vl-ps-seq (vl-print "$")
                     (vl-print-str name-part)
                     (vl-print "=")
                     (vl-print-str type-expr-part)
                     (vl-unparam-newname-aux (cdr x))))))

    Theorem: vl-unparam-newname-aux-fn-of-vl-paramdecllist-fix-x

    (defthm vl-unparam-newname-aux-fn-of-vl-paramdecllist-fix-x
      (equal (vl-unparam-newname-aux-fn (vl-paramdecllist-fix x)
                                        ps)
             (vl-unparam-newname-aux-fn x ps)))

    Theorem: vl-unparam-newname-aux-fn-vl-paramdecllist-equiv-congruence-on-x

    (defthm
       vl-unparam-newname-aux-fn-vl-paramdecllist-equiv-congruence-on-x
      (implies (vl-paramdecllist-equiv x x-equiv)
               (equal (vl-unparam-newname-aux-fn x ps)
                      (vl-unparam-newname-aux-fn x-equiv ps)))
      :rule-classes :congruence)