• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
        • Deftagsum
        • Defprod
        • Defflexsum
        • Defbitstruct
        • Deflist
        • Defalist
        • Defbyte
        • Deffixequiv
        • Defresult
          • Reserr
            • Reserrp
            • Reserr-fix
            • Reserr-equiv
            • Make-reserr
              • Change-reserr
              • Reserr->info
            • Reserr-option
            • Patbind-ok
            • Reserrf-push
            • Defresult-macro-definition
            • Reserrf
            • Patbind-okf
          • Deffixtype
          • Defoption
          • Fty-discipline
          • Fold
          • Fty-extensions
          • Defsubtype
          • Defset
          • Deftypes
          • Specific-types
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Fty::basetypes
          • Defomap
          • Defvisitors
          • Deffixtype-alias
          • Deffixequiv-sk
          • Defunit
          • Multicase
          • Deffixequiv-mutual
          • Fty::baselists
          • Def-enumcase
          • Defmap
        • Apt
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Reserr

    Make-reserr

    Basic constructor macro for reserr structures.

    Syntax
    (make-reserr [:info <info>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-reserr

    (defmacro make-reserr (&rest args)
      (std::make-aggregate 'reserr
                           args '((:info))
                           'make-reserr
                           nil))

    Function: reserr

    (defun reserr (info)
      (declare (xargs :guard (acl2::any-p info)))
      (declare (xargs :guard t))
      (let ((__function__ 'reserr))
        (declare (ignorable __function__))
        (b* ((info (mbe :logic (identity info)
                        :exec info)))
          (cons :error (list (cons 'info info))))))