Exit is better than abort.
Also use a macro instead of integer to indicate failure.
This commit is contained in:
@@ -336,7 +336,7 @@ ParfactorList::shatterAgainstMySelf (
|
||||
if (f1.isAtom()) {
|
||||
cerr << "error: a ground occurs twice in a parfactor" << endl;
|
||||
cerr << endl;
|
||||
abort();
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
assert (g->constr()->empty() == false);
|
||||
ConstraintTree ctCopy (*g->constr());
|
||||
|
Reference in New Issue
Block a user