Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
Clasp::Test::WeightConstraintTest Class Reference

List of all members.

Public Member Functions

Solversolver ()
void testAddOnLevel ()
void testAssertNotSoTriviallySat ()
void testAssertNotSoTriviallyUnSat ()
void testAssertTriviallySat ()
void testAssertTriviallyUnSat ()
void testAssertWeightNotSoTriviallySat ()
void testAssertWeightNotSoTriviallyUnSat ()
void testAssertWeightTriviallySat ()
void testAssertWeightTriviallyUnSat ()
void testBackwardAfterForward ()
void testBackwardFalse ()
void testBackwardFalseConflict ()
void testBackwardTrue ()
void testBackwardTrueConflict ()
void testCloneWeight ()
void testCloneWeightShared ()
void testCreateSat ()
void testCreateSatOnRoot ()
void testCreateSatOnRootNoProp ()
void testForwardFalse ()
void testForwardFalseConflict ()
void testForwardTrue ()
void testForwardTrueConflict ()
void testMergeNegativeWeight ()
void testOrderBug ()
void testReasonBug ()
void testSimplify ()
void testSimplifyCardinality ()
void testSimplifyWeight ()
void testTrivialBackpropFalse ()
void testTrivialBackpropFalseWeight ()
void testTrivialBackpropTrue ()
void testWeightBackwardFalse ()
void testWeightBackwardTrue ()
void testWeightConflict ()
void testWeightForwardFalse ()
void testWeightForwardTrue ()
void testWeightReasonAfterBackprop ()
 WeightConstraintTest ()

Private Member Functions

 CPPUNIT_TEST (testAssertTriviallySat)
 CPPUNIT_TEST (testAssertTriviallyUnSat)
 CPPUNIT_TEST (testAssertNotSoTriviallySat)
 CPPUNIT_TEST (testAssertNotSoTriviallyUnSat)
 CPPUNIT_TEST (testTrivialBackpropTrue)
 CPPUNIT_TEST (testTrivialBackpropFalse)
 CPPUNIT_TEST (testTrivialBackpropFalseWeight)
 CPPUNIT_TEST (testForwardTrue)
 CPPUNIT_TEST (testForwardFalse)
 CPPUNIT_TEST (testBackwardTrue)
 CPPUNIT_TEST (testBackwardFalse)
 CPPUNIT_TEST (testForwardTrueConflict)
 CPPUNIT_TEST (testForwardFalseConflict)
 CPPUNIT_TEST (testBackwardTrueConflict)
 CPPUNIT_TEST (testBackwardFalseConflict)
 CPPUNIT_TEST (testReasonBug)
 CPPUNIT_TEST (testWeightReasonAfterBackprop)
 CPPUNIT_TEST (testOrderBug)
 CPPUNIT_TEST (testBackwardAfterForward)
 CPPUNIT_TEST (testSimplify)
 CPPUNIT_TEST (testSimplifyCardinality)
 CPPUNIT_TEST (testSimplifyWeight)
 CPPUNIT_TEST (testAssertWeightTriviallySat)
 CPPUNIT_TEST (testAssertWeightTriviallyUnSat)
 CPPUNIT_TEST (testAssertWeightNotSoTriviallySat)
 CPPUNIT_TEST (testAssertWeightNotSoTriviallyUnSat)
 CPPUNIT_TEST (testWeightForwardTrue)
 CPPUNIT_TEST (testWeightForwardFalse)
 CPPUNIT_TEST (testWeightBackwardTrue)
 CPPUNIT_TEST (testWeightBackwardFalse)
 CPPUNIT_TEST (testWeightConflict)
 CPPUNIT_TEST (testCloneWeight)
 CPPUNIT_TEST (testCloneWeightShared)
 CPPUNIT_TEST (testAddOnLevel)
 CPPUNIT_TEST (testCreateSat)
 CPPUNIT_TEST (testCreateSatOnRoot)
 CPPUNIT_TEST (testCreateSatOnRootNoProp)
 CPPUNIT_TEST (testMergeNegativeWeight)
 CPPUNIT_TEST_SUITE (WeightConstraintTest)
 CPPUNIT_TEST_SUITE_END ()
LitVec makeLits ()
WeightLitVec makeWeightLits ()
void propCard (LitVec &assumptions, const LitVec &expected)
void propConflictTest (LitVec &assumptions, Literal cflLit)
void propImpl (LitVec &assumptions, const LitVec &expected)
void propWeight (LitVec &assume, LitVec &expect)

Static Private Member Functions

static bool newCardinalityConstraint (SharedContext &ctx, const LitVec &lits, int bound)
static bool newWeightConstraint (SharedContext &ctx, Literal W, WeightLitVec &lits, weight_t bound)

Private Attributes

Literal a
Literal b
Literal body
Literal c
SharedContext ctx
Literal d
Literal e
Literal f

Detailed Description

Definition at line 27 of file weight_constraint_test.cpp.


Constructor & Destructor Documentation

Definition at line 78 of file weight_constraint_test.cpp.


Member Function Documentation

Definition at line 738 of file weight_constraint_test.cpp.

Definition at line 747 of file weight_constraint_test.cpp.

static bool Clasp::Test::WeightConstraintTest::newCardinalityConstraint ( SharedContext ctx,
const LitVec lits,
int  bound 
) [inline, static, private]

Definition at line 676 of file weight_constraint_test.cpp.

static bool Clasp::Test::WeightConstraintTest::newWeightConstraint ( SharedContext ctx,
Literal  W,
WeightLitVec lits,
weight_t  bound 
) [inline, static, private]

Definition at line 684 of file weight_constraint_test.cpp.

void Clasp::Test::WeightConstraintTest::propCard ( LitVec assumptions,
const LitVec expected 
) [inline, private]

Definition at line 687 of file weight_constraint_test.cpp.

void Clasp::Test::WeightConstraintTest::propConflictTest ( LitVec assumptions,
Literal  cflLit 
) [inline, private]

Definition at line 717 of file weight_constraint_test.cpp.

void Clasp::Test::WeightConstraintTest::propImpl ( LitVec assumptions,
const LitVec expected 
) [inline, private]

Definition at line 697 of file weight_constraint_test.cpp.

void Clasp::Test::WeightConstraintTest::propWeight ( LitVec assume,
LitVec expect 
) [inline, private]

Definition at line 692 of file weight_constraint_test.cpp.

Definition at line 88 of file weight_constraint_test.cpp.

Definition at line 583 of file weight_constraint_test.cpp.

Definition at line 106 of file weight_constraint_test.cpp.

Definition at line 115 of file weight_constraint_test.cpp.

Definition at line 89 of file weight_constraint_test.cpp.

Definition at line 97 of file weight_constraint_test.cpp.

Definition at line 414 of file weight_constraint_test.cpp.

Definition at line 421 of file weight_constraint_test.cpp.

Definition at line 401 of file weight_constraint_test.cpp.

Definition at line 407 of file weight_constraint_test.cpp.

Definition at line 333 of file weight_constraint_test.cpp.

Definition at line 187 of file weight_constraint_test.cpp.

Definition at line 221 of file weight_constraint_test.cpp.

Definition at line 176 of file weight_constraint_test.cpp.

Definition at line 213 of file weight_constraint_test.cpp.

Definition at line 528 of file weight_constraint_test.cpp.

Definition at line 555 of file weight_constraint_test.cpp.

Definition at line 599 of file weight_constraint_test.cpp.

Definition at line 618 of file weight_constraint_test.cpp.

Definition at line 640 of file weight_constraint_test.cpp.

Definition at line 164 of file weight_constraint_test.cpp.

Definition at line 204 of file weight_constraint_test.cpp.

Definition at line 156 of file weight_constraint_test.cpp.

Definition at line 197 of file weight_constraint_test.cpp.

Definition at line 663 of file weight_constraint_test.cpp.

Definition at line 313 of file weight_constraint_test.cpp.

Definition at line 228 of file weight_constraint_test.cpp.

Definition at line 352 of file weight_constraint_test.cpp.

Definition at line 365 of file weight_constraint_test.cpp.

Definition at line 380 of file weight_constraint_test.cpp.

Definition at line 136 of file weight_constraint_test.cpp.

Definition at line 147 of file weight_constraint_test.cpp.

Definition at line 124 of file weight_constraint_test.cpp.

Definition at line 485 of file weight_constraint_test.cpp.

Definition at line 454 of file weight_constraint_test.cpp.

Definition at line 510 of file weight_constraint_test.cpp.

Definition at line 446 of file weight_constraint_test.cpp.

Definition at line 429 of file weight_constraint_test.cpp.

Definition at line 295 of file weight_constraint_test.cpp.


Member Data Documentation

Definition at line 757 of file weight_constraint_test.cpp.

Definition at line 757 of file weight_constraint_test.cpp.

Definition at line 756 of file weight_constraint_test.cpp.

Definition at line 757 of file weight_constraint_test.cpp.

Definition at line 755 of file weight_constraint_test.cpp.

Definition at line 757 of file weight_constraint_test.cpp.

Definition at line 757 of file weight_constraint_test.cpp.

Definition at line 757 of file weight_constraint_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