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.
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.