• 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

    Change-feat

    Modifying constructor for feat structures.

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

    This is an often useful alternative to make-feat.

    We construct a new feat structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

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

    Macro: change-feat

    (defmacro change-feat (x &rest args)
      (std::change-aggregate 'feat
                             x args
                             '((:base . feat->base)
                               (:endian . feat->endian)
                               (:m . feat->m))
                             'change-feat
                             'nil))