Before, cvc5 was returning with --parse-only before the code could
reach the code responsible for dumping the raw benchmark. This moves the
check for --parse-only to the appropriate place and updates the
run_regression.py script to use --parse-only.
bool CommandExecutor::doCommand(Command* cmd)
{
- if (d_solver->getOptionInfo("parse-only").boolValue())
- {
- return true;
- }
-
CommandSequence *seq = dynamic_cast<CommandSequence*>(cmd);
if(seq != nullptr) {
// assume no error
std::ostream& ss = solver->getOutput("raw-benchmark");
cmd->toStream(ss);
}
+
+ if (solver->getOptionInfo("parse-only").boolValue())
+ {
+ return true;
+ }
+
cmd->invoke(solver, sm, out);
// ignore the error if the command-verbosity is 0 for this command
std::string commandName =
exit_status = None
if dump:
dump_args = [
- '--preprocess-only', '-o', 'raw-benchmark',
- '--output-lang=smt2', '-qq'
+ '--parse-only', '-o', 'raw-benchmark', '--output-lang=smt2'
]
dump_output, _, _ = run_process(
bin_args + command_line + dump_args + [benchmark_filename],