• 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
              • Op-funct
              • Op-32-funct
              • Op-imm-funct
              • Load-funct
              • Instr-validp
              • Branch-funct
                • Branch-funct-fix
                • Branch-funct-case
                • Branch-funct-equiv
                • Branch-funct-p
                • Branch-funct-kind
                  • Branch-funct-bne
                  • Branch-funct-bltu
                  • Branch-funct-blt
                  • Branch-funct-bgeu
                  • Branch-funct-bge
                  • Branch-funct-beq
                • 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
    • Branch-funct

    Branch-funct-kind

    Get the kind (tag) of a branch-funct structure.

    Signature
    (branch-funct-kind x) → kind
    Arguments
    x — Guard (branch-funct-p x).

    Definitions and Theorems

    Function: branch-funct-kind$inline

    (defun branch-funct-kind$inline (x)
      (declare (xargs :guard (branch-funct-p x)))
      (let ((__function__ 'branch-funct-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :beq)) :beq)
                          ((eq (car x) :bne) :bne)
                          ((eq (car x) :blt) :blt)
                          ((eq (car x) :bltu) :bltu)
                          ((eq (car x) :bge) :bge)
                          (t :bgeu))
             :exec (car x))))

    Theorem: branch-funct-kind-possibilities

    (defthm branch-funct-kind-possibilities
      (or (equal (branch-funct-kind x) :beq)
          (equal (branch-funct-kind x) :bne)
          (equal (branch-funct-kind x) :blt)
          (equal (branch-funct-kind x) :bltu)
          (equal (branch-funct-kind x) :bge)
          (equal (branch-funct-kind x) :bgeu))
      :rule-classes
      ((:forward-chaining :trigger-terms ((branch-funct-kind x)))))