[問題] 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