• 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
        • Syntax-for-tools
        • Atc
          • Atc-implementation
            • Atc-abstract-syntax
            • Atc-pretty-printer
            • Atc-event-and-code-generation
            • Fty-pseudo-term-utilities
            • Atc-term-recognizers
            • Atc-input-processing
              • Atc-process-target
              • Atc-process-const-name
              • Atc-process-function
              • Atc-process-target-list
              • Atc-process-inputs
              • Atc-process-file-name
              • Atc-process-const-name-aux
              • Atc-process-targets
              • Atc-process-print
                • Atc-process-pretty-printing
                • Atc-remove-called-fns
                • Atc-process-output-dir
                • Atc-process-proofs
                • Atc-process-header
                • *atc-allowed-pretty-printing-options*
                • *atc-allowed-options*
              • Atc-shallow-embedding
              • Atc-process-inputs-and-gen-everything
              • Atc-table
              • Atc-fn
              • Atc-pretty-printing-options
              • Atc-types
              • Atc-macro-definition
            • Atc-tutorial
          • Language
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
    • Atc-input-processing

    Atc-process-print

    Process the :print input.

    Signature
    (atc-process-print options) → (mv erp print)
    Arguments
    options — Guard (symbol-alistp options).
    Returns
    print — Type (evmac-input-print-p print).

    We use the evmac-input-print-p type, but we exclude the nil case; see the ATC user doc. We should probably define a new type for the printing levels supported by ATC, or perhaps change evmac-input-print-p to be that, as it may be more appropriate.

    Definitions and Theorems

    Function: atc-process-print

    (defun atc-process-print (options)
     (declare (xargs :guard (symbol-alistp options)))
     (let ((__function__ 'atc-process-print))
      (declare (ignorable __function__))
      (b*
       (((reterr) nil)
        (print-option (assoc-eq :print options))
        (print (if print-option (cdr print-option)
                 :result))
        ((unless (and (evmac-input-print-p print) print))
         (reterr
          (msg
           "The :PRINT input must be ~
                          :ERROR, :RESULT, :INFO, or :ALL; ~
                          but it is ~x0 instead."
           print))))
       (retok print))))

    Theorem: evmac-input-print-p-of-atc-process-print.print

    (defthm evmac-input-print-p-of-atc-process-print.print
      (b* (((mv acl2::?erp common-lisp::?print)
            (atc-process-print options)))
        (evmac-input-print-p print))
      :rule-classes :rewrite)