- char* existing_key = xbt_dict_get_key(f2c_lookup_, this);
- if(existing_key!=nullptr){
- return atoi(existing_key);}
- else{
- return this->add_f();}
+ for (auto const& elm : *f2c_lookup_)
+ if (elm.second == this)
+ return std::stoi(elm.first);
+
+ /* this function wasn't found, add it */
+ return this->add_f();