|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Lengauer-Tarjan dominator tree algorithm. More...
#include <gtest/gtest.h>#include <chrono>#include <cstdlib>#include <string>#include <random>#include <Dominators.H>#include <tpl_dynArray.H>#include <tpl_dynMapTree.H>#include <tpl_graph.H>Go to the source code of this file.
Functions | |
| TEST (Dominators, InvalidateDropsTheCache) | |
| TEST (Dominators, PostDominatorsSeeAChangeOfTheGraph) | |
| TEST (Dominators, SingleNode) | |
| TEST (Dominators, LinearChain) | |
| TEST (Dominators, DiamondGraph) | |
| TEST (Dominators, IfThenElseCFG) | |
| TEST (Dominators, LoopCFG) | |
| TEST (Dominators, ComplexTextbookCFG) | |
| TEST (Dominators, UnreachableNodes) | |
| TEST (Dominators, SelfLoop) | |
| TEST (Dominators, EmptyGraph) | |
| TEST (Dominators, ErrorHandlingNullRoot) | |
| TEST (Dominators, DominatorTreeStructure) | |
| TEST (Dominators, DominatorTreeLinearChain) | |
| TEST (Dominators, DominanceReflexive) | |
| TEST (Dominators, RootDominatesAll) | |
| TEST (Dominators, NonDominance) | |
| TEST (Dominators, DominanceFrontiersIfThenElse) | |
| TEST (Dominators, DominanceFrontiersLoop) | |
| TEST (Dominators, GetIdomSpecificNode) | |
| TEST (Dominators, GetIdomNullNodeThrows) | |
| TEST (Dominators, LargeRandomDAG) | |
| TEST (Dominators, PerformanceLargeRandomDAG) | |
| TEST (Dominators, OperatorAlias) | |
| TEST (Dominators, CacheReuse) | |
| TEST (Dominators, StringTypedGraph) | |
| TEST (PostDominators, SingleNode) | |
| TEST (PostDominators, LinearChain) | |
| TEST (PostDominators, DiamondGraph) | |
| TEST (PostDominators, IfThenElseCFG) | |
| TEST (PostDominators, LoopCFG) | |
| TEST (PostDominators, PostDominanceReflexive) | |
| TEST (PostDominators, ExitPostDominatesAll) | |
| TEST (PostDominators, PostDominanceFrontiers) | |
| TEST (PostDominators, PostDominatorTreeStructure) | |
| TEST (PostDominators, ErrorHandlingNullExit) | |
Tests for Lengauer-Tarjan dominator tree algorithm.
Definition in file dominators_test.cc.
| TEST | ( | Dominators | , |
| CacheReuse | |||
| ) |
Definition at line 689 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::compute_idom(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_graph(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_root(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::has_computation(), nodes, and root().
| TEST | ( | Dominators | , |
| ComplexTextbookCFG | |||
| ) |
Definition at line 237 of file dominators_test.cc.
References Aleph::compute_dominators(), and m.
| TEST | ( | Dominators | , |
| DiamondGraph | |||
| ) |
Definition at line 160 of file dominators_test.cc.
References Aleph::compute_dominators(), m, and nodes.
| TEST | ( | Dominators | , |
| DominanceFrontiersIfThenElse | |||
| ) |
Definition at line 466 of file dominators_test.cc.
References Aleph::compute_dominance_frontiers(), Aleph::df(), and nodes.
| TEST | ( | Dominators | , |
| DominanceFrontiersLoop | |||
| ) |
Definition at line 501 of file dominators_test.cc.
References Aleph::compute_dominance_frontiers(), Aleph::df(), and nodes.
| TEST | ( | Dominators | , |
| DominanceReflexive | |||
| ) |
Definition at line 410 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominates(), and nodes.
| TEST | ( | Dominators | , |
| DominatorTreeLinearChain | |||
| ) |
Definition at line 389 of file dominators_test.cc.
References Aleph::build_dominator_tree(), and nodes.
| TEST | ( | Dominators | , |
| DominatorTreeStructure | |||
| ) |
Definition at line 355 of file dominators_test.cc.
References Aleph::build_dominator_tree(), and nodes.
| TEST | ( | Dominators | , |
| EmptyGraph | |||
| ) |
Definition at line 331 of file dominators_test.cc.
| TEST | ( | Dominators | , |
| ErrorHandlingNullRoot | |||
| ) |
Definition at line 341 of file dominators_test.cc.
References Aleph::compute_dominators(), and nodes.
| TEST | ( | Dominators | , |
| GetIdomNullNodeThrows | |||
| ) |
Definition at line 552 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_idom(), and nodes.
| TEST | ( | Dominators | , |
| GetIdomSpecificNode | |||
| ) |
Definition at line 531 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_idom(), and nodes.
| TEST | ( | Dominators | , |
| IfThenElseCFG | |||
| ) |
Definition at line 183 of file dominators_test.cc.
References Aleph::compute_dominators(), m, and nodes.
| TEST | ( | Dominators | , |
| InvalidateDropsTheCache | |||
| ) |
Definition at line 87 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominates(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_idom(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::has_computation(), and Aleph::Lengauer_Tarjan_Dominators< GT, SA >::invalidate().
| TEST | ( | Dominators | , |
| LargeRandomDAG | |||
| ) |
Definition at line 567 of file dominators_test.cc.
References Aleph::build_dominator_tree(), Aleph::compute_dominators(), LocateFunctions< Container, Type >::get_it(), k, m, nodes, rng, and OhashCommon< HashTbl, Key >::size().
| TEST | ( | Dominators | , |
| LinearChain | |||
| ) |
Definition at line 140 of file dominators_test.cc.
References Aleph::compute_dominators(), m, and nodes.
| TEST | ( | Dominators | , |
| LoopCFG | |||
| ) |
Definition at line 210 of file dominators_test.cc.
References Aleph::compute_dominators(), m, and nodes.
| TEST | ( | Dominators | , |
| NonDominance | |||
| ) |
Definition at line 439 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominates(), and nodes.
| TEST | ( | Dominators | , |
| OperatorAlias | |||
| ) |
Definition at line 667 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::build_tree(), and nodes.
| TEST | ( | Dominators | , |
| PerformanceLargeRandomDAG | |||
| ) |
Definition at line 615 of file dominators_test.cc.
References Aleph::build_dominator_tree(), Aleph::compute_dominators(), k, m, nodes, rng, and OhashCommon< HashTbl, Key >::size().
| TEST | ( | Dominators | , |
| PostDominatorsSeeAChangeOfTheGraph | |||
| ) |
Definition at line 113 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Post_Dominators< GT, SA >::get_ipdom().
| TEST | ( | Dominators | , |
| RootDominatesAll | |||
| ) |
Definition at line 424 of file dominators_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominates(), and nodes.
| TEST | ( | Dominators | , |
| SelfLoop | |||
| ) |
Definition at line 317 of file dominators_test.cc.
References Aleph::compute_dominators(), m, and nodes.
| TEST | ( | Dominators | , |
| SingleNode | |||
| ) |
Definition at line 128 of file dominators_test.cc.
References Aleph::compute_dominators(), m, nodes, and OhashCommon< HashTbl, Key >::size().
| TEST | ( | Dominators | , |
| StringTypedGraph | |||
| ) |
Definition at line 717 of file dominators_test.cc.
References Aleph::compute_dominators(), and m.
| TEST | ( | Dominators | , |
| UnreachableNodes | |||
| ) |
Definition at line 300 of file dominators_test.cc.
References Aleph::compute_dominators(), m, nodes, Aleph::ODhashTable< Key, Cmp >::search(), and OhashCommon< HashTbl, Key >::size().
| TEST | ( | PostDominators | , |
| DiamondGraph | |||
| ) |
Definition at line 794 of file dominators_test.cc.
References Aleph::compute_post_dominators(), m, and nodes.
| TEST | ( | PostDominators | , |
| ErrorHandlingNullExit | |||
| ) |
Definition at line 976 of file dominators_test.cc.
References Aleph::compute_post_dominators(), and nodes.
| TEST | ( | PostDominators | , |
| ExitPostDominatesAll | |||
| ) |
Definition at line 890 of file dominators_test.cc.
References nodes, and Aleph::Lengauer_Tarjan_Post_Dominators< GT, SA >::post_dominates().
| TEST | ( | PostDominators | , |
| IfThenElseCFG | |||
| ) |
Definition at line 817 of file dominators_test.cc.
References Aleph::compute_post_dominators(), m, and nodes.
| TEST | ( | PostDominators | , |
| LinearChain | |||
| ) |
Definition at line 776 of file dominators_test.cc.
References Aleph::compute_post_dominators(), m, and nodes.
| TEST | ( | PostDominators | , |
| LoopCFG | |||
| ) |
Definition at line 845 of file dominators_test.cc.
References Aleph::compute_post_dominators(), m, and nodes.
| TEST | ( | PostDominators | , |
| PostDominanceFrontiers | |||
| ) |
Definition at line 906 of file dominators_test.cc.
References Aleph::compute_post_dominance_frontiers(), and nodes.
| TEST | ( | PostDominators | , |
| PostDominanceReflexive | |||
| ) |
Definition at line 875 of file dominators_test.cc.
References nodes, and Aleph::Lengauer_Tarjan_Post_Dominators< GT, SA >::post_dominates().
| TEST | ( | PostDominators | , |
| PostDominatorTreeStructure | |||
| ) |
Definition at line 949 of file dominators_test.cc.
References Aleph::build_post_dominator_tree(), and nodes.
| TEST | ( | PostDominators | , |
| SingleNode | |||
| ) |
Definition at line 764 of file dominators_test.cc.
References Aleph::compute_post_dominators(), m, nodes, and OhashCommon< HashTbl, Key >::size().