Public Member Functions | Private Member Functions | Private Attributes
Clasp::Test::ClauseTest Class Reference

List of all members.

Public Member Functions

 ClauseTest ()
void testBug ()
void testClauseActivity ()
void testClauseCtorAddsWatches ()
void testClauseSatisfied ()
void testClauseTypes ()
void testClone ()
void testContraction ()
void testLoopFormulaAtomConflict ()
void testLoopFormulaBodyConflict ()
void testLoopFormulaBugEq ()
void testLoopFormulaDontChangeSat ()
void testLoopFormulaInitialWatches ()
void testLoopFormulaPropagateAtoms ()
void testLoopFormulaPropagateAtoms2 ()
void testLoopFormulaPropagateBody ()
void testLoopFormulaPropagateBody2 ()
void testLoopFormulaPropTrueAtomInSatClause ()
void testLoopFormulaSatisfied ()
void testNewContractedClause ()
void testPropAlreadySatisfied ()
void testPropGenericClause ()
void testPropGenericClauseConflict ()
void testPropRandomClauses ()
void testReasonBumpsActivityIfLearnt ()
void testSimplifyLFIfAllAtomsFalse ()
void testSimplifyLFIfOneBodyTrue ()
void testSimplifyLFRemovesFalseAtoms ()
void testSimplifyLFRemovesFalseBodies ()
void testSimplifyLFRemovesTrueAtoms ()
void testSimplifyRemovesFalseLitsBeg ()
void testSimplifyRemovesFalseLitsEnd ()
void testSimplifyRemovesFalseLitsMid ()
void testSimplifySAT ()
void testSimplifyShortRemovesFalseLitsBeg ()
void testSimplifyShortRemovesFalseLitsEnd ()
void testSimplifyShortRemovesFalseLitsMid ()
void testSimplifyTagged ()
void testSimplifyUnitButNotLocked ()
void testStrengthen ()
void testStrengthenBug ()
void testStrengthenContracted ()
void testStrengthenContractedNoExtend ()
void testStrengthenLocked ()
void testStrengthenLockedEarly ()
void testStrengthenToUnary ()

Private Member Functions

void check (Clause &c)
int countWatches (const Solver &s, ClauseHead *c, const LitVec &lits)
 CPPUNIT_TEST (testClauseCtorAddsWatches)
 CPPUNIT_TEST (testClauseTypes)
 CPPUNIT_TEST (testClauseActivity)
 CPPUNIT_TEST (testPropGenericClause)
 CPPUNIT_TEST (testPropGenericClauseConflict)
 CPPUNIT_TEST (testPropAlreadySatisfied)
 CPPUNIT_TEST (testPropRandomClauses)
 CPPUNIT_TEST (testReasonBumpsActivityIfLearnt)
 CPPUNIT_TEST (testSimplifySAT)
 CPPUNIT_TEST (testSimplifyUnitButNotLocked)
 CPPUNIT_TEST (testSimplifyRemovesFalseLitsBeg)
 CPPUNIT_TEST (testSimplifyRemovesFalseLitsMid)
 CPPUNIT_TEST (testSimplifyRemovesFalseLitsEnd)
 CPPUNIT_TEST (testSimplifyShortRemovesFalseLitsBeg)
 CPPUNIT_TEST (testSimplifyShortRemovesFalseLitsMid)
 CPPUNIT_TEST (testSimplifyShortRemovesFalseLitsEnd)
 CPPUNIT_TEST (testStrengthen)
 CPPUNIT_TEST (testStrengthenToUnary)
 CPPUNIT_TEST (testStrengthenContracted)
 CPPUNIT_TEST (testStrengthenBug)
 CPPUNIT_TEST (testStrengthenContractedNoExtend)
 CPPUNIT_TEST (testStrengthenLocked)
 CPPUNIT_TEST (testStrengthenLockedEarly)
 CPPUNIT_TEST (testSimplifyTagged)
 CPPUNIT_TEST (testClauseSatisfied)
 CPPUNIT_TEST (testContraction)
 CPPUNIT_TEST (testNewContractedClause)
 CPPUNIT_TEST (testClone)
 CPPUNIT_TEST (testBug)
 CPPUNIT_TEST (testLoopFormulaInitialWatches)
 CPPUNIT_TEST (testSimplifyLFIfOneBodyTrue)
 CPPUNIT_TEST (testSimplifyLFIfAllAtomsFalse)
 CPPUNIT_TEST (testSimplifyLFRemovesFalseBodies)
 CPPUNIT_TEST (testSimplifyLFRemovesFalseAtoms)
 CPPUNIT_TEST (testSimplifyLFRemovesTrueAtoms)
 CPPUNIT_TEST (testLoopFormulaPropagateBody)
 CPPUNIT_TEST (testLoopFormulaPropagateBody2)
 CPPUNIT_TEST (testLoopFormulaPropagateAtoms)
 CPPUNIT_TEST (testLoopFormulaPropagateAtoms2)
 CPPUNIT_TEST (testLoopFormulaBodyConflict)
 CPPUNIT_TEST (testLoopFormulaAtomConflict)
 CPPUNIT_TEST (testLoopFormulaDontChangeSat)
 CPPUNIT_TEST (testLoopFormulaPropTrueAtomInSatClause)
 CPPUNIT_TEST (testLoopFormulaSatisfied)
 CPPUNIT_TEST (testLoopFormulaBugEq)
 CPPUNIT_TEST_SUITE (ClauseTest)
 CPPUNIT_TEST_SUITE_END ()
ClausecreateClause (LitVec &lits, const ClauseInfo &info)
ClausecreateClause (int pos, int neg, ConstraintType t=Constraint_t::static_constraint)
ClausecreateRandomClause (int size)
LoopFormulalfTestInit ()
std::string toString (const LitVec &c)

Private Attributes

Literal a1
Literal a2
Literal a3
Literal b1
Literal b2
Literal b3
LitVec clLits
SharedContext ctx
Solversolver

Detailed Description

Definition at line 33 of file clause_test.cpp.


Constructor & Destructor Documentation

Definition at line 95 of file clause_test.cpp.


Member Function Documentation

void Clasp::Test::ClauseTest::check ( Clause c) [inline, private]

Definition at line 966 of file clause_test.cpp.

int Clasp::Test::ClauseTest::countWatches ( const Solver s,
ClauseHead c,
const LitVec lits 
) [inline, private]

Definition at line 959 of file clause_test.cpp.

Clause* Clasp::Test::ClauseTest::createClause ( LitVec lits,
const ClauseInfo info 
) [inline, private]

Definition at line 1001 of file clause_test.cpp.

Definition at line 1005 of file clause_test.cpp.

Clause* Clasp::Test::ClauseTest::createRandomClause ( int  size) [inline, private]

Definition at line 1020 of file clause_test.cpp.

Definition at line 1025 of file clause_test.cpp.

Definition at line 597 of file clause_test.cpp.

Definition at line 130 of file clause_test.cpp.

Definition at line 109 of file clause_test.cpp.

Definition at line 531 of file clause_test.cpp.

Definition at line 118 of file clause_test.cpp.

Definition at line 624 of file clause_test.cpp.

Definition at line 555 of file clause_test.cpp.

Definition at line 854 of file clause_test.cpp.

Definition at line 834 of file clause_test.cpp.

Definition at line 922 of file clause_test.cpp.

Definition at line 882 of file clause_test.cpp.

Definition at line 650 of file clause_test.cpp.

Definition at line 778 of file clause_test.cpp.

Definition at line 803 of file clause_test.cpp.

Definition at line 729 of file clause_test.cpp.

Definition at line 751 of file clause_test.cpp.

Definition at line 943 of file clause_test.cpp.

Definition at line 900 of file clause_test.cpp.

Definition at line 574 of file clause_test.cpp.

Definition at line 189 of file clause_test.cpp.

Definition at line 150 of file clause_test.cpp.

Definition at line 173 of file clause_test.cpp.

Definition at line 205 of file clause_test.cpp.

Definition at line 218 of file clause_test.cpp.

Definition at line 669 of file clause_test.cpp.

Definition at line 658 of file clause_test.cpp.

Definition at line 693 of file clause_test.cpp.

Definition at line 683 of file clause_test.cpp.

Definition at line 711 of file clause_test.cpp.

Definition at line 260 of file clause_test.cpp.

Definition at line 516 of file clause_test.cpp.

Definition at line 276 of file clause_test.cpp.

Definition at line 240 of file clause_test.cpp.

Definition at line 292 of file clause_test.cpp.

Definition at line 318 of file clause_test.cpp.

Definition at line 305 of file clause_test.cpp.

Definition at line 500 of file clause_test.cpp.

Definition at line 249 of file clause_test.cpp.

Definition at line 331 of file clause_test.cpp.

Definition at line 414 of file clause_test.cpp.

Definition at line 379 of file clause_test.cpp.

Definition at line 436 of file clause_test.cpp.

Definition at line 455 of file clause_test.cpp.

Definition at line 477 of file clause_test.cpp.

Definition at line 350 of file clause_test.cpp.

std::string Clasp::Test::ClauseTest::toString ( const LitVec c) [inline, private]

Definition at line 989 of file clause_test.cpp.


Member Data Documentation

Definition at line 1043 of file clause_test.cpp.

Definition at line 1043 of file clause_test.cpp.

Definition at line 1043 of file clause_test.cpp.

Definition at line 1043 of file clause_test.cpp.

Definition at line 1043 of file clause_test.cpp.

Definition at line 1043 of file clause_test.cpp.

Definition at line 1044 of file clause_test.cpp.

Definition at line 957 of file clause_test.cpp.

Definition at line 958 of file clause_test.cpp.


The documentation for this class was generated from the following file:


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41