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

Method get_pname

src/Probabilities.cpp:910–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908}
909
910ProbName
911Probabilities::get_pname(const string &sname)
912{
913 std::map<std::string, ProbName>::iterator i = sname_to_pname_.find(sname);
914 if (i == sname_to_pname_.end())
915 assert("invalid string in the configuration file:" && sname.c_str() && 0);
916 return (*i).second;
917}
918
919std::string
920Probabilities::get_sname(ProbName pname)

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected