souffle
2.0.2-371-g6315b36
|
Data Structures | |
struct | reserver |
struct | reserver< std::unordered_set< A, B, C, D > > |
Typedefs | |
using | Entry = std::tuple< int, int > |
using | EqRel = souffle::EquivalenceRelation< Tuple< RamDomain, 2 > > |
using | TestLambdaTree = souffle::LambdaBTreeSet< TestPair, std::function< TestPair::second_type(TestPair &)>, souffle::EqrelMapComparator< TestPair > > |
typedef std::pair< size_t, size_t > | TestPair |
using | time_point = std::chrono::high_resolution_clock::time_point |
Functions | |
template<typename C > | |
int | count (const C &c) |
long | duration (const time_point &start, const time_point &end) |
std::vector< Entry > | getData (unsigned numEntries) |
time_point | now () |
TEST (BTreeMultiSet, Basic) | |
TEST (BTreeMultiSet, BoundaryEmpty) | |
TEST (BTreeMultiSet, BoundaryTest) | |
TEST (BTreeMultiSet, Clear) | |
TEST (BTreeMultiSet, Decremental) | |
TEST (BTreeMultiSet, Duplicates) | |
TEST (BTreeMultiSet, Incremental) | |
TEST (BTreeMultiSet, IteratorBasic) | |
TEST (BTreeMultiSet, IteratorEmpty) | |
TEST (BTreeMultiSet, IteratorStress) | |
TEST (BTreeMultiSet, Load) | |
TEST (BTreeMultiSet, Shuffled) | |
TEST (BTreeSet, Basic) | |
TEST (BTreeSet, BoundaryEmpty) | |
TEST (BTreeSet, BoundaryTest) | |
TEST (BTreeSet, ChunkSplit) | |
TEST (BTreeSet, ChunkSplitStress) | |
TEST (BTreeSet, Clear) | |
TEST (BTreeSet, Copy) | |
TEST (BTreeSet, Decremental) | |
TEST (BTreeSet, Duplicates) | |
TEST (BTreeSet, Incremental) | |
TEST (BTreeSet, IteratorBasic) | |
TEST (BTreeSet, IteratorEmpty) | |
TEST (BTreeSet, IteratorStress) | |
TEST (BTreeSet, Load) | |
TEST (BTreeSet, Merge) | |
TEST (BTreeSet, Parallel) | |
TEST (BTreeSet, Shuffled) | |
TEST (DjTest, Clear) | |
TEST (DjTest, MakeNode) | |
TEST (DjTest, Scoping) | |
The underlying Disjoint Set (essentially Anderson '91 Find-Union, but dynamic) More... | |
TEST (DjTest, TestUnion) | |
TEST (EqRelTest, Basic) | |
TEST (EqRelTest, Clear) | |
TEST (EqRelTest, Duplicates) | |
TEST (EqRelTest, Extend) | |
TEST (EqRelTest, IterBasic) | |
TEST (EqRelTest, IterEmpty) | |
TEST (EqRelTest, IterPartition) | |
TEST (EqRelTest, IterRange) | |
TEST (EqRelTest, Merge) | |
TEST (EqRelTest, PairwiseDecremental) | |
TEST (EqRelTest, PairwiseIncremental) | |
TEST (EqRelTest, Scaling) | |
TEST (EqRelTest, Scoping) | |
TEST (EqRelTest, Shuffled) | |
TEST (EqRelTest, TransitivityTest) | |
TEST (Graph, Basic) | |
TEST (LambdaBTreeTest, Insert) | |
TEST (LambdaBTreeTest, Scoping) | |
The LambdaBTree - essentially a ripoff to the Btree, but allows a function to be called on successful insert. More... | |
TEST (Pack, Tuple) | |
TEST (PackUnpack, Tuple) | |
TEST (PackUnpack, Vector) | |
TEST (ParallelUtils, OptimisticReadWriteLock) | |
TEST (ParallelUtils, ReadWriteLock) | |
TEST (ParallelUtils, SpinLock) | |
TEST (Performance, Basic) | |
TEST (Performance, Load) | |
TEST (PiggyTest, Append) | |
TEST (PiggyTest, CopyCtor) | |
TEST (PiggyTest, DoubleClear) | |
TEST (PiggyTest, ElementCreation) | |
TEST (PiggyTest, Iteration) | |
TEST (PiggyTest, Scoping) | |
Regular Old Piggy List. More... | |
TEST (RandomInsertPiggyTest, DoubleClear) | |
TEST (RandomInsertPiggyTest, Insertion) | |
TEST (RandomInsertPiggyTest, Scoping) | |
Piggy List that allows creation at arbitrary elements. More... | |
TEST (SparseDjTest, MakeNode) | |
TEST (SparseDjTest, Scoping) | |
The SparseDisjointSet that is used by the EquivalenceRelation. More... | |
TEST (SparseDjTest, SignedData) | |
TEST (SparseDjTest, TestUnion) | |
TEST (SymbolTable, Assign) | |
TEST (SymbolTable, Basics) | |
TEST (SymbolTable, Copy) | |
TEST (SymbolTable, Inserts) | |
TEST (Table, Basic) | |
TEST (Table, Stress) | |
template<typename Op > | |
long | time (const std::string &name, const Op &operation) |
typedef std::tuple< int, int > souffle::test::Entry |
Definition at line 385 of file btree_multiset_test.cpp.
using souffle::test::EqRel = typedef souffle::EquivalenceRelation<Tuple<RamDomain, 2> > |
Definition at line 56 of file binary_relation_test.cpp.
using souffle::test::TestLambdaTree = typedef souffle::LambdaBTreeSet<TestPair, std::function<TestPair::second_type(TestPair&)>, souffle::EqrelMapComparator<TestPair> > |
Definition at line 513 of file eqrel_datastructure_test.cpp.
typedef std::pair<size_t, size_t> souffle::test::TestPair |
Definition at line 511 of file eqrel_datastructure_test.cpp.
typedef std::chrono::high_resolution_clock::time_point souffle::test::time_point |
Definition at line 400 of file btree_multiset_test.cpp.
int souffle::test::count | ( | const C & | c | ) |
Definition at line 40 of file table_test.cpp.
Referenced by TCB_SPAN_NAMESPACE_NAME::span< ElementType, Extent >::first(), souffle::profile::Tui::genJsonTop(), souffle::genJsonUsage(), souffle::ast::transform::MagicSetTransformer::LabelDatabaseTransformer::NegativeLabellingTransformer::getNegativeLabel(), souffle::ast::transform::MaterializeAggregationQueriesTransformer::instantiateUnnamedVariables(), TCB_SPAN_NAMESPACE_NAME::span< ElementType, Extent >::last(), rel(), rul(), TCB_SPAN_NAMESPACE_NAME::span< ElementType, Extent >::span(), TCB_SPAN_NAMESPACE_NAME::span< ElementType, Extent >::subspan(), TEST(), souffle::ast::transform::RemoveRedundantSumsTransformer::transform(), and usage().
long souffle::test::duration | ( | const time_point & | start, |
const time_point & | end | ||
) |
Definition at line 406 of file btree_multiset_test.cpp.
Referenced by time().
std::vector< Entry > souffle::test::getData | ( | unsigned | numEntries | ) |
time_point souffle::test::now | ( | ) |
Definition at line 402 of file btree_multiset_test.cpp.
Referenced by time().
souffle::test::TEST | ( | BTreeMultiSet | , |
Basic | |||
) |
Definition at line 56 of file btree_multiset_test.cpp.
References DEBUG, EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.
souffle::test::TEST | ( | BTreeMultiSet | , |
BoundaryEmpty | |||
) |
Definition at line 323 of file btree_multiset_test.cpp.
souffle::test::TEST | ( | BTreeMultiSet | , |
BoundaryTest | |||
) |
Definition at line 279 of file btree_multiset_test.cpp.
References b, EXPECT_EQ, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeMultiSet | , |
Clear | |||
) |
souffle::test::TEST | ( | BTreeMultiSet | , |
Decremental | |||
) |
Definition at line 183 of file btree_multiset_test.cpp.
References EXPECT_EQ, i, souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert(), and j.
souffle::test::TEST | ( | BTreeMultiSet | , |
Duplicates | |||
) |
Definition at line 157 of file btree_multiset_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeMultiSet | , |
Incremental | |||
) |
Definition at line 171 of file btree_multiset_test.cpp.
References EXPECT_EQ, i, souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert(), and j.
souffle::test::TEST | ( | BTreeMultiSet | , |
IteratorBasic | |||
) |
Definition at line 227 of file btree_multiset_test.cpp.
References e, EXPECT_EQ, EXPECT_NE, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeMultiSet | , |
IteratorEmpty | |||
) |
souffle::test::TEST | ( | BTreeMultiSet | , |
IteratorStress | |||
) |
Definition at line 250 of file btree_multiset_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, EXPECT_LT, and i.
souffle::test::TEST | ( | BTreeMultiSet | , |
Load | |||
) |
Definition at line 346 of file btree_multiset_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, EXPECT_TRUE, and i.
souffle::test::TEST | ( | BTreeMultiSet | , |
Shuffled | |||
) |
Definition at line 195 of file btree_multiset_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_TRUE, and i.
souffle::test::TEST | ( | BTreeSet | , |
Basic | |||
) |
Definition at line 60 of file btree_set_test.cpp.
References DEBUG, EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.
souffle::test::TEST | ( | BTreeSet | , |
BoundaryEmpty | |||
) |
Definition at line 438 of file btree_set_test.cpp.
souffle::test::TEST | ( | BTreeSet | , |
BoundaryTest | |||
) |
Definition at line 402 of file btree_set_test.cpp.
References b, EXPECT_EQ, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeSet | , |
ChunkSplit | |||
) |
Definition at line 504 of file btree_set_test.cpp.
References EXPECT_EQ, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeSet | , |
ChunkSplitStress | |||
) |
Definition at line 536 of file btree_set_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, i, and j.
souffle::test::TEST | ( | BTreeSet | , |
Clear | |||
) |
souffle::test::TEST | ( | BTreeSet | , |
Copy | |||
) |
Definition at line 262 of file btree_set_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, EXPECT_FALSE, EXPECT_NE, EXPECT_TRUE, and i.
souffle::test::TEST | ( | BTreeSet | , |
Decremental | |||
) |
Definition at line 212 of file btree_set_test.cpp.
References EXPECT_EQ, i, souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert(), and j.
souffle::test::TEST | ( | BTreeSet | , |
Duplicates | |||
) |
Definition at line 170 of file btree_set_test.cpp.
References EXPECT_EQ, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeSet | , |
Incremental | |||
) |
Definition at line 186 of file btree_set_test.cpp.
References EXPECT_EQ, i, souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert(), and j.
souffle::test::TEST | ( | BTreeSet | , |
IteratorBasic | |||
) |
Definition at line 345 of file btree_set_test.cpp.
References e, EXPECT_EQ, EXPECT_NE, i, and souffle::detail::btree< Key, Comparator, Allocator, blockSize, SearchStrategy, isSet, WeakComparator, Updater >::insert().
souffle::test::TEST | ( | BTreeSet | , |
IteratorEmpty | |||
) |
souffle::test::TEST | ( | BTreeSet | , |
IteratorStress | |||
) |
Definition at line 370 of file btree_set_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, EXPECT_LT, and i.
souffle::test::TEST | ( | BTreeSet | , |
Load | |||
) |
Definition at line 461 of file btree_set_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_EQ, EXPECT_TRUE, and i.
souffle::test::TEST | ( | BTreeSet | , |
Merge | |||
) |
Definition at line 315 of file btree_set_test.cpp.
souffle::test::TEST | ( | BTreeSet | , |
Parallel | |||
) |
Definition at line 731 of file btree_set_test.cpp.
References souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::begin(), souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::check(), souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::contains(), souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::end(), EXPECT_EQ, EXPECT_TRUE, souffle::filter(), i, souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::insert(), and souffle::detail::btree< Key, detail::comparator< Key >, std::allocator< Key >, 256, typename souffle::detail::default_strategy< Key >::type, true, detail::comparator< Key >, souffle::detail::updater< Key > >::size().
souffle::test::TEST | ( | BTreeSet | , |
Shuffled | |||
) |
Definition at line 235 of file btree_set_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), EXPECT_TRUE, and i.
souffle::test::TEST | ( | DjTest | , |
Clear | |||
) |
Definition at line 329 of file eqrel_datastructure_test.cpp.
References EXPECT_EQ, souffle::DisjointSet::findNode(), i, souffle::DisjointSet::makeNode(), souffle::DisjointSet::size(), and souffle::DisjointSet::unionNodes().
souffle::test::TEST | ( | DjTest | , |
MakeNode | |||
) |
Definition at line 277 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | DjTest | , |
Scoping | |||
) |
The underlying Disjoint Set (essentially Anderson '91 Find-Union, but dynamic)
Definition at line 273 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | DjTest | , |
TestUnion | |||
) |
Definition at line 295 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Basic | |||
) |
Definition at line 58 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Clear | |||
) |
Definition at line 87 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Duplicates | |||
) |
Definition at line 109 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Extend | |||
) |
souffle::test::TEST | ( | EqRelTest | , |
IterBasic | |||
) |
Definition at line 371 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
IterEmpty | |||
) |
Definition at line 361 of file binary_relation_test.cpp.
References count(), and testutil::ignore().
souffle::test::TEST | ( | EqRelTest | , |
IterPartition | |||
) |
Definition at line 494 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
IterRange | |||
) |
Definition at line 395 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Merge | |||
) |
Definition at line 293 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
PairwiseDecremental | |||
) |
Definition at line 178 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
PairwiseIncremental | |||
) |
Definition at line 156 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Scaling | |||
) |
Definition at line 539 of file binary_relation_test.cpp.
References EXPECT_EQ, i, souffle::EquivalenceRelation< TupleType >::insert(), and souffle::EquivalenceRelation< TupleType >::size().
souffle::test::TEST | ( | EqRelTest | , |
Scoping | |||
) |
Definition at line 51 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
Shuffled | |||
) |
Definition at line 201 of file binary_relation_test.cpp.
souffle::test::TEST | ( | EqRelTest | , |
TransitivityTest | |||
) |
Definition at line 133 of file binary_relation_test.cpp.
souffle::test::TEST | ( | Graph | , |
Basic | |||
) |
Definition at line 42 of file graph_utils_test.cpp.
souffle::test::TEST | ( | LambdaBTreeTest | , |
Insert | |||
) |
Definition at line 523 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | LambdaBTreeTest | , |
Scoping | |||
) |
The LambdaBTree - essentially a ripoff to the Btree, but allows a function to be called on successful insert.
I just am gonna test a subset of it, because I can argue that BTree already tests the basic stuff
Definition at line 518 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | Pack | , |
Tuple | |||
) |
souffle::test::TEST | ( | PackUnpack | , |
Tuple | |||
) |
Definition at line 56 of file record_table_test.cpp.
souffle::test::TEST | ( | PackUnpack | , |
Vector | |||
) |
Definition at line 92 of file record_table_test.cpp.
souffle::test::TEST | ( | ParallelUtils | , |
OptimisticReadWriteLock | |||
) |
Definition at line 79 of file parallel_utils_test.cpp.
souffle::test::TEST | ( | ParallelUtils | , |
ReadWriteLock | |||
) |
Definition at line 55 of file parallel_utils_test.cpp.
souffle::test::TEST | ( | ParallelUtils | , |
SpinLock | |||
) |
souffle::test::TEST | ( | Performance | , |
Basic | |||
) |
Definition at line 494 of file btree_multiset_test.cpp.
References checkPerformance, TCB_SPAN_NAMESPACE_NAME::detail::data(), getData(), i, and time().
souffle::test::TEST | ( | Performance | , |
Load | |||
) |
Definition at line 519 of file btree_multiset_test.cpp.
References TCB_SPAN_NAMESPACE_NAME::detail::data(), i, souffle::btree_multiset< Key, Comparator, Allocator, blockSize, SearchStrategy, WeakComparator, Updater >::load(), and time().
souffle::test::TEST | ( | PiggyTest | , |
Append | |||
) |
Definition at line 118 of file eqrel_datastructure_test.cpp.
References souffle::PiggyList< T >::append().
souffle::test::TEST | ( | PiggyTest | , |
CopyCtor | |||
) |
Definition at line 163 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | PiggyTest | , |
DoubleClear | |||
) |
Definition at line 213 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | PiggyTest | , |
ElementCreation | |||
) |
souffle::test::TEST | ( | PiggyTest | , |
Iteration | |||
) |
Definition at line 151 of file eqrel_datastructure_test.cpp.
References souffle::PiggyList< T >::append(), and i.
souffle::test::TEST | ( | PiggyTest | , |
Scoping | |||
) |
souffle::test::TEST | ( | RandomInsertPiggyTest | , |
DoubleClear | |||
) |
Definition at line 76 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | RandomInsertPiggyTest | , |
Insertion | |||
) |
Definition at line 62 of file eqrel_datastructure_test.cpp.
References souffle::RandomInsertPiggyList< T >::clear(), EXPECT_EQ, souffle::RandomInsertPiggyList< T >::insertAt(), and souffle::RandomInsertPiggyList< T >::size().
souffle::test::TEST | ( | RandomInsertPiggyTest | , |
Scoping | |||
) |
Piggy List that allows creation at arbitrary elements.
Definition at line 57 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | SparseDjTest | , |
MakeNode | |||
) |
Definition at line 378 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | SparseDjTest | , |
Scoping | |||
) |
The SparseDisjointSet that is used by the EquivalenceRelation.
Definition at line 374 of file eqrel_datastructure_test.cpp.
References i, and souffle::SparseDisjointSet< SparseDomain >::makeNode().
souffle::test::TEST | ( | SparseDjTest | , |
SignedData | |||
) |
souffle::test::TEST | ( | SparseDjTest | , |
TestUnion | |||
) |
Definition at line 397 of file eqrel_datastructure_test.cpp.
souffle::test::TEST | ( | SymbolTable | , |
Assign | |||
) |
Definition at line 75 of file symbol_table_test.cpp.
souffle::test::TEST | ( | SymbolTable | , |
Basics | |||
) |
Definition at line 35 of file symbol_table_test.cpp.
souffle::test::TEST | ( | SymbolTable | , |
Copy | |||
) |
Definition at line 50 of file symbol_table_test.cpp.
souffle::test::TEST | ( | SymbolTable | , |
Inserts | |||
) |
souffle::test::TEST | ( | Table | , |
Basic | |||
) |
Definition at line 48 of file table_test.cpp.
References EXPECT_EQ, i, souffle::Table< T, blockSize >::insert(), j, and souffle::Table< T, blockSize >::size().
souffle::test::TEST | ( | Table | , |
Stress | |||
) |
Definition at line 61 of file table_test.cpp.
long souffle::test::time | ( | const std::string & | name, |
const Op & | operation | ||
) |
Definition at line 411 of file btree_multiset_test.cpp.
References b, duration(), and now().
Referenced by souffle::ProfileEventSingleton::makeTimingEvent(), souffle::profile::RelationIOTimingProcessor::process(), souffle::profile::ProgramRun::setEndtime(), souffle::profile::Iteration::setEndtime(), souffle::profile::Rule::setEndtime(), souffle::profile::Relation::setEndtime(), souffle::profile::ProgramRun::setStarttime(), souffle::profile::Rule::setStarttime(), souffle::profile::Iteration::setStarttime(), souffle::profile::Relation::setStarttime(), TEST(), and TEST().