ezSAT bugfix: don't call virtual methods in base class constructor

This commit is contained in:
Clifford Wolf 2014-03-01 20:59:00 +01:00
parent edc2146056
commit 23f0a12c72
2 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,9 @@ ezMiniSAT::ezMiniSAT() : minisatSolver(NULL)
{
minisatSolver = NULL;
foundContradiction = false;
freeze(TRUE);
freeze(FALSE);
}
ezMiniSAT::~ezMiniSAT()

View File

@ -36,8 +36,8 @@ ezSAT::ezSAT()
solverTimeout = 0;
solverTimoutStatus = false;
freeze(literal("TRUE"));
freeze(literal("FALSE"));
literal("TRUE");
literal("FALSE");
assert(literal("TRUE") == TRUE);
assert(literal("FALSE") == FALSE);