Commit Graph

1 Commits

Author SHA1 Message Date
Zoltan Somogyi
2466524308 Fix cse_detection.m's interaction with uniqueness.
This fixes github issue #64.

compiler/cse_detection.m:
    When pulling a unification X = f(Y1, ..., Yn) out of an arm of
    a disjunction, switch or if-then-else, require the instantiation state
    of X to be free of unique or mostly_unique components.

    Put the requirements on X's inst into a single predicate.

    Add a mechanism to make debugging similar issues easier.

tests/valid/cse_unique.m:
    A suitably modified form of the test program on github.

tests/valid/Mmakefile:
    Enable the new test case.
2019-06-30 20:16:07 +02:00