| 245 | } |
| 246 | |
| 247 | StateMap::AncestorId StateMap::GetAncestorId( |
| 248 | const StateMap::AncestorState& state) { |
| 249 | if (state.empty()) return nullptr; |
| 250 | return &*ancestorstate_set_.insert(state).first; |
| 251 | } |
| 252 | |
| 253 | void StateMap::ResetAncestorId(const Node* node, StateMap::AncestorId id) { |
| 254 | if (node->id() < node_to_ancestorid_map_.size()) |
no test coverage detected