• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
            • Program
              • Program-fix
              • Program-equiv
              • Make-program
                • Programp
                • Program->packages
                • Program->functions
                • Change-program
              • Lift-program
            • Interpreter
            • Evaluation-states
          • 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
    • Program

    Make-program

    Basic constructor macro for program structures.

    Syntax
    (make-program [:packages <packages>] 
                  [:functions <functions>]) 
    

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

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

    Definition

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

    Macro: make-program

    (defmacro make-program (&rest args)
      (std::make-aggregate 'program
                           args '((:packages) (:functions))
                           'make-program
                           nil))

    Function: program

    (defun program (packages functions)
      (declare (xargs :guard (and (package-listp packages)
                                  (function-setp functions))))
      (declare (xargs :guard t))
      (let ((__function__ 'program))
        (declare (ignorable __function__))
        (b* ((packages (mbe :logic (package-list-fix packages)
                            :exec packages))
             (functions (mbe :logic (function-set-fix functions)
                             :exec functions)))
          (list packages functions))))