Commit Graph

2 Commits

Author SHA1 Message Date
Zoltan Somogyi
c916fd7bc0 Mention the recent expansion in the capabilities of switch detection.
Estimated hours taken: 1
Branches: main

NEWS:
	Mention the recent expansion in the capabilities of switch detection.

doc/reference_manual.texi:
	Document the recent expansion in the capabilities of switch detection.

tests/hard_codes/switch_detect.{m,exp}:
	Toughen this existing test to make it test what the documentation
	promises: the ability to handle unifications before the inner
	disjunction, and code after the unifications in the inner disjunction.
2005-09-28 09:32:03 +00:00
Zoltan Somogyi
2cd2009971 Allow the detection of switches in which some disjuncts start not
Estimated hours taken: 2
Branches: main

compiler/switch_detect.m:
	Allow the detection of switches in which some disjuncts start not
	with a unification, but with disjunction of unifications. In such
	cases, the rest of the disjunct is duplicated for all the switch arms
	we can create.

compiler/hard_coded/switch_detect.{m,inp,exp}:
	New test case to test the new functionality.

compiler/hard_coded/Mmakefile:
	Enable the new test case.
2005-09-02 05:00:29 +00:00