CNF = 256, /* no clash with char options */
SMTCOMP,
STATS,
- SEGV_NOSPIN
+ SEGV_NOSPIN,
+ PARSE_ONLY
};/* enum OptionValue */
// FIXME add a comment here describing the option array
{ "cnf" , required_argument, NULL, CNF },
{ "smtcomp" , no_argument , NULL, SMTCOMP },
{ "stats" , no_argument , NULL, STATS },
- { "segv-nospin", no_argument , NULL, SEGV_NOSPIN }
+ { "segv-nospin", no_argument , NULL, SEGV_NOSPIN },
+ { "parse-only" , no_argument , NULL, PARSE_ONLY }
};/* if you add things to the above, please remember to update usage.h! */
/** Full argv[0] */
opts->lang = Parser::LANG_SMTLIB;
break;
+ case PARSE_ONLY:
+ opts->parseOnly = true;
+ break;
+
case '?':
throw OptionException(string("can't understand option"));// + argv[optind - 1] + "'");
--smtcomp competition mode (very quiet)\n\
--stats give statistics on exit\n\
--segv-nospin (debug builds only) don't spin on segfault waiting for gdb\n\
+ --parse-only exit after parsing input\n\
";
}/* CVC4::main namespace */
/** The CNF conversion */
CVC4::CnfConversion d_cnfConversion;
+ bool parseOnly;
+
Options() : binary_name(),
smtcomp_mode(false),
statistics(false),
err(0),
verbosity(0),
lang(parser::Parser::LANG_AUTO),
- d_cnfConversion(CVC4::CNF_VAR_INTRODUCTION)
+ d_cnfConversion(CVC4::CNF_VAR_INTRODUCTION),
+ parseOnly(false)
{}
};/* struct Options */