diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-05 15:22:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-05 15:22:37 -0700 |
commit | 5ca3693a7b5d65fd5aa67c737e7a60b457db2281 (patch) | |
tree | 83c85bce2661b588a0445619fc58f121359c4468 /eval.c | |
parent | 06ce08dc2c0d2db522c5f6293cf9a28c2c22d24a (diff) | |
download | txr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.tar.gz txr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.tar.bz2 txr-5ca3693a7b5d65fd5aa67c737e7a60b457db2281.zip |
compiler: better shared test for sys:switch.
* share/txr/stdlib/compiler.tl (compiler comp-switch): The
shared test here is both inaccurate and O(n^2). It tests that
all the remaining branches of the code are tails of the first
branch. However, this is not strict enough: we need to also
test that the tails are in their order of appearance. We can
do that in O(n) time.
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions