systemc-compiler
systemc-compiler copied to clipboard
Enable unused variable/constant and statements removing
Start with checking requiredVars, why it is not used in serializeProcSingle?
Implemented with useVarStmts/defVarStmts in ScTraverseConst and writeToValue/readFromValue in ScParseExprValue. Currently turned off with REMOVE_UNUSED_VAR_STMTS().
It needs to enable and add more tests, current tests: misc_unused_remove*.cpp.