• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Fast-alists
        • Defconst
        • Defmacro
        • Loop$-primer
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Efficiency
        • Irrelevant-formals
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
        • Set-register-invariant-risk
        • Strings
          • Std/strings
            • Pretty-printing
              • Pretty-printing-implementation
                • Missing-functionality
                • Printconfig
                • Cons-ppr1
                • Print-escaped-charlist
                • Atom-size
                • Print-escaped-str
                • Obj-size
                • Maybe-merge-flat
                • Ppr
                • Printer-instructions
                  • Pinst
                    • Pinst-case
                    • Pinst-p
                    • Pinst-special-term
                    • Pinst-indent
                    • Pinst-wide
                      • Make-pinst-wide
                        • Pinst-wide->width
                        • Pinst-wide->rest
                        • Pinst-wide->first
                        • Change-pinst-wide
                      • Pinst-equiv
                      • Pinst-keypair
                      • Pinst-quote
                      • Pinst-keyline
                      • Pinst-flat
                      • Pinst-dot
                      • Pinst-kind
                      • Pinst-fix
                      • Pinst-count
                    • Pflat
                    • Pinstlist
                  • Keyword-param-valuep
                  • Print-flat-objs
                  • Radix-print-int
                  • Print-escaped-atom
                  • Print-atom
                  • Print-escaped-symbol
                  • Radix-print-complex
                  • Basic-print-complex
                  • Radix-print-rat
                  • Spaces1
                  • Basic-print-rat
                  • Basic-print-nat
                  • Basic-print-int
                  • Spaces
                  • My-needs-slashes
                  • Pinstlist->max-width
                  • Nat-size
                  • Special-term-num
                  • Print-column
                  • Print-base-fix
                  • Int-size
                  • Keyword-fix
                  • Print-instruction
                  • Pinst->width
                  • In-home-package-p
                  • Eviscerated->guts
                  • Evisceratedp
                  • Pprdot
                • Eviscerate
                • Pretty
                • Revappend-pretty
                • Pretty-list
              • Printtree
              • Base64
              • Charset-p
              • Strtok!
              • Cases
              • Concatenation
              • Html-encoding
              • Character-kinds
              • Substrings
              • Strtok
              • Equivalences
              • Url-encoding
              • Lines
              • Explode-implode-equalities
              • Ordering
              • Numbers
              • Pad-trim
              • Coercion
              • Std/strings/digit-to-char
              • Substitution
              • Symbols
            • String-listp
            • Stringp
            • Length
            • Search
            • Remove-duplicates
            • Position
            • Coerce
            • Concatenate
            • Reverse
            • String
            • Subseq
            • Substitute
            • String-upcase
            • String-downcase
            • Count
            • Char
            • String<
            • String-equal
            • String-utilities
            • String-append
            • String>=
            • String<=
            • String>
            • Hex-digit-char-theorems
            • String-downcase-gen
            • String-upcase-gen
          • Program-wrapper
          • Get-internal-time
          • Basics
          • Packages
          • Oracle-eval
          • Defmacro-untouchable
          • <<
          • Primitive
          • Revert-world
          • Unmemoize
          • Set-duplicate-keys-action
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Fake-oracle-eval
          • Defopen
          • Sleep
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Mailing-lists
        • Interfacing-tools
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Pinst-wide

    Make-pinst-wide

    Basic constructor macro for pinst-wide structures.

    Syntax
    (make-pinst-wide [:width <width>] 
                     [:first <first>] 
                     [:rest <rest>]) 
    

    This is the usual way to construct pinst-wide structures. It simply conses together a structure with the specified fields.

    This macro generates a new pinst-wide structure from scratch. See also change-pinst-wide, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-pinst-wide

    (defmacro make-pinst-wide (&rest args)
      (std::make-aggregate 'pinst-wide
                           args '((:width) (:first) (:rest))
                           'make-pinst-wide
                           nil))

    Function: pinst-wide

    (defun pinst-wide (width first rest)
     (declare (xargs :guard (and (posp width)
                                 (pflat-p first)
                                 (pinstlist-p rest))))
     (declare (xargs :guard t))
     (let ((acl2::__function__ 'pinst-wide))
      (declare (ignorable acl2::__function__))
      (b* ((width (mbe :logic (acl2::pos-fix width)
                       :exec width))
           (first (mbe :logic (pflat-fix first)
                       :exec first))
           (rest (mbe :logic (pinstlist-fix rest)
                      :exec rest)))
       (cons
            :wide (std::prod-cons width (std::prod-cons first rest))))))