git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@486
e59a4935-1847-0410-ae03-
e826735625c1
MINISAT::Solver NewSolver;
if(bm->UserFlags.print_cnf_flag)
{
- newS.needLibraryCNFFile("output.cnf");
+ NewSolver.needLibraryCNFFile(bm->UserFlags.cnf_dump_filename);
}
#endif
//Flag that allows the printing of the DIMACS format of the input
bool print_cnf_flag;
+ char * cnf_dump_filename;
//flag to decide whether to print "valid/invalid" or not
bool print_output_flag;
//Flag that allows the printing of the DIMACS format of the
//input
print_cnf_flag = false;
+ cnf_dump_filename = (char*)"stp-input.cnf";
//flag to decide whether to print "valid/invalid" or not
print_output_flag = false;
"-h : help\n";
helpstring +=
"-i <random_seed> : Randomize STP's satisfiable output. Random_seed is an integer >= 0.\n";
+ helpstring +=
+ "-j <filename> : CNF Dumping. Creates a DIMACS equivalent file of the input STP file\n";
helpstring +=
"-m : use the SMTLIB parser\n";
helpstring +=
break;
case 'j':
bm->UserFlags.print_cnf_flag = true;
+ bm->UserFlags.cnf_dump_filename = argv[++i];
break;
case 'n':
bm->UserFlags.print_output_flag = true;