Printing of entities per proc
This commit is contained in:
19
symrs.cc
19
symrs.cc
@@ -74,30 +74,19 @@ void SymRS::mapProcEntities(void)
|
||||
// collect entities that can be produced
|
||||
// locally by the process with proc_id
|
||||
|
||||
SET_ADD(usedEntities[proc_id], rct.prod);
|
||||
SET_ADD(usedProducts[proc_id], rct.prod);
|
||||
}
|
||||
}
|
||||
|
||||
// Context automaton
|
||||
// for ()
|
||||
|
||||
printUsedEntitiesPerProc();
|
||||
// for (const )
|
||||
// usedCtxEntities
|
||||
|
||||
rs->printEntitiesPerProc(usedProducts);
|
||||
}
|
||||
|
||||
void SymRS::printUsedEntitiesPerProc(void)
|
||||
{
|
||||
for (const auto &proc_entities : usedEntities) {
|
||||
std::string proc_name = rs->getProcessName(proc_entities.first);
|
||||
cout << proc_name << ": ";
|
||||
|
||||
for (const auto &ent : proc_entities.second) {
|
||||
cout << rs->getEntityName(ent) << " ";
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
}
|
||||
}
|
||||
|
||||
BDD SymRS::encEntity_raw(Entity entity, bool succ) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user