MCPcopy Create free account
hub / github.com/csmith-project/csmith / to_id

Method to_id

src/SafeOpFlags.cpp:368–378  ·  view source on GitHub ↗

assign id to safe math function */

Source from the content-addressed store, hash-verified

366
367/* assign id to safe math function */
368int
369SafeOpFlags::to_id(std::string fname)
370{
371 for (size_t i=0; i<wrapper_names.size(); i++) {
372 if (wrapper_names[i] == fname) {
373 return i+1;
374 }
375 }
376 wrapper_names.push_back(fname);
377 return wrapper_names.size();
378}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected