Monitoring programs using rewriting | IEEE Conference Publication | IEEE Xplore