• 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
            • Vl-expr-expand-function-calls
            • Vl-expand-function-call
            • Vl-module-expand-functions
            • Vl-modulelist-expand-functions
            • Vl-check-bad-funcalls
            • Vl-funtemplate
            • Vl-funbody-to-assignments
            • Vl-assignlist->rhses
            • Vl-fundecl-expand-params
            • Vl-fun-stmt-okp
            • Vl-fundecllist-expand-params
            • Vl-remove-fake-function-vardecls
              • Vl-design-expand-functions
            • Delayredux
            • Unparameterization
            • 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
    • Expand-functions

    Vl-remove-fake-function-vardecls

    Signature
    (vl-remove-fake-function-vardecls x) → new-x
    Arguments
    x — Guard (vl-vardecllist-p x).
    Returns
    new-x — Type (vl-vardecllist-p new-x).

    Definitions and Theorems

    Function: vl-remove-fake-function-vardecls

    (defun vl-remove-fake-function-vardecls (x)
      (declare (xargs :guard (vl-vardecllist-p x)))
      (let ((__function__ 'vl-remove-fake-function-vardecls))
        (declare (ignorable __function__))
        (b* (((when (atom x)) nil)
             (x1 (vl-vardecl-fix (car x)))
             ((when (assoc-equal "VL_HIDDEN_DECL_FOR_TASKPORT"
                                 (vl-vardecl->atts x1)))
              (vl-remove-fake-function-vardecls (cdr x))))
          (cons x1
                (vl-remove-fake-function-vardecls (cdr x))))))

    Theorem: vl-vardecllist-p-of-vl-remove-fake-function-vardecls

    (defthm vl-vardecllist-p-of-vl-remove-fake-function-vardecls
      (b* ((new-x (vl-remove-fake-function-vardecls x)))
        (vl-vardecllist-p new-x))
      :rule-classes :rewrite)