Commit Graph

1278 Commits

Author SHA1 Message Date
Neil Brown
86b8185b1f Added a few more helper functions to the Utils module 2008-01-25 16:12:20 +00:00
Neil Brown
d2b427c268 Added some comments to the FlowGraph module 2008-01-25 15:58:32 +00:00
Neil Brown
dc9e01933b Added a couple of tests to ensure replication is compared properly with sibling plain PARs 2008-01-25 12:30:48 +00:00
Neil Brown
330405f983 Added more usage-checking tests 2008-01-25 11:50:57 +00:00
Neil Brown
0d6e06607b Added a couple more tests 2008-01-25 11:19:58 +00:00
Neil Brown
08b922ae46 Added another usage checker test 2008-01-25 11:02:22 +00:00
Neil Brown
75dd2afeb2 Added support for timing tests in the automatic test cases 2008-01-23 15:23:26 +00:00
Neil Brown
d1fa9fd71f Added a helper function for timing tasks in the TestUtils module 2008-01-23 15:23:00 +00:00
Neil Brown
4c176a1a0f Fixed a bug so that tocktest now defaults to running a medium level of quickcheck tests 2008-01-23 14:32:13 +00:00
Neil Brown
6f4146a4f3 Altered the name of the exported ArrayUsageCheckTest function to match the new convention 2008-01-23 13:59:38 +00:00
Neil Brown
9c9295fd74 Added the filename of an automatic test as its test-label 2008-01-22 22:42:29 +00:00
Neil Brown
dc0d9b16d4 Altered the array usage checker to deal with replication properly, and pass the makeEquations test 2008-01-22 22:16:16 +00:00
Neil Brown
30bc63ffe8 Added another test case to test that read-indexes are not compared to each other 2008-01-22 22:15:48 +00:00
Neil Brown
0dd6a852bd Altered the other two tests according to the new way replicated variables are handled 2008-01-22 22:08:01 +00:00
Neil Brown
b6912651db Added sorting of problems to make comparing two problem lists straightforward (for testing the array usage checker) 2008-01-22 21:47:21 +00:00
Neil Brown
fca070e1bc Changed the way replicated variables are handled and altered one of the tests accordingly 2008-01-20 17:02:05 +00:00
Neil Brown
01783071a8 Added a large chunk of documentation about replicated variables and cleaned up the squareAndPair function to remove an unused portion of the arguments 2008-01-20 15:31:23 +00:00
Neil Brown
bc820e87ce Fixed the bounds for replicated variables; two of the three tests now pass 2008-01-20 15:01:45 +00:00
Neil Brown
c0105b1491 Put a scheme in place for adding replicated variable bounds, but it is incorrect 2008-01-20 14:34:56 +00:00
Neil Brown
df4c0ed1e7 Added an option to TestMain to support outputting plain text as test output rather than the normal TT-erase scheme 2008-01-20 14:18:35 +00:00
Neil Brown
0e35f5cd38 Changed ArrayUsageCheck to only insert the one inequality between the two versions of a replicated variable, but now missing the replication-bounds on both 2008-01-19 15:40:57 +00:00
Neil Brown
fb0d2fe6a2 Changed test 200 in ArrayUsageCheckTest to match the new arrangement I have in mind 2008-01-19 15:38:13 +00:00
Neil Brown
ed8033833b Added the code and tests for forming problems involving replication, but currently one of the two (or both) is buggy 2008-01-16 19:31:56 +00:00
Neil Brown
663cbaeaa1 Added support to the squareAndPair function for adding in extra inequalities 2008-01-16 19:23:58 +00:00
Neil Brown
ee102c10a3 Moved makeSize to the top-level of ArrayUsageCheck 2008-01-16 18:41:02 +00:00
Neil Brown
312719088a Added a helper function to ArrayUsageCheck 2008-01-16 18:40:21 +00:00
Neil Brown
fde2d8dc17 Changed the assertEquivalentProblems so that the sizes are displayed alongside the zipped lists 2008-01-16 16:25:57 +00:00
Neil Brown
2edeb1bb7b Added a new helper function in ArrayUsageCheck 2008-01-16 15:34:42 +00:00
Neil Brown
ec804649e8 Moved lots of functions to the top-level in ArrayUsageCheck 2008-01-16 15:34:03 +00:00
Neil Brown
6e28d3e3db Moved the flatten function to the top level of the ArrayUsageCheck module 2008-01-16 15:09:26 +00:00
Neil Brown
5f2158531b Added an export list to the ArrayUsageCheck module 2008-01-16 12:57:05 +00:00
Neil Brown
143c3b1994 Split out the ArrayUsageCheck module into ArrayUsageCheck (for formulating problems from code) and Omega (just the Omega Test) 2008-01-16 12:53:17 +00:00
Neil Brown
6d45352819 Added support for distinct versions of the same variable, ready to support replication 2008-01-16 12:43:39 +00:00
Neil Brown
af130291fc Added some tests for replicated indexes in parallel 2008-01-16 12:14:09 +00:00
Neil Brown
bc2ffc59be Corrected the bounds checking so that (size - 1) is used as the maximum index (not size, as before) 2008-01-16 11:52:32 +00:00
Neil Brown
0df68e53e5 Moved addConstant to the top level of ArrayUsageCheck 2008-01-16 11:52:11 +00:00
Neil Brown
0e57c7af55 Removed a piece of dead code from ArrayUsageCheck 2008-01-16 11:51:54 +00:00
Neil Brown
4b0d29d987 Added support for actually bounds-checking the array based on its declared size 2008-01-16 11:47:54 +00:00
Neil Brown
31db71cb83 Added more (non-replicated) tests for the usage checking 2008-01-16 11:35:19 +00:00
Neil Brown
183e68ee59 Corrected the display of variables relating to REM 2008-01-16 11:34:56 +00:00
Neil Brown
a14a866502 Changed the test harness to get some tests inside the IO monad. This allows all the tests to be run, not just until the first failure 2008-01-16 11:15:05 +00:00
Neil Brown
90fb5e2182 Fixed a bug where multiple problems would be deemed safe as long as one didn't have a solution (as opposed to all not having solutions) 2008-01-16 10:52:51 +00:00
Neil Brown
b5606eb7a9 Tidied up the error messages given when the array usage checker finds a problem 2008-01-16 03:37:53 +00:00
Neil Brown
1c0434cc47 Corrected a small omission in the cases for testing array indices (if there are no problems to work with) 2008-01-16 03:29:13 +00:00
Neil Brown
b3216c4870 Added a test-source-file for testing the array usage checker, and added it to the appropriate test list 2008-01-16 03:28:26 +00:00
Neil Brown
9edc9fea78 Added a TestHarness module that easily allows full-compilation tests from external source files 2008-01-16 03:27:47 +00:00
Neil Brown
0706cb4d51 Rearranged PreprocessOccam a little so that you can now parse occam source directly from a String (as well as from a filename, as before) 2008-01-16 03:26:49 +00:00
Neil Brown
5988684c00 Moved the Pass list from Main to its own module (PassList) and included the usage-checking pass (when the appropriate option is turned on) 2008-01-16 03:26:20 +00:00
Neil Brown
b8e4864d08 Added an option for usage-checking to the CompState; currently turned off by default 2008-01-16 03:24:25 +00:00
Neil Brown
64a9fcf2dd Added the functionality for variable divisors with REM 2008-01-16 01:49:02 +00:00