Skip to content
Snippets Groups Projects
Commit 74749114 authored by Thorsten Wißmann's avatar Thorsten Wißmann :guitar:
Browse files

Improve onestep-example output

parent 7c405625
No related branches found
No related tags found
No related merge requests found
......@@ -73,16 +73,18 @@ int main (int argc, char *argv[]){
cout << vsa.size() << " rules\n";
for (RuleCollection::iterator it = vsa.begin(); it != vsa.end(); ++it) {
const set<set<int> > &r = *it;
cout << "\\/(";
bool first = true;
cout << "(\\/ ";
for (set<set<int> >::iterator jt = r.begin(); jt != r.end(); ++jt) {
const set<int>& clause = *jt;
cout << " /\\(";
if (first) first = false; else cout << "\n ";
cout << "(/\\";
for (set<int>::iterator kt = clause.begin(); kt != clause.end(); ++kt) {
int v = *kt;
if (v > 0) {
cout << " p" << v;
} else {
cout << " ¬p" << v;
cout << " ¬p" << (-v);
}
}
cout << " )";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment