• 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
              • Write-object
              • Objdesign-of-var
              • Compustate-scopes-numbers
              • Create-var
              • Read-object
              • Compustate
                • Compustatep
                • Compustate-fix
                • Compustate-equiv
                • Make-compustate
                  • Compustate->frames
                  • Change-compustate
                  • Compustate->static
                  • Compustate->heap
                • Frame
                • Enter-scope
                • Compustate-scopes-numbers-aux
                • Compustate-option
                • Push-frame
                • Exit-scope
                • Compustate-frames-number
                • Compustate-option-result
                • Scope-list-result
                • Pop-frame
                • Compustate-result
                • Scope-result
                • Compustate-top-frame-scopes-number
                • Top-frame
                • Heap
                • Scope
                • Scope-list
                • Frame-list
              • Object-designators
              • Operations
              • Errors
              • 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
    • Compustate

    Make-compustate

    Basic constructor macro for compustate structures.

    Syntax
    (make-compustate [:static <static>] 
                     [:frames <frames>] 
                     [:heap <heap>]) 
    

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

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

    Definition

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

    Macro: make-compustate

    (defmacro make-compustate (&rest args)
      (std::make-aggregate 'compustate
                           args '((:static) (:frames) (:heap))
                           'make-compustate
                           nil))

    Function: compustate

    (defun compustate (static frames heap)
      (declare (xargs :guard (and (scopep static)
                                  (frame-listp frames)
                                  (heapp heap))))
      (declare (xargs :guard t))
      (let ((__function__ 'compustate))
        (declare (ignorable __function__))
        (b* ((static (mbe :logic (scope-fix static)
                          :exec static))
             (frames (mbe :logic (frame-list-fix frames)
                          :exec frames))
             (heap (mbe :logic (heap-fix heap)
                        :exec heap)))
          (list (cons 'static static)
                (cons 'frames frames)
                (cons 'heap heap)))))