• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
          • Process-syntheto-toplevel-fn
          • Translation
            • Trans-state
              • Trans-state-fix
              • Extend-trans-state
              • Trans-state-equiv
              • Extend-trans-state-list
              • Make-trans-state
              • Trans-state->tops
              • Change-trans-state
              • Trans-statep
              • Get-trans-state
                • Init-trans-state
                • Trans-state-table
              • Translate-to-ACL2-fn
              • Translate-to-ACL2
              • Set-trans-state
            • Language
            • Process-syntheto-toplevel
            • Shallow-embedding
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Trans-state

    Get-trans-state

    Get the translation state from the table.

    Signature
    (get-trans-state wrld) → tstate
    Arguments
    wrld — Guard (plist-worldp wrld).
    Returns
    tstate — Type (trans-statep tstate).

    Definitions and Theorems

    Function: get-trans-state

    (defun get-trans-state (wrld)
     (declare (xargs :guard (plist-worldp wrld)))
     (let ((__function__ 'get-trans-state))
      (declare (ignorable __function__))
      (b*
       ((table (table-alist 'trans-state-table wrld)
    )
        ((unless (alistp table))
         (raise
          "Internal error: ~
                    the translation state table ~x0 is not an alist."
          table)
         (init-trans-state))
        (tstate (cdr (assoc-eq :state table)))
        ((unless (trans-statep tstate))
         (raise
          "Internal error: ~
                    the translation state ~x0 is malformed."
          tstate)
         (init-trans-state)))
       tstate)))

    Theorem: trans-statep-of-get-trans-state

    (defthm trans-statep-of-get-trans-state
      (b* ((tstate (get-trans-state wrld)))
        (trans-statep tstate))
      :rule-classes :rewrite)