Analogous to -o post-asserts.
example-file = "regress0/printer/print_subs.smt2"
[[option.mode.POST_ASSERTS]]
name = "post-asserts"
- help = "print assertions corresponding to the input problem after preprocessing"
- description = "With ``-o post-asserts``, cvc5 prints assertions corresponding to the input problem after preprocessing."
+ help = "print a benchmark corresponding to the assertions of the input problem after preprocessing"
+ description = "With ``-o post-asserts``, cvc5 prints a benchmark corresponding to the assertions of the input problem after preprocessing."
example-file = "regress0/printer/post-asserts-output.smt2"
+[[option.mode.PRE_ASSERTS]]
+ name = "pre-asserts"
+ help = "print a benchmark corresponding to the assertions of the input problem before preprocessing"
+ description = "With ``-o pre-asserts``, cvc5 prints a benchmark corresponding to the assertions of the input problem before preprocessing."
+ example-file = "regress0/printer/pre-asserts-output.smt2"
# Stores then enabled output tags.
[[option]]
// Dump the assertions
dumpAssertions("assertions::pre-everything", as);
Trace("assertions::pre-everything") << std::endl;
+ if (isOutputOn(OutputTag::PRE_ASSERTS))
+ {
+ std::ostream& outPA = d_env.output(OutputTag::PRE_ASSERTS);
+ outPA << ";; pre-asserts start" << std::endl;
+ dumpAssertionsToStream(outPA, as);
+ outPA << ";; pre-asserts end" << std::endl;
+ }
Trace("smt-proc") << "ProcessAssertions::processAssertions() begin" << endl;
Trace("smt") << "ProcessAssertions::processAssertions()" << endl;
regress0/printer/learned-lit-output.smt2
regress0/printer/let_shadowing.smt2
regress0/printer/post-asserts-output.smt2
+ regress0/printer/pre-asserts-output.smt2
regress0/printer/print_subs.smt2
regress0/printer/symbol_starting_w_digit.smt2
regress0/printer/tuples_and_records.cvc.smt2
--- /dev/null
+; COMMAND-LINE: -o pre-asserts
+; SCRUBBER: grep -E '\(assert'
+; EXPECT: (assert (= x x))
+(set-logic ALL)
+(declare-fun x () Int)
+(assert (= x x))
+(check-sat)