[问题] cirprint的total

楼主: caspercat (caspercat)   2012-12-09 15:36:26
有点疑惑的地方想请教一下
cirprint -summary 的时候
是应该print出 PI + PO + AIG的总数吗?
还是其他的呢?
在cirMgr.cpp中的CirMgr::printSummary()上面有范例说:
/*********************
Circuit Statistics
==================
PI 20
PO 12
AIG 130
作者: peter0902 (Vigo)   2012-02-09 16:28:00
3441篇
作者: ypf791 (路人1号)   2012-02-09 18:50:00
居然是一年前吗=w="
楼主: caspercat (caspercat)   2012-02-09 18:51:00
谢谢!!
作者: ric2k1 (Ric)   2012-02-10 23:13:00
天啊! 居然过了一年还是忘记改这边...map 里头 [] 与 find() 的差别请参考一下讲义 (STL),上课有讲过哦! map 的 [] 请不要随便乱用!!(*((m.insert(value_type(k,data_type()))).first)).second上面是 m[k] 实际做的事。所以即使确定有,还是用 find() 拿到 iterator,再用 *mi 去取得 data 比较快!更正,快一点而已,不过重点是比较安全。

Links booklink

Contact Us: admin [ a t ] ucptt.com