| 155 | }; |
| 156 | |
| 157 | StateMap::StateMap(Graph* graph) { |
| 158 | node_to_condid_map_.resize(graph->num_node_ids()); |
| 159 | node_to_ancestorid_map_.resize(graph->num_node_ids()); |
| 160 | // Initialize the dead state (empty state is designated with a nullptr). |
| 161 | dead_id_ = GetCondId( |
| 162 | {std::make_pair(OutputTensor(nullptr, -1), BranchType::kNeither)}); |
| 163 | } |
| 164 | |
| 165 | bool StateMap::IsDead(StateMap::CondId id) const { return id == dead_id_; } |
| 166 |
nothing calls this directly
no test coverage detected