• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
          • Finding-by-name
          • Expr-tools
            • Vl-expr-widthsfixed-p
            • Vl-make-idexpr-list
            • Vl-exprlist-resolved->vals
            • Vl-idexprlist->names
            • Vl-expr-names
            • Vl-expr-count
            • Vl-idexpr
            • Vl-exprlist-to-plainarglist
            • Vl-expr-atoms
            • Vl-expr-ops
            • Vl-expr-count-noatts
            • Vl-make-index
            • Vl-expr-selects
            • Vl-bitlist-from-nat
            • Vl-pps-expr
            • Vl-expr-add-atts
            • Vl-idexprlist-p
            • Vl-expr-resolved-p
            • Vl-pps-origexpr
              • Vl-expr-funnames
              • Vl-idexpr->name
              • Vl-idexpr-p
              • Vl-exprlist-funnames
              • Vl-resolved->val
              • Vl-exprlist-resolved-p
              • Vl-expr->atts
              • Vl-obviously-true-expr-p
              • Vl-obviously-false-expr-p
              • Vl-exprlist-has-funcalls
              • Vl-expr-has-funcalls
              • Vl-zbitlist-p
              • Vl-zatom-p
              • Vl-exprlist-has-ops
              • Vl-expr-has-ops
              • Vl-expr-varnames
              • Vl-one-bit-constants
            • Expr-slicing
            • Stripping-functions
            • Stmt-tools
            • Modnamespace
            • Vl-parse-expr-from-str
            • Welltyped
            • Reordering-by-name
            • Flat-warnings
            • Genblob
            • Expr-building
            • Datatype-tools
            • Syscalls
            • Relocate
            • Expr-cleaning
            • Namemangle
            • Caremask
            • Port-tools
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Expr-tools
    • Verilog-printing

    Vl-pps-origexpr

    Pretty-print the "original," un-transformed version of an expression into a string.

    Signature
    (vl-pps-origexpr x) → pretty-x
    Arguments
    x — Guard (vl-expr-p x).
    Returns
    pretty-x — Type (stringp pretty-x).

    Definitions and Theorems

    Function: vl-pps-origexpr

    (defun vl-pps-origexpr (x)
      (declare (xargs :guard (vl-expr-p x)))
      (let ((__function__ 'vl-pps-origexpr))
        (declare (ignorable __function__))
        (with-local-ps (vl-pp-origexpr x))))

    Theorem: stringp-of-vl-pps-origexpr

    (defthm stringp-of-vl-pps-origexpr
      (b* ((pretty-x (vl-pps-origexpr x)))
        (stringp pretty-x))
      :rule-classes :type-prescription)

    Theorem: vl-pps-origexpr-of-vl-expr-fix-x

    (defthm vl-pps-origexpr-of-vl-expr-fix-x
      (equal (vl-pps-origexpr (vl-expr-fix x))
             (vl-pps-origexpr x)))

    Theorem: vl-pps-origexpr-vl-expr-equiv-congruence-on-x

    (defthm vl-pps-origexpr-vl-expr-equiv-congruence-on-x
      (implies (vl-expr-equiv x x-equiv)
               (equal (vl-pps-origexpr x)
                      (vl-pps-origexpr x-equiv)))
      :rule-classes :congruence)