• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • Riscv
          • Specification
            • Semantics
            • Features
            • 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
                • Instr-branch
                • Instr-equiv
                • Instr-jalr
                  • Make-instr-jalr
                  • Instr-jalr->rs1
                  • Instr-jalr->rd
                  • Instr-jalr->imm
                  • Change-instr-jalr
                  • Instr-lui
                  • Instr-jal
                  • Instr-auipc
                  • Instr-kind
                • Op-funct
                • Op-32-funct
                • Op-imm-funct
                • Load-funct
                • Instr-validp
                • Branch-funct
                • Op-imms-funct
                • Store-funct
                • Op-imms-32-funct
                • Instr-option
                • Op-imm-32-funct
              • Encoding
              • States
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • 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
    • Instr-jalr

    Change-instr-jalr

    Modifying constructor for instr-jalr structures.

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

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

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

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