MCPcopy Create free account
hub / github.com/R-Fuzz/symsan / retrieve_task

Method retrieve_task

include/parse.h:94–102  ·  view source on GitHub ↗

use shared_ptr to auto-free task

Source from the content-addressed store, hash-verified

92
93 // use shared_ptr to auto-free task
94 virtual std::shared_ptr<T> retrieve_task(uint64_t id) {
95 auto it = tasks_.find(id);
96 if (it == tasks_.end()) {
97 return nullptr;
98 }
99 auto tmp = std::move(it->second);
100 tasks_.erase(it);
101 return tmp;
102 }
103
104protected:
105 inline dfsan_label_info* get_label_info(dfsan_label label) {

Callers 2

handle_condFunction · 0.80
handle_gepFunction · 0.80

Calls 3

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected