Output tags

cvc5 supports printing information about certain aspects of the solving process that is intended for regular users. This feature can be enabled using the output option.

The following output tags are currently supported:

inst

With -o inst , cvc5 prints information about quantifier instantions for individual quantifers.

$ bin/cvc5 -o inst ../test/regress/cli/regress1/quantifiers/qid-debug-inst.smt2
(num-instantiations myQuant1 1)
(num-instantiations myQuant2 1)
unsat

oracles

With -o oracles , cvc5 prints the I/O of calls made to external oracles.

sygus

With -o sygus , cvc5 prints information about the internal SyGuS solver including enumerated terms and generated candidates.

$ bin/cvc5 -o sygus ../test/regress/cli/regress0/sygus/print-debug.sy
(sygus-enum 0)
(sygus-candidate (f 0))
(sygus-enum 1)
(sygus-candidate (f 1))
(
(define-fun f () Int 1)
)

sygus-grammar

With -o sygus-grammar , cvc5 prints the grammar it generates for a function-to-synthesize when no grammar was provided.

$ bin/cvc5 -o sygus-grammar ../test/regress/cli/regress0/sygus/print-grammar.sy
(sygus-grammar f ((A_Int Int) (A_Bool Bool) )((A_Int Int (x y 0 1 (+ A_Int A_Int) (- A_Int A_Int) (ite A_Bool A_Int A_Int)))(A_Bool Bool (false true (= A_Int A_Int) (<= A_Int A_Int) (not A_Bool) (and A_Bool A_Bool) (or A_Bool A_Bool)))))
(
(define-fun f ((x Int) (y Int)) Int 0)
)

sygus-enumerator

With -o sygus-enumerator , cvc5 prints enumerators generated by the sygus solver.

$ bin/cvc5 -o sygus-enumerator ../test/regress/cli/regress0/sygus/print-enumerator.sy
(sygus-enumerator :synth-fun f :role SINGLE_SOLUTION :type FAST)
(
(define-fun f ((x Int) (y Int)) Int x)
)

sygus-sol-gterm

With -o sygus-sol-gterm , cvc5 prints annotations for terms in sygus solutions that indicate the grammar used to generate them.

$ bin/cvc5 -o sygus-sol-gterm ../test/regress/cli/regress0/sygus/print-sygus-gterm.sy
(sygus-sol-gterm (f (! (+ (! 1 :gterm a) (! 1 :gterm b)) :gterm a)))
(
(define-fun f () Int (+ 1 1))
)

trigger

With -o trigger , cvc5 prints the selected triggers when solving a quantified formula.

$ bin/cvc5 -o trigger ../test/regress/cli/regress1/quantifiers/qid-debug-inst.smt2
(trigger myQuant1 ((not (= (R x) false))))
(trigger myQuant1 ((not (= (P x) true))))
(trigger myQuant2 ((not (= (P x) false))))
(trigger myQuant2 ((not (= (Q x) true))))
unsat

raw-benchmark

With -o raw-benchmark , cvc5 prints the benchmark back just as it has been parsed.

$ bin/cvc5 -o raw-benchmark ../test/regress/cli/regress0/datatypes/datatype-dump.cvc.smt2
(set-logic ALL)
(declare-datatypes ((nat 0)) (((succ (pred nat)) (zero))))
(declare-fun x () nat)
(check-sat-assuming ( (not (and (not ((_ is succ) x)) (not ((_ is zero) x)))) ))
sat

learned-lits

With -o learned-lits , cvc5 prints input literals that it has learned to hold globally.

$ bin/cvc5 -o learned-lits ../test/regress/cli/regress0/printer/learned-lit-output.smt2
(learned-lit (>= x 11) :preprocess)
(learned-lit (>= x 5) :input)
(learned-lit (>= y 1) :input)
sat

subs

With -o subs , cvc5 prints top-level substitutions learned during preprocessing.

$ bin/cvc5 -o subs ../test/regress/cli/regress0/printer/print_subs.smt2
(substitution (= a 3))
sat

post-asserts

With -o post-asserts , cvc5 prints a benchmark corresponding to the assertions of the input problem after preprocessing.

$ bin/cvc5 -o post-asserts ../test/regress/cli/regress0/printer/post-asserts-output.smt2
;; post-asserts start
(set-logic ALL)
(assert true)
(assert true)
(check-sat)
;; post-asserts end
sat

pre-asserts

With -o pre-asserts , cvc5 prints a benchmark corresponding to the assertions of the input problem before preprocessing.

$ bin/cvc5 -o pre-asserts ../test/regress/cli/regress0/printer/pre-asserts-output.smt2
;; pre-asserts start
(set-logic ALL)
(declare-fun x () Int)
(assert (= x x))
(check-sat)
;; pre-asserts end
sat

deep-restart

With -o deep-restart , cvc5 prints when it performs a deep restart along with the literals it has learned.

$ bin/cvc5 -o deep-restart ../test/regress/cli/regress0/printer/deep-restart-output.smt2
(deep-restart ((= f k)))
sat

incomplete

With -o incomplete , cvc5 prints reason for why it answers unknown for any given check-sat query.

$ bin/cvc5 -o incomplete ../test/regress/cli/regress0/printer/incomplete.smt2
(incomplete INCOMPLETE QUANTIFIERS)
unknown

lemmas

With -o lemmas , cvc5 prints lemmas as they are added to the SAT solver.

$ bin/cvc5 -o lemmas ../test/regress/cli/regress0/printer/print_sat_lemmas.smt2
(lemma (=> (forall ((x Int)) (P x)) (P 5)))
unsat

trusted-proof-steps

With -o trusted-proof-steps , cvc5 prints formulas corresponding to trusted proof steps in final proofs.

$ bin/cvc5 -o trusted-proof-steps ../test/regress/cli/regress0/printer/print_trusted_proof_steps.smt2
unsat
(trusted-proof-step (=> true (= (= 0 1) false)))
(define @t1 () (= 0 1))
(assume @p1 @t1)
; WARNING: add trust step for MACRO_SR_EQ_INTRO
; trust MACRO_SR_EQ_INTRO
(step @p2 :rule trust :premises () :args ((= @t1 false)))
(step @p3 false :rule eq_resolve :premises (@p1 @p2))

timeout-core-benchmark

With -o timeout-core-benchmark , cvc5 prints the corresponding benchmark when it successfully computes a timeout core.

$ bin/cvc5 -o timeout-core-benchmark ../test/regress/cli/regress1/print_timeout_core.smt2
;; timeout core
(set-logic ALL)
(declare-fun x () Int)
(assert (= (* x x x) 564838384999))
(check-sat)
;; end timeout core
unknown
(
hard
)

unsat-core-benchmark

With -o unsat-core-benchmark , cvc5 prints the corresponding benchmark when it successfully computes an unsat core.

$ bin/cvc5 -o unsat-core-benchmark ../test/regress/cli/regress0/printer/print_unsat_core.smt2
unsat
;; unsat core
(set-logic ALL)
(declare-fun x () Int)
(assert (and (> x 2) (< x 0)))
(check-sat)
;; end unsat core
(
x20
)

portfolio

With -o portfolio , cvc5 prints the option strings tried in portfolio mode.

$ bin/cvc5 -o portfolio ../test/regress/cli/regress0/printer/portfolio-out.smt2
unsat

block-model

With -o block-model , cvc5 prints the formulas used when block-model is run.

$ bin/cvc5 -o block-model ../test/regress/cli/regress0/printer/block_model_out.smt2
sat
(block-model (and (> y 0) (= x 4)))
(error "Cannot make multiple queries unless incremental solving is enabled (try --incremental)")