• 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
          • States
          • 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
              • Instr-lui
              • Instr-jal
                • Make-instr-jal
                  • Instr-jal->rd
                  • Instr-jal->imm
                  • Change-instr-jal
                • Instr-auipc
                • Instr-kind
              • Op-funct
              • Op-32-funct
              • Op-imm-funct
              • Load-funct
              • Branch-funct
              • Op-imms-funct
              • Instr-validp
              • Store-funct
              • Op-imms-32-funct
              • Instr-option
              • Op-imm-32-funct
            • 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
    • Instr-jal

    Make-instr-jal

    Basic constructor macro for instr-jal structures.

    Syntax
    (make-instr-jal [:rd <rd>] 
                    [:imm <imm>]) 
    

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

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

    Definition

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

    Macro: make-instr-jal

    (defmacro make-instr-jal (&rest args)
      (std::make-aggregate 'instr-jal
                           args '((:rd) (:imm))
                           'make-instr-jal
                           nil))

    Function: instr-jal

    (defun instr-jal (rd imm)
      (declare (xargs :guard (and (ubyte5p rd) (ubyte20p imm))))
      (declare (xargs :guard t))
      (let ((__function__ 'instr-jal))
        (declare (ignorable __function__))
        (b* ((rd (mbe :logic (ubyte5-fix rd) :exec rd))
             (imm (mbe :logic (ubyte20-fix imm)
                       :exec imm)))
          (cons :jal (list rd imm)))))