• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
            • Vl-vardecllist-reset-atts
            • Vl-inline-rename-portdecls
            • Vl-inline-mod-in-mods-aux
            • Vl-inline-mod-in-modinst
            • Vl-inline-mod-in-modinsts
            • Vl-make-inlining-assigns
            • Vl-inline-mod-in-mod
            • Vl-inline-mods
            • Vl-ok-to-inline-list-p
            • Vl-ok-to-inline-p
              • Vl-inline-rename-portdecl
              • Vl-design-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
    • Inline-mods

    Vl-ok-to-inline-p

    Check if a module is simple enough for us to inline.

    Signature
    (vl-ok-to-inline-p x) → okp
    Arguments
    x — Guard (vl-module-p x).

    Definitions and Theorems

    Function: vl-ok-to-inline-p

    (defun vl-ok-to-inline-p (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-ok-to-inline-p))
        (declare (ignorable __function__))
        (b* (((vl-module x) x)
             (- (cw "Checking if we can inline ~s0..."
                    x.name)))
          (and (or (not (vl-portdecls-with-dir :vl-inout x.portdecls))
                   (cw "no: inout ports~%"))
               (or (not x.alwayses)
                   (cw "no: always blocks~%"))
               (or (not x.paramdecls)
                   (cw "no: parameter declarations~%"))
               (or (not x.fundecls)
                   (cw "no: function declarations~%"))
               (or (not x.taskdecls)
                   (cw "no: task declarations~%"))
               (not (cw "yes~%"))))))