• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
        • Specification
          • Semantics
          • Features
            • Feat-base
            • Feat-endian
            • Feat
              • Featp
              • Feat-fix
              • Make-feat
                • Feat-equiv
                • Feat->endian
                • Change-feat
                • Feat->base
                • Feat->m
              • Feat->xnum
              • Feat->xlen
              • Feat-64p
              • Feat-32p
              • Feat-little-endianp
              • Feat-big-endianp
              • Feat-embedp
              • Feat-mp
              • Feat-rv64im-le
              • Feat-rv64em-le
              • Feat-rv32im-le
              • Feat-rv32em-le
              • Feat-rv64im-be
              • Feat-rv64i-le
              • Feat-rv64i-be
              • Feat-rv64em-be
              • Feat-rv64e-le
              • Feat-rv64e-be
              • Feat-rv32im-be
              • Feat-rv32i-le
              • Feat-rv32i-be
              • Feat-rv32em-be
              • Feat-rv32e-le
              • Feat-rv32e-be
            • States
            • Instructions
            • Encoding
            • Reads-over-writes
            • Execution
            • Decoding
          • Executable
          • Specialized
        • 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
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Feat

    Make-feat

    Basic constructor macro for feat structures.

    Syntax
    (make-feat [:base <base>] 
               [:endian <endian>] 
               [:m <m>]) 
    

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

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

    Definition

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

    Macro: make-feat

    (defmacro make-feat (&rest args)
      (std::make-aggregate 'feat
                           args '((:base) (:endian) (:m))
                           'make-feat
                           nil))

    Function: feat

    (defun feat (base endian m)
      (declare (xargs :guard (and (feat-basep base)
                                  (feat-endianp endian)
                                  (booleanp m))))
      (declare (xargs :guard t))
      (let ((__function__ 'feat))
        (declare (ignorable __function__))
        (b* ((base (mbe :logic (feat-base-fix base)
                        :exec base))
             (endian (mbe :logic (feat-endian-fix endian)
                          :exec endian))
             (m (mbe :logic (acl2::bool-fix m)
                     :exec m)))
          (list (cons 'base base)
                (cons 'endian endian)
                (cons 'm m)))))