MCPcopy Create free account
hub / github.com/Samsung/UTopia / updateMap

Method updateMap

lib/rootdefanalysis/RDSpace.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312template <typename KTy, typename VTy, typename MTy>
313void RDSpace::updateMap(MTy &Map, KTy Key, VTy Val) {
314 auto Acc = Map.find(Key);
315 if (Acc == Map.end()) {
316 Map.insert(std::make_pair(Key, std::set<VTy>({Val})));
317 return;
318 }
319
320 Acc->second.insert(Val);
321}
322
323std::set<MemoryAccess *> RDSpace::next(MemoryAccess &MA) {
324 std::set<MemoryAccess *> Result;

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected