• 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
      • Bitcoin
      • Riscv
        • Instructions
          • Instr
            • Instrp
            • Instr-fix
            • Instr-case
            • Instr-store
            • Instr-op-imms64
            • Instr-op-imms32
            • Instr-op-imms-32
            • Instr-op-imm-32
            • Instr-op-imm
            • Instr-op-32
            • Instr-op
            • Instr-load
              • Make-instr-load
              • Instr-load->funct
              • Instr-load->rs1
              • Instr-load->rd
              • Instr-load->imm
              • Change-instr-load
              • Instr-branch
              • Instr-equiv
              • Instr-jalr
              • Instr-lui
              • Instr-jal
              • Instr-auipc
              • Instr-kind
            • Op-funct
            • Op-32-funct
            • Op-imm-funct
            • Load-funct
            • Branch-funct
            • Op-imms-funct
            • Store-funct
            • Op-imms-32-funct
            • Instr-validp
            • Instr-option
            • Op-imm-32-funct
          • States
          • Decoding
          • Encoding
          • Features
          • Semantics
          • Execution
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Instr-load

    Change-instr-load

    Modifying constructor for instr-load structures.

    Syntax
    (change-instr-load x 
                       [:funct <funct>] 
                       [:rd <rd>] 
                       [:rs1 <rs1>] 
                       [:imm <imm>]) 
    

    This is an often useful alternative to make-instr-load.

    We construct a new instr-load 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-instr-load

    (defmacro change-instr-load (x &rest args)
      (std::change-aggregate 'instr-load
                             x args
                             '((:funct . instr-load->funct)
                               (:rd . instr-load->rd)
                               (:rs1 . instr-load->rs1)
                               (:imm . instr-load->imm))
                             'change-instr-load
                             'nil))