identified and reported by Marcel Hendrix,
expressions of this kind could trigger a segmentation violation.
PTdifferentiate() roughly evaluates to
ternary_fcn(ge0(0-expr), 0, PTdifferentate(expr))
and mkb() optimizes
0 - expr --> unary_minus(expr)
IFeval() invokes PTeval() for the derivative too,
PTeval() looks at the incorrect tree->funcnum
and tries to PTeval for a second argument which is not there,
(unary_minus does not have a second argument)
causing a segmentation fault.
|
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| bxpressn-1.cir | ||
| bxpressn-1.out | ||
| minus-minus.cir | ||
| minus-minus.out | ||
| xpressn-1.cir | ||
| xpressn-1.out | ||
| xpressn-2.cir | ||
| xpressn-2.out | ||
| xpressn-3.cir | ||
| xpressn-3.out | ||