• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
          • Tag-environments
          • Function-environments
            • Init-fun-env
            • Fun-info
              • Fun-info-fix
              • Fun-info-equiv
              • Make-fun-info
                • Fun-info->params
                • Change-fun-info
                • Fun-info->result
                • Fun-info->body
                • Fun-infop
              • Fun-info-option
              • Fun-env-extend
              • Fun-env-result
              • Fun-env-lookup
              • Fun-info-from-fundef
              • Fun-env
            • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Fun-info

    Make-fun-info

    Basic constructor macro for fun-info structures.

    Syntax
    (make-fun-info [:params <params>] 
                   [:result <result>] 
                   [:body <body>]) 
    

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

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

    Definition

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

    Macro: make-fun-info

    (defmacro make-fun-info (&rest args)
      (std::make-aggregate 'fun-info
                           args '((:params) (:result) (:body))
                           'make-fun-info
                           nil))

    Function: fun-info

    (defun fun-info (params result body)
      (declare (xargs :guard (and (param-declon-listp params)
                                  (tynamep result)
                                  (block-item-listp body))))
      (declare (xargs :guard t))
      (let ((__function__ 'fun-info))
        (declare (ignorable __function__))
        (b* ((params (mbe :logic (param-declon-list-fix params)
                          :exec params))
             (result (mbe :logic (tyname-fix result)
                          :exec result))
             (body (mbe :logic (block-item-list-fix body)
                        :exec body)))
          (list (cons 'params params)
                (cons 'result result)
                (cons 'body body)))))