Neil Brown
9cd2da3b0e
A large change to alter RainUsageCheck to use the code in UsageCheck
...
Previously there was near-duplicate code in UsageCheck adapted from RainUsageCheck. This patch removed the duplicate code on the RainUsageCheck side, and resulting in changing the rest of the module (and its corresponding test module) to use the new UsageCheck version of the code. The net effect is to almost completely unify the passes in RainUsageCheck (which aren't really Rain-specific anyway), UsageCheck and ArrayUsageCheck.
2008-01-27 23:53:42 +00:00
Neil Brown
bacc3115e9
Added various general helper functions to the Utils module
2007-11-09 01:18:42 +00:00
Neil Brown
78b3c038c3
Changed the types in RainUsageCheck and RainUsageCheckTest to match the changes to FlowGraph's type
2007-11-07 13:45:43 +00:00
Neil Brown
3b43411d4e
Changed the type of findReachDef, implemented it, and wrote some basic tests for it (that pass)
2007-11-02 23:47:20 +00:00
Neil Brown
341e324415
Added an export list to the RainUsageCheck module
2007-11-02 16:46:42 +00:00
Neil Brown
093447dd24
Added a skeleton function for findReachDef, along with the start of some tests for it
2007-11-02 16:46:20 +00:00
Neil Brown
8472f991d0
Added error return to the checkInitVar function, and also changed it to use the new extended Set implementation, which in turn allowed me to fix the bug in the checkInitVar function (defVal is Everything, not the empty set)
2007-11-02 11:44:04 +00:00
Neil Brown
7d89b4aec0
Added the implementation of an ExSet type that can easily represent the set of everything
2007-11-02 11:41:59 +00:00
Neil Brown
cf0cc81ae4
Added a new function that checks that variables are initialised before they are read in a control-flow graph, and added tests for it (that all now pass)
2007-11-01 11:45:36 +00:00
Neil Brown
49de728d6f
Added code relating to declarations in the flow-graph labels for usage checking
2007-11-01 00:33:44 +00:00
Neil Brown
fddc3fb6b8
Added support for simple input statements to the usage checker
2007-10-29 18:42:33 +00:00
Neil Brown
5280bb4fc6
Added support for output statements to the usage checker
2007-10-29 18:29:29 +00:00
Neil Brown
1f97bc7d49
Merged some common code in the usage checker (for processing the Variables)
2007-10-29 18:23:46 +00:00
Neil Brown
cb964c620f
Added support for the time statements in the usage checker
2007-10-29 17:57:57 +00:00
Neil Brown
d38c2aef08
Overhauled the usage checker to use sets of Strings for recording the used variables
2007-10-29 17:32:23 +00:00
Neil Brown
700ddf149e
Moved the old attempt at a usage checker into a new module just for doing Rain usage checks
2007-10-29 17:13:23 +00:00