Static Analysis of Resource Consumption in Programs Using Rewriting Rules | IEEE Conference Publication | IEEE Xplore