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

Function SLgetProgramFileContent

src/API/SLAPI.cpp:602–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602FileContent* SLgetProgramFileContent(Program* module) {
603 if (!ModuleHasFirstFileContent(module)) return nullptr;
604 return const_cast<FileContent*>(module->getFileContents()[0]);
605}
606
607RawNodeId SLgetProgramRootNode(Program* module) {
608 if (!module || module->getNodeIds().empty()) return InvalidNodeId;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected