• 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
      • 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
        • 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
        • 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
    • 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))))