Commit Graph

4 Commits

Author SHA1 Message Date
Zoltan Somogyi
2f7c5fb87f Update the programming style of some tests. 2020-10-03 17:43:38 +10:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
Zoltan Somogyi
6554ef7daa Replace "is" with "=".
Estimated hours taken: 2
Branches: main

Replace "is" with "=".
Add field names where relevant.
Replace integers with counters where relevant.
2003-05-26 09:01:46 +00:00
Zoltan Somogyi
559d1ea5ce Fix a bug in value numbering reported by Simon.
Estimated hours taken: 1

Fix a bug in value numbering reported by Simon.

compiler/vn_block.m:
	Restore a previously commented block of code, whose job is to force
	the flushing of any stack slot that holds the saved value of a nondet
	control register or stack slot. The rationale for this code used
	to be the handling of cuts in nondet code; now it is the handling
	of hijackings.

tests/hard_coded.{m,exp}:
	A cut-down and inlined version of Simon's test case, which fails
	without the change to vn_block and succeeds with it.

tests/hard_coded/Mmakefile:
	Enable the new test case, and require that it be compiled with
	value numbering.
1998-08-26 07:52:01 +00:00