• 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
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
            • Vl-function-specialization-map-strip
            • Vl-portdecl-or-blockitem-list-strip
            • Vl-maybe-delayoreventcontrol-strip
            • Vl-portdecl-or-blockitem-strip
            • Vl-fundecl-strip
              • Vl-function-specialization-strip
              • Vl-taskdecl-strip
              • Vl-repeateventcontrol-strip
              • Vl-delayoreventcontrol-strip
              • Vl-sequence-strip
              • Vl-property-strip
              • Vl-paramtype-strip
              • Vl-modinst-strip
              • Vl-maybe-gatedelay-strip
              • Vl-gateinst-strip
              • Vl-assign-strip
              • Vl-vardecl-strip
              • Vl-propspec-strip
              • Vl-propport-strip
              • Vl-portdecl-strip
              • Vl-paramdecl-strip
              • Vl-maybe-exprdist-strip
              • Vl-letdecl-strip
              • Vl-initial-strip
              • Vl-blockitem-strip
              • Vl-arguments-strip
              • Vl-always-strip
              • Vl-alias-strip
              • Vl-vardecllist-strip
              • Vl-typedeflist-strip
              • Vl-repetition-strip
              • Vl-propportlist-strip
              • Vl-portdecllist-strip
              • Vl-plainarglist-strip
              • Vl-paramdecllist-strip
              • Vl-namedarglist-strip
              • Vl-modinstlist-strip
              • Vl-maybe-rhs-strip
              • Vl-gateinstlist-strip
              • Vl-gatedelay-strip
              • Vl-final-strip
              • Vl-exprdistlist-strip
              • Vl-eventcontrol-strip
              • Vl-distitem-strip
              • Vl-delaycontrol-strip
              • Vl-blockitemlist-strip
              • Vl-typedef-strip
              • Vl-rhs-strip
              • Vl-plainarg-strip
              • Vl-namedarg-strip
              • Vl-importlist-strip
              • Vl-import-strip
              • Vl-exprdist-strip
              • Vl-distlist-strip
              • Vl-assignlist-strip
              • Vl-expr-strip
            • Genblob
            • Expr-tools
            • Extract-vl-types
            • Hierarchy
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stripping-functions

    Vl-fundecl-strip

    Signature
    (vl-fundecl-strip x) → new-x
    Arguments
    x — Guard (vl-fundecl-p x).
    Returns
    new-x — Type (vl-fundecl-p new-x).

    Definitions and Theorems

    Function: vl-fundecl-strip

    (defun vl-fundecl-strip (x)
     (declare (xargs :guard (vl-fundecl-p x)))
     (let ((__function__ 'vl-fundecl-strip))
      (declare (ignorable __function__))
      (b* (((vl-fundecl x) (vl-fundecl-fix x)))
        (b*
         ((rettype (vl-datatype-strip x.rettype))
          (body (vl-stmt-strip x.body))
          (loc ((lambda (x)
                  (declare (ignore x))
                  *vl-fakeloc*)
                x.loc))
          (portdecls (vl-portdecllist-strip x.portdecls))
          (function-map
               (vl-function-specialization-map-strip x.function-map))
          (vardecls (vl-vardecllist-strip x.vardecls))
          (paramdecls (vl-paramdecllist-strip x.paramdecls))
          (typedefs (vl-typedeflist-strip x.typedefs))
          (imports (vl-importlist-strip x.imports))
          (atts ((lambda (x) (declare (ignore x)) nil)
                 x.atts))
          (loaditems (vl-portdecl-or-blockitem-list-strip x.loaditems)))
         (change-vl-fundecl x
                            :rettype rettype
                            :body body
                            :loc loc
                            :portdecls portdecls
                            :function-map function-map
                            :vardecls vardecls
                            :paramdecls paramdecls
                            :typedefs typedefs
                            :imports imports
                            :atts atts
                            :loaditems loaditems)))))

    Theorem: vl-fundecl-p-of-vl-fundecl-strip

    (defthm vl-fundecl-p-of-vl-fundecl-strip
      (b* ((new-x (vl-fundecl-strip x)))
        (vl-fundecl-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-fundecl-strip-of-vl-fundecl-fix-x

    (defthm vl-fundecl-strip-of-vl-fundecl-fix-x
      (equal (vl-fundecl-strip (vl-fundecl-fix x))
             (vl-fundecl-strip x)))

    Theorem: vl-fundecl-strip-vl-fundecl-equiv-congruence-on-x

    (defthm vl-fundecl-strip-vl-fundecl-equiv-congruence-on-x
      (implies (vl-fundecl-equiv x x-equiv)
               (equal (vl-fundecl-strip x)
                      (vl-fundecl-strip x-equiv)))
      :rule-classes :congruence)