MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / SLgetProgramFile

Function SLgetProgramFile

src/API/SLAPI.cpp:586–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586std::string SLgetProgramFile(Program* module) {
587 if (!ModuleHasFirstFileContent(module)) return "";
588 return std::string(FileSystem::getInstance()->toPath(
589 module->getFileContents()[0]->getFileId(module->getNodeIds()[0])));
590}
591
592uint32_t SLgetProgramLine(Program* module) {
593 if (!ModuleHasFirstFileContent(module)) return 0;

Callers

nothing calls this directly

Calls 3

toPathMethod · 0.80
getFileIdMethod · 0.45

Tested by

no test coverage detected