• 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
          • Op-funct
          • Op-32-funct
          • Op-imm-funct
          • Load-funct
          • 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-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
    • 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)))))