• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
            • Operations
            • Errors
              • Error
                • Error-fix
                • Error-equiv
                • Make-error
                  • Errorp
                  • Change-error
                  • Error->info
                • Defresult
                • Boolean-result
                • Defresult-fn
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Bytes
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Error

    Make-error

    Basic constructor macro for error structures.

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

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

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

    Definition

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

    Macro: make-error

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

    Function: error

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