• 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
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
        • Values
        • Evaluation
          • Step-from-trans
          • Call-primitive-function
          • Step-from-init
          • Put-leftmost-nonconst
          • Exec-outcome
            • Exec-outcome-case
            • Exec-outcome-fix
            • Exec-outcome-equiv
            • Exec-outcome-p
            • Exec-outcome-terminating
            • Exec-outcome-nonterminating
            • Exec-outcome-kind
              • Exec-outcome-error
            • Stepn
            • Step
            • Terminatingp
            • Get-leftmost-nonconst
            • Exec-call
            • Step*
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • 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
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Exec-outcome

    Exec-outcome-kind

    Get the kind (tag) of a exec-outcome structure.

    Signature
    (exec-outcome-kind x) → kind
    Arguments
    x — Guard (exec-outcome-p x).

    Definitions and Theorems

    Function: exec-outcome-kind$inline

    (defun exec-outcome-kind$inline (x)
      (declare (xargs :guard (exec-outcome-p x)))
      (let ((__function__ 'exec-outcome-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :terminating))
                           :terminating)
                          ((eq (car x) :error) :error)
                          (t :nonterminating))
             :exec (car x))))

    Theorem: exec-outcome-kind-possibilities

    (defthm exec-outcome-kind-possibilities
      (or (equal (exec-outcome-kind x)
                 :terminating)
          (equal (exec-outcome-kind x) :error)
          (equal (exec-outcome-kind x)
                 :nonterminating))
      :rule-classes
      ((:forward-chaining :trigger-terms ((exec-outcome-kind x)))))