reduce_evalue: reduce polynomial expressions in denominator-2 fractional parts
commitca50f10a805381aeb2a7d552d1cfdff782558ac9
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 4 Mar 2014 11:31:47 +0000 (4 12:31 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 10 Mar 2014 08:55:12 +0000 (10 09:55 +0100)
treef53f5931870686daf38c0e8c8aecd42e69c50170
parentc28fb3efde9d50f3695616ca0e5897b639646701
reduce_evalue: reduce polynomial expressions in denominator-2 fractional parts

emul_fractionals assumes that polynomial expressions in fractional parts
of an argument with denominator 2 are always affine since they start
out being affine and emul_fractionals makes sure that they stay affine.
However, a fractional part may originally have an argument with
a denominator that is different from 2 and that only becomes two
after a substitution.  The polynomial expression in this fractional part
may already be of higher degree at this point so we need to reduce
it to maintain the invariant.

Reported-by: Thomas Kahle <tomka@gentoo.org>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
evalue.c
tests/iscc/kahle [new file with mode: 0644]