Commit Graph

2 Commits

Author SHA1 Message Date
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
dcc3d80a50 Fix Mantis bug 103.
Estimated hours taken: 5
Branches: main

Fix Mantis bug 103.

compiler/lco.m:
	Detect the special case whose incorrect treatment represented the bug,
	and modify the program transformation to leave the predicate unchanged
	even in that case.

	Allow the transformation to work for one more type of cons_tag:
	since single_functor_tag is a special case of unshared_tag, there
	is no reason not to allow it.

	Add some conditionally-enabled debugging code.

	Rename predicates to avoid ambiguities.

	Move a constant field from the updateable lco_into to the constant
	lco_const_info.

tests/hard_coded/bug103.{m,exp}
	A new test case for the bug.

tests/hard_coded/Mmakefile:
tests/hard_coded/Mercury.options:
	Enable the new test case, and invoke it with the right options.
2011-03-08 07:37:45 +00:00